diff --git a/README.md b/README.md index 142e14a79..f15c1af45 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/snippets/speech_synthesis-(experimental).md b/snippets/speech-synthesis-(experimental).md similarity index 100% rename from snippets/speech_synthesis-(experimental).md rename to snippets/speech-synthesis-(experimental).md