# US 2021/0280190 A1 · Human-machine interaction

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

- Number: US 2021/0280190 A1
- Document ID: US20210280190A1
- Status: Published application
- Kind: A1
- Application number: 17/327,706
- Filed: 2021-05-22
- Published: 2021-09-09
- Earliest claimed: 2020-12-30
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Wenquan Wu; Hua Wu; Haifeng Wang
- Web page: https://patentgrep.com/patent/US20210280190A1

## CPC

- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G06F 40/35: Discourse or dialogue representation
- G06T 13/00: Animation
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G10L 15/063: {Training}
- G10L 15/1815: {Semantic context, e.g. disambiguation of the recognition hypotheses based on word meaning}
- G10L 15/25: using position of the lips, movement of the lips or face analysis
- G10L 25/57: for processing of video signals
- G10L 13/027: Concept to speech synthesisers; Generation of natural phrases from machine-based concepts (generation of parameters for speech synthesis out of text G10L13/08)
- 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)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method and apparatus for human-machine interaction, a device, and a medium are provided. A specific implementation solution is: generating reply text of a reply to a received speech signal based on the speech signal; generating a reply speech signal corresponding to the reply text based on a mapping relationship between a speech signal unit and a text unit, the reply text including a group of text units; determining an identifier of an expression and/or action based on the reply text, the expression and/or action being presented by a virtual object; and generating an output video including the virtual object based on the reply speech signal and the identifier of the expression and/or action, the output video including a lip shape sequence determined based on the reply speech signal and to be presented by the virtual object.

## Claims

### Claim 1

A method for human-machine interaction, comprising:
generating, using at least one processor, reply text of a reply to a received speech signal based on the speech signal;
generating, using at least one processor, a reply speech signal corresponding to the reply text based on a mapping relationship between a speech signal unit and a text unit, the reply text including a group of text units, and the generated reply speech signal including a group of speech signal units corresponding to the group of text units;
determining, using at least one processor, an identifier of at least one of an expression and action based on the reply text, wherein the at least one of the expression and action is presented by a virtual object; and
generating, using at least one processor, an output video including the virtual object based on the reply speech signal and the identifier of the at least one of the expression and action, the output video including a lip shape sequence determined based on the reply speech signal and to be presented by the virtual object.

### Claim 2 (depends on 1)

The method according to claim 1, wherein generating the reply text comprises:
recognizing the received speech signal to generate input text; and
acquiring the reply text based on the input text.

### Claim 3 (depends on 2)

The method according to claim 2, wherein acquiring the reply text based on the input text comprises:
inputting personality attributes of the virtual object and the input text to a dialog model to acquire the reply text, the dialog model being a machine learning model which generates the reply text using the personality attributes of the virtual object and the input text.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the dialog model is obtained by performing training with personality attributes of the virtual object and dialog samples, the dialog samples including an input text sample and a reply text sample.

### Claim 5 (depends on 1)

The method according to claim 1, wherein generating the reply speech signal comprises:
dividing the reply text into the group of text units;
acquiring a speech signal unit corresponding to a text unit of the group of text units based on the mapping relationship between a speech signal unit and a text unit; and
generating the reply speech signal based on the speech signal unit.

### Claim 6 (depends on 5)

The method according to claim 5, wherein acquiring the speech signal unit comprises:
selecting the text unit from the group of text units; and
searching a speech library for the speech signal unit corresponding to the text unit based on the mapping relationship between a speech signal unit and a text unit.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the speech library stores the mapping relationship between a speech signal unit and a text unit, the speech signal unit in the speech library being obtained by dividing acquired speech recording data related to the virtual object, the text unit in the speech library being determined based on the speech signal unit obtained through division.

### Claim 8 (depends on 1)

The method according to claim 1, wherein determining the identifier of the at least one of the expression and action comprises:
inputting the reply text to an expression and action recognition model to obtain the identifier of the at least one of the expression and action, the expression and action recognition model being a machine learning model which determines the identifier of the at least one of the expression and action using text.

### Claim 9 (depends on 1)

