HomeForumsOpenEarsVoiceProcessingIO instead of RemoteIO

This topic has 2 voices, contains 6 replies, and was last updated by  Halle 221 days ago.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
October 4, 2011 at 2:19 pm #7652

blackmind

Whenever I set the componentSubType of the AudioComponentDescription to VoiceProcessingIO instead of RemoteIO, all the audio playback is done from Ear Speaker instead of the Main Speaker.

Can anyone please help me with this issue all I want to do is set the VoiceProcessingIO while recording and force the audio playback to main speaker (when no headphones or bluetooth attached)

I have only modified the following line in the ContinuousAudioUnit.mm file:

pocketsphinxAudioDevice *openAudioDevice(const char *dev, int32 samples_per_sec)

{

auDescription.componentSubType = kAudioUnitSubType_VoiceProcessingIO;

}

October 4, 2011 at 2:31 pm #7655

Halle

Are you using a beta SDK?

October 4, 2011 at 2:41 pm #7656

blackmind

Yes, Xcode is beta (Version 4.2)
OpenEars Version 0.911
Testing on iPhone 4 iOS 5 beta 7

October 4, 2011 at 2:54 pm #7657

Halle

This is a bug in the beta, I have the same issue in AllEars.

October 4, 2011 at 2:58 pm #7658

blackmind

Thanks Halle for the quick reply…

October 10, 2011 at 12:37 pm #7670

blackmind

Halle,

I tried the same thing on a different setup Xcode (4.1), OpenEars Version 0.912 and iPhone 3G (iOS 4.2.1) still getting the same result. The Audio output is sent to the Ear Speaker instead on Main Speaker.

Your help is highly appreciated… Always!

Thanks

October 10, 2011 at 1:04 pm #7671

Halle

Hi,

4.2.1 has the exact same OS bug. I encountered it when I was releasing AllEars and had to create all kinds of logic to work around it since I wanted to use VoiceProcessingIO. That is the reason that I chose not to include VoiceProcessingIO in OpenEars — I don’t think it is QA’d as heavily as RemoteIO. My advice is not to change OpenEars to use VoiceProcessingIO, but if you really want to do that, you need to test against all OS versions and create logic to serve VoiceProcessingIO for the OS versions that routing works correctly with and RemoteIO with the ones it doesn’t. I can’t offer any support for that.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.