speak-promise1.0.2 • Public • Published
Promise when using
speechSynthesis.speak to speak the
pending when has not actually been spoken.
resolve when has already been spoken.
end event of
reject when error occurs.
error event of
$ 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
npm i speak-promise