How do I convert a .wav file, to generate a binary bit stream?
Mostra commenti meno recenti
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 Commenti
Geoff Hayes
il 21 Ago 2014
Lorenzo - do you mean to write the quantized binary data to file?
Lorenzo
il 22 Ago 2014
Geoff Hayes
il 22 Ago 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?
Risposte (0)
Categorie
Scopri di più su Quantizers in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!