Lag when starting and stopping recognition

Welcome! Forums Unity Plugins Mobile Speech Recognizer Lag when starting and stopping recognition

This topic contains 3 replies, has 3 voices, and was last updated by  MrFalseEye 1 month, 2 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #469

    jslavitz
    Participant

    I’m getting like 300ms of lag when calling the start or stop recording functions. Seems like there’s a stack trace that’s being executed, but it seems like there may be something else going on too. Is this expected behavior or did iOS11 mess things up or something?

    #481
    Piotr
    Piotr
    Keymaster

    I’ve checked it and noticed slight lag when clicking on a button. Wondering if you try to call startRecording code in background thread?
    I’ve taken a look at stack trace and it simply says it’s starting recording.

    #483

    jslavitz
    Participant

    Ok, interesting, that seems like it could potentially work. It does seem though like there is a stack trace debug message being issued that seems to take some time. I think it would make sense to at the very least take out that console log to get another few ms.

    #1257

    MrFalseEye
    Participant

    Is there any solution to this? We are close to publishing our product but this is holding us back. The game briefly lags on iOS when the recording is started or stopped. This doesn’t happen on Android though.

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

You must be logged in to reply to this topic.