videosays
v1.2.5
Published
Videosays CLI for video transcription, video to text, speech to text, subtitles, and AI agent workflows
Downloads
748
Keywords
Readme
videosays
AI-agent-friendly CLI for video transcription, video to text, speech to text, subtitle extraction, and transcript export.
Videosays turns supported video links or share text into clean transcript text, timestamped timelines, SRT subtitles, and VTT subtitles.
中文:Videosays 是面向 AI Agent 和命令行用户的视频转文字 CLI,支持把公开视频链接或分享文本转成纯文本、带时间轴文本、SRT 字幕和 VTT 字幕。
Supported platforms include Douyin, TikTok, Xiaohongshu, Bilibili, YouTube, and Kuaishou. Availability can vary by source video accessibility, region, platform restrictions, and whether captions or transcribable audio are available.
支持平台包括抖音、TikTok、小红书、Bilibili、YouTube、快手。实际可用性会受视频访问权限、地区、平台限制、字幕或音频可获取性影响。
Install
# Use directly
npx videosays login
# Or install globally
npm install -g videosays
videosays loginRequires Node.js >= 18.
Quick Start
# First use: authorize in the browser, then save API key to ~/.videosays
videosays login
# Transcribe a video link or share text
videosays transcribe "https://www.tiktok.com/@creator/video/123456"
# Retrieve the result after the returned Task ID is ready
videosays status "<task-id>"Commands
videosays login
videosays login --api-key <api-key>
videosays logout
videosays whoami
videosays transcribe <video-link-or-share-text>
videosays transcribe <video-link-or-share-text> --format text
videosays transcribe <video-link-or-share-text> --format timeline
videosays transcribe <video-link-or-share-text> --format srt
videosays transcribe <video-link-or-share-text> --format vtt
videosays transcribe <video-link-or-share-text> --force-new
videosays status <taskId>
videosays status <taskId> --format srt
videosays batch <links.txt>
videosays batch <links.txt> --force-new
videosays batch status <batch-id>
videosays batch continue <batch-id>
videosays batch cancel <batch-id>
videosays balance
videosays history [limit]
videosays helpSubmission commands return promptly with a server Task ID or Batch ID. Repeated videos reuse the same account's active task or completed result by default and do not consume more minutes. Requests carry an idempotency key, so a temporary network retry resolves to the same resource. Use --force-new only for a fresh, normally billed transcription. Capture the returned ID and use status or batch status as short, one-shot checks; never rerun a submission command to check progress. Add --wait only for an interactive terminal that should remain attached.
Batch status checks use a lightweight response while work is running and retrieve complete Task results once after the batch finishes. If the batch pauses for insufficient credits, completed Tasks remain intact; top up and run batch continue <batch-id> to resume the remaining Tasks under the same Batch ID.
For multiple links, put one input per line in a text file and use batch. Duplicate lines keep their batch positions, while their effective status/result follows the canonical task unless --force-new is used. The server processes Tasks through its bounded queue and reserves credit atomically. If credit is insufficient, unstarted Tasks are skipped; top up and run batch continue <batch-id>.
Transcription Output
By default, transcribe submits and immediately prints a pending receipt. status prints transcript text after completion. Both commands use text output unless another format is requested.
Use --format when the user asks for a different result shape:
videosays transcribe "<video-link>" --format text
videosays status "<task-id>" --format timeline
videosays status "<task-id>" --format srt
videosays status "<task-id>" --format vttFormats:
text: plain transcript, defaulttimeline: timestamped transcript segmentssrt: SRT subtitle file contentvtt: VTT subtitle file content
输出格式:
text: 纯文本,默认格式timeline: 带时间轴分段srt: SRT 字幕vtt: VTT 字幕
If a task is still running, the command prints a pending block:
VIDEOSAYS_TASK_PENDING
task_id=<task-id>
status=processing
next=videosays status <task-id>Run the next command later until transcript text or the requested format is returned.
Errors are printed to stderr and exit non-zero:
Error: 余额不足,请充值后再提交任务。
Code: insufficient_credits
Next: videosays balance
Recharge: https://videosays.com/dashboard/billingConfiguration
The API key is saved to ~/.videosays by default.
Environment variables:
export VIDEOSAYS_API_KEY="vs_xxxxx"
export VIDEOSAYS_API_URL="https://api.videosays.com"License
MIT
