Easy-to-use Speech Toolkit including Self-Supervised Learning model, SOTA/Streaming ASR with punctuation, Streaming TTS with text frontend, Speaker Verification System, End-to-End Speech Translation and Keyword Spotting. Won NAACL2022 Best Demo Award.
[2023-09-05 01:14:41,309] [ WARNING] - The sample rate of the input file is not 16000.
The program will resample the wav file to 16000.
If the result does not meet your expectations,
Please input the 16k 16 bit 1 channel wav file.
[2023-09-05 01:14:41,917] [ ERROR] - list index out of range
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/asr/infer.py", line 323, in infer
simulate_streaming=cfg.simulate_streaming)
File "/usr/local/lib/python3.7/dist-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), kw)
File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/base.py", line 347, in _decorate_function
return func(*args, *kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/s2t/models/u2/u2.py", line 826, in decode
reverse_weight=reverse_weight)
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/s2t/models/u2/u2.py", line 532, in attention_rescoring
assert speech.shape[0] == speech_lengths.shape[0]
IndexError: list index out of range
Traceback (most recent call last):
File "main.py", line 66, in
asr_config, tts_config, asr_init_path, ie_model_path=ie_model_path)
File "/opt/paddle/PaddleSpeech/demos/speech_web/speech_server/src/robot.py", line 26, in init
self.warm_up_asrmodel(asr_init_path)
File "/opt/paddle/PaddleSpeech/demos/speech_web/speech_server/src/robot.py", line 44, in warm_up_asrmodel
force_yes=True)
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/utils.py", line 328, in _warpper
return executor_func(self, args, kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/asr/infer.py", line 512, in call
res = self.postprocess() # Retrieve result of asr.
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/asr/infer.py", line 335, in postprocess
return self._outputs["result"]
KeyError: 'result'
采用docker paddle-> 2.5.1镜像安装编译 paddleSpeech 1.4.0 版本的,启动 demos/speech_web/speech_server/main.py 的时候,报如下错误,求助原因:
[2023-09-05 01:14:41,309] [ WARNING] - The sample rate of the input file is not 16000. The program will resample the wav file to 16000. If the result does not meet your expectations, Please input the 16k 16 bit 1 channel wav file.
asr_config, tts_config, asr_init_path, ie_model_path=ie_model_path)
File "/opt/paddle/PaddleSpeech/demos/speech_web/speech_server/src/robot.py", line 26, in init
self.warm_up_asrmodel(asr_init_path)
File "/opt/paddle/PaddleSpeech/demos/speech_web/speech_server/src/robot.py", line 44, in warm_up_asrmodel
force_yes=True)
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/utils.py", line 328, in _warpper
return executor_func(self, args, kwargs)
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/asr/infer.py", line 512, in call
res = self.postprocess() # Retrieve result of asr.
File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/asr/infer.py", line 335, in postprocess
return self._outputs["result"]
KeyError: 'result'
[2023-09-05 01:14:41,917] [ ERROR] - list index out of range Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/paddlespeech/cli/asr/infer.py", line 323, in infer simulate_streaming=cfg.simulate_streaming) File "/usr/local/lib/python3.7/dist-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), kw) File "/usr/local/lib/python3.7/dist-packages/paddle/fluid/dygraph/base.py", line 347, in _decorate_function return func(*args, *kwargs) File "/usr/local/lib/python3.7/dist-packages/paddlespeech/s2t/models/u2/u2.py", line 826, in decode reverse_weight=reverse_weight) File "/usr/local/lib/python3.7/dist-packages/paddlespeech/s2t/models/u2/u2.py", line 532, in attention_rescoring assert speech.shape[0] == speech_lengths.shape[0] IndexError: list index out of range Traceback (most recent call last): File "main.py", line 66, in