Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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
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
1 answer
602 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
205 views

Unclear sound or high pitched noise when recording with ALSA on NanoPi NEO

I'm struggling with ALSA examples that can be found in Linuxjournal I copied over the code into the .c files and compiled them gcc -Wall Record_Listing4.c -lasound -o record into executables: Listing3 ...
Robert Grzesiak's user avatar
0 votes
2 answers
8k views

PulseAudio: Unable to Connect: Connection refused in LibGDX

I got this error in IntelliJ while trying to set up LibGDX. I'm running PopOS (Ubuntu-based). Any help? ALSA lib ../../pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection ...
Kuumin's user avatar
  • 23
2 votes
0 answers
390 views

Python PyAudio fix warnings

In Ubuntu Desktop 21.10 LTS i have the following errors - warnings: chris@chris-Inspiron-3847:~/Documents/papinhio-player/database/init$ python Python 3.9.7 (default, Sep 10 2021, 14:59:43) [GCC 11.2....
Chris P's user avatar
  • 2,353
1 vote
1 answer
175 views

Something wrong with ALSA configurations cant figure out what

I am using Ubuntu 20. I typed sudo nano /usr/share/alsa/alsa.conf and got the following output: output of the above command I don't know if there is something wrong with it, but whenever I try to run ...
Mukta Patil's user avatar
1 vote
0 answers
510 views

modprobe snd-dummy on linux server, ffmpeg -f alsa is recording noise

Some people say that the parameter fake_buffer can remove the noise, but I tried it and there is still noise modprobe snd-dummy fake_buffer=0 #modprobe snd-dummy fake_buffer=0 # lsmod |grep snd ...
booksword's user avatar
0 votes
0 answers
219 views

No output in speech recognition module of python

When i run below python script it shows some error. import speech_recognition as s sr=s.Recognizer() print("Please, speak now....") with s.Microphone() as m: audio=sr.listen(m) ...
rebel_roar's user avatar
1 vote
0 answers
157 views

ALSA error shown when instatiating sr.Microphone()

I am trying to make a small speech recognition app using Tkinter and speech_recognition. I am able to instantiate the recognizer object, but when i try to instantiate the microphone object, i get ...
rsg33's user avatar
  • 11
0 votes
2 answers
2k views

Linux: Linking with Alsa undefined references

Experienced C++ dev here (although not a whole lot of in-depth experience with the underlying details of compilers/linking). I'm on Ubuntu 16.04, and can't seem to link against the alsa library. I ...
Tim Gendron's user avatar
1 vote
0 answers
4k views

Function auto mute in alsamixer is used for what?

I'm now writing a program (c and c++) using alsamixer on ubuntu. But I have a problem that sometimes my alsamixer goes back to mute. I think the reason is the function auto mute of alsamixer. But I do ...
Thanh Nguyen's user avatar
1 vote
2 answers
433 views

USB midi keyboard detected by amidi but not by java

I'm using an Edirol PCR keyboard connected by USB to my laptop running Ubuntu 18.04.2 LTS. I get the following output from amidi -l: Dir Device Name IO hw:1,0,0 PCR MIDI IO hw:1,0,1 PCR 1 I ...
Tom Price's user avatar
  • 119
0 votes
0 answers
717 views

How to inform vlc regarding audio sample rate of the device in ubuntu

I'm working in FPGA device, which can provide raw video and pcm data. I'm using v4l2 and alsa framework for video and audio respectively. Audio flow path is using ALSA framework and video flow path is ...
Chakravarthi Pradeep's user avatar
4 votes
1 answer
6k views

linux pipe audio to virtual microphone using pactl

I found an example that shows how to pass a wave file as microphone input by utilizing "pactl load-module module-pipe-source". The issue with this example is that it relies on an infinite while loop ...
Critical Labs's user avatar
0 votes
1 answer
519 views

ALSA on RPi3 inside Docker with Chromium looses audio randomly

What is the setup I'm running Chromium 66.0.3359.181 inside Docker container running Ubuntu 16.04.4 on top of Alpine 3.7, all this Raspberry Pi 3. What I'm trying to achieve I want to run an HTML5 ...
Yaron's user avatar
  • 1,232
1 vote
1 answer
6k views

Sound on system but pulseaudio access denied issue

I'm having an issue with PulseAudio and also since many days that give me some headaches... I've to sound on my system, no problems with that (both firefox and Spotify works) but I've issues in the ...
76MPaul's user avatar
  • 11
0 votes
1 answer
2k views

Portaudio select input device for capturing

I face some problems with set up input device for portaudio. I have 2 cards 0 and 1, and I want to configure: card 0 for capturing, card 1 for playing. So, I edit asound.conf like this: pcm!....
Hiep Nguyen's user avatar
0 votes
0 answers
291 views

I want to detect audio sources connected to Tx2 using program ioctl/gstreamer (ubuntu)

I want to detect which all audio device connected to Tx2 BOARD, and which of them are recording. i tried many thing but those didn't work. Below are the details. I have done for video device ...
Amir Raza's user avatar
0 votes
0 answers
2k views

Travis-CI : ALSA lib confmisc.c:768:(parse_card) cannot find card '0'

I have an open source project that implements - next to other functionality - a media player that is supposed to be remote controlled. The source code is available under https://github.com/wzr1337/...
wzr1337's user avatar
  • 3,757
-1 votes
1 answer
96 views

Fix microphone volume for a user [closed]

I need to fix the microphone volume for any user in Ubuntu 16. What I want is to fix the volume, say, to %40, and keep it at that value for all times. It must be changed by no user except root. How ...
recap2000's user avatar
1 vote
1 answer
2k views

How can I get volume level (or dB) of microphone input with alsa API?

I can do it with command line : arecord -vv , but I need to finish it with code , I don't known which API can make it .
George lucas's user avatar
5 votes
0 answers
3k views

kvm/qemu - Audio from windows guest to host without spice

I am trying to get my Windows 10 domain working with qemu using virt-manager. Everything seems to work fine (GPU passthrough, CPU), except when I am running the spice console in order to hear the ...
michaelschufi's user avatar
0 votes
1 answer
3k views

How to use alsa sound and/or snd_pcm_open in docker?

I am running an Ubuntu 12.04 Docker container on an Ubuntu 16.04 host. Some test code I have exercises 'snd_pcm_open'/'snd_pcm_close' operations with the SND_PCM_STREAM_PLAYBACK and ...
abdus_salam's user avatar
0 votes
1 answer
196 views

Alsa Driver Ubuntu Compiler error when running 'configure' for installation

When running configure in alsa driver installation, I get the error like this checking for GCC version... ./configure: eval: line 3547: syntax error near unexpected token `)' ./configure: eval: line ...
Tarun Maganti's user avatar
1 vote
0 answers
341 views

Strange ALSA monitor device behaviour

Faced strange ALSA monitor device behaviour while recording sound using C++ with Qt 5.5.1 framework on Ubuntu 16.04.1 amd64. Count of bytes read from monitor device (input device which replays sound ...
Dmitrii Vinokurov's user avatar
0 votes
1 answer
190 views

Cadence not showing ALSA driver tab

I recently reinstalled Cadence and the ALSA tab no longer appears in the configuration. How can I get it back?
Sean Kelley's user avatar
2 votes
1 answer
1k views

How can I record that sound going out of my speakers (not what's coming into the mic)?

I'm trying to record the sound my computer produces (without using a microphone) I've found these two commands that work to record my microphone output into files: # creates mp3 arecord -f cd > ...
max pleaner's user avatar
  • 26.7k
0 votes
1 answer
1k views

Python alsaaudio capturing sound

I'm trying to capture data from microphone. Code is pretty simple but I get the error alsaaudio.ALSAAudioError: Capture data too large. Try decreasing period size for some reason. Tried google it but ...
Long Smith's user avatar
  • 1,401
0 votes
0 answers
172 views

ALSA error messages pyaudio [duplicate]

Have some ALSA error messages. Everything work well, but it bothers me. I'm using pyAudio 0.2.9, Ubuntu 15.10 x64, python3.4. Is any solutions to ignore this? ALSA lib pcm_dmix.c:1024:(...
D. Chernyshov's user avatar
4 votes
2 answers
2k views

How to change between speakers and USB headset using a script on Ubuntu?

I am trying to write a script to change between speakers and headset. I want to be able to change the output and the input with a shortcut. I used these commands to see my audio devices : $ pacmd ...
l.g.karolos's user avatar
  • 1,142
6 votes
1 answer
20k views

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 ...
Aaditya Ura's user avatar
  • 12.6k
0 votes
1 answer
685 views

QAudioDeviceInfo::availableDevices does not refresh

On a PC w/ Ubuntu 14.04, Qt 5.5.0 & Bluez 4.101-0ubuntu13.1, I'm trying to play audio to BT sink devices over A2DP. To do so, I'm connecting to those devices using Bluez and then play to it using ...
G. Ko's user avatar
  • 403
1 vote
1 answer
3k views

PyAudio not capturing correct audio data

I can't get a PyAudio stream to capture audio data from my USB microphone. I'm running a Python program on Ubuntu trusty (Ubuntu 14.04.3 LTS). I've configured ALSA to set my USB microphone as the ...
deef's user avatar
  • 4,740
2 votes
2 answers
3k views

Linux ALSA Driver using channel count 3

Am running my ALSA Driver on Ubuntu 14.04, 64bit, 3.16.0-30-generic Kernel. Hardware is proprietary hardware, hence cant give much details. Following is the existing driver implementation: Driver ...
vsu's user avatar
  • 33
1 vote
3 answers
2k views

error in Ubuntu when running portaudio example

I installed portaudio on Ubuntu 14.04 and compiled a test program as follows: gcc -o Test3c Test3c.c ../libportaudio.a -lrt -lasound -ljack -lpthread -lm which had no errors. (Test3c.c is the same ...
user1704042's user avatar
0 votes
2 answers
210 views

How to determine the last time the audio device was playing a file?

I would like to use C in order to get the last time the soundboard was playing a file. Is there a way I could do that?
Vintage's user avatar
  • 238
6 votes
2 answers
3k views

ChucK Audio Input/Output Error in Ubuntu

I installed ChucK in my Ubuntu 12.0.4 VirtualBox. When I started the miniAudicle Virtual Machine, I got a pop up error message "The Virtual Machine appears to be hanging.......Abort the current ...
hangee's user avatar
  • 739
7 votes
1 answer
5k views

Adding multiple Loopback Alsa devices in ubuntu [closed]

I need to create virtual loopback alsa sinks in my ubuntu setup. I can create one by adding the following to /etc/modprobe.d/sound.conf alias snd-card-0 snd-aloop options snd-aloop index=21 ...
amustafa's user avatar
  • 858
2 votes
1 answer
515 views

choppy sound on alsa after 30 min

I am writing to alsa in 10ms period to play music, it works great at beginning, however, it has some choppy sounds after 30min playing, and the choppy sounds only lasts for a few mins. Any ideas why? ...
xijing dai's user avatar
1 vote
1 answer
2k views

My speakers and headphones are not working on ubuntu 13.04 [closed]

I used to work on Ubuntu 12.10 but then suddenly my speakers stopped working, my headphones didn't used to work before and still they are not working, i then upgraded to 13.04 in hope that it may ...
amian's user avatar
  • 197
0 votes
0 answers
101 views

Asound fails to play a sound

I’m trying to use asound to play some sound in C++, but I’m stick with this error: Rate doesn't match (requested 44100Hz, get 0Hz) I tested my program on an Ubuntu and it works, but definitely fails ...
phaazon's user avatar
  • 2,002
3 votes
1 answer
4k views

ALSA & Python - Capturing multiple mono audio inputs

I'm using the python audio alsa library to interact with my M-Audio Delta 1010LT PCI audio interface. This audio interface has 8 analog inputs. I'd like to analyze the signal of one specific mono ...
Dominik Schreiber's user avatar
5 votes
0 answers
1k views

GStreamer Custom-Plugin and alsasink Unable to Detect Format

I'm developing a GStreamer plugin following the GStreamer Plugin Writer's Guide and using gst-element-maker from the gst-plugins-bad repository with the base class set to basetransform. As a starting ...
John's user avatar
  • 1,781
5 votes
3 answers
17k views

How do I configure JACK audio server to automatically use a specific card?

I'm running Ubuntu 12.04 studio on a HP Pavilion dm1 4200sg netbook. It's pretty much a fresh install. I try to start jackd server by running jackd -R -d alsa and it fails with output: JACK server ...
richardr's user avatar
  • 5,182
25 votes
6 answers
32k views

How to programmatically change volume in Ubuntu

How do you programmatically change volume in Gnome on Ubuntu, either from the command line or an API (Python preferrably)? The only answers I found to similar questions use amixer, which seems to ...
Cerin's user avatar
  • 64.5k
6 votes
1 answer
3k views

Use ALSA pcm outputs via the Java SoundSystem

I have a sound card with multiple outputs and use ALSA to map them to 2 separate stereo channels. The configuration works fine and allows me, for example with speaker-test to play audio on them. I ...
nanoman's user avatar
  • 1,069
1 vote
1 answer
1k views

C code for tone generator in linux

I want to write a c code to generate tone using array output to DAC in ubuntu. (preferably alsa driver) For example: I need to be able to send voltage output to DAC like 1100000 etc. to be able to ...
higherDefender's user avatar
1 vote
2 answers
2k views

How to connect to ALSA server (in this case, Timidity) in Ubuntu using C++?

I am trying to use MIDI under Linux Ubuntu with C++. After a day of using several tools (e.g., JACK) with no success (JACK lags like mad on my machine), I am now trying to use Timidity as the MIDI ...
zw324's user avatar
  • 27.1k