Questions tagged [libalsa]

The ALSA (Advanced Linux Sound Architecture) library

The ALSA (Advanced Linux Sound Architecture) library

http://www.alsa-project.org/main/index.php/Main_Page

68 questions
19
votes
1 answer

ALSA Configuration How To Combine MMAP Emulation and Ladspa Plugin in asound.conf

I have a working PCM output with good sounding audio on a Raspberry Pi compute module ( Linux ) using the rpi dac. The 'aplay -l' command output shows the following: >> aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sndrpirpidac…
PhilBot
  • 748
  • 18
  • 85
  • 173
9
votes
1 answer

ALSA application to read and play a WAV file on Raspberry Pi

Trying to learn the ALSA audio layers to eventually write an ALSA device driver for the Raspberry Pi platform. Starting simple, I glued together various samples from the ALSA project site and other online sources to do the simplest thing: read a WAV…
Mark McMillan
  • 93
  • 1
  • 3
6
votes
1 answer

ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card arecord: main:722: audio open error: No such file or directory

i am working on speech recognition . for this i am using "alsa-utils" but when i try to use this script #!/bin/bash echo “Recording… Press Ctrl+C to Stop.” arecord -D plughw:1,0 -q -f cd -t wav | ffmpeg -loglevel panic -y -i – -ar 16000…
Aaditya Ura
  • 12,007
  • 7
  • 50
  • 88
4
votes
2 answers

Sharing a microphone audio stream on Linux

As much as it matters my scenario is developing an accessibility application not any kind of malicious eavesdropping, whereas also within this scenario there are various research and development implied scenarios, all of which should greatly benefit…
matanster
  • 15,072
  • 19
  • 88
  • 167
3
votes
2 answers

how to solve these ALSA errors

import speech_recognition as sr listener= sr.Recognizer() try: with sr.Microphone() as source: print("hai say something...") voice = listener.listen(source) command = listener.recognize_google(voice) …
SOORYADEV
  • 39
  • 1
  • 7
3
votes
1 answer

aplay piping to arecord using a file instead of stdin and stdout

Below command will record the data from default device and output it on stdout and aplay will play the data from stdin. arecord -D hw:0 | aplay -D hw:1 - Why we prefer stdin and stdout instead of writing into a file and reading from it as…
user3053970
  • 95
  • 1
  • 10
3
votes
1 answer

How to get PCM device path in ALSA?

What is the easiest way in ALSA library to get the file name of the physical playback device from a pcm handle or name? For example for the pcm device hw:0,0 I would like to get the /dev/snd/pcmC0D0p. This is rather simple (just transfer the…
Brain
  • 311
  • 2
  • 12
3
votes
1 answer

ALSA Lib 1.1.2 Compilation error

I am trying to cross compile ALSA Lib application for linux-arm based processor. I am using eclipse to do the build for me. The build phase of the application is successful but I get errrors when the gcc linker tries to complete. I get the following…
2
votes
0 answers

ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card

I'm currently trying to use the ALSA lib to emit sounds. However, I'm getting this following error: Setting random seed to 345. Adding stimulus TestBeep... ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card Process Process-1: Traceback…
unixcorn
  • 375
  • 1
  • 5
  • 17
2
votes
1 answer

How to use alsa library API to work with Headphone and Speaker?

I want to implement (mute/unmute and volume up/down) for Speaker and Headphone using c program.Using amixer command line utility as shown in this link…
raj123
  • 564
  • 2
  • 10
  • 27
2
votes
1 answer

pyAlsaaudio install on openSUSE

I'm trying to install pyAlsaaudio on my openSUSE distro Output of uname -a: Linux linux-0cd5 4.12.14-lp150.12.48-default #1 SMP Tue Feb 12 14:01:48 UTC 2019 (268f014) x86_64 x86_64 x86_64 GNU/Linux I downloaded the source from this…
rajan
  • 435
  • 3
  • 9
2
votes
0 answers

play multiple wav files simultaneously using alsa c api

I want to implement a specific functionality to my project which includes continuously playing a sample-default.wav in the background and play a sample-specific.wav file when some specific condition matches. What I really want is that, when…
iamNitin16
  • 56
  • 4
2
votes
1 answer

Programmatic ALSA loopback

I need some pointers where to start with the following: From any application that plays audio using ALSA to the connected speaker I'd like to grab the samples and do some audio processing. I am not in control of the player and I'd like to be able to…
kwasmich
  • 121
  • 4
2
votes
0 answers

ALSA Bad file descriptor and robot voice

I am working on a linux embedded device and each time I start to play an audio stream the call to snd_pcm_start, returns the -77: which means "File descriptor in bad state". #define EBADFD 77 /* File descriptor in bad state */ I rebuild the…
peregrinus
  • 147
  • 1
  • 12
2
votes
2 answers

How to list ALSA MIDI clients without reading `/proc/asound/seq/clients`?

Is there a known way to list existing MIDI clients using the ALSA API only, without reading the special file /proc/asound/seq/clients? I searched the ALSA MIDI API reference, and could not find any match. I believe there must be a way to achieve…
Hibou57
  • 6,870
  • 6
  • 52
  • 56
1
2 3 4 5