faster-whisper通过CTranslate2 转换的快速whisper推理服务
faster-whisper 通过CTranslate2 对于openai/whisper的tranformer 模型进行了转换,可以提示推理速度,同时还可以进行不同精度的配置
官方目前的测试是有4倍左右的提升,同时可以更好的支持使用cpu 进行推理,同时faster-whisper 可以兼容distil-whisper
运行问题
- Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
实际此问题官方也有介绍,可以通过pip 安装cudnn 或者通过dnf 安装
# pip 模式
pip install nvidia-cublas-cu12 nvidia-cudnn-cu12
# dnf 模式
dnf install -y libcudnn8.x86_64
说明
对于使用openai/whisper 进行语音转文字的业务场景faster-whisper 是值得选择的框架
参考资料
https://github.com/SYSTRAN/faster-whisper
https://github.com/OpenNMT/CTranslate2/
https://github.com/Vaibhavs10/insanely-fast-whisper
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 实操Deepseek接入个人知识库
· 易语言 —— 开山篇
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 【全网最全教程】使用最强DeepSeekR1+联网的火山引擎,没有生成长度限制,DeepSeek本体
2023-08-22 apache spark connect 试用
2022-08-22 nginx proxy_cache 无法生效问题解决
2021-08-22 基于cloudevents+easy-rules+centraldogma 进行基于规则的业务开发
2021-08-22 mercurius 基于fastify 的graphql server 以及gateway 服务
2021-08-22 如何测试easy-rules 的spel 表达式
2021-08-22 easy-rules-centraldogma-spring-boot-starter spel 模版格式说明
2020-08-22 odyssey prometheus 监控