diff --git a/homeassistant/components/cloud/manifest.json b/homeassistant/components/cloud/manifest.json index 7f8dfca1448..7bd4a822fba 100644 --- a/homeassistant/components/cloud/manifest.json +++ b/homeassistant/components/cloud/manifest.json @@ -8,5 +8,5 @@ "integration_type": "system", "iot_class": "cloud_push", "loggers": ["hass_nabucasa"], - "requirements": ["hass-nabucasa==0.61.1"] + "requirements": ["hass-nabucasa==0.62.0"] } diff --git a/homeassistant/components/cloud/tts.py b/homeassistant/components/cloud/tts.py index 00eacf7ca52..bbf4ef287d6 100644 --- a/homeassistant/components/cloud/tts.py +++ b/homeassistant/components/cloud/tts.py @@ -1,7 +1,7 @@ """Support for the cloud for text to speech service.""" from hass_nabucasa import Cloud -from hass_nabucasa.voice import MAP_VOICE, VoiceError +from hass_nabucasa.voice import MAP_VOICE, AudioOutput, VoiceError import voluptuous as vol from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider @@ -99,7 +99,10 @@ class CloudProvider(Provider): # Process TTS try: data = await self.cloud.voice.process_tts( - message, language, gender=options[CONF_GENDER] + message, + language, + gender=options[CONF_GENDER], + output=AudioOutput.MP3, ) except VoiceError: return (None, None) diff --git a/homeassistant/components/tts/__init__.py b/homeassistant/components/tts/__init__.py index 0d253d7d94f..39aedfe8cbd 100644 --- a/homeassistant/components/tts/__init__.py +++ b/homeassistant/components/tts/__init__.py @@ -502,7 +502,8 @@ class SpeechManager: ) # Save to memory - data = self.write_tags(filename, data, provider, message, language, options) + if extension == "mp3": + data = self.write_tags(filename, data, provider, message, language, options) self._async_store_to_memcache(cache_key, filename, data) if cache: diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 29665559e4d..edc88caef8a 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -20,7 +20,7 @@ ciso8601==2.3.0 cryptography==39.0.1 dbus-fast==1.84.2 fnvhash==0.1.0 -hass-nabucasa==0.61.1 +hass-nabucasa==0.62.0 hassil==1.0.6 home-assistant-bluetooth==1.9.3 home-assistant-frontend==20230309.1 diff --git a/requirements_all.txt b/requirements_all.txt index 0bfd27361c8..91b480e973a 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -868,7 +868,7 @@ ha-philipsjs==3.0.0 habitipy==0.2.0 # homeassistant.components.cloud -hass-nabucasa==0.61.1 +hass-nabucasa==0.62.0 # homeassistant.components.splunk hass_splunk==0.1.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 7a02110f54b..6b88020affd 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -666,7 +666,7 @@ ha-philipsjs==3.0.0 habitipy==0.2.0 # homeassistant.components.cloud -hass-nabucasa==0.61.1 +hass-nabucasa==0.62.0 # homeassistant.components.conversation hassil==1.0.6