其中有报错如下:
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
Load pinyin_en_mix_dict failed
text.cc: festival_Text_init
2023-08-22 17:29:40,024 - modelscope - WARNING - No preprocessor field found in cfg.
[2023-08-22 17:29:40] [WARNING] [base.py:283] No preprocessor field found in cfg.
2023-08-22 17:29:40,024 - modelscope - WARNING - No val key and type key found in preprocessor domain of configuration.json file.
[2023-08-22 17:29:40] [WARNING] [base.py:292] No val key and type key found in preprocessor domain of configuration.json file.
2023-08-22 17:29:40,024 - modelscope - WARNING - Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/home/grow/models/modelscope/hub/damo/speech_sambert-hifigan_tts_zhitian_emo_zh-cn_16k'}. trying to build by task and model information.
[2023-08-22 17:29:40] [WARNING] [base.py:311] Cannot find available config to build preprocessor at mode inference, current config: {'model_dir': '/home/grow/models/modelscope/hub/damo/speech_sambert-hifigan_tts_zhitian_emo_zh-cn_16k'}. trying to build by task and model information.
2023-08-22 17:29:40,024 - modelscope - WARNING - No preprocessor key ('sambert-hifigan', 'text-to-speech') found in PREPROCESSOR_MAP, skip building preprocessor.
[2023-08-22 17:29:40] [WARNING] [base.py:325] No preprocessor key ('sambert-hifigan', 'text-to-speech') found in PREPROCESSOR_MAP, skip building preprocessor.
FormatProsodicUtterance failed
FormatProsodicUtterance failed
FormatProsodicUtterance failed
Removing weight norm...
[W NNPACK.cpp:64] Could not initialize NNPACK! Reason: Unsupported hardware.
【 我调用 tts 模型推理,声音结尾感觉像被阉割一样短促的结束,而同样的文字放在句子中间则没事,为啥?
】
可能是因为在进行 TTS 模型推理时,某些字符或词汇的读音受到了影响,导致声音结尾短促。对于报错的问题,可能是由于加载拼音词典失败导致的。建议您检查一下拼音词典文件是否存在,或者尝试重新安装拼音词典。