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
其實都是想嘗試一些
相关推荐
天天爱吃肉82183 分钟前
跟着创意天才周杰伦学新能源汽车研发测试!3年从工程师到领域专家的成长秘籍!
数据库·python·算法·分类·汽车
m0_7155753415 分钟前
使用PyTorch构建你的第一个神经网络
jvm·数据库·python
甄心爱学习17 分钟前
【leetcode】判断平衡二叉树
python·算法·leetcode
深蓝电商API21 分钟前
滑块验证码破解思路与常见绕过方法
爬虫·python
Ulyanov22 分钟前
Pymunk物理引擎深度解析:从入门到实战的2D物理模拟全攻略
python·游戏开发·pygame·物理引擎·pymunk
sensen_kiss34 分钟前
INT303 Coursework1 爬取影视网站数据(如何爬虫网站数据)
爬虫·python·学习
玄同7651 小时前
我的 Trae Skill 实践|使用 UV 工具一键搭建 Python 项目开发环境
开发语言·人工智能·python·langchain·uv·trae·vibe coding
Yorlen_Zhang1 小时前
Python Tkinter Text 控件完全指南:从基础编辑器到富文本应用
开发语言·python·c#
HAPPY酷1 小时前
C++ 和 Python 的“容器”对决:从万金油到核武器
开发语言·c++·python
gpfyyds6662 小时前
Python代码练习
开发语言·python