## Sample rate conversion

Version 1.4.0.0 (2.04 MB) by
converts the sampling rate of an existing speech or audio file from its current sampling rate
Updated 3 Jun 2015

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.
Speech and audio waveforms are generally sampled at a number of standard rates, including 6000, 6667, 8000,10000, 16000, 20000, 22050 and 44100 Hz. Often speech processing (within a MATLAB m-file) expects speech or audio to be sampled at one of these standard rates. Hence if the sampling rate for an input signal to a MATLAB algorithm or application is not the required rate, it is often necessary to convert the sampling rate, do the signal processing at the specified rate, and convert back to the original sampling rate (e.g., for a speech processing algorithm).
This MATLAB exercise provides a simple sampling rate converter between standard sampling rates of 6000, 6667, 8000, 10000, 16000, 20000, 22050 and 44100 Hz, as well as between any pair of sampling rates that have a least common multiple that is an integer.

### Cite As

Speech Processing (2024). Sample rate conversion (https://www.mathworks.com/matlabcentral/fileexchange/45329-sample-rate-conversion), MATLAB Central File Exchange. Retrieved .

##### MATLAB Release Compatibility
Created with R2012b
Compatible with any release
##### Platform Compatibility
Windows macOS Linux
##### Categories
Find more on Signal Processing Toolbox in Help Center and MATLAB Answers

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.4.0.0

Updated to work with post-R2014b graphics

1.3.0.0

1.2.0.0

default sampling rate to 10000 Hz in GUI

1.1.0.0