Signal classifying method and apparatus
First Claim
1. A signal classifying method, comprising:
- obtaining a spectrum fluctuation parameter of a signal frame;
buffering the spectrum fluctuation parameter of the signal frame in a first buffer array if the signal frame is a foreground frame;
if the signal frame falls within a first number of initial signal frames, setting a spectrum fluctuation variance of the signal frame to a specific value and buffering the spectrum fluctuation variance of the signal frame in a second buffer array;
otherwise, obtaining the spectrum fluctuation variance of the signal frame according to spectrum fluctuation parameters of a plurality of first buffered signal frames buffered in the first buffer array and buffering the spectrum fluctuation variance of the signal frame in the second buffer array; and
calculating a ratio of signal frames whose spectrum fluctuation variance is above or equal to a first threshold to a plurality of second buffered signal frames buffered in the second buffer array, and determining the signal frame as a speech frame if the ratio is above or equal to a second threshold or determining the signal frame as a music frame if the ratio is below the second threshold.
1 Assignment
0 Petitions
Accused Products
Abstract
A signal classifying method and apparatus are disclosed. The signal classifying method includes: obtaining a spectrum fluctuation parameter of a current signal frame determined as a foreground frame, and buffering the spectrum fluctuation parameter; obtaining a spectrum fluctuation variance of the current signal frame according to spectrum fluctuation parameters of all buffered signal frames, and buffering the spectrum fluctuation variance; and calculating a ratio of signal frames whose spectrum fluctuation variance is above or equal to a first threshold to all the buffered signal frames, and determining the current signal frame as a speech frame if the ratio is above or equal to a second threshold or determining the current signal frame as a music frame if the ratio is below the second threshold. In the embodiments of the present disclosure, the spectrum fluctuation variance of the signal is used as a parameter for classifying the signals, and a local statistical method is applied to decide the type of the signal. Therefore, the signals are classified with few parameters, simple logical relations and low complexity.
-
Citations
17 Claims
-
1. A signal classifying method, comprising:
-
obtaining a spectrum fluctuation parameter of a signal frame; buffering the spectrum fluctuation parameter of the signal frame in a first buffer array if the signal frame is a foreground frame; if the signal frame falls within a first number of initial signal frames, setting a spectrum fluctuation variance of the signal frame to a specific value and buffering the spectrum fluctuation variance of the signal frame in a second buffer array;
otherwise, obtaining the spectrum fluctuation variance of the signal frame according to spectrum fluctuation parameters of a plurality of first buffered signal frames buffered in the first buffer array and buffering the spectrum fluctuation variance of the signal frame in the second buffer array; andcalculating a ratio of signal frames whose spectrum fluctuation variance is above or equal to a first threshold to a plurality of second buffered signal frames buffered in the second buffer array, and determining the signal frame as a speech frame if the ratio is above or equal to a second threshold or determining the signal frame as a music frame if the ratio is below the second threshold. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A signal classifying method, comprising:
-
obtaining a spectrum fluctuation parameter of a current signal frame determined as a foreground frame, and buffering the spectrum fluctuation parameter; obtaining a spectrum fluctuation variance of the current signal frame according to spectrum fluctuation parameters of all buffered signal frames, and buffering the spectrum fluctuation variance; and calculating a ratio of signal frames whose spectrum fluctuation variance is above or equal to a first threshold to all buffered signal frames, and determining the current signal frame as a speech frame if the ratio is above or equal to a second threshold or determining the current signal frame as a music frame if the ratio is below the second threshold. - View Dependent Claims (10, 11, 12)
-
-
13. A signal classifying apparatus, comprising:
-
a first obtaining module configured to obtain a spectrum fluctuation parameter of a signal frame; a foreground frame determining module configured to determine the signal frame as a foreground frame and buffer the spectrum fluctuation parameter of the signal frame determined as the foreground frame; a first buffering module configured to buffer the spectrum fluctuation parameter of the signal frame determined by the foreground frame determining module; a setting module configured to set a spectrum fluctuation variance of the signal frame to a specific value and buffer the spectrum fluctuation variance in a second buffering module if the signal frame falls within a first number of initial signal frames; a second obtaining module configured to obtain the spectrum fluctuation variance of the signal frame according to spectrum fluctuation parameters of a plurality of first buffered signal frames buffered in the first buffering module and buffer the spectrum fluctuation variance of the signal frame in the second buffering module if the signal frame falls outside the first number of initial signal frames; the second buffering module configured to buffer the spectrum fluctuation variance of the signal frame set by the setting module or obtained by the second obtaining module; and a first determination module configured to calculate a ratio of signal frames whose spectrum fluctuation variance is above or equal to a first threshold to a plurality of second buffered signal frames buffered in the second buffering module, and either determine the signal frame as a speech frame if the ratio is above or equal to a second threshold or determine the signal frame as a music frame if the ratio is below the second threshold. - View Dependent Claims (14, 15, 16, 17)
-
Specification