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
0
votes
1answer
105 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
0answers
463 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
451 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
596 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-...
0
votes
1answer
671 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 ...
10
votes
1answer
29k 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 ...
1
vote
0answers
202 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 { ...
4
votes
1answer
833 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 ...
0
votes
1answer
559 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
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
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 ...
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 ...
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
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
23 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
827 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 ...
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 #...
2
votes
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 ...
3
votes
0answers
1k 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 ...
2
votes
0answers
561 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 ...
1
vote
0answers
2k 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
566 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 ...
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
0answers
475 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 ...
2
votes
1answer
848 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 ...
1
vote
0answers
149 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 ...
0
votes
0answers
304 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 ...
1
vote
1answer
653 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 ...
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
0answers
793 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 ...
0
votes
1answer
471 views

Raspberry pi does not show up in bubbleupnp

After following this post - http://blog.scphillips.com/posts/2013/07/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-revisited/ Raspberry pi would not show up in the bubbleupnp rendered list. ...
2
votes
0answers
706 views

Bluetooth audio without pulse?

Is there any way I can connect to my Bluetooth headphones and listen to audio without using pulseaudio? I also can't use a GUI because reasons. Also, I'm on Raspbian Jessie minimal.
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 ...
0
votes
1answer
1k views

aplay finds no sound cards despite dtparam=audio=on

I broke my boot partition and had to rebuild it. Both cmdline and config.txt are gone and I had to start over. The rest of the system is untouched. Unfortunately, I forgot how they were configured and ...
20
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 ...
3
votes
1answer
83 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 ...
0
votes
1answer
3k views

Can't start jackd

I realize there are many threads about not being able to start jackd, but none of the solutions provided have been able to cure my issue. pi@raspberrypi / $ jackd -v -d alsa jackdmp 1.9.9 Copyright ...
1
vote
2answers
796 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
1answer
1k views

Alsa setup for multiple cards

I have connected Logitech C310 webcam on USB port and my speaker audio jack to the on board audio jack on my Rpi2. Now i want my alsa to use usb webcam to record audio and play the sound through ...
0
votes
2answers
1k views

Record two mics via pyaudio

I would like to record sound from 2 mic via the python modul pyaudio. The problem is that pyaudio only get the systemdefault pcm. There I could only record sound from one mic. My alsa.conf looks like:...
5
votes
2answers
3k 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, ...
0
votes
1answer
400 views

Sound not working anymore after first use of GPIO

On a Raspberry Pi 3 with as of today latest firmware and raspbian, I have e.g. espeak "hi" or aplay some.wav working after booting into a small loudspeaker plugged into the jack (this is headless, no ...
1
vote
1answer
678 views

Command to find source files for apt-get install locations - specifically libasound2-dev

Just downloaded and installed the libasound2-dev package using apt-get install My gcc compile command now references alsa/asound.h correctly But I just want to have a look at all the source files ...
0
votes
1answer
513 views

How to change audio levels of sound card with same control names

I'm trying to write a script that automatically changes the playback/capture audio levels based on the device that is connected. I'm using a MAYA44 USB+ sound with 4 ch in/out. Thanks to a similar ...
2
votes
0answers
575 views

How to Set Up Driver Support for I2S Audio Codec

I am building a I2S audio codec using an ADAU1781 chip, which will communicate with the Pi via the GPIO pins. In my research I have found that there is an ASoC driver built into the Raspberry Pi ...
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
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 ...
1
vote
0answers
4k views

ALSA channels count error while using simpleaudio with USB DAC

Here is the code: wave_obj = sa.WaveObject.from_wave_file("sounds/2c.wav") wave_obj.play() And this is the error I get: ALSA lib pcm.c:7924:(snd_pcm_set_params) Channels count (1) not available for ...
1
vote
1answer
511 views

Set external usb mixer as default

I'm trying to set my Logitech C-170 as a default mixer. I followed this guide: Unable to set default input and output audio device on Raspberry jessie but it didn't help me. My webcam is recognized by ...
1
vote
1answer
762 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 -...