TP-traitement-audio-visuel/TP10/lecture.m

14 lines
201 B
Mathematica
Raw Permalink Normal View History

2023-06-22 18:47:16 +00:00
% clear;
% filename = 'Audio/message_cache';
% filename = 'Audio/mpl';
[y, f_ech] = audioread(filename + ".wav");
if size(y, 2) > 1
y = mean(y, 2);
end
% sound(y,f_ech);
% save enregistrement;