Ciao a tutti
Ho una script per il sintetizzatore vocale questo è il code:
posso azzerare il volume mentre il sintetizzatore parla?codice:var msgVoice = new SpeechSynthesisUtterance(); var voices = window.speechSynthesis.getVoices(); msgVoice.voice = voices[1]; msgVoice.voiceURI = 'Google Italiano'; msgVoice.volume = 1; msgVoice.rate = 1.1; msgVoice.pitch = 0.5; msgVoice.text = text; msgVoice.lang = 'it-IT'; speechSynthesis.speak(msgVoice);