IP Library Granted Patent US 10,984,813
Granted Patent B2
US 10,984,813 · App. 16/277,739 · Granted Apr 20, 2021

Method and apparatus for detecting correctness of pitch period

Inventors: Fengyan Qi (Shenzhen, CN); Lei Miao (Beijing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G10L21/013G10L19/00G10L21/028G10L25/00G10L25/90
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,984,813
App. No.
16/277,739
Granted
Apr 20, 2021
Kind
B2
Abstract

A method and an apparatus for detecting correctness of a pitch period, where 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. Hence, the method and apparatus for detecting correctness of the pitch period improve, based on a relatively less complex algorithm, accuracy of detecting correctness of the pitch period.

Claims (92)

1. A method for detecting correctness of a pitch period, comprising:

receiving an input signal, wherein the input signal comprises a speech signal or an audio signal in a time domain;

performing an open-loop detection on the input signal to obtain an initial pitch period;

determining, according to the initial pitch period of the input signal, a pitch frequency bin of the input signal;

transforming the input signal in the time domain to a frequency domain;

determining, based on an amplitude spectrum of the input signal in the frequency domain, a pitch period correctness decision parameter of the input signal associated with the pitch frequency bin; and

determining correctness of the initial pitch period according to the pitch period correctness decision parameter, wherein the pitch period correctness decision parameter comprises a difference-to-amplitude ratio parameter, and wherein the difference-to-amplitude ratio parameter is a ratio of a sum of spectral differences of a predetermined quantity of frequency bins on two sides of the pitch frequency bin to an average of spectral amplitudes of the predetermined quantity of the frequency bins on the two sides of the pitch frequency bin.

2. The method of claim 1 , wherein the pitch period correctness decision parameter further comprises a spectral difference parameter, and wherein the spectral difference parameter is a weighted and smoothed value of the sum of the spectral differences.

3. The method of claim 2 , wherein the pitch period correctness decision parameter further comprises an average spectral amplitude parameter, and wherein the average spectral amplitude parameter is a weighted and smoothed value of the average of the spectral amplitudes.

4. The method of claim 3 , wherein a sum of the spectral amplitudes is marked as Spec_sum, wherein the sum of the spectral differences is marked as Diff_sum, wherein the Spec_sum and the Diff_sum are expressed in the following program expression:

Spec_sum[0]=0;

Diff_sum[0]=0;

for (i=1; i < 2*F_op; i++) {

  Spec_sum[i] = Spec_sum[i−1] + S[i];

  Diff_sum[i] = Diff_sum[i−1] + (S[F_op] − S[i]);

},

wherein i is a sequence number of a frequency bin, wherein S[i] represents a spectral amplitude of an i th frequency bin, and wherein F_op represents the pitch frequency bin.

5. The method of claim 4 , wherein the average of the spectral amplitudes is marked as Spec_avg, and wherein the Spec_avg is expressed in the following equation:

Spec_avg=Spec_sum/(2* F _ op −1), and

wherein 2*F_op−1 represents the predetermined quantity of the frequency bins on the two sides of the pitch frequency bin.

6. The method of claim 5 , wherein the F_op is obtained according to a quantity of N points of a fast Fourier transform (FFT) and the initial pitch period using the following equation:

F _ op=N/T op , and

wherein T op is the initial pitch period.

7. The method of claim 3 , wherein determining the correctness of the initial pitch period according to the pitch period correctness decision parameter comprises:

determining that the initial pitch period is correct when the pitch period correctness decision parameter meets a correctness determining condition; and

determining that the initial pitch period is incorrect when the pitch period correctness decision parameter meets an incorrectness determining condition.

8. The method of claim 7 , wherein the correctness determining condition comprises at least one of the following conditions:

the spectral difference parameter is greater than a second difference parameter threshold;

the average spectral amplitude parameter is greater than a second spectral amplitude parameter threshold; or

the difference-to-amplitude ratio parameter is greater than a second ratio factor parameter threshold, and

wherein the incorrectness determining condition comprises at least one of the following conditions:

the spectral difference parameter is less than a first difference parameter threshold;

the average spectral amplitude parameter is less than a first spectral amplitude parameter threshold; or

the difference-to-amplitude ratio parameter is less than a first ratio factor parameter threshold.

9. The method of claim 1 , further comprising performing fine detection on the input signal when it is detected that the initial pitch period is incorrect during determining, according to the pitch period correctness decision parameter, the correctness of the initial pitch period.

10. The method of claim 1 , wherein after determining the correctness of the initial pitch period, the method further comprises:

detecting energy in a low-frequency range; and

performing short-pitch detection on the input signal when the energy in the low-frequency range meets a low-frequency energy determining condition.

11. The method of claim 1 , wherein the pitch frequency bin of the input signal is reversely proportional to the initial pitch period and directly proportional to a quantity of points of a fast Fourier transform performed on the input signal.

12. The method of claim 1 , further comprising:

performing short-pitch detection to obtain a short pitch period; and

determining, 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.

13. The method of claim 1 , further comprising:

correcting the initial pitch period based on the correctness of the initial pitch period to obtain a corrected pitch period; and

outputting the corrected pitch period.

14. An apparatus for detecting correctness of a pitch period, comprising:

a memory comprising instructions; and

one or more processors in communication with the memory, wherein the instructions cause the one or more processors to be configured to:

receive an input signal, wherein the input signal comprises a speech signal or an audio signal in a time domain;

perform an open-loop detection on the input signal to obtain an initial pitch period;

determine, according to the initial pitch period of the input signal, a pitch frequency bin of the input signal;

transform the input signal in the time domain to a frequency domain;

determine, based on an amplitude spectrum of the input signal in the frequency domain, a pitch period correctness decision parameter of the input signal associated with the pitch frequency bin; and

determine correctness of the initial pitch period according to the pitch period correctness decision parameter, wherein the pitch period correctness decision parameter comprises a difference-to-amplitude ratio parameter, and wherein the difference-to-amplitude ratio parameter is a ratio of a sum of spectral differences of a predetermined quantity of frequency bins on two sides of the pitch frequency bin to an average of spectral amplitudes of the predetermined quantity of the frequency bins on the two sides of the pitch frequency bin.

15. The apparatus of claim 14 , wherein the pitch period correctness decision parameter further comprises a spectral difference parameter, and wherein the spectral difference parameter is a weighted and smoothed value of the sum of the spectral differences.

16. The apparatus of claim 15 , wherein the pitch period correctness decision parameter further comprises an average spectral amplitude parameter, and wherein the average spectral amplitude parameter is a weighted and smoothed value of the average of the spectral amplitudes.

17. The apparatus of claim 16 , wherein a sum of the spectral amplitudes is marked as Spec_sum, wherein the sum of the spectral differences is marked as Diff_sum, wherein the Spec_sum and the Diff_sum are expressed in the following program expression:

Spec_sum[0]=0;

Diff_sum[0]=0;

for (i=1; i < 2*F_op; i++) {

Spec_sum[i] = Spec_sum[i−1] + S[i];

Diff_sum[i] = Diff_sum[i−1] + (S[F_op] − S[i]);

},

wherein i is a sequence number of a frequency bin, wherein S[i] represents a spectral amplitude of an i th frequency bin, and wherein F_op represents the pitch frequency bin.

18. The apparatus of claim 17 , wherein the average of the spectral amplitudes is marked as Spec_avg, and wherein the Spec_avg is expressed in the following equation:

Spec_avg=Spec_sum/(2* F _ op −1), and

wherein 2*F_op−1 represents the predetermined quantity of the frequency bins on the two sides of the pitch frequency bin.

19. The apparatus of claim 18 , wherein the F_op is obtained according to a quantity of N points of a fast Fourier transform (FFT) and the initial pitch period using the following equation:

F _ op=N/T op , and

wherein the T op is the initial pitch period.

20. The apparatus of claim 19 , wherein in a manner of determining the correctness of the initial pitch period, the instructions further cause the one or more processors to be configured to:

determine that the initial pitch period is correct when the pitch period correctness decision parameter meets a correctness determining condition; and

determine that the initial pitch period is incorrect when the pitch period correctness decision parameter meets an incorrectness determining condition.

21. The apparatus of claim 20 , wherein the correctness determining condition comprises at least one of the following conditions:

the spectral difference parameter is greater than a second difference parameter threshold;

the average spectral amplitude parameter is greater than a second spectral amplitude parameter threshold; or

the difference-to-amplitude ratio parameter is greater than a second ratio factor parameter threshold, and

wherein the incorrectness determining condition comprises at least one of the following conditions:

the spectral difference parameter is less than a first difference parameter threshold;

the average spectral amplitude parameter is less than a first spectral amplitude parameter threshold; or

the difference-to-amplitude ratio parameter is less than a first ratio factor parameter threshold.

22. The apparatus of claim 14 , wherein the instructions further cause the one or more processors to be configured to perform fine detection on the input signal when it is detected that the initial pitch period is incorrect during determining, according to the pitch period correctness decision parameter, the correctness of the initial pitch period.

23. The apparatus of claim 14 , wherein after determining the correctness of the initial pitch period according to the pitch period correctness decision parameter, the instructions further cause the one or more processors to be configured to:

detect energy in a low-frequency range; and

perform short-pitch detection on the input signal when the energy in the low-frequency range meets a low-frequency energy determining condition.

24. The apparatus of claim 14 , wherein the pitch frequency bin of the input signal is reversely proportional to the initial pitch period and directly proportional to a quantity of points of a fast Fourier transform performed on the input signal.

25. The apparatus of claim 14 , wherein the instructions further cause the one or more processors to be configured to:

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.

26. The apparatus of claim 14 , wherein the instructions further cause the one or more processors to be configured to:

correct the initial pitch period based on the correctness of the initial pitch period to obtain a corrected pitch period; and

output the corrected pitch period.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 30, 2023
From: HUAWEI TECHNOLOGIES CO., LTD.
To: TOP QUALITY TELEPHONY, LLC
Reel/Frame 064757/0541 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 19, 2019
From: QI, FENGYAN; MIAO, LEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 048366/0203 →
Priority Claims (1)
CN 201210155298.4 · May 18, 2012 · national
Continuity (4)
Continuation 15467356 · Mar 23, 2017
Continuation 14543320 · Nov 17, 2014
Continuation PCTCN2012087512 · Dec 26, 2012
Related Publication 20190180766A1 · Jun 13, 2019
Cited By (1)
US 12,614,558