# US 2023/0058949 A1 · Intelligent voice interaction method and apparatus, device and computer storage medium

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

- Number: US 2023/0058949 A1
- Document ID: US20230058949A1
- Status: Published application
- Kind: A1
- Application number: 17/657,114
- Filed: 2022-03-29
- Published: 2023-02-23
- Earliest claimed: 2021-08-20
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Jizhou Huang; Shaolei Wang; Haifeng Wang
- Web page: https://patentgrep.com/patent/US20230058949A1

## CPC

- G10L 13/047: Architecture of speech synthesisers
- G06F 40/216: using statistical methods
- G06F 40/35: Discourse or dialogue representation
- G10L 15/063: {Training}
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L 2015/0638: {Interactive procedures}
- G10L 2015/225: {Feedback of the input speech}
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure discloses an intelligent voice interaction method and apparatus, a device and a computer storage medium, and relates to voice, big data and deep learning technologies in the field of artificial intelligence technologies. A specific implementation solution involves: acquiring first conversational voice entered by a user; and inputting the first conversational voice into a voice interaction model, to acquire second conversational voice generated by the voice interaction model for the first conversational voice for return to the user; wherein the voice interaction model includes: a voice encoding submodel configured to encode the first conversational voice and historical conversational voice of a current session, to obtain voice state Embedding; a state memory network configured to obtain Embedding of at least one preset attribute by using the voice state Embedding; and a voice generation submodel configured to generate the second conversational voice by using the voice state Embedding and the Embedding of the at least one preset attribute. The at least one preset attribute is preset according to information of a verified object. Intelligent data verification is realized according to the present disclosure.

## Claims

### Claim 1

An intelligent voice interaction method, comprising:
acquiring first conversational voice entered by a user; and
inputting the first conversational voice into a voice interaction model, to acquire second conversational voice generated by the voice interaction model for the first conversational voice for return to the user;
wherein the voice interaction model comprises:
a voice encoding submodel configured to encode the first conversational voice and historical conversational voice of a current session, to obtain voice state Embedding;
a state memory network configured to obtain Embedding of at least one preset attribute by using the voice state Embedding, wherein the at least one preset attribute is preset according to information of a verified object; and
a voice generation submodel configured to generate the second conversational voice by using the voice state Embedding and the Embedding of the at least one preset attribute.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
recording the first conversational voice and the second conversational voice in the historical conversational voice of the current session.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the state memory network comprises at least one memory slot, each memory slot corresponding to a preset attribute; and
the memory slot is configured to generate Embedding of the attribute corresponding to the memory slot and memorize the generated Embedding by using a corresponding attribute name, the voice state Embedding and memorized Embedding.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
acquiring Embedding of corresponding attributes memorized by memory slots after the current session ends; and
classifying the Embedding of the attributes by corresponding classification models respectively, to obtain verification data of the attributes.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising: linking the verification data to object information in a domain knowledge base of the verified object.

### Claim 6 (depends on 1)

The method according to claim 1, wherein information of the verified object comprises geo-location point information.

### Claim 7

A method for acquiring a voice interaction model, comprising:
acquiring training data, the training data comprising conversational voice pairs in a same session, a conversational voice pair comprising user voice and response voice fed back to a user; and
training the voice interaction model by taking the user voice as input to the voice interaction model, a training objective comprising minimizing a difference between the response voice outputted by the voice interaction model and the corresponding response voice in the training data; wherein the voice interaction model comprises:
a voice encoding submodel configured to encode the user voice and historical conversational voice of the same session, to obtain voice state Embedding;
a state memory network configured to obtain Embedding of at least one preset attribute by using the voice state Embedding, wherein the at least one preset attribute is preset according to information of a verified object; and
a voice generation submodel configured to generate the response voice by using the voice state Embedding and the Embedding of the at least one preset attribute.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the step of acquiring training data comprises:
acquiring conversational voice pairs of a same session from call records between a human customer service and the user, the conversational voice pair comprising user voice and response voice fed back to the user by the human customer service.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the state memory network comprises at least one memory slot, each memory slot corresponding to a preset attribute; and
the memory slot is configured to generate and memorize Embedding of the attribute corresponding to the memory slot by using a corresponding attribute name, the voice state Embedding and memorized Embedding.

