Speech processing method and apparatus
AssigneeLenovo (Beijing) Limited
InventorsYinping Zhang, Chenyu Zhang, Lili Guo
Life of this patent
Estimating the term…
Abstract
A speech processing method includes obtaining first speech information from a user, determining one or more similar speech segments in the first speech information and deleting one or more similar frames each of the one or more similar speech segments to obtain second speech information, and analyzing the second speech information to determine a user intent corresponding to the first speech information. A duration of the first speech information exceeds a preset analysis duration threshold, and a duration of the second speech information does not exceed the preset analysis duration threshold.
Claims18
A speech processing method, comprising:
- obtaining first speech information from a user, wherein a duration of the first speech information exceeds a preset analysis duration threshold;
- determining one or more similar speech segments in the first speech information and deleting one or more similar frames in the one or more similar speech segments to obtain second speech information, wherein a duration of the second speech information does not exceed the preset analysis duration threshold, and deleting the one or more similar frames in the one or more similar speech segments to obtain the second speech information comprises:
- determining, according to the duration of the first speech information and the preset analysis duration threshold, a deletion ratio;
- and
- deleting, according to the deletion ratio, the one or more similar frames in the one or more similar speech segments to obtain the second speech information;
- and
- analyzing the second speech information to determine a user intent corresponding to the first speech information.
A speech processing apparatus, comprising:
- an acquisition module configured to obtain first speech information from a user, wherein a duration of the first speech information exceeds a preset analysis duration threshold;
- a determination module configured to determine one or more similar speech segments in the first speech information and delete one or more similar frames in the one or more similar speech segments to obtain second speech information, wherein a duration of the second speech information does not exceed the preset analysis duration threshold, and the determination module comprises:
- a determination sub-module configured to determine a corresponding deletion ratio according to the duration of the first speech information and the preset analysis duration threshold;
- and
- a deletion sub-module configured to delete, according to the deletion ratio, the one or more similar frames in the one or more similar speech segments to obtain the second speech information;
- and
- an analysis module configured to analyze the second speech information to determine a user intent corresponding to the first speech information.
An electronic device, comprising:
- a memory for storing program;
- and
- a processing for executing the program stored in the memory to:
- obtain first speech information from a user, wherein a duration of the first speech information exceeds a preset analysis duration threshold;
- determine one or more similar speech segments in the first speech information and delete one or more similar frames in the one or more similar speech segments to obtain second speech information, wherein a duration of the second speech information does not exceed the preset analysis duration threshold, and deleting the one or more similar frames in the one or more similar speech segments to obtain the second speech information comprises:
- determining, according to the duration of the first speech information and the preset analysis duration threshold, a deletion ratio;
- and
- deleting, according to the deletion ratio, the one or more similar frames in the one or more similar speech segments to obtain the second speech information;
- and
- analyze the second speech information to determine a user intent corresponding to the first speech information.
Dependencies are inferred from the claim text.