ios – AVAudioEngine & AVAudioPlayer. setVoiceProcessingEnabled low volume output


As the title suggests I am using AVAudioEngine for SFSpeechRecognition input & AVAudioPlayer for sound output.

Apple says in this talk that the setVoiceProcessingEnabled function very usefully cancels the output from speaker to the mic. I set voiceProcessing on the AVAudioInputNode and AVAudioOutputNode.

When running xcode when speechRecognitionEnabled:YES throws the following error:

throwing 18,446,744,073,709,551,615
  from AU (0x13bf98dd0): auou/vpio/appl, render err: 18,446,744,073,709,551,615

There is no error thrown when setting up the nodes and it seems to work however the volume is low, even when the system volume is turned up. Any solution to this would be much appreciated.

I tried various AVAudioEngine node setups. One setup with a mixer node and one without. I am expecting the audio levels to be loud, in conjunction with the system volume.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img