Re: watermarking!!!
I think u dint look properly at my example above..here is wht u need
hey the below example is for audio in audio ...watermarking...
u can have an array of integers representing the string to be watermarked in audio and then proceed with the algorithm..did i make it clear??
if u can ,please let me know how u wrkd with stft and svd..
[y1,fs1] = wavread('host.wav'); // host.wav is some wav file from pc say ding or chord just rename and paste it in work folder
y1 is the audio and fs1 is its sampling frequency
y1 = y1
,1); // stereo to mono conversion done here
[c1,l1] = wavdec(y1,3,'db6');
3 is the level of decomposition, db6 is the daubachies filter
look for help from matlab for information regading the variables used in the function.
Watermark signal read and decompose
[y2,fs2] = wavread('watermark.wav'); // watermark.wav is some wav file from pc say ding or chord just rename and paste it in work folder
y2 = y2
,1); // stereo to mono conversion done here
[c2,l2] = wavdec(y2,2,'db6');
watermark algorithm :::::: goes here
watermarked signal reconstruct and write to disk
sum = wavrec(c1,l1'db6'); // after watermark signal is hidden into host... we
// reconstruct the host signal
wavwrite(sum,fs1,'Watermarked.wav');
u will find the watermarked.wav written in the work folder....thats the watermarked signal ready to be transmitted as audio watemarked signal
ALL THE BEST
hope i cleared ur doubts!!!
let me know how else i can help u