One portion of the final implementation is the
comparison of the short-time magnitude of two speech signals. This operation is
implemented in the file magmaster.m.
Using an endpoint detection algorithm, the speech is selected from the two input waveforms. Then, their short-time magnitudes are determined. The short-time magnitude characterizes the envelope of a speech signal by lowpass filtering it with a rectangular window. The magnitude function follows these steps:
One magnitude plot is discrete time warped onto the other. The dot product of the two waveforms is computed, and this number is divided by the product of the signals' norms as mandated by the Cauchy-Schwarz Inequality. This calculation results in a percentage of how similar one signal is to the other.
BURNOUT - "Attitudes are contagious. Mine might kill you."