Stay organized with collections
Save and categorize content based on your preferences.
The content on this page is hardware-dependent. Please select from the following:
Before running the sample, you must configure the audio system on Ubuntu
Desktop. Note that the commands listed on this page should work on any Linux
distribution that includes ALSA tools.
Verify that recording and playback work. You can do this in the system sound
settings or from the command line:
Play a test sound (this will be a person speaking). Press Ctrl+C when
done. If you don't hear anything when you run this, check your speaker
connection.
[[["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; use the Google Assistant Service instead."],["This guide provides instructions to configure audio on Raspberry Pi for use with Google Assistant."],["Users need to identify and configure their microphone and speaker devices using provided commands."],["Verify audio setup by testing playback and recording functionalities with given commands."],["Upon successful audio configuration, proceed to configure a developer project and account settings."]]],["The content outlines configuring audio for hardware, specifically on a Raspberry Pi. Key actions include identifying microphone and speaker devices using `arecord -l` and `aplay -l`, and noting their card and device numbers. Then create `.asoundrc` file and update it with specific hardware details. Users then verify audio functionality by adjusting volume using `alsamixer`, testing playback with `speaker-test`, and testing recording using `arecord` and `aplay`. Lastly a command `sudo raspi-config` is suggested to choose the audio output.\n"]]