How do I convert a .wav file, to generate a binary bit stream?
11 views (last 30 days)
Show older comments
I have used wavread to get the .wav file, then I have used quantiz to quantize the data. Now, what do i do to generate a binary bit stream out of it?
3 Comments
Geoff Hayes
on 22 Aug 2014
Lorenzo - I'm guessing that since you are using de2bi you have converted all wav data to positive integers? (Before or after the quantization?) I don't have the Communications System Toolbox but based on the documentation at de2bi, this function converts a nonnegative decimal integer d to a binary row vector. Note in the examples how the binary number is read left to right rather than the right to left. So 2 is 0 1 0 0 0 0 and not 0 0 0 0 1 0 (unless you use the flag 'left-msb').
What is the purpose of the reshape? And even the purpose of the conversion to binary? Is this a steganography application?
Answers (0)
See Also
Categories
Find more on Multirate Signal Processing 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!