错误类型一、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_
背景:tts是客户端 是直连微软服务器的edge浏览器语音接口,微软服务器在国外,国内用户有的网络无法访问,或者 被用户当地网络运营商 屏蔽了。
解决方案:只有使用 vpn(梯子),来访问国外的网络。要 启动全局。只有全局才对客户端软件生效。
vpn(梯子)原理:他是一个中转站, 国内网络 访问 ->(梯子里面的节点)->由梯子的 去访问国外网络,把结果 再返回给国内的网络。

梯子里面 有很多的节点,每个节点 可能是不同的国家和网速。需要挨个尝试。
不同的节点服务商给你提供不同的节点,如果 节点服务商给你的节点不可以使用,换个节点服务商。
别问我还有没有其他办法。没有办法,只有这个办法。
下图 我随便网上找的 仅作参考。

为什么开了全局还是不能使用?
说明这个节点 连不上微软的服务器,还是得换一个。要问我有没有梯子推荐,没得,因为我这边的网络不需要使用梯子可以正常访问微软服务器。tts右上角 有个网络修复 可以修复dns。尝试点击一下。还是无效。只有再换vpn。
错误类型二、 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
- 1
前往