返回顶部
n

newtranx-cli

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
275
下载量
1
收藏
概述
安装方式
版本历史

newtranx-cli

# newtranx CLI (`newtranx`) Translate videos and podcasts from the terminal using the newtranx API. ## Installation ```bash npx --yes newtranx-ai ``` ## Usage Process ### 1. login ```bash npx newtranx-ai login ``` Automatically obtain device ID, call the registration login interface to obtain token, and save it to `~/. newtranx/config. json `. The token is valid for 15 days. ### 2. Upload videos Supports local files and HTTP URLs, only supports mp4 format. If the format is not supported, please use ffmepg to transcode to mp4 file size not exceeding 5GB and duration not exceeding 4 hours. Important: URLs containing ? or & must be quoted to avoid shell glob errors. ```bash npx newtranx-ai upload ./video.mp4 # HTTP URL npx newtranx-ai upload https://example.com/video.mp4 ``` Restrictions: -Format: mp4 only -Size: not exceeding 5GB Automatically upload videos in 4MB chunks and display upload progress. After uploading, output the task ID. ### 3. Submit translation task ```bash npx newtranx-ai translate --id <taskID> \ --audio-lang en-US \ --trans-lang zh-CN \ --max-speakers 2 \ --export-subtitle ``` Parameter description: - `--id` (Required): Upload the returned task ID - `--audio-lang`(Required): Call the ` npx newtranx-ai language ` command in the original language of the video to view - `--trans-lang`(Required): Call the ` npx newtranx-ai language ` command to view the target translation language - `--max-speakers`: Number of speakers - `--export-subtitle`: Do you want to merge subtitles into the video - `--re-transwrite`: Do you want to rewrite it - `--subtitle-font-size`: Subtitle Font Size - `--subtitle-max-chars`: Maximum number of characters per subtitle segment - `--subtitle-outline-color`: Subtitle outline color - `--subtitle-primary-color`: Subtitle main color ### 4. Regularly query query results ```bash # default output translated video download link npx newtranx-ai status --id <taskID> # output original VTT subtitles download link npx newtranx-cli status --id <taskID> --subtitle # output translated VTT subtitles download link npx newtranx-cli status --id <taskID> --targetSubtitle # output metadata include speaker information download link npx newtranx-cli status --id <taskID> --metadata ``` When 'iterationStatus==Succeeded', the result contains: - Translated video download link - Source language subtitle file link - Target language subtitle file link - Metadata file link ### 5. Query supported languages ```bash npx newtranx-ai language npx newtranx-ai language --region CN ``` Return a list of language codes and names that can be used for the ` audio lang ` and ` trans lang ` parameters of the ` translate ` command. ## Usage Tips 1. If the token expires, call `npx newtranx ai login` and then retry. 2. It must be called according to the process.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ai-video-translation-1776110717 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ai-video-translation-1776110717 技能

通过命令行安装

skillhub install ai-video-translation-1776110717

下载 Zip 包

⬇ 下载 newtranx-cli v1.0.0

文件大小: 1.93 KB | 发布时间: 2026-4-14 16:02

v1.0.0 最新 2026-4-14 16:02
Initial release of ai-video-translation skill.

- Introduces newtranx CLI for translating MP4 video files from the terminal.
- Supports upload from local files or HTTP URLs (MP4 only, ≤5GB, ≤4 hours).
- Allows translating audio between languages with speaker recognition and subtitle export.
- Provides commands for task management, including login, upload, translation, status check, and language query.
- Enables exporting original and translated videos, subtitles, and speaker metadata.
- Includes detailed command usage and parameters for customization.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部