Bonjour
J’ai un problème général avec le plugin gcast, lorsque j’envoie une commande tts il met souvent un délais de 3 à 8 secondes pour envoyer le son sur mon Google home, et des fois il change de voix…
J’utilise le mode Google translate API sous gcast dans les configurations. Je vois des erreurs token dans les logs.
J’ai déjà relancé plusieurs fois les dépendances et le démon (et rebooté mon raspberry pi4) sous jeedom 4
[2020-11-07 21:23:42][DEBUG] : EUC-KR Korean prober hit error at byte 427589
[2020-11-07 21:23:44][DEBUG] : CP949 Korean prober hit error at byte 427589
[2020-11-07 21:23:47][DEBUG] : Big5 Chinese prober hit error at byte 427591
[2020-11-07 21:23:49][DEBUG] : EUC-TW Taiwan prober hit error at byte 427589
[2020-11-07 21:23:54][DEBUG] : utf-8 confidence = 0.7525
[2020-11-07 21:23:54][DEBUG] : SHIFT_JIS Japanese confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : EUC-JP not active
[2020-11-07 21:23:54][DEBUG] : GB2312 not active
[2020-11-07 21:23:54][DEBUG] : EUC-KR not active
[2020-11-07 21:23:54][DEBUG] : CP949 not active
[2020-11-07 21:23:54][DEBUG] : Big5 not active
[2020-11-07 21:23:54][DEBUG] : EUC-TW not active
[2020-11-07 21:23:54][DEBUG] : windows-1251 Russian confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : KOI8-R Russian confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : ISO-8859-5 Russian confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : MacCyrillic Russian confidence = 0.0
[2020-11-07 21:23:54][DEBUG] : IBM866 Russian confidence = 0.0
[2020-11-07 21:23:54][DEBUG] : IBM855 Russian confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : ISO-8859-7 Greek confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : windows-1253 Greek confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : ISO-8859-5 Bulgairan confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : windows-1251 Bulgarian confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : TIS-620 Thai confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : ISO-8859-9 Turkish confidence = 0.41298580316318845
[2020-11-07 21:23:54][DEBUG] : windows-1255 Hebrew confidence = 0.0
[2020-11-07 21:23:54][DEBUG] : windows-1255 Hebrew confidence = 0.0
[2020-11-07 21:23:54][DEBUG] : windows-1255 Hebrew confidence = 0.0
[2020-11-07 21:23:54][DEBUG] : utf-8 confidence = 0.7525
[2020-11-07 21:23:54][DEBUG] : SHIFT_JIS Japanese confidence = 0.01
[2020-11-07 21:23:54][DEBUG] : EUC-JP not active
[2020-11-07 21:23:54][DEBUG] : GB2312 not active
[2020-11-07 21:23:54][DEBUG] : EUC-KR not active
[2020-11-07 21:23:54][DEBUG] : CP949 not active
[2020-11-07 21:23:54][DEBUG] : Big5 not active
[2020-11-07 21:23:54][DEBUG] : EUC-TW not active
[2020-11-07 21:23:55][ERROR] : CMD-TTS------Google Translate API : Cannot connect to API - failover to picotts (Unable to find token seed! Did https://translate.google.com change?)
[2020-11-07 21:23:55][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 1625, in get_tts_data
tts.save(filenamemp3)
File "/var/www/html/plugins/googlecast/resources/gtts/tts.py", line 247, in save
self.write_to_fp(f)
File "/var/www/html/plugins/googlecast/resources/gtts/tts.py", line 187, in write_to_fp
part_tk = self.token.calculate_token(part)
File "/var/www/html/plugins/googlecast/resources/gtts/gtts_token/gtts_token.py", line 28, in calculate_token
seed = self._get_token_key()
File "/var/www/html/plugins/googlecast/resources/gtts/gtts_token/gtts_token.py", line 59, in _get_token_key
"Unable to find token seed! Did https://translate.google.com change?"
ValueError: Unable to find token seed! Did https://translate.google.com change?
[2020-11-07 21:23:56][DEBUG] : CMD-TTS------Sentence: 'Test Google home' (picotts,fr-FR,speed:1.00)
[2020-11-07 21:23:56][DEBUG] : TTS------Estimated duration of tts media is 3.111875 secondes
[2020-11-07 21:23:56][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Google Home
[2020-11-07 21:23:56][DEBUG] : SENDER------Send to jeedom : {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'nowplaying': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'online': True, 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 70, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Default Media Receiver', 'is_busy': True, 'title': 'TTS', 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '0', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': 'http://192.168.0.20/plugins/googlecast/desktop/images/tts.png', 'stream_type': 'BUFFERED', 'track': None, 'player_state': 'IDLE', 'supported_media_commands': 274447, 'supports_pause': True, 'duration': 1.68, 'content_type': 'audio/mp3', 'idle_reason': 'FINISHED'}}
[2020-11-07 21:23:56][DEBUG] : SENDER------Send to jeedom : {'devices': {'d1e6252c-c337-64fe-08df-1e2059134595': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'status': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'uri': '192.168.0.191:8009', 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 70, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Default Media Receiver', 'is_busy': True, 'title': 'TTS', 'artist': '', 'series_title': '', 'stream_type': 'BUFFERED', 'player_state': 'IDLE'}, 'typemsg': 'info', 'lastOnline': 1604780354, 'online': True, 'lastSent': 1604780636, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1604780613}}}
[2020-11-07 21:23:56][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Google Home
[2020-11-07 21:23:56][DEBUG] : SENDER------Send to jeedom : {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'nowplaying': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'online': True, 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 70, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Casting: TTS', 'is_busy': True, 'title': 'TTS', 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '0', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': 'http://192.168.0.20/plugins/googlecast/desktop/images/tts.png', 'stream_type': 'BUFFERED', 'track': None, 'player_state': 'IDLE', 'supported_media_commands': 274447, 'supports_pause': True, 'duration': 1.68, 'content_type': 'audio/mp3', 'idle_reason': 'FINISHED'}}
[2020-11-07 21:23:56][DEBUG] : SENDER------Send to jeedom : {'devices': {'d1e6252c-c337-64fe-08df-1e2059134595': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'status': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'uri': '192.168.0.191:8009', 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 70, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Casting: TTS', 'is_busy': True, 'title': 'TTS', 'artist': '', 'series_title': '', 'stream_type': 'BUFFERED', 'player_state': 'IDLE'}, 'typemsg': 'info', 'lastOnline': 1604780354, 'online': True, 'lastSent': 1604780636, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1604780613}}}
[2020-11-07 21:23:56][DEBUG] : JEEDOMCHROMECAST------ NOW PLAYING STATUS SEND {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'title': 'TTS', 'artist': '', 'series_title': '', 'player_state': 'PLAYING'}
[2020-11-07 21:23:56][DEBUG] : SENDER------Send to jeedom : {'devices': {'d1e6252c-c337-64fe-08df-1e2059134595': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'typemsg': 'info', 'status': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'title': 'TTS', 'artist': '', 'series_title': '', 'player_state': 'PLAYING'}}}}
[2020-11-07 21:23:58][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Google Home
[2020-11-07 21:23:58][DEBUG] : SENDER------Send to jeedom : {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'nowplaying': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'online': True, 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 70, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Default Media Receiver', 'is_busy': True, 'title': 'TTS', 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '2', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': 'http://192.168.0.20/plugins/googlecast/desktop/images/tts.png', 'stream_type': 'BUFFERED', 'track': None, 'player_state': 'PLAYING', 'supported_media_commands': 274447, 'supports_pause': True, 'duration': 1.872, 'content_type': 'audio/mp3', 'idle_reason': 'FINISHED'}}
[2020-11-07 21:23:58][DEBUG] : JEEDOMCHROMECAST------ NOW PLAYING STATUS SEND {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'title': 'TTS', 'artist': '', 'series_title': '', 'player_state': 'IDLE'}
[2020-11-07 21:23:58][DEBUG] : SENDER------Send to jeedom : {'devices': {'d1e6252c-c337-64fe-08df-1e2059134595': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'status': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'uri': '192.168.0.191:8009', 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 70, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Default Media Receiver', 'is_busy': True, 'title': 'TTS', 'artist': '', 'series_title': '', 'stream_type': 'BUFFERED', 'player_state': 'IDLE'}, 'typemsg': 'info', 'lastOnline': 1604780354, 'online': True, 'lastSent': 1604780638, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1604780613}}}
[2020-11-07 21:23:59][DEBUG] : JEEDOMCHROMECAST------ getPreviousPlayerCmd {'current_appid': 'CC1AD845', 'current_sessionid': 'c61f7c0f-b603-4d50-8603-84d03e093216', 'current_player_state': 'IDLE', 'current_stream_type': 'BUFFERED', 'current_time': 0.0}
[2020-11-07 21:23:59][DEBUG] : TTS------Resume is not possible!
[2020-11-07 21:23:59][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Google Home
[2020-11-07 21:23:59][DEBUG] : SENDER------Send to jeedom : {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'nowplaying': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'online': True, 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 37, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Default Media Receiver', 'is_busy': True, 'title': 'TTS', 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '0', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': 'http://192.168.0.20/plugins/googlecast/desktop/images/tts.png', 'stream_type': 'BUFFERED', 'track': None, 'player_state': 'IDLE', 'supported_media_commands': 274447, 'supports_pause': True, 'duration': 1.872, 'content_type': 'audio/mp3', 'idle_reason': 'FINISHED'}}
[2020-11-07 21:23:59][DEBUG] : SENDER------Send to jeedom : {'devices': {'d1e6252c-c337-64fe-08df-1e2059134595': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'status': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'uri': '192.168.0.191:8009', 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 37, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Default Media Receiver', 'is_busy': True, 'title': 'TTS', 'artist': '', 'series_title': '', 'stream_type': 'BUFFERED', 'player_state': 'IDLE'}, 'typemsg': 'info', 'lastOnline': 1604780354, 'online': True, 'lastSent': 1604780639, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1604780613}}}
[2020-11-07 21:23:59][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Google Home
[2020-11-07 21:23:59][DEBUG] : SENDER------Send to jeedom : {'devices': {'d1e6252c-c337-64fe-08df-1e2059134595': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'status': {'uuid': 'd1e6252c-c337-64fe-08df-1e2059134595', 'uri': '192.168.0.191:8009', 'friendly_name': 'Google Home', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 37, 'volume_muted': False, 'app_id': 'CC1AD845', 'icon_url': '', 'display_name': 'Default Media Receiver', 'status_text': 'Default Media Receiver', 'is_busy': True, 'title': 'TTS', 'artist': '', 'series_title': '', 'stream_type': 'BUFFERED', 'player_state': 'IDLE'}, 'typemsg': 'info', 'lastOnline': 1604780354, 'online': True, 'lastSent': 1604780639, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1604780613}}}
[2020-11-07 21:24:11][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Google Home
[2020-11-07 21:24:35][DEBUG] : SCANNER------ Start scanning... (schedule)
[2020-11-07 21:24:35][DEBUG] : MEMORY---- Total CPU time used : 97.913s (29.32%) | Last 62 sec : 22.296s (35.96%) | Memory : 76 Mo
[2020-11-07 21:24:35][DEBUG] : SCANNER------No connection to device 802f1646-5d9c-edca-e7e0-77ce0d6cacbe
[2020-11-07 21:24:35][DEBUG] : SCANNER------No connection to device ed256ede-e678-08cd-da5d-69d7ebf4851a
[2020-11-07 21:24:35][DEBUG] : SCANNER------No connection to device af0849d5-b84e-9f46-4c8d-216be6d55cc6