🌟 安装PaddleSpeech相关问题讨论(Windows,mac),以及命令行使用问题 #1195
Replies: 36 comments 64 replies
-
对于 |
Beta Was this translation helpful? Give feedback.
-
Python执行语音识别时,cmd出现异常: 修改Python39\lib\subprocess.py中__init__函数的shell将False改为True |
Beta Was this translation helpful? Give feedback.
-
Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
kaldiio安装出错遇到kaldiio安装出错的问题。注意使用清华源安装 pytest-runner。 |
Beta Was this translation helpful? Give feedback.
-
无论使用怎样的安装方法,所需的C++也安装了,总是报错: Failed to build pyworld webrtcvad bottleneck 网上找了各种方法也不能解决,诚心求教! |
Beta Was this translation helpful? Give feedback.
-
paddlespeech_ctcdecoders 已安装无法导入(wsl ubuntu)想测试deepspeech2online_aishell模型 |
Beta Was this translation helpful? Give feedback.
-
命令行功能:nltk 下载出错的问题:原因分析:nltk_data 文件没有下载完全,手动删除已下载的 nltk 部分,重新使用命令行功能即可。 解决方法:删除了 nltk_data 文件,然后重新使用 paddlespeech 命令行功能。 |
Beta Was this translation helpful? Give feedback.
-
File "E:\ProgramData\Anaconda3\envs\py39\lib\runpy.py", line 197, in run_module_as_main |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
我使用
python也在3.8版本以上
paddlepaddel版本也没有问题
请问大佬这个要怎么解决?
|
Beta Was this translation helpful? Give feedback.
-
用如下代码:
或者命令行: 最后没有print出任何结果。屏幕上唯一有的信息是 |
Beta Was this translation helpful? Give feedback.
-
别的都按照gitee上简单模式安装好了 |
Beta Was this translation helpful? Give feedback.
-
paddlespeech_server start --config_file ./demos/streaming_asr_server/conf/application.yaml[2022-10-29 23:02:52,695] [ INFO] - start to init the engine |
Beta Was this translation helpful? Give feedback.
-
cannot import name 'load' from 'paddleaudio.backends'
|
Beta Was this translation helpful? Give feedback.
-
[2022-12-28 12:36:49,596] [ INFO] - start to init the engine 启动之后这个问题,在哪里可以查看日志报错?我安装的是paddlespeech-gpu-2.4.1.post112 版本 |
Beta Was this translation helpful? Give feedback.
-
F:\pycharm\pdf2MP3\venv\Scripts\python.exe F:\pycharm\pdf2MP3\main.py 进程已结束,退出代码1 |
Beta Was this translation helpful? Give feedback.
-
demo 跑不了。 @yt605155624 paddlespeech asr --lang zh --input zh.wav
Traceback (most recent call last):
File "/Users/wangxin/repos/PaddleSpeechWebUI/venv/bin/paddlespeech", line 5, in <module>
from paddlespeech.cli.entry import _execute
File "/Users/wangxin/repos/PaddleSpeechWebUI/venv/lib/python3.10/site-packages/paddlespeech/cli/__init__.py", line 24, in <module>
from .vector import VectorExecutor
File "/Users/wangxin/repos/PaddleSpeechWebUI/venv/lib/python3.10/site-packages/paddlespeech/cli/vector/__init__.py", line 14, in <module>
from .infer import VectorExecutor
File "/Users/wangxin/repos/PaddleSpeechWebUI/venv/lib/python3.10/site-packages/paddlespeech/cli/vector/infer.py", line 25, in <module>
from paddleaudio.backends import load as load_audio
ImportError: cannot import name 'load' from 'paddleaudio.backends' (/Users/wangxin/repos/PaddleSpeechWebUI/venv/lib/python3.10/site-packages/paddleaudio/backends/__init__.py) |
Beta Was this translation helpful? Give feedback.
-
demos\speech_web启动后出现这样的提示404,我哪里没有配置好吗 yarn dev --port 8011可以启动,打开网页点录音提示websocket 链接失败,请检查 Websocket 后端服务是否正确开启 C:\Users\admin\PaddleSpeech\demos\speech_web\web_client>yarn dev --port 8011 vite v2.9.15 dev server running at:
ready in 696ms. 20:06:17 [vite] http proxy error: C:\Users\admin\PaddleSpeech\demos\speech_web\speech_server>python main.py --port 8010 C:\Program Files\Python39\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first. [2023-03-30 19:32:04,531] [ INFO] - All model checkpoint weights were used when initializing UnifiedTransformerLMHeadModel. [2023-03-30 19:32:04,532] [ INFO] - All the weights of UnifiedTransformerLMHeadModel were initialized from the model checkpoint at plato-mini. |
Beta Was this translation helpful? Give feedback.
-
RuntimeError: (NotFound) Cannot open file ..\pwgan_aishell3_static_1.1.0\pwgan_aishell3.pdmodel, please confirm whether the file is normal. |
Beta Was this translation helpful? Give feedback.
-
mac m1上运行whisper -h报错: paddlespeech whisper -h
/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
Traceback (most recent call last):
File "/Volumes/Kingstone/workspace/deepspeech/speech/bin/paddlespeech", line 8, in <module>
sys.exit(_execute())
File "/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/paddlespeech/cli/entry.py", line 40, in _execute
exec("from {} import {}".format(module, cls))
File "<string>", line 1, in <module>
File "/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/paddlespeech/cli/whisper/__init__.py", line 14, in <module>
from .infer import WhisperExecutor
File "/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/paddlespeech/cli/whisper/infer.py", line 24, in <module>
import librosa
File "/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/librosa/__init__.py", line 211, in <module>
from . import core
File "/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/librosa/core/__init__.py", line 9, in <module>
from .constantq import * # pylint: disable=wildcard-import
File "/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/librosa/core/constantq.py", line 1059, in <module>
dtype=np.complex,
File "/Volumes/Kingstone/workspace/deepspeech/speech/lib/python3.9/site-packages/numpy/__init__.py", line 305, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, 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.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations |
Beta Was this translation helpful? Give feedback.
-
安装成功后,运行python代码进行语音识别,报错了。 代码如下: 错误信息如下: [2023-07-19 09:07:20,167] [ ERROR] - list index out of range 我自己打印这两个shape: print(speech.shape, speech_lengths.shape)输入是这样的: |
Beta Was this translation helpful? Give feedback.
-
环境
执行: 错误
|
Beta Was this translation helpful? Give feedback.
-
环境
vs 安装测试代码
提示错误: paddleaudio C++ extension is not available. sox_io, sox_effect, kaldi raw feature is not supported!!!
错误详情
|
Beta Was this translation helpful? Give feedback.
-
在CentOS虚拟机上用新构建的docker镜像测试流式asr,报错:403 Forbidden虚拟机操作系统:CentOS8 已根据PaddleSpeech-develop程序包中readme_cn.md要求的相关环境和依赖,撰写Dockerfile并构建镜像实现asr流式功能,但在镜像运行过程中出现连接拒绝问题。 这是我的dockerfile内容:
运行镜像指令:
镜像启动后,另起一个终端,在PaddleSpeech-develop目录下输入指令:
然后出现报错:
同时开启镜像的那个终端出现如下日志:
向各路大神们请教,如何解决?感激不尽! |
Beta Was this translation helpful? Give feedback.
-
运行pip install PaddleSpeech 提示 ModuleNotFoundError: No module named 'imp'错误 |
Beta Was this translation helpful? Give feedback.
-
运行时出现这个报错IndexError: list index out of range,音频是官方提供的4秒纯人声,大家有解决方案吗? |
Beta Was this translation helpful? Give feedback.
-
试了一天,终于可以语音识别和合成了,得亏看到大佬说的paddle那几个版本的要求 cudnn 安装 7.6.5.32版本 pip install paddlepaddle-gpu==2.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple pip install pytest-runner paddleSpeech目录下 pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple pip install paddlespeech pip uninstall numpy 卸载自动安装的新版本numpy pip install numpy==1.23.5 (1.22.4只能语音识别,1.23.5才能做语音合成) pip install paddlenlp==2.5.2 pip install ppdiffusers==0.14.2 pip install --upgrade scipy==1.7.3 安装scipy(目前只试出来这个版本适配,而且会自动安装numpy 1.22.4,需要手动换成1.23.5) 英文识别 paddlespeech asr --lang en --model transformer_librispeech --input en.wav 中文识别 paddlespeech asr --input zh.wav 语音合成 paddlespeech tts --input "你好,我是语音识别模型生成的" --output output.wav |
Beta Was this translation helpful? Give feedback.
-
大家有什么Windows安装的问题可以在这里讨论。
Win安装必须条件:
官方链接:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Win安装出现的问题:
Beta Was this translation helpful? Give feedback.
All reactions