assistant-sdk-cpp icon indicating copy to clipboard operation
assistant-sdk-cpp copied to clipboard

opening microphine automatically for multi turn situation.

Open boldragon opened this issue 7 years ago • 2 comments

hello,

what I want to do is that open the microphone resouce when the response from google assistant is re-asking, for example, Me: add my schedule G : what’s the title of schedule? Me : lunch with James. <— mic should re-open here. ...

I’ve tried several ways, but there’s insufficient of usable information to do that.

could you guide me how to implement multi-turn case?

thank you in advance.

boldragon avatar Aug 20 '18 01:08 boldragon

When you get a response, you should be able to turn on the microphone programmatically.

Ideally this sample should be reading the value of dialog_state_out.microphone_mode to see if it is [DIALOG_FOLLOW_ON](https://github.com/googleapis/googleapis/blob/master/google/assistant/embedded/v1alpha2/embedded_assistant.proto#L408) and re-enable the mic in that case.

Fleker avatar Aug 20 '18 18:08 Fleker

I'll leave this open as it's something that should be in the sample.

Fleker avatar Aug 20 '18 18:08 Fleker