A system, method and computer readable medium for quantizing pitch information
of audio is disclosed. The method includes capturing audio representing a numbered
frame of a plurality of numbered frames. The method further includes calculating
a class of the frame, wherein a class is any one of a voiced or unvoiced class.
If the frame is a voiced class, a pitch is calculated for the frame. If the frame
is an even numbered frame and a voiced class, a codeword of a first length is calculated
by absolutely quantizing the frame pitch. If the frame is an odd numbered frame
and a voiced class and a reliable frame is available, a codeword of a second length
is calculated by differentially quantizing the frame pitch. If there is no reliable
frame available, a codeword of the second length is calculated by absolutely quantizing
the frame pitch.