Closed aswyer closed 2 years ago
AVAudioEngine error after calling client.startContext()
AVAudioEngine
client.startContext()
AVAEInternal.h:109 [AVAudioEngineGraph.mm:1397:Initialize: (err = AUGraphParser::InitializeActiveNodesInInputChain(ThisGraph, *GetInputNode())): error -10868 AVAudioEngine.mm:167 Engine@0x2835ec560: could not initialize, error = -10868
AVAEInternal.h:109 [AVAudioEngineGraph.mm:1397:Initialize: (err = AUGraphParser::InitializeActiveNodesInInputChain(ThisGraph, *GetInputNode())): error -10868
AVAudioEngine.mm:167 Engine@0x2835ec560: could not initialize, error = -10868
Errors are shown after
Client
audioEngine.prepare()
AudioRecorder.swift
Client.swift
Only happens on device... everything works as expected in simulator.
Occurs after Client init and again after calling client.startContext().
Was able to resolve by running AVAudioSession.sharedInstance().setCategory(.playAndRecord) before creating Speechly client. Unsure why this only caused issues on device & not in simulator.
AVAudioSession.sharedInstance().setCategory(.playAndRecord)
Describe the bug
AVAudioEngine
error after callingclient.startContext()
Errors are shown after
Client
initaudioEngine.prepare()
is called inAudioRecorder.swift
. Errors are reported to the delegate by line 441 ofClient.swift
.Only happens on device... everything works as expected in simulator.
Steps to reproduce
Occurs after
Client
init and again after callingclient.startContext()
.Environment