mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27: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",
|
"integration_type": "system",
|
||||||
"iot_class": "cloud_push",
|
"iot_class": "cloud_push",
|
||||||
"loggers": ["hass_nabucasa"],
|
"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."""
|
"""Support for the cloud for text to speech service."""
|
||||||
|
|
||||||
from hass_nabucasa import Cloud
|
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
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
|
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
|
||||||
@ -99,7 +99,10 @@ class CloudProvider(Provider):
|
|||||||
# Process TTS
|
# Process TTS
|
||||||
try:
|
try:
|
||||||
data = await self.cloud.voice.process_tts(
|
data = await self.cloud.voice.process_tts(
|
||||||
message, language, gender=options[CONF_GENDER]
|
message,
|
||||||
|
language,
|
||||||
|
gender=options[CONF_GENDER],
|
||||||
|
output=AudioOutput.MP3,
|
||||||
)
|
)
|
||||||
except VoiceError:
|
except VoiceError:
|
||||||
return (None, None)
|
return (None, None)
|
||||||
|
@ -502,7 +502,8 @@ class SpeechManager:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Save to memory
|
# 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)
|
self._async_store_to_memcache(cache_key, filename, data)
|
||||||
|
|
||||||
if cache:
|
if cache:
|
||||||
|
@ -20,7 +20,7 @@ ciso8601==2.3.0
|
|||||||
cryptography==39.0.1
|
cryptography==39.0.1
|
||||||
dbus-fast==1.84.2
|
dbus-fast==1.84.2
|
||||||
fnvhash==0.1.0
|
fnvhash==0.1.0
|
||||||
hass-nabucasa==0.61.1
|
hass-nabucasa==0.62.0
|
||||||
hassil==1.0.6
|
hassil==1.0.6
|
||||||
home-assistant-bluetooth==1.9.3
|
home-assistant-bluetooth==1.9.3
|
||||||
home-assistant-frontend==20230309.1
|
home-assistant-frontend==20230309.1
|
||||||
|
@ -868,7 +868,7 @@ ha-philipsjs==3.0.0
|
|||||||
habitipy==0.2.0
|
habitipy==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.cloud
|
# homeassistant.components.cloud
|
||||||
hass-nabucasa==0.61.1
|
hass-nabucasa==0.62.0
|
||||||
|
|
||||||
# homeassistant.components.splunk
|
# homeassistant.components.splunk
|
||||||
hass_splunk==0.1.1
|
hass_splunk==0.1.1
|
||||||
|
@ -666,7 +666,7 @@ ha-philipsjs==3.0.0
|
|||||||
habitipy==0.2.0
|
habitipy==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.cloud
|
# homeassistant.components.cloud
|
||||||
hass-nabucasa==0.61.1
|
hass-nabucasa==0.62.0
|
||||||
|
|
||||||
# homeassistant.components.conversation
|
# homeassistant.components.conversation
|
||||||
hassil==1.0.6
|
hassil==1.0.6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user