Mu Law Quantizer

Illustrates the impact of mu-law companding (compressing and expanding) and quantization of a speech

You are now following this Submission

Speech processing designates a team consisting of Prof. Lawrence Rabiner (Rutgers University and University of California, Santa Barbara), Prof. Ronald Schafer (Stanford University), Kirty Vedula and Siva Yedithi (Rutgers University). This exercise is one of a set of speech processing exercises that are intended to supplement the teaching material in the textbook “Theory and Applications of Digital Speech Processing” by L R Rabiner and R W Schafer.
This exercise quantizes a designated speech file using a mu-law quantizer with a bit rate of nbits per sample, where nbits is typically in the range of 2-10. For the chosen value of nbits, the program plots the quantized and the error signals along with an estimate of the signal and error power spectrum, and a histogram of the error signal values. The program also plays out the error signals in order to get a feeling for how much noise is introduced into the quantized signal at different bit rates.

Cite As

Speech Processing (2026). Mu Law Quantizer (https://se.mathworks.com/matlabcentral/fileexchange/45322-mu-law-quantizer), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0.0

Updated to work with post-R2014b graphics

1.3.0.0

code updates; Read_Me.txt setup file; pathnew_matlab_central example

1.2.0.0

bigger text boxes

1.1.0.0

Finds the speech directory automatically going up two levels

1.0.0.0