WhisperXの文字起こし
WhisperXは、初心者向けに推奨されるローカル文字起こしの方法です。
セットアップ
Section titled “セットアップ”TomoriBotのリポジトリのルート(TomoriBotをクローンしたフォルダー)から以下のコマンドを実行します。最初のコマンドでSTTサーバーのフォルダーに移動します。
Windows PowerShell
Section titled “Windows PowerShell”cd servers/sttpython -m venv .venv.\.venv\Scripts\Activate.ps1python -m pip install --upgrade pippip install -r requirements.txtpython whisperx_server.pyLinux/macOS Bash
Section titled “Linux/macOS Bash”cd servers/sttpython3 -m venv .venvsource .venv/bin/activatepython -m pip install --upgrade pippython -m pip install -r requirements.txtpython whisperx_server.pyTomoriBotがWhisperXを使用している間は、そのターミナルを開いたままにしてください。デフォルトのエンドポイントURLはhttp://127.0.0.1:8021です。
TomoriBotへの登録
Section titled “TomoriBotへの登録”/provider custom-endpoint addを実行します。
capability:transcriptionapi_style:openai-compatible-transcriptionendpoint_url:http://127.0.0.1:8021
モーダルで以下を設定します。
Transcription Model:large-v3、またはWHISPERX_MODELに設定されている値Transcription Language: 任意の言語ヒント(例:enやja)
登録すると、エンドポイントはすぐに有効になります。今後、エンドポイントを切り替える場合にのみ/model transcriptionを使用します。
文字起こしの使用
Section titled “文字起こしの使用”登録後、TomoriBotは音声添付ファイルをバックグラウンドで文字起こしし、チャットコンテキストにテキストを追加します。文字起こしをチャットに表示して投稿したい場合にのみ、/speech transcriptsを使用してください。