Using short-term characteristics in speech processing
Need for Short Term Processing of Speech website .
The article contains information about one of the methods for collecting the characteristics of a speech signal and about the three main characteristics that underlie many algorithms for processing audio signals and speech.
Most signal processing tools work in stationary systems, i.e. imply a stationary signal. Speech is reproduced by the vocal tract system, and therefore it is inherently non-stationary. Therefore, conventional means that are used for signal processing are not suitable for speech processing. Using them directly violates the underlying assumptions. And even if you blindly use them, the result will still not be of practical importance. For example, a means of calculating the total energy is fundamental in the field of signal processing:

A solution for speech processing was proposed, which consisted of using already known methods from the field of signal processing with a slight modification. That is, the processing tools used still assumed a stationary signal. A stationary speech signal is obtained when viewed in small blocks of 10-30ms. Therefore, for speech processing by various signal processing tools, it is considered in blocks of 10-30ms (hereinafter, this section will be called a speech signal). This processing is called Short Term Processing (STP).
STP speech can be performed in the time or frequency domains. The choice of area depends on what information we want to extract from speech. For example, parameters such as short term energy, short term zero crossing rate and short term autocorrelation can be calculated in the time domain, and Fourier transforms can be calculated in the frequency domain. Each of these parameters gives some information about speech, and can be used for processing.
Short term energy
We call energy the abstract quantity that characterizes the signal. The energy of speech changes in time due to its nature and therefore, for any automatic processing of it, it is important to know how this energy changes in time. By origin, the speech signal consists of speech / non-speech sections / silence. The energy of a speech section is larger than the energy of a non-speech section, while the energy of silence is close to zero. Thus, the short term energy characteristic can be used to classify voice / non-voice portions based on the presence of speech or silence.
The formula for finding short-term energy can be derived from the formula for the total energy defined in the signal processing area. There, the total signal energy is calculated as follows:


That is, the formula gives full energy in a block of speech.

rectangular window is:



Now you can completely write down the short term energy calculation formula:


Short Term Zero Crossing Rate (ZCR)
Zero Crossing Rate gives information about the number of changes in the sign of the function (intersections by the function of the OX axis). If the number of intersections is large in some signal, then the signal contains high-frequency information and vice versa. In this way, ZCR provides information on the frequency content of the signal.
In the case of a stationary signal, the ZCR is calculated as follows:



Short term autocorrelation
In signal processing, cross-correlation can be used to find similarities between two sequences, and autocorrelation requires only one sequence and determines how much the signal resembles itself in time.
For a non-stationary signal, autocorrelation is calculated by the following formula:



PS In the next article, the implementation of the calculation of some of the characteristics is finally foreseen in order to make the material more understandable.