Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Read audio file (Put sound.wav in the same folder as this .m file)
- [signal,fs] = audioread('sound.wav');
- %Audio signal is stored in (signal). While (fs) is the Sampling frequency
- %To plot the signal in time domain
- figure;
- plot(sig);
- title('input audio signal in T domain');
- %To play the audio file
- p=audioplayer(signal,fs);
- play(p);
- %To save the signal into a new audio file
- audiowrite('sound.wav',signal,fs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement