how to remove silence from an audio signal.i tried from the following code but not able to removal silence.
4 views (last 30 days)
Show older comments
bold %program to remove silences from a speech recording %step 1- break the signal into frames of 0.1seconds fs=11250; %fs=22050; frame_duration=0.1; frame_len=frame_duration*fs; N=length(ip); num_frames=floor(N/frame_len); new_sig=zeros(N,1); count=0; %frame1=ip(1:frame_len); %frame2=ip(frame_len+1 :frame_len*2) %frame3=ip(frame_len*2+1 :frame_len*3) for k=1:num_frames %extract a frame of speech frame=ip( (k-1) *frame_len +1 : frame_len*k); %step2 - identify silence by finding frames with max amplitude less than 0.03
max_val=max(frame);
if(max_val>0.03) %this frame is not silent count=count+1;
new_sig( (count-1)*frame_len +1 :frame_len*count)=frame;
end end
2 Comments
Sivakumaran Chandrasekaran
on 22 Jan 2014
mail me the code to vlsiva@yahoo.co.in.. i shall check it and get back to you.. what is meant by ip in your code
Soniya Rudani
on 24 Jul 2014
hi,
I am doing my final year project on password detection, and dtmf tone recognition is a part of it. The input to my file are the DTMF digits but since it has silence intervals in it, i.e., 'beep',silence,'beep',silence, and due to this silence when fft is taken,The system cannot identify the correct frequencies of dtmf so how can i remove this silence?
Hope you can come with a clue to this. Thanks!
Soniya.
Answers (0)
See Also
Categories
Find more on Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!