Tweak a couple of `stt` and `tts` related asserts (#92012)
Tweak a couple of stt and tts related assertspull/92019/head
parent
933761d425
commit
8e70446ef8
|
@ -362,7 +362,7 @@ class PipelineRun:
|
|||
code="stt-provider-unsupported-metadata",
|
||||
message=(
|
||||
f"Provider {stt_provider.name} does not support input speech "
|
||||
"to text metadata {metadata}"
|
||||
f"to text metadata {metadata}"
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
@ -488,7 +488,7 @@ class SpeechManager:
|
|||
or engine_instance.supported_languages is None
|
||||
or language not in engine_instance.supported_languages
|
||||
):
|
||||
raise HomeAssistantError(f"Not supported language {language}")
|
||||
raise HomeAssistantError(f"Language '{language}' not supported")
|
||||
|
||||
# Options
|
||||
if (default_options := engine_instance.default_options) and options:
|
||||
|
|
Loading…
Reference in New Issue