关于 openai-whisper
这是一个使用 Whisper 在本地转录音频的命令行技能,支持生成文本或翻译输出,并可选择在速度与准确度之间权衡的模型。
主要功能
- 01本地音频转录
- 02音频翻译任务
- 03TXT 和 SRT 输出格式
- 04可选 Whisper 模型
适用场景
- 01将音频文件转为文本
- 02从音频生成字幕
- 03将音频翻译并输出字幕
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ sundial-org/ awesome-openclaw-skills --skill openai-whisper安装后在 Claude Code 中输入/openai-whisper确认已加载。
详细介绍
Whisper(CLI)
使用 whisper 在本地转录音频。
快速开始
whisper /path/audio.mp3 --model medium --output_format txt --output_dir .whisper /path/audio.m4a --task translate --output_format srt
注意事项
- 首次运行时,模型会下载到
~/.cache/whisper。 - 在此安装中,
--model默认为turbo。 - 使用较小的模型可提高速度,使用较大的模型可提高准确度。
评论
支持 Markdown