필터 지우기
필터 지우기

Enhancing an Audio file

조회 수: 17 (최근 30일)
abhimanyu dubey
abhimanyu dubey 2020년 10월 4일
댓글: Star Strider 2020년 10월 4일
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

채택된 답변

Star Strider
Star Strider 2020년 10월 4일
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
abhimanyu dubey
abhimanyu dubey 2020년 10월 4일
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 2020년 10월 4일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by