树莓派声音设置

Posted 极客先锋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了树莓派声音设置相关的知识,希望对你有一定的参考价值。

默认的声音输出是HDMI,改到3.5音频口就可以了。
命令
$:sudo amixer cset numid=3 1

 

 
config文件是这样设置的,用HDMI直连显示器,播放电影,音乐3.5口没有声音
raspi-config 设置从3.5 输出一样没有声音
有没有 解决办法

# For more options and information see 
http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display‘s size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=14

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800


# NOOBS Auto-generated Settings:
#hdmi_force_hotplug=1
config_hdmi_boost=4
#overscan_left=24
#overscan_right=24
#overscan_top=16
#overscan_bottom=16
disable_overscan=1

以上是关于树莓派声音设置的主要内容,如果未能解决你的问题,请参考以下文章

树莓派没有声音

树莓派的输入声音检测

树莓派hdmi屏幕没反应

声音不适用于 Android Things 的树莓派

《树莓派项目实战》第七节 使用声音传感器检测有无声音

《树莓派项目实战》第七节 使用声音传感器检测声音