P
P
pixal2015-10-17 11:22:56
linux
pixal, 2015-10-17 11:22:56

How can one write sound that plays Linux sound in Python?

Namely Raspbian. For example, music plays in some kind of player. A Python script listens and, for example, displays a graphical spectrum.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitold S, 2015-10-22
@vit1251

More detailed tasks by subtasks:
1) Sound interception (most likely the task is rooted in Alsa or PulseAudio interception, but it is easier to read the sound file itself - the same WAV is easiest through import wave, but say mp3 has lame binders);
2) Analysis of the spectrum (for this you need to get the spectrum itself, here the knowledge of MATANA oh finally comes in handy, or just take the Cish FFT, say the same numpy);
3) Drawing (for drawing there are examples on the official flash drive in the opt directory, or pygame or DirectFB);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question