Configure and Test the Audio
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The Google Assistant Library for Python is deprecated as of June 28th, 2019; use the Google Assistant Service instead.
This content is hardware-dependent, requiring selection from Raspberry Pi 3, Ubuntu Desktop, or Other Linux-based platforms.
Before running the sample, you must configure the audio system on the Raspberry Pi by finding recording and playback devices and creating an .asoundrc file.
You can verify that recording and playback work by adjusting playback volume, playing a test sound, recording a short audio clip, and replaying it.
If recording and playback are not working, check connections or try different hardware, and note that on Raspberry Pi, you can choose audio output device using raspi-config.
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 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"]]