This pull request enhances the Python API examples for Text-to-Speech by introducing dedicated scripts for ZipVoice TTS. It provides users with clear, runnable demonstrations of both standard zero-shot synthesis and real-time audio playback during generation. The changes also streamline the example structure by removing an older, more generic script and deprecating an outdated API function, promoting the use of a more modern GenerationConfig approach.
1.9 KiB
File description
-
./http_server.py It defines which files to server. Files are saved in ./web.
-
non_streaming_server.py WebSocket server for non-streaming models.
-
vad-remove-non-speech-segments.py It uses silero-vad to remove non-speech segments and concatenate all speech segments into a single one.
-
vad-with-non-streaming-asr.py It shows how to use VAD with a non-streaming ASR model for speech recognition from a microphone
-
offline-speech-enhancement-gtcrn.py It shows how to use the offline speech denoiser API with GTCRN.
-
offline-speech-enhancement-dpdfnet.py It shows how to use the offline speech denoiser API with DPDFNet.
-
online-speech-enhancement-gtcrn.py It shows how to use the online speech denoiser API with GTCRN.
-
online-speech-enhancement-dpdfnet.py It shows how to use the online speech denoiser API with DPDFNet. models. Use 16 kHz DPDFNet models such as
dpdfnet_baseline.onnx,dpdfnet2.onnx,dpdfnet4.onnx, ordpdfnet8.onnxfor downstream ASR anddpdfnet2_48khz_hr.onnxfor 48 kHz enhancement output. -
pocket-tts.py It shows how to use PocketTTS with the
GenerationConfigAPI. -
supertonic-tts.py It shows how to use SupertonicTTS with the
GenerationConfigAPI. -
zipvoice-tts.py It shows how to use ZipVoice for zero-shot TTS with the
GenerationConfigAPI. -
zipvoice-tts-play.py It shows how to use ZipVoice for zero-shot TTS and plays the generated audio while it is being synthesized.