chough
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstallation
安装
Arch Linux:
macOS:
Windows:
Source:
paru -S chough-binbrew install --cask hyperpuncher/tap/choughwinget install choughgo install github.com/hyperpuncher/chough/cmd/chough@latestRequires: for audio/video support
ffmpegArch Linux:
macOS:
Windows:
源码安装:
paru -S chough-binbrew install --cask hyperpuncher/tap/choughwinget install choughgo install github.com/hyperpuncher/chough/cmd/chough@latest依赖: 以支持音频/视频处理
ffmpegQuick Reference
快速参考
bash
undefinedbash
undefinedBasic transcription (text to stdout)
基础转录(文本输出到标准输出)
chough audio.mp3
chough audio.mp3
JSON with timestamps
带时间戳的JSON格式
chough -f json podcast.mp3 > transcript.json
chough -f json podcast.mp3 > transcript.json
WebVTT subtitles
WebVTT字幕格式
chough -f vtt -o subs.vtt video.mp4
chough -f vtt -o subs.vtt video.mp4
Low memory (30s chunks)
低内存模式(30秒分片)
chough -c 30 audiobook.mp3
undefinedchough -c 30 audiobook.mp3
undefinedFlags
命令行参数
| Flag | Description | Default |
|---|---|---|
| Chunk size in seconds | 60 |
| Output: text, json, vtt | text |
| Output file | stdout |
| Show version | - |
| 参数 | 说明 | 默认值 |
|---|---|---|
| 分片大小(秒) | 60 |
| 输出格式:text、json、vtt | text |
| 输出文件路径 | 标准输出 |
| 显示版本信息 | - |
Chunk Size Guide
分片大小指南
- 15-30s: Low memory (~500MB), higher error rate
- 60s: Balanced (default) - ~1.6GB RAM
- 15-30秒:低内存占用(约500MB),错误率较高
- 60秒:平衡模式(默认)- 约1.6GB内存
Performance
性能表现
| Duration | Time | Speed |
|---|---|---|
| 15s | 2.0s | 7.4x realtime |
| 1min | 4.3s | 14.1x realtime |
| 5min | 16.2s | 18.5x realtime |
| 30min | 90.2s | 19.9x realtime |
| 时长 | 耗时 | 处理速度 |
|---|---|---|
| 15秒 | 2.0秒 | 7.4倍实时速度 |
| 1分钟 | 4.3秒 | 14.1倍实时速度 |
| 5分钟 | 16.2秒 | 18.5倍实时速度 |
| 30分钟 | 90.2秒 | 19.9倍实时速度 |
Troubleshooting
故障排查
Out of memory: Use or
Model fails: Check internet, verify is writable
ffmpeg errors: Ensure ffmpeg is installed
-c 30-c 15$XDG_CACHE_HOME内存不足: 使用 或 参数
模型加载失败: 检查网络连接,确认 目录可写入
ffmpeg错误: 确保已安装ffmpeg
-c 30-c 15$XDG_CACHE_HOMENotes
注意事项
- First run downloads ~650MB model to
$XDG_CACHE_HOME/chough/models - Auto-extracts audio from video files
- Set env var to use custom model path
CHOUGH_MODEL - VTT groups tokens into subtitle cues automatically
- 首次运行时会下载约650MB的模型到 目录
$XDG_CACHE_HOME/chough/models - 自动从视频文件中提取音频
- 设置环境变量 可指定自定义模型路径
CHOUGH_MODEL - VTT格式会自动将分词结果分组为字幕片段