Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows conda paddlespeech_server 启动错误 #3533

Closed
matakk opened this issue Sep 26, 2023 · 2 comments
Closed

Windows conda paddlespeech_server 启动错误 #3533

matakk opened this issue Sep 26, 2023 · 2 comments
Labels

Comments

@matakk
Copy link

matakk commented Sep 26, 2023

win10下,conda 创建的python3.10环境,
安装官网的默认安装:
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
pip install pytest-runner
pip install paddlespeech
git 最新的paddlspeech,到目录下执行
paddlespeech_server start --config_file ./demos/speech_server/conf/application.yaml
1:启动后报告一个numpy错误,修改为 1.23.5版本,错误消失.
2:继续启动,出现如下错误,搜索不到具体的问题.

C:\Users\u.conda\envs\ppspeech2\lib\site-packages\paddleaudio_extension.py:141: UserWarning: paddleaudio C++ extension is not available.
warnings.warn("paddleaudio C++ extension is not available.")
[2023-09-26 12:59:07,776] [ INFO] - start to init the engine
[2023-09-26 12:59:07,777] [ INFO] - asr : python engine.
2023-09-26 12:59:12.950 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed!
2023-09-26 12:59:13.166 | INFO | paddlespeech.s2t.modules.embedding:init:150 - max len: 5000
[2023-09-26 12:59:20,762] [ INFO] - Initialize ASR server engine successfully on device: cpu.
[2023-09-26 12:59:20,763] [ INFO] - tts : python engine.
[2023-09-26 12:59:29,504] [ ERROR] - Failed to get model related files.
[2023-09-26 12:59:29,505] [ ERROR] - Initialize TTS server engine Failed on device: cpu.
[2023-09-26 12:59:29,506] [ ERROR] - This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['AzureExecutionProvider', 'CPUExecutionProvider'], ...)

image

这里有一个错误,但是我没有自己整合,只是想运行官网server,提供http服务.
https://blog.csdn.net/qq_23953717/article/details/128657301

如果是重复问题抱歉啦,搜索不到!

@winlinvip
Copy link

好像是需要降级,应该是onnx的问题,参考:microsoft/onnxruntime#17631

我这么绕过去的:

pip uninstall numpy -y
pip install numpy==1.23.5

pip uninstall onnxruntime -y
pip install onnxruntime==v1.14.0

@matakk
Copy link
Author

matakk commented Sep 27, 2023

谢谢,解决了.

@matakk matakk closed this as completed Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants