IP Library Granted Patent US 11,335,339
Granted Patent B2
US 11,335,339 · App. 16/052,274 · Granted May 17, 2022

Voice interaction method and apparatus, terminal, server and readable storage medium

Inventor: Tian Wang (Beijing, CN)
Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.; Shanghai Xiaodu Technology Co., Ltd.
G10L15/22G06F3/167G10L25/51G10L2015/223G10L2015/228
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,335,339
App. No.
16/052,274
Granted
May 17, 2022
Kind
B2
Abstract

A voice interaction method and apparatus, a terminal, a server, and a readable storage medium are provided. The method includes the following steps: obtaining a user's demand according to the user's voice; determining a pre-stored task template matched with the user's demand; matching the user's demand with a necessary slot in the matched task template; and if the user's demand lacks content of the necessary slot, executing a step of obtaining the content of the necessary slot, to obtain the content of the necessary slot; wherein the task template is a template generated in advance according to information required for activating a task operation through voice, the slot is information in the task template, and the necessary slot is necessary information in the task template for activating the task operation.

Claims (49)

1. A voice interaction method, the method comprising the following steps:

obtaining a demand of a user according to a voice of the user;

determining a pre-stored task template matched with the demand of the user;

matching the demand of the user with a necessary slot in the matched task template; and

in a case that the demand of the user lacks content of the necessary slot, executing a step of obtaining the content of the necessary slot, to obtain the content of the necessary slot, wherein the obtained content of the necessary slot comprises content of a first-class necessary slot, and the content of the first-class necessary slot is content of the necessary slot that must be provided by the user;

wherein the task template is a template generated in advance according to information required for activating a task operation through voice, the slot is information in the task template, and the necessary slot is necessary information in the task template for activating the task operation, and

wherein the step of obtaining the content of the necessary slot comprises:

executing a step of clarifying the content of the first-class necessary slot, including the following steps:

generating interaction data for clarifying the content of the first-class necessary slot according to a preset clarification rule, and providing the interaction data to the user; and

obtaining an input of the user, to determine the content of the first-class necessary slot according to the input of the user;

during execution of the step of clarifying the content of the first-class necessary slot,

in a case that the content of the first-class necessary slot has already been clarified, and a further demand of the user is to query for an already-clarified content, which has been clarified by the user via the interaction data, of the first-class necessary slot, informing the user of the already-clarified content of the first-class necessary slot, queried by the user.

2. The method according to claim 1 , wherein in a case that the demand of the user lacks content of a plurality of first-class necessary slots, executing the step of clarifying the content of a first-class necessary slot with respect to each of first-class necessary slots in which content is absent, in a preset order.

3. The method according to claim 1 , wherein the step of obtaining the content of the necessary slot comprises the following step:

in a case that the demand of the user lacks content of a second-class necessary slot, acquiring the content of the second-class necessary slot locally from a user-used terminal;

wherein the content of the second-class necessary slot is content of the necessary slot that is locally acquirable from the user-used terminal.

4. The method according to claim 3 , wherein in a case that the step of acquiring the content of the second-class necessary slot locally from the user-used terminal fails, the method further comprises the following steps:

generating interaction data for clarifying the content of the second-class necessary slot according to a preset clarification rule, and providing the interaction data to the user; and

obtaining the voice of the user, to determine the content of the second-class necessary slot according to the voice of the user.

5. The method according to claim 3 , wherein the method further comprises the following steps:

in a case that the demand of the user includes content of all necessary slots, executing the task operation corresponding to the task template;

during activation of the task operation or within a preset time period after completion of the activation of the task operation, in a case that the demand of the user is to modify content of any one of the second-class necessary slots, activating the task operation corresponding to the task template after modification;

wherein each task template corresponds to one task operation.

6. The method according to claim 1 , wherein the method further comprises the following step:

in a case that the demand of the user includes content of all necessary slots, activating the task operation corresponding to the task template;

wherein each task template corresponds to one task operation.

7. The method according to claim 6 , wherein the method further comprises the following step:

within a preset time period after completion of activation of the task operation, in a case that the demand of the user is to change the task operation, the method further comprises the following step:

confirming the changing operation with the user, and changing the task operation after the user confirms.

8. A non-transitory computer readable storage medium in which a computer program is stored, wherein the computer program, when executed by a processor, implements the method according to claim 1 .

9. A voice interaction apparatus, the apparatus comprising:

one or more processors, and

a storage device for storing one or more programs and task templates,

the one or more programs, when executed by said one or more processors, enable said one or more processors to:

obtain a demand of a user according to a voice of the user;

determine a task template matched with the demand of the user, and match the demand of the user with a necessary slot in the matched task template; and

obtain the content of the necessary slot in a case that the demand of the user lacks content of the necessary slot, wherein the obtained content of the necessary slot comprises the content of a first-class necessary slot, and the content of the first-class necessary slot is content of the necessary slot that must be provided by the user;

wherein the task template is a template generated in advance according to information required for activating a task operation through voice, the slot is information in the task template, and the necessary slot is necessary information in the task template for activating the task operation, and

wherein the one or more programs, when executed by said one or more processors, further enable said one or more processors to clarify the content of the first-class necessary slot as follow:

generating interaction data for clarifying the content of the first-class necessary slot according to a preset clarification rule, and providing the interaction data to the user; and

obtaining an input of the user, to determine the content of the first-class necessary slot according to the input of the user;

during clarifying the content of the first-class necessary slot,

in a case that the content of the first-class necessary slot has already been clarified, and a further demand of the user is to query for an already-clarified content, which has been clarified by the user via the interaction data, of the first-class necessary slot, informing the user of the already-clarified content of the first-class necessary slot, queried by the user.

10. The apparatus according to claim 9 , wherein the one or more programs, when executed by said one or more processors, enable said one or more processors further to, in a case that the demand of the user lacks content of a plurality of first-class necessary slots, clarify the content of a first-class necessary slot with respect to each of the first-class necessary slots in which content is absent, in a preset order.

11. The apparatus according to claim 9 , wherein the one or more programs, when executed by said one or more processors, enable said one or more processors further to, in a case that the demand of the user lacks content of a second-class necessary slot, acquire the content of the second-class necessary slot locally from a user-used terminal;

wherein the content of the second-class necessary slot is content of the necessary slot that is locally acquirable from the user-used terminal.

12. The apparatus according to claim 11 , wherein the one or more programs, when executed by said one or more processors, enable said one or more processors further to, in a case that the acquiring the content of the second-class necessary slot locally from the user-used terminal fails, execute the following steps:

generating interaction data for clarifying the content of the second-class necessary slot according to a preset clarification rule, and providing the interaction data to the user; and

obtaining the voice of the user, to determine the content of the second-class necessary slot according to the voice of the user.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 30, 2021
From: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.; SHANGHAI XIAODU TECHNOLOGY CO. LTD.
Reel/Frame 056811/0772 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 1, 2018
From: WANG, TIAN
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 046528/0887 →
Priority Claims (1)
CN 201711138336.4 · Nov 16, 2017 · national
Continuity (1)
Related Publication 20190147869A1 · May 16, 2019