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")
华为致力于把数字世界带入每个人、每个家庭、每个组织,构建万物互联的智能世界。
相关推荐
阿里巴啦21 小时前
一个 Python 视频处理工具链实战:下载、转录、摘要、字幕、诊断全打通 (已开源)
人工智能·python·whisper·视频下载·视频处理工具
qq_316837752 天前
使用 whisper OpenCC 从音频文件生成字幕
whisper
skywalk81638 天前
DuMate帮着在Windows10 编译安装Whisper-CPP
人工智能·whisper
skywalk816310 天前
Windows下安装编译安装Whisper-CPP:一个语音实现框架集和高性能推理模型
人工智能·windows·whisper
linux开发之路11 天前
C++实现Whisper+Kimi端到端AI智能语音助手
c++·人工智能·llm·whisper·openai
吱夏cz17 天前
安装whisper
whisper
Jay星晴18 天前
Whisper-large-v3语音识别效果对比:与Whisper v2/v1在中文长语音场景差异
whisper·语音识别·asr·星图gpu
FishPotatoChen21 天前
【OpenAI】Whisper 模型架构详解
whisper
weixin_4462608522 天前
[特殊字符] Insanely Fast Whisper - 超快音频转录工具!
whisper·音视频
x-cmd23 天前
[260326] x-cmd v0.8.10:跨 Shell 统一配置命令短名;自动装好依赖运行 WhisperLiveKit 实时语音转写
linux·人工智能·ai·whisper·shortcut·x-cmd