mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix marytts sync requests within event loop (#39399)
This commit is contained in:
parent
f8712b0e00
commit
ef13da5555
@ -39,7 +39,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
)
|
||||
|
||||
|
||||
async def async_get_engine(hass, config, discovery_info=None):
|
||||
def get_engine(hass, config, discovery_info=None):
|
||||
"""Set up MaryTTS speech component."""
|
||||
return MaryTTSProvider(hass, config)
|
||||
|
||||
@ -80,7 +80,7 @@ class MaryTTSProvider(Provider):
|
||||
"""Return a list of supported options."""
|
||||
return SUPPORT_OPTIONS
|
||||
|
||||
async def async_get_tts_audio(self, message, language, options=None):
|
||||
def get_tts_audio(self, message, language, options=None):
|
||||
"""Load TTS from MaryTTS."""
|
||||
effects = options[CONF_EFFECT]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user