Hi
why i not see watson tts service ? what wrong ?
the configuration is :
tts:
- platform: watson_tts
watson_apikey: ZtELiwAt5XdvNrb-EhSPPnJ* * * *
Hi
why i not see watson tts service ? what wrong ?
the configuration is :
tts:
It looks like you already have Google TTS set up. You can only have one of each key (in this case, tts:
) in your configuration.yaml, so move
- platform: watson_tts
watson_apikey: ZtELiwAt5XdvNrb-EhSPPnJ* * * *
under the existing tts:
line in your configuration.yaml where you have Google TTS set up.
Also, please format your code properly. Use three backticks ( ` ) above and below the code.
ok. i cancelle the Google and now its only watson
and i not see nothing in service choice
what the problem ?
Oh, sorry. You can have both TTS services as long as they’re arranged how you have them. I thought you might have had them under separate tts:
lines.
Check your log for errors.
File “/usr/src/homeassistant/homeassistant/components/watson_tts/tts.py”, line 97, in get_engine
service = TextToSpeechV1(url=config[CONF_URL], iam_apikey=config[CONF_APIKEY])
i got this error
the API its right Api for sure
i really dont know what the problem
Can you post the full error? That appears to only be part of it.
2019-11-07 22:08:05 ERROR (MainThread) [homeassistant.components.tts] Error setting up platform: watson_tts
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/tts/init.py”, line 131, in async_setup_platform
provider = await hass.async_add_job(platform.get_engine, hass, p_config)
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/watson_tts/tts.py”, line 97, in get_engine
service = TextToSpeechV1(url=config[CONF_URL], iam_apikey=config[CONF_APIKEY])
File “/usr/local/lib/python3.7/site-packages/ibm_watson/text_to_speech_v1.py”, line 102, in init
display_name=‘Text to Speech’)
this is the full error
What version of Home Assistant are you running? It looks like a similar issue might have been fixed in a recent release. Maybe it fixes this one too. https://github.com/home-assistant/home-assistant/issues/27722
i have the newest HA version
have option update manual the Watson_tts companent ?
After the update i see the service but get error 403
Failed to call service tts/watson_tts_say. Error: Forbidden, Code: 403
someone know what the problem ?
in configuration.yaml :
tts:
- platform: watson_tts
watson_apikey: O9O7gkOYemJWAMM59y..................