audio cutter in matlab
Mostrar comentarios más antiguos
Hi,
I have loaded an audio-file of 8sec's using 'wavread' function.
I have to cut it to say 1sec file.
i know that it can be done by taking only few samples outof total samples.
but how can i do it interms of seconds,i.e,i have to get only 1sec audio file from 8sec audio
file
how to do it matlab?
is there any simple inbuilt function.
1 comentario
Sivakumaran Chandrasekaran
el 22 de En. de 2014
Hope wavwrite could help your question? I am not sure about my answer
Respuesta aceptada
Más respuestas (2)
Satyam Gaba
el 19 de Nov. de 2017
[x,fs]=audioread('C:\Users\Satyam\Downloads\Music\record20171119115236.wav');
z=zeros(fs*1,40); % for 1 second
h=1;
for j=1:40;
for i=1:(fs*1);
z(i,j)=x(h);
h=h+1;
end
end
Veera Kanmani
el 28 de Feb. de 2018
[x,fs]=audioread('C:\Users\Satyam\Downloads\Music\record20171119115236.wav');
x=resample(1,fs);
audiowrite('newfile.wav',x,fs)
1 comentario
Annanya Tyagi
el 1 de Dic. de 2019
resample needs 3 parameters to work
Categorías
Más información sobre Audio I/O and Waveform Generation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!