Python Forum
Help with python and audio - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Help with python and audio (/thread-9803.html)



Help with python and audio - Burca - Apr-28-2018

I'm sorry if this is not the right place :(

I just started a home project for controlling the rgb light via wifi; The control part is working but I still need to figure out my inputs to make cool effects now, like change the brightness and color with the current amplitude and frequency of the sound.

Here is what i need:
Some way to get the amplitude and volume of what the default output device is playing

IE: Vector2 ampXfreq = someCoolFunctionToDoWhatINeed();

Can someone help me out ? (sorry for the example in C#, This is my first python project)


RE: Help with python and audio - Larz60+ - Apr-28-2018

There is pyaudioanalysis, which I haven't used, but looks promising
install with:
pip install pyaudioanalysis
github page shows features: https://github.com/tyiannak/pyAudioAnalysis
wiki here: https://github.com/tyiannak/pyAudioAnalysis/wiki


RE: Help with python and audio - Burca - Apr-29-2018

I'm sorry, i don't see how it can help me to get the input as the default windows output sound device, I don't need to analyze the music.

Thank you !