Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
53 votes
Accepted

How can I use an external USB sound-card and set it as default?

Background It's amazing to see how much effort has been put in to trying to resolve various sound related problems for the Raspberry Pi. Apparently it must be the weakest spot for new users to ...
not2qubit's user avatar
  • 1,407
9 votes
Accepted

Setup output and input audio on different cards

To get different definitions for playback and capture, use the asym device: pcm.!default { type asym playback.pcm "plughw:0" capture.pcm "plughw:1" } (Something like this is not ...
CL.'s user avatar
  • 571
9 votes
Accepted

Difference between "hwplug" and "hw"

hw accesses the hardware device directly. plughw inserts sample rate and format conversion plugins, if needed.
CL.'s user avatar
  • 571
8 votes
Accepted

FFMPEG: Unknown input format: 'alsa'

Short answer run: sudo apt-get install libasound2-dev before attempting to configure and compile ffmpeg or anything where you need alsa support. Process for resolving similar build dependencies: ...
lossleader's user avatar
8 votes
Accepted

How to stream sound to a bluetooth device from a raspberry pi zero

I did manage to play sound and record using my Marshall MID headphones using a Raspberry Pi Zero W, which has a builtin WiFi + Bluetooth adapter, but no audio jack. Please note that there are ...
Besi's user avatar
  • 884
7 votes
Accepted

Pi 3 B+ no audio device found

Also check the /boot/config.txt file. It should look like this: # Enable audio (loads snd_bcm2835) dtparam=audio=on
tbitson's user avatar
  • 161
5 votes
Accepted

Possible to route audio directly from usb-audio line-in to same usb audio line-out?

I found a simple solution using just ALSA and uses little CPU - around 3-5% on RPi 3 using latest Jessie build and a USB Audio Device It appears that recent builds all come with ALSA's dmix plugin ...
dbmitch's user avatar
  • 381
5 votes
Accepted

Pygame and Alsa lib error

Here's a writeup for the hack we came up with in the comment stream: Most fortunately, we're able to take advantage of the limited scope of this request: I don't care that sound doesn't work on ...
jdonald's user avatar
  • 2,924
5 votes

Pi 3 B+ no audio device found

I suggest you run raspi-config, look at Advanced Options>Audio and make sure the "1 Force 3.5mm ('headphone') jack" option is selected. Then reboot...
Jonathan's user avatar
  • 354
5 votes

How to increase mic input volume?

Hey so I know that this is late but I actually found a good answer! This is my first post too so I am going to try my best. I found this information on the website PiMyLifeUp. The link to the article ...
Tylan's user avatar
  • 51
4 votes

arecord: main:722: audio open error: No such file or directory

Here is a solution you might find helpful: arecord -D hw:2,0 -d 5 -f cd test.wav -c 1 D option specifies recording device. Since this specific test mic is on “card 2”, “device 0”, the value is “hw:2,0”...
alexanderjsingleton's user avatar
4 votes

Possible to route audio directly from usb-audio line-in to same usb audio line-out?

You can use module-loopback functionality of PulseAudio. First identify the names for your sound card's line in and speakers using pactl list sources and pactl list sinks respectively. Then create the ...
Dmitry Grigoryev's user avatar
3 votes
Accepted

MPD hangs on song change

I had the same problem on my Pi3B but could fix it by uncommenting "device" option in the "audio_output" block (in my case ALSA) in mpd.conf.
Apasserby's user avatar
3 votes

Configuring audio to produce balanced mono output

Exactly the same device definition works for playback: pcm.fake_balanced { type route slave.pcm "hw:0" # or whatever ttable [ [ 1 -1 ] ] } Put it into your ~/.asoundrc or into the ...
CL.'s user avatar
  • 571
3 votes

Configuring audio to produce balanced mono output

Sadly, I don't think this is going to work the way you think it's going to work. Balanced cabling is effective at minimising noise induced along the length of the cable. If there's an almighty ...
goobering's user avatar
  • 10.7k
3 votes

How to configure and select USB Microphone

You can make these various settings in your asoundrc, discussed here. You need to set the default input and output in your asoundrc file. Note that when the input and output devices are different, ...
Matt's user avatar
  • 966
3 votes

arecord: main:722: audio open error: No such file or directory

Use arecord -Dhw:cardID:deviceID test.wav For MIC You can find the card ID and device ID of kinobo USB from arecord -l For Play The aplay -l ---> will display Card Id and Device ID $ aplay -Dhw:...
user73636's user avatar
  • 117
3 votes

aplay finds no sound cards despite dtparam=audio=on

Ensure that your user belongs to audio group. To check groups of the currently logged user: groups "${USER}" To add yourself to the audio group: sudo usermod -aG audio "${USER}" ...
Mikaelblomkvistsson's user avatar
3 votes
Accepted

I2S DAC device support (kernel drivers?) and noise ("pop", "crackle") on playback

2020-06 update/summary The MAX98357 does not handle the RPi's I2S output well which causes pops/cracks root cause is a short high-level interruption of BCLK before LRCLK starts (oscillograms: actual,...
handle's user avatar
  • 153
3 votes

Command aplay does not work without sudo

Check if your user included in the audio group. This might be necessary for aplay to run. If not, you can add the user to the group by running: sudo adduser "yourname" audio
Bart Heremans's user avatar
3 votes
Accepted

What are those ALSA Subdevices and what are they used for?

The subdevices are for multiple audio services usage that would be mixed to input/output. There are also subdevices that are a part of an input or output device. There must be at least 1 ...
M. Rostami's user avatar
  • 4,333
3 votes

bluealsa: Couldn't acquire D-Bus name: org.bluealsa

Section 3 at the bottom of the installation guide Troubleshooting part: Couldn't acquire D-Bus name: org.bluealsa It is not possible to run more than one instance of the BlueALSA ...
Ephemeral's user avatar
  • 2,157
2 votes
Accepted

Getting Frequency of an audio file per second in Raspberry Pi

2 Bytes = 16 Bits Adding a bit of code so that I can understand how the wave module works: #!/usr/bin/env python3 import wave,struct,math waveFile = wave.open("/home/pi/Music/...
Hydraxan14's user avatar
  • 1,846
2 votes

3.5 mm jack starts to "hiss" after sound is played

I was able to get rid of the hiss entirely by adding audio_pwm_mode=2 to my /boot/config.txt. BTW: I also have a ground loop isolator between my audio jack and my amp.
Robert Corvus's user avatar
2 votes

Set up C-media USB soundcard for microphone input on Raspberry Pi 2 with Raspbian Jessie

I've finally solved this issue on my side. I hope this ends up being the problem you had too... The problem was the microphone plug. I was unaware there are two kinds out there: 3-pole, and 4-pole. ...
R Porter's user avatar
  • 121
2 votes
Accepted

How to change audio levels of sound card with same control names

Use amixer -c2 controls to list all the low-level controls. Then you can use amixer -c2 cset .. to select specific controls by their unique ID number.
CL.'s user avatar
  • 571
2 votes
Accepted

Microphone Raspberry Pi 3(Jessie)

You can look at how to setup your asoundrc (start here perhaps) to make the microphone default input and a different card default output. Alternatively you could get a (GPIO) sound card with both mic....
Matt's user avatar
  • 966
2 votes
Accepted

Configure ALSA Sound card

You can play from either, as long as the kernel modules for both are loaded. The method for doing this is as follows : Stop lxpanel Unload the audio drivers (rmmod or modprobe -r) Load the audio ...
Matt's user avatar
  • 966
2 votes

I2S DAC device support (kernel drivers?) and noise ("pop", "crackle") on playback

So a specific driver exists. Is it available in Raspbian? Nope. (needs compiling?) So yes it's available by specifying it as a module and recompiling the kernel. One way to configure for ...
jdonald's user avatar
  • 2,924

Only top scored, non community-wiki answers of a minimum length are eligible