19 questions
0
votes
0
answers
22
views
How to run different python multiprocesses with different user privileges
I'm coding a RPi project in python that requires me to access microphones for speech_recognition, LEDs for rpi_ws281x, and control output volume with alsaaudio. The problem I'm having is that to ...
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 ...
0
votes
1
answer
150
views
use pyalsaaudio to connect an input and output device
I'm facing an issue with my Python audio streaming code. Currently, when running the code, I can only hear a "tuuuut" sound on the Bluetooth audio speaker. I expected the audio from the ...
2
votes
1
answer
286
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 ...
0
votes
1
answer
128
views
What does alsaaudio.PCM_FORMAT_MPEG do exactly?
I want to stream audio from my microphone with python (on linux). I used the PyAlsaAudio module, but I got stuck.
My code so far:
import alsaaudio
CHAN = 1
RATE = 44400
PERIOD = RATE * 1
inp = ...
0
votes
0
answers
939
views
I am trying to run command aplay and arecord and it does not work also pulseaudio is having some issues
I am trying to run commands like aplay, arecord but I get following error
ALSA lib ../../alsa-plugins-1.2.1/pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Timeout
arecord: main:828: ...
1
vote
1
answer
260
views
Pyalsaaudio recording allowing for huge delay without overrunning the buffer
I want to record audio in realtime on Ubuntu and pyalsaaudio seems to work best for detecting my input devices correctly. I started off with the included recordtest.py script, and wanted to experiment ...
1
vote
1
answer
298
views
Python3 pyalsaaudio "Deprecated setchannel, setformat, setrate and setperiodsize"
Im just in the process of updating some python programs to work on Python3. One of these uses Alsa Audio and according to their github entry, version 0.9.0 includes:
Pyalsaaudio 0.9.0
Added keyword ...
1
vote
0
answers
127
views
How to get data just from one channel using python and alsaaudio
I am using python 3 and with alsaaudio I read data from microphone but I have to work with each channel separately. So is there a way how to get data just from one channel? Or how to parse data from ...
0
votes
1
answer
229
views
Alsa Audio library - Error -> Has no PCM member
I'm working on a project where I have to control 8 audio channel.
I'm programming in python3 using alsaaudio library. It all worked but I have these 3 errors and, once I start the program, my internet ...
2
votes
1
answer
194
views
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
...
2
votes
1
answer
14k
views
Taking audio input from PC microphone using python
I am using ubuntu 16.04 and I have to take audio input from my pc microphone. I am using python 3. I used pyalsaaudio. I copied the code from somewhere. Here is the code
import alsaaudio, time, ...
2
votes
2
answers
1k
views
How would I add volume on to the current_volume list in pyalsaaudio?
I'm trying to add on volume to a current set volume, in this case we will say it's 80%. Using the alsaaudio module in Python, there is a function called getvolume
#declare alsaaudio
am = alsaaudio....
1
vote
1
answer
728
views
What to put for the alsaaudio python card?
I am trying to use alsaaudio in my python code.
inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE, alsaaudio.PCM_NONBLOCK, card)
For the third parameter card, what should I put?
root@abc:~/Desktop# arecord ...
0
votes
2
answers
5k
views
Alsaaudio record and playback
I was just playing around with sound input and output on a raspberry pi using python.
My plan was to read the input of a microphone, manipulate it and playback the manipulated audio. At the moment I ...
1
vote
0
answers
281
views
Python alsaaudio and pjsip conflict
I writing app in python that uses pocketsphinx and pjsip
I use pocketsphinx keyword search to wakeup the app and pjsip as phone
the problem is when I try call the "call" function and after that ...
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 ...
0
votes
0
answers
525
views
Confusing Python-AlsaAudio Output, No sound on square wave generator
So I'm working on this project programmed in python that requires audio output. It generates square wave audio, so you can hear a click from the speaker from when the audio changes from high to low or ...
3
votes
2
answers
9k
views
alsaaudio library not working
Has the alsaaudio library been ported to python3? i have this working on python 2.7 but not on python 3.
is there another library for python 3 if the above cannot be used?