闲社服务运行正常AI智能体自动化平台
n

newtranx命令行

技能标识:newtranx-cli

>

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
1
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

newtranx命令行

newtranx CLI (newtranx)

使用newtranx API从终端翻译视频和播客。

安装

bash
npx --yes newtranx-ai

使用流程

1. 登录

bash
npx newtranx-ai login

自动获取设备ID,调用注册登录接口获取令牌,并保存至~/.newtranx/config.json。令牌有效期为15天。

2. 上传视频

支持本地文件和HTTP URL,仅支持mp4格式。若格式不支持,请使用ffmpeg转码为mp4。文件大小不超过5GB,时长不超过4小时。
重要提示:包含?或&的URL必须加引号,以避免shell通配符错误。

bash
npx newtranx-ai upload ./video.mp4

HTTP URL

npx newtranx-ai upload https://example.com/video.mp4

限制条件:

  • - 格式:仅支持mp4
  • 大小:不超过5GB

自动以4MB分块上传视频并显示上传进度。上传完成后输出任务ID。

3. 提交翻译任务

bash
npx newtranx-ai translate --id \
--audio-lang en-US \
--trans-lang zh-CN \
--max-speakers 2 \
--export-subtitle

参数说明:

  • - --id(必填):上传返回的任务ID
  • --audio-lang(必填):视频原始语言,调用npx newtranx-ai language命令查看
  • --trans-lang(必填):目标翻译语言,调用npx newtranx-ai language命令查看
  • --max-speakers:说话人数
  • --export-subtitle:是否将字幕合并到视频中
  • --re-transwrite:是否重新改写
  • --subtitle-font-size:字幕字体大小
  • --subtitle-max-chars:每段字幕最大字符数
  • --subtitle-outline-color:字幕轮廓颜色
  • --subtitle-primary-color:字幕主色

4. 定期查询结果

bash

默认输出翻译后视频下载链接


npx newtranx-ai status --id

输出原始VTT字幕下载链接

npx newtranx-cli status --id --subtitle

输出翻译后VTT字幕下载链接

npx newtranx-cli status --id --targetSubtitle

输出包含说话人信息的元数据下载链接

npx newtranx-cli status --id --metadata

当iterationStatus==Succeeded时,结果包含:

  • - 翻译后视频下载链接
  • 源语言字幕文件链接
  • 目标语言字幕文件链接
  • 元数据文件链接

5. 查询支持的语言

bash
npx newtranx-ai language

npx newtranx-ai language --region CN

返回可用于translate命令的audio-lang和trans-lang参数的语言代码和名称列表。

使用提示

  1. 1. 如果令牌过期,调用npx newtranx-ai login后重试。
  2. 必须按流程顺序调用。

标签

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

下载

⬇ 下载 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.
返回顶部