voice

voice is a skill for Claude Code, Codex from xyva-yuangui/XyvaClaw. It costs 56 tokens per session (609 once invoked), scanned A, original, MIT.

A voice tool that converts text to spoken audio and audio recordings to text. It uses edge-tts for speech output and either the Whisper API or local whisper.cpp for transcription.

In plain words
What is it for?
Creating MP3, WAV, or OGG speech in many languages, transcribing common audio formats, and choosing between online or offline speech recognition.
Why use it?
It removes the need to handle separate speech and transcription tools or manually convert recordings into text.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating MP3, WAV, or OGG speech in many languages, transcribing common audio formats, and choosing between online or offline speech recognition.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xyva-yuangui/xyvaclaw/voice
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xyva-yuangui/XyvaClaw --skill voice
Clone the repo
git clone --depth 1 https://github.com/xyva-yuangui/XyvaClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for voice

README.md
[![agentmods](https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/voice/github.svg)](https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/voice)
Your own site
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/voice"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/voice/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for voice

Your own site · 80×15
<a href="https://agentmods.dev/skills/xyva-yuangui/xyvaclaw/voice"><img src="https://agentmods.dev/badge/skills/xyva-yuangui/xyvaclaw/voice.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00609
Opus 5 $0.00028 $0.00304
Sonnet 5 $0.00011 $0.00122
Haiku 4.5 $0.00006 $0.00061

Measured 12d ago against content hash f3c386a9311a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

voice scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check.py, scripts/voice_tool.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

config-base/workspace/skills/voice/SKILL.md · 64 lines

What it actually says

Voice — 语音对话

语音合成 (TTS) + 语音识别 (STT) 统一技能。

功能

TTS(文字转语音)

  • 引擎:edge-tts(微软免费 TTS,200+ 语音)
  • 输出格式:MP3 / WAV / OGG
  • 支持语言:中文、英文、日文、韩文等 50+ 语言

STT(语音转文字)

  • 方式 1:OpenAI Whisper API(需 API Key,速度快)
  • 方式 2:本地 whisper.cpp(离线,需下载模型)
  • 支持格式:MP3 / WAV / M4A / OGG / FLAC

使用方式

# 健康检查
python3 scripts/check.py

# TTS: 文字转语音
python3 scripts/voice_tool.py tts --text "你好,我是你的AI助手" --output hello.mp3
python3 scripts/voice_tool.py tts --text "Hello world" --voice en-US-AriaNeural --output hello.mp3

# TTS: 列出可用语音
python3 scripts/voice_tool.py tts-voices --lang zh

# STT: 语音转文字(Whisper API)
python3 scripts/voice_tool.py stt --input audio.mp3
python3 scripts/voice_tool.py stt --input audio.mp3 --lang zh

# STT: 语音转文字(本地 whisper.cpp)
python3 scripts/voice_tool.py stt --input audio.mp3 --engine local

配置

  • TTS 无需配置,开箱即用
  • STT Whisper API 需设置 OPENAI_API_KEY 环境变量
  • STT 本地模式需安装 whisper.cpp 并下载模型

输出目录

$OPENCLAW_HOME/workspace/output/audio/

依赖

  • edge-tts (pip3 install edge-tts) — 安装脚本已自动安装
  • openai (pip3 install openai) — STT API 模式可选
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 64 lines · 56 tokens per session scan A f3c386a9311a

Subscribe to this mod's changes

voice is a skill published in the GitHub repository xyva-yuangui/XyvaClaw (21 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 609 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

imap-smtp-email

Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.

netease-youdao/LobsterAI · 82 tokens

technology-search

Search tech blogs, developer forums, and IT media (TechCrunch, Hacker News, 36氪, etc.) for software and hardware industry updates with heat ranking and EN↔CN translation. Use this skill only when the topic is clearly about programming, software, hardware, AI, or IT infrastructure.

netease-youdao/LobsterAI · 65 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

article-writer

Multi-style article creation skill. Supports 5 writing styles (deep analysis, practical guide, story-driven, opinion, news brief), including complete workflow: material collection → outline → content → formatting. Activated when users mention "write article", "write post", "create", or "draft".

netease-youdao/LobsterAI · 62 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens

content-planner

WeChat Official Account topic planning and content calendar management. Based on WeChat article search and trending analysis, generates differentiated topic recommendations and outputs structured content calendars. Activated when users mention "topic", "planning", "content calendar", "trending", or "what to write next…

netease-youdao/LobsterAI · 63 tokens