请选择 进入手机版 | 继续访问电脑版

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

 找回密码
 立即注册
楼主: involute

[插件集成] 让你的HomePod可以TTS?没有那么多麻烦

  [复制链接]

7

主题

122

帖子

1140

积分

金牌会员

Rank: 6Rank: 6

积分
1140
金钱
1018
HASS币
0
发表于 2021-7-31 05:56:14 来自手机 | 显示全部楼层
Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 169, in _new_conn     conn = connection.create_connection(   File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 96, in create_connection     raise err   File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 86, in create_connection     sock.connect(sa) TimeoutError: [Errno 110] Operation timed out  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen     httplib_response = self._make_request(   File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request     self._validate_conn(conn)   File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn     conn.connect()   File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 353, in connect     conn = self._new_conn()   File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 181, in _new_conn     raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f5b245b2f40>: Failed to establish a new connection: [Errno 110] Operation timed out  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send     resp = conn.urlopen(   File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen     retries = retries.increment(   File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment     raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /_/TranslateWebserverUi/data/batchexecute (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5b245b2f40>: Failed to establish a new connection: [Errno 110] Operation timed out'))  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "/usr/local/lib/python3.9/site-packages/gtts/tts.py", line 264, in write_to_fp     r = s.send(request=pr,   File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send     r = adapter.send(request, **kwargs)   File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send     raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: /_/TranslateWebserverUi/data/batchexecute (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5b245b2f40>: Failed to establish a new connection: [Errno 110] Operation timed out'))  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/components/google_translate/tts.py", line 133, in get_tts_audio     tts.write_to_fp(mp3_data)   File "/usr/local/lib/python3.9/site-packages/gtts/tts.py", line 280, in write_to_fp     raise gTTSError(tts=self) gtts.tts.gTTSError: Failed to connect. Probable cause: Unknown
回复

使用道具 举报

7

主题

122

帖子

1140

积分

金牌会员

Rank: 6Rank: 6

积分
1140
金钱
1018
HASS币
0
发表于 2021-7-31 06:41:55 来自手机 | 显示全部楼层
我发现之前是我没装百度tts(谷歌不能用)
回复

使用道具 举报

7

主题

122

帖子

1140

积分

金牌会员

Rank: 6Rank: 6

积分
1140
金钱
1018
HASS币
0
发表于 2021-7-31 06:42:58 来自手机 | 显示全部楼层
Logger: custom_components.apple_airplayer.device_manager Source: custom_components/apple_airplayer/device_manager.py:105  Integration: Apple AirPlayer (documentation, issues)  First occurred: 06:40:31 (5 occurrences)  Last logged: 06:41:05  Exception raised in async_stream_file, RTSP/1.0 method ANNOUNCE failed with code 400: Bad Request 可这是什么错误呢
回复

使用道具 举报

20

主题

550

帖子

3600

积分

元老级技术达人

积分
3600
金钱
3010
HASS币
210

教程狂人突出贡献

 楼主| 发表于 2021-7-31 14:38:28 | 显示全部楼层
Higashi39 发表于 2021-7-31 06:42
Logger: custom_components.apple_airplayer.device_manager Source: custom_components/apple_airplayer/d ...

你是啥回放设备?HA版本是多少?
回复

使用道具 举报

7

主题

122

帖子

1140

积分

金牌会员

Rank: 6Rank: 6

积分
1140
金钱
1018
HASS币
0
发表于 2021-7-31 16:25:09 | 显示全部楼层
involute 发表于 2021-7-31 14:38
你是啥回放设备?HA版本是多少?

HomePod mini
HA版本Home Assistant 2021.7.4
回复

使用道具 举报

20

主题

550

帖子

3600

积分

元老级技术达人

积分
3600
金钱
3010
HASS币
210

教程狂人突出贡献

 楼主| 发表于 2021-7-31 20:04:20 | 显示全部楼层
Higashi39 发表于 2021-7-31 16:25
HomePod mini
HA版本Home Assistant 2021.7.4

回去阅读顶楼中标红的重要事项3
回复

使用道具 举报

0

主题

107

帖子

815

积分

高级会员

Rank: 4

积分
815
金钱
708
HASS币
0
发表于 2021-7-31 21:55:13 | 显示全部楼层
留个名先,谢谢
回复

使用道具 举报

7

主题

122

帖子

1140

积分

金牌会员

Rank: 6Rank: 6

积分
1140
金钱
1018
HASS币
0
发表于 2021-8-1 03:04:30 | 显示全部楼层
involute 发表于 2021-7-31 20:04
回去阅读顶楼中标红的重要事项3

这样啊,我想着没崩溃,一开始感觉不是
回复

使用道具 举报

3

主题

290

帖子

2806

积分

金牌会员

Rank: 6Rank: 6

积分
2806
金钱
2516
HASS币
0
发表于 2021-8-2 09:35:17 | 显示全部楼层
CORE7.4也是一播放整个HA就崩溃重启,暂时先不用了,等更新
回复

使用道具 举报

2

主题

32

帖子

170

积分

注册会员

Rank: 2

积分
170
金钱
137
HASS币
0
发表于 2021-8-3 16:57:30 | 显示全部楼层

感谢楼主分享!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-3-28 22:11 , Processed in 0.216005 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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