AVAudioInputNode stops when a call Siri on WatchOS 4

I am using AVAudioInputNote that looks like the post: https://forums.developer.apple.com/thread/80904

But when Siri is called I miss the inputNode.installTap without any other callback, as willDisappear or didDeactivate.

Is this a version OS error or I need do something different?

Replies

Did you add a notification observer for: NSNotification.Name.AVAudioSessionInterruption ?


If Siri is interrupting your audio engine, the handler for your observer might want to pause() audio, and then (re)start it after Siri's interruption ends.