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
12
votes
1answer
24k views

How can I use an external USB sound-card and set it as default?

I've got an external USB sound-card from C-Media running on my RPi3. I can play some recordings using aplay/arecord by specifying the card index and ALSA plugin. However, many other sound files does ...
0
votes
1answer
543 views

OMXplayer play video with no sound and mp3 at 2/4 times the speed

Using a USB sound card, I'm trying to play mp3 files, with the default omxplayer. But although all other software works fine, omxplayer play my mp3 files at 2x speed, sometimes even 4 times. Is ...
1
vote
1answer
3k 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 ...
1
vote
1answer
182 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; ...
0
votes
1answer
1k views

Use internal sound card speaker and USB MIC as default

Problem I'm using UV4L for audio/video streaming. I'm using 3.5mm speaker, and usb microphone UV4L uses default audio/video device for streaming, but only audio work. USB MIC doesn't work. But ...
1
vote
1answer
566 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 ...
1
vote
0answers
487 views

Python Speech Recognition not detecting audio in script - Audio is detected in audacity and bash

I am trying to get python speech recognition (PSR) for a basic Pi project. I am using: OS: PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)"...
2
votes
2answers
689 views

Full duplex audio over i2s (Adafruit MEMS + DAC)

I have setup a pi-zero with digital mems mics from Adafruit, and also the digital DAC. I can use arecord to record stereo audio, and then aplay to playback the audio over the DAC. Interestingly, the ...
2
votes
1answer
3k views

Software audio mixer

I need to be able to simultaneously play several files on my headless Raspberry Pi and dynamically changing their volumes, preferably with Python. I managed to get it to work with the swmixer Python ...
0
votes
1answer
88 views

View Twitch stream on rPi, but with sending the stream audio to Windows?

What: I want to display a Twitch video stream locally (on the rPi, over HDMI) but send the audio to a desktop on the same network. Why: To free up video resources for other things (gaming, bitcoin ...
1
vote
1answer
270 views

USB speaker … ALSA error “rate doesn't match”

I've connected a USB speaker to my Raspberry Pi Zero, and modified /boot/config.txt to set dtparam=audio=off. Running speaker-test now sends test audio to the speaker. But, when I attempt to run a ...
1
vote
0answers
399 views

Pulseaudio unkown PCM pulse

Using IceS for Icecast when I try to record from "pulse" device I get this error when I start IceS: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM pulse And the program quits. Here is my ....
2
votes
0answers
391 views

Cannot open hw:0,0 default audio device

Hello I am trying to setup icecast streaming server. Previously I used Loopback devices and it worked fine. But Loopback devices does not have a mixer so I cant play two things at once is you see ...
0
votes
1answer
585 views

How do I get my I2S microphone on a Pi zero W working again after running rpi-update?

I have an I2S breakout microphone from adafruit which I got working last week. However due to problems with my pi camera I ran rpi-update, and following this my microphone is not working. I ...
0
votes
1answer
511 views

How can I play some MP3 or OGG file on the JustBoom DAC HAT?

I recently installed a JustBoom DAC HAT on my Raspberry Pi 3, but I can't make it play a sound by using ALSA or PulseAudio. alsamixer lets me configure the HAT, apparently without problems, but test-...
1
vote
0answers
150 views

Unable to create a ALSA “multi” device from two USB sound cards

I'm trying to create one virtual 4 channel audio device in ALSA from two USB sound cards, using this tutorial: https://alsa.opensrc.org/TwoCardsAsOne My asound.conf looks like this: pcm.multi { ...
7
votes
4answers
4k 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 (...
0
votes
1answer
1k views

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

Configure ALSA Sound card

I have 2 playback device where one is HDMI and the other is HAT sound card. The requirement is to play audio from card 0 or 1 without rebooting the system. aplay -l **** List of PLAYBACK Hardware ...
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
20 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 ...
1
vote
0answers
668 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 ...
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,...
2
votes
1answer
556 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
2answers
3k views

Linux ALSA one sound card for input one sound card for output

I have a raspberry pi 3 model B+ with raspbian jessy lite from July. cat /proc/asound/version Advanced Linux Sound Architecture Driver Version k4.4.50-v7+. I have a USB soundcard that has two 3.5 ...
3
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 ...
0
votes
1answer
189 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
943 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 ...
1
vote
0answers
496 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
2k 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
424 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
1k 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
474 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
403 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
448 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
6k 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
513 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
129 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
5k 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
265 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
236 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
560 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
459 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
684 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 ...
2
votes
1answer
35 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
638 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 ...