IP Library › Granted Patent US 12,573,381
Granted Patent B2
US 12,573,381 · App. 18/258,569 · Granted Mar 10, 2026

Speech recognition method and apparatus, storage medium, and electronic device

Inventors: Wei Xue (Beijing, CN); Yuyu Cai (Beijing, CN); Junyi Wu (Beijing, CN); Yi Peng (Beijing, CN); Lu Fan (Beijing, CN); Fan Yang (Beijing, CN); Guohong Ding (Beijing, CN); Xiaodong He (Beijing, CN)
Assignees: Beijing Wodong Tianjun Information Technology Co., Ltd.; BEIJING JINGDONG CENTURY TRADING CO., LTD.
G10L15/08G10L15/02G10L15/04
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 12,573,381
App. No.
18/258,569
Granted
Mar 10, 2026
Kind
B2
Abstract

Provided are a speech recognition method, a speech recognition apparatus, a computer readable storage medium, and an electronic device. The method comprises: obtaining a sample speech signal, decoding the sample speech signal, obtaining a decoding result, and extracting a first feature from the decoding result; extracting a target speech segment from the sample speech signal, obtaining a log magnitude spectrum of the target speech segment, and determining a second feature according to the log magnitude spectrum; combining the first feature and the second feature to obtain a third feature; training an untrained classifier by using the third feature so as to obtain a trained classifier; and obtaining a third feature to be recognized of a speech signal to be recognized, so as to determine whether the third feature to be recognized comprises a prepositive word.

Claims (85)

1 . A speech recognition method, comprising:

obtaining a to-be-recognized speech signal, obtaining a decoding result by decoding the to-be-recognized speech signal, and extracting a first feature from the decoding result, wherein the first feature contains prepositive word information of the to-be-recognized speech signal;

extracting a target speech segment from the to-be-recognized speech signal, obtaining a logarithmic amplitude spectrum of the target speech segment, and determining a second feature according to the logarithmic amplitude spectrum, wherein the second feature is a two-dimensional time-frequency domain feature of the to-be-recognized speech signal;

obtaining a third feature by combining the first feature with the second feature; and

classifying the third feature using a trained classifier, to determine whether the third feature contains a prepositive word;

wherein a frame length, a window type, and a frame shift used in decoding the to-be-recognized speech signal are the same as a frame length, a window type, and a frame shift used in obtaining the logarithmic amplitude spectrum of the target speech segment.

2 . The method according to claim 1 , wherein obtaining the decoding result by decoding the to-be-recognized speech signal comprises:

decoding the to-be-recognized speech signal using a trained acoustic model and a trained language model, and extracting top three candidate decoding results among candidate decoding results as the decoding result.

3 . The method according to claim 2 , wherein extracting the first feature from the decoding result comprises:

obtaining an acoustic-model score and a language-model score of the decoding result, and obtaining a normalized acoustic-model score and a normalized language-model score as the first feature by performing normalization on the acoustic-model score and the language-model score.

4 . The method according to claim 3 , wherein obtaining the normalized acoustic-model score and the normalized language-model score by performing normalization on the acoustic-model score and the language-model score comprises:

obtaining the normalized acoustic-model score by dividing the acoustic-model score by an acoustic-model score of an optimal decoding result, wherein the optimal decoding result is a candidate decoding result ranked first among the candidate decoding results; and

obtaining the normalized language-model score by dividing the language-model score by a language-model score of the optimal decoding result.

5 . The method according to claim 1 , wherein

determining the prepositive word information as 1 in response to containing of the prepositive word in the decoding result; and

determining the prepositive word information as 0 in response to not containing of the prepositive word in the decoding result.

6 . The method according to claim 5 , wherein

the prepositive word is at least one of “no” or “not”.

7 . The method according to claim 1 , further comprising:

determining a sensitive word set containing the prepositive word, and extracting the first feature from the decoding result in response to containing of any element in the sensitive word set in the decoding result.

8 . The method according to claim 7 , wherein extracting the target speech segment from the to-be-recognized speech signal comprises:

determining a time starting point and a time ending point corresponding to the element according to time information of the decoding result; and

extracting a speech segment between the time starting point and the time ending point from the to-be-recognized speech signal as the target speech segment.

9 . The method according to claim 1 , wherein obtaining the logarithmic amplitude spectrum of the target speech segment comprises:

dividing the target speech segment into a preset number of sub segments;

obtaining a speech spectrogram by performing a short-time Fourier transform on each of the sub segments regarding a preset number of points; and

obtaining the logarithmic amplitude spectrum according to the speech spectrogram.

10 . The method according to claim 9 , wherein determining the second feature according to the logarithmic amplitude spectrum comprises:

obtaining a normalized logarithmic amplitude spectrum by normalizing the logarithmic amplitude spectrum to a range of 0 to 1; and

extracting the second feature from the normalized logarithmic amplitude spectrum.

11 . The method according to claim 10 , wherein extracting the second feature from the normalized logarithmic amplitude spectrum comprises:

