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 Comments

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?
I want to compress the audio recording file size

Sign in to comment.

Answers (0)

Asked:

on 25 Apr 2020

Community Treasure Hunt

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

Start Hunting!