IP Library Granted Patent US 11,741,980
Granted Patent B2
US 11,741,980 · App. 17/232,807 · Granted Aug 29, 2023

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 11,741,980
App. No.
17/232,807
Granted
Aug 29, 2023
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.

Claims (91)

1. A method comprising:

receiving an input signal comprising 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 of the input signal;

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

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

determining, based on an amplitude spectrum of the transformed input signal in the frequency domain, a pitch period correctness decision parameter of the transformed input signal in the frequency domain, wherein the pitch period correctness decision parameter comprises a spectral difference parameter, and wherein the spectral difference parameter is a weighted and smoothed value of a sum of a plurality of spectral amplitude differences of a predetermined quantity of frequency bins on two sides of the pitch frequency bin, wherein the plurality of spectral amplitude differences refer to differences between spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin and a spectral amplitude of the pitch frequency bin; and

determining a correctness of the initial pitch period according to the pitch period correctness decision parameter.

2. The method of claim 1 , 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 an average of a plurality of spectral amplitudes of the predetermined quantity.

3. The method of claim 2 , wherein the pitch period correctness decision parameter further comprises a difference-to-amplitude ratio parameter, and wherein the difference-to-amplitude ratio parameter is a ratio of the sum of the plurality of spectral amplitude differences to the average of the spectral amplitudes.

4. The method of claim 3 , wherein a Spec_sum represents a sum of spectral amplitudes, wherein a Diff_sum represents the sum of the plurality of spectral amplitude differences, wherein the Spec_sum and the Diff_sum are expressed as:

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 a Spec_avg represents the average of the spectral amplitudes, and wherein the Spec_avg is expressed as:

Spec_avg=Spec_sum/(2* F _ op− 1), and wherein 2*F_op−1 represents the predetermined quantity.

6. The method of claim 5 , wherein the F_op is based on a quantity (N) of points of a fast Fourier transform (FFT) transform and the initial pitch period, which is expressed as:

F _ op=N/T op , and

wherein the T op is the initial pitch period.

7. The method of claim 3 , further comprising:

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

further 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 after determining that the initial pitch period is incorrect.

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 is inversely proportional to the initial pitch period and directly proportional to a quantity of points upon which a fast Fourier transform (FFT) is performed on the input signal.

12. The method of claim 1 , further comprising:

performing short-pitch detection to obtain a short pitch period with a range less than 34; and

determining, according to the correctness of the initial pitch period, 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 comprising:

a memory configured to store 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 comprising 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 of the input signal;

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

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

determine, based on an amplitude spectrum of the transformed input signal in the frequency domain, a pitch period correctness decision parameter of the transformed input signal in the frequency domain, wherein the pitch period correctness decision parameter comprises a spectral difference parameter, and wherein the spectral difference parameter is a weighted and smoothed value of a sum of a plurality of spectral amplitude differences of a predetermined quantity of frequency bins on two sides of the pitch frequency bin, wherein the plurality of spectral amplitude differences refer to differences between spectral amplitudes of the predetermined quantity of frequency bins on the two sides of the pitch frequency bin and a spectral amplitude of the pitch frequency bin; and

determine a correctness of the initial pitch period according to the pitch period correctness decision parameter.

15. The apparatus of claim 14 , 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 an average of a plurality of spectral amplitudes of the predetermined quantity.

16. The apparatus of claim 15 , wherein the pitch period correctness decision parameter further comprises a difference-to-amplitude ratio parameter, and wherein the difference-to-amplitude ratio parameter is a ratio of the sum of the plurality of spectral amplitude differences to the average of the spectral amplitudes.

17. The apparatus of claim 16 , wherein a Spec_sum represents a sum of the spectral amplitudes, wherein a Diff_sum represents the sum of the plurality of spectral amplitude differences, wherein the Spec_sum and the Diff_sum are expressed as:

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 the i is a sequence number of a frequency bin, wherein the S[i] represents a spectral amplitude of an i th frequency bin, and wherein the F_op represents the pitch frequency bin.

18. The apparatus of claim 17 , wherein a Spec_avg represents the average of the spectral amplitudes, and wherein the Spec_avg is expressed as:

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

wherein, 2*F_op−1 represents the predetermined quantity.

19. The apparatus of claim 18 , wherein the F_op is based on a quantity (N) of points of a fast Fourier transform (FFT) transform and the initial pitch period, which is expressed as:

F _ op=N/T op , and

wherein the T op is the initial pitch period.

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

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

further 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 the initial pitch period is incorrect.

23. The apparatus of claim 14 , wherein after the correctness of the initial pitch period according to the pitch period correctness decision parameter is determined, 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 is reversely proportional to the initial pitch period and directly proportional to a quantity of points upon which a fast Fourier transform is 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 with a range less than 34; and

determine, according to the correctness of the initial pitch period, 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 Apr 16, 2021
From: QI, FENGYAN; MIAO, LEI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 055945/0224 →
Priority Claims (1)
CN 201210155298.4 · May 18, 2012 · national
Continuity (5)
Continuation 16277739 · Feb 15, 2019
Continuation 15467356 · Mar 23, 2017
Continuation 14543320 · Nov 17, 2014
Continuation PCTCN2012087512 · Dec 26, 2012
Related Publication 20210335377A1 · Oct 28, 2021
Cited By (1)
US 12,614,558