出海助手-语音转写 / Whisper (CLI)
> 本技能改造自开源技能 openai-whisper(来源:openclaw/openclaw,openclaw 开源技能生态)。已完整保留原始运行文件(scripts/references/assets 与 LICENSE),并新增中文出海使用说明。原始英文说明见文末「English (Original)」与同目录 SKILL.original.md。
功能说明 / Functional Overview
用 OpenAI whisper 在本地把音频转写成文字,支持多种格式,也能把外语音频直接翻译。
适用场景 / Use Cases
- 会议录音、访谈、语音备忘录转文字
- 把音频翻译成英文(或指定语言)字幕
使用方法 / How to Use
- 转写:
whisper /path/audio.mp3 --model medium --output_format txt --output_dir . - 翻译:
whisper /path/audio.m4a --task translate --output_format srt
示例 / Examples
whisper meeting.m4a --model small --output_format vtt
限制说明 / Limitations
- 首次运行会把模型下载到
~/.cache/whisper。 - 本环境默认
--model turbo;小模型更快、大模型更准,按需取舍。 - 转写在本地进行,注意音频文件体积与显存 / 算力。
English (Original) / 英文原文(完整保留)
> The section below is the original skill definition, preserved verbatim for traceability and full functionality.
Whisper (CLI)
Use whisper to transcribe audio locally.
Quick start
whisper /path/audio.mp3 --model medium --output_format txt --output_dir .whisper /path/audio.m4a --task translate --output_format srt
Notes
- Models download to
~/.cache/whisperon first run. --modeldefaults toturboon this install.- Use smaller models for speed, larger for accuracy.