PaddlePaddle / PaddleSpeech

Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
https://paddlespeech.readthedocs.io
Apache License 2.0
11.16k stars 1.85k forks source link

ASR和TTS的streaming server无法同时开启 #3757

Open 488283943 opened 6 months ago

488283943 commented 6 months ago

环境: PaddlePaddle 2.2.0 Python 3.8(ubuntu18.04) Cuda 11.2

ASR和TTS在开启第一个后,再打开另一个后报错,该怎么处理? root@autodl-container-085311853c-b00a9bac:~/PaddleSpeech# paddlespeech_server start --config_file ./demos/streaming_asr_server/conf/application.yaml WARNING: OMP_NUM_THREADS set to 12, not 1. The computation speed will not be optimized if you use data parallel. It will fail if this PaddlePaddle binary is compiled with OpenBlas since OpenBlas does not support multi-threads. PLEASE USE OMP_NUM_THREADS WISELY. [2024-04-30 10:35:16,341] [ INFO] - start to init the engine [2024-04-30 10:35:16,341] [ INFO] - asr : online engine. W0430 10:35:21.184901 1193 device_context.cc:447] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.5, Runtime API Version: 11.2 W0430 10:35:21.188336 1193 device_context.cc:465] device: 0, cuDNN Version: 8.1. [2024-04-30 10:35:23,950] [ ERROR] - Failed to start server. [2024-04-30 10:35:23,951] [ ERROR] - init() got an unexpected keyword argument 'negative_slope' 2024-04-30 10:35:23.950 | INFO | paddlespeech.s2t.modules.embedding:init:153 - max len: 5000

Ray961123 commented 6 months ago

开发者你好,感谢关注 PaddleSpeech 开源项目,抱歉给你带来了不好的开发体验,目前开源项目维护人力有限,你可以尝试通过修改 PaddleSpeech 源码的方式自己解决,或请求开源社区其他开发者的协助。飞桨开源社区交流频道:飞桨AI Studio星河社区-人工智能学习与实训社区

buffge commented 6 months ago

加个环境变量就行了 PPSPEECH_HOME=/root/.ppspeech2

488283943 commented 6 months ago

加个环境变量就行了 PPSPEECH_HOME=/root/.ppspeech2

我把paddlepaddle升级到2.3就好了 但是出现了流式服务无法通过gpu运行的情况