Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

For questions pertaining to ALSA, the Linux sound subsystem. ALSA sits below advanced systems like PulseAudio.

1
vote
1answer
12 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
1answer
17 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 ...
0
votes
0answers
19 views

Cannot play audio from two processes at the same time

I want to be able to output to a speaker from multiple applications at the same time, but currently it's only allowing me to output to the speaker from a single application. I have the following ...
1
vote
0answers
14 views

USB Soundcard shows mic as Playback device in alsamixer

I have some trouble with my USB sound card 68878 from goobay. Alsamixer showing unexpected devices Secondly when I use alsamixer displaying Playback items. I see both a Speaker and a Mic: For ...
0
votes
0answers
15 views

Redirect input audio to an I2S DAC via Alsa configuration?

I'm working on refreshing a vintage radio. So I changed all the electronics inside by a Raspberry Pi 3 with Hifiberry Amp2 (DAC + AMP card) and Moode Audio software. I can play music files stored on ...
3
votes
0answers
60 views

HDMI audio on Raspberry pi 3 b not working

I've already seen Audio over HDMI not working on Pi 3 (audio not working though HDMI, but working though speakers) but the actions described by @Vader did not work for me. The fact is that it ...
1
vote
0answers
18 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 ...
0
votes
1answer
40 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 ...
2
votes
1answer
38 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, ...
1
vote
0answers
143 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
0answers
24 views

ALSA RPI - Can I create a virtual array of microphones using two different input devices?

I have two PS3 eye (each one has an array of 4 mics) and I was wondering if I could create a virtual microhpone array using ALSA to acquire and use the two devices as if it was one array with 8 ...
1
vote
1answer
99 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 ...
0
votes
0answers
52 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
0answers
41 views

ALSA errors with FLDIGI on a Rpi3b+

I wanted to install the latest version of fldigi on my rpi laptop. I have previously installed the version listed in the synaptic manager but then uninstalled that and installed the latest version ...
1
vote
0answers
29 views

RPi3 B+ Stretch. Config for external capture device & onboard headphone jack

I am planning to use an external Microphone "ReSpeaker 4Mic Hat" from Seeed-Studio on my RPi3 B+ Stretch OS. However, when I run alsamixer, my external Mic is not the default capture device. It seems ...
0
votes
0answers
49 views

Chromium and ALSA route problem

I have set up a virtual device in asoundrc which works in Audacity but when I open it using the Chromium --alsa-input-device flag I get the following error: Rate doesn't match (requested 48000Hz, get ...
0
votes
1answer
70 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
39 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) ...
0
votes
0answers
117 views

Use USB Mic simultaneously with RTSP Server and pyaudio

I'm building a baby monitor based on Raspberry Pi. I use Picam and rtsp-server to stream the pi camera and the sound of the USB Microphone to a video view in an android app. At the same time pyaudio ...
0
votes
0answers
65 views

Why does device 0: bcm2835 ALSA on RPi 3 have 7 subdevices?

OK, so on Raspbian 9, on Raspberry Pi 3, if I try to list audio devices, I get this: pi@raspberrypi:~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: ...
0
votes
0answers
46 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 { ...
1
vote
0answers
320 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 ...
2
votes
3answers
199 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
270 views

installing PulseAudio completely disables microphone and audio output configured in ALSA?

I spent a few days getting an I2S microphone and a speaker that was soldered into the proper jacks below working with ALSA. To accomplish this, I tweaked the .asoundrc file to modify the defaults, and ...
0
votes
1answer
33 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 (...
2
votes
0answers
133 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/...
5
votes
1answer
5k 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 ...
0
votes
1answer
372 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 ...
0
votes
0answers
132 views

Rpi-3 Jessie, omxplayer plays .wav files but aplay does not. Also I cannot record audio via bluetooth audio

I am using Rpi 3 model B with Jessie, kernel 4.4.34. I can play the .wav audio file using omxplayer, but it does not work with aplay or cvlc. I am trying to send Bluetooth audio from a Master Rpi to ...
0
votes
0answers
1k views

Alsa lib error pyaudio on raspberry pi 3

I'm getting these ALSA lib errors when trying to use pyaudio. I know my mic works as I can live stream audio through gstreamer. Can anybody explain to me why i'm getting these issues: ALSA lib ...
1
vote
1answer
64 views

How do I configure the alsa driver in out123?

I'd like to play MP3 files on my Raspi 3B by using mpg123, so I added (among others) the following lines of code into my app: r = mpg123_init (); if (r != MPG123_OK) { ret -= r; ...
0
votes
1answer
619 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 ...
1
vote
1answer
290 views

Issues accessing a microphone from Node on Pi Zero

I am having issues using a microphone in a Node script. The microphone (a SEEED Array mic) works when running the command line: arecord -D plughw:1 --duration=10 -f cd -vv ~/rectest.wav It does not ...
1
vote
0answers
301 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)"...
1
vote
2answers
353 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 ...
3
votes
1answer
1k 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 ...
0
votes
1answer
56 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
1answer
138 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 ...
1
vote
0answers
225 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
217 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
404 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
0answers
72 views

How can I play multiple audio at once with loopback?

I am using loopback devices so that I can play music from VLC and stream it directly to my Ices2 source which will then feed it to my IceCast Server. Problem is I want to be able to play multiple ...
0
votes
1answer
287 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-...
1
vote
0answers
65 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 { ...
7
votes
3answers
2k 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 (...
0
votes
0answers
153 views

recompile ffmpeg for alsa

I realised that in order to stream video and audio to YouTube from the Raspberry Pi, I needed to have 'alsa' compiled. When i compiled ffmpeg I did not have alsa support therefore I get the error: ...
0
votes
1answer
620 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 ...
0
votes
1answer
116 views

Push alsa capture volume over limit on USB headset

I want to push capture volume on my RPi3 with ALSA of my USB headset (microphone) over the limit that is, in my case, 6 dB. I tried every example i've found and the only reasonable way seems to be to ...
0
votes
0answers
587 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
1k 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 ...