I have old code wavread and want to replace with audioread
30 views (last 30 days)
Show older comments
wavread doc function :
[...] = wavread('filename', N) returns only the first N samples from each channel in the file.
but in audioread doc function :
audioread(filename,samples) reads the selected range of audio samples in the file, where samples is a vector of the form [start,finish].
now how can I add N into audioread? My code is:
if true
signal_size=16000*10;
S(:,1)=wavread('all_sentences_train_DR1_MKLS0_M.wav',signal_size);
then
signal_size=16000*10;
S(:,1)=audioread('all_sentences_train_DR1_MKLS0_M.wav',signal_size);
end
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!