Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shivanand217 opened this issue Dec 14, 2020 · 1 comment
Open

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

shivanand217 opened this issue Dec 14, 2020 · 1 comment

Comments

@shivanand217
Copy link

shivanand217 commented Dec 14, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants