# Repository Briefing: PaddlePaddle/PaddleSpeech
> Source: https://repoforai.com/repo/PaddlePaddle/PaddleSpeech (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/PaddlePaddle/PaddleSpeech
- **Official Docs / Website**: https://paddlespeech.readthedocs.io
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B+ (67/100 · Maintenance 12/35 · Adoption 24/25 · Releases 11/20 · License 20/20)
- **Latest Release**: r1.5.0 (2025-03-05) — https://github.com/PaddlePaddle/PaddleSpeech/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: CLI, GPU
- **Momentum**: 12,707 ★ total (+0 24h / +0 7d) · 1,954 forks
- **Topics**: `asr`, `code-switch`, `conformer`, `kws`, `punctuation-restoration`, `self-supervised-learning`, `sound-classification`, `speech-alignment`, `speech-recognition`, `speech-synthesis`, `speech-translation`, `streaming-asr`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Inference interfaces: Task-specific Python executors and the `paddlespeech` CLI support local inference; `paddlespeech_server` loads service configuration from YAML.
- Streaming entry points: Separate ASR and TTS server demos pair with `asr_online` and `tts_online`; the TTS client example explicitly selects HTTP.
- ASR recipes: DeepSpeech2 and U2 Transformer/Conformer cover AIShell and LibriSpeech examples; r1.4.2 added English WavLM and HuBERT fine-tuning recipes.
- Chinese TTS frontend: Rule-based normalization and G2P handle polyphonic characters and tone sandhi before acoustic modeling and vocoding.
- Audio utilities: The AudioSet classifier covers 527 classes; speaker embedding extraction and punctuation restoration are available as separate tasks.
- Release compatibility: r1.5.0 added AudioTools support for DAC training and inference and adapted PaddleSpeech from Paddle 2.5.1 to 3.0.0-beta.
```

## Quick Start / Clone
```bash
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
```
