360 Secure SkillHub
360 安全技能中心

Videosays · Video to Text

通过命令行调用 Videosays 服务,将单个视频链接或分享文本转写为口语稿、时间戳文本及 SRT/VTT 字幕;支持 2–100 条批量任务、抖音主页/合集浏览与选择,以及余额、历史和任务状态查询。需要 Node.js、npx、网络和账号授权。

分类:效率
wegofuture
热度 46.31
最近更新 2026-12-02 11:47:54

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add wegofuture/videosays
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
videosays
description
Transcribe one video or a batch of video links, browse a Douyin creator profile (抖音主页) or collection (抖音合集), and select works or episodes for transcription. Supports spoken scripts, timestamped transcripts, SRT/VTT subtitles, balance and history across supported video platforms.

Videosays Video to Text

Use npx -y videosays@latest to submit video links and retrieve transcript text or subtitles. Commands resolve the current npm latest release at execution time, so a CLI update does not require republishing this Skill. The CLI sends the configured API key and submitted links/share text to the configured Videosays API. CLI source: https://github.com/xwchris/videosays-agent-tools/tree/main/packages/cli .

Accept video links or copied share text when the user asks for a spoken script, transcript, or subtitle file. The CLI does not accept local video files. Source accessibility and supported content depend on the service response.

Language and API

  • Reply in the user's language: Chinese for Chinese requests, English for English requests. Explain CLI errors in that language; preserve command names, task IDs, and subtitle timestamps.
  • Return the actual transcript in its original language. Summarize or translate it only when requested, and distinguish that work from the source transcript.
  • The CLI's default API is https://api.videosays.cn, serving the same backend and accounts as .com. Language does not select a different backend. Honor an explicitly configured VIDEOSAYS_API_URL.
  • Existing global installations can update with npm install -g videosays@latest. Skill commands use npx -y videosays@latest, which resolves the current published CLI without relying on a globally installed copy. Honor an explicit VIDEOSAYS_API_URL and never switch domains automatically.

Requirements

  • Node.js 18 or newer
  • npx

Authentication

Before the first authenticated operation in a session, run:

npx -y videosays@latest whoami

If authentication is missing, run:

npx -y videosays@latest login

Ask the user to open the printed authorization URL, sign in, and approve the CLI. If the user explicitly provides an API key, run npx -y videosays@latest login --api-key "$VIDEOSAYS_API_KEY". Never print or reveal the API key.

Single Link

Use this flow for one individual video. For a Douyin profile or collection, use the source workflow below. For a mixed request, keep each source separate and batch the individual video links together.

Submit one link:

VIDEOSAYS_CLIENT_SURFACE=agent_skill VIDEOSAYS_CLIENT_NAME=videosays-skill npx -y videosays@latest transcribe "<video-link-or-share-text>"

Submission returns quickly. It normally prints:

VIDEOSAYS_TASK_PENDING
task_id=<task-id>
status=<status>
next=videosays status <task-id>

Capture task_id. Wait a reasonable interval, then run the printed one-shot status command:

npx -y videosays@latest status "<task-id>"

If the task is still running, status immediately prints its current state and the next command. Repeat status checks until the command prints transcript content or a stable error. Preserve the requested format on status checks:

npx -y videosays@latest status "<task-id>" --format timeline
npx -y videosays@latest status "<task-id>" --format srt
npx -y videosays@latest status "<task-id>" --format vtt

Each submission gets a client-generated submissionId sent as Idempotency-Key. If a command ends ambiguously, repeat the same command with the same --submission-id <uuid>; the server returns the original Task safely. Equivalent active work for the same account is reused, and completed work is reused by default. Use --force-new only when a fresh transcription is intentional. Treat transcribe only as creation: capture its returned server Task ID and use status for every later check. Never resubmit a link as a status check with a new submission id.

The CLI automatically retries a transient network disconnect with the same submission ID while rotating resolved API addresses. It does not retry an explicit HTTP error and never changes domains. If the command still ends before printing a Task ID, do not resubmit with a new id. Retry with the same --submission-id when it is available; otherwise check npx -y videosays@latest history for a recent matching task and report the ambiguous outcome if it cannot be recovered.

Multiple Links

For 2–100 individual videos, use one server batch, with one link or share message per line. Keep source links out of this file. If the request exceeds 100 videos, explain the per-batch limit and agree the ranges when the intended scope is unclear.

  1. Write one link or share text per line to a temporary text file. Duplicate lines keep their batch positions, while their effective status/result follows the canonical Task by default. Use --force-new when the user explicitly requests duplicate processing.
  2. Submit once:
VIDEOSAYS_CLIENT_SURFACE=agent_skill VIDEOSAYS_CLIENT_NAME=videosays-skill npx -y videosays@latest batch links.txt
  1. Capture the server-generated batchId from stdout.
  2. Wait a reasonable interval, then make a one-shot status request:
npx -y videosays@latest batch status "<batch-id>"
  1. Repeat status checks until the batch reaches completed, partial, failed, cancelled, or paused. Stop polling when paused and explain what is needed to continue.

While a batch is running, batch status uses a lightweight status response. When the batch finishes, the CLI retrieves the complete results once. Do not replace this with per-Task polling.

Every batch <file> submission sends a client-generated Idempotency-Key. Repeat an ambiguous submission with the same --submission-id <uuid> to receive the original server Batch ID; an equivalent active batch for the same account also converges on one Batch ID. Completed work is reused by default. Use --force-new only for an intentional fresh batch. Batch submission and status commands return promptly. Do not rerun the input file as a status check, do not invent a Batch ID, and do not use batch resume.

If batch submission ends before printing a Batch ID, do not automatically submit the file with a new id: the server may already have accepted it. Retry with the same --submission-id if one is available; otherwise check recent tasks and report the ambiguous outcome if it cannot be recovered.

Videosays creates every batch item as an ordinary Task and runs those Tasks through the normal queue. Each Task must reserve credit atomically before provider submission, so the balance cannot be overspent. If the batch reports paused, continuation.required, or stopReason: insufficient_credits, completed Tasks are preserved and unstarted Tasks may be skipped. Ask the user to top up, then after confirmation run:

npx -y videosays@latest batch continue "<batch-id>"

Then continue using batch status with the same Batch ID.

Douyin creator profiles and collections

Use this flow to list public works, browse a collection, or transcribe selected entries. Preview and pagination do not start transcription. The same account and API origin must be used throughout.

npx -y videosays@latest source preview "<one link or copied share message>" --kind creator
npx -y videosays@latest source preview "<one link or copied share message>" --kind collection
npx -y videosays@latest source show "<source-id>"
npx -y videosays@latest source more "<source-id>"

Choose one preview command. Clear long links can omit --kind. For an opaque short link, use the user's stated intent (主页 or 合集); ask which kind only when the request and share text leave it ambiguous. A request for one video uses transcribe.

Keep the returned sourceId. Show list numbers, titles, dates and durations relevant to the request. show reads loaded entries. more fetches one page and returns the cumulative list; track sourceItemId to avoid repeating entries. If a page request loses its response or the source is busy, use show before fetching again. Stop when the requested range is covered, hasMore is false, or paging makes no progress. reportedTotal may be unknown.

For “看看主页”, present the preview. For “转这个主页” without a range, ask which works to process. For a specific range, continue directly. List numbers follow platform order. Check titles for named episodes and publishedAt for date-based requests; a pinned work may appear first. Describe the dates actually covered. If the user requests all works, check hasMore before describing the selection as complete. Report unavailable items and preserve the requested scope.

VIDEOSAYS_CLIENT_SURFACE=agent_skill VIDEOSAYS_CLIENT_NAME=videosays-skill npx -y videosays@latest source submit "<source-id>" --select 2,5-8 --submission-id "<uuid>"
npx -y videosays@latest batch status "<batch-id>" --output results.json

Select 1–100 distinct available list numbers per batch. Submit only public content the user has the right to process under the Videosays Terms. Generate a UUID for the intended selection and retain it with the source ID, numbers and options. Retry an ambiguous submission with those same values. Changing the selection or requesting --force-new needs a fresh UUID. Default reuse applies within the same account. The preview shows video durations; the service calculates credit minutes at admission. If creation returns insufficient_credits, report the minutes supplied by the API and keep the selection for use after top-up. Once a batch exists, use its returned batchId with the ordinary batch status workflow.

Optional Interactive Waiting

Only use --wait when a human explicitly wants the terminal to remain attached:

npx -y videosays@latest transcribe "<video-link>" --wait
npx -y videosays@latest batch links.txt --wait

Agents must use the default immediate-return workflow so every tool call produces prompt, structured stdout.

Other Commands

npx -y videosays@latest balance
npx -y videosays@latest history
npx -y videosays@latest doctor
npx -y videosays@latest batch cancel "<batch-id>"

Errors

Read stderr when a command exits non-zero. Do not treat error output or a pending receipt as transcript content.

Error: <message>
Code: <error-code>
Next: <recommended-command>
Recharge: <billing-url>

For insufficient_credits, do not repeatedly resubmit. Report the balance issue and recharge URL. For media or link errors such as media_resolve_failed, media_unavailable, or media_inaccessible, ask for another accessible video link.

For connection errors, run npx -y videosays@latest doctor and share its output with support. The command probes the configured API's resolved addresses without sending the API key.

Links