【发布时间】:2022-09-29 20:33:02
【问题描述】:
我使用 OpenAI 的 Whisper python lib 进行语音识别。如何获得字级时间戳?
使用 OpenAI\'s Whisper 转录(在 Ubuntu 20.04 x64 LTS 和 Nvidia GeForce RTX 3090 上测试):
conda create -y --name whisperpy39 python==3.9
conda activate whisperpy39
pip install git+https://github.com/openai/whisper.git
sudo apt update && sudo apt install ffmpeg
whisper recording.wav
whisper recording.wav --model large
如果使用 Nvidia GeForce RTX 3090,请在 conda activate whisperpy39 之后添加以下内容:
pip install -f https://download.pytorch.org/whl/torch_stable.html
conda install pytorch==1.10.1 torchvision torchaudio cudatoolkit=11.0 -c pytorch
-
有趣的问题,如果您有时间提供一些当前方法的代码:)
标签: python timestamp speech-recognition openai openai-whisper