Watson TTS doesn’t work for me at all. Can anyone shed some light?
- platform: watson_tts
watson_apikey: !secret watson_tts_api_key
voice: en-GB_KateVoice
Proof I have an api
[from the BM Cloud site]
But I get this ‘Access is denied’ error,
ibm_cloud_sdk_core.api_exception.ApiException: Error: Unauthorized: Access is denied due to invalid credentials, Code: 401
Here is the full error log
2019-06-23 10:28:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 299, in _async_call_service
context=context
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 89, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call
self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1172, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 143, in async_say_handle
options=options
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 312, in async_get_url
engine, key, message, use_cache, language, options)
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 324, in async_get_tts_audio
message, language, options)
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 134, in get_tts_audio
voice=self.default_voice).get_result()
File "/usr/local/lib/python3.7/site-packages/ibm_watson/text_to_speech_v1.py", line 294, in synthesize
accept_json=False)
File "/usr/local/lib/python3.7/site-packages/ibm_cloud_sdk_core/base_service.py", line 413, in request
raise ApiException(response.status_code, error_message, http_response=response)
ibm_cloud_sdk_core.api_exception.ApiException: Error: Unauthorized: Access is denied due to invalid credentials, Code: 401