about sound wave cuting code
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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 .
0 件のコメント
回答 (1 件)
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
2015 年 11 月 21 日
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!