PaddleSpeech
PaddleSpeech copied to clipboard
请问有比较明确的能跑起 demo 的安装环境的详细步骤或推荐的步骤嘛
有比较明确的能跑起 demo 的安装环境的详细步骤或推荐的步骤嘛,搞了二天了没搞定。。。不是依赖报错,就是运行时有问题。。。
目前运行官方的 Automatic Speech Recognition 示例后,报这个错。
2024-01-22 19:21:14.135 | INFO | paddlespeech.s2t.modules.embedding:init:153 - max len: 5000 [1] 76255 segmentation fault python3 ./src/pp.py /Users/.pyenv/versions/3.10.13/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 16 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d '
mac m2 使用 pyenv,切了 python 3.10.13 指定安装了 paddlepaddle 2.5.1 , paddle speech 使用源码安装 develop 版本。 安装过程中都没有报错。
这里只有UserWarning,并不是报错,具体的报错是什么?
这里只有UserWarning,并不是报错,具体的报错是什么?
只有这些提示,获取不到 result. 执行的代码如下:
// pp.py from paddlespeech.cli.asr.infer import ASRExecutor asr = ASRExecutor() print('asr -> ') result = asr(audio_file="temp/audio/zh.wav") print('result = ') print(result)
命令行执行 ‘python3 pp.py’,以上代码,都走不到 print('result = ') ,就自动结束了
这里只有UserWarning,并不是报错,具体的报错是什么?
只有这些提示,获取不到 result. 执行的代码如下:
// test.py from paddlespeech.cli.asr.infer import ASRExecutor asr = ASRExecutor() print('asr -> ') result = asr(audio_file="temp/audio/zh.wav") print('result = ') print(result)
命令行执行 ‘python3 test.py’,以上代码,都走不到 print('result = ') ,就自动结束了
zh.wav 就是官网示例上下载的中文音频文件