Skip to content

📋 Javascript30 tutorial in vanilla javascript text to speech converter

Notifications You must be signed in to change notification settings

AndrewJBateman/javascript-speech-synthesis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Javascript Speech Synthesis

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

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • Tutorial Code using javascript speech synthesis.

📷 Screenshots

Example screenshot.

📶 Technologies

💾 Setup

  • Open index.html in browser. If any code is changed the browser needs to be refreshed.

💻 Code Examples

  • 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('');
}

🆒 Features

  • Options to select different voices, voice speed and pitch.

📋 Status & To-Do List

  • Status: Working.
  • To-Do: Nothing.

👏 Inspiration

📁 License

  • N/A

✉️ Contact

Releases

No releases published

Packages

No packages published