function speakText(text, lang = 'en-US') { if ('speechSynthesis' in window) { const utterance = new SpeechSynthesisUtterance(text); utterance.lang = lang; // Mevcut sesleri al const voices = window.speechSynthesis.getVoices(); // İngilizce ses seç (Microsoft David, Google US English gibi) const englishVoice = voices.find(voice => voice.lang.includes('en') && voice.name.includes('English') ); if (englishVoice) { utterance.voice = englishVoice; } // Konuşma hızı ve tonu ayarla utterance.rate = 1.0; // Normal hız utterance.pitch = 1.0; // Normal ton window.speechSynthesis.speak(utterance); } else { console.warn('SpeechSynthesis API not supported in this browser.'); } }denermisin