使用 Google 助理資料庫時,您可以說出啟動字詞 (例如 Ok Google),以觸發 Google 助理要求。您可以將麥克風設為靜音,
讓 Google 助理停止聽取啟動字詞。您可以使用 set_mic_mute() 進行控管。根據自己的自訂事件觸發 start_conversation() 方法。
取得使用者要求的轉錄稿
Google 助理 SDK 可提供使用者要求的文字轉錄稿。您可以利用這項功能,在螢幕上顯示文字,或針對其他廣告素材 (例如在裝置上執行一些本地動作) 向使用者提供意見。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間: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."]]],[]]