How can I do audio compression using Huffman encoding?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I know the concept of Huffman encoding and how to implement it on MATLAB. My question here is what will i be using as symbols in this case? Will it be the samples that i get after reading the audio(audioread())? Do i need to process my audio first( quantization / downsample / fft )?
7 Kommentare
Walter Roberson
am 16 Okt. 2023
Yes, I could provide the code... but I am not going to write people's homework assignments for them. I already provided a somewhat detailed outline of the steps that need to be taken.
Antworten (1)
Walter Roberson
am 30 Apr. 2018
When you read from the audio file, use the 'native' option. The result is quite likely to be integer valued. You can use the integers as the symbols.
You will likely find, though, that you can get better compression by using the difference between adjacent integers as the symbols.
4 Kommentare
Walter Roberson
am 4 Mai 2018
Saurabh Parkar had used huffmandict() on the samples to build the encoding tables, and then used huffmanenco() to perform the encoding to a stream of 0 and 1 values.
Siehe auch
Kategorien
Mehr zu Source Coding finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!