whisper使用方法

看这个 github

复制代码
https://github.com/Purfview/whisper-standalone-win/tags

下载

bash 复制代码
视频提取音频
ffmpeg -i 222.mp4 -vn -b:a 128k -c:a mp3 output.mp3

截取4秒后的音频 
ffmpeg -i output.mp3 -ss 4 -c copy output2.mp3

使用 whisper-faster.exe  生成字幕 

whisper-faster.exe C:\Users\pc\Videos\Captures\output3.mp3 -l=Chinese --model=medium --output_format srt

缺少插件解决方法

bash 复制代码
cudnn_ops_infer64_8.dll 
cublasLt64_11.dll
cublasLt64_12.dll
下载这个
cuBLAS.and.cuDNN_win_v3.zip

完整目录形式

生成srt

bash 复制代码
1
00:00:00,920 --> 00:00:02,000
其實這兩年

2
00:00:02,680 --> 00:00:03,680
在電影方面

3
00:00:03,680 --> 00:00:06,360
其實都是想嘗試一些
相关推荐
傻啦嘿哟1 小时前
某招聘平台爬虫:爬取招聘岗位数据,分析各城市薪资水平
开发语言·爬虫·python
2501_933670791 小时前
2026秋招量化分析岗技能栈:Python、SQL、统计建模、回测项目怎么准备
开发语言·python·sql
2601_962077601 小时前
python Dejavu库快速识别音频指纹实例探究
python·音乐识别·dejavu库·音频指纹识别·实例探究
科技苑1 小时前
如何用Python编程实现一个简单的Web爬虫?
人工智能·python
dayDayupbetter2 小时前
Visual C++ 2010安装与使用高手秘籍
python
隐擎fox2 小时前
深入理解网络传输层安全:TLS 指纹识别(JA3/JA4)原理与 Python 协议层检测实战
爬虫·python·网络协议·安全·网络安全·https
医疗信息化王工2 小时前
DataForge:基于 Python 的数据库批量导出 Excel 工具——从架构到部署的全流程实战
数据库·python·excel
小玮看世界3 小时前
[Python]从合并区间到传感器融合区:合并区间在传感器区域融合的实际落地
开发语言·python
Java陈序员3 小时前
轻量运维面板!一款现代化的服务器控制面板工具!
运维·服务器·python·react.js·github
2601_962097363 小时前
1. 使用 C 或 C++ 扩展 Python
python·api·c·引用计数·扩展模块