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
517 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 ...
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 ....
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 ...
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 ...
10
votes
5answers
13k 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 ...
0
votes
0answers
1k views

How to Build a Vu meter with LEDs?

The following code is a python code for a Vu meter with Raspberry Pi import alsaaudio as alsa import time import audioop import math import RPi.GPIO as GPIO import time def ON(pin): GPIO.output(...
1
vote
1answer
5k views

FFMPEG: Unknown input format: 'alsa'

I have a Raspberry Pi 3 and I keep trying to install FFMPEG, but whenever I try to record audio through my USB webcam's mic with sudo ffmpeg -f alsa -i hw:1 -t 30 out.wav I get the following error: ...
0
votes
1answer
23 views

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

No sound when PulseAudio is running

I have a Raspberry Pi 2 running the latest Raspbian jessie. I have sound working just fine via ALSA and analog out. Recently I installed pulseaudio and have found if pulseaudio is running I no longer ...
4
votes
1answer
2k views

Difference between “hwplug” and “hw”

This is aplay -l output from Raspberry Pi: **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #...
1
vote
0answers
3k views

No display with “dtparam=audio=on”

This is my /boot/config.txt: http://termbin.com/0pq4 (1600x900 screen with HDMI to VGA adapter, turned vertical): # For more options and information see # http://rpf.io/configtxtreadme # Some ...
3
votes
0answers
997 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
533 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 ...
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. ...
1
vote
0answers
526 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 ...
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 ...
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 ...
1
vote
0answers
456 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 ...
2
votes
1answer
783 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
0answers
141 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 ...
0
votes
0answers
283 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 ...
1
vote
1answer
613 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 ...
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
741 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 ...
0
votes
1answer
432 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. ...
2
votes
0answers
690 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.
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 ...
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 ...
19
votes
2answers
32k 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 ...
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 ...
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 ...
0
votes
2answers
759 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 ...
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:...
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
388 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 ...
1
vote
1answer
651 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
495 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
561 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
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 ...
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 ...
1
vote
1answer
505 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 ...
1
vote
1answer
748 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 -...
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 ...
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 ...
2
votes
4answers
2k views

Controlling a servo and playing sounds

I've got a serious problem about Pi. It is - I can play sound just fine with a python script either with: import pygame pygame.mixer.init() pygame.mixer.Sound("...").play() or: import os os.system("...
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/...
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 ...