sony007com
发表于 2018-5-19 19:12:42
感谢楼主分享感谢楼主分享
debitus
发表于 2018-5-19 20:55:41
不达目 发表于 2018-5-19 17:12
我用你提供的代码测试了一下,手机上的通知和sonos的tts都是正常的,没有出现循环播放的情况。
你可以看 ...
谢谢,我再试试。
lff520520
发表于 2018-5-19 22:40:19
正好看看那 学习学习
cljgood
发表于 2018-5-20 16:13:12
学习学习
debitus
发表于 2018-5-20 16:36:16
不达目 发表于 2018-5-19 17:12
我用你提供的代码测试了一下,手机上的通知和sonos的tts都是正常的,没有出现循环播放的情况。
你可以看 ...
两个sonos,其中一个会出现循环。
果然有报错。Log Details (ERROR)
Sun May 20 2018 16:27:38 GMT+0800 (CST)
Error doing job: Exception in callback <function SpeechManager._async_store_to_memcache.<locals>.async_remove_from_mem at 0x7ff7b258c400>
Traceback (most recent call last):
File "uvloop/cbhandles.pyx", line 201, in uvloop.loop.TimerHandle._run
File "/usr/src/app/homeassistant/components/tts/__init__.py", line 387, in async_remove_from_mem
self.mem_cache.pop(key)
KeyError: '7d9312ef54f4aba05d097b65bbd3a2561c275835_zh_5890202043123824081_baidu'
allan_dang
发表于 2018-5-20 22:25:50
谢谢分享
不达目
发表于 2018-5-21 00:35:45
本帖最后由 不达目 于 2018-5-21 00:37 编辑
debitus 发表于 2018-5-20 16:36
两个sonos,其中一个会出现循环。
果然有报错。Log Details (ERROR)
Sun...
嗯,如果有两个sonos,在snapshot和restore中指定一下要tts播放的entity_id应该就没问题了。
debitus
发表于 2018-5-21 10:53:36
不达目 发表于 2018-5-21 00:35
嗯,如果有两个sonos,在snapshot和restore中指定一下要tts播放的entity_id应该就没问题了。
...
谢谢,我再试试,之前只指定了snapshot的entity_id,忘记restore那块儿了。
120140828
发表于 2018-5-23 21:35:42
谢谢,学习了
Existence
发表于 2018-5-24 10:43:35
学习一下