Audio playback bit rate reduction during

Home Forums OpenEars Audio playback bit rate reduction during

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

  • Author
    Posts
  • #1023078
    davestrand
    Participant

    Forgive my ignorance, but if you could hint me in the right direction that would be great. Almost every aspect of my app is complete with one exception. My app plays 44.100 mp3 files and then pauses and uses OpenEars voice recognition. For the most part it works great, switching back and forth between listening to (or sampling audio) recognizing speech, and then flipping back to high resolution playback. When starting the app for the first time everything sounds great, but if I exit my app, and go back in, for some reason when the first audio clip is played it sounds like it’s playing at low bitrate instead of 44k. It seems to snap into the low-fi audio when the following code is executed. I have tried to delay the execution of this code, and also tried to pause all audio until it is completed and calibration is done. (The same code works fine at the startup of the app) Again audio is then restored when the next mp3 is played. Any hints would be great. I have also tried to stopListen first, but then the calibration never fully completes.

    [self.pocketsphinxController startListeningWithLanguageModelAtPath:lmPath dictionaryAtPath:dicPath acousticModelAtPath:[AcousticModel pathToModel:@"AcousticModelEnglish"] languageModelIsJSGF:NO];

    #1023081
    Halle Winkler
    Politepix

    Hi,

    This is a conflict between the PlayAndRecord audio session used by OpenEars and the audio session used by the file playback. You can learn much more about it by searching these forums for the keywords audio coexistence.

    #1023086
    davestrand
    Participant

    Thanks, I’ll keep looking.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.