fix: remove debug logs

This commit is contained in:
Cfp
2025-06-25 14:01:37 +02:00
parent 5e23d0fa61
commit 029c2dc410

View File

@ -21,16 +21,13 @@ export default async function say(text: string) {
await initTTS(); await initTTS();
// return; // return;
} }
console.log("A");
Duck.duck(); Duck.duck();
console.log("B");
if(tts !== "web") { if(tts !== "web") {
try { try {
await tts?.speak({ await tts?.speak({
text: text, text: text,
lang: "deu-default", // TODO: make this configurable lang: "deu-default", // TODO: make this configurable
}); });
console.log("C");
} catch (e) { } catch (e) {
console.error("Error speaking text", e); console.error("Error speaking text", e);
alert(e); alert(e);
@ -40,7 +37,5 @@ export default async function say(text: string) {
utterance.lang = "de-DE"; utterance.lang = "de-DE";
window.speechSynthesis.speak(utterance); window.speechSynthesis.speak(utterance);
} }
console.log("D");
Duck.unduck(); Duck.unduck();
console.log("E");
} }