Transcription Skill
This skill provides transcription capabilities for audio and video files using the OpenAI Whisper API endpoint.
Quick Start
Send me an audio or video file and I'll transcribe it automatically! Just attach the file to your message.
Manual Usage
You can also run the script directly from the command line:
CODEBLOCK0
For video files:
CODEBLOCK1
Supported Formats
Audio: mp3, wav, mp4, mpeg, mpga, m4a, ogg, webm, flac, aac, wma
Video: mp4, mov, avi, mkv, webm (audio extracted automatically)
Usage Examples
How to use the python scripts for transcription:
python3 transcribe_audio.py inputfile.ogg
Features
- - Extract timestamps in output when needed
- Batch processing - send multiple files at once
- Video support - automatically extracts audio from video files
- Multiple output formats - text, JSON, SRT subtitles, VTT captions
Technical Details
- - API Endpoint:
http://192.168.0.11:8080/v1 (local Whisper endpoint) - Model: whisper-small (default)
- Temperature: 0.0 (deterministic results)
- Auto-extraction: ffmpeg handles video → audio conversion
Notes
- - Ensure files are clear and not too noisy for best results
- Language auto-detection works well for most cases
- For batch processing, send files one at a time or specify "batch" in your request
Scripts: scripts/transcribe_audio.py,
scripts/transcribe_simple.py
References: INLINECODE3
转录技能
本技能通过OpenAI Whisper API端点提供音频和视频文件的转录功能。
快速开始
向我发送音频或视频文件,我将自动为您转录!只需将文件附加到您的消息中即可。
手动使用
您也可以直接从命令行运行脚本:
bash
cd /home/openclaw/.openclaw/workspace/skills/transcription/scripts
python3 transcribe_audio.py inputfile.ogg
对于视频文件:
bash
python3 transcribe_audio.py video.mp4
支持的格式
音频: mp3、wav、mp4、mpeg、mpga、m4a、ogg、webm、flac、aac、wma
视频: mp4、mov、avi、mkv、webm(自动提取音频)
使用示例
如何使用Python脚本进行转录:
python3 transcribe_audio.py inputfile.ogg
功能特性
- - 提取时间戳 - 在输出中按需显示
- 批量处理 - 一次发送多个文件
- 视频支持 - 自动从视频文件中提取音频
- 多种输出格式 - 文本、JSON、SRT字幕、VTT字幕
技术细节
- - API端点: http://192.168.0.11:8080/v1(本地Whisper端点)
- 模型: whisper-small(默认)
- 温度: 0.0(确定性结果)
- 自动提取: ffmpeg处理视频到音频的转换
注意事项
- - 确保文件清晰且噪音较小,以获得最佳效果
- 语言自动检测在大多数情况下表现良好
- 对于批量处理,请逐个发送文件或在请求中指定batch
脚本: scripts/transcribe
audio.py、scripts/transcribesimple.py
参考: references/transcription_guide.md