关于 openai-whisper
openai-whisper 是用于本地转录音频的命令行工具,适合需要将音频转换为文字或字幕的用户。它可选择模型,并支持翻译任务及多种输出格式。
主要功能
- 01本地转录音频
- 02选择转录模型
- 03输出 TXT 或 SRT
- 04支持音频翻译任务
适用场景
- 01将 MP3 转录为文本文件
- 02将 M4A 音频翻译并生成字幕
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ openclaw/ openclaw --skill openai-whisper安装后在 Claude Code 中输入/openai-whisper确认已加载。
详细介绍
Whisper(命令行)
使用 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