Update hass-nabucasa to 0.62.0 (#90085)

This commit is contained in:
Paulus Schoutsen 2023-03-22 08:24:28 -04:00 committed by GitHub
parent 87e6dd3949
commit 9b9ed21dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 7 deletions

View File

@ -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"]
}

View File

@ -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)

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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