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")
华为致力于把数字世界带入每个人、每个家庭、每个组织,构建万物互联的智能世界。
相关推荐
waterHBO8 天前
python + whisper 读取蓝牙耳机, 转为文字
python·whisper
代码骑士17 天前
基于whisper和ffmpeg语音转文本小程序
whisper
Luke Ewin1 个月前
一个基于OpenAI Whisper开发的音视频字幕文件生成工具
人工智能·whisper·音视频·语音识别·asr·语音转写·视频字幕生成
Encarta19931 个月前
【语音识别】vLLM 部署 Whisper 语音识别模型指南
人工智能·whisper·语音识别
JHC0000001 个月前
ubuntu 下调用系统麦克风,以及faster-whisper-medium 处理音频转写文本
ubuntu·whisper·音视频
西西弗Sisyphus1 个月前
whisper 语音识别
whisper·语音识别
JHC0000001 个月前
docker 中跑faster-whisper 教程(1050显卡)
docker·容器·whisper·语音识别
engchina1 个月前
vLLM 部署 openai whisper 模型实现语音转文字
人工智能·python·whisper
gs801401 个月前
Faster-Whisper —— 为语音识别加速的利器
人工智能·whisper·语音识别
charles_vaez2 个月前
开源模型应用落地-语音转文本-whisper模型-AIGC应用探索(五)
深度学习·whisper·aigc