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
1
vote
1answer
70 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 ...
1
vote
1answer
5k 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
1answer
47 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 ...
0
votes
0answers
13 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 ...
1
vote
0answers
15 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 ...
0
votes
0answers
24 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 ...
0
votes
1answer
308 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 ...
1
vote
1answer
30 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 ...
0
votes
1answer
465 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
1answer
478 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
1answer
28 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 ...
2
votes
1answer
749 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
1answer
17 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 ...
2
votes
1answer
371 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
1answer
131 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 ...
2
votes
1answer
952 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
1answer
852 views

Text to speech errors

I try to make a python script for Raspberry Pi 3 B+ with Raspbian to speak text I input. I use pyttsx3 library but I also tried espeak from command line. Every time, the sound is very laggy, it start ...
1
vote
1answer
2k views

using php_exec command to play audio on the Pi - no audio group

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 ...
2
votes
2answers
1k 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 ...
0
votes
0answers
84 views

USB Voice recognition with python pyttsx3 and pyaudio

i found a lot of this error in the net, but no solution... is there really no solution ? i got a Raspberry Pi 4 Mini USB Microphone pi@raspberrypi:~/voice $ arecord -l **** Liste der Hardware-Geräte ...
0
votes
0answers
63 views

Bluetooth speaker connected but no audio, AV earphone no audio (only VLC is good), HDMI working propedly

My Bluetooth speaker device (JBL Charge 4) connected, but no audio. The /etc/dbus-1/system.d/bluetooth.conf edited. I change the "default" context policy from "deny" to "allow&...
3
votes
2answers
12k views

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

I have a raspberry pi zero W and I would like to stream sound over bluetooth to a bluetooth-enabled speaker / headphone. So how to achieve this with alsa?
0
votes
0answers
79 views

Using USB webcam with integrated audio at the same time

I am trying to use a usb webcam for video and microphone at the same time on my raspberry pi4, on buster. I just set the system up from scratch and am ready to do that again, if it helps with trouble ...
0
votes
0answers
26 views

Shoddy and horrible audio performance and support on Raspbian Lite