### Claim 10 (depends on 7)

The method according to claim 7, wherein the training data further comprises: values of the preset attributes marked for each session; and
the method further comprises:
acquiring Embedding of corresponding attributes memorized by the memory slots after the session ends; and
training classification models and the voice interaction model respectively by taking the Embedding of the attributes as input to the classification models, the training objective comprising minimizing a difference between classification results outputted by the classification models and the marked values.

### Claim 11

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 the instructions are executed by the at least one processor to enable the at least one processor to perform an intelligent voice interaction method, wherein the intelligent voice interaction method comprises:
acquiring first conversational voice entered by a user; and
inputting the first conversational voice into a voice interaction model, to acquire second conversational voice generated by the voice interaction model for the first conversational voice for return to the user;
wherein the voice interaction model comprises:
a voice encoding submodel configured to encode the first conversational voice and historical conversational voice of a current session, to obtain voice state Embedding;
a state memory network configured to obtain Embedding of at least one preset attribute by using the voice state Embedding, wherein the at least one preset attribute is preset according to information of a verified object; and
a voice generation submodel configured to generate the second conversational voice by using the voice state Embedding and the Embedding of the at least one preset attribute.

### Claim 12 (depends on 11)

The electronic device according to claim 11, further comprising:
recording the first conversational voice and the second conversational voice in the historical conversational voice of the current session.

### Claim 13 (depends on 11)

The electronic device according to claim 11, wherein the state memory network comprises at least one memory slot, each memory slot corresponding to a preset attribute; and
the memory slot is configured to generate and memorize Embedding of the attribute corresponding to the memory slot by using a corresponding attribute name, the voice state Embedding and memorized Embedding.

### Claim 14 (depends on 11)

The electronic device according to claim 11, further comprising:
acquiring Embedding of corresponding attributes memorized by memory slots after the current session ends; and
classifying the Embedding of the attributes by corresponding classification models respectively, to obtain verification data of the attributes.

### Claim 15 (depends on 14)

The electronic device according to claim 14, further comprising:
linking the verification data to object information in a domain knowledge base of the verified object.

### Claim 16 (depends on 11)

The electronic device according to claim 11, wherein information of the verified object comprises geo-location point information.

### Claim 17

A non-transitory computer readable storage medium with computer instructions stored thereon, wherein the computer instructions are used for causing an intelligent voice interaction method, wherein the intelligent voice interaction method comprises:
acquiring first conversational voice entered by a user; and
inputting the first conversational voice into a voice interaction model, to acquire second conversational voice generated by the voice interaction model for the first conversational voice for return to the user;
wherein the voice interaction model comprises:
a voice encoding submodel configured to encode the first conversational voice and historical conversational voice of a current session, to obtain voice state Embedding;
a state memory network configured to obtain Embedding of at least one preset attribute by using the voice state Embedding, wherein the at least one preset attribute is preset according to information of a verified object; and
a voice generation submodel configured to generate the second conversational voice by using the voice state Embedding and the Embedding of the at least one preset attribute.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, further comprising:
recording the first conversational voice and the second conversational voice in the historical conversational voice of the current session.

### Claim 19 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, wherein the state memory network comprises at least one memory slot, each memory slot corresponding to a preset attribute; and
the memory slot is configured to generate Embedding of the attribute corresponding to the memory slot and memorize the generated Embedding by using a corresponding attribute name, the voice state Embedding and memorized Embedding.

### Claim 20 (depends on 17)

The non-transitory computer readable storage medium according to claim 17, further comprising:
acquiring Embedding of corresponding attributes memorized by memory slots after the current session ends; and
classifying the Embedding of the attributes by corresponding classification models respectively, to obtain verification data of the attributes.
