i want to hide an image into audio file

2 views (last 30 days)
hemalatha
hemalatha on 25 Dec 2014
Commented: hemalatha on 2 Feb 2015
i need a coding by using lsb algorithm
  6 Comments
Image Analyst
Image Analyst on 24 Jan 2015
49 is the ASCII value of 1. I'm not sure what you are doing.
hemalatha
hemalatha on 2 Feb 2015
audio steganography...i want to hide an image into .wav file..in that i faced the above problem..

Sign in to comment.

Answers (2)

Parameswaran Bose
Parameswaran Bose on 27 Dec 2014
hi, you can hide an image with audio file. Since I don't know matlab coding, I want to know more details about your problem. what kind of audio file matlab supports. The general thing is convert your image in to color bytes and embed those bytes in to audio data bytes. The code I have used in java is as follows,
int audioByteCount=0;
for(int i=0;i<colorBytes.length;i++){
int colorByte = colorBytes[i];
for(int bit=7; bit>=0; --bit){
int b = (colorByte >>> bit) & 1;
audioBytes[audioByteCount] = ((audioBytes[audioByteCount] & 0xFE) | b );
colorByteCount++;
}
}
rgds Parameswaran Bose

Image Analyst
Image Analyst on 5 Jan 2015
Attached is my LSB watermarking code. I think it should work with some minor modifications to handle 1D audio signal.

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!