Raspberry Pi audio Configuration

Source: Internet
Author: User
Tags raspi

Raspberry Pi has two audio output modes: hdmi and headphone interfaces. You can switch between the two modes at any time.


If your HDMI monitor has a built-in speaker, the audio can be played through the HDMI interface. You can also switch to the headset interface to use the speaker of the headset or other headset interface to play the video. If your monitor requests support from the speaker, the sound is output through HDMI by default; if not, the sound is output through the headset interface. This may not be your expected setting, or the automatic detection results may be inaccurate. In this case, you can manually select the output.


1. Change the audio output (modify the audio output)


There are two ways to set the audio output:


1.1 command line)


On the command line terminal, enter the following command to switch to the HDMI output mode:

amixer cset numid=3 2

Set the output to 2, that is, HDMI.

Setting the output to 1 will switch to the analog signal (that is, the headset interface ).

The default value is 0, which indicates automatic selection.


1.2 RASPI-CONFIG (raspi-config setup tool)


Enter the following command in the command line to open the raspi-config tool:

sudo raspi-config

After you enter the command, the following page is displayed:



Select Item 8 advanced options and press Enter. Then select item 6 audio and press Enter:



Now you can see the default auto option and the list of the other two modes. Select one of the modes, press enter, press the right cursor control key to jump out of the option menu, and select finish to exit the Configuration tool.


2. If you're still not getting sound via HDMI (if you still haven't heard the sound from the HDMI Interface)


In a few situations, you need to edit the config.txt file to force the HDMI mode (to exclude the DVI mode with no sound attached ). To achieve this, you can edit the/boot/config.txt file to set hdmi_drive = 2, and then restart the system to make the modification take effect.


Address: http://www.raspberrypi.org/documentation/configuration/audio-config.md


Raspberry Pi audio Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.