Home › Forums › OpenEars › OpenEars/Pocketsphinx turns audio player volume down and won't let go › Reply To: OpenEars/Pocketsphinx turns audio player volume down and won't let go
I have AudioSession as part of the standard PocketSphinx methods:
– (void) audioSessionInterruptionDidBegin
{
NSLog(@”AudioSession interruption began.”);
[self.pocketsphinxController stopListening]; // React to it by telling Pocketsphinx to stop listening since it will need to restart its loop after an interruption.
}
– (void) audioSessionInterruptionDidEnd
{
NSLog(@”AudioSession interruption ended.”);
// We’re restarting the previously-stopped listening loop.
[self startListening];
}
But nothing should be calling those methods.
And I also tried this: pocketsphinxController.audioSessionMixing = TRUE; in the pocket sphinx lazy initiator method to try and fix the problem with the volume after I noticed it.
I don’t have any AVAudioSessions.
I tried killing all the AudioSessions references and my background sound volume control and it still cuts the volume once active listening starts.
I’m not using FliteController or NeatSpeech. Can I get my sound files to be played thru FliteController?
I’ll try some of the suggestions on the PlayAndRecord forum posts and see if I can get it to work properly.