Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Getting delay in the video stream while streaming to webrtc

I am working with Gstreamer 1.16.3 application on the Ubuntu 20.4. The application is in such a way that, I have USB camera which is giving output a H264 encoded data, and using the laptop microphone ...
Kevin Peters's user avatar
0 votes
0 answers
19 views

How to subscribe to volume events?

I'm trying to subscribe to Alsa volume events, but the callback is not being called. Alsa.PcmDevice defCard; Alsa.PcmDevice.open(out defCard, "hw:1", Alsa.PcmStream.PLAYBACK, 0); int n_fds = ...
user28484148's user avatar
0 votes
0 answers
51 views

What is the right way to play audio with ALSA LIB?

I am working on an embedded audio device, it is using kernel-5.10, and ALSA-LIB to play audio. When I am trying to call snd_pcm_writei() to play audio, I got a little confused on what is the right way ...
wangt13's user avatar
  • 1,163
1 vote
0 answers
15 views

The ALSA framework supports multiple DMA input

I am currently working on the digital microphone tuning for PDM interface, and each input channel of the PDM has a DMA. Currently, I need to enable ALSA to support multiple PDM DMA input channels. ...
ada's user avatar
  • 19
2 votes
0 answers
26 views

Record Audio using ALSA in mp4 format

I am working on to record audio using ALSA library. I am able to record the audio using the same library in .wav file, but what I need is to record an .mp4 file. For that I initialize the FFmpeg ...
teena meheren's user avatar
1 vote
0 answers
55 views

How to create a relocatable CMake package that correctly handles the included target directories?

I have realized a Linux library fooLib that provides some functions to be used with alsa-lib data types. I want cmake to configure the compilation of the library and also to create a relocatable ...
JtTest's user avatar
  • 177
0 votes
0 answers
35 views

Capturing key_released signal of return key in GTK4

I'm writing a simple application to emit MIDI with my keyboard. I'm mapping an octave to each row of the keyboard, and the second row ranges from 'a' to the Return key (I'd rather not use Caps Lock ...
Ben Gardiner's user avatar
1 vote
0 answers
41 views

Failed to play MP3 audio with ffmpeg API in Linux

I am working on an audioplayer by using FFMPEG libaray, and ALSA. The following codes failed to playback the MP3 media smoothly (it is slower and noisy), I checked the FFMPEG codes and examples, but I ...
wangt13's user avatar
  • 1,163
1 vote
0 answers
55 views

How is PCM data transferred from hardware to DMA in ALSA, and how can I modify it before user space access?

I am trying to understand how PCM data is transferred from hardware to DMA in ALSA when recording. Specifically, I would like to modify the PCM data before it is read by user space. I am interested in ...
Huaimin's user avatar
  • 11
0 votes
0 answers
18 views

Problems with Pygame mixer and ALSA [duplicate]

I'm trying to get pygame to run in a bigger script to play multiple overlapping audios based of key presses, basically to simulate a piano. However, I keep getting the error pygame.error: ALSA: Couldn'...
Tyler Farnsworth's user avatar
1 vote
0 answers
58 views

ALSA snd_device_name_hint memory leak?

Is it ok that the following code: #include <alsa/asoundlib.h> int main(void) { void **hints; if (snd_device_name_hint(-1, "pcm", &hints) < 0) { return -1; } ...
JtTest's user avatar
  • 177
0 votes
1 answer
466 views

How to connect alsa audio to docker

I have a docker container running on a raspberry pi 5 and my goal is to access the alsa audio devices of the raspy inside of the container. Currently I get the following error when executing aplay ...
swissmount's user avatar
0 votes
0 answers
35 views

Python Text-To-Speech Logic making weird pronunciations

When I used windows this code ran perfectly. It has been 2 weeks since I switched to fedora. I am not sure what is making it behave like so. import pyttsx3 from colorama import Fore, Style #Setting ...
Ahanaf Rashid's user avatar
0 votes
0 answers
61 views

Not getting sound in rt5640 audio codec in imx8mplus

I am working on a custom board which is using imx8mplus SoC and two rt5640 audio codec chips. In both of them, one is working as a master and the other is working as a slave. I need to enable the ...
Nikita Gupta's user avatar
1 vote
1 answer
79 views

Get current mute status with ALSA C library

I need to read current mute state of soundcard using ALSA C library. There is one example how to mute: Linux ALSA/Sound-API Questions - How do you mute? But what about reading current mute state? Of ...
Anton Vakulenko's user avatar
0 votes
0 answers
87 views

How large should period be in frames (ALSA)

First of all, I'm totally green to audio programming, so I'd be thankful for any advice and learning resources. I used (Linux Journal - Introduction to Sound Programming with ALSA) and googling as ...
Dominik's user avatar
3 votes
0 answers
67 views

Inconsistent order of channels on a multi-channel sound card (ALSA, Linux)

I have a USB sound device (Startech ICUSBAUDIO7D, which comes up as ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device through lsusb) which I'm trying to program the output of for 8 ...
askvictor's user avatar
  • 3,809
0 votes
0 answers
67 views

snd_pcm_wait timeout with USB driver and certain buffer sizes

I'm testing audio playback using ALSA on Ubuntu 22.04, using USB audio devices that I think use the USB class audio driver. I've found that for certain ranges of buffer size, snd_pcm_wait() always ...
tracker74's user avatar
0 votes
0 answers
48 views

ALSA underruns and overruns on process fork() call

This is a rather surprising issue. In my application ALSA is handling constant audio streaming between multiple nodes, the whole application is made out of multiple threads, each assigned to a unique ...
Antoni's user avatar
  • 356
0 votes
0 answers
516 views

Pipewire not detecting Microphone, plugged in but static comes out of internal microphone recording

I am on an Alienware M16 running Arch Linux and Pipewire is installed and there are 2 controllers that are available, one controlled by the Nvidia Graphics card and one controlled by the AMD audio ...
Karim Al Aghar's user avatar
0 votes
0 answers
23 views

ALSA dmix plugin unusual sample rate

In my embedded project, I am trying to use ALSA dmix plugin. But, when I use dmix plugin with plug plugin, there is a problem such as bold sound that it should not be. My asound.conf file, in /etc dir,...
kaernk's user avatar
  • 63
0 votes
0 answers
92 views

Sound System (speaker and mic) not working after deleting alsa config file ubuntu

I deleted the ALSA config file while trying to fix some programmatic errors - post which my sound system is not being recognized at all. No audio is playing. My guess is the microphone is not working ...
sana0613's user avatar
0 votes
0 answers
125 views

Alsa Lib Throw Many Error When Start The Script

Error Output: ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) ...
Darwin Danish's user avatar
0 votes
2 answers
187 views

