# US 2022/0068267 A1 · Method and apparatus for recognizing speech, electronic device and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0068267 A1
- Document ID: US20220068267A1
- Status: Published application
- Kind: A1
- Application number: 17/451,033
- Filed: 2021-10-15
- Published: 2022-03-03
- Earliest claimed: 2020-11-24
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Zhen Wu; Maoren Zhou; Zhijian Wang; Yafeng Cui; Yufang Wu; Qin Qu; Bing Liu; Jiaxiang Ge
- Web page: https://patentgrep.com/patent/US20220068267A1

## CPC

- G10L 15/1815: {Semantic context, e.g. disambiguation of the recognition hypotheses based on word meaning}
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L 15/02: Feature extraction for speech recognition; Selection of recognition unit
- G10L 15/04: Segmentation; Word boundary detection
- G10L 15/08: Speech classification or search
- G10L 25/78: Detection of presence or absence of voice signals (switching of direction of transmission by voice frequency in two-way loud-speaking telephone systems H04M9/10)
- G10L 2015/228: {of application context}
- G10L 2025/783: {based on threshold decision}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

The disclosure provides a method and an apparatus for recognizing a speech, an electronic device and a storage medium. Based on obtaining target speech information, state information of an application corresponding to the target speech information and contextual information are obtained. Semantic completeness of the target speech information is obtained based on the state information and the contextual information. A monitoring duration corresponding to the semantic completeness is obtained, and it is monitored whether there is speech information within the monitoring duration. Speech recognition is performed on the target speech information based on no speech information being monitored within the monitoring duration.

## Claims

### Claim 1

A method for recognizing a speech, comprising:
obtaining state information of an application corresponding to target speech information and contextual information, based on obtaining the target speech information;
obtaining a semantic completeness of the target speech information based on the state information and the contextual information;
determining a monitoring duration corresponding to the semantic completeness, and monitoring whether there is speech information within the monitoring duration; and
performing speech recognition on the target speech information based on no speech information being monitored within the monitoring duration.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the semantic completeness of the target speech information based on the state information and the contextual information comprises:
determining at least one piece of candidate state information corresponding to the state information, wherein each candidate state information is related to a next action of the state information;
obtaining at least one first control instruction of each candidate state information, and obtaining a first semantic similarity degree between the target speech information and each first control instruction;
obtaining at least one second control instruction corresponding to the contextual information, and obtaining a second semantic similarity degree between the target speech information and each second control instruction; and
obtaining the semantic completeness of the target speech information based on the first semantic similarity degree and the second semantic similarity degree.

### Claim 3 (depends on 2)

The method of claim 2, wherein obtaining the semantic completeness of the target speech information based on the first semantic similarity degree and the second semantic similarity degree comprises:
obtaining a first target control instruction that the first semantic similarity degree of the first target control instruction is greater than a first threshold;
obtaining a second target control instruction that the second semantic similarity degree of the second target control instruction is greater than a second threshold; and
obtaining the semantic completeness based on a semantic similarity between the first target control instruction and the second target control instruction.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
obtaining a first difference between the first threshold and the first semantic similarity degree, based on no first control instruction being acquired and the second control instruction being acquired;
obtaining a first ratio of the first difference to the first threshold; and
obtaining the semantic completeness based on a first product value of the second semantic similarity degree and the first ratio.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
obtaining a second difference between the second threshold and the second semantic similarity degree, based on no second control instruction being acquired and the first control instruction being acquired;
obtaining a second ratio of the second difference to the second threshold; and
obtaining the semantic completeness based on a second product value of the first semantic similarity degree and the second ratio.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
obtaining a third difference between the first semantic similarity degree and the second semantic similarity degree, based on no second control instruction being acquired and no first control instruction being acquired; and
obtaining the semantic completeness based on an absolute value of the third difference.

### Claim 7 (depends on 1)

The method of claim 1, wherein obtaining the semantic completeness of the target speech information based on the state information and the contextual information comprises:
obtaining a first characteristic value of the state information;
obtaining a second characteristic value of the contextual information;
obtaining a third characteristic value of the target speech information; and
obtaining the semantic completeness by inputting the first characteristic value, the second characteristic value, and the third characteristic value into a preset deep learning model;
wherein, the preset deep learning model learns in advance a preset correspondence between the first characteristic value, the second characteristic value, the third characteristic value, and the semantic completeness.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
extracting voiceprint feature information of the target speech information;
determining user portrait information based on the voiceprint feature information;
determining whether the user portrait information belongs to preset user portrait information;
determining an adjustment duration corresponding to target user portrait information of the preset user portrait information based on determining that the user portrait information belongs to the target user portrait information; and
obtaining a sum of the monitoring duration and the adjustment duration, and updating the monitoring duration based on the sum.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining the monitoring duration based on the semantic completeness, comprises:
obtaining the monitoring duration based on the semantic completeness by querying a preset correspondence.

