PaddlePaddle/PaddleSpeech
PaddlePaddle-based SDK for local and streaming speech recognition and synthesis
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
PaddleSpeech is a Python speech SDK built on PaddlePaddle. Task-specific executors such as ASRExecutor, TTSExecutor, and TextExecutor provide in-process inference, while the paddlespeech CLI exposes individual tasks from the shell. Training recipes live under examples/; service demos live under demos/. In an ASR pipeline, transcription and punctuation restoration are separate stages. TTS splits text processing, acoustic modeling, and waveform generation into a frontend, acoustic model, and vocoder.
For out-of-process integration, paddlespeech_server start --config_file loads a YAML configuration. The general speech server and the streaming ASR and TTS demos have distinct configuration paths. Their client examples use asr_online and tts_online for streaming; the latter explicitly selects --protocol http. Treat the serving interface and model availability as task-specific rather than assuming every executor has the same streaming interface.
Key Capabilities & Differentiators
The toolkit covers batch and streaming ASR and TTS, along with punctuation restoration, keyword spotting, speaker verification and embedding extraction, audio classification, and English-to-Chinese speech translation. The ASR quick start uses 16 kHz WAV audio, and its TTS counterpart writes a 24 kHz WAV file. The AudioSet-based sound classifier covers 527 classes. The supplied speech translation path uses precompiled Kaldi tools and is limited to Ubuntu.
ASR recipes include DeepSpeech2 and U2 Transformer/Conformer across AIShell and LibriSpeech, and r1.4.2 added English WavLM and HuBERT fine-tuning on LibriSpeech. TTS examples include Tacotron2, SpeedySpeech, and FastSpeech2. The Chinese frontend applies text normalization and grapheme-to-phoneme conversion, including handling polyphonic characters and tone sandhi. Select checkpoints for the required language and inference mode: the existence of a model recipe does not mean it is available in the streaming service.
Trade-offs & Limitations
PaddleSpeech is most compelling when a team needs several speech components under one stack, especially streaming recognition, Chinese TTS, and transcript punctuation. For transcription alone, a standalone Whisper deployment may have a narrower integration surface. Compared with a managed speech API, self-hosting gives you control over where audio is processed and how models are updated, but shifts capacity planning, dependency upgrades, and service monitoring to your team.
A working CLI demo does not establish production streaming performance. Test recognition errors on target accents, noise conditions, and language mixes; then measure time to first partial transcript, time to first synthesized audio, and tail latency at target concurrency. GPU memory requirements depend on the selected models and the services sharing the device. Apache-2.0 covers the repository code; verify checkpoint, dataset, and third-party terms separately before redistribution.
Hardware & Deployment Guide
Linux is the recommended starting point. The general prerequisites list Python 3.8 or newer and GCC 4.8.5 or newer, but the selected PaddlePaddle build has to match the target environment. Start with the CPU package for a functional check, then install PaddleSpeech via pip install paddlespeech or pip install . from source. For a local check, run paddlespeech asr --lang zh --input zh.wav. For streaming ASR, start the server with demos/streaming_asr_server/conf/application.yaml and test it with paddlespeech_client asr_online.
The r1.5.0 release adapted PaddleSpeech from Paddle 2.5.1 to 3.0.0-beta and added AudioTools support for DAC training and inference, including MultiScaleSTFTLoss, GANLoss, and SISDRLoss. Pin the repository revision, PaddlePaddle build, service configuration, and selected model assets together. The later Whisper large-v3/turbo and online code-switching additions are listed as development updates; verify their presence on the revision you intend to deploy instead of assuming they ship in r1.5.0.
paddlespeech CLI support local inference; paddlespeech_server loads service configuration from YAML.asr_online and tts_online; the TTS client example explicitly selects HTTP.Teams building self-hosted voice applications that need streaming ASR alongside Chinese TTS or transcript punctuation, or research teams that need model training and inference recipes in the same framework.
You only need batch transcription and prefer a narrower stack, or you want a managed API without owning dependency compatibility, model deployment, and streaming performance validation.
Quick Start & Installation
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| PaddleSpeech ★ | 12.7k | — | Python | Apache-2.0 | PaddlePaddle-based SDK for local and streaming speech recognition and synthesis |
| Speech | 18.8k | +18 | Python | Apache-2.0 | PyTorch speech SDK for training, adapting, and running ASR, TTS, and SpeechLM mo |
| whisperX | 26.5k | +677 | Python | BSD-2-Clause | Batched Whisper with forced alignment for word timings and optional speaker labe |
| mlx-audio | 8.4k | +32 | Python | MIT | MLX inference SDK for local speech and audio pipelines on Apple Silicon |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/PaddlePaddle/PaddleSpeech.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about PaddleSpeech
Should I embed PaddleSpeech in Python or run it as a service?
paddlespeech_server with the task-specific YAML when you want a separate service. For streaming, start with the matching asr_online or tts_online client demo. Punctuation restoration has its own executor; explicitly wire it into the transcript pipeline if needed.Do I need a GPU, and how much VRAM should I budget?
Can we self-host PaddleSpeech in a commercial product?
When is PaddleSpeech a better choice than standalone Whisper or a managed API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy