speak-promise
1.0.2 • Public • Published speak-promise
- Demo
- Return
Promise
when using speechSynthesis.speak
to speak the SpeechSynthesisUtterance
instance.
Description
pending
when has not actually been spoken.
resolve
when has already been spoken.
end
event of SpeechSynthesisUtterance
reject
when error occurs.
error
event of SpeechSynthesisUtterance
Usage
$ npm install speak-promise
import speakPromise from 'speak-promise'
let msg = new SpeechSynthesisUtterance('Hello world')
speakPromise(msg).then(/*do something*/) // ES6
await speakPromise(msg) // ES7
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.2
3
Version History
Package Sidebar
Install
Weekly Downloads