The method according to claim 1, wherein generating the output video comprises:
dividing the reply speech signal into a group of speech signal units;
acquiring a lip shape sequence of the virtual object corresponding to the group of speech signal units;
acquiring a video segment for the at least one of the expression and action of the virtual object based on the identifier of the at least one of the corresponding expression and action; and
incorporating the lip shape sequence into the video segment to generate the output video.

### Claim 10 (depends on 9)

The method according to claim 9, wherein incorporating the lip shape sequence into the video segment to generate the output video comprises:
determining a video frame at a predetermined time position on a timeline in the video segment;
acquiring, from the lip shape sequence, a lip shape corresponding to the predetermined time position; and
incorporating the lip shape into the video frame to generate the output video.

### Claim 11 (depends on 1)

The method according to claim 1, further comprising:
outputting, using at least one processor, the reply speech signal and the output video in association with each other.

### Claim 12

An electronic device, comprising:
at least one processor; and
a memory communicatively connected to the at least one processor, wherein the memory stores instructions configured to be executed by the at least one processor, the instructions, when executed by the at least one processor, causing the at least one processor to perform acts, comprising:
generating reply text of a reply to a received speech signal based on the speech signal;
generating a reply speech signal corresponding to the reply text based on a mapping relationship between a speech signal unit and a text unit, the reply text including a group of text units, and the generated reply speech signal including a group of speech signal units corresponding to the group of text units;
determining an identifier of at least one of an expression and action based on the reply text, wherein the at least one of the expression and action is presented by a virtual object; and
generating an output video including the virtual object based on the reply speech signal and the identifier of the at least one of the expression and action, the output video including a lip shape sequence determined based on the reply speech signal and to be presented by the virtual object.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein generating reply text comprises:
recognizing the received speech signal to generate input text; and
acquiring the reply text based on the input text.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein acquiring the reply text based on the input text comprises:
inputting personality attributes of the virtual object and the input text to a dialog model to acquire the reply text, the dialog model being a machine learning model which generates the reply text using the personality attributes of the virtual object and the input text.

### Claim 15 (depends on 14)

The electronic device according to claim 14. wherein the dialog model is obtained by performing training with personality attributes of the virtual object and dialog samples, the dialog samples including an input text sample and a reply text sample.

### Claim 16 (depends on 12)

The electronic device according to claim 12, wherein generating the reply speech signal comprises:
dividing the reply text into the group of text units;
acquiring a speech signal unit corresponding to a text unit of the group of text units based on the mapping relationship between a speech signal unit and a text unit; and
generating the reply speech signal based on the speeth signal unit.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein acquiring the speech signal unit comprises:
selecting the text unit from the group of text units; and
searching a speech library for the speech signal unit corresponding to the text unit based on the mapping relationship between a speech signal unit and a text unit.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the speech library stores the mapping relationship between a speech signal unit and a text unit, the speech signal unit in the speech library being obtained by dividing acquired speech recording data related to the virtual object, the text unit in the speeth library being determined based on the speech signal unit obtained through division.

### Claim 19 (depends on 12)

The apparatus according to claim 12, wherein determining the identifier of the at least one of the expression and action comprises:
inputting the reply text to an expression and action recognition model to obtain the identifier of the at least one of the expression and action, the expression and action recognition model being a machine learning model which determines the identifier of the at least one of the expression and action.

### Claim 20

A non-transitory computer-readable storage medium storing computer instructions that, when executed by at least one processor of a computer, cause the computer to perform acts, comprising:
generating reply text of a reply to a received speech signal based on the speech signal;
generating a reply speech signal corresponding to the reply text based on a mapping relationship between a speech signal unit and a text unit, the reply text including a group of text units, and the generated reply speech signal including a group of speech signal units corresponding to the group of text units;
determining an identifier of at least one of an expression and action based on the reply text, wherein the at least one of the expression and action is presented by a virtual object; and
generating an output video including the virtual object based on the reply speech signal and the identifier of the at least one of the expression and action, the output video including a lip shape sequence determined based on the reply speech signal and to be presented by the virtual object.