My audio on the Raspberry Pi 1 (Yes, I have an original model) on my Raspbian 10 Lite installation works, but only barely. Allow me to explain. I picked Raspbian 10 because I wanted to set up my own ...
9
votes
5answers
6k 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 (...
1
vote
0answers
38 views

Play audio on two sound cards at the same time

I currently try to setup my raspberry pi 3 with a HiFiBerry DAC+ Pro XLR (using Raspian based on Debian 10). I installed the sound card and configured alsa to use device 1 as new default. Restarted ...
0
votes
0answers
41 views

Connect and use Bluetooth headset

I am on a Raspberry Pi 2 Model B with Raspbian buster and have issues using my Bluetooth headset. I tried to use some of the several available HowTos. Best working for me are the HowTos using bluealsa....
2
votes
1answer
2k views

ALSA input error (snd_pcm_open): No such file or directory - Problem with running Pd with ALSA

I am pretty new to Raspberry Pi, so sorry if I might be not clear on something. I am trying to set the Raspberry Pi 3 to work running a Pure Data patch while communicating with two Arduino UNO, and ...
0
votes
0answers
57 views

Multi-channel Audio Recording with asoundrc - sudo sound card not appearing

I'm trying to find a way to record audio from 4 separate sound cards at once, using a raspberry pi running with rapbian. From what I've read it should be really straight forward so I'm not sure what I'...
0
votes
0answers
53 views

Route Audio from SPDIF Input to 5.1 USB Soundcard (raspbian)

So I'm very new to audio stuff, but my setup is the following: Any HDMI device --(via HDMI)--> TV --(via SPDIF)--> USB Sound Card (input) --> RaspberryPi --> USB Sound Card (3x3.5mm Audio Jack (Front,...
1
vote
0answers
106 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 ...
2
votes
1answer
746 views

Issues accessing a microphone from Node on Pi Zero

I am having issues using a microphone in a Node script. The microphone (a SEEED Array mic) works when running the command line: arecord -D plughw:1 --duration=10 -f cd -vv ~/rectest.wav It does not ...
0
votes
0answers
111 views

Cannot increase gain on USB Microphone

I got myself one of those cheap USB microphones and it basically works out of the box with arecord, it's just way too quiet. The level on the virtual UV meter never passes 1%. Here's what I got, ...
2
votes
0answers
302 views

ALSA errors on raspberry pi 4

So i'm trying to make a virtual assistant on a raspberry pi 4. I have coded the bot to work on my windows machine but now I'm running into errors while using the raspberry pi I figured out which part ...
0
votes
1answer
1k views

Audio cracking with VLC and Bluetooth, but works with aplay

I'm trying to set up my Pi (v2) as a WiFi Hotspot and a Bluetooth Audio Module for my car. The WiFi Hotspot works so far, but the sound over Bluetooth and VLC is only cracking. When i use "aplay /usr/...
1
vote
0answers
3k views

ALSA Errors on Pi 3B+ using SpeechRecognition and PyAudio (Original Post missing stuff)

Using PyAudio I simply ran this piece of code: import pyaudio p = pyaudio.PyAudio() for x in range(p.get_device_count()): print(p.get_device_info_by_index(x).get('name')) Getting these Errors: ...
0
votes
1answer
1k views

IOError: [Errno -9981] Input overflowed

I'm getting an input overflow error using pyaudio with sample rate of 16000 and frame per buffer of 1024. I'm also using a USB microphone and a raspberry pi 3 (raspbian). I'm using pyaudio for ...
2
votes
0answers
52 views

Real Time audio recording from two audio input and playing simultaneously in 2 audio output

I have one Raspberry Pi with 2 USB speakers and a mic system. I want to record simultaneously from one mic and play in another speaker. Like, MicA recording will be played in SpeakerB and MicB ...
1
vote
0answers
40 views

Change Default Microphone

I am having trouble changing my default mic on raspbian buster lite (kernel 4.19.36 on the 3B+). I know that the mic is fully functional because when I run: arecord -D plughw:1,0 --duration=3 test.wav ...
0
votes
0answers
40 views

Suppress Midi CC Messages during midi merge on RPI USB Midi Host

I have followed the instructions here to create a RPI to act as a usb midi host: https://neuma.studio/rpi-as-midi-host.html Its great and works nicely however I would like to suppress Midi CC message ...
1
vote
0answers
124 views

Route native Alsa app audio to bluetooth speaker with Pulseaudio?

I have an app that only supports Alsa, and I want to route its audio to a Bluetooth speaker. I'm attempting to use Pulseaudio to do it if that is possible. The Bluetooth speaker is paired and I can ...
0
votes
0answers
40 views

Can't user alsaequalizer in KODI

I have OSMC (KODI) on RPI 3. I managed to use alsa equalizer with command: aplay /usr/share/sounds/alsa/Front_Center.wav My asound.conf file: pcm.!default { type plug slave.pcm plugequal; } ...
1
vote
0answers
72 views

Getting gstreamer to produce out of usb-audio

I cannot get gstreamer on raspbian (buster) to play through a usb-audio device, despite other players (vlc, aplay) being able to do so. but i need gstreamer because of its API access, for mpd players ...
3
votes
1answer
41 views

Internal soundcard sometimes card 0 and sometimes card 2 with 2 usb mics

I can't get a consistent setting for my internal soundcard. BCM2835 is sometimes card 2 and then I'll reboot and it'll be card 0. Driving me nuts, hard to set the default when it's jumping around. Is ...
1
vote
2answers
4k views

This sound device does not have any capture controls

I have a USB microphone. $ arecord -l **** List of CAPTURE Hardware Devices **** card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 ...
0
votes
1answer
3k views

arecord throw Input/Output error

When trying to run the following command, I am getting Input/Output error pi@raspberrypi:~ $ sudo arecord -Dhw:1,0 -d 10 -f cd -t wav test.wav Recording WAVE 'test.wav' : Signed 16 bit Little Endian,...
2
votes
2answers
247 views

Pi menu bar flashes then disappears - due to ALSA config

I have built a new image on a RPi3B+ with Noobs using the latest Raspbian which I believe is named Buster. I uninstalled libreoffice (for space) and have installed various python libraries and the ...
4
votes
3answers
2k views

OSMC does not list ALSA output when equalizer plugin configured

I have Raspberry PI 3 with HifiBerry running with OSMC: $ cat /proc/version Linux version 4.4.27-5-osmc (root@vero2a) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP PREEMPT Tue Nov 22 02:23:12 UTC ...
0
votes
0answers
550 views

raspotify / librespot won't output audio with my ALSA config

I am trying to get the sound from librespot to my Amiga via A314 (raspberry pi expansion card for Amiga) without any success. At the moment I can play audio with mpg123 on my Amiga by using a custom ...
1
vote
1answer
345 views

How do I configure the alsa driver in out123?

I'd like to play MP3 files on my Raspi 3B by using mpg123, so I added (among others) the following lines of code into my app: r = mpg123_init (); if (r != MPG123_OK) { ret -= r; ...