dividing the normalized logarithmic amplitude spectrum into multiple sub bands;

obtaining values of time-smoothed sub band energy by smoothing sub band energy of the sub bands in a time direction;

calculating time jump ratios of the sub band energy according to the values of time-smoothed sub band energy;

obtaining a full-band time jump ratio corresponding to a time instant by averaging the time jump ratios of the sub band energy of the multiple sub bands corresponding to the time instant;

obtaining a maximum of the time jump ratio, an average of the time jump ratio, and a standard deviation of the time jump ratio from multiple full-band time jump ratios corresponding to multiple time instants as the second feature;

obtaining values of frequency-smoothed sub band energy by smoothing sub band energy of the sub bands in a frequency direction;

calculating frequency jump ratios of the sub band energy according to the values of frequency-smoothed sub band energy;

obtaining a full-band frequency jump ratio corresponding to a time instant by averaging the frequency jump ratios of the sub band energy of the multiple sub bands corresponding to the time instant; and

obtaining a minimum of the frequency jump ratio, an average of the frequency jump ratio, and a standard deviation of the frequency jump ratio from multiple full-band frequency jump ratios corresponding to multiple time instants as the second feature.

12 . The method according to claim 11 ,

wherein obtaining the values of the time-smoothed sub band energy by smoothing the sub band energy of the sub bands in the time direction comprises:

obtaining the values of time-smoothed sub band energy by averaging the sub band energy at a current time instant and the sub band energy at an adjacent time instant; and

wherein obtaining values of frequency-smoothed sub band energy by smoothing sub band energy of the sub bands in a frequency direction comprises:

obtaining the values of frequency-smoothed sub band energy by averaging the sub band energy at a current frequency and the sub band energy at an adjacent frequency.

13 . The method according to claim 11 ,

wherein calculating the time jump ratios of the sub band energy according to the values of the time-smoothed sub band energy comprises:

obtaining quotients of a value of time-smoothed sub band energy corresponding to a preset time instant and a value of time-smoothed sub band energy corresponding to a current time instant as the time jump ratios of the sub band energy; and

wherein calculating frequency jump ratios of the sub band energy according to the values of frequency-smoothed sub band energy comprises:

obtaining quotients of a value of frequency-smoothed sub band energy corresponding to a preset frequency and a value of frequency-smoothed sub band energy corresponding to a current frequency as the frequency jump ratios of the sub band energy.

14 . The method according to claim 13 , wherein the preset time instant is a 5th time instant after the current time instant, and the preset frequency is a 5th frequency after the current frequency.

15 . An electronic device, comprising:

a processor; and

a memory for storing one or more programs, wherein when the one or more programs are executed by the processor, the processor is configured to

obtain a to-be-recognized speech signal, obtain a decoding result by decoding the to-be-recognized speech signal, and extract a first feature from the decoding result, wherein the first feature contains prepositive word information of the to-be-recognized speech signal;

extract a target speech segment from the to-be-recognized speech signal, obtain a logarithmic amplitude spectrum of the target speech segment, and determine a second feature according to the logarithmic amplitude spectrum, wherein the second feature is a two-dimensional time-frequency domain feature of the to-be-recognized speech signal;

obtain a third feature by combining the first feature with the second feature; and

classify the third feature using a trained classifier, to determine whether the third feature contains a prepositive word;

wherein a frame length, a window type, and a frame shift used in decoding the to-be-recognized speech signal are the same as a frame length, a window type, and a frame shift used in obtaining the logarithmic amplitude spectrum of the target speech segment.

16 . A method for training a classifier, comprising:

obtaining a sample speech signal, obtaining a decoding result by decoding the sample speech signal, and extracting a first feature from the decoding result, wherein the first feature contains prepositive word information of the sample speech signal;

extracting a target speech segment from the sample speech signal, obtaining a logarithmic amplitude spectrum of the target speech segment, and determining a second feature according to the logarithmic amplitude spectrum, wherein the second feature is a two-dimensional time-frequency domain feature of the sample speech signal;

obtaining a third feature by combining the first feature with the second feature; and

training an untrained classifier using the third feature, to obtain a trained classifier;

wherein a frame length, a window type, and a frame shift used in decoding the sample speech signal are the same as a frame length, a window type, and a frame shift used in obtaining the logarithmic amplitude spectrum of the target speech segment.

17 . The method according to claim 16 , wherein extracting the first feature from the decoding result comprises:

obtaining an acoustic-model score and a language-model score of the decoding result, and obtaining a normalized acoustic-model score and a normalized language-model score as the first feature by performing normalization on the acoustic-model score and the language-model score.

18 . The method according to claim 16 , wherein determining the second feature according to the logarithmic amplitude spectrum comprises:

dividing the target speech segment into a preset number of sub segments;

obtaining a speech spectrogram by performing a short-time Fourier transform on each of the sub segments regarding a preset number of points;

obtaining the logarithmic amplitude spectrum according to the speech spectrogram,

