『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1250|回复: 2

[技术探讨] edge-tts失效了?!

[复制链接]

8

主题

126

帖子

2529

积分

金牌会员

Rank: 6Rank: 6

积分
2529
金钱
2403
HASS币
0
发表于 2024-2-8 10:12:38 | 显示全部楼层 |阅读模式
今早发现edge TTS不播报了,重启系统多次都是一样提示。
大家有遇到相同状况吗?
TTS出错提示如下:
2024-02-08 09:53:22.109 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback SpeechManager._async_get_tts_audio.<locals>.handle_error(<Task cancell...nit__.py:691>>) at /usr/src/homeassistant/homeassistant/components/tts/__init__.py:757
Traceback (most recent call last):
File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 759, in handle_error
if audio_task.exception():
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 697, in get_tts_data
extension, data = await engine_instance.async_get_tts_audio(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/edge_tts/tts.py", line 408, in async_get_tts_audio
async for chunk in tts.stream():
File "/usr/local/lib/python3.11/site-packages/edge_tts/communicate.py", line 316, in stream
async with aiohttp.ClientSession(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1187, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 825, in _ws_connect
resp = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 574, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 544, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 911, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 1204, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/connector.py", line 992, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1112, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1145, in _create_connection_transport
await waiter
asyncio.exceptions.CancelledError


回复

使用道具 举报

0

主题

167

帖子

1353

积分

金牌会员

Rank: 6Rank: 6

积分
1353
金钱
1186
HASS币
0
发表于 2024-2-8 12:59:51 | 显示全部楼层
本帖最后由 jimgo 于 2024-2-8 15:42 编辑

刚查看了,是用不起了,我更新了ha 2月版本又可以用了
回复

使用道具 举报

8

主题

126

帖子

2529

积分

金牌会员

Rank: 6Rank: 6

积分
2529
金钱
2403
HASS币
0
 楼主| 发表于 2024-2-9 08:28:44 | 显示全部楼层
昨天下午又自动好了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 22:50 , Processed in 0.156278 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表