Is it possible to save audio sample values from alteration while using wavwrite function of matlab?

1 view (last 30 days)
Hello, I am manipulating values of audio samples for audio steganography.When i have my manipulated audio sample object, i want to write it as a new audio file using wavwrite. But when i create object of this newly created audio file, i find sample values different from the previous values of samples which i had manipulated.
Is there any method to control wavwrite function in order to keep my sample values as same as these were before wavwrite?

Answers (1)

Image Analyst
Image Analyst on 21 Apr 2015
You're either writing out the same, original audio data, not the altered data like you thought, or you're reading in the same original audio data, not the altered file.
  6 Comments
manisha sharma
manisha sharma on 22 Apr 2015
As you asked i tried it at different frequencies like 88200,10000,1000 and so on. But it still causing problem.
I have no idea what to do next.Please help if you can.
Thanks...
manisha sharma
manisha sharma on 23 Apr 2015
Okay finally i got the way to do it.This time i have chosen the bits in wavwrite as '32' like this:
>>wavwrite(y_enc,44100,32,'new_audio.wav')
It is working for me.
I think this can be helpful for others having the same problem.

Sign in to comment.

Categories

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

Products

Community Treasure Hunt

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

Start Hunting!