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

using php_exec command to play audio on the Pi - no audio group

I'm trying to have a php script play an audio file when run shell_exec('aplay /home/andrew/www/audio/meeting-bell/medium-bell.wav') It works when I run it from the command line, but not when running ...
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
1answer
588 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 ...
2
votes
1answer
903 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 ...
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 ...
0
votes
1answer
617 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
3k views

How to make PocketSphinx use ALSA? (instead of pulseaudio or jack)

I've been struggling to make pocketsphinx work with the audio system of my raspberry pi. As stated in pocketsphinx's website, one of the steps to build it for a raspberry pi is to execute this: ./...
0
votes
2answers
747 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
0answers
278 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 ...