Questions tagged [alsa]
For questions pertaining to ALSA, the Linux sound subsystem. ALSA sits below advanced systems like PulseAudio.
219
questions
3
votes
1
answer
1k
views
What modifies my .asoundrc file every boot?
My .asoundrc file gets modified every boot. If I delete it, a new appears at reboot:
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
If I make changes ...
1
vote
1
answer
71
views
Audio cuts out periodically when using audio hat
I am currently live streaming some audio to and from a raspberry Pi Zero W using the waveshare audio hat however I have found that the audio periodically cuts out when I do this. When I used my logic ...
3
votes
1
answer
784
views
USB Soundcard shows mic as Playback device in alsamixer
I have some trouble with my USB sound card 68878 from goobay.
Alsamixer showing unexpected devices
Secondly when I use alsamixer displaying Playback items. I see both a Speaker and a Mic:
For ...
1
vote
1
answer
2k
views
Why does device 0: bcm2835 ALSA on RPi 3 have 7 subdevices?
OK, so on Raspbian 9, on Raspberry Pi 3, if I try to list audio devices, I get this:
pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: ...
0
votes
0
answers
30
views
ALSA issue with Raspberry Pi 4b and voice recognition
I get the following error, and it does not return the speech_recognition information:
Expression 'GetExactSampleRate( hwParams, &defaultSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: ...
0
votes
1
answer
193
views
How to change bit depth to 16 of I2S MEMS Microphone?
I have successfully setup adafruit I2S mem microphone on my RPi3 running buster by following this guide .
It records audio well using arecord :
arecord -D 'plughw:2,0' -c1 -r 48000 -f S32_LE -t wav -V ...
1
vote
1
answer
96
views
RPi3 B+ Stretch. Config for external capture device & onboard headphone jack
I am planning to use an external Microphone "ReSpeaker 4Mic Hat" from Seeed-Studio on my RPi3 B+ Stretch OS. However, when I run alsamixer, my external Mic is not the default capture device. ...
-1
votes
1
answer
91
views
Surely I can run sox with alsa without pulseaudio
Why would I want to do that? because pulseaudio isn't needed (presumably) and pulseaudio does not want to run as root. In theory I should be able to run pulseaudio --system to fix the problem, but I ...
0
votes
0
answers
15
views
Configuration of iqaudio digiamp+ on Matlab
I try to implement a simple Simulink-model on my Raspberry Pi 4 model b . For this, I have a simple sine wave with 1/8000 sample time wich I pluged into an ALSA Audio Capture Block.
When I try to run ...
1
vote
1
answer
271
views
ALSA recognizes external sound card but still cannot produce sound
I recently purchased a Pi4 and a HiFiberry DAC+ADC as an external sound card. I followed this link HiFiberry Config to set up the hardware. However, even tho aplay -l listed the hardware, the system ...
0
votes
1
answer
203
views
Set two sinks with pulseaudio
I have two raop speakers that I can stream audio to from my Raspberry pi using Pulseaudio and AirConnect. At the moment, I can set either one as the default sink and it works as expected. I would like ...
0
votes
0
answers
39
views
ES audio not working (Retropie)
I'm running RetroPie on my Pi 4 4GB. I recently installed PIXEL through the RetroPie setup program, and now the sound doesn't work. If I exit ES and use aplay to play an audio file, it plays fine. But ...
4
votes
1
answer
7k
views
Alsa lib error pyaudio on raspberry pi 3
I'm getting these ALSA lib errors when trying to use pyaudio.
I know my mic works as I can live stream audio through gstreamer.
Can anybody explain to me why i'm getting these issues:
ALSA lib ...
0
votes
0
answers
20
views
Get Jackd to coordinate with ALSA and AudioInjector Octo?
I am attempting to run the AudioInjector Octo on a Raspberry Pi 4, running the Raspberry Lite OS.
My understanding is that ALSA manages AudioInjector - but that I also need jackd to send audio from my ...
1
vote
1
answer
743
views
Audio Issue with Multiple USB Sound Cards
I'm trying to build a simple python program that will capture audio from 2 different audio inputs and then play audio from 1 of them. I bought 2 USB sound cards so I could do this.
I started with an ...
0
votes
1
answer
150
views
Is it possible to override OmxPlayer's volume in RetroPie/EmulationStation?
I have my RetroPie EmulationStation set up to be 40% volume which makes for some good game volumes on my Picade's speaker. However, for the game snaps, I cannot hear the audio at all.
When I look at ...
1
vote
1
answer
358
views
Raspberry Pi 2 Model B v1.1 alsa & jackd Headphone Jack Configuration
My end goal is to do headless remote audio streaming with jacktrip on some older Pi 2 boards using the built-in headphone jack (I know the quality of it is lacking but I don't really care).
To narrow ...
1
vote
1
answer
394
views
Sudo Alsactl Store Not Saving Capture Settings
I am working on a project with alsa on the Raspberry Pi, and whenever I reboot my capture settings are reset. I have tried saving them via
sudo alsactl store
but this only saves the playback ...
0
votes
1
answer
593
views
Push alsa capture volume over limit on USB headset
I want to push capture volume on my RPi3 with ALSA of my USB headset (microphone) over the limit that is, in my case, 6 dB.
I tried every example i've found and the only reasonable way seems to be to ...
1
vote
1
answer
601
views
gmediarender configure output mono
I have configured gmediarender on the RPi 3. However I prefer only mono output.
Following this guide to downmix to mono did not output mono from the gmediarender.
/etc/asound.conf
pcm.card0 {
...
0
votes
1
answer
209
views
PCM1808 I2S arecord gets1153x too much data
I have a stock Pi 3B with all Raspbian updates. From various sources I've tried to cobble together alsa recording from an inexpensive PCM1808 device at 8K 24 bit stereo. To do this, I've used the ...
2
votes
1
answer
1k
views
no audio with playbin or autoaudiosink on gstreamer, but plays with alsasink
recently upgraded my raspian, and installation of RPi with Hifiberry AMP.
and my python application that utilizes gstreamer's api is no longer working.
as a test to figure out why I am using the gst-...
0
votes
0
answers
44
views
Audio output not working with cli
I am using Raspberry pi OS with raspberry pi 4. I have an application which uses playsound with python to play an audio file created by gTTS library. I am using a usb sound card card 2 which has a ...
0
votes
1
answer
404
views
Record USB System Audio and Send to Named Pipe
I am trying to get audio to LedFx, a controller for sound reactive LEDs. One of the ways it can read audio through its docker container is through a named pipe. The command ffmpeg -y -i http://wms-15....
1
vote
0
answers
95
views
Can I connect to bluetooth audio and send audio OUT while using an external sound card for audio IN?
Sometime ago I used this helpful tutorial: How can I use an external USB sound-card and set it as default?
to set my external USB sound card as my default. This has been great for me as I use external ...
0
votes
0
answers
38
views
Help down mixing stereo into two separate mono channels
I have a Raspberry Pi Zero W configured as an AirPlay audio playback device for personal use. I am using the Adafruit Speaker Bonnet (https://www.adafruit.com/product/3346) which interfaces to the Pi ...
3
votes
4
answers
8k
views
Pygame and Alsa lib error
I am running a pygame window on a raspberry pi. The raspberry pi is connected to an lcd through gpio (not hdmi). My pygame script does not contain any mention of audio, only some basic rectangle ...
0
votes
1
answer
1k
views
Send audio output to Bluetooth speaker
I am working on a Python script that lets Raspberry Pi 4 play audio announcements (mp3 format) at specified times. I am using the Python OS library to send the play audio commands to system.
The aplay ...
1
vote
0
answers
125
views
Alsa mixer won't save setting
I have UGREEN usb audio interface.
MY pi 4 is recognize it but no sound is comnig out. I try both via VLC player and via youtube (the video won't even play)
I did the follow:
I wrote at terminal: sudo ...
0
votes
0
answers
283
views
SteamLink fails to fully start due to vague initialization error
I’ve been trying to get SteamLink working on my RPi 4 with Bullseye ‘Lite’/headless installed. I’m able to get steam to startup, download the necessary packages, and even load enough to finishing ...
9
votes
5
answers
9k
views
I2S DAC device support (kernel drivers?) and noise ("pop", "crackle") on playback
I am trying a Adafruit I2S 3W Stereo Speaker Bonnet for Raspberry Pi - Mini Kit, which is built around two MAX98357 (datasheet: adafruit, maxim), on a Raspberry Pi Zero W with Raspbian Stretch (...
2
votes
1
answer
363
views
Unable to get Qt5 audio to work using pulseaudio on Rpi 4
I'm on Raspberry pi 4 and the OS is DietPi
I configured ALSA so I could play an audio file successfully through HDMI using aplay [an audio file]
Then launched the PyQt5 app but got PulseAudioService: ...
1
vote
1
answer
242
views
volume control quirk for Tenx TP6911 Audio Headset
On a fresh install of 2021-01-11-raspios-buster-armhf-lite with dmesg an older, cheap, generic "3D SOUND" USB audio stick for headphone and microphone is detected as
[ 480.467295] usb 1-1: ...
25
votes
1
answer
52k
views
How can I use an external USB sound-card and set it as default?
I've got an external USB sound-card from C-Media running on my RPi3. I can play some recordings using aplay/arecord by specifying the card index and ALSA plugin. However, many other sound files does ...
1
vote
1
answer
11k
views
How can I change the audio output device from the command line?
I want to be able to change the audio output device (hdmi or aux) from the command line, preferably, without having to sudo. I'm on a RPI4 with Raspbian-lite Buster.
On the RPI3 I was able to use ...
1
vote
1
answer
140
views
Cannot start jackd with a low period size - ALSA fails
I'm attempting to build a multi-effect guitar pedal out of a Pi-4B (8GB), and am running into problems getting jackd running with reasonably low latency.
It runs fine as long as the period is set to ...
1
vote
1
answer
8k
views
How to increase mic input volume?
I recently bought a usb soundcard and a 3.5mm microphone for my raspberry pi 4 to use for a python project for speech recognition where I want the pi to be able to hear to conversational volume voices ...
2
votes
1
answer
2k
views
Read Incoming Bluetooth Audio On Pi With Python
this is my first post on here! I am trying to make my raspberry pi 3 a bluetooth speaker which synchronizes beat of the music being played from a phone to an LED light strip. For the LED light ...
6
votes
1
answer
4k
views
How to use both USB Mic (in) and on-board sound (out)
I'm trying to set up my RPi with on-board sound out and a USB mic in, but everything I've found only deals with both audio i/o on the same (external) sound card. What's happening in my situation is ...
1
vote
1
answer
2k
views
using php_exec command to play audio on the Pi - no audio group [closed]
I'm trying to have a php script play an audio file when run
shell_exec('aplay /home/andrew/www/audio/meeting-bell/medium-bell.wav')
It works when I run it from the command line, but not when running ...
0
votes
1
answer
176
views
Analog audio out when starting from /etc/rc.local
I am working on a python program that I am having some issues with. When the user presses a button a video starts playing. I need the audio to come from the analog jack. It works perfectly when I run ...
1
vote
0
answers
266
views
How to config default input/output devices in ALSA config file(~/.asoundrc)?
I am trying to configure microphone and speaker for raspberry pi 4. I edited "~/.asoundrc" file like that:
pcm.!default {
type asym
playback.pcm "plughw:0"
capture.pcm &...
3
votes
2
answers
3k
views
aplay finds no sound cards despite dtparam=audio=on
I broke my boot partition and had to rebuild it. Both cmdline and config.txt are gone and I had to start over. The rest of the system is untouched. Unfortunately, I forgot how they were configured and ...
1
vote
3
answers
7k
views
sound output stuck on HDMI (working)
I cannot get any output to use the 3.5 mm headset jack it is stuck on HDMI.
There are lots of questions on here that ask about the headset jack connector not working and have answers on howto switch ...
1
vote
2
answers
448
views
Alsa passthrough Digital In to Analog Out
I have a LogiLink USB Soundbox 7.1 connect to a raspberry pi running rasbian and I want to passthrough the input of S/PDIF In to Speaker Front.
I found this: Possible to route audio directly from usb-...
7
votes
2
answers
7k
views
MIDI keyboard latency with fluidsynth
I set up my MIDI keyboard with fluidsynth on raspbian, mostly according to this how to.
It all works fine, but I've got a ~1 second latency. Does anybody know how to fix this issue?
RPi model: B
...
0
votes
2
answers
1k
views
Weird behaviour of ALSA with both paplay and vlc
Jack sound works well on my headless Debian Raspberry with omxplayer and pretty much any file.
However, alsa-based programs output a buggish sound and regularly fail. Here is a (maybe) interesting ...
2
votes
0
answers
307
views
Raspberry Pi 3 B+ with Raspberry Pi OS (32 bit) screen fades out while booting
I've installed the official 7" touch screen on my Raspberry Pi 3 B+. I used the Raspberry Pi Imager to put Raspberry Pi OS (32 bit) on a SD card and while booting, the screen fades out to a black ...
0
votes
1
answer
188
views
ALSA: Why is the pitch of played sounds too low (½ the original frequency)?
I've just installed a fresh Raspbian Buster on My Raspi 3B+ together with a JustBoom DAC HAT sound card. With the old Raspbian installation, sound output went well after a couple of experiments, but ...
2
votes
0
answers
302
views
High-speed USB Audio Streaming
I am using a Raspberry Pi 3B+ as the USB host for an embedded device that I have configured to appear as a USB Audio 2.0 compliant microphone.
I am currently using PyAudio for opening and recording ...