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

1 次查看(过去 30 天)
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?

回答(1 个)

Image Analyst
Image Analyst 2015-4-21
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 个评论
manisha sharma
manisha sharma 2015-4-22
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 2015-4-23
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by