local-whisper について
local-whisper は OpenAI's Whisper を使うローカル音声文字起こしスキルです。モデルのダウンロード後はオフラインで動作し、モデルサイズやタイムスタンプ、JSON 出力を選べます。
主な機能
- 01モデル取得後のオフライン文字起こし
- 02Whisper モデルサイズの選択
- 03言語の自動検出または指定
- 04単語タイムスタンプと JSON 出力
活用シーン
- 01音声ファイルのローカル文字起こし
- 02タイムスタンプ付き文字起こしの生成
- 03小さいモデルで処理を高速化
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ thinkfleetai/ thinkfleet-engine --skill local-whisperインストール後、Claude Code で/local-whisperを入力して読み込まれたか確認します。
詳細
ローカル Whisper STT
OpenAI の Whisper を使用したローカル音声文字起こしです。初回のモデルダウンロード後は完全にオフラインで動作します。
使用方法
# Basic
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav
# Better model
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav --model turbo
# With timestamps
~/.thinkfleetbot/skills/local-whisper/scripts/local-whisper audio.wav --timestamps --json
モデル
| モデル | サイズ | 備考 |
|---|---|---|
tiny | 39M | 最速 |
base | 74M | デフォルト |
small | 244M | バランスが良好 |
turbo | 809M | 速度と品質が最高 |
large-v3 | 1.5GB | 精度が最大 |
オプション
--model/-m— モデルサイズ(デフォルト:base)--language/-l— 言語コード(省略時は自動検出)--timestamps/-t— 単語ごとのタイムスタンプを含める--json/-j— JSON 出力--quiet/-q— 進行状況の表示を抑制
セットアップ
.venv/ にある uv 管理の仮想環境を使用します。再インストールするには:
cd ~/.thinkfleetbot/skills/local-whisper
uv venv .venv --python 3.12
uv pip install --python .venv/bin/python click openai-whisper torch --index-url https://download.pytorch.org/whl/cpu
コメント
Markdown 対応