algolia / voice-overlay-ios

🗣 An overlay that gets your user’s voice permission and input as text in a customizable UI
https://alg.li/voice
MIT License
544 stars 62 forks source link

Crash while calling and recording at the same time. #32

Open shivanand217 opened 3 years ago

shivanand217 commented 3 years ago
The operation couldn’t be completed. (OSStatus error 561017449.)
2020-12-14 12:46:05.868110+0530 Allie[1307:360867] [aurioc] AURemoteIO.cpp:1095:Initialize: failed: 561017449 (enable 1, outf< 2 ch,      0 Hz, Float32, non-inter> inf< 2 ch,      0 Hz, Float32, non-inter>)
2020-12-14 12:46:08.789219+0530 Allie[1307:360469] In Get State
2020-12-14 12:46:08.791580+0530 Allie[1307:360469] GPS Permission is given!!
2020-12-14 12:46:08.793475+0530 Allie[1307:360867] [avae]            AVAEInternal.h:76    required condition is false: [AVAEGraphNode.mm:823:CreateRecordingTap: (IsFormatSampleRateAndChannelCountValid(format))]

Solutions I found on stack overflow which worked are changing this code let recordingFormat = node.outputFormat(forBus: 0) to this let recordingFormat = AVAudioFormat(standardFormatWithSampleRate: 44100, channels: 1)

in the SpeechController class. Let me know your views on this ?

razan1994alali commented 1 year ago

hello, any updates on this issue. the solution mentioned didn't solve it in my case