Questions tagged [alsa]

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

74 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
74 views

Microphone is not recording with HifiBerry and Raspberry Pi 3

I installed the HifiBerry driver as specified. The Board is recognized and the audio output works fine. Just the audio input seems to be not working. I checked if the microphone is muted but I can't ...
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 ...
3
votes
0answers
994 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 ...
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
0answers
3k views

Jack server not working on Raspbian

I wrote a little python app (using PyDub), that plays sound files. Everytime I run it, I get the these errors: ALSA lib pulse.c:243(pulse_connect) PulseAudio: Unable to connect: Connection refused ...
2
votes
1answer
94 views

Pi menu bar flashes then disappears - due to ALSA config

I have built a new image on a RPi3B+ with Noobs using the latest Raspbian which I believe is named Buster. I uninstalled libreoffice (for space) and have installed various python libraries and the ...
2
votes
0answers
64 views

How do I capture and stream HDMI audio out to LAN

I have a RPi that is running videos with omxplayer and outputting to my tv. HDMI video and audio out work just fine, but I would additionally like to stream only the audio to my network (via RTP or ...
2
votes
0answers
71 views

USB audio device is displayed as default, but is not

I have set the USB device on my Raspberry Pi to default. The file /lib/modprobe.d/aliases.conf: options snd-pcsp index=-2 options snd-usb-audio index=0 options cx88_alsa index=-2 options snd-atiixp-...
2
votes
1answer
177 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 ...
2
votes
1answer
351 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: ...
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 ...
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/...
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 ...
2
votes
1answer
598 views

What modifies my .asoundrc file every boot?

My .asoundrc file gets modified every boot. If I delete it, a new appears at reboot: pcm.!default { type hw card 0 } ctl.!default { type hw card 0 } If I make changes ...
2
votes
0answers
531 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 ...
2
votes
0answers
735 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 ...
2
votes
1answer
36 views

Internal soundcard sometimes card 0 and sometimes card 2 with 2 usb mics

I can't get a consistent setting for my internal soundcard. BCM2835 is sometimes card 2 and then I'll reboot and it'll be card 0. Driving me nuts, hard to set the default when it's jumping around. Is ...
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 ...
2
votes
0answers
559 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 ...
2
votes
0answers
1k views

Pulseaudio to ALSA output gets stuck

I've been working on that for a couple of month now, but still don't have a very good solution. My general problem is that my PulseAudio over ALSA audio output is blocked or stuck, I can unblock it ...
2
votes
0answers
690 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.
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 ...
2
votes
3answers
24k views

arecord: main:722: audio open error: No such file or directory

I am trying to install Jasper (Jasper is an open source platform for developing always-on, voice-controlled applications) on Raspberry Pi 2 (Jessie). I have a mic to give the commands, but it does not ...
1
vote
0answers
115 views

Mopidy with PulseAudio sound over TCP

So I have been struggling with this for a while now and looked everywhere for solutions. I have installed Mopidy with Spotify extension on my Raspberry Pi 3B but I can't seem to get the pulseaudio ...
1
vote
0answers
31 views

Aux and HDMI audio options missing

Background (To give some perspective on the issue): I am using mopidy and mopify as an audio server on a Raspberry Pi 3 B+. WHen setting this up, I found that it would not output through a USB audio ...
1
vote
1answer
566 views

ALSA input error (snd_pcm_open): No such file or directory - Problem with running Pd with ALSA

I am pretty new to Raspberry Pi, so sorry if I might be not clear on something. I am trying to set the Raspberry Pi 3 to work running a Pure Data patch while communicating with two Arduino UNO, and ...
1
vote
0answers
200 views

Connect Raspberry Pi via Bluetooth to Sound Bar

after spending the last couple of weeks trying to connect my bluetooth soundbar to my Raspberry Pi 3 B+ and playing all audio output on it I am close to giving up. Using the GUI I can successfully ...
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
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 ...
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 ...
1
vote
0answers
179 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: ...
1
vote
1answer
66 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 ...
1
vote
1answer
3k 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
217 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; ...
1
vote
1answer
631 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
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)"...
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 ....
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 { ...
1
vote
0answers
748 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 ...
1
vote
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 ...
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
525 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 ...
1
vote
1answer
422 views

gmediarender configure output mono

I have configured gmediarender on the RPi 3. However I prefer only mono output. Following this guide to downmix to mono did not output mono from the gmediarender. /etc/asound.conf pcm.card0 { ...
1
vote
0answers
455 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 ...
1
vote
0answers
140 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 ...
1
vote
0answers
3k 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
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
508 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 ...
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
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 ...