how to downsample a audio having sampling rate 44100 Hz to 2000Hz in matlab? This is the program i used but it showing error. how to rectify it?
조회 수: 6 (최근 30일)
이전 댓글 표시
[x, fs1] = audioread('audio8.wav');
ts1=1/fs1;
N1=length(x);
Tmax1=(N1-1)*ts1;
t1=(0:ts1:Tmax1);
figure;
plot(t1,x),xlabel('Time'),title('Original audio');
[y,fs2]=downsqample(x,20,441);
ts2=1/fs2;
N2=length(y);
Tmax2=(N2-1)*ts2;
t2=(0:ts2:Tmax2);
figure;
plot(t2,y),xlabel('Time'),title('downsampled audio');
댓글 수: 2
답변 (1개)
madhan ravi
2018년 10월 23일
편집: madhan ravi
2018년 10월 23일
Should be downsample but you wrote it as downsqample
댓글 수: 17
madhan ravi
2018년 10월 27일
편집: madhan ravi
2018년 10월 27일
Thank you sir Walter . @Suchithra you can appreciate the persons time by accepting the answer and also it indicates the question is solved
atek
2021년 1월 27일
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!