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
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 ...
3
votes
0answers
374 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 ...
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 ...
0
votes
1answer
148 views

Pulseaudio module-combine-sink always throws Failure

I am new to pulseaudio. As per my requirement, I need my audio output to be routed to either connected speaker, bluetooth speaker, or both. I am able to play the media file on speaker, or bluetooth ...
2
votes
0answers
522 views

LED strip PWM on GPIO18 + mono audio output

On the RPi 3 I would like to control a WS2811 LED strip with PWM (GPIO18) by keeping the audio working. It looks like for the RPi Zero (I'm unsure for RPI 3 though) left and right channels of the ...
1
vote
0answers
75 views

Is perfectly uninterrupted alsa sound over USB possible?

I am playing a sine wave from a Rpi3 via pure userspace ALSA to the hw device of a USB sound card (using the official PCM example, no sound servers installed). But the wave never stays perfect, after ...
1
vote
1answer
212 views

Roland midi controller not recognized

I was able to use the Pi as a Midi synthesizer for a Midiplus AKM320 controller using fluidsynth and aconnect. Then I got a larger Roland A49 midi keyboard, but am unable to get this to work. It shows ...
1
vote
1answer
3k views

How do I increase the input volume of a microphone connected to pi .Its using the I2S interface

So i have managed to get input from a microphone using I2S interface following this link . https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-and-test if i use the ...
1
vote
0answers
507 views

Python Speech Recognition not detecting audio in script - Audio is detected in audacity and bash

I am trying to get python speech recognition (PSR) for a basic Pi project. I am using: OS: PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)"...
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 ...
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 ...
1
vote
1answer
317 views

USB speaker … ALSA error “rate doesn't match”

I've connected a USB speaker to my Raspberry Pi Zero, and modified /boot/config.txt to set dtparam=audio=off. Running speaker-test now sends test audio to the speaker. But, when I attempt to run a ...
0
votes
1answer
235 views

.asoundrc file is rewritten on each boot

i read all of the posts here and commentated on one of them but comment was deleted as it was a question i guess, so i mage my own now, sorry for that... Ok the problem: USB sound card mic is not ...
1
vote
0answers
94 views

Jackd problem on RPi3 B+ Stretch

I'm running Stretch on an RPi 3 B+. I have a C-Media USB sound card showing up as: card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] and ALSA recognises it as the default card ...
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 ...
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 ...
1
vote
0answers
1k views

PS3 eye's 4ch microphone with the Raspberry Pi

Recently I have been trying to get the 4ch microphone on the sony playstation 3 eye to work with my Raspberry Pi 3B (running the latest OS of raspian-stretch to date (2018-06-27 version) as a part of ...
0
votes
1answer
1k views

ALSA + usb microphone issue on rapsberry pi 1 (ARMv6, Raspbian/jessie): lsusb not listed AND Device or resource busy

I am trying to do Alexa on raspberry pi. Before I do that, I need to get my speaker and microphone working. Try to keep it simple, I am trying to avoid pulseaudio and stick with ALSA. So, the speaker ...
2
votes
1answer
503 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, ...
6
votes
1answer
744 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 ~/...
2
votes
2answers
812 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 ...
1
vote
1answer
731 views

Command aplay does not work without sudo

The command aplay only works if preceded by sudo. omxplayer test.wav will play the audio I recorded with arecord just fine. aplay text.wav does not, but sudo aplay test.wav does. The suggestions from ...
1
vote
0answers
180 views

Audioinjector streaming over RTP input errors: “hw:0,0: Protocol not found”, “Unknown input format: 'alsa'”

Using a RPI 3B running Debian Jessie, I've been trying to get a simple stream of the "flatmax" audioinjector's onboard mic over RTP to a VLC player. I've tried many different commands such as: ...
0
votes
1answer
57 views

Why does out123_open () shut down my sound card?

I'm talking about this function call: r = out123_open (sound::mp3_output_handle, "alsa", NULL); The return value of r is then OUT123_OK, but in the same moment, the status LED on my sound card (...
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 ...
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 ...
0
votes
1answer
408 views

Alsa combine 4 mono usb microphones into 1 stereo device

Based on this post: https://raspberrypi.stackexchange.com/a/58174 I was able to get 4 usb microphones to behave as 1 device with 4 channels. What I am looking to do is down mix the 4 microphones into ...
0
votes
0answers
122 views

When trying to play recorded audio file using aplay, gets an error saying No such file or directory

I'm trying to record and play recorded audio file. I use Armbian. I recorded a audio using arecord -D plughw:0,0 --duration=10 test2.wav command. When I'm trying to play that audio file(test2.wav) ...
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 ...
0
votes
0answers
137 views

Difference between sound and audio nodes in RPi 3 device tree?

I looked a bit into the device tree of Raspbian 9 on Raspberry Pi 3, using: dtc -I fs /proc/device-tree > myrpi-dev-tree.txt 2>&1 I've noticed there is a node called audio: audio { ...
2
votes
0answers
871 views

Streaming audio on the Raspberry Pi Zero W with ffmpeg

I have a problem with ffmpeg giving no audio when recording using alsa. Does anyone know how to get a Raspberry Pi Zero W to record and stream audio with ffmpeg using alsa? I have a project where I ...
0
votes
1answer
215 views

How to capture decibels and pitch from microphone?

Instead of capturing the sound coming from the microphone, id just like to ping it every couple of seconds to capture the decibels and pitch as data points.
2
votes
0answers
281 views

How to record usb audio and monitor at the same time

I have a usb audio device plugged into my Raspberry Pi 3 with Raspbian Stretch. Recording to an mp3 with sox works fine with this line: AUDIODEV=dsnooped rec -c 1 -q /media/usbstick/recording/...
0
votes
1answer
581 views

OMXplayer play video with no sound and mp3 at 2/4 times the speed

Using a USB sound card, I'm trying to play mp3 files, with the default omxplayer. But although all other software works fine, omxplayer play my mp3 files at 2x speed, sometimes even 4 times. Is ...
1
vote
1answer
3k views

Configure ALSA Sound card

I have 2 playback device where one is HDMI and the other is HAT sound card. The requirement is to play audio from card 0 or 1 without rebooting the system. aplay -l **** List of PLAYBACK Hardware ...
0
votes
2answers
1k views

Bad quality with USB sound card

I am trying to get audio input and output with an USB sound card (tested on Windows, works perfectly fine). With help from the Internet, I can record and listen sounds with the card but the quality is ...
0
votes
2answers
553 views

Pocketsphinx not working; Input Overflowed -9981

I am trying to use pocketsphinx in Python using the code given below: #!/usr/bin/python from os import environ, path from pocketsphinx.pocketsphinx import * from sphinxbase.sphinxbase import * ...
0
votes
1answer
1k views

Use internal sound card speaker and USB MIC as default

Problem I'm using UV4L for audio/video streaming. I'm using 3.5mm speaker, and usb microphone UV4L uses default audio/video device for streaming, but only audio work. USB MIC doesn't work. But ...
0
votes
1answer
455 views

How to play audio via a USB sound card using libao?

I get the following from aplay -l, lsusb. pi@raspberrypi:~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 ...
0
votes
1answer
7k views

Change usb soundcard device sample rate

I have two problems with my usb soundcard. It shows only single input channel (even though it is stereo capable , tested in Windows OS which correctly identifies as stereo ) Shows only supports 48000 ...
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
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: ...
0
votes
1answer
95 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
447 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
430 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
558 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
632 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 ...
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 ...
1
vote
0answers
181 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
791 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 ...