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