whisper 实现语音转文字

准备需要转码的音频

https://support.huaweicloud.com/sdkreference-sis/sis_05_0039.html

编码转吗的代码

bash 复制代码
import whisper

if __name__ == "__main__":
    file_path = "16k16bit.wav"
    model = whisper.load_model("small")
    result = model.transcribe(file_path)
    print(result["text"])

查看效果

bash 复制代码
已连接到 pydev 调试器(内部版本号 232.10300.41)/PycharmProjects/fastApiProject/venv/lib/python3.10/site-packages/whisper/transcribe.py:115: UserWarning: FP16 is not supported on CPU; using FP32 instead
  warnings.warn("FP16 is not supported on CPU; using FP32 instead")
华为致力于把数字世界带入每个人、每个家庭、每个组织,构建万物互联的智能世界。
相关推荐
weixin_446260859 天前
本地WSL部署接入 whisper + ollama qwen3:14b 总结字幕校对增强版
whisper
青山师10 天前
Docker部署whisper转写模型
docker·容器·whisper
Micheal_Dad1 个月前
【尝试】基于openai-whisper进行语音转文字windows版本
whisper
Micheal_Dad1 个月前
【尝试】本地部署openai-whisper,通过 http请求识别
whisper
andyguo1 个月前
语音识别的速度革命:从 Whisper 到 Whisper-CTranslate2,我经历了什么?
人工智能·学习·ai·whisper·语音识别·xcode·ai测评
番茄老夫子1 个月前
OpenAI推出的语音识别系统Whisper简析
人工智能·whisper·语音识别
A-刘晨阳1 个月前
语音转文字「本地化」新解!Whisper Web+cpolar实现零服务器部署与远程操作
服务器·前端·whisper
云空2 个月前
《Whisper模型版本及下载链接》
whisper
苗杨2 个月前
【Faster-Whisper】离线识别本地视频并生成字幕
python·whisper·音视频
云空2 个月前
《Whisper:OpenAI的先进语音识别模型》
人工智能·whisper·语音识别