0
Google Assistant SDKの例では、Google Assistantと話す前にユーザーがenterキーを押す必要があります。Google Assistant SDK用のRaspberry Piのボタンの接続方法
RPI GPIOピンの1つにボタンを配線し、G.アシスタントをトリガーする方法があるのだろうかと思っていました。
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のバックグラウンドと自動化履歴があります。
おかげラウルを。それはまさにそれです。おそらくリチャーズのレビューに関しては、手順を要約することができます。乾杯。 – VBaarathi