AGENT SKILL

text-to-speech

Use PaddleSpeech TTS acoustic models, vocoders, ONNX/static inference, multilingual options, and training recipe guidance safely.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
text-to-speech
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use PaddleSpeech TTS acoustic models, vocoders, ONNX/static inference, multilingual options, and training recipe guidance safely.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Text-to-Speech

Use this sub-skill for paddlespeech tts, TTSExecutor, acoustic/vocoder pairing, multi-speaker and multilingual options, ONNX/static choices, TTS training or synthesis recipe planning, voice cloning/SVS orientation, and TTS-specific troubleshooting.

Common Routes

  • Simple synthesis: read references/cli-and-api.md, then run paddlespeech tts --input ... --output output.wav after approving model downloads.
  • Choose AM/VOC/lang: read references/model-combinations-and-training.md before mixing acoustic models, vocoders, --lang, and --spk_id.
  • Batch Chinese synthesis: use scripts/build_tts_job.py for whitespace-free text job files; use direct quoted --input for English/spaced text.
  • ONNX or streaming TTS: use this sub-skill for model pairing, then route to ../deployment-serving/SKILL.md for server config and streaming protocols.
  • Training/fine-tuning recipes: read references/model-combinations-and-training.md; ask before dataset downloads, GPU jobs, or staged recipe execution.
  • Text frontend, G2P, TN, MFA: route to ../text-processing/SKILL.md when the task is text preparation rather than synthesis itself.

Safe Workflow

paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
paddlespeech tts --am fastspeech2_ljspeech --voc hifigan_ljspeech --lang en --input "Life was like a box of chocolates." --output en.wav
paddlespeech tts --am fastspeech2_aishell3 --voc hifigan_aishell3 --lang zh --spk_id 0 --input "你好" --output spk0.wav

Before running, confirm:

  1. The AM/VOC/lang combination exists.
  2. A pretrained run may download both AM and vocoder archives.
  3. The output extension is a writable .wav path.
  4. CPU can work but may be slow; GPU requires a matching PaddlePaddle GPU runtime.

References and Helper

  • references/cli-and-api.md covers TTS CLI options, Python executor, ONNX flags, and output behavior.
  • references/model-combinations-and-training.md maps acoustic/vocoder choices, language/multispeaker constraints, and recipe structure.
  • references/troubleshooting.md covers model pairing, frontend, dictionary/stat, ONNX, output, and batch parsing errors.
  • scripts/build_tts_job.py builds safe .job files for text without whitespace.

Do Not Do by Default

  • Do not run full TTS/vocoder training recipes, voice cloning, VC, SVS, VITS, or JETS recipes without approval.
  • Do not claim ONNX/Paddle Lite/Android/C++ deployment is verified from a dynamic Python synthesis check.
  • Do not use .job for English text with spaces unless you have verified the target parser accepts it; direct --input is safer.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351