Token导航 LogoToken导航TokenDH.com
效率执行命令clawhub未标认证来源可访问clear审计提醒

speech-translation语音翻译

Agent Skill

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

总安装

5,808

周安装

242

GitHub Stars

公开资料未说明

下载量

1,936
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:speech-translation(语音翻译)
来源仓库:https://github.com/decin/speech-translation
安装命令:
openclaw skills install speech-translation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install speech-translation

简介

构建端到端语音翻译流水线实现多语种口语互转功能。

  • 结合Whisper与专业翻译引擎完成从ASR到MT的全链路处理。
  • 适用于国际会议同传、跨国客服系统等实时沟通应用场景。
  • 需分别配置Whisper与翻译服务的API密钥方可正常使用全部特性。
  • 输出结果仅供参考实际商用前应进行人工校对修正准确性误差。

SKILL.md

name
speech-translation
description
Build, adapt, or run an audio-processing workflow that takes spoken audio, transcribes it with Whisper or faster-whisper, translates the transcript using the current agent model by default, and synthesizes translated speech with Piper, the OpenClaw tts tool, or a mock backend. Use when the user wants 语音转写、翻译、译文语音合成, wants an existing voice translation prototype operationalized, or wants a chat-native flow where sending a voice message automatically yields transcript text, translation text, and translated audio.

Voice Translate

Use this skill for two closely related modes:

  1. Chat-native mode: the user sends audio or a voice note in OpenClaw; return transcript text, translation text, and translated audio.
  2. Local pipeline mode: run a deterministic file-based pipeline that writes transcript, translation, wav, and metadata artifacts.

Default to an LLM-assisted translation workflow: let the current agent produce the translation, save it to a file when using the local pipeline, or use the surrounding agent turn directly when responding in chat.

Workflow

A. Chat-native mode

Use this when an inbound message already contains an audio transcript from OpenClaw media understanding, or when the user asks you to process a voice message conversationally.

  1. Detect that the user sent audio or that the request is for voice translation.
  2. Obtain or confirm the transcript text.
  3. Translate with the current model.
  4. Send the transcript text to the user.
  5. Send the translated text to the user.
  6. Synthesize the translated text as audio:

- prefer the OpenClaw tts tool when you need an immediate chat reply with audio - prefer Piper when you need a local wav artifact

  1. Keep the output order stable: transcript first, translation second, audio last.

B. Local pipeline mode

  1. Confirm input/output expectations: source language, target language, output directory, and whether the run should be real or mock.
  2. Choose backends:

- faster-whisper for real transcription, mock for pipeline testing. - llm as the default translation path when an agent/model is available. - service only when unattended HTTP translation is preferable. - manual only as a fallback. - piper for real TTS, mock for dry-run testing.

  1. Run transcription.
  2. If using the default llm path, read the transcript and translate it with the current model. Save the translated text to a file.
  3. Run synthesis/output writing with --translation-file.
  4. Inspect outputs:

- 01_transcript.txt - 02_translation.txt - 03_translation.wav - result.json

  1. If the user wants chat updates during processing, pass notifier commands with --transcript-command, --translation-command, and --audio-command.

Preferred execution patterns

Default LLM-assisted path

Use this when the agent handling the task can translate the transcript itself.

  1. Run the pipeline once transcription is available, or run the full command after preparing translation.txt.
  2. Save the model-produced translation to a file.
  3. Invoke:
bash scripts/run_voice_translate_llm.sh \
  /path/to/input.m4a \
  ./outputs/llm-run \
  zh \
  en \
  /path/to/en_US-lessac-medium.onnx \
  ./translation.txt \
  --whisper-model small \
  --transcribe-backend faster-whisper \
  --tts-backend piper

Read references/llm-translation-pattern.md when you need the exact orchestration pattern or a reusable translation prompt.

Mock end-to-end validation

Use this first when you need to validate the pipeline structure without model/runtime dependencies.

python3 scripts/run_voice_translate.py \
  --input references/examples/mock-input.txt \
  --output-dir ./outputs/mock-run \
  --source-lang zh \
  --target-lang en \
  --transcribe-backend mock \
  --translation-file ./translated.txt \
  --translation-backend llm \
  --no-interactive-translate \
  --tts-backend mock \
  --piper-model ./dummy.onnx

Notes:

  • mock transcription reads plain text from the input file.
  • mock TTS writes a silent wav file.
  • --piper-model is still required by the current CLI shape even when using mock TTS; use any placeholder path.
  • llm mode currently means the translation must already exist in --translation-file.

Service fallback

python3 scripts/run_voice_translate.py \
  --input /path/to/input.m4a \
  --output-dir ./outputs/service-run \
  --source-lang zh \
  --target-lang en \
  --whisper-model small \
  --transcribe-backend faster-whisper \
  --translation-backend service \
  --translation-service-url http://127.0.0.1:8000/translate \
  --tts-backend piper \
  --piper-model /path/to/en_US-lessac-medium.onnx

Resources

scripts/

  • run_voice_translate.py: primary entrypoint.
  • run_voice_translate_llm.sh: thin wrapper for the default LLM-assisted path.
  • voice_translate_app/: pipeline modules.
  • send_text.py: wrap stage text and forward it via a shell command.
  • send_audio.py: forward generated audio via a shell command.
  • mock_text_sender.py, mock_audio_sender.py: local smoke-test helpers.

references/

  • Read references/runtime-notes.md for dependency/setup details, backend behavior, and integration constraints.
  • Read references/llm-translation-pattern.md when the surrounding agent should perform translation with its own model.
  • Read references/openclaw-chat-mode.md when implementing or following the conversational flow: receive voice, output transcript text, output translation text, then output translated audio.

Editing guidance

  • Keep SKILL.md procedural and short.
  • Put environment- or backend-specific detail in references.
  • Treat llm as the preferred translation path for agent-driven workflows.
  • In chat-native mode, preserve the user-visible ordering: transcript text, translation text, then audio.
  • Prefer OpenClaw tts for immediate conversational audio replies; prefer Piper for local wav artifacts and offline pipelines.
  • If the user wants tighter OpenClaw integration, add an attachment-aware outer workflow or hook instead of rewriting ASR/TTS first.
  • Preserve the current file contract unless the user asks to change it: transcript, translation, wav, metadata JSON.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.56%
按下载量换算1,405

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install speech-translation 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills