%------------------------------------------------------- % Non Scalable TWIN-VQ program implementation in MATLAB. %------------------------------------------------------- % This program encodes monoaural audio .wav files using the TWIN-VQ % algorithm. The program assumes that the input .wav file is single channel % audio sampled at 44100 samples per second and with 16 bits per sample. % However, the program can be modified to work with different sampling % rates. The program can encode and decode at three fixed bitrates of 8, 16 % and 32 kbps per channel. % % The main encoding program is encode_tvq.m. % Function call: encode_tvq(, bitrate) % Example: encode_tvq('..\original_audio\bene.wav',8000); % % Note that the bitrate is always in bits per sample and not kilo bits per % sample. % % The program encodes the audio at the appropriate bitrate and stores the % indices and side information as a .MAT file. % % The main decoding program is decode_tvq.m % Function call: decode_tvq % % This program opens the appropriate .MAT file and reconstructs the audio % from it. This program will then prompt the user to give a file name to % store the output as a wav file.