audio watermarking attak codes

Discussion in 'Programmer's Corner' started by sepideh-gh, Mar 5, 2012.

  1. sepideh-gh

    Thread Starter New Member

    Mar 5, 2012
    4
    0
    hi...
    i need to make some tests on audio watermarking attack codes for a college project using matlab, and i need this codes .i am a beginner in matlab, so i can't write the code myself...
    i'd appreciate any help
    Thank you :confused:
     
  2. sepideh-gh

    Thread Starter New Member

    Mar 5, 2012
    4
    0
    hi
    i have some audio watermarking attack codes in matlab .i can not run them in matlab . i dont know. codes are true or no and i don not know how can use them?
    please u check this code(i know u are busy but i need ur help) and tell me is it true?
    thank u very much.

    clc
    clear
    format long

    cut_frequency=4000; %400 , 2000
    type='low' ; %'high','low'
    voice=wavread('watermark');
    L=length(voice);
    wn=cut_frequency/22050;
    [b,a]=butter(4,wn,type);
    y=filter(b,a,voice);
    wavwrite(y,44100,'out2.wav')


    an other code is:
    clc
    clear
    format long

    cut_frequency=200; %400 , 2000
    type='high' ; %'high','low'
    voice=wavread('watermark');
    L=length(voice);
    wn=cut_frequency/22050;
    [b,a]=butter(4,wn,type);
    y=filter(b,a,voice);
    wavwrite(y,44100,'out2.wav')




    and other code is :

    clc
    clear
    format long

    Fs1=44100;
    Fs3=22500;
    voice=wavread('watermark');
    y1 = resample(voice,Fs3,Fs1);
    wavwrite(y1,Fs3,'out2.wav');
     
Loading...