Wes Bos Youtube Tutorial: JavaScript Text-To-Speech - #JavaScript30 23/30.
- Note: to open web links in a new window use: ctrl+click on link
- Tutorial Code using javascript speech synthesis.
- Open index.html in browser. If any code is changed the browser needs to be refreshed.
- show voices that can be chosen by user in a dropdown menu.
function populateVoices() {
voices = this.getVoices(); // array of 25 synthesised voices, including name & language
voicesDropdown.innerHTML = voices
.filter(voice => voice.lang.includes('en')) // limit 25 voices to just the ones in English
.map(voice => `<option value="${voice.name}">${voice.name} (${voice.lang})</option>`)
.join('');
}- Options to select different voices, voice speed and pitch.
- Status: Working.
- To-Do: Nothing.
- Wes Bos Youtube Tutorial: JavaScript Text-To-Speech - #JavaScript30 23/30.
- N/A
- Repo created by ABateman, email: gomezbateman@yahoo.com
