what is the code for converting .wav audio file to hex values and also the reverse of it
42 次查看(过去 30 天)
显示 更早的评论
'binaryVectorToHex' requires Data Acquisition Toolbox.
i want to convert a .wav audio and the data should be converted to hex value and should be used in fpga for encryotion and the encrypted value should again converted to .wav file so that i can perform metric analysis
0 个评论
回答(1 个)
Devineni Aslesha
2020-2-24
Use the following code to convert the .wav audio file to hex values and the reverse of it.
[y,Fs] = audioread('RockGuitar.wav');
yHex = num2hex(y);
yWav = hex2num(yHex);
audiowrite('handel.wav',yWav,Fs);
For more information, go through the following links.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!