react-native-speech icon indicating copy to clipboard operation
react-native-speech copied to clipboard

Solve issues of interrupting voice in process

Open paalex opened this issue 9 years ago • 6 comments

  • if voice is in process, a new call would queue the voice requests
  • to stop the voice, .stop() can be used as usual
  • solved a bug with boolean callbacks not crossing the bridge to react-native. @[[NSNull null], @true] instead of @[@true] (which produces an unhandled promise.

paalex avatar Oct 13 '16 15:10 paalex

I am getting this error node_modules/react-native-speech/SpeechSynthesizer.m:45:5: Use of undeclared identifier 'utterance'

tarkanlar avatar Oct 23 '16 18:10 tarkanlar

Sorry, fixed it now

paalex avatar Oct 31 '16 22:10 paalex

Hey @tarkanlar , Can you check the latest commit? It's working now.

paalex avatar Nov 09 '16 17:11 paalex

Hey @paalex thanks, I just tried. I am getting this error image

tarkanlar avatar Nov 09 '16 18:11 tarkanlar

Hey @tarkanlar , I changed the error to Info only ( will show only in console log). Also added control over time intervals before\after the utterance and control over pitch and volume. Bonus - event emitter for didFinishSpeechUtterance event.

best

paalex avatar Nov 12 '16 11:11 paalex

Works good Thanks @paalex

tarkanlar avatar Nov 12 '16 19:11 tarkanlar