How to read raw speech signal without header in MATLAB ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dipesh Mudatkar
am 6 Mär. 2017
Kommentiert: Dipesh Mudatkar
am 6 Mär. 2017
I tried this code
fid = fopen('File_name','r');
y = fread(fid,inf,'short');
y = doubel(y);
sound(y)
but sound is not same as recorded.
2 Kommentare
Akzeptierte Antwort
Walter Roberson
am 6 Mär. 2017
Try these two variations and see which one works for you:
fid = fopen('File_name','r');
ybe = fread(fid, inf, 'short=>double', 'ieee-be');
fclose(fid)
disp('Big Ended')
sound(ybe)
pause(5)
fid = fopen('File_name','r');
yle = fread(fid, inf, 'short=>double', 'ieee-le');
fclose(fid)
disp('Little Ended')
sound(yle)
6 Kommentare
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!