Questions tagged [alsa]
For questions pertaining to ALSA, the Linux sound subsystem. ALSA sits below advanced systems like PulseAudio.
27
questions
24
votes
1
answer
50k
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 ...
7
votes
2
answers
23k
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?
21
votes
2
answers
35k
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
1
answer
52k
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
2
answers
7k
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
1
answer
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
6
answers
14k
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 ...
6
votes
1
answer
4k
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
1
answer
8k
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
2
answers
9k
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
2
answers
5k
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 ...
12
votes
1
answer
37k
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 ...
10
votes
5
answers
14k
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 ...
9
votes
5
answers
8k
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 (...
4
votes
1
answer
1k
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 ...
4
votes
4
answers
36k
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 ...
2
votes
0
answers
432
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
1
answer
766
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
1
answer
1k
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
1
answer
15k
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
3
answers
6k
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
2
answers
1k
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 ...
1
vote
1
answer
2k
views
using php_exec command to play audio on the Pi - no audio group [closed]
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 ...
0
votes
0
answers
2k
views
How to set default ALSA input/output in pusleaudio on LibreELEC?
I'm using Raspberry Pi 3 Model B as LibreElec for Kodi. My Pi is connect on TV on HDMI. In kodi, when I select audio outputs HDMI or Jack it play sound well. But when I select Pulseaudio, it don't ...
0
votes
1
answer
4k
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
1
answer
1k
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
0
answers
360
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 ...