From 727ca79b93ba656bad04afc1191d02ddbdc5cc7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Rutkai?= Date: Tue, 25 May 2021 17:38:09 +0200 Subject: [PATCH] Updating IBM Watson SDK, replacing TTS API endpoint (#50909) --- homeassistant/components/watson_tts/manifest.json | 2 +- homeassistant/components/watson_tts/tts.py | 2 +- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/watson_tts/manifest.json b/homeassistant/components/watson_tts/manifest.json index e833ac02638..679ea1ef5c3 100644 --- a/homeassistant/components/watson_tts/manifest.json +++ b/homeassistant/components/watson_tts/manifest.json @@ -2,7 +2,7 @@ "domain": "watson_tts", "name": "IBM Watson TTS", "documentation": "https://www.home-assistant.io/integrations/watson_tts", - "requirements": ["ibm-watson==4.0.1"], + "requirements": ["ibm-watson==5.1.0"], "codeowners": ["@rutkai"], "iot_class": "cloud_push" } diff --git a/homeassistant/components/watson_tts/tts.py b/homeassistant/components/watson_tts/tts.py index eeab72b73d0..cdcbbc6ed2a 100644 --- a/homeassistant/components/watson_tts/tts.py +++ b/homeassistant/components/watson_tts/tts.py @@ -13,7 +13,7 @@ _LOGGER = logging.getLogger(__name__) CONF_URL = "watson_url" CONF_APIKEY = "watson_apikey" -DEFAULT_URL = "https://stream.watsonplatform.net/text-to-speech/api" +DEFAULT_URL = "https://api.us-south.text-to-speech.watson.cloud.ibm.com" CONF_VOICE = "voice" CONF_OUTPUT_FORMAT = "output_format" diff --git a/requirements_all.txt b/requirements_all.txt index 16576c9d07f..715b80e5266 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -810,7 +810,7 @@ iammeter==0.1.7 iaqualink==0.3.4 # homeassistant.components.watson_tts -ibm-watson==4.0.1 +ibm-watson==5.1.0 # homeassistant.components.watson_iot ibmiotf==0.3.4