how to map a kannada unicode value to a particular audio file from a speech database
2 次查看(过去 30 天)
显示 更早的评论
Actually i am working on a project which converts kannada text to speech.As of now i am able to read the text document and able to generate unicode out of text document.now i have to map each obtained unicode to the speech database containing sounds of each kannada alphabet saved each audio file with the hex value of each unicode. can anyone suggest any solution to this problem.
0 个评论
采纳的回答
Walter Roberson
2016-1-19
编辑:Walter Roberson
2016-1-19
If U holds the Unicode code point number, then
filename = sprintf('pronounce_%04X.wav', U)
this would produce, for example, 'pronounce_30DB.wav' for codepoint U+30DB (decimal 12507), ホ
6 个评论
Walter Roberson
2016-1-19
projectdir = '/folder/where/files/are';
[data, fs] = wavread( fullfile(projectdir, filename) );
Or when you say "database" do you mean something like an SQL database? If so then you need to say more about what kind of database it is and what fieldname is going to be used and what the format of the key will be.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Other Formats 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!