obtaining a normalized logarithmic amplitude spectrum by normalizing the logarithmic amplitude spectrum to a range of 0 to 1; and

extracting the second feature from the normalized logarithmic amplitude spectrum.

19 . The method according to claim 18 , wherein extracting the second feature from the normalized logarithmic amplitude spectrum comprises:

dividing the normalized logarithmic amplitude spectrum into multiple sub bands;

obtaining values of time-smoothed sub band energy by smoothing sub band energy of the sub bands in a time direction;

calculating time jump ratios of the sub band energy according to the values of time-smoothed sub band energy;

obtaining a full-band time jump ratio corresponding to a time instant by averaging the time jump ratios of the sub band energy of the multiple sub bands corresponding to the time instant;

obtaining a maximum of the time jump ratio, an average of the time jump ratio, and a standard deviation of the time jump ratio from multiple full-band time jump ratios corresponding to multiple time instants as the second feature;

obtaining values of frequency-smoothed sub band energy by smoothing sub band energy of the sub bands in a frequency direction;

calculating frequency jump ratios of the sub band energy according to the values of frequency-smoothed sub band energy;

obtaining a full-band frequency jump ratio corresponding to a time instant by averaging the frequency jump ratios of the sub band energy of the multiple sub bands corresponding to the time instant; and

obtaining a minimum of the frequency jump ratio, an average of the frequency jump ratio, and a standard deviation of the frequency jump ratio from multiple full-band frequency jump ratios corresponding to multiple time instants as the second feature.

20 . The method according to claim 16 , wherein training the untrained classifier using the third feature, to obtain the trained classifier comprises:

training an untrained naive Bayes classifier using the third feature, to obtain a trained naive Bayes classifier.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 21, 2023
From: XUE, WEI; CAI, YUYU; WU, JUNYI; PENG, YI; FAN, LU; YANG, FAN; DING, GUOHONG; HE, XIAODONG
To: BEIJING WODONG TIANJUN INFORMATION TECHNOLOGY CO., LTD.; BEIJING JINGDONG CENTURY TRADING CO., LTD.
Reel/Frame 064005/0786 →
Priority Claims (1)
CN 202110062350.0 · Jan 18, 2021 · national
Continuity (1)
Related Publication 20240046919A1 · Feb 8, 2024
References Cited (39)
US 6799162B1 · Goronzy et al. · 2004 [cited by applicant]
US 10304440B1 · Panchapagesan et al. · 2019 [cited by applicant]
US 20100280827A1 · Mukerjee · 2010 [cited by examiner]
US 20140012580A1 · Ganong, III et al. · 2014 [cited by applicant]
US 20180211652A1 · Mun · 2018 [cited by examiner]
US 20180350346A1 · Chen et al. · 2018 [cited by applicant]
US 20190189111A1 · Watanabe et al. · 2019 [cited by applicant]
US 20190221206A1 · Chen et al. · 2019 [cited by applicant]
US 20200312309A1 · Lin · 2020 [cited by examiner]
US 20220020361A1 · Wintrode · 2022 [cited by examiner]
US 20220246162A1 · Liang · 2022 [cited by examiner]
CN 103514170A · 2014 [cited by applicant]
CN 104200804A · 2014 [cited by applicant]
CN 105741838A · 2016 [cited by applicant]
CN 106409298A · 2017 [cited by applicant]
CN 106469552A · 2017 [cited by applicant]
CN 107346659A · 2017 [cited by applicant]
CN 108564941A · 2018 [cited by applicant]
CN 109313902A · 2019 [cited by applicant]
CN 110060693A · 2019 [cited by applicant]
CN 110349564A · 2019 [cited by applicant]
CN 110473531A · 2019 [cited by applicant]
CN 110648659A · 2020 [cited by applicant]
CN 110853618A · 2020 [cited by applicant]
CN 111613212A · 2020 [cited by applicant]
CN 111653274A · 2020 [cited by applicant]
CN 111816165A · 2020 [cited by applicant]
CN 111833866A · 2020 [cited by applicant]
CN 112102815A · 2020 [cited by applicant]
CN 113782005A · 2021 [cited by applicant]
JP 2007322758A · 2007 [cited by applicant]
WO 2020073839A1 · 2020 [cited by applicant]
WO 2020247489A1 · 2020 [cited by applicant]
Wu Bin, “Post-Processing Technique For Speech Recognition”, Mar. 15, 2010. [cited by applicant]
Wu Yuhang, “Speech Keyword Matching Model Based On Deep Learning”, Jan. 15, 2019. [cited by applicant]
1st Office Action dated Aug. 29, 2023 of Chinese Application No. 202110062350.0. [cited by applicant]
Notice of Allowance dated Dec. 15, 2023 of Chinese Application No. 202110062350.0. [cited by applicant]
1st Office Action dated Apr. 9, 2024 for Japanese Application No. 2023-515648. [cited by applicant]
International Search Report dated Mar. 9, 2022 of International Application No. PCT/CN2021/137969. [cited by applicant]