what is the code for converting .wav audio file to hex values and also the reverse of it

32 ビュー (過去 30 日間)
120102013 Sowmya B
120102013 Sowmya B 2020 年 2 月 21 日
回答済み: Devineni Aslesha 2020 年 2 月 24 日
'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

回答 (1 件)

Devineni Aslesha
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.

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by