Skip to main content

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
0 answers
23 views

Crackling noise with external soundcard microphone input

I have a Terratec USB soundcard connected to my RPi4 running bookworm. If I use arecord -f cd -d 5 test.wav I get crackling noises with my microphone. If I specify the device with arecord -f cd -d 5 -...
karlo922's user avatar
0 votes
0 answers
144 views

pygame.error: ALSA: Couldn't open audio device: No such file or directory only when trying to run script on boot

Very much a rookie to Pi and python. I've created a python script that reads rfid tags and then plays lights and sounds. The audio comes from a usb sound card, it is a raspberrypi 4. Everything ...
JMz's user avatar
  • 1
1 vote
0 answers
22 views

Use sound card for audio in and build in headphone Jack for audio out on the raspberry pi 4b

I am currently working on a university project with the raspberry pi. I have build an external microphone which I have to connect to the pi via soundcard. This works fine, it records fine all going ...
Lennart's user avatar
  • 11
0 votes
1 answer
26 views

FFMPEG hangs intermittently before audio recording starts

I'm trying to get FFMPEG to pull both audio from my webcam. It works fantastically, when it does, but is intermittent. I am using the following command: ffmpeg -report -y -f alsa -channels 1 -ar ...
LazySpoon Utensil's user avatar
0 votes
1 answer
42 views

Docker Image with audio acess not working, wrong output device

I am running a Raspberry Pi 4 with Ubuntu 22.04 connected to an Elecrow 7inch LCD Display-H 1024x600 that has an audio jack for headsets and comes with two speakers. I am trying to setup a docker ...
K. Meyer's user avatar
1 vote
0 answers
196 views

No audio over HDMI with latest Raspberry Pi OS Lite official image - raspi-config not working

