Тёмный

python qt audio monitor 

Scott Harden
Подписаться 6 тыс.
Просмотров 16 тыс.
50% 1

Here's a minimal-case example of a cross-platform python application using PyQt4 and PyQtGraph to plot real-time data obtained from the sound card input (or sound card mapper if no input exists). Numpy and scipy do the FFT heavy lifting. Extra routines I route use PyAudio to invisibly select the most-likely-to-succeed sound card for an input source. Also, this device passively monitors the sound card, so you can run multiple instances. It should run identically in Linux. Here I'm running it on Windows 10 with a stock WinPython 3.5.1 distribution.
Full details:
www.swharden.co...
Source code:
github.com/swh...
Song (to be RU-vid legal):
Mree - Goodnight & Goodbye

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@CraigHollabaugh
@CraigHollabaugh 7 лет назад
Hey Scott, I got your audio monitor running in no time on ubuntu 16. Its exactly what I needed for a little project I'm working on.
@user-um5hi6sf9t
@user-um5hi6sf9t 4 года назад
thanks for the incredible work!
@martinbleasel6157
@martinbleasel6157 6 лет назад
Hi Scott, Many thanks. That is a fantastic bit of code. Works really well on my Ubuntu box (after installing a few python modules, and running go.py). I appreciate it being made available.
@_XY_
@_XY_ 2 года назад
Fast fourier tranform? Cool.
@elmoiv
@elmoiv 2 года назад
Hey Scott, Can we detect frequencies higher than 5Khz? Because I am working on a project that detects ultrasonic frequencies. Thanks
@gatzem2491
@gatzem2491 6 лет назад
Hey Scott. I looked after this project and saw your code on python. Can you tell me where the variable of the input is? Is it stream_start? Thanks. Bcs i cant find your input variable on your code
@calmingly8044
@calmingly8044 4 года назад
Could you help me code this too?
@MegaNatsirt
@MegaNatsirt 2 года назад
hi, i know its been years since you made this video, but i'll try asking anyway. Is it possible to get the values its plotting as an array? Im a noob at coding audio stuff.
@MegaNatsirt
@MegaNatsirt 2 года назад
found it, sorry
@skopelosgate4
@skopelosgate4 4 года назад
Hi Scott, great video! I have one quick question and I would be really grateful if you could answer it. In case that I decide to record and store the real-time audio input signal while plotting it (its doesn't mater if I plot the time signal or the FFT) I keep getting repetitive gaps on the recording, which are due to the delays added from the plotting. Any ideas on how to solves this? The gaps are more noticeable when I record a sine wave instead of a more complex signal. Thanks! :)
@swharden
@swharden 4 года назад
Unfortunately it sounds like your computer's processing load is occupied so much by the software/GUI that it's "gapping" on the recording. Perhaps try using other software to perform the recording? ... or try reducing the redraw rate in the Python app?
@skopelosgate4
@skopelosgate4 4 года назад
@@swharden thanks a lot Scott! I'll give that a shot! 😊
@DontMansion
@DontMansion 4 года назад
How can I make this code without functions?
@baduttbangsatt7358
@baduttbangsatt7358 6 лет назад
would it be any different if I used it on Qt Designer PyQt5?
@AliceHuman
@AliceHuman 6 лет назад
Muito obrigado por partilhar este conhecimento!
@mateuszradwanski2308
@mateuszradwanski2308 6 лет назад
mortadela por favor
@muhammadosama3358
@muhammadosama3358 5 лет назад
Are you using an external audio card? There is alot of noise in my setup
@swharden
@swharden 5 лет назад
I used the microphone card built into my computer motherboard. (the microphone hole in the back)
@muhammadosama3358
@muhammadosama3358 5 лет назад
@@swharden I'm doing the same (using built in audio card on my laptop)...but the noise is still very disturbing...I don't know if using an external audio card will stop it...I might use USB protocol instead
@swharden
@swharden 5 лет назад
Google for “SoundCardECG” and SWHarden and you’ll fine a similar windows project written in C# (with a click-to-run EXE) - maybe see if that works better for you?
@swharden
@swharden 5 лет назад
Doh - I didn’t mean sound card ecg. Google “ScottPlot” and one of the downloadable examples is an audio monitor. Check that out!
@muhammadosama3358
@muhammadosama3358 5 лет назад
@@swharden I fixed my problem with one line of code (software low pass filter)...I did see your C# code though, it's impressive! Keep up the good work!
Далее
POV: Your kids ask to play the claw machine
00:20
Просмотров 9 млн
▼ЮТУБ ВСЁ, Я НА ЗАВОД 🚧⛔
30:49
Просмотров 456 тыс.
DIY ECG - 1 op-amp version
30:16
Просмотров 60 тыс.
Realtime Audio Plotting with Python, QT, and PyAudio
2:40
Plotting real-time data using Python
7:50
Просмотров 136 тыс.