开发者社区 > ModelScope模型即服务 > 语音 > 正文

运行报错AttributeError: 'HParams' object has no attrib

Traceback (most recent call last): File "main.py", line 10, in output = sambert_hifigan_tts(input=text) File "/opt/conda/envs/modelscope/lib/python3.7/site-packages/modelscope/pipelines/base.py", line 209, in call output = self._process_single(input, *args, **kwargs) File "/opt/conda/envs/modelscope/lib/python3.7/site-packages/modelscope/pipelines/base.py", line 279, in _process_single out = self.forward(out, **forward_params) File "/opt/conda/envs/modelscope/lib/python3.7/site-packages/modelscope/pipelines/audio/text_to_speech_pipeline.py", line 36, in forward output_wav = self.model.forward(input, forward_params.get('voice')) File "/opt/conda/envs/modelscope/lib/python3.7/site-packages/modelscope/models/audio/tts/sambert_hifi.py", line 89, in forward audio = self.__synthesis_one_sentences(voice, line[1]) File "/opt/conda/envs/modelscope/lib/python3.7/site-packages/modelscope/models/audio/tts/sambert_hifi.py", line 78, in __synthesis_one_sentences return self.__voice[voice_name].forward(text) File "/opt/conda/envs/modelscope/lib/python3.7/site-packages/modelscope/models/audio/tts/voice.py", line 297, in forward self.__load_am() File "/opt/conda/envs/modelscope/lib/python3.7/site-packages/modelscope/models/audio/tts/voice.py", line 58, in __load_am self.__lfeat_type_list = self.__am_hparams.lfeat_type_list.strip( AttributeError: 'HParams' object has no attribute 'lfeat_type_list'

展开
收起
软件中心渣渣 2022-11-07 17:48:13 2930 0
1 条回答
写回答
取消 提交回答
  • 看上去使用的还是老版本的modelscope library,请重新更新一下

    2022-11-08 10:33:47
    赞同 展开评论 打赏

包括语音识别、语音合成、语音唤醒、声学设计及信号处理、声纹识别、音频事件检测等多个领域

相关电子书

更多
Whwn Spark meets object storag 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载