### Claim 10

An electronic device, comprising:
at least one processor; and
a memory communicatively connected with the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is configured to:
obtain state information of an application corresponding to target speech information and contextual information, based on obtaining the target speech information;
obtain a semantic completeness of the target speech information based on the state information and the contextual information;
determine a monitoring duration corresponding to the semantic completeness, and monitor whether there is speech information within the monitoring duration; and
perform speech recognition on the target speech information based on no speech information being monitored within the monitoring duration.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the processor is further configured to
determine at least one piece of candidate state information corresponding to the state information, wherein each candidate state information is related to a next action of the state information;
obtain at least one first control instruction of each candidate state information, and obtain a first semantic similarity degree between the target speech information and each first control instruction;
obtain at least one second control instruction corresponding to the contextual information, and obtain a second semantic similarity degree between the target speech information and each second control instruction; and
obtain the semantic completeness of the target speech information based on the first semantic similarity degree and the second semantic similarity degree.

### Claim 12 (depends on 11)

The electronic device of claim 11, wherein the processor is further configured to:
obtain a first target control instruction that the first semantic similarity degree of the first target control instruction is greater than a first threshold;
obtain a second target control instruction that the second semantic similarity degree of the second target control instruction is greater than a second threshold; and
obtain the semantic completeness based on a semantic similarity between the first target control instruction and the second target control instruction.

### Claim 13 (depends on 12)

The electronic device of claim 12, wherein the processor is further configured to:
obtain a first difference between the first threshold and the first semantic similarity degree, based on no first control instruction being acquired and the second control instruction being acquired;
obtain a first ratio of the first difference to the first threshold; and
obtain the semantic completeness based on a first product value of the second semantic similarity degree and the first ratio.

### Claim 14 (depends on 12)

The electronic device of claim 12, wherein the processor is further configured to:
obtain a second difference between the second threshold and the second semantic similarity degree, based on no second control instruction being acquired and the first control instruction being acquired;
obtain a second ratio of the second difference to the second threshold; and
obtain the semantic completeness based on a second product value of the first semantic similarity degree and the second ratio.

### Claim 15 (depends on 12)

The electronic device of claim 12, wherein the processor is further configured to:
obtain a third difference between the first semantic similarity degree and the second semantic similarity degree, based on no second control instruction being acquired and no first control instruction being acquired; and
obtain the semantic completeness based on an absolute value of the third difference.

### Claim 16 (depends on 10)

The electronic device of claim 10, wherein the processor is further configured to:
obtain a first characteristic value of the state information;
obtain a second characteristic value of the contextual information;
obtain a third characteristic value of the target speech information; and
obtain the semantic completeness by inputting the first characteristic value, the second characteristic value, and the third characteristic value into a preset deep learning model;
wherein, the preset deep learning model learns in advance a preset correspondence between the first characteristic value, the second characteristic value, the third characteristic value, and the semantic completeness.

### Claim 17 (depends on 10)

The electronic device of claim 10, wherein the processor is further configured to:
extract voiceprint feature information of the target speech information;
determine user portrait information based on the voiceprint feature information;
determine whether the user portrait information belongs to preset user portrait information;
determine an adjustment duration corresponding to target user portrait information of the preset user portrait information based on determining that the user portrait information belongs to the target user portrait information; and
obtain a sum of the monitoring duration and the adjustment duration, and update the monitoring duration based on the sum.

### Claim 18 (depends on 10)

The electronic device of claim 10, wherein the processor is further configured to:
obtain the monitoring duration based on the semantic completeness by querying a preset correspondence.

### Claim 19

A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to cause the computer implement the method for recognizing a speech, the method comprising:
obtaining state information of an application corresponding to target speech information and contextual information, based on obtaining the target speech information;
obtaining a semantic completeness of the target speech information based on the state information and the contextual information;
determining a monitoring duration corresponding to the semantic completeness, and monitoring whether there is speech information within the monitoring duration; and
performing speech recognition on the target speech information based on no speech information being monitored within the monitoring duration.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein obtaining the semantic completeness of the target speech information based on the state information and the contextual information comprises:
determining at least one piece of candidate state information corresponding to the state information, wherein each candidate state information is related to a next action of the state information;
obtaining at least one first control instruction of each candidate state information, and obtaining a first semantic similarity degree between the target speech information and each first control instruction;
obtaining at least one second control instruction corresponding to the contextual information, and obtaining a second semantic similarity degree between the target speech information and each second control instruction; and
obtaining the semantic completeness of the target speech information based on the first semantic similarity degree and the second semantic similarity degree.
