mlx-whisperをMacで使う
前提
mlx-whisper を使う(WhisperのM1系MacのGPUを使う高速版)
Macbook Air (M2)
XCode, git はインストール済み
音声ファイルは30分の source.aac
Pythonのvenv環境作成 & 有効化済み
ffmpegが必要なので ./venv/bin/ に置いた
code:bash
(venv) % pip install mlx-whisper
(venv) % mlx_whisper --model mlx-community/whisper-large-v3-turbo --language ja source.aac
# モデルダウンロード、aac to wav、文字起こしが実行される
# 文字起こし部分の時間計測のためもう一度実行
(venv) % time mlx_whisper --model mlx-community/whisper-large-v3-turbo --language ja source.aac
20.27s user 24.67s system 25% cpu 2:58.30 total