Erreur Cloud Text-to-Speech API

Bonjour à tous,

J’ai utilisé GoogleCast avec l’API Cloud Text-to-Speech pendant plusieurs mois et depuis une semaine j’ai la voix robotique du TTS par défaut qui est utilisé à la place.
Après quelques recherches, je ne suis pas sûr que le problème provienne de Jeedom ou du plugin car sur le dashboard de l’API google j’ai ça :

En gros que des erreurs 4xx depuis le 04/03.
Avez-vous une idée de comment je peux creuser le sujet pour trouver mon problème ?

Merci et bonne journée.

Bonjour,

J’ai exactement le même souci. J’utilise ce plugin avec l’APi cloud également et je constate le même problème: une voix robotique digne d’un tts offline à remplacé la voix plus « humaine » généré par google :frowning:

Je me suis connecté sur la console google et je constate la même chose que NanakiFire, quelqu’un à une idée du souci ?

merci

Idem ici …

Bonjour,

Pareil pour moi sauf pour tout ce qui est en cache ou c’est dit correctement

1 « J'aime »

Que disent les logs du plugin en debug?

Voilà le log du test à l’instant:

[2021-03-13 15:12:30][ERROR] : CMD-TTS------Google Cloud TextToSpeech API Error :  403 (Forbidden) from Google Cloud TTS API. Probable cause: This API method requires billing to be enabled. Please enable billing on project #508133192171 by visiting https://console.developers.google.com/billing/enable?project=508133192171 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.
[2021-03-13 15:12:30][ERROR] : CMD-TTS------Google Cloud TextToSpeech API : Error while using Google Cloud TextToSpeech API - failover to picotts
sh: 1: pico2wave: not found
[2021-03-13 15:12:30][ERROR] : CMD-TTS------Exception while generating tts file : [Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/d78a8ce194e7cd9aa48e3deebd0a72f3_failover.wav'
[2021-03-13 15:12:44][ERROR] : CMD-TTS------Google Cloud TextToSpeech API Error :  403 (Forbidden) from Google Cloud TTS API. Probable cause: This API method requires billing to be enabled. Please enable billing on project #508133192171 by visiting https://console.developers.google.com/billing/enable?project=508133192171 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.
[2021-03-13 15:12:44][ERROR] : CMD-TTS------Google Cloud TextToSpeech API : Error while using Google Cloud TextToSpeech API - failover to picotts
sh: 1: pico2wave: not found
[2021-03-13 15:12:44][ERROR] : CMD-TTS------Exception while generating tts file : [Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/d78a8ce194e7cd9aa48e3deebd0a72f3_failover.wav'
[2021-03-13 19:37:24][INFO] : ------------------------------------------------------
[2021-03-13 19:37:24][INFO] : ------------------------------------------------------
[2021-03-13 19:37:24][INFO] : GLOBAL------STARTING googlecast
[2021-03-13 19:37:24][INFO] : GLOBAL------Scan Timeout : 5
[2021-03-13 19:37:24][INFO] : GLOBAL------Scan Frequency : 60
[2021-03-13 19:37:24][INFO] : GLOBAL------Log level : debug
[2021-03-13 19:37:24][INFO] : GLOBAL------Socket port : 55012
[2021-03-13 19:37:24][INFO] : GLOBAL------Socket host : 127.0.0.1
[2021-03-13 19:37:24][INFO] : GLOBAL------PID file : /tmp/googlecast.pid
[2021-03-13 19:37:24][INFO] : GLOBAL------Apikey : *******************************
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS Jeedom server : http://192.168.1.55
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS default language : fr-FR
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS default engine : gttsapi
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS default speech speed : 1.2
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS Google Speech API Key (optional) : OK
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS Google Speech API Voice (optional) : fr-FR-Standard-B
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS default delay before volume restore : 1300 ms
[2021-03-13 19:37:24][INFO] : GLOBAL------TTS default silence before tts : 300 ms
[2021-03-13 19:37:24][INFO] : GLOBAL------Cache status : True
[2021-03-13 19:37:24][INFO] : GLOBAL------Callback : http://127.0.0.1:80/plugins/googlecast/core/php/googlecast.api.php
[2021-03-13 19:37:24][INFO] : GLOBAL------Event cycle : 0.5
[2021-03-13 19:37:24][INFO] : GLOBAL------Main cycle : 2.0
[2021-03-13 19:37:24][INFO] : GLOBAL------Default status message :  
[2021-03-13 19:37:24][INFO] : -----------------------------------------------------
[2021-03-13 19:37:24][DEBUG] : Writing PID 27657 to /tmp/googlecast.pid
[2021-03-13 19:37:24][DEBUG] : Init request module v2.21.0
[2021-03-13 19:37:24][INFO] : GLOBAL------Network communication to jeedom OK.
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Socket interface started
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------LoopNetServer Thread started
[2021-03-13 19:37:24][INFO] : GLOBAL------Socket started and waiting for messages from Jeedom...
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Listening on: [127.0.0.1:55012]
[2021-03-13 19:37:24][DEBUG] : WARMUPNOTIF------ Checking file generation...
[2021-03-13 19:37:24][DEBUG] : SENDER------Send to jeedom :  {'started': 1, 'source': 'local'}
[2021-03-13 19:37:24][DEBUG] : SCANNER------ Start scanning... (schedule)
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Start zeroconf monitoring thread...
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46302]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "49c56414-b92d-499e-b783-4d9245b244a4", "options": {"ignore_CEC": "0"}}}
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46302]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46304]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "4d8104ef-1291-f450-cb81-d3ff24dd6294", "options": {"ignore_CEC": "0"}}}
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46304]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46306]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "5e860367-ad52-f0e3-225a-d133f8e1f670", "options": {"ignore_CEC": "0"}}}
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46306]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46308]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "63211136-8b7e-fc5d-818e-666c4ad81aef", "options": {"ignore_CEC": "0"}}}
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46308]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46310]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "be0ade73-f2b1-a557-3953-0b1c5c0e3a65", "options": {"ignore_CEC": "0"}}}
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46310]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46312]
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "add", "device": {"uuid": "089b736e-9fe6-df6e-36fc-84644c0e8c8d", "options": {"ignore_CEC": "0"}}}
[2021-03-13 19:37:24][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46312]
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Audio Chambre
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Audio Chambre)
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Salon
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Salon)
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Home Chambre
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Home Chambre)
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Appart
[2021-03-13 19:37:24][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Appart)
[2021-03-13 19:37:25][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:25][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-03-13 19:37:25][DEBUG] : SOCKET-READ------Add device : {'uuid': '49c56414-b92d-499e-b783-4d9245b244a4', 'options': {'ignore_CEC': '0'}}
[2021-03-13 19:37:25][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:25][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-03-13 19:37:25][DEBUG] : SOCKET-READ------Add device : {'uuid': '4d8104ef-1291-f450-cb81-d3ff24dd6294', 'options': {'ignore_CEC': '0'}}
[2021-03-13 19:37:25][INFO] : SCANNER------ Adding chromecast : Audio Chambre
[2021-03-13 19:37:25][DEBUG] : Thread started...
[2021-03-13 19:37:25][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Audio Chambre
[2021-03-13 19:37:25][INFO] : SCANNER------ Adding chromecast : Appart
[2021-03-13 19:37:25][DEBUG] : Thread started...
[2021-03-13 19:37:25][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Appart
[2021-03-13 19:37:26][DEBUG] : SENDER------Send to jeedom : {'devices': {'4d8104ef-1291-f450-cb81-d3ff24dd6294': {'uuid': '4d8104ef-1291-f450-cb81-d3ff24dd6294', 'status': {'uuid': '4d8104ef-1291-f450-cb81-d3ff24dd6294', 'uri': '192.168.1.49:8009', 'friendly_name': 'Audio Chambre', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 100, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': 'UNKNOWN', 'player_state': 'UNKNOWN'}, 'typemsg': 'info', 'lastOnline': 1615660645, 'online': True, 'lastSent': 1615660645, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660645}, '49c56414-b92d-499e-b783-4d9245b244a4': {'uuid': '49c56414-b92d-499e-b783-4d9245b244a4', 'status': {'uuid': '49c56414-b92d-499e-b783-4d9245b244a4', 'uri': '192.168.1.45:32124', 'friendly_name': 'Appart', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 47, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': 'UNKNOWN', 'player_state': 'UNKNOWN'}, 'typemsg': 'info', 'lastOnline': 1615660645, 'online': True, 'lastSent': 1615660645, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660645}}}
[2021-03-13 19:37:26][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:26][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-03-13 19:37:26][DEBUG] : SOCKET-READ------Add device : {'uuid': '5e860367-ad52-f0e3-225a-d133f8e1f670', 'options': {'ignore_CEC': '0'}}
[2021-03-13 19:37:26][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:26][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-03-13 19:37:26][DEBUG] : SOCKET-READ------Add device : {'uuid': '63211136-8b7e-fc5d-818e-666c4ad81aef', 'options': {'ignore_CEC': '0'}}
[2021-03-13 19:37:26][DEBUG] : SCANNER------ Start scanning... (schedule)
[2021-03-13 19:37:26][DEBUG] :  MEMORY---- Total CPU time used : 3.378s (168.92%)  |  Last 2 sec : 3.378s (168.92%)  | Memory : 37 Mo
[2021-03-13 19:37:26][DEBUG] : ZEROCONF------ Stopping zeroconf monitoring thread...
[2021-03-13 19:37:26][DEBUG] : ZEROCONF------ Start zeroconf monitoring thread...
[2021-03-13 19:37:27][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Audio Chambre
[2021-03-13 19:37:27][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Salon
[2021-03-13 19:37:27][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Salon)
[2021-03-13 19:37:27][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Appart
[2021-03-13 19:37:27][DEBUG] : ZEROCONF------ Signal detected from chromecast on zeroconf network : Home Chambre
[2021-03-13 19:37:27][DEBUG] : ZEROCONF------ Signal from chromecast will be processed soon (Home Chambre)
[2021-03-13 19:37:27][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:27][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-03-13 19:37:27][DEBUG] : SOCKET-READ------Add device : {'uuid': 'be0ade73-f2b1-a557-3953-0b1c5c0e3a65', 'options': {'ignore_CEC': '0'}}
[2021-03-13 19:37:27][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:27][DEBUG] : SOCKET-READ------Received command from jeedom : add
[2021-03-13 19:37:27][DEBUG] : SOCKET-READ------Add device : {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'options': {'ignore_CEC': '0'}}
[2021-03-13 19:37:27][INFO] : SCANNER------ Adding chromecast : Salon
[2021-03-13 19:37:27][DEBUG] : Thread started...
[2021-03-13 19:37:27][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Salon
[2021-03-13 19:37:27][INFO] : SCANNER------ Adding chromecast : Home Chambre
[2021-03-13 19:37:27][DEBUG] : Thread started...
[2021-03-13 19:37:27][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Home Chambre
[2021-03-13 19:37:27][DEBUG] : SCANNER------No connection to device 5e860367-ad52-f0e3-225a-d133f8e1f670
[2021-03-13 19:37:27][DEBUG] : SCANNER------No connection to device 63211136-8b7e-fc5d-818e-666c4ad81aef
[2021-03-13 19:37:27][DEBUG] : SENDER------Send to jeedom :  {'devices': {'63211136-8b7e-fc5d-818e-666c4ad81aef': {'uuid': '63211136-8b7e-fc5d-818e-666c4ad81aef', 'status': {'uuid': '63211136-8b7e-fc5d-818e-666c4ad81aef', 'is_stand_by': False, 'is_active_input': False, 'display_name': '', 'status_text': ' ', 'app_id': '', 'icon_url': '', 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': '', 'player_state': ''}, 'typemsg': 'info', 'lastOnline': 0, 'online': False, 'lastSent': 1615660647, 'lastOfflineSent': 1615660647, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660647}}}
[2021-03-13 19:37:27][DEBUG] : SENDER------Send to jeedom :  {'devices': {'5e860367-ad52-f0e3-225a-d133f8e1f670': {'uuid': '5e860367-ad52-f0e3-225a-d133f8e1f670', 'status': {'uuid': '5e860367-ad52-f0e3-225a-d133f8e1f670', 'is_stand_by': False, 'is_active_input': False, 'display_name': '', 'status_text': ' ', 'app_id': '', 'icon_url': '', 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': '', 'player_state': ''}, 'typemsg': 'info', 'lastOnline': 0, 'online': False, 'lastSent': 1615660647, 'lastOfflineSent': 1615660647, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660647}}}
[2021-03-13 19:37:28][DEBUG] : SENDER------Send to jeedom : {'devices': {'be0ade73-f2b1-a557-3953-0b1c5c0e3a65': {'uuid': 'be0ade73-f2b1-a557-3953-0b1c5c0e3a65', 'status': {'uuid': 'be0ade73-f2b1-a557-3953-0b1c5c0e3a65', 'uri': '192.168.1.45:8009', 'friendly_name': 'Salon', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 34, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': 'UNKNOWN', 'player_state': 'UNKNOWN'}, 'typemsg': 'info', 'lastOnline': 1615660647, 'online': True, 'lastSent': 1615660647, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660647}, '089b736e-9fe6-df6e-36fc-84644c0e8c8d': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'status': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'uri': '192.168.1.46:8009', 'friendly_name': 'Home Chambre', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 60, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': 'UNKNOWN', 'player_state': 'UNKNOWN'}, 'typemsg': 'info', 'lastOnline': 1615660647, 'online': True, 'lastSent': 1615660647, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660647}}}
[2021-03-13 19:37:35][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46426]
[2021-03-13 19:37:35][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "nowplaying", "uuid": "089b736e-9fe6-df6e-36fc-84644c0e8c8d"}
[2021-03-13 19:37:35][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46426]
[2021-03-13 19:37:36][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:36][DEBUG] : SOCKET-READ------Received command from jeedom : nowplaying
[2021-03-13 19:37:36][DEBUG] : SOCKET-READ------Now playing activated for 089b736e-9fe6-df6e-36fc-84644c0e8c8d
[2021-03-13 19:37:36][DEBUG] : JEEDOMCHROMECAST------ Starting monitoring of 089b736e-9fe6-df6e-36fc-84644c0e8c8d
[2021-03-13 19:37:36][DEBUG] : SENDER------Send to jeedom :  {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'nowplaying': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'online': True, 'friendly_name': 'Home Chambre', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 60, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': None, 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '0', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': None, 'stream_type': 'UNKNOWN', 'track': None, 'player_state': 'UNKNOWN', 'supported_media_commands': 0, 'supports_pause': False, 'duration': None, 'content_type': None, 'idle_reason': None}}
[2021-03-13 19:37:52][DEBUG] : SOCKETHANDLER------Client connected to [127.0.0.1:46552]
[2021-03-13 19:37:52][DEBUG] : SOCKETHANDLER------Message read from socket: {"apikey": "XXXXXXXXXXXXX", "cmd": "action", "device": {"uuid": "089b736e-9fe6-df6e-36fc-84644c0e8c8d", "source": "googlecast"}, "command": [{"cmd": "tts", "value": "bonjour c'est un message de test", "vol": "100"}]}
[2021-03-13 19:37:52][DEBUG] : SOCKETHANDLER------Client disconnected from [127.0.0.1:46552]
[2021-03-13 19:37:52][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-03-13 19:37:52][DEBUG] : SOCKET-READ------Received command from jeedom : action
[2021-03-13 19:37:52][DEBUG] : SOCKET-READ------Attempt an action on a device
[2021-03-13 19:37:52][DEBUG] : SOCKET-READ------Action Thread Launched
[2021-03-13 19:37:52][DEBUG] : ACTION------ action - tts - 089b736e-9fe6-df6e-36fc-84644c0e8c8d - bonjour c'est un message de test - none
[2021-03-13 19:37:52][DEBUG] : ACTION------TTS action
[2021-03-13 19:37:52][DEBUG] : CMD-TTS------TTS Filename hexdigest : fab76eb45028266e0856eba74e0fb134  (bonjour c'est un message de testgttsapifr-FR-Standard-B300)
[2021-03-13 19:37:52][DEBUG] : CMD-TTS------Generating file
[2021-03-13 19:37:52][DEBUG] : gcloudTTS DEBUG - Detailed reply ----
[2021-03-13 19:37:52][DEBUG] : {
"error": {
"code": 403,
"message": "This API method requires billing to be enabled. Please enable billing on project #508133192171 by visiting https://console.developers.google.com/billing/enable?project=508133192171 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developers console billing",
"url": "https://console.developers.google.com/billing/enable?project=508133192171"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "BILLING_DISABLED",
"domain": "googleapis.com",
"metadata": {
"consumer": "projects/508133192171",
"service": "texttospeech.googleapis.com"
}
}
]
}
}
[2021-03-13 19:37:52][DEBUG] : gcloudTTS DEBUG ---------------------
[2021-03-13 19:37:52][ERROR] : CMD-TTS------Google Cloud TextToSpeech API Error :  403 (Forbidden) from Google Cloud TTS API. Probable cause: This API method requires billing to be enabled. Please enable billing on project #508133192171 by visiting https://console.developers.google.com/billing/enable?project=508133192171 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry.
[2021-03-13 19:37:52][ERROR] : CMD-TTS------Google Cloud TextToSpeech API : Error while using Google Cloud TextToSpeech API - failover to picotts
sh: 1: pico2wave: not found
[2021-03-13 19:37:52][ERROR] : CMD-TTS------Exception while generating tts file : [Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/fab76eb45028266e0856eba74e0fb134_failover.wav'
[2021-03-13 19:37:52][DEBUG] : Traceback (most recent call last):
File "/var/www/html/plugins/googlecast/resources/googlecast.py", line 1742, in get_tts_data
speech = AudioSegment.from_wav(filename)
File "/var/www/html/plugins/googlecast/resources/pydub/audio_segment.py", line 740, in from_wav
return cls.from_file(file, 'wav', parameters=parameters)
File "/var/www/html/plugins/googlecast/resources/pydub/audio_segment.py", line 615, in from_file
file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False)
File "/var/www/html/plugins/googlecast/resources/pydub/utils.py", line 60, in _fd_or_path_or_tempfile
fd = open(fd, mode=mode)
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/html/plugins/googlecast/tmp/fab76eb45028266e0856eba74e0fb134_failover.wav'
[2021-03-13 19:37:52][DEBUG] : TTS------File generation failed !
[2021-03-13 19:37:52][DEBUG] : ACTION------SET VOLUME OPTION
[2021-03-13 19:37:52][DEBUG] : SENDER------Send to jeedom :  {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'nowplaying': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'online': True, 'is_active_input': False, 'is_stand_by': False, 'display_name': 'ERROR', 'status_text': 'ERROR', 'player_state': 'ERROR', 'title': '', 'album_artist': '', 'album_name': '', 'current_time': 0, 'artist': '', 'image': None, 'series_title': '', 'season': '', 'episode': '', 'stream_type': '', 'track': ''}}
[2021-03-13 19:37:53][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Home Chambre
[2021-03-13 19:37:53][DEBUG] : SENDER------Send to jeedom :  {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'nowplaying': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'online': True, 'friendly_name': 'Home Chambre', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 100, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': None, 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '0', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': None, 'stream_type': 'UNKNOWN', 'track': None, 'player_state': 'UNKNOWN', 'supported_media_commands': 0, 'supports_pause': False, 'duration': None, 'content_type': None, 'idle_reason': None}}
[2021-03-13 19:37:53][DEBUG] : SENDER------Send to jeedom :  {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'nowplaying': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'online': True, 'friendly_name': 'Home Chambre', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 100, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': None, 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '0', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': None, 'stream_type': 'UNKNOWN', 'track': None, 'player_state': 'UNKNOWN', 'supported_media_commands': 0, 'supports_pause': False, 'duration': None, 'content_type': None, 'idle_reason': None}}
[2021-03-13 19:37:53][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Home Chambre
[2021-03-13 19:37:53][DEBUG] : SENDER------Send to jeedom : {'devices': {'089b736e-9fe6-df6e-36fc-84644c0e8c8d': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'typemsg': 'info', 'status': {'uuid': '089b736e-9fe6-df6e-36fc-84644c0e8c8d', 'display_name': '', 'status_text': ' ', 'uri': '192.168.1.46:8009', 'friendly_name': 'Home Chambre', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 100, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': 'UNKNOWN', 'player_state': 'UNKNOWN'}, 'lastOnline': 1615660647, 'online': True, 'lastSent': 1615660673, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660647}}}
[2021-03-13 19:37:53][DEBUG] : JEEDOMCHROMECAST------ Detected changes in status of Appart
[2021-03-13 19:37:53][DEBUG] : SENDER------Send to jeedom :  {'uuid': '49c56414-b92d-499e-b783-4d9245b244a4', 'nowplaying': {'uuid': '49c56414-b92d-499e-b783-4d9245b244a4', 'online': True, 'friendly_name': 'Appart', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 67, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': None, 'album_artist': None, 'metadata_type': None, 'album_name': None, 'current_time': '0', 'artist': None, 'series_title': None, 'season': None, 'episode': None, 'image': None, 'stream_type': 'UNKNOWN', 'track': None, 'player_state': 'UNKNOWN', 'supported_media_commands': 0, 'supports_pause': False, 'duration': None, 'content_type': None, 'idle_reason': None}}
[2021-03-13 19:37:53][DEBUG] : SENDER------Send to jeedom : {'devices': {'49c56414-b92d-499e-b783-4d9245b244a4': {'uuid': '49c56414-b92d-499e-b783-4d9245b244a4', 'status': {'uuid': '49c56414-b92d-499e-b783-4d9245b244a4', 'uri': '192.168.1.45:32124', 'friendly_name': 'Appart', 'is_active_input': False, 'is_stand_by': False, 'volume_level': 67, 'volume_muted': False, 'app_id': None, 'icon_url': None, 'display_name': '', 'status_text': ' ', 'is_busy': False, 'title': '', 'artist': '', 'series_title': '', 'stream_type': 'UNKNOWN', 'player_state': 'UNKNOWN'}, 'typemsg': 'info', 'lastOnline': 1615660645, 'online': True, 'lastSent': 1615660673, 'lastOfflineSent': 0, 'options': {'ignore_CEC': '0'}, 'lastScan': 1615660647}}}

La réponse est dans le message d’erreur. Il faut activer le compte de facturation pour l’api

1 « J'aime »

Merci pour ta réponse, ce qui est bizarre c’est que cela ai fonctionné jusqu’à maintenant alors que la date de validité de ma CB était 02/20. :thinking:
Ils ont du faire encore des changement chez eux

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.