startRealtimeListening on a background thread

Home Forums OpenEars plugins startRealtimeListening on a background thread

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

  • Author
    Posts
  • #1031585

    evilliam
    Participant

    Hello
    I’m not sure if there is an answer to this.
    I have an application that has a lot of realtime graphics & physics going on.
    The ‘game’ is entirely controlled by the voice but I switch language models on the fly.

    The language models are all pre-created.

    I find that there’s a significant slowdown on the main thread when I perform the switch (after hitting stopListening) and startListening again causes a ‘jump’ in the game engine code as it isn’t being performed in a single frame.

    I was wondering if there is any way to :
    a) speed this up
    b) run startRealtimeListening on a background thread?

    If this isn’t possible I completely understand – I imagine there’s significant clean-up and setup that is going on.

    #1031586

    Halle Winkler
    Politepix

    Hi Liam,

    It isn’t necessary to stop listening in order to change models.

    #1031588

    Halle Winkler
    Politepix

    OK, I will close this up since I think the most-appropriate answer is to do model switching using the built-in API which doesn’t require stopping first and restarting, but if this is due to a workaround of some kind which is specific to this implementation, I’m unfortunately not going to be able to assist because switching models isn’t really what start/stop is designed for. Sorry!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘startRealtimeListening on a background thread’ is closed to new replies.