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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 35 additions and 8 deletions

View file

@ -52,6 +52,7 @@ from .const import (
TtsAudioType,
)
from .media_source import generate_media_source_id
from .models import Voice
if TYPE_CHECKING:
from . import SpeechManager
@ -229,7 +230,7 @@ class Provider:
return None
@callback
def async_get_supported_voices(self, language: str) -> list[str] | None:
def async_get_supported_voices(self, language: str) -> list[Voice] | None:
"""Return a list of supported voices for a language."""
return None