Questions tagged [alsa]

ALSA stands for Advanced Linux Sound Architecture and is a kernel component that supports sound in Linux systems.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How do integrate ADS1174 as ALSA device driver in Yocto Linux?

My primary task is to make the Texas Instruments ADS1274 codec usable in Yocto Linux. The linux kernel already includes the ads117x ALSA driver which includes support for the ADS1174 codec which is ...
jkow's user avatar
  • 129
0 votes
1 answer
23 views

Includes for ALSA not added to i.MX6 image

I want to develop an ALSA application on my i.MX6 sabre development board, but it looks like no headers (i. e. <alsa/asoundlib.h>) for ALSA aren´t installed in the imx-image-full image. I´ve ...
Kampi's user avatar
  • 1,810
-1 votes
0 answers
15 views

Recording audio on from vban source on a raspberry pi

I have my windows desktop streaming audio to a raspberry pi using voice meter and vban. I have verified the vban part works by using headphones pluged into the pi and I can here the audio. ...
DCRalph's user avatar
2 votes
1 answer
57 views

ALSA sound element name "Master" not recognized with C program, but available from amixer

I'm working on C program that uses the ALSA sound library, and I'm trying to set the volume to a specific percentage value. I've tried to follow an implementation based on the pyalsaaudio library and ...
jsgalarraga's user avatar
0 votes
0 answers
23 views

Audio recording with alsa - how to minimize jitter

I'm working on Linux (Debian 11) audio recording application, in which precise timestamping of audio chunks is critically important. Audio recording is done with ALSA. I use ALSA API ...
ivbsd1's user avatar
  • 93
0 votes
0 answers
25 views

Gstreamer alsasink not working when jackd is off

I'm pretty new to all this so I'm very confused. I had a gstreamer pipeline setup with the out sink being jackaudiosink while also running jackd using /usr/bin/jackd -R -P10 -dalsa -dmaster -p512. I'm ...
Zephyr's user avatar
  • 1,712
0 votes
0 answers
61 views

QT + ALSA: QSoundEffect heavily distorted after migration from Qt5 to Qt6

After migrating from Qt 5.9 to Qt 6.4.3, playing sounds with QSoundEffect and the ALSA backend results in a heavily distorted audio output on my embedded system. While the correct sound effect does ...
JMY1000's user avatar
  • 131
2 votes
1 answer
79 views

Obtain USB Device File Path from ALSA USB Hardware Device

I'm currently working on a Rust library/CLI/UI for managing Focusrite Scarlett USB audio devices specifically on Linux. These devices often have many different internal settings (my 18i8 has nearly ...
Naftuli Kay's user avatar
  • 87.9k
1 vote
1 answer
34 views

ALSA midi: getting precise timestamps on input

Bonjour, I'm struggling a little bit with getting as precise as possible timestamps with the ALSA sequencer API. I have a queue used for enabling timestamping of incoming messages, set-up like this: ...
Jean-Michaël Celerier's user avatar
0 votes
0 answers
35 views

How to Enable verbose prints in ALSA kernel subsystem

I am pretty new to ALSA and kernel development. I am trying to add my own machine driver to register custom sound card. I want to see all the verbose prints form ALSA subsystem to dmesg ( or any other ...
zappy's user avatar
  • 1,884
0 votes
0 answers
20 views

how to change interface of the audio codec chip that snd_pcm_open() opens?

I am currently working on an embedded system that has a multi-interface audio codec chip, WM8281. My yocto-built linux kernel has the ALSA driver suite installed and I have GStreamer installed and ...
Andres Gonzalez's user avatar
0 votes
0 answers
84 views

Problem playing sound with pulseaudio virtual sound device inside kubernetes container

I'm trying to deploy to kubernetes (GKE) my Fastapi application of 'speech to speech Translation' by creating a container using 'Cloud Build' inside Google Cloud (GCP). I've created an entrypoint.sh ...
Bhanu Chander's user avatar
0 votes
0 answers
21 views

ALSA audio read function 2x too slow

I'm writing an ALSA audio rendering implementation and fairly literally copied the code from an example. However, for some reason and despite all logging to the contrary, the audio I'm getting out is ...
Yellow's user avatar
  • 3,965
0 votes
0 answers
32 views

ALSA_CARD not working properly unless I delete asound.conf and restore it

I'm having some trouble getting alsa's ALSA_CARD environment variable to work properly when using a dmix configuration. ALSA version: Advanced Linux Sound Architecture Driver Version k4.4.194. I'm ...
veodko's user avatar
  • 43
0 votes
0 answers
46 views

ALSA lib pcm_dsnoop.c:641:(snd_pcm_dsnoop_open) unable to open slave

This is the code import googletrans import speech_recognition as sprch extA=sprch.Recognizer() with sprch.Microphone(sample_rate=44100) as source: print("Speak what to convert") ...
Himanshu Kumar Mahto's user avatar
0 votes
0 answers
106 views

How to capture audio by PyAV in Linux?

I want to capture audio to stream in with aiortc, installed on ubuntu 22.04, using python. I tried av.open(format='alsa', file='default') and av.open(format='pulse', file='default'), and got `...
AndreyPr's user avatar
0 votes
0 answers
19 views

SoX play sound at full volume regardless of mute or current system volume level

I need to script playing a sound. Think https://www.youtube.com/watch?v=cl0EI44nMXE&t=37s The catch is I need it to play regardless of if the system is muted or the sound is turned low, and allow ...
some bits flipped's user avatar
-1 votes
2 answers
55 views

Getting half the frequency and double the duration from a sine wave generated using C and played using aplay

I am trying to generate a sine wave of 440Hz frequency that lasts for 10 seconds using the following C code: #include <stdio.h> #include <math.h> double sine(double amp, double freq, ...
Ishaan Vatus's user avatar
0 votes
2 answers
104 views

How do I make ALSA library available to PyAudio?

I am trying to build a Python application that uses the SpeechRecognition package to record user's speech with a microphone. I am using Ubuntu 23.04 on a Lenovo X1 Carbon. I am working in a conda ...
bpeters4's user avatar
1 vote
1 answer
21 views

How to get correct device number for snd_rawmidi_open()?

Using amidi -l I get a few card results: Dir Device Name IO hw:2,0,0 CLASSIC ORGAN CMK3 CLASSIC ORGA IO hw:3,0,0 CLASSIC ORGAN CMK3 CLASSIC ORGA IO hw:4,0,0 CLASSIC ORGAN CMK3 CLASSIC ORGA IO ...
Cheetaiean's user avatar
0 votes
0 answers
34 views

Alsa Python API: Monitoring the Buffer size or Period

I am new to using Alsa API for sound processing. I am trying to use Alsa API to receive an input, process and send it back to the outout port. I have set the buffer size of 512. Source = alsaaudio....
user3064089's user avatar
0 votes
0 answers
348 views

How can I fix the error unable to open slave

I was using bevy game engine 0.10.1 on Arch Linux avoiding the ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm_dsnoop.c:566:(snd_pcm_dsnoop_open) unable to open slave ...
Ozan Güneş Gençay's user avatar
0 votes
1 answer
181 views

How to set sample rate when read frames from ALSA [FFMPEG C/C++]

I'm trying to get audio data from a microphone using ALSA. By default stream has a sampling rate of 44100 Hz, but I need to get 8000 Hz. Trying to use AVDictionary options for avformat_open_input ...
Dion's user avatar
  • 45
1 vote
1 answer
210 views

Cross compiling alsa crate for armv7

I'm trying to cross-compile for amrv7-unknown-linux-gnueabihf a rust binary based on the alsa crate. For the cross-compilation, I'm using Cross with a custom Dockerfile to have the required ...
Flowake's user avatar
  • 33
0 votes
1 answer
84 views

What can I do to fix 'Unable to find definition' errors when using ALSA with Raspberry Pi and USB PnP Sound Device as microphone for Python code?

How do I fix ALSA to see the USB mic on raspberry pi When I run the python code import speech_recognition as sr from datetime import date from time import sleep r = sr.Recognizer() mic = sr.Microphone(...
Wally's user avatar
  • 1
0 votes
0 answers
57 views

Local (per application) setting volume with ALSA API

I use snd_pcm_* functions in my application to control sound. I know that I am able to change volume by multiplying samples by constant value (representing volume) but it is not professional. Setting ...
18C's user avatar
  • 2,020
0 votes
0 answers
52 views

How can I use cmake to download and build ALSA and PortAudio libraries while building audacity from source?

I'm trying to debug audacity that I build from source. The build process is managed by cmake, and the dependencies are handled by conan. 2 main dependencies are portAudio and ALSA libraries. I'd like ...
ahzahraee's user avatar
0 votes
1 answer
358 views

ALSA: failed to import hw:0 use case configuration -2

I have stored the configuration for my sound card in an asound.state file and alsactl is reading it fine, but during boot and whenever I try running the command manually, this message appears in the ...
jesusjimsa's user avatar
0 votes
1 answer
12 views

ALSA SOC_SINGLE_EXT_TLV control doesn't trigger events

I have declared an ALSA control : static const struct snd_kcontrol_new deqx_digi_ana_audio_controls[] = { SOC_SINGLE_EXT_TLV("Master Volume", 0, 0, 255, 0, master_get, master_put, master_tlv)...
Matt's user avatar
  • 509
0 votes
0 answers
20 views

How to limit ASoC configuration parameters?

I wrote a custom codec driver and an ASoC sound card that uses it. The codec driver is limited to the rate of SNDRV_PCM_RATE_96000 and format SNDRV_PCM_FMTBIT_S24_LE in its snd_soc_dai_driver, however ...
Antoni's user avatar
  • 186
0 votes
0 answers
25 views

Is it possible to add endianness and bit-depth conversion in the linux soundcard / ASoC drivers?

As in the title, is it possible to add some transfer function to the ASoC soundcard or CODEC driver, that would do the endianness and bit-depth conversion? After the initial research it seems that ...
Antoni's user avatar
  • 186
1 vote
0 answers
959 views

PyAudio project is giving me the following error: ALSA lib confmisc.c:767:(parse_card) cannot find card '0'

I am currently working on a project using PyAudio and am receiving the above error when I try to run the following code: import pyaudio import wave CHUNK = 1024 FORMAT = pyaudio.paInt16 CHANNELS = 1 ...
thenewwkidd's user avatar
0 votes
0 answers
94 views

programmatically splitting audio channels in alsa or arecord

I have an alsa soundcard that receives four (mono) audio channels audio as an interleaved stream of 24bit samples (i.e. ch1,ch2,ch3,ch4,ch1,ch2... where ch1 means a 24-bit sample from channel 1 etc.) ...
Gilbert Waltoon's user avatar
0 votes
0 answers
24 views

alsa - add delay to usb microphone

OpenSuse Tumbleweed I am looking for a solution to add a delay to the USB microphone. The reason: f.e using Zoom Video goes through obs studio with green screen filter and has a delay of about 400 ms. ...
etron770's user avatar
0 votes
0 answers
45 views

Can't connect to Azure Kinect Microphones

I'm using Azure Kinect DK SDK 1.4.1 on Ubuntu 20.04 and whenever I try to run the viewer $ sudo k4aviewer I get some errors: ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib ...
Bilal's user avatar
  • 3,231
0 votes
0 answers
101 views

ALSA ASoC driver, what's the difference between snd_soc_card AND snd_soc_component_driver?

I'm trying to put together a custom ASoC driver, after reading through available documentation (which is rather sparse) and the source code of implemented codecs and sound cards it seems that there ...
Antoni's user avatar
  • 186
1 vote
0 answers
448 views

Unable To Decrypt GPG File: Bad Session Key [closed]

EDIT I have deleted this file so don't waste your time trying to help me! I had a backup copy so I didn't lose a lot of information. I'm still not sure what caused this to happen but my best guess is ...
Growing My Roots's user avatar
0 votes
1 answer
178 views

ALSA PCM Device configuration

I am working on Linux ALSA. In my alsa.conf configured as file: defaults.pcm.card 0 defaults.pcm.device 0 This card and deviece (0,0) refers to NVIDIA sound card HDMI out and I never used normally. ...
kaernk's user avatar
  • 63
1 vote
0 answers
37 views

Is it possible to add third audio track which is mixed from previous two in FFMPEG in one line?

I have this command: ffmpeg -y -f x11grab -s 1920x1080 -framerate 12 -i :0+0,0 -f pulse -i 2394 -f alsa -i default -map 0 -ac 2 -c:v hevc_nvenc -preset fast -crf 40 -b:v 1000K -bufsize 8K -c:a libopus ...
Dmytro Serdiukov's user avatar
1 vote
0 answers
4k views

ALSA lib confmisc.c:768:(parse_card) cannot find card '0' [closed]

I used a Linux virtual machine to compile and run a C++ game. The compilation process of cmake and make is okay, but when I run the executable file, it gives me the following error: ALSA lib confmisc....
wangzixuan Wang's user avatar
0 votes
0 answers
134 views

Picovoice with hifiberry DAC+ADC Pro Not working

I am trying to run picovoice i.c.w. HiFiBerry DAC+ ADC Pro but I can't get it to work. All works fine when I use an usb microphone though. As an example I'm running cheetah_demo_mic.py import argparse ...
Robert's user avatar
  • 75
0 votes
1 answer
1k views

Playback open error: -16,Device or resource busy

I am trying alsa speaker-test utility after playing a .mp3 file using gst-play-1.0 in my customized Linux Os.but the speaker-test utility is unable to produce the sound over any channel and its ...
Mobin's user avatar
  • 1
0 votes
0 answers
286 views

ALSA Errors in my Python code using Raspberry Pi

I have written this tts code and downloaded all neccersarry packages on my system. It uses openai to be able and have converstations with me and works perfectly on my windows computer. However, when I ...
Zachary Raddatz's user avatar
0 votes
0 answers
45 views

How can I map a specific pyaudio index to a usb sound device address

I have several USB sound inputs all with the same Name and Serial. I can list them with pyaudio: import pyaudio p = pyaudio.PyAudio() info = p.get_host_api_info_by_index(0) numdevices = info.get('...
Tycon's user avatar
  • 123
0 votes
0 answers
209 views

GSTreamer audio/video synchronization over RTP

I am trying to record a microphone from one PC and send it ove RTP to a laptop on a local network, and record video from another PC and send it to the same laptop, also over RTP. This part is fairly ...
Alex Cocora's user avatar
0 votes
1 answer
119 views

ALSA lib: Getting mixer volume returns wrong value

I have a upnp streaming app, written in C, in which I use alsa-lib to get and set the ALSA Master output volume. I use the APIs snd_mixer_selem_get_playback_volume and ...
A. Faure's user avatar
  • 133
1 vote
1 answer
108 views

Pyttsx3 Ubuntu aplay:main:831 Error audio open error

I've been trying forever to get my pyttsx code working. I am working in a Github codespace based on Linux Ubuntu. Since it is not my own I can't access any of its settings. enter image description ...
VinPy's user avatar
  • 36
0 votes
1 answer
411 views

Capture sound of an application inside a docker container

I have an application (that I do not own and cannot control) that plays audio. I want to capture the audio coming from this application and process it realtime. Although there are multiple guides on ...
The Brain's user avatar
0 votes
1 answer
166 views

ALSA get a simple mixer element (snd_mixer_elem_t using) from a control event (snd_ctl_event_t)

I have a sound card's control open and am polling on ALSA control events. The event is pulled from the event stream using the gtkIOStream ALSA::Control class like so : snd_ctl_event_t *event; ...
Matt's user avatar
  • 509
0 votes
1 answer
445 views

Remove the package alsa from the Yocto Build

My requirement -- was to Remove the package alsa from the Yocto Build. So I just tried to Remove the ALSA Packages from the Yocto Build. I followed same procedure as you stated  ...
SAI_TEJA's user avatar

1
2 3 4 5
22