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

win10-paddleSpeech,语音识别报错 ImportError: cannot import name 'load' from 'paddleaudio.backends' #5715

Open
jiaozn opened this issue Feb 2, 2023 · 0 comments
Assignees

Comments

@jiaozn
Copy link

jiaozn commented Feb 2, 2023

环境win10,python 3.10.9(anaconda)
执行语音识别的测试代码如下:
from paddlespeech.cli.asr.infer import ASRExecutor

asr = ASRExecutor()
result = asr(audio_file="zh.wav")

报错信息如下:
PS C:\Users\Administrator> & D:/ProgramData/Anaconda3/envs/ftn/python.exe c:/Users/Administrator/padddleSpeech.py
D:\ProgramData\Anaconda3\envs\ftn\lib\site-packages\paddleaudio_extension.py:141: UserWarning: paddleaudio C++ extension is not available.
warnings.warn("paddleaudio C++ extension is not available.")
[nltk_data] Error loading averaged_perceptron_tagger: Remote end
[nltk_data] closed connection without response
[nltk_data] Downloading package cmudict to
[nltk_data] C:\Users\Administrator\AppData\Roaming\nltk_data...
[nltk_data] Unzipping corpora\cmudict.zip.
Traceback (most recent call last):
File "c:\Users\Administrator\padddleSpeech.py", line 1, in
from paddlespeech.cli.asr.infer import ASRExecutor
File "D:\ProgramData\Anaconda3\envs\ftn\lib\site-packages\paddlespeech\cli_init_.py", line 24, in
from .vector import VectorExecutor
File "D:\ProgramData\Anaconda3\envs\ftn\lib\site-packages\paddlespeech\cli\vector_init_.py", line 14, in
from .infer import VectorExecutor
File "D:\ProgramData\Anaconda3\envs\ftn\lib\site-packages\paddlespeech\cli\vector\infer.py", line 25, in
from paddleaudio.backends import load as load_audio
ImportError: cannot import name 'load' from 'paddleaudio.backends' (D:\ProgramData\Anaconda3\envs\ftn\lib\site-packages\paddleaudio\backends_init_.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants