Create Text to Speech Converter using HTML, CSS & JavaScript
HTML-код
- Опубликовано: 25 ноя 2023
- In this video, I will show you how you can easily convert text to speech using HTML, CSS & JavaScript. I have used SpeechSynthesis API in JavaScript to convert text to speech.
1st
if i want a portuguese-BR audio? what i do?
In this video I have used 1st voice in the speechSynthesis voices list. You can find all voices supported by browser using console.log(speechSynthesis.getVoices()) and choose appropriate voice( in this video I have used index 0 in line number 5, you need to replace it with your selected voice index )