Stay organized with collections
Save and categorize content based on your preferences.
This page contains recommendations on how to provide speech data to the
Google Assistant API. These guidelines are designed for greater efficiency
and accuracy as well as reasonable response times from the service.
Audio pre-processing
It's best to provide audio that is as clean as possible by using a good quality
and well-positioned microphone. However, applying noise-reduction signal
processing to the audio before sending it to the service typically reduces
recognition accuracy. The service is designed to handle noisy audio.
For best results:
Position the microphone as close to the user as possible, particularly when
background noise is present.
Avoid audio clipping.
Do not use automatic gain control (AGC).
All noise reduction processing should be disabled.
Ideally:
The audio level should be calibrated so that the input signal does not clip,
and peak speech audio levels reach approximately -20 to -10 dBFS.
The device should exhibit approximately "flat" amplitude versus
frequency characteristics (+- 3 dB 100 Hz to 8000 Hz).
Total harmonic distortion should be less than 1% from 100 Hz to 8000
Hz at 90 dB SPL input level.
[[["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 API is designed to handle noisy audio, so noise reduction processing should be disabled prior to sending audio."],["For optimal performance, position the microphone near the user, avoid audio clipping and automatic gain control, and calibrate audio levels to peak between -20 to -10 dBFS."],["Devices used for audio input should ideally have a flat frequency response and minimal harmonic distortion."],["**Warning:** The Google Assistant Library for Python is deprecated; use the Google Assistant Service instead."]]],[]]