couldnt incorporate the .wav file
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gaurav Sharma
am 22 Nov. 2018
Bearbeitet: Walter Roberson
am 22 Nov. 2018
I am trying to run some voices [.WAV] in the matlab but couldnt able to do that. Firstly, it wasnt takimg the folder of the sounds... now after provoding the path it is throwing some error.
"Index exceeds the number of array elements (51).
Error in train1 (line 25)
files = traindir('*.wav');"
can some one pls help me with this code. I want to run these code... it is my final project.
I am providing all the codes and the data set of .wav down below as an attchment.
Akzeptierte Antwort
Walter Roberson
am 22 Nov. 2018
traindir is aa variable there . traindir('*.wav') is a request to index the variable with index
[double('*'), double('.'), double('w'), double('a'), double('v')]
2 Kommentare
Walter Roberson
am 22 Nov. 2018
Bearbeitet: Walter Roberson
am 22 Nov. 2018
files = dir(fullfile(traindir,'*.wav'));
and change
[y,Fs] = audioread(files(i).name);
to
[y,Fs] = audioread( fullfile(traindir, files(i).name));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!