Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to map the unicode value generated from the below code to the speech file contained in the folder.can anyone suggest ?

조회 수: 1 (최근 30일)
fid = fopen('\path\of\text_document containing kannada unicode\message.txt', 'rb');
b = fread(fid, '*uint8')';
disp(b);
c=dec2hex(b);
disp(c);
fclose(fid);

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 23일
No, as explained in http://uk.mathworks.com/matlabcentral/answers/264295-how-to-map-a-kannada-unicode-value-to-a-particular-audio-file-from-a-speech-database you would need to tell us what a valid file name looks like before we can tell you how to find the file. You were asked more than once but you have no provided that information, so we are unable to help you.
  댓글 수: 2
Swapna Havalgi
Swapna Havalgi 2016년 1월 24일
its just denoted with a hexa value as 0C86.wav,0C87.wav...so on.And database means a folder containing set of audio files each named as '0C86','0C87'..so on..is my question clear now?
Walter Roberson
Walter Roberson 2016년 1월 24일
sound_folder = '\path\of\folders containing sound files';
filename = fullfile( sound_folder, sprintf('%04X.wav', b) );
[x, fs] = audioread(filename);
p = audioplayer(x, fs);
play(p);

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by