Audio compression to compress recording

I am making an app with app designer in matlab the app will record from user I have done this part.
but it is required them to compress that recorderd audio I have made the button for the compress but I can't figure out the way to compress that audio
Here is the code for the recording.
function RecordButtonPushed(app, event)
audioObject = audiorecorder;
duration = 7;
msgbox("Recording started");
recordblocking(audioObject, duration);
msgbox("Recording Stopped");
assignin('base','audioObject',audioObject)
end
That the handler for the recording button then I should compress that audio and play it.
So, anyone has an idea about how to compress the audio?

3 comentarios

Geoff Hayes
Geoff Hayes el 26 de Abr. de 2020
okh99 - do you want to reduce the sampling rate (and so reduce the total number of samples? or do you want to compress the audio recording file size?
okh99
okh99 el 26 de Abr. de 2020
I want to compress the audio recording file size

Iniciar sesión para comentar.

Respuestas (0)

Preguntada:

el 25 de Abr. de 2020

Comentada:

el 28 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by