jovo-starter-web-standalone icon indicating copy to clipboard operation
jovo-starter-web-standalone copied to clipboard

How to configure so that example is conversational and not tap-to-talk?

Open rmtuckerphx opened this issue 1 year ago • 2 comments

How to change this example from tap-to-talk to auto-mic-on?

Testing in Chrome (Windows) I've updated the configuration in client/src/main.ts as follows:

{
  endpointUrl: process.env.VUE_APP_CLIENT_ENDPOINT_URL || 'http://localhost:3000/webhook',
  config: {
    input: {
      audioRecorder: {
        startDetection: {
          enabled: false,
        },
        silenceDetection: {
          enabled: false,
        },
      },
      speechRecognizer: {
        lang: 'en',
        startDetection: {
          enabled: true,
          timeoutInMs: 3000,
        },
        silenceDetection: {
          enabled: true,
          timeoutInMs: 3000,
        },        
      },
    },
    output: {
      reprompts: {
        enabled: true,
      },
    },
    store: {
      shouldPersistSession: false,
    },
    
  },
}

When I click the initial button, I get the LAUNCH message, but the microphone doesn't turn on automatically. If I tap-to-talk then the next turn works and at the end of the spoken response, the mic turns on automatically as it should. The reprompt also seems to work with an issue if you don't respond and then go back to tap-to-talk.

The main issue I need help solving is getting the initial response to open the mic.

rmtuckerphx avatar Apr 26 '23 22:04 rmtuckerphx