-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
use the ASR example (paddlespeechr1.5&paddlepaddle3.2)
WITH WRONG :
信息: 用提供的模式无法找到文件。
E:\voice.venv\Lib\site-packages\paddle\utils\cpp_extension\extension_utils.py:718: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
RuntimeError: module compiled against ABI version 0x1000009 but this version of numpy is 0x2000000
E:\voice.venv\Lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
2025-09-16 10:24:53.160 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed!
W0916 10:24:53.218199 16580 dygraph_functions.cc:95410] got different data type, run type promotion automatically, this may cause data type been changed.
Traceback (most recent call last):
File "e:\voice\aha.py", line 3, in
2025-09-16 10:24:53.280 | INFO | paddlespeech.s2t.modules.embedding:init:153 - max len: 5000
result = asr(audio_file="E:\voice\zh.wav")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\cli\utils.py", line 328, in _warpper
return executor_func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\cli\asr\infer.py", line 502, in call
self._init_from_path(model, lang, codeswitch, sample_rate, config,
File "E:\voice.venv\Lib\site-packages\paddlespeech\cli\asr\infer.py", line 212, in _init_from_path
model = model_class.from_config(model_conf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\s2t\models\u2\u2.py", line 962, in from_config
model = cls(configs)
^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\s2t\models\u2\u2.py", line 864, in init
vocab_size, encoder, decoder, ctc = U2Model._init_from_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\s2t\models\u2\u2.py", line 909, in _init_from_config
encoder = ConformerEncoder(
^^^^^^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\s2t\modules\encoder.py", line 470, in init
super().init(input_size, output_size, attention_heads, linear_units,
File "E:\voice.venv\Lib\site-packages\paddlespeech\s2t\modules\encoder.py", line 138, in init
self.embed = subsampling_class(
^^^^^^^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\s2t\modules\subsampling.py", line 114, in init
Conv2D(1, odim, 3, 2),
^^^^^^^^^^^^^^^^^^^^^
File "E:\voice.venv\Lib\site-packages\paddlespeech\s2t\modules\align.py", line 165, in init
super(Conv2D, self).init(
TypeError: Conv2D.init() takes from 4 to 8 positional arguments but 12 were given
It works will on paddlepaddle==3.1
Just like:
信息: 用提供的模式无法找到文件。
E:\voice.venv\Lib\site-packages\paddle\utils\cpp_extension\extension_utils.py:715: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
RuntimeError: module compiled against ABI version 0x1000009 but this version of numpy is 0x2000000
E:\voice.venv\Lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
2025-09-16 10:40:14.389 | INFO | paddlespeech.s2t.modules.ctc::45 - paddlespeech_ctcdecoders not installed!
W0916 10:40:14.450357 11628 dygraph_functions.cc:88394] got different data type, run type promotion automatically, this may cause data type been changed.
2025-09-16 10:40:14.732 | INFO | paddlespeech.s2t.modules.embedding:init:153 - max len: 5000
我认为跑步最重要的就是给我带来了身体健康