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

paddlespeech 报错: cannot import name 'load' from 'paddleaudio.backends #45

Closed
xiaoxifei1223 opened this issue Sep 28, 2022 · 2 comments

Comments

@xiaoxifei1223
Copy link

我的环境:
paddlepaddle-gpu :2.3.2
ppgan 2.1.0
paddlespeech 1.0.1
paddleaudio 1.0.2

/content/drive/MyDrive/Virtual_broadcast
/usr/local/lib/python3.7/dist-packages/librosa/core/constantq.py:1059: DeprecationWarning: np.complex is a deprecated alias for the builtin complex. To silence this warning, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
dtype=np.complex,
Traceback (most recent call last):
File "general_demo.py", line 6, in
from PaddleTools.TTS import TTSExecutor
File "/content/drive/MyDrive/Virtual_broadcast/PaddleTools/TTS.py", line 10, in
from paddlespeech.cli.utils import download_and_decompress
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/init.py", line 24, in
from .vector import VectorExecutor
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/vector/init.py", line 14, in
from .infer import VectorExecutor
File "/usr/local/lib/python3.7/dist-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' (/usr/local/lib/python3.7/dist-packages/paddleaudio/backends/init.py)

@xiaoxifei1223
Copy link
Author

问题已经解决,主要是paddlespeech 和paddleaudio的版本不一致,按照pypi上两个包的发版时间,挑选一个接近的即可。
the reason is version of paddlespeech is not correct for the paddleaudio

1 similar comment
@xiaoxifei1223
Copy link
Author

问题已经解决,主要是paddlespeech 和paddleaudio的版本不一致,按照pypi上两个包的发版时间,挑选一个接近的即可。
the reason is version of paddlespeech is not correct for the paddleaudio

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

1 participant