使用 Google 助理資料庫時,您可以說出啟動字詞 (例如 Ok Google),以觸發 Google 助理要求。您可以將麥克風設為靜音,
讓 Google 助理停止聽取啟動字詞。您可以使用 set_mic_mute() 進行控管。根據自己的自訂事件觸發 start_conversation() 方法。
取得使用者要求的轉錄稿
Google 助理 SDK 可提供使用者要求的文字轉錄稿。您可以利用這項功能,在螢幕上顯示文字,或針對其他廣告素材 (例如在裝置上執行一些本地動作) 向使用者提供意見。
[null,null,["上次更新時間:2023-12-02 (世界標準時間)。"],[[["The Google Assistant Library for Python is deprecated and developers should utilize the Google Assistant Service instead."],["Customize Assistant interaction by triggering requests with custom events (e.g., button press) and displaying speech transcripts."],["Control your project using Device Actions, enabling voice control for functionalities like adjusting brightness."],["The library provides methods for microphone control (`set_mic_mute`) and initiating conversations (`start_conversation`)."],["Access user request transcripts via the `ON_RECOGNIZING_SPEECH_FINISHED` event for feedback or custom actions."]]],[]]