Skip to content

Commit

Permalink
Fix filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Chalarangelo committed Dec 14, 2017
1 parent 3fde98f commit a14f144
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -818,22 +818,7 @@ const standardDeviation = (arr, usePopulation = false) => {
[⬆ back to top](#table-of-contents)
## Media

### Speech synthesis (experimental)

Use `SpeechSynthesisUtterance.voice` and `indow.speechSynthesis.getVoices()` to convert a message to speech.
Use `window.speechSynthesis.speak()` to play the message.

Learn more about the [SpeechSynthesisUtterance interface of the Web Speech API](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance).

```js
const speak = message => {
const msg = new SpeechSynthesisUtterance(message);
msg.voice = window.speechSynthesis.getVoices()[0];
window.speechSynthesis.speak(msg);
};
// speak('Hello, World') -> plays the message
```

undefined
[⬆ back to top](#table-of-contents)
## Object

Expand Down
File renamed without changes.

0 comments on commit a14f144

Please sign in to comment.