diff --git a/snippets/speech-synthesis-(experimental).md b/snippets/speech-synthesis-(experimental).md index c9e6a288c..2a5cb1d20 100644 --- a/snippets/speech-synthesis-(experimental).md +++ b/snippets/speech-synthesis-(experimental).md @@ -1,6 +1,6 @@ ### Speech synthesis (experimental) -Use `SpeechSynthesisUtterance.voice` and `indow.speechSynthesis.getVoices()` to convert a message to speech. +Use `SpeechSynthesisUtterance.voice` and `window.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).