You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description="Press any letter from the keyboard to display it. Use the controls to customize the background, font, and color. Click 'Speak' to hear the letter."
46
+
description="Press any letter from the keyboard to display it. Use the controls to customize the background, font, and color."
51
47
/>
52
48
</Fragment>
53
49
<BackButton />
@@ -66,7 +62,6 @@ import BackButton from "@/components/ui/backButton.astro";
66
62
const fontSelector = document.getElementById("fontSelector") as HTMLSelectElement;
67
63
const colorPicker = document.getElementById("colorPicker") as HTMLInputElement;
68
64
const toggleBg = document.getElementById("toggleBg") as HTMLButtonElement;
69
-
const speakBtn = document.getElementById("speakBtn") as HTMLButtonElement;
70
65
71
66
const synth = window.speechSynthesis;
72
67
let lastKey: string | null = null; // Store the last key pressed
@@ -106,20 +101,14 @@ import BackButton from "@/components/ui/backButton.astro";
106
101
setTimeout(() => {
107
102
letterDiv.style.animation = "";
108
103
}, 300);
104
+
speak(letter); // Speak the letter immediately after drawing
0 commit comments