Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
furkan038's avatar
furkan038
Honored Guest
5 months ago

VOICE SDK

Hello, I am using the Meta - Voice SDK - Immersive Voice Commands in my Unity project. The package waits to listen for about 5 seconds when the user is not speaking. I want to extend the waiting time when the user is not speaking. Is it possible to extend this?

6 Replies

Replies have been turned off for this discussion
  • With dictation, you can call Dictation.Activate(). Where 'Dictation' is your Meta AppDictitationExperience  game object. And Dictation.Deactivate() when you want it to stop listening.

     

     

    • furkan038's avatar
      furkan038
      Honored Guest

      I don’t want to completely disable the voice response feature. Let me explain with an example: When the user enters the game, I ask them a question like “Would you like to watch a video with me?” The user is expected to answer with either “yes” or “no.”

       

      In my game, I want to wait for their response for at least 10 seconds or more even if the user doesn’t speak immediately. However, the SDK currently keeps the listening duration quite short (around 5 seconds), and stops listening if there is no input.

       

      I would like to increase this silence timeout so the system keeps listening longer, even when the user remains silent for a while before responding.

      • RiverExplorer's avatar
        RiverExplorer
        Start Partner

        I have done that. And it can be done. In the 'App Dictation Experience' Meta component, in the inspector, is a 'Keep Alive Time In Seconds', 'Min Transaction Keep Alive Time in Seconds', and 'Max Recording Time'.

        As a test, I set them all to 300 seconds. Seems to work.

        Look at their 'DictationSampleScene'. You can tweak the knobs to do that. I just tried and it works.