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
1answer
259 views

How to capture decibels and pitch from microphone?

Instead of capturing the sound coming from the microphone, id just like to ping it every couple of seconds to capture the decibels and pitch as data points.
3
votes
0answers
1k views

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 ...
2
votes
0answers
589 views

Audio hangs on repeated playback

How do I fix hanging audio in Raspbian GNU/Linux 8.0 (jessie)? When I playback audio using, for example, aplay, the first playback works fine. Subsequent playback will hang indefinitely. Several ...
0
votes
2answers
3k views

Alsa volume control without amixer

Is there a way to control Alsa volume through software if I2S Dac (e.g. old Hifiberry) doesn't support software volume control (amixer is empty and if you add mixer it won't affect anything)? While ...
0
votes
1answer
545 views

How to play audio via a USB sound card using libao?

I get the following from aplay -l, lsusb. pi@raspberrypi:~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 ...
1
vote
0answers
2k views

Setting USB Sound Card to default device

I have been using raspberry pi 3 model B. And, I have installed raspbian jessie with pixel. I made work its camera without an error. I have bought USB sound Card. But, I couldn't make it to work. My /...
1
vote
0answers
597 views

How to connect SSM2603 via I2C/I2S?

I'm trying to get the Audio Codec SSM2603 (as input device) to work with a RaspberryPI 3 running Raspbian. Im using a SSM2603-EVALZ. I compiled and installed the most recent kernel with SSM2603 ...
1
vote
1answer
467 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 { ...
1
vote
0answers
498 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
1answer
8k views

Change usb soundcard device sample rate

I have two problems with my usb soundcard. It shows only single input channel (even though it is stereo capable , tested in Windows OS which correctly identifies as stereo ) Shows only supports 48000 ...
0
votes
2answers
608 views

Pocketsphinx not working; Input Overflowed -9981

I am trying to use pocketsphinx in Python using the code given below: #!/usr/bin/python from os import environ, path from pocketsphinx.pocketsphinx import * from sphinxbase.sphinxbase import * ...
1
vote
0answers
157 views

ALSAMIXER - corrupt file

Noob here, just getting set up for using our first rpi, and trying to use a usb webcam to record audio. We bought a starter kit, with Raspbian Jesse. Video works great from the webcam, but when we ...
2
votes
1answer
6k views

Setup output and input audio on different cards

I was trying to prepare my RPi for jasper and plugged the USB mic and the speakers in the 3.5 jack. Trying to configure it I found out that I could only chose that the whole audio IO is going through ...
0
votes
0answers
328 views

PocketSphinx - ALSA IOError: -9997 while trying to Decode Speech

I am trying to use Pocketsphinx for voice recognition. When I was trying to include it in python, using this file: #!/usr/bin/python from os import environ, path from pocketsphinx.pocketsphinx ...
0
votes
1answer
300 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
706 views

amixer sset 'Master' 50% works on terminal but not as os.system command

I'm trying to write a python program on my Raspberry Pi to mute/change the volume of the speaker output as soon as it runs. If I type: amixer sset 'Master' 50% on the terminal, the volume is ...
0
votes
1answer
653 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
0answers
900 views

Loopback to aux out and record audio at the same time from audio in

I am currently developing a device that silences adverts from a streaming radio. Im taking audio input from a radio to a USB sound card.To silence the ads, I have am currently using the arecord ...
3
votes
1answer
40 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 ...
6
votes
1answer
937 views

Arecord->FFMPEG works but FFMPEG w/ ALSA stutters?

I am trying to stream audio from my Pi Zero and my I2s MEMS mic. I would like to stream using FFMPEG and ALSA (which I have already compiled) but I'm running into stuttering issues. FFMPEG + ALSA ~/...
0
votes
2answers
1k views

Error after (trying to) recording usb microphone with alsa record

I'm setting up alexa-pi and everything was going smoothly until the final step which is running a wake word engine. I'm keep getting " 'pcm' failed." error. I've read somewhere that in order to this ...
1
vote
2answers
3k 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 ...
2
votes
2answers
3k views

Error Alsa arecord: set_params:1233:

Does anybody know how to fix this error? Or where I can edit it so it includes the sample format? arecord -d 4 test.wav Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono arecord: ...
0
votes
2answers
1k views

Bad quality with USB sound card

I am trying to get audio input and output with an USB sound card (tested on Windows, works perfectly fine). With help from the Internet, I can record and listen sounds with the card but the quality is ...
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
1answer
1k 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 ...
2
votes
0answers
549 views

LED strip PWM on GPIO18 + mono audio output

On the RPi 3 I would like to control a WS2811 LED strip with PWM (GPIO18) by keeping the audio working. It looks like for the RPi Zero (I'm unsure for RPI 3 though) left and right channels of the ...
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 ...
1
vote
3answers
2k views

Using the ALSA dmix plugin on Raspbian Jessie

I'm trying to setup a loopback device so that I can record the audio as it is being outputted through the audio jack. I've got this working on my desktop PC, running Ubuntu 14.04, with the following ....
0
votes
1answer
544 views

Raspberry pi does not show up in bubbleupnp

After following this post - http://blog.scphillips.com/posts/2013/07/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-revisited/ Raspberry pi would not show up in the bubbleupnp rendered list. ...
1
vote
1answer
4k views

Can't start jackd

I realize there are many threads about not being able to start jackd, but none of the solutions provided have been able to cure my issue. pi@raspberrypi / $ jackd -v -d alsa jackdmp 1.9.9 Copyright ...
2
votes
2answers
7k views

Possible to route audio directly from usb-audio line-in to same usb audio line-out?

I have a Raspberry Pi 3 - and was able to get my ASUS USB audio device to work both with mic/line-in and output to speakers. Right now I can do it it in two steps: arecord will record to a wav file ...
0
votes
1answer
1k views

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

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:...
2
votes
1answer
1k views

Is it possible to use 1 microphone in 2 applications at the same time

I have an AlexaPi running, but I also want a voice activated (and controlled) radio machine. The radio part is sorted, and so is the AlexaPi, but there is a problem. Running them both at ones ...
1
vote
2answers
852 views

MPD hangs on song change

On my RPi 3, whenever I try to change songs with MPD, it hangs such that it's only killable with -9. I'm using the default sound setup and mpd.conf, and the built in 3.5mm jack. I've upgraded to the ...
4
votes
6answers
10k views

my asoundrc is modified every reboot

I have a raspberry pi 3 with usb dac for plug my microphone and I have a usb speacker too. I installed on my pi, mopidy and other litle project. I modified my ~/.asoundsrc for pcm.!default { type ...
5
votes
2answers
3k views

Configuring audio to produce balanced mono output

Is there any way to configure the Pi3's audio jack to automatically produce balanced mono output? i.e. act as a "balanced mono jack" as described here, where the regular sound wave is on one channel, ...
0
votes
1answer
414 views

Sound not working anymore after first use of GPIO

On a Raspberry Pi 3 with as of today latest firmware and raspbian, I have e.g. espeak "hi" or aplay some.wav working after booting into a small loudspeaker plugged into the jack (this is headless, no ...
6
votes
1answer
2k views

Microphone Raspberry Pi 3(Jessie)

I'm trying to connect my USB Microphone to my Raspberry Pi and set it to my default mic. The Mic works with arecord /home/pi/Desktop/a.wav -D sysdefault pi@raspberrypi:/ $ cat /proc/asound/cards ...
1
vote
1answer
702 views

Command to find source files for apt-get install locations - specifically libasound2-dev

Just downloaded and installed the libasound2-dev package using apt-get install My gcc compile command now references alsa/asound.h correctly But I just want to have a look at all the source files ...
0
votes
1answer
554 views

How to change audio levels of sound card with same control names

I'm trying to write a script that automatically changes the playback/capture audio levels based on the device that is connected. I'm using a MAYA44 USB+ sound with 4 ch in/out. Thanks to a similar ...
2
votes
0answers
589 views

How to Set Up Driver Support for I2S Audio Codec

I am building a I2S audio codec using an ADAU1781 chip, which will communicate with the Pi via the GPIO pins. In my research I have found that there is an ASoC driver built into the Raspberry Pi ...
3
votes
0answers
2k views

Arecord not working with USB Microphone anymore

Before I start, I'd like to tell you that I've used arecord in the past with the Raspberry Pi 2 using the same USB Microphone and it has worked just fine. For some reason, it doesn't seem to work ...
3
votes
1answer
83 views

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 ...
3
votes
1answer
2k views

How to create a virtual microphone that reads from a file?

TL;DR: I want to create a virtual mic on my pi to stream wav data to it from a named pipe, so apps that look for input from a mic instead of a file can receive it. Background I'm running ...
2
votes
0answers
1k views

Pulseaudio to ALSA output gets stuck

I've been working on that for a couple of month now, but still don't have a very good solution. My general problem is that my PulseAudio over ALSA audio output is blocked or stuck, I can unblock it ...
1
vote
0answers
4k views

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 ...
2
votes
1answer
14k views

How to configure and select USB Microphone

I have a USB sound card that has an audio out and a microphone in. That sound card works fine - a small microphone records fine and a small speaker plays sound back fine. However, I now have an ...
2
votes
0answers
729 views

Bluetooth audio without pulse?

Is there any way I can connect to my Bluetooth headphones and listen to audio without using pulseaudio? I also can't use a GUI because reasons. Also, I'm on Raspbian Jessie minimal.