新版-tts文本转语言报错处理
错误类型1:
cannot reuse already awaited compiled_coroutine _BaseRequestContextManager
Traceback (most recent call last):
File "D: \xiaowo\plugin\tts plugin\tts\coms.py", line 400, in audio bulou
File "D:\xiaowo\plugin\tts_plugin\tts\edge_tts\communicate.py", line 579, in stream
File "D: \xiaowo\plugin\tts_plugin\tts\edge_tts\communicate.py", line 444, in stream
RuntimeError: cannot reuse already awaited compiled_coroutine _BaseRequestContextManager. _aenter_
解决方案:
点击查看解决方案:https://www.xiaowoai.com/ask/info/1211
错误类型2:
NoAudioReceived: No audio was received. Please verify that your parameters are correct
File "E: \xiaowo\plugin\tts plugin\tts\coms.py", line 439, in ed radio min
File "asyncio\tasks.py", line 445, in wait for
File "E: \xiaowo\plugin\tts plugin\tts\coms.py", line 319, in ed radio min data
File "E: \xiaowo\plugin\tts plugin\tts\edge tts\communicate.py", line 579, in stream
File "E: \xiaowo\plugin\tts plugin\tts\edge tts\communicate.py", line 554, in stream
tts.edge tts.exceptions. NoAudioReceived: No audio was received. Please verify that your parameters are correct
错误原因:
1、中文内容选择了英文角色。或者 英文角色选择了中文
2、中文角色 只能 读中文,英文角色只能读英文。当然有个别角色例外。
如下图:
内容是中文, 但是选择的角色是 英文角色。

错误类型3:
补漏失败,内容 提示 是一些表情符号、特殊符号,或者语言不对应。在原文中删除即可。

请先登录

1
- 1
前往