1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add async_get_supported_voices to tts.Provider (#91649)

* Add async_get_supported_voices to tts.Provider

* Update WS API
This commit is contained in:
Erik Montnemery
2023-04-19 13:47:49 +02:00
committed by GitHub
parent 85d57a046c
commit f3e6d6dfc0
6 changed files with 65 additions and 22 deletions

View File

@@ -78,6 +78,7 @@ async def test_provider_properties(cloud_with_prefs) -> None:
)
assert provider.supported_options == ["gender", "voice", "audio_output"]
assert "nl-NL" in provider.supported_languages
assert "ColetteNeural" in provider.async_get_supported_voices("nl-NL")
async def test_get_tts_audio(cloud_with_prefs) -> None: