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

Questions tagged [alsa]

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

0
votes
0answers
18 views

gstreamer & alsa: stops audio output through jack when usb mic is activated

Now I'm facing a problem and need some advice, on RPI 3B+. Using two gstreamers with each pipeline, to: 1) receive an RTP stream and play it on Pi's jack. gst-launch-1.0 -v udpsrc port=20001 caps="...
2
votes
0answers
21 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 ...
0
votes
0answers
22 views

ALSA issues after upgrade, HDMI sound, USB mic

About a week ago, I bought a USB microphone with a goal of building a DIY Google Assistant. It worked! About a week later, it didn't. And not only that, I can't even get the RPi to do a basic ...
0
votes
1answer
20 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 ...
0
votes
0answers
29 views

What is the best way to stream sound to a bluetooth speaker/headphone pi 3?

I would like to stream some audio via vlc to my bluetooth speaker. Pairing seems to work but I get no audio so far. I have looked at tons of examples but none seem to work. I don't use pulseaudio up ...
0
votes
0answers
9 views

How to enable audio volume on 3b+ /w vx1 usb sound card

I have an rpi 3b+ that I want to get all audio to come out of the USB sound card - a VX1, which seems to have worked on an earlier version from this When I power it up / connect it, it gets detected ...
1
vote
0answers
28 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 ...
2
votes
1answer
193 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?
1
vote
1answer
131 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
37 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
1answer
33 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
31 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
62 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
183 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
38 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
74 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
80 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
330 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 ...
1
vote
1answer
202 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
67 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
92 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
1answer
39 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
79 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
119 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
60 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
149 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
102 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
66 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
422 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
375 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
314 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
37 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
178 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/...
6
votes
1answer
9k 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
434 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
150 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
2k 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
83 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
693 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
348 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
343 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)"...
2
votes
2answers
435 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
2k 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
64 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
156 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
249 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
248 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
445 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
1answer
333 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
80 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 { ...