The invention discloses a variable-bit-rate
encoder based on AMR (adaptive multi-rate)-NB (
narrow band) voice signals. The variable-bit-rate
encoder comprises a preprocessing unit, a voice frame quality judging unit, an encoding mode selecting unit, a
bit rate determining unit and a code-excited linear predictive encoding unit, wherein the preprocessing unit is used for numeralization of voice signals to form voice frames; the voice frame quality judging unit is used for judging quality grades of the current voice frames to provide respective encoding
modes and target bit rates for the voice frames; the encoding mode selecting unit is used for selecting the voice frame encoding
modes according to the quality grades; the
bit rate determining unit is used for determining the target bit rates of the voice frames according to the encoding
modes; the code-excited linear predictive encoding unit is used for encoding the voice frames according to the target bit rates of the voice frames to form encoded voice frames. The invention further discloses a variable-bit-rate decoder used correspondingly to the
encoder, and discloses a variable-bit-rate encoding method and a variable-bit-rate decoding method. The variable-bit-rate encoder is lower in
bit rate than AMR, capable of achieving variable bit rates according to voice frame content and capable of selecting required encoding bit rate modes according to voice frame content importance judgment by setting channel voice quality.