MATLAB Answers

Real Time audio modification and reproduction trough GUI

10 views (last 30 days)
josue pareja
josue pareja on 17 Nov 2019
Commented: Walter Roberson on 18 Nov 2019
Hi, I am designing an MP3 Player using Matlab, but I am also looking to implement a real time equalizer on it. Before working on the signal processing related to signal equalization I would like to know first how can I modify in real time the data from the audio file while it is still reproducing, of course, everytime I make modification on it the output signal that is reproduced by the speakers should be modified as well.
I ask this because by now I was only capable of ploting smalls windows of the data on the GUI in real time while the MP3 is reproducing using 'play function' and CurrentSample from the audioplayer object, generated by .mp3 file.
I will share the complete project here, but to make a long story short, the specific cuestion is: How can I modify in real time the audio Output of an audioplayer object while the audio file is reproducing.!g9Ih2SbJ!I5i4UfX7fnG9DCw3MKx8TlEIPXRxBgMKWoAh7gmNZ7w


Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 17 Nov 2019
Edited: Walter Roberson on 17 Nov 2019
You cannot do that for audioplayer objects.
In current releases you would use the Audio System Toolbox.
In your release you would either use the DSP toolbox, or else write some Java code to talk to your audio outputs, or else use Data Acquisition toolbox.


josue pareja
josue pareja on 18 Nov 2019
thanks for your reply, I am using Matlab 2014B, does this version has Audio System Toolbox? Does Data Acquisition toolbox works with regular auido embedded card on my pc? I tough it was mostly used with external Data Acquisition devices like NI DAQ.
I have never used Java code on Matlab, in my current situation would you please recomend me which way should I go?
Walter Roberson
Walter Roberson on 18 Nov 2019
Audio System Toolbox was new in R2016b.
In your release you can use analoginput('winsound') from Data Acquisition Toolbox. See . The implication is that you should be able to use analogoutput('winsound') as well.

Sign in to comment.





Translated by