You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
We have an example of this in the Mocktails Mixer write-up. Instructions to wire the button are here and the code is here (lines of interest are mainly 150-181).
sysfs method;
Pushed a switch and turn on the LED, talt to the mic and output the voice from google, and turn off the LED. Repeat this process again pushed a switch. 1. Add import sys library
while True:
if wait_for_user_trigger:
while True:
#print(read_button())
button_status = read_button()
if button_status == 1:
break
write_led(1)
#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
write_led(0)
# If we only want one conversation, break.
if once and (not continue_conversation):
break
Please can you help me with adding switch to trigger google assistant ? Pressing enter every time is very annoying
The text was updated successfully, but these errors were encountered: