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 view (last 30 days)
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,

Answers (1)

Walter Roberson
Walter Roberson on 2 Feb 2016
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.

Community Treasure Hunt

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

Start Hunting!