I have an audio file and I wish to slice the audio from the front and extract and save the audio from the back.
filename='extension' [y, fs]=audioread(filename); samples=[0,length(y)-(4*fs)]; [y1,fs] = audioread(filename,samples); audiowrite('cutversion',y1,fs); save([extension '.wav'],'cutversion')
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
You can just delete the initial part of the audio signal and save it into the audio file. For example
[s, fs] = audioread('sample.wav'); s2 = s; s2(1:2*fs) = []; audiowrite('new_file.wav', s2, fs);
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment