fix: remove debug logs
This commit is contained in:
@ -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");
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user