The Google Assistant SDK example requires the user to hit enter before speaking to the Google Assistant.
I was wondering is there a way to wire a button to one of the RPI GPIO pins and have it trigger G.Assistant.
while True:
if wait_for_user_trigger:
click.pause(info='Press Enter to send a new request...')
continue_conversation = assistant.converse()
# wait for user trigger if there is no follow-up turn in
# the conversation.
wait_for_user_trigger = not continue_conversation
# If we only want one conversation, break.
if once and (not continue_conversation):
break
I suppose this would be the area where i make the change linking up the GPIO library.
How should I go about implementing it? Im new to Python and Raspberry Pi. I do have a Java background and automation history.