前提条件

python: 3.8.10

pip install paddlepaddle==2.4.2

安装PaddleSpeech

git clone -b r1.2 https://gitee.com/paddlepaddle/PaddleSpeechcd PaddleSpeechpip install pytest-runner -i https://pypi.tuna.tsinghua.edu.cn/simplepip install . -i https://pypi.tuna.tsinghua.edu.cn/simple pip install uvicorn==0.18.3
cd $HOMEwget -P data https://paddlespeech.bj.bcebos.com/Parakeet/tools/nltk_data.tar.gztar zxvf data/nltk_data.tar.gz
cd PaddleSpeechpaddlespeech_server start --config_file ./paddlespeech/server/conf/application.yaml出现以下输出,表示服务开启成功INFO: Started server process [4697][2022-07-29 14:19:03] [INFO] [server.py:75] Started server process [4697]INFO: Waiting for application startup.[2022-07-29 14:19:03] [INFO] [on.py:47] Waiting for application startup.INFO: Application startup complete.[2022-07-29 14:19:03] [INFO] [on.py:61] Application startup complete.INFO: Uvicorn running on http://0.0.0.0:8090 (Press CTRL+C to quit)[2022-07-29 14:19:03] [INFO] [server.py:212] Uvicorn running on http://0.0.0.0:8090 (Press CTRL+C to quit)