Hi. Does anyone know how to convert mpeg to wav?

1 visualizzazione (ultimi 30 giorni)
For an assignment of mine I am asked: Random numbers can be used to simulate the noise we hear as static on the radio. By adding this noise to data file that store music, we can study the effect of static on recordings. Create a M-file (script) where you upload a sound file, after that, add noise and check how it impacts the signal.

Risposta accettata

Image Analyst
Image Analyst il 11 Mar 2017
I don't know how to strip the audio track off a MPEG file using MATLAB. You can do that from the web site: http://peggo.tv/
But attached is a demo where I use rand() to add noise to an audio signal (a .wav file) read in with audioread(). Adapt as needed, for example use inputdlg() to ask the user how much noise they want, or calculate signal to noise ratio, or whatever "checking the impact" means to you.

Più risposte (0)

Categorie

Scopri di più su Audio I/O and Waveform Generation in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by