audioEngine error in widgets

Hi,

We are trying to develop a speech to text app in widgets, we are using AVAudioEngine to achive this functionality.

We implemented and tested in iOS simulator, its working fine in simulators but when we try ti run this app in device we are getting following error.


Error:

[avae] AVAEInternal.h:103:_AVAE_CheckNoErr: [AVAudioEngineGraph.mm:1481:Start: (err = PerformCommand(*ioNode, kAUStartIO, NULL, 0)): error 561145187

audioEngine couldn't start because of an error.


Can any one suggest the solution for above error


Thanks in advance