Stay organized with collections
Save and categorize content based on your preferences.
Once you have the Google Assistant running on your project, give these a try:
Customize how your project interacts with the
Assistant. For example, trigger the Assistant with the push of a button or
blink an LED when playing back audio. You can even show a speech recognition
transcript from the Assistant on a display.
Control your project with Device Actions.
For example, ask your lamp, with the Assistant built-in, to turn on and
change its brightness.
Customize how your project interacts with the Assistant
Trigger the Assistant
With the Google Assistant Library, you trigger an Assistant request by speaking
a hotword like Ok Google. You can mute the microphone to stop the Assistant
from listening for the hotword. Use the set_mic_mute()
to control this. Trigger the start_conversation()
method based on your own custom event.
Get the transcript of the user request
The Google Assistant SDK gives you a text transcript of the user request. Use
this to provide feedback to the user by rendering the text to a display, or even
for something more creative such as performing some local actions on the device.
You can add Device Actions to the Assistant that allow you to control your
device via voice. Extend
the Google Assistant Library sample to include Device Actions.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["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."]]],[]]