algolia / voice-overlay-ios

🗣 An overlay that gets your user’s voice permission and input as text in a customizable UI

Home Page:https://alg.li/voice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash while calling and recording at the same time.

shivanand217 opened this issue · comments

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 ?

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