Enhancing an Audio file

51 views (last 30 days)
abhimanyu dubey
abhimanyu dubey on 4 Oct 2020
Commented: Star Strider on 4 Oct 2020
I've an audio file with me (Audio File), who's volume is too low. I need a increase the volume just enough so that I could understand what is being said in the audio file.
Is is something which could be done in Matlab? If yes, then can we do it with Matlab code, so that the whole process could be automated. ( I've quite a lot of audio files like this). I just need a quick and dirty solution which could work on such audio files. I haven't done any audio signal processing, so kindly forgive me, if this seems like an obvious thing.
Any help would be greatly appreciated.
Thanks

Accepted Answer

Star Strider
Star Strider on 4 Oct 2020
Amplifying it is straightforward:
[y,Fs] = audioread('Madam’s Comments on draft 3 of ppt (mp3cut.net)-2.mp3');
[yh,yl] = bounds(y); % Optional
sound(y*500,Fs)
(I cannot understand any of what is being said.)
  2 Comments
abhimanyu dubey
abhimanyu dubey on 4 Oct 2020
Loll!! :P
Thanks a lot for the quick solution. It makes sense. I should have thought of it. Since audio files are 1-D arrays, I could have simply augmented the sound ( along with noise ), by simple multiplication by a constant.
I had made a very simple addition here, and it worked like a charm.
clear ;
close all ; clc ;
[filename , filepath] = uigetfile('.mp3') ;
pj = [filepath , filename] ;
[y , fs] = audioread(pj) ;
y = 500 * y(y ~= 0) ;
pj = '/Users/abhimanyu/Downloads/PHD Literature survey/matlab_audio_ppt.wav' ;
audiowrite(pj , y , fs ) ;
And yeah, Ofcourse you won't understand it, since we were talking about DNS of a turbulent gas-particle suspension. So yeah, I can't say anything about you, but it makes perfect sence to me now. :)
Thanks once again for the quick reply.
Star Strider
Star Strider on 4 Oct 2020
As always, my pleasure!

Sign in to comment.

More Answers (0)

Categories

Find more on Measurements and Spatial Audio in Help Center and File Exchange

Tags

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!