GStreamer pipe to dynamically control alsasink

I have a GStreamer pipeline that receives an udp/rtp stream and outputs it to four soundcard channels, e.g. alsasinks: gst-launch-1.0 udpsrc name=m_udpsrc multicast-group=239.255.255.245 auto-...
tinu73's user avatar
  • 29
0 votes
0 answers
118 views

ERROR: audio_alsa_source1 - [hw:1,0]: Device or resource busy - Why is it busy?

I am having an issue in which I receive the subject error. This is part of a large project. I have posted this question using code from the project here and on the GNU Radio list but have no solutions ...
Jim's user avatar
  • 39
0 votes
0 answers
48 views

ALSA MIDI input Raspberry Pi

I've been trying to use ALSA to connect to my MIDI keyboard, and detect when a certain key is pressed. However, I've been having trouble using my keyboard as an alsa device. There doesn't seem to be ...
aybudd's user avatar
  • 1
0 votes
0 answers
101 views

Garbled audio when using ALSA on PipeWire + deinterleave + sample rate filter

I'm getting strange audio output when using deinterleave in my pipeline along with alsasrc on my PipeWire system. First, a working pipeline without deinterleave: gst-launch-1.0 alsasrc ! audio/x-raw, ...
hacker1024's user avatar
  • 3,608
0 votes
0 answers
2k views

Getting error: Unable to open slave... Alsa error

GETTING ERROR: Unable to open Slave. Why I don't know what to do here? I use Ubuntu I tried this sudo apt-get install alsa-utils But I already have it but still nothing changed.I also did some other ...
Anas Faaiz's user avatar
1 vote
0 answers
42 views

How do I capture audio from the system bus in a node app (or from sox) on a raspberry pi?

I have loaded a loopback module using pulseaudio: pactl load-module module-loopback and I can see in pavucontrol that the loopback is capturing the sound I want it to. I have the following code in a ...
Sam Rappl's user avatar
0 votes
0 answers
64 views

RPi Linux Audio driver for 8 channels Codec

I would like to interface my RPi with an audio device that is using PCM audio communication (DA14AVDDECT). This device is used to make calls using DECT protocol. It is possile to make 8 calls at the ...
clu's user avatar
  • 1
1 vote
0 answers
83 views

ALSA: How to start Rx for (USB) raw MIDI?

I want to send MIDI SysEx messages from a Linux PC to a device that provides an USB MIDI interface. The basic idea is that I send a SysEx message to the device and then receive the response like shown ...
Martin Rosenau's user avatar
0 votes
0 answers
183 views

BlueALSA loopback - PCM write

As for now We are A2DP sink speaker,We open snd_pcm_open() with HW device and write PCM continuously based on asound.conf. We run bluealsa as audio streaming daemon and bluealsa-aplay as audio player. ...
Abdul Asik's user avatar
5 votes
1 answer
567 views

Is there a reason for an App to use the pipewire API over ALSA?

I've written an audio library with basic playback on ALSA & PipeWire. But I'm unsure if there is a reason to include the PipeWire option. I have PipeWire installed on my system because its nice as ...
cecil's user avatar
  • 433
0 votes
0 answers
38 views

Why is ALSA often not reading the audio card state

I'm having a terrible time with ALSA on a PI5. It will play and record sound, but the control interface seems to only work sometimes. I cannot find a cause for this. I could use some help ...
knottied's user avatar
0 votes
0 answers
117 views

