Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

about sound wave cuting code

조회 수: 1 (최근 30일)
vageesh kulkarni
vageesh kulkarni 2015년 11월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
sir ,i had wave file 1 to 12 .1 to 4 and 8 to 12 is novice .I only want 5 to 7 .What was the code .so please send Matlab code .

답변 (1개)

Walter Roberson
Walter Roberson 2015년 11월 21일
[data, FS] = wavread('YourWavFile.wav');
start_at_s = 5; %seconds
end_at_s = 7; %seconds
start_at_samp = max(ceil(start_at_s * FS), 1); %includes range check
end_at_samp = min( floor(end_at_s * FS), size(data,1)); %includes range check
sound_clip = data(start_at_samp:end_at_samp, :);
  댓글 수: 2
vageesh kulkarni
vageesh kulkarni 2015년 11월 21일
sir i have a wav file with a sound called "left". when i plot that, i will get some disturbance also. so i need to avoid that disturbance.
Walter Roberson
Walter Roberson 2015년 11월 21일
Where I wrote 'YourWaveFile.wav' you would use 'left.wav'
If you are asking to automatically detect and remove noise then that is a very different question than asking about clipping at specific times. You will need to tell us more about the kind of noise and how it differs from the sound you want.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by