Borrar filtros
Borrar filtros

Error with audiowrite R2020b

1 visualización (últimos 30 días)
Babacar Dieng
Babacar Dieng el 26 de Sept. de 2021
Editada: Walter Roberson el 26 de Sept. de 2021
[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 comentario
Babacar Dieng
Babacar Dieng el 26 de Sept. de 2021
File name must come first. there was an error with the format of the line command

Iniciar sesión para comentar.

Respuestas (1)

Babacar Dieng
Babacar Dieng el 26 de Sept. de 2021
audiowrite( 'down.wav', x, fs2, "BitsPerSample" , 8 );

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by