mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Update hass-nabucasa to 0.62.0 (#90085)
This commit is contained in:
parent
87e6dd3949
commit
9b9ed21dc4
@ -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"]
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user