필터 지우기
필터 지우기

Error with audiowrite R2020b

조회 수: 1 (최근 30일)
Babacar Dieng
Babacar Dieng 2021년 9월 26일
편집: Walter Roberson 2021년 9월 26일
[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일
audiowrite( 'down.wav', x, fs2, "BitsPerSample" , 8 );

태그

Community Treasure Hunt

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

Start Hunting!

Translated by