Google アシスタント SDK の例では、ユーザーは Google アシスタントに話しかける前に Enter キーを押す必要があります。
ボタンを RPI GPIO ピンの 1 つに配線して、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
これは、GPIO ライブラリをリンクする変更を行う領域になると思います。
実装するにはどうすればよいですか?PythonとRaspberry Piは初めてです。Java のバックグラウンドと自動化の履歴があります。