// Speak this.synth.speak(this.utterance);
this.utterance.onerror = (event) => console.error('TTS Error:', event); this.isPlaying = false; this.speakBtn.disabled = false; this.showNotification('Error occurred during speech', 'error'); ; eric tts
stop() this.synth.cancel(); this.isPlaying = false; this.speakBtn.disabled = false; // Speak this