whisper-cpp

brew install whisper-cpp

download model:

wget https://ggml.ggerganov.com/ggml-model-whisper-medium.en-q5_0.bin
export GGML_METAL_PATH_RESOURCES="$(brew --prefix whisper-cpp)/share/whisper-cpp"
whisper-cpp -osrt -f input.wav -m ggml-model-whisper-medium.en-q5_0.bin
ffmpeg -i video.mp4 -vn -acodec pcm_s16le -ar 16000 -ac 1 tmp.wav
ffmpeg -y -i audio.wav -ar 16000 tmp.wav