Repository navigation
🎉 vot-cli-live v1.7.5 - Machine-Readable Output Modes
🎯 Overview
This release adds machine-readable output modes (--quiet and --json) for seamless integration with external tools, plus automatic translation polling.
✨ New Features
1. --quiet Mode (Issue #1)
Minimal output for scripts and pipes:
mpv Integration:
#!/usr/bin/env bash
url="$1"
vot_audio=$(vot-cli-live --quiet "$url")
mpv --fs "$url" --external-file="$vot_audio"Batch Processing:
while read url; do
audio=$(vot-cli-live --quiet "$url" 2>/dev/null)
[ $? -eq 0 ] && echo "$url -> $audio"
done < urls.txt2. --json Mode
Structured JSON output:
[
{
"url": "https://youtu.be/jNQXAC9IVRw",
"platform": "youtube",
"videoTitle": "Me_at_the_zoo",
"success": true,
"audioUrl": "https://vtrans.s3.yandex.net/...",
"voiceType": "live"
}
]jq Processing:
vot-cli-live --json "$url" | jq -r '.[].audioUrl'3. Translation Polling 🔄
Automatic waiting for translation (up to 5 minutes):
⏳ Translation in progress... (30s elapsed, attempt 3/30)
📦 Installation
npm install -g vot-cli-live🚀 Usage Examples
# Quiet mode - only URL output
vot-cli-live --quiet "https://www.youtube.com/watch?v=VIDEO_ID"
# JSON mode - structured data
vot-cli-live --json "https://www.youtube.com/watch?v=VIDEO_ID"
# With video merge
vot-cli-live --quiet --merge-video "URL"
# Outputs: /path/to/video.mp4🎯 Use Cases
✅ mpv/vlc integration - play with translation overlay
✅ Batch processing - process multiple videos
✅ CI/CD pipelines - automated testing
✅ Python/Node.js scripts - programmatic access
🙏 Credits
- Original vot-cli: @ToilOfficial
- Fork maintainer: @fantomcheg
🔗 Links
- 📦 npm: https://www.npmjs.com/package/vot-cli-live
- 🐙 GitHub: https://github.com/fantomcheg/vot-cli-live
- 📚 Examples: EXAMPLES.md
Closes #1