[ASOC][tlv320aic3110] Error resetting registers and error 16 (device or resource busy)

I am having an issue with the tlv320aic3110 codec. I get these two errors during boot up in my embedded device: [ 10.079068] tlv320aic31xx-codec 0-0018: Unable to sync registers 0x1d-0x1d. -6 [ 10....
jesusjimsa's user avatar
0 votes
1 answer
216 views

Unable to use Alsaeq with Snapclient, but speaker-test works

I have installed alsaequal on a Raspberry Pi 4 B+ running Raspian and Snapclient (Linux snapclient 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux). When I run: speaker-...
GSephElec's user avatar
0 votes
1 answer
363 views

Calculating decibel values from live microphone audio using alsaaudio

I have this Python script that I'm running on my Ubuntu laptop to get the live ambient noise levels from the microphone on the laptop. I don't think this script works well though and I can't figure ...
Evan Krause's user avatar
0 votes
0 answers
193 views

Wav files are played by alsa at a faster tempo. Is there a way to fix the tempo

I am trying to play audio files programmatically using alsa library. My platform is Linux and my end product will be an embedded board. I have modified the code found here https://gist.github.com/...
Prajosh Premdas's user avatar
0 votes
1 answer
112 views

How does bluealsa's hfp choose audio encoding

bluealsa supports CVSD and mSBC coding. When connecting to other Bluetooth devices, how to determine the coding of hfp. I know that HFP mandates CVSD support, but I wonder if bluealsa will ...
GAIYAKUANGTU's user avatar
0 votes
0 answers
116 views

How do I know how much data I need to feed to the ALSA sound buffer?

My HW parameters are as follows retrieved from snd_pcm_hw_params_get functions. Access: interleaved Format: 16-bit little endian Channels: 2 Periods: 3 Period Size: 32000 frames Buffer Time: 2000001 ...
magikz's user avatar
  • 11
0 votes
1 answer
366 views

Problems loading shared library using LD_PRELOAD

I have a legacy system that was working on a previous system but cannot get it working. The system: I have a Asus Xonar 7,1 audio card. I previously had spotify for Linux running on it. What I had ...
Peter Bonham's user avatar
1 vote
1 answer
162 views

Use ALSA API to get all input audio devices

I want to write a code that uses ALSA API to iterate over all the audio devices and prints the devices which are defined as input (microphones). This is my code: #define MAX_DEV_STR_LEN 6 #include <...
zivglb's user avatar
  • 13
0 votes
0 answers
244 views

Raspberry Pi 4B & ReSpeaker v2.0: PyAudio Errors and ALSA Configuration Issues

OS: Raspberry Pi OS (64 bit) - Debian Bookworm As a forewarning, I am a novice when it comes to IoT projects like this. My purpose is to implement my own custom python script which considers direction ...
Cole Sheyka's user avatar
0 votes
0 answers
310 views

Unable to compile C program using ALSA library, linker not finding library functions

I am fairly new to Linux and ALSA. I am trying to compile a simple program to enumerate sound devices on a Raspberry Pi 4 running the Raspberry Pi OS based on Debian Bullseye. The code (which I copied ...
AllanW's user avatar
  • 1
0 votes
0 answers
195 views

MPV linux player map sound to specific 7.1 sound card channel

i have a 7.1 usb sound card connected to a debian system. MPV version is 0.35 I have a multiroom audio setup, with one stereo aplifier per room. The sound card should feed the rooms individually. Alsa ...
Naveen's user avatar
  • 111
0 votes
0 answers
35 views

ALSA sequencer filters

I'm writing an ALSA demonstration program which, by almost any standards, is a "filter": read sequencer events, decide what to do with them, and either emit, dump to stdout or ignore. I find ...
Mark Morgan Lloyd's user avatar
1 vote
0 answers
316 views

How to open multiple simultaneous ALSA capture inputs on a single multi-input ALSA card

I am using the ALSA PCM routines to capture audio on an embedded linux system that has a WM8281 audio codec hardware chip which has 6 analog inputs. I have defined several aliases in the /etc/asound....
Andres Gonzalez's user avatar
0 votes
1 answer
320 views

How can I fix this alsamixer library error/ file not found?

When I try to open alsa mixer the following error occurs: ALSA lib dlmisc.c:337:(snd_dlobj_cache_get0) Cannot open shared library libasound_module_ctl_asym.so (/usr/lib/alsa-lib/...
imkris006's user avatar
0 votes
1 answer
265 views

Problem with ALSA with Raspberry Pi 4b and voice recognition

I get the following error: def recognizer(): try: with sr.Microphone() as voice: listen = sr.Recognizer() voices = listen.listen(voice, 2, 30) command = ...
Vector776's user avatar
0 votes
1 answer
1k views

Headset microphone is not working on linux

I have an Asus VivoBook S5402ZA laptop with a fresh installation of Ubuntu 22.04. The internal microphone works, but the headset microphone does not. If I connect the headset via a USB hub with a jack,...
Eugene Borysenko's user avatar

1
2 3 4 5
22