An open API service indexing awesome lists of open source software.

https://github.com/andrewjbateman/javascript-speech-synthesis

:clipboard: Javascript30 tutorial in vanilla javascript text to speech converter
https://github.com/andrewjbateman/javascript-speech-synthesis

css3 html5 javascript-speach-synthesis javascript-text javascript30 speech speech-converter speech-synthesis tutorial tutorial-exercises vanilla-javascript-text

Last synced: 5 months ago
JSON representation

:clipboard: Javascript30 tutorial in vanilla javascript text to speech converter

Awesome Lists containing this project

README

          

# :zap: Javascript Speech Synthesis

Wes Bos Youtube Tutorial: [JavaScript Text-To-Speech - #JavaScript30 23/30](https://www.youtube.com/watch?v=saCpKH_xdgs).
* **Note:** to open web links in a new window use: _ctrl+click on link_

![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/javascript-speech-synthesis?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/javascript-speech-synthesis?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/javascript-speech-synthesis?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/javascript-speech-synthesis?style=plastic)

## :page_facing_up: Table of contents

* [General info](#general-info)
* [Screenshots](#screenshots)
* [Technologies](#technologies)
* [Setup](#setup)
* [Features](#features)
* [Status](#status)
* [Inspiration](#inspiration)
* [Contact](#contact)

## :books: General info

* Tutorial Code using javascript speech synthesis.

## :camera: Screenshots

![Example screenshot](./img/speach.png).

## :signal_strength: Technologies

* [Javascript ECMA-262 ECMAScript 2020](http://www.ecma-international.org/publications/standards/Ecma-262.htm)

## :floppy_disk: Setup

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

## :computer: Code Examples

* show voices that can be chosen by user in a dropdown menu.

```javascript
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 => `${voice.name} (${voice.lang})`)
.join('');
}
```

## :cool: Features

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

## :clipboard: Status & To-Do List

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

## :clap: Inspiration

* Wes Bos Youtube Tutorial: [JavaScript Text-To-Speech - #JavaScript30 23/30](https://www.youtube.com/watch?v=saCpKH_xdgs).

## :file_folder: License

* N/A

## :envelope: Contact

* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com