voice: [URGENT!] App under iOS <14.0 crashes on Voice.start()

Greetings beautiful people,

I’m having a big issue if someone can help me please 🙏 the package works perfectly under iOS >14.0 but immediately crashes when I try to build on an inferior one (i.e. 13.6). I tried my best to debug it and here’s what I’m getting from xCode console :

2021-01-27 14:45:44.620057+0100 LegalDoctrineAlpha[75986:1310434] [aqme] AQME.h:254:IOProcFailure: AQDefaultDevice (1): output stream 0: null buffer 2021-01-27 14:45:44.620305+0100 LegalDoctrineAlpha[75986:1310434] [aqme] AQMEIO_HAL.cpp:1774:IOProc: EXCEPTION thrown (-50): error != 0

and here is a screenshot of the line pointing to it. image_2021-01-27_145143

image_2021-01-27_145309

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

Hey guys.

I was having the same issue reported here and the only thing that fix this problem was putting the code below in the info.plist file as documented in the installation guide.

<key>NSMicrophoneUsageDescription</key>
<string>Description of why you require the use of the microphone</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Description of why you require the use of the speech recognition</string>

Hey man! The problem was unexpected for me, cuz it worked perfectly just a week ago… I almost believed it happened cuz of MacOS’s update to Big Sur, but today a little trick was able to fix everything… I was compiling the release via the command line, when the iPhone XR simulator was selected in xcode…

Снимок экрана 2021-02-02 в 11 19 46

I looked at the simulator’s ios version… there was ios 12.0…

Снимок экрана 2021-02-02 в 10 56 32

Then I added the same iPhone but with the latest version of iOS 14.4. I selected new simulator and built it to check that the bug doesn’t reproduce (cuz ios >=14)…

Снимок экрана 2021-02-02 в 11 19 01

After that, I repeated build through the command line… The bug wasn’t reproduced on any of the phones where it was reproduced recently, namely: 5S iOS 12.0 XR iOS 14.3 SE1 iOS 13.7

Idk how it relates, but the bug isn’t reproduced now…

I have the same problem but only if connect the ios earphones, has anyone found a solution?

Check this PR. It resolves this issue. headset and bluetooth crashing issue

I have the same problem but only if connect the ios earphones, has anyone found a solution?

I’ve seen this reported a few times where earphones messes things up. https://github.com/react-native-voice/voice/pull/294 is one example. Could you make a separate issue for this?

@MedRedha Could you create a small demo app with the latest version of voice and RN so I could check it out and debug it.

Hm is there any documentation referencing a change to these libraries for iOS 14?

I tried the same steps with @YesSkyscrapers but no luck at all…

Still having a crash same as @MedRedha mentioned under iOS 14.x

Any different workaround or fixes would be perfect. I could not make that function work under iOS 14.x both on emulator and real device.

yo, face the same issue… Did u find any solution?

Not yet bro 😞 I disabled the mic button for iOS <14.0 waiting for a fix or something

yo, face the same issue… Did u find any solution?