Python入門トップページ


目次


WhisperX で音声認識と話者分離をしてみよう

macOS 編

FFmpeg のインストール

WhisperX を用いて音声認識や話者分離を行うためには,FFmpeg が必要です.macOS に FFmpeg をインストールする方法でおそらく最も簡単な方法は Homebrew を利用する方法です.

brew search コマンドで ffmpeg パッケージを検索してみます.

(base) whisperx % brew search ffmepg ⏎
==> Formulae
ffmpeg
(base) whisperx %

brew install コマンドで ffmpeg をインストールします.

(base) whisperx % brew install ffmpeg ⏎
==> Auto-updating Homebrew...
Adjust how often this is run with `$HOMEBREW_AUTO_UPDATE_SECS` or disable with
`$HOMEBREW_NO_AUTO_UPDATE=1`. Hide these hints with `$HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> Downloading https://ghcr.io/v2/homebrew/core/portable-ruby/blobs/sha256:4ba8d535df01e4bf97e6661c3815796fd77364ea2552606e891659133a76f0e1
############################################################################## 100.0%
==> Pouring portable-ruby-4.0.5_1.arm64_big_sur.bottle.tar.gz
Inspect the formula dependency plan before installing with `brew install --ask`.

目次に戻る