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

Add name to tts voices (#91814)

* Add name to tts voices

* Add new file
This commit is contained in:
Erik Montnemery
2023-04-22 02:41:14 +02:00
committed by GitHub
parent c6d846453d
commit 9a0de43f98
7 changed files with 35 additions and 8 deletions

View File

@@ -78,7 +78,9 @@ 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")
assert tts.Voice(
"ColetteNeural", "ColetteNeural"
) in provider.async_get_supported_voices("nl-NL")
async def test_get_tts_audio(cloud_with_prefs) -> None: