We’re rewarding the question askers & reputations are being recalculated! Read more.

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
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 ...
0
votes
1answer
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
521 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
2answers
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
420 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. ...
0
votes
1answer
3k 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
6k 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
996 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
754 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 ...
0
votes
2answers
749 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
8k 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
2k 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
380 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
642 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
489 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
553 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
81 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
3k 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
13k 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
682 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.
2
votes
2answers
5k views

Set up C-media USB soundcard for microphone input on Raspberry Pi 2 with Raspbian Jessie

I would like to use Amazon Alexa or Steven Hicksons Voicecommander (uses Google) on my Pi to automate some tasks by voice command, but I am having trouble getting the microphone to work in the first ...
1
vote
1answer
500 views

Set external usb mixer as default

I'm trying to set my Logitech C-170 as a default mixer. I followed this guide: Unable to set default input and output audio device on Raspberry jessie but it didn't help me. My webcam is recognized by ...
6
votes
1answer
3k 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 ...
3
votes
2answers
1k views

What's the difference between aplay -l and aplay -L?

I'm trying to configure my Raspberry Pi (model B) to work as an AirPlay to Bluetooth bridge of sorts. I'm using Shairport-Sync to receive the AirPlay audio successfully, and can get it to output via ...
1
vote
3answers
24k views

arecord: main:722: audio open error: No such file or directory

I am trying to install Jasper (Jasper is an open source platform for developing always-on, voice-controlled applications) on Raspberry Pi 2 (Jessie). I have a mic to give the commands, but it does not ...
19
votes
2answers
31k views

How do I configure my sound for Jasper on Raspbian Jessie?

I'm using Raspbian Jessie (2015-11-21) to run Jasper (master branch) on the Raspberry Pi 2 Model B. The installation instructions in the documentation seem to be for Wheezy and not Jessie. Running ...
2
votes
1answer
546 views

pigpio PWM and ALSA

My Qt ( C++ ) application successfully dims the screen using the pigpio library on my Raspberry Pi compute module. It works great and is very stable using the code below. The problem, is that my ...
4
votes
1answer
781 views

Getting Frequency of an audio file per second in Raspberry Pi

import wave,struct,math waveFile = wave.open("/home/pi/xmas/yolo2.wav", "rb") frames = waveFile.getnframes() rate = waveFile.getframerate() length = frames / int(rate) I used this to get the audio ...
8
votes
1answer
28k views

alsa-base conf file missing

I have a USB sound card for my pi b+ which I want to setup as my default sound device and all the tutorials for setting up involve editing the alsa-base.conf file in /etc/modeprobe.d, but I don't seem ...
4
votes
1answer
2k views

How to reorder the index for mic on new Raspbian Jessie for PocketSphinx?

I am attaching a mic to my Raspberry Pi 2 Model B (Jessie) and using it for my PocketSphinx implementation. I see this in the system: $cat /proc/asound/cards ...
10
votes
5answers
12k views

3.5 mm jack starts to “hiss” after sound is played

I'm having the following issues with my amp on the Raspberry Pi 2, Model B. Boot up the Pi, everything sounds great. Play a sound byte through the Pi (using ALSA) Speakers hiss regardless of PCM ...
3
votes
0answers
3k views

Jack server not working on Raspbian

I wrote a little python app (using PyDub), that plays sound files. Everytime I run it, I get the these errors: ALSA lib pulse.c:243(pulse_connect) PulseAudio: Unable to connect: Connection refused ...
8
votes
1answer
50k views

Best way to setup USB mic as system default on Raspbian Jessie [duplicate]

I am trying to setup Jasper on my RPi 2 B by following these instructions http://jasperproject.github.io/documentation/installation/#configure-raspbian and just figured out that there's no /etc/...
6
votes
1answer
15k views

Change Volume via single command?

I need to change my volume on my USB sound card (which is the default card) via the command line. I know alsamixer will do that but I need it to be a one line command so I can use it in a python ...
1
vote
1answer
663 views

redirect input audio to output with USB sound card

I am using rpi for airplay with same speaker that I use for my pc. So I don't want to deal with cables everytime when I pass to rpi from pc. Can I connect audio output of pc to input of rpi and get ...
1
vote
1answer
744 views

Working cvlc A/V stream

I am able to get audio or video, but not both (I am relatively unfamiliar with the 5k lines of VLC options). /usr/bin/nohup /opt/vc/bin/raspivid -mm matrix -br 60 -co 10 --nopreview -qp 30 -b 200000 -...
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/...
0
votes
0answers
2k views

Does this show PyAudio is unusable with RaspberryPi's built-in audio?

When using PyAudio with the RaspberryPi's built-in audio snd_bcm2835, we get this strange behaviour: python test.py # ... after 10 or 15 seconds the sound is stuttering! This problem doesn'...
1
vote
0answers
1k views

Raspberry Pi USB Soundcard - Outputting from multiple programs

On the raspberry pi, using the internal sound card by default you can output audio from multiple programs simultaneously and it mixes them together. Since switching to a USB soundcard (merely by ...
1
vote
0answers
508 views

avconv version 9.14 streaming video (using UV4L driver RaspiCam) and video (using ALSA) to ustream, no audio

I'm using avconv to read from /dev/video0 (which is attached to my RPi camera via UV4L) and also reading audio from my microphone using ALSA and stream it live on ustream.tv. It works just fine to ...