paddlespeech
Use PaddleSpeech for ASR, speech translation, Whisper, SSL, TTS, punctuation restoration, audio classification, speaker vectors, keyword spotting, and PaddleSpeech server/client workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- paddlespeech
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use PaddleSpeech for ASR, speech translation, Whisper, SSL, TTS, punctuation restoration, audio classification, speaker vectors, keyword spotting, and PaddleSpeech server/client workflows.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-reference.md2.8 KB
- 参考文档references/install-and-environment.md3.4 KB
- 参考文档references/model-and-resource-overview.md2.9 KB
- 参考文档references/repo-provenance.md1.3 KB
- 参考文档references/repo-routing-metadata.json505 B
- 参考文档references/troubleshooting.md3.6 KB
- 脚本scripts/check_paddlespeech_environment.py5.3 KB
03 SKILL.md 正文
PaddleSpeech
Use this skill when the task names PaddleSpeech, paddlespeech, paddlespeech_server, paddlespeech_client, PP-ASR, PP-TTS, PP-VPR, speech recognition, speech translation, Whisper, SSL speech models, text-to-speech, punctuation restoration, audio classification, speaker embedding or verification, keyword spotting, or PaddleSpeech Serving.
Start Here
- Decide whether the user wants package use, recipe planning, service deployment, or repository maintenance.
- For package use, prefer the public CLIs and executor classes before reaching for internal model modules.
- Treat pretrained model execution, sample-audio downloads, dataset downloads, server warmup, Docker services, C++/mobile builds, and GPU training as side effects. Ask before running them unless the user already approved downloads/services/long jobs.
- Run
scripts/check_paddlespeech_environment.pyfor a safe local preflight. It checks imports, metadata, and command availability without downloading models. - Read
references/troubleshooting.mdwhen import, optional dependency, cache, audio-format, model tag, CLI stats, or server-port failures appear.
Route by Task
- ASR, speech translation, SSL, and Whisper: use
sub-skills/speech-to-text/SKILL.mdforpaddlespeech asr,st,ssl,whisper,ASRExecutor,STExecutor,SSLExecutor,WhisperExecutor, audio sample-rate checks, ASR recipes, and transcript post-processing routes. - Text-to-speech and vocoders: use
sub-skills/text-to-speech/SKILL.mdforpaddlespeech tts, acoustic/vocoder pair selection, ONNX/static inference, multi-speaker and multilingual options, TTS training/synthesis recipes, voice cloning orientation, and TTS frontend interactions. - Text processing and frontends: use
sub-skills/text-processing/SKILL.mdforpaddlespeech text --task punc, punctuation restoration models, text normalization, G2P, MFA/rhythm-tag prep, and SentencePiece tokenizer recipes. - Audio classification, speaker vectors, and KWS: use
sub-skills/audio-analysis/SKILL.mdforpaddlespeech cls,vector,kws, SSL vector extraction, ESC-50, VoxCeleb, HeySnips, audio augmentation, and audio-search planning. - Server, clients, streaming, and deployment: use
sub-skills/deployment-serving/SKILL.mdforpaddlespeech_server start,paddlespeech_client, HTTP and WebSocket APIs,application.yaml, streaming ASR/TTS configs, Paddle Inference, ONNX, C++ runtime, Android/ARM, and service troubleshooting.
Install and Minimal Checks
Install the package and a compatible PaddlePaddle runtime in the same environment. For a CPU package-user baseline:
python -m pip install paddlepaddle
python -m pip install paddlespeech
python -I -c "import paddle, paddlespeech; print(paddle.__version__)"
Then verify the command surfaces without downloading models:
paddlespeech help
paddlespeech_server help
paddlespeech_client help
Package Orientation
PaddleSpeech is distributed as paddlespeech and exposes these console scripts:
paddlespeech help
paddlespeech_server help
paddlespeech_client help
The main paddlespeech commands in this checkout are help, version, stats, asr, cls, st, text, tts, vector, kws, ssl, and whisper. The server command exposes start and stats; the client exposes tts, tts_online, asr, asr_online, cls, text, vector, and acs.
For direct Python use, prefer executor classes from the command modules, for example paddlespeech.cli.asr.ASRExecutor, paddlespeech.cli.tts.TTSExecutor, paddlespeech.cli.text.TextExecutor, and server/client executors under paddlespeech.server.bin.
References and Helpers
references/install-and-environment.mdcovers install modes, PaddlePaddle runtime, optional dependencies, cache roots, and backend limits.references/cli-reference.mdlists safe command patterns, batch/stdin/job behavior, and model-stat caveats.references/model-and-resource-overview.mdexplains model tags, aliases, resource download/cache behavior, and core released model families.references/troubleshooting.mdcovers cross-cutting install, import, dependency, audio, cache, CLI, and server failures.references/repo-provenance.mdrecords the source revision and evidence baseline.scripts/check_paddlespeech_environment.pyperforms safe import and CLI preflight checks.
Safety Boundaries
- Do not run full demo
run.sh, training recipes, benchmark/TIPC scripts, server warmup, Docker Compose apps, or model-download examples unless the user explicitly accepts the download/runtime side effects. - Do not assume CUDA is required. CPU is sufficient for package inspection, command construction, static config checks, and selected safe unit tests; CUDA is optional for faster training/inference.
- Do not assume model quality from a help/import check. Actual ASR/TTS/Whisper/CLS/vector/KWS outputs require model archives, input audio, and runtime checks.
- If a current checkout differs from
references/repo-provenance.md, refresh this skill before relying on fine-grained paths, model tags, or CLI behavior.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).