fix(tts): set correct parameter for language
Some checks failed
TrafficCue CI / check (push) Failing after 1m29s
TrafficCue CI / build (push) Successful in 9m42s
TrafficCue CI / build-android (push) Successful in 24m1s

This commit is contained in:
2025-10-02 19:40:59 +02:00
parent 99fae9df17
commit d740c83b2e

View File

@ -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);