OpenAI最新大语言模型Whisper large v3 运行在Google colab的高性能GPU上【合理使用,不要撸太狠】
快速:12分钟语音,2分钟完成识别转换,生成.srt格式字幕,支持99中语言,直接本地播放器就可以用。对于看不懂的大人电影,你也可以自己给他配个字幕,免去到处找字幕的麻烦,让你理解更深。
安装使用Whisper步骤:
➡️ 浏览器访问Google Colaboratory https://colab.research.google.com/
➡️ 更改运行时类型为 GPU
➡️ 运行以下命令安装Whisper:
!pip install git+https://github.com/openai/whisper.git
!sudo apt update && sudo apt install ffmpeg
➡️ 上传音频/视频文件
➡️ 复制粘贴以下命令运行Whisper完成音频转字幕:
!whisper "你的文件名" --model medium
➡️ 下载 .txt or .srt file
视频教程:https://youtu.be/HkAHm45Phv4?si=qkwMOU5-n7OCaSKB
主要内容:
00:00 Whisper简介
00:46 Whisper Desktop版本,功能对比
03:02 谷歌Colab介绍
03:42 Colaboratory配置
04:42 Whisper安装
05:55 上传音视频文件
06:59 生成字幕
09:51 下载字幕