Questions tagged [alsa]

For questions pertaining to ALSA, the Linux sound subsystem. ALSA sits below advanced systems like PulseAudio.

Filter by
Sorted by
Tagged with
0 votes
1 answer
80 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 ...
0 votes
1 answer
354 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
0 answers
14 views

Playback open error: -16,Device or resource busy

I have a RaspberryPi Zero W and the HifiBerry DAC. I have used it before without problems and now I have an image with samplerbox and I added the line to /boot/config.txt: dtoverlay=hifiberry-dac I ...
0 votes
1 answer
549 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 ...
0 votes
1 answer
5k 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 ...
0 votes
1 answer
134 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
545 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
68 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 ...
0 votes
0 answers
12 views

USB Sound Output Only Sending 16 Bit

I am using the RaspberryPi 4 running Raspbian (Debian: 10, Linux Kernel: 5.10) and have connected to my DAC (Cambridge Audio CXA61 which is a DAC/Amplifier) through USB. While playing a 24 bit, 96 kHz ...
4 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 ...
0 votes
1 answer
50 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 ...
0 votes
0 answers
38 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. aplay -l ...
2 votes
1 answer
636 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
1k 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 ...
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: ...
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 ...
0 votes
1 answer
3k 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 ...
0 votes
0 answers
30 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
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 ...
-1 votes
1 answer
41 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 ...
0 votes
1 answer
142 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
177 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: ...
0 votes
0 answers
90 views

Pulseaudio - No USB Sound

I have a Raspberry Pi 4 and am running the Picroft Rasbian image. Picroft uses Pulseaudio to control the audio, but I can't get it to play anything from my USB speaker. The result of pactl info: ... ...
0 votes
1 answer
86 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. It seems ...
0 votes
1 answer
42 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 ...
3 votes
1 answer
6k 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 ...
1 vote
1 answer
622 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
43 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 ...
0 votes
0 answers
38 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 &...
0 votes
2 answers
2k 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
6k 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
92 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-...
6 votes
2 answers
6k 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
971 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 ...
1 vote
0 answers
188 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
58 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
121 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 ...
0 votes
0 answers
26 views

simultaneous audio playback is not working

i have raspberrypi4, i flashed webos ose edition in that. i have connected 2 hdmi displays and play using aplay in hdmi1, hdmi2 and lineout(headphones), I am getting error from aplay. #cat /proc/...
1 vote
0 answers
371 views

Sound playback trough bluealsa-aplay not working as a service

I am trying to manually setup my raspberry pi 4 as a Bluetooth audio receiver, but there is no sound playback when I start the bluealsa-aplay service I created. It only works when I run the bluealsa-...
0 votes
0 answers
204 views

Logitech C920 webcam mic volume very low in some apps

I've connected a Logitech C920 webcam to my Raspberry Pi 4 with the basic OS image on it. I want to use it for video conferencing through my living room TV, and I intended to use the built in C920 mic ...
0 votes
0 answers
765 views

How to force audio output to HDMI/3.5mm jack on RPi4 B via CLI?

on RPi 3 we are using something like amixer cset numid=3 1 and then alsactl store to force sound output to jack 3.5mm and store configuration. I want same thing on my RPi4 model B, but it does not ...
0 votes
2 answers
2k views

Use internal sound card speaker and USB MIC as default

Problem I'm using UV4L for audio/video streaming. I'm using 3.5mm speaker, and usb microphone UV4L uses default audio/video device for streaming, but only audio work. USB MIC doesn't work. But ...
1 vote
0 answers
6k views

What does amixer cset numid=3 3 do?

In order to solve missing audio via HDMI with Raspberry Pi 4B (Raspian Buster) I came across amixer cset numid=3 2 which didn't do the trick for me. But randomly I checked numbers from 0 to 4 and ...
0 votes
2 answers
48 views

Why is a Justboom DAC HAT no longer recognised after an upgrade to a Raspi 3B+?

I recently replaced my faulty old Raspi 3B with a 3B+, attached the two HATs I've got (a JustBoom DAC HAT sound card and an S.USV Advanced), plugged the SD card into the new one, upgraded the Raspbian ...
1 vote
1 answer
249 views

I want to allow two instances of mPlayer to play music over a single bluetooth link to a speaker

I have an application which makes two uses of playing two files at the same time. The first is where it plays a white-noise file very quietly and continuously so that the sound-card does not go to ...
0 votes
0 answers
167 views

Live streaming camera and microphone input on a Raspberry Pi 4

I got a a Raspberry Pi camera and a USB microphone connected to the Raspberry Pi 4. All of them are working seperately. But now, I would like to stream them live and combined for accessing it in HTML. ...
0 votes
0 answers
142 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
1 answer
1k views

How do I get a USB speaker working on a Pi 4 with Raspbian Buster?

I've found several candidate dupes for this - the one that seems to encompass them all (and more) being this one: How can I use an external USB sound-card and set it as default? But none of them have ...
1 vote
2 answers
226 views

Can I use Raspberry Pi as a USB speaker?

Now I have A: Desktop PC with Arch Linux B: Raspberry Pi 3 with Raspbian Buster connected with a speaker and I'd like to use B as a wired speaker of A. By "wired", I mean that A and B are connected ...
1 vote
1 answer
223 views

Duplicating audio in pure ALSA for playback on local device and streaming via trx

I am trying to achieve a multi-room audio setup in my house using Raspberry Pis. How can I get VLC playing simultaneously out the local headphone port while also streaming it to other devices via trx? ...

1
2 3 4 5