SIMULTANEOUS OpenEars and iOS Video Capture

Home Forums OpenEars SIMULTANEOUS OpenEars and iOS Video Capture

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

  • Author
    Posts
  • #1026968
    georgepliu
    Participant

    Hello Halle,

    I am building an iPhone app that uses AVFoundation for video capture and OpenEars to perform some basic functions (such as record, turn on torch, etc.) It turns out OpenEars has a very slow (>10 seconds) response time when the video piece is running. Is there some parameter I can set to increase the run priority level to make OpenEars more responsive. Thanks in advance.

    V/R
    George

    #1026969
    Halle Winkler
    Politepix

    Greetings,

    The two tasks aren’t very mutually compatible since the video capture uses the mic stream and changes the audio session. You can try changing the audioMode property, and also see if it works differently depending on which object you instantiate and start first, but fundamentally there is a conflict in this case due AVFoundation not mixing well with the audio session requirements of the speech recognition.

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