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
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 ...
14
votes
1answer
29k 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 ...
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 ...
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 ...
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/...
8
votes
4answers
5k 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 (...
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 ...
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 ...
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 ...
6
votes
1answer
746 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 ~/...
5
votes
2answers
1k views

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 ...
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, ...
4
votes
1answer
12k views

How to get alsa-lib on raspbian?

Apt-get is unable to get it, although I see that there is libasound2 installed, which is the same thing. I am trying to compile vlc from source, and it requires alsa-lib. Perhaps I could somehow use ...
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 #...
4
votes
6answers
9k 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 ...
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 ...
4
votes
2answers
5k views

No Audio Output on 3.5mm Jack

I have a Raspberry Pi B running Arch ARM. I have setup NFS with my media server. I'm trying to stream music from it and play it with mdp through ncmpcpp (with alsamixer). I have tried turning up the ...
4
votes
2answers
2k views

HDMI audio on Raspberry pi 3 b not working

I've already seen Audio over HDMI not working on Pi 3 (audio not working though HDMI, but working though speakers) but the actions described by @Vader did not work for me. The fact is that it ...
4
votes
1answer
794 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 ...
4
votes
1answer
5k views

MIDI keyboard latency with fluidsynth

I set up my MIDI keyboard with fluidsynth on raspbian, mostly according to this how to. It all works fine, but I've got a ~1 second latency. Does anybody know how to fix this issue? RPi model: B ...
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 ...
3
votes
3answers
2k views

Pygame and Alsa lib error

I am running a pygame window on a raspberry pi. The raspberry pi is connected to an lcd through gpio (not hdmi). My pygame script does not contain any mention of audio, only some basic rectangle ...
3
votes
1answer
5k views

How to stream sound to a bluetooth device from a raspberry pi zero

I have a raspberry pi zero W and I would like to stream sound over bluetooth to a bluetooth-enabled speaker / headphone. So how to achieve this with alsa?
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 ...
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 ...
3
votes
1answer
5k views

ALSA volume lower after reboot

My ALSA sound volume gets mysteriously reset every time I do a reboot. I set the default ALSA volume to 100% with amixer cset numid=3 100%. Then I do a reboot and check my amixer volume again and ...
3
votes
0answers
78 views

Microphone is not recording with HifiBerry and Raspberry Pi 3

I installed the HifiBerry driver as specified. The Board is recognized and the audio output works fine. Just the audio input seems to be not working. I checked if the microphone is muted but I can't ...
3
votes
0answers
376 views

Raspberry Pi Zero W Alexa Microphone Not detecting, but speaker works

So I have looked online and I even got different mics and adapters to get this working, but it still doesn't work. I was able to successfully setup my Alexa Pi on the RPi Zero W, because when I boot ...
3
votes
0answers
995 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 ...
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
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 ...
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
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 ...
2
votes
1answer
556 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 ...
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
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 ...
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("...
2
votes
1answer
240 views

How can I direct the output both of mpg123, and of eSpeak to the same ALSA sound device?

I'm currently struggling with the following scenario: I'd like to make my Raspi (3B) play a short MP3 jingle and then, after a 250 µsec pause, speak a short text by using an add-on sound card (...
2
votes
2answers
813 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
4k 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 ...
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: ...
2
votes
1answer
778 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 ...
2
votes
1answer
913 views

Constant Stream of Distortion/Noise from 3.5mm Jack

I've been trying to set up audio playback on my Pi model B (running Raspbian, fully updated at the time of this posting), but I'm having issues with overpowering distortion. In the broader scheme I'm ...
2
votes
2answers
2k views

USB external sound card and Minimodem Software

I am trying to configure the Raspberry pi in order to work with the Minimodem software, which is software modem that uses FSK modulation and demodulation to transmit information over audio signals. I ...
2
votes
1answer
99 views

Pi menu bar flashes then disappears - due to ALSA config

I have built a new image on a RPi3B+ with Noobs using the latest Raspbian which I believe is named Buster. I uninstalled libreoffice (for space) and have installed various python libraries and the ...
2
votes
0answers
67 views

How do I capture and stream HDMI audio out to LAN

I have a RPi that is running videos with omxplayer and outputting to my tv. HDMI video and audio out work just fine, but I would additionally like to stream only the audio to my network (via RTP or ...
2
votes
0answers
72 views

USB audio device is displayed as default, but is not

I have set the USB device on my Raspberry Pi to default. The file /lib/modprobe.d/aliases.conf: options snd-pcsp index=-2 options snd-usb-audio index=0 options cx88_alsa index=-2 options snd-atiixp-...
2
votes
1answer
178 views

USB Soundcard shows mic as Playback device in alsamixer

I have some trouble with my USB sound card 68878 from goobay. Alsamixer showing unexpected devices Secondly when I use alsamixer displaying Playback items. I see both a Speaker and a Mic: For ...
2
votes
1answer
507 views

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, ...