I use a Raspberry 3B+. After a fresh installation of latest Raspberry Pi OS Lite 64 bit (Bookworm official image : https://downloads.raspberrypi.com/raspios_lite_armhf/images/raspios_lite_armhf-2023-...
fdamien12's user avatar
0 votes
0 answers
39 views

ALSA lib PyAudio Errors with ReSpeaker v2.0 USB Mic Array and Raspberry Pi 4B

I have been having problems using the pyaudio library to access raw audio data from the ReSpeaker Mic Array v2.0 microphones. The example script below is provided from the link above, and it's ...
Cole Sheyka's user avatar
1 vote
0 answers
181 views

Raspberry Pi 4B & ReSpeaker v2.0: PyAudio Errors and ALSA Configuration Issues

OS: Raspberry Pi OS (64 bit) - Debian Bookworm As a forewarning, I am a novice when it comes to IoT projects like this. My purpose is to implement my own custom python script which considers direction ...
Cole Sheyka's user avatar
0 votes
1 answer
54 views

BlueALSA audio not playing when initiating connection through bluetoothctl, but does play when connection initiated through device

I use a Raspberry Pi 4 as a bluetooth receiver for audio. I set it up with this script and it works well if the connection is initiated through my phone: Click on the name of the raspberry bluetooth, ...
yar's user avatar
  • 101
0 votes
0 answers
34 views

USB external sound card - reproduce audio from multiple services

i have an external USB Sound Card connected on my Raspberry and i set it as default from raspi-config. Then, i have a process that is always running and it use the USB external sound card: root@...
ducarpit's user avatar
0 votes
0 answers
150 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: ...
Vector776's user avatar
0 votes
0 answers
22 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 ...
Scorpio731's user avatar
0 votes
0 answers
97 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 ...
Kami-kun's user avatar
0 votes
0 answers
25 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 ...
radonador's user avatar
1 vote
0 answers
204 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 ...
M0nst3rM0vi3's user avatar
1 vote
0 answers
201 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 ...
lon_ly's user avatar
  • 11
0 votes
1 answer
250 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 ...
jonny789's user avatar
  • 211
-1 votes
1 answer
125 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 ...
Petr's user avatar
  • 117
0 votes
1 answer
2k 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 ...
Bahi8482's user avatar
  • 111
1 vote
1 answer
176 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 ...
Ray's user avatar
  • 121
0 votes
1 answer
218 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 ...
Ryan Absher's user avatar
1 vote
0 answers
305 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 &...
arm's user avatar
  • 9
0 votes
1 answer
238 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 ...
peter's user avatar
  • 101
1 vote
2 answers
553 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-...
Nils's user avatar
  • 111
0 votes
1 answer
259 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 ...
Deepstop's user avatar
  • 109
2 votes
0 answers
324 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 ...
Stephan Vierkant's user avatar
-1 votes
1 answer
176 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 ...
Kram's user avatar
  • 99
0 votes
1 answer
215 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 ...
Neppomuk's user avatar
  • 452
2 votes
0 answers
329 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 ...
Ali Rahman's user avatar
2 votes
1 answer
454 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: ...
A_Kz's user avatar
  • 31
1 vote
1 answer
426 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 ...
mightymouse3062's user avatar
1 vote
0 answers
910 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-...
neo hopper hop's user avatar
2 votes
1 answer
14k 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 ...
Iogictable's user avatar
0 votes
0 answers
2k 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 ...
Rohlik's user avatar
  • 115
0 votes
2 answers
150 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 ...
Neppomuk's user avatar
  • 452
0 votes
0 answers
435 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. ...
user11748507's user avatar
0 votes
1 answer
562 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....
Byte11's user avatar
  • 53
1 vote
1 answer
561 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? ...
michaeljtbrooks's user avatar
1 vote
1 answer
257 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: ...
handle's user avatar
  • 153
2 votes
1 answer
1k views

IQAudio DAC+ appears to be installed, but does not play audio. How to debug?

I recently installed an AudioIQ DAC+ device on my RPi3b+ running buster. Following the directions in the user guide, I was able to get to the point that the drivers are loaded and appear to run, but ...
PaulProgrammer's user avatar
1 vote
0 answers
130 views

Dupe output to multiple cards

I am following the https://alsa.opensrc.org/Asoundrc Dupe output to multiple cards example on 2 stereo usb sound cards. I changed things slightly but basically its the same as the above and 1 card ...
Stuart Naylor's user avatar
1 vote
0 answers
69 views

How to play through bluetooth speakers with RPi renderer on lan and openhome/linn android phone control point

Using RPi3b and clean installation of RaspberryPi OS Lite and connecting to network using lan. Media is stored on NAS and served to lan by minimserver. I have installed upmpdcli and mpd on RPi and ...
Budgie's user avatar
  • 11
1 vote
0 answers
102 views

How to change alsa sound output name

Alsa volume controller of spotifyd uses 'Master' for output and does not work on a PI. Checking alsamixer I saw that the output is called headphone. How can I change this value?
ManuelSchneid3r's user avatar
0 votes
0 answers
590 views

how do I set the recording volume using alsa

Is there a guide somewhere on how to use the pi sound system? It would be good to have something definitive as there is lots of stuff out there that contradicts, and it is not like I want to do ...
Petr's user avatar
  • 117
0 votes
0 answers
2k views

How to set default ALSA input/output in pusleaudio on LibreELEC?

I'm using Raspberry Pi 3 Model B as LibreElec for Kodi. My Pi is connect on TV on HDMI. In kodi, when I select audio outputs HDMI or Jack it play sound well. But when I select Pulseaudio, it don't ...
Quentin Lesauce's user avatar
1 vote
1 answer
320 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 ...
Yihan Hu's user avatar
1 vote
0 answers
104 views

Respeaker 4 install on Pi 3b and buster

I have just bought a respeaker 4 and successfully installed it by the looks of things - I have respeaker under the audio icon input tag. It is the classic rubbish install process with the script just ...
Petr's user avatar
  • 117
0 votes
0 answers
226 views

No sound with Jitsi Meet and ALSA

For a project I'm using a Raspberry Pi with ALSA. ALSA is configured and speaker-test provides me audio output. However, when I open Jitsi Meet in Chromium, there is no sound. When I open YouTube in ...
user4992124's user avatar
1 vote
1 answer
159 views

Scratchy audio with certain wav files

I'm using a Raspberry Pi 4 with an Adafruit I2S Stereo speaker bonnet. I've run their setup script and rebooted many times. I can play sample mp3 files just fine. They usually sound great. (I've had ...
Cameron Tacklind's user avatar
1 vote
1 answer
456 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 ...
David Goddard's user avatar

1
2 3 4 5