Listening in Background

Home Forums OpenEars Listening in Background

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

  • Author
  • #1018031

    We have an App that can listen in the background, but it only works if we start listening while the App is in the foreground, and then switch to the background, and we can see the red bar at the top.

    But when we try to start listening while already in the background, we encounter an exception. Below is the logging output:

    Recognition loop has started
    Starting openAudioDevice on the device.
    Audio unit wrapper successfully created.
    12:27:41.633 <0x4d89000> AURemoteIO::Initialize failed: -12985 (enable 3, outf< 1 ch, 16000 Hz, Int16> inf< 1 ch, 16000 Hz, Int16>)
    Couldn’t initialize audio unit: -12985
    openAudioDevice failed

    We have set our App to use the background mode plays audio, so that’s why it works in the first scenario. Any thoughts on why we have trouble starting in the background?


    Halle Winkler


    Hmm, I don’t think it’s possible to start up remoteio audio recording while in the background. My understanding is that the background mode can background a recording that is already in process but not start one. Have you encountered other examples in which this works?


    We have not encountered any other examples. I’ll keep looking into it but you may be right that background mode cannot start a recording.


    I am working on an App that can listen in the background, app starts listening when it is in foreground and then switch to background.
    Can you please help me in achieving this.

    Halle Winkler

    Hi Pooja,

    This question is unlikely to get an answer because it requests a very large amount of work from the other party — you are basically requesting a complete tutorial. The other longer thread in which you asked this question has all the info needed in order to answer your question, please give it another read-through and try out some or all of the suggestions in it.

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