mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Fix tts (#8261)
This commit is contained in:
parent
5ee0250ba5
commit
7de6ea0879
@ -9,4 +9,4 @@ export const convertTextToSpeech = (
|
|||||||
language?: string;
|
language?: string;
|
||||||
options?: Record<string, unknown>;
|
options?: Record<string, unknown>;
|
||||||
}
|
}
|
||||||
) => hass.callApi<{ url: string }>("POST", "tts_get_url", data);
|
) => hass.callApi<{ url: string; path: string }>("POST", "tts_get_url", data);
|
||||||
|
@ -164,7 +164,7 @@ export class DialogTryTts extends LitElement {
|
|||||||
language,
|
language,
|
||||||
options: { gender },
|
options: { gender },
|
||||||
});
|
});
|
||||||
url = result.url;
|
url = result.path;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._loadingExample = false;
|
this._loadingExample = false;
|
||||||
showAlertDialog(this, {
|
showAlertDialog(this, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user