Questions tagged [alsa]

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

Advanced Linux Sound Architecture is a Linux kernel component that provides an application programming interface (API) for sound card device drivers.

226 questions
6
votes
3 answers

Pi 3 B+ no audio device found

I have been trying to use Alexa on my Raspberry Pi 3 B+ (running Stretch). I ran Alexa successfully, with a USB microphone and a speaker connected through the 3.5mm jack, about a week ago and went on to make a python program that does not in any way…
Yuxi L
  • 63
  • 1
  • 1
  • 4
3
votes
1 answer

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 that differ from these, eg set type plug, then…
NateS
  • 139
  • 4
3
votes
0 answers

Raspberry Pi / PS Eye - Cannot Load Mixer Controls: Invalid Argument

I want to record with a PS Eye (USB Camera-B4.09.24.1) for an DIY Amazon Echo with Raspberry Pi 2b. When I attempt this in alsamixer, it exits with the following error when I use F6 to change to the PS Eye soundcard: cannot load mixer controls:…
Ash
  • 31
  • 3
3
votes
1 answer

Sizzle instead of sound when recording with ALSA

I'm working a lot with ALSA and I don't know what I did wrong but when I record with: arecord --channels=1 --duration=5 --format=dat --vumeter=stereo test.wav ...and play it back I only get some noise, whereas it worked before. So I reset ALSA…
Greg Tom
  • 31
  • 1
2
votes
2 answers

Setting up config for alsa at /etc/asound.conf

I have the following set-up with 3 USB audio devices - one for the output, the other is an input from my record player which I put on module-loopback, and the final one is a PS3 eye that I am trying to use as my default audio capture device for…
Letshin
  • 121
  • 1
  • 1
  • 3
2
votes
1 answer

arecord / aplay stop after a while

I am looping the "PCM audio in" to the "PCM audio out" on a Sound Blaster USB card using the following command: arecord -q -f S16_LE -r 48000 -c 2 -D dsnoop:HD | aplay -q -D plughw:HD It works fine, but only for about three hours. The command is in…
2
votes
0 answers

ALSA channels count error while using simpleaudio with USB DAC

Here is the code: wave_obj = sa.WaveObject.from_wave_file("sounds/2c.wav") wave_obj.play() And this is the error I get: ALSA lib pcm.c:7924:(snd_pcm_set_params) Channels count (1) not available for PLAYBACK: Invalid argument Traceback (most recent…
Seph Reed
  • 311
  • 1
  • 6
  • 17
2
votes
0 answers

alsa cannot read control invalid argument

I am trying to record audio with the PS Eye on a raspberry pi model b plus (I have tried with older b models and the same issue occurs as below). I am able to record, and playback the recording with arecord/aplay so the mic is working. However, I…
RBI
  • 121
  • 3
1
vote
1 answer

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; cout << "Error initializing MP3 player." << endl; …
Neppomuk
  • 452
  • 4
  • 16
0
votes
1 answer

Why does out123_open () shut down my sound card?

I'm talking about this function call: r = out123_open (sound::mp3_output_handle, "alsa", NULL); The return value of r is then OUT123_OK, but in the same moment, the status LED on my sound card (JustBoom DAC HAT) is switched off, and the card…
Neppomuk
  • 452
  • 4
  • 16
0
votes
1 answer

ALSA + usb microphone issue on rapsberry pi 1 (ARMv6, Raspbian/jessie): lsusb not listed AND Device or resource busy

I am trying to do Alexa on raspberry pi. Before I do that, I need to get my speaker and microphone working. Try to keep it simple, I am trying to avoid pulseaudio and stick with ALSA. So, the speaker is something i plug into the audio jack, and i…
0
votes
1 answer

No audio from mpd via wlan0 after disconnecting eth0

Set-up: Raspbian Jessie Lite 4.9 Model B+ Edimax ew-7811un I'm running an internet radio stream to the built-in audio interface using mpd/mpc. And audio plays just fine as long as the ethernet interface is connected. That ethernet interface is…
SubG
  • 111
  • 1
0
votes
1 answer

Alsa setup for multiple cards

I have connected Logitech C310 webcam on USB port and my speaker audio jack to the on board audio jack on my Rpi2. Now i want my alsa to use usb webcam to record audio and play the sound through speaker using the audio jack. Cards: $rpi2> cat…
0
votes
2 answers

Record two mics via pyaudio

I would like to record sound from 2 mic via the python modul pyaudio. The problem is that pyaudio only get the systemdefault pcm. There I could only record sound from one mic. My alsa.conf looks like: defaults.ctl.card 1 #need to be set 1 to set…
Michael
  • 11
  • 3