[y,Fs]=audioread(InFilename);
%Downsample
fprintf('\n The downsampled sound \n')
x = y(1 :2 : length(y));
fs2 = Fs/2 ;
% sound(x,fs2);
%Save the result as down.wav
audiowrite(x, fs2, 'down.wav');

댓글 수: 1

Babacar Dieng
Babacar Dieng 2021년 9월 26일
File name must come first. there was an error with the format of the line command

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

답변 (1개)

Babacar Dieng
Babacar Dieng 2021년 9월 26일

0 개 추천

audiowrite( 'down.wav', x, fs2, "BitsPerSample" , 8 );

카테고리

태그

질문:

2021년 9월 26일

편집:

2021년 9월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by