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
6
votes
1answer
16k 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 ...
1
vote
1answer
675 views

redirect input audio to output with USB sound card

I am using rpi for airplay with same speaker that I use for my pc. So I don't want to deal with cables everytime when I pass to rpi from pc. Can I connect audio output of pc to input of rpi and get ...
1
vote
1answer
755 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 -...
0
votes
1answer
1k views

Audio cracking with VLC and Bluetooth, but works with aplay

I'm trying to set up my Pi (v2) as a WiFi Hotspot and a Bluetooth Audio Module for my car. The WiFi Hotspot works so far, but the sound over Bluetooth and VLC is only cracking. When i use "aplay /usr/...
0
votes
0answers
2k views

Does this show PyAudio is unusable with RaspberryPi's built-in audio?

When using PyAudio with the RaspberryPi's built-in audio snd_bcm2835, we get this strange behaviour: python test.py # ... after 10 or 15 seconds the sound is stuttering! This problem doesn'...
1
vote
0answers
1k views

Raspberry Pi USB Soundcard - Outputting from multiple programs

On the raspberry pi, using the internal sound card by default you can output audio from multiple programs simultaneously and it mixes them together. Since switching to a USB soundcard (merely by ...
1
vote
0answers
510 views

avconv version 9.14 streaming video (using UV4L driver RaspiCam) and video (using ALSA) to ustream, no audio

I'm using avconv to read from /dev/video0 (which is attached to my RPi camera via UV4L) and also reading audio from my microphone using ALSA and stream it live on ustream.tv. It works just fine to ...
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: ./...
2
votes
1answer
925 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
0answers
1k views

Is there any way to record audio output by using command line?

I'm trying to record the audio output of my pi but i can't find any good solution. I tried to use arecord but it fails because I don't have any input devices. Because of this my idea was to redirect ...
1
vote
1answer
431 views

Why am I getting the warning Hardware is initialized using a generic method in alsa setup?

I am getting the warning in the alsa setup when my raspbain is booting. The error or warning is: Hardware is initialized using a generic method Why am I getting this one? I changed few alsa ...
2
votes
0answers
2k views

alsa cannot read control invalid argument

I am trying to record audio with the PS Eye on a raspberry pi model b plus (I have tried with older b models and the same issue occurs as below). I am able to record, and playback the recording with ...
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
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
0answers
2k views

How to record sound in buffer using ALSA [closed]

I'm begining to learn linux and ALSA and I was wondering if there is a way to store the sound I record from a microphone a directly to the buffer. I read here how to make my recording program. But ...
1
vote
1answer
1k views

Wrong ALSA volume when starting playback

I run into the same problem than exposed in this post: ALSA volume ignored when beginning playback Here is the context: OS: raspbian Kernel 3.10.36+ #665 just updated the firmware with rpi-update ...
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 ...
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 ...
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 ...
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
1answer
13k 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 ...