Method and apparatus for detecting correctness of pitch period
First Claim
1. A method for detecting correctness of a pitch period for encoding, comprising:
- receiving, at a receiver of a detecting apparatus, an input signal comprising a speech signal or an audio signal;
determining, by a processor of the detecting apparatus, according to an initial pitch period of the input signal in a time domain, a pitch frequency bin of the input signal, wherein the initial pitch period is obtained by performing open-loop detection on the input signal;
determining, by the processor, based on an amplitude spectrum of the input signal in a frequency domain, a pitch period correctness decision parameter of the input signal associated with the pitch frequency bin;
determining, by the processor, correctness of the initial pitch period according to the pitch period correctness decision parameter;
performing, by the processor, short-pitch detection to obtain a short pitch period; and
determining, by the processor, according to the correctness of the initial pitch period in combination with one or more other conditions, whether to replace the initial pitch period with the short pitch period,wherein the pitch period correctness decision parameter comprises a spectral difference parameter, an average spectral amplitude parameter, and a difference-to-amplitude ratio parameter,wherein the spectral difference parameter is a weighted and smoothed value of a sum of spectral differences of predetermined quantity of frequency bins on two sides of the pitch frequency bin,wherein the average spectral amplitude parameter is a weighted and smoothed value of an average of spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin, andwherein the difference-to-amplitude ratio parameter is a ratio of the sum of the spectral differences of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin to the average of the spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for detecting correctness of a pitch period. The method for detecting correctness of a pitch period includes determining, according to an initial pitch period of an input signal in a time domain, a pitch frequency bin of the input signal, where the initial pitch period is obtained by performing open-loop detection on the input signal; determining, based on an amplitude spectrum of the input signal in a frequency domain, a pitch period correctness decision parameter, associated with the pitch frequency bin, of the input signal; and determining correctness of the initial pitch period according to the pitch period correctness decision parameter. The method and apparatus for detecting correctness of a pitch period according to the embodiments of the present invention can improve, based on a relatively less complex algorithm, accuracy of detecting correctness of a pitch period.
69 Citations
18 Claims
-
1. A method for detecting correctness of a pitch period for encoding, comprising:
-
receiving, at a receiver of a detecting apparatus, an input signal comprising a speech signal or an audio signal; determining, by a processor of the detecting apparatus, according to an initial pitch period of the input signal in a time domain, a pitch frequency bin of the input signal, wherein the initial pitch period is obtained by performing open-loop detection on the input signal; determining, by the processor, based on an amplitude spectrum of the input signal in a frequency domain, a pitch period correctness decision parameter of the input signal associated with the pitch frequency bin; determining, by the processor, correctness of the initial pitch period according to the pitch period correctness decision parameter; performing, by the processor, short-pitch detection to obtain a short pitch period; and determining, by the processor, according to the correctness of the initial pitch period in combination with one or more other conditions, whether to replace the initial pitch period with the short pitch period, wherein the pitch period correctness decision parameter comprises a spectral difference parameter, an average spectral amplitude parameter, and a difference-to-amplitude ratio parameter, wherein the spectral difference parameter is a weighted and smoothed value of a sum of spectral differences of predetermined quantity of frequency bins on two sides of the pitch frequency bin, wherein the average spectral amplitude parameter is a weighted and smoothed value of an average of spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin, and wherein the difference-to-amplitude ratio parameter is a ratio of the sum of the spectral differences of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin to the average of the spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for detecting correctness of a pitch period for encoding, comprising:
-
a receiver configured to receive an input signal comprising a speech signal or an audio signal; a memory comprising instructions; and one or more processors in communication with the memory, wherein the one or more processors are configured to execute the instructions to; determine, according to an initial pitch period of the input signal in a time domain, a pitch frequency bin of the input signal, wherein the initial pitch period is obtained by performing open-loop detection on the input signal; determine, based on an amplitude spectrum of the input signal in a frequency domain, a pitch period correctness decision parameter of the input signal associated with the pitch frequency bin; determine correctness of the initial pitch period according to the pitch period correctness decision parameter; perform short-pitch detection to obtain a short pitch period; and determine, according to the correctness of the initial pitch period in combination with one or more other conditions, whether to replace the initial pitch period with the short pitch period, wherein the pitch period correctness decision parameter comprises a spectral difference parameter, an average spectral amplitude parameter, and a difference-to-amplitude ratio parameter, wherein the spectral difference parameter is a weighted and smoothed value of a sum of spectral differences of predetermined quantity of frequency bins on two sides of the pitch frequency bin, wherein the average spectral amplitude parameter is a weighted and smoothed value of an average of spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin, and wherein the difference-to-amplitude ratio parameter is a ratio of the sum of the spectral differences of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin to the average of the spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable medium storing computer instructions for encoding, that when executed by one or more processors of a detecting apparatus, cause the one or more processors to:
-
receive an input signal comprising a speech signal or an audio signal; determine, according to an initial pitch period of the input signal in a time domain, a pitch frequency bin of the input signal, wherein the initial pitch period is obtained by performing open-loop detection on the input signal; determine, based on an amplitude spectrum of the input signal in a frequency domain, a pitch period correctness decision parameter of the input signal associated with the pitch frequency bin; determine correctness of the initial pitch period according to the pitch period correctness decision parameter; perform short-pitch detection to obtain a short pitch period; and determine, according to the correctness of the initial pitch period in combination with one or more other conditions, whether to replace the initial pitch period with the short pitch period, wherein the pitch period correctness decision parameter comprises a spectral difference parameter, an average spectral amplitude parameter, and a difference-to-amplitude ratio parameter, wherein the spectral difference parameter is a weighted and smoothed value of a sum of spectral differences of predetermined quantity of frequency bins on two sides of the pitch frequency bin, wherein the average spectral amplitude parameter is a weighted and smoothed value of an average of spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin, and wherein the difference-to-amplitude ratio parameter is a ratio of the sum of the spectral differences of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin to the average of the spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification