Changelog
[2.0.0] - 2019-11-19
<Say>
component
speak
to text
<SayButton>
component
speak
to text
Composer
signature is being updated
synthesize
function to replace speak
and cancel
{ cancel: Function, promise: Promise }
cancel
, when called, will cancel the utterance. If the utterance is being synthesized, it will be stopped abruptlypromise
will be resolved when the utterance is synthesized or erroredcancel
and speak
is removed because the newer synthesize
function offer same functionality with simplified interfaceponyfill
instead of speechSynthesis
and speechSynthesisUtterance
<Say ponyfill={ window }>
/packages/component/package.json
, by @compulim in PR #17<Context>
and <Composer>
<Composer>
component from class component to functional componentuseSynthesize()
hook, which returns a function to queue an utterance
synthesize(utteranceOrText: (SpeechSynthesisUtterance | string), progressFn: () => void) => void
<SayUtterance>
component to synthesis SpeechSynthesisUtterance
instead of text
<Say>
is being refactored to use <SayUtterance>
to simplify the codebase<SayButton>
is being refactored to use <Say>
to simplify the codebase<Say>
component
speak
to text
<SayButton>
component
speak
to text
Composer
signature is being updated
synthesize
function to replace speak
and cancel
{ cancel: Function, promise: Promise }
cancel
, when called, will cancel the utterance. If the utterance is being synthesized, it will be stopped abruptlypromise
will be resolved when the utterance is synthesized or erroredcancel
and speak
is removed because the newer synthesize
function offer same functionality with simplified interfaceponyfill
instead of speechSynthesis
and speechSynthesisUtterance
<Say ponyfill={ window }>