Add name to tts voices (#91814)
* Add name to tts voices * Add new file
This commit is contained in:
parent
c6d846453d
commit
9a0de43f98
7 changed files with 35 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue