Im doing project on audio steganography. Im reading wav file in integer format so that i can apply lwt to get integer coefficients,how to get output approximation coefficients and detail coefficient as i need these values to be embedded into image.

1 回表示 (過去 30 日間)
S = audioread('alarm.wav');
sound(S)
LS=liftwave('haar','Int2Int');
[CA,CD]=lwt(double(S),LS);
i am not getting complete code, to solve this problem,

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 2 月 2 日
audioread does not read in integer format by default.
"If you do not specify dataType, or dataType is 'double', then y is of type double, and matrix elements are normalized values between −1.0 and 1.0."
You need to add on the 'native' parameter to get the integer values stored in the file.

カテゴリ

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