Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opening microphine automatically for multi turn situation. #40

Open
boldragon opened this issue Aug 20, 2018 · 2 comments
Open

opening microphine automatically for multi turn situation. #40

boldragon opened this issue Aug 20, 2018 · 2 comments

Comments

@boldragon
Copy link

boldragon commented Aug 20, 2018

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.

@Fleker
Copy link
Collaborator

Fleker commented Aug 20, 2018

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 Fleker closed this as completed Aug 20, 2018
@Fleker Fleker reopened this Aug 20, 2018
@Fleker
Copy link
Collaborator

Fleker commented Aug 20, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants