voice icon indicating copy to clipboard operation
voice copied to clipboard

Constructor binds Voice, but is already set upon reload.

Open KijanaG opened this issue 7 years ago • 6 comments

Hey, I was curious if there is a way to free the bindings set in the constructor. The RN Voice module is very handy, but when I remove the bindings from the constructor, my app does not crash upon reload. Is there a way to bind, or not bind in the constructor, but still have the native voice capabilities? Thank you!

KJ Garrett

KijanaG avatar Apr 14 '19 21:04 KijanaG

Screen Shot 2019-04-14 at 5 25 43 PM the current body of code looks like this and the RN Voice module works phenomenally. I guess what I'm saying is, is there a way to "deconstruct" these instantiations? Thanks!

KijanaG avatar Apr 14 '19 21:04 KijanaG

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error when sending event: onSpeechError with body: { error = { message = "209/The operation couldn\U2019t be completed. (kAFAssistantErrorDomain error 209.)"; }; }. Bridge is not set. This is probably because you've explicitly synthesized the bridge in Voice, even though it's inherited from RCTEventEmitter.'

KijanaG avatar Apr 14 '19 21:04 KijanaG

This command has not changed anything: Voice.destroy().then(Voice.removeAllListeners);

KijanaG avatar Apr 14 '19 21:04 KijanaG

@KijanaG Did you solved your problem??

lfoliveir4 avatar Dec 16 '19 12:12 lfoliveir4

This project has been deprecated and archived. Please migrate to expo-speech-recognition. Thank you for your contributions! ❤️

safaiyeh avatar Jan 31 '26 22:01 safaiyeh

This project has been deprecated and archived. Please migrate to expo-speech-recognition. Thank you for your contributions! ❤️

safaiyeh avatar Jan 31 '26 22:01 safaiyeh