Skip to content

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

@shivanand217

Description

@shivanand217
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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions