項目地址:GitHub - openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision
1、需要py3.8環境
conda activate p38
2、安裝
pip install -U openai-whisper
3、下載項目
?pip install git+https://github.com/openai/whisper.git
4、安裝whisper
pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git這個過程需要很長時間,耐心等等
5、安裝ffmpeg
brew install ffmpeg
6、安裝setuptools-rust
pip install setuptools-rust
7、測試
whisper --help
8、測試語音轉文本
whisper test.m4a ?--language ?zh
會逐步輸出語音的內容