AMDF

This exercise computes the short-time average magnitude difference function (AMDF) of a speech frame
2.1K Downloads
Updated 23 Jun 2015

View License

This MATLAB exercise calculates and displays the AMDF of a frame of speech from a designated speech file and implements a pitch detection algorithm based on using the AMDF on a frame-by-frame basis. The program can operate in a frame mode, displaying each analysis frame and its associated AMDF (with a marking for best estimate of pitch period in voiced regions), or in a pitch detection mode. In the AMDF pitch detection mode a non-voiced frame detector (when the frame log energy falls below a fixed threshold) is utilized. The code also uses a procedure for determining whether the location of the minimum of the AMDF, for a given analysis frame, represents a case of pitch period doubling or even pitch period tripling, and provides an appropriate correction measure for such cases. The exercise plots the pitch period contour along with a plot of a confidence measure based on how strong a minimum of the AMDF was obtained for each analysis frame.

Cite As

Speech Processing (2024). AMDF (https://www.mathworks.com/matlabcentral/fileexchange/45274-amdf), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Simulation, Tuning, and Visualization 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

Minor layout tweak
Updated to work with post-R2014b graphics

1.2.0.0

code updates; Read_Me.txt setup file; pathnew_matlab_central example

1.1.0.0

Added users guide

1.0.0.0