Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification
Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification
(简体中文|English)
PaddleSpeech is an open-source toolkit on PaddlePaddle platform for a variety of critical tasks in speech and audio, with the state-of-art and influential models.
PaddleSpeech won the NAACL2022 Best Demo Award, please check out our paper on Arxiv.
For more synthesized audios, please refer to PaddleSpeech Text-to-Speech samples.
Via the easy-to-use, efficient, flexible and scalable implementation, our vision is to empower both industrial application and academic research, including training, inference & testing modules, and deployment process. To be more specific, this toolkit features at:
PaddleSpeech Streaming Server is available for Streaming ASR with Punctuation Restoration and Token Timestamp and Text-to-Speech.PaddleSpeech Server is available for Audio Classification, Automatic Speech Recognition and Text-to-Speech, Speaker Verification and Punctuation Restoration.PaddleSpeech CLI is available for Speaker Verification.PaddleSpeech CLI is available for Audio Classification, Automatic Speech Recognition, Speech Translation (English to Chinese) and Text-to-Speech.We strongly recommend our users to install PaddleSpeech in Linux with python>=3.8.
PaddleSpeech depends on paddlepaddle. For installation, please refer to the official website of paddlepaddle and choose according to your own machine. Here is an example of the cpu version.
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simpleYou can also specify the version of paddlepaddle or install the develop version.
# install 2.4.1 version. Note, 2.4.1 is just an example, please follow the minimum dependency of paddlepaddle for your selection
pip install paddlepaddle==2.4.1 -i https://mirror.baidu.com/pypi/simple
# install develop version
pip install paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.htmlThere are two quick installation methods for PaddleSpeech, one is pip installation, and the other is source code compilation (recommended).
pip install pytest-runner
pip install paddlespeechgit clone https://github.com/PaddlePaddle/PaddleSpeech.git
cd PaddleSpeech
pip install pytest-runner
pip install .
# If you need to install in editable mode, you need to use --use-pep517. The command is as follows:
# pip install -e . --use-pep517For more installation problems, such as conda environment, librosa-dependent, gcc problems, kaldi installation, etc., you can refer to this installation document. If you encounter problems during installation, you can leave a message on #2150 and find related problems
Developers can have a try of our models with PaddleSpeech Command Line or Python. Change --input to test your own audio/text and support 16k wav format audio.
You can also quickly experience it in AI Studio PaddleSpeech API Demo
Test audio sample download
wget -c https://paddlespeech.cdn.bcebos.com/PaddleAudio/zh.wav
wget -c https://paddlespeech.cdn.bcebos.com/PaddleAudio/en.wavcommand line experience
paddlespeech asr --lang zh --input zh.wavPython API experience
>>> from paddlespeech.cli.asr.infer import ASRExecutor
>>> asr = ASRExecutor()
>>> result = asr(audio_file="zh.wav")
>>> print(result)
我认为跑步最重要的就是给我带来了身体健康Output 24k sample rate wav format audio
command line experience
paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wavPython API experience
>>> from paddlespeech.cli.tts.infer import TTSExecutor
>>> tts = TTSExecutor()
>>> tts(text="今天天气十分不错。", output="output.wav")Sound
Tar-Slip Arbitrary File Write via HTTP Download in PaddleSpeech
[TTS]Bug Report: PaddleSpeech 1.5.0 TTS CPU segfault on paddlepaddle 2.6.2
讨论:FunASR/SenseVoice 与 PaddleSpeech 的协作可能性
天数 BI-150S 环境中需要降级 opencc-python-reimplemented 版本
【版本发布】PyPI包严重过时(将近1年未更新)导致用户体验差且造成项目bug多的假象
中英文流式TTS的配置方法
流式TTS合成有支持中英文混合合成的模型吗?
中英文混合TTS哪个模型好用呀?
[S2T]语音识别任务报错
G2PWModel_1.1.zip下载失败