fix(tts): set correct parameter for language
This commit is contained in:
@ -24,7 +24,7 @@ export default async function say(text: string) {
|
|||||||
duck();
|
duck();
|
||||||
if (tts !== "web") {
|
if (tts !== "web") {
|
||||||
try {
|
try {
|
||||||
await invoke("plugin:tts|speak", { text, lang: m["language.tts"]() });
|
await invoke("plugin:tts|speak", { text, language: m["language.tts"]() });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Error speaking text", e);
|
console.error("Error speaking text", e);
|
||||||
alert(e);
|
alert(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user