Interaction method, interaction device, electronic device and storage medium

By obtaining user emotional tags and generating matching interaction response data, the problem that virtual images cannot express emotions is solved, and a more natural and interesting interactive experience is achieved.

CN114357135BActive Publication Date: 2024-11-01IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111672307.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-11-01
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

The existing virtual image technology cannot achieve human-like emotional expression, resulting in unnatural interactive experience.

Method used

By obtaining the user's query text and facial expressions, determining the emotional type tag, generating matching emotional response data, and loading it into the virtual image, achieving emotional interactive responses, including voice, facial expressions and body movements.

Benefits of technology

This enables virtual images to effectively express human-like emotions and provide a more natural and interesting interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114357135B_ABST
    Figure CN114357135B_ABST
Patent Text Reader

Abstract

This application discloses an interaction method, an interaction device, an electronic device, and a storage medium. The interaction method includes: acquiring a user's query text and facial expression, and determining the user's current emotion type tag; determining a response text based on the query text and the emotion type tag, and forming a dialogue text based on the query text and the response text; obtaining emotional response data matching the emotion type tag using the dialogue text and the emotion type tag; and loading the emotional response data into a virtual avatar to provide an emotionally charged interactive response to the user. Through the above scheme, the virtual avatar corresponding to the interaction method of this application can perform human-like emotional expression, thereby enabling users to obtain a more natural and engaging interactive experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of the Internet, and in particular to an interaction method, an interaction device, an electronic device and a storage medium. Background Art

[0002] The current virtual image technology can be roughly divided into two categories: two-dimensional virtual images based on real-life video data, and three-dimensional virtual images designed based on modeling software. The method for generating two-dimensional virtual images is based on real-life video data, using deep neural networks to perform face video generation tasks. The method for generating three-dimensional virtual images is to create a drivable three-dimensional virtual image model based on modeling software in advance, and then use deep neural network methods to control the facial expressions and body movements of the model.

[0003] However, regardless of whether it is a two-dimensional or three-dimensional virtual image, the current virtual image interaction system can only be driven by simple facial expressions and body movements, and most of them only focus on how to realize basic functions such as virtual image construction and driving, and do not consider highly expressive factors such as emotions. As a result, the virtual image does not have human-like emotional expression and cannot achieve a very natural interactive experience. Summary of the invention

[0004] The present application provides an interaction method, an interaction device, an electronic device and a storage medium to solve the problem in the prior art that the virtual image does not have human-like emotional expression and cannot achieve a very natural interaction experience.

[0005] In order to solve the above problems, the present application provides an interaction method, which includes: obtaining the user's inquiry text and facial expression, and determining the user's current emotion type label; determining the reply text of the inquiry text based on the inquiry text and the emotion type label, and forming a dialogue text based on the inquiry text and the reply text; using the dialogue text and the emotion type label to obtain emotion response data matching the emotion type label; loading the emotion response data into a virtual image to make an emotional interactive response to the user.

[0006] Among them, the step of using the dialogue text and the emotion type label to obtain the emotion response data matching the emotion type label also includes: using the dialogue text and the emotion type label to synthesize the emotion-containing speech corresponding to the emotion type label; the step of loading the emotion response data into the virtual image to make an emotional interactive response to the user also includes: loading the emotion-containing speech into the virtual image, and playing the emotion-containing speech through the virtual image.

[0007] Among them, the step of using dialogue text and emotion type labels to synthesize speech with emotion corresponding to the emotion type labels also includes: using dialogue text and emotion type labels to synthesize speech with emotion and facial expression animation corresponding to the emotion type labels; loading the speech with emotion into the virtual image, and playing the speech with emotion through the virtual image, also includes: loading the speech with emotion and facial expression animation into the virtual image, playing the speech with emotion through the virtual image, and displaying the facial expression animation.

[0008] Among them, the step of using dialogue text and emotion type labels to synthesize emotional speech and facial expression animation corresponding to the emotion type labels also includes: inputting the dialogue text and emotion type labels into the text-synthesized speech and facial animation model, using the text-synthesized speech and facial animation model to generate an emotion state code based on the emotion type label; using the emotion state code to determine the emotion-containing speech and facial expression animation.

[0009] Among them, the interactive method also includes: inputting the emotion type label, the first dialogue text sample and its corresponding emotion response sample into the first preset network model; the first preset network model synthesizes the speech prediction data and facial expression animation prediction data corresponding to the emotion type label based on the first dialogue text sample and the emotion type label, and compares the speech prediction data and facial expression animation prediction data with the emotion response sample to obtain a corresponding first matching degree result; training the first preset network model according to the first matching degree result and the emotion response sample, and determining the trained model as a text-synthesized speech and facial animation model.

[0010] Among them, the step of using dialogue text and emotion type labels to synthesize speech with emotions corresponding to the emotion type labels also includes: using dialogue text and emotion type labels to synthesize body movements corresponding to the emotion type labels; the step of loading the emotion response data into the virtual image to make an emotional interactive response to the user also includes: loading the body movements into the virtual image and displaying the body movements through the virtual image.

[0011] Among them, the step of using the dialogue text and the speech with emotion to synthesize the body movements corresponding to the emotion type label also includes: obtaining the named entities in the dialogue text; determining the corresponding initial body movements using the named entities; obtaining the stress and / or rhythm information of the speech with emotion; and synthesizing the body movements corresponding to the emotion type label using the initial body movements and the stress and / or rhythm information.

[0012] Among them, the step of using dialogue text and speech with emotion to synthesize body movements corresponding to the emotion type label also includes: inputting the dialogue text and speech with emotion into an action synthesis model, and using the action synthesis model to synthesize body movements corresponding to the emotion type label.

[0013] Among them, the interactive method also includes: inputting the emotion type label, the second dialogue text sample, the speech sample with emotion and the corresponding body movement sample into the second preset network model; the second preset network model synthesizes the body movement prediction data corresponding to the emotion type label based on the second dialogue text sample and the speech sample with emotion, and compares the body movement prediction data with the body movement sample to obtain a corresponding second matching degree result; training the second preset network model according to the second matching degree result and the body movement sample, and determining the trained model as the action synthesis model.

[0014] The present application also provides an interactive device, wherein the interactive device includes: an acquisition module, used to acquire the user's inquiry text and facial expression, and determine the user's current emotion type label; a processing module, used to determine the reply text of the inquiry text based on the inquiry text and the emotion type label, and form a dialogue text based on the inquiry text and the reply text, so as to use the dialogue text and the emotion type label to obtain emotion response data matching the emotion type; a display module, used to load the emotion response data into a virtual image, so as to make an emotional interactive response to the user.

[0015] The present application also provides an electronic device, wherein the electronic device includes a memory and a processor coupled to each other, and the processor is used to execute program instructions stored in the memory to implement any of the above-mentioned interaction methods.

[0016] The present application also provides a computer-readable storage medium on which program instructions are stored, and when the program instructions are executed by a processor, any of the above-mentioned interaction methods is implemented.

[0017] The beneficial effect of the present invention is as follows: different from the prior art, the interactive method in the present application determines the user's current emotion type label through the user's inquiry text and facial expression, so as to be able to determine the reply text of the inquiry text based on the inquiry text and the emotion type label, and form a dialogue text based on the inquiry text and the reply text, so as to be able to use the dialogue text and the emotion type label to obtain emotion response data matching the emotion type label, and load the emotion response data into the virtual image, so as to make an emotional interactive response to the user through the virtual image loaded with the emotion response data, so that the virtual image that interactively responds to the user can effectively express human-like emotions, thereby enabling the user to obtain a more natural and interesting interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flowchart of the first embodiment of the interactive method of the present application;

[0019] Figure 2 It is a flowchart of the second embodiment of the interactive method of the present application;

[0020] Figure 3 It is a flowchart of the third embodiment of the interactive method of the present application;

[0021] Figure 4 yes Figure 3 S33 is a flow chart of an embodiment;

[0022] Figure 5 yes Figure 4 A schematic diagram of a framework of an embodiment of a text-to-speech and facial animation model involved in;

[0023] Figure 6 yes Figure 4 A flowchart of an embodiment of a method for training a text-to-speech and facial animation model involved in;

[0024] Figure 7 is a flowchart of a fourth embodiment of the interaction method of the present application;

[0025] Figure 8 yes Figure 7 A schematic diagram of the process of an embodiment of S53;

[0026] Fig. 9 yes Figure 8 A schematic diagram of a framework of an embodiment of an action synthesis model involved in;

[0027] Fig.10 yes Figure 8 A flowchart of an embodiment of a training method for an action synthesis model involved in;

[0028] Fig.11 It is a schematic diagram of the framework of an embodiment of an interactive device of the present application;

[0029] Fig.12 It is a schematic diagram of the framework of an embodiment of the electronic device of the present application;

[0030] Fig.13 A schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0031] The inventor has found through long-term research that with the popularity of AR (Augmented Reality) / VR (Virtual Reality) concepts in recent years, virtual image technology has gradually entered people's field of vision. Among them, virtual image technology is to use specific digital images in computers to perform tasks such as news broadcasting, program interaction, and human-computer dialogue. In VR / AR, metaverse and other scenes, it acts as a humanoid avatar of users or machines to provide users with a more natural interactive experience.

[0032] The current virtual image technology can be roughly divided into two categories: two-dimensional virtual images based on real-life video data, and three-dimensional virtual images designed based on modeling software. The method of generating two-dimensional virtual images is based on real-life video data, using deep neural networks to perform face video generation tasks. Its advantage is that the generated virtual image video is very realistic, even indistinguishable from real people. Its disadvantage is that the image is single, the flexibility is not high, and it cannot perform free action control and perspective switching. The method of generating three-dimensional virtual images is to create a drivable three-dimensional virtual image model based on modeling software in advance, and then use deep neural network methods to control the facial expressions and body movements of the model. The three-dimensional virtual image model can achieve free action control and perspective switching, but due to the rendering effect of the modeling software, its visual realism is relatively low.

[0033] However, whether it is a two-dimensional or three-dimensional virtual image, the current virtual image interaction system can only be driven by simple facial expressions and body movements. The virtual image does not have human-like emotional expression and cannot achieve a very natural interactive experience.

[0034] Furthermore, the existing methods for driving three-dimensional virtual images include: one is for an animated actor to perform facial expressions and movements in real time, and then use facial capture and motion capture equipment to synchronize the expression and movement data to the three-dimensional virtual image. The drawback of this type of method is that the driving of the three-dimensional virtual image requires the actor to perform in real time, and it cannot be automated. Another type is to use dialogue text to drive directly, generally predicting the facial expressions of the three-dimensional virtual image by text, and the expression of emotions and body movements is achieved using preset resource libraries such as expression libraries and action libraries. This type of method usually has limited expressive ability, and it is difficult to achieve a natural driving effect in open scenarios such as human-computer interaction.

[0035] In order to enable the virtual image to express human-like emotions and thus enable the user to obtain a more natural interaction, the present application provides an interaction method, an interaction device, an electronic device, and a storage medium. The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is particularly pointed out that the following embodiments are only used to illustrate the present application, but do not limit the scope of the present application. Similarly, the following embodiments are only some embodiments of the present application and not all embodiments. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0036] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0037] See also Figure 1 , Figure 1 1 is a flowchart of the first embodiment of the interaction method of the present application. Specifically, the interaction method in this embodiment may include the following steps:

[0038] S11: Obtain the user's query text and facial expression, and determine the user's current emotion type label.

[0039] It is understandable that the interaction method in the present application specifically involves displaying a virtual image to the user, and then using the virtual image in one or more of any reasonable forms such as voice, image display, and three-dimensional projection image display to perform any reasonable interaction with the user, such as dialogue, emotional communication, behavioral action communication, etc.

[0040] The virtual image may be a real person virtual image obtained by modeling a real person virtual image, or a cartoon character virtual image, or an anthropomorphic virtual image of an object, animal, or plant, and any other reasonable style, and may be a two-dimensional or three-dimensional virtual image, which is not limited in this application. In other embodiments, the virtual image may also be a concrete artificial intelligence entity image, which is not limited in this application.

[0041] From this, it can be seen that in order to better interact with the user, the smart terminal device that specifically displays the virtual image must first obtain the user's inquiry text and facial expressions. For example, the smart terminal device uses voice and image acquisition devices, such as cameras, to acquire the user's inquiry voice and facial images, and then convert them into corresponding inquiry text and facial expression data, so as to determine which emotion type label the obtained user's current inquiry text and facial expression specifically corresponds to based on pre-defined emotion type labels.

[0042] Optionally, the intelligent terminal device may be any reasonable electronic terminal device capable of program processing, such as a mobile phone, a tablet computer, a personal computer, a three-dimensional image projector, a simulation robot, etc., and this application does not limit this.

[0043] It is understandable that different sentences and facial expressions usually represent different emotions of the user. For example, "I am very happy today" and "smiling expression" usually represent that the user is in a happy state, while "a little sad today" and "crying, frowning expression" usually represent that the user is in a sad state, etc. Based on this, we can classify the emotional state of the user by performing any reasonable data processing such as word segmentation and feature extraction on the user's query text and facial expression, and based on the definition of commonly used emotional tags, such as neutral, happy, sad, angry, cute, etc., after obtaining the user's query text and facial expression, we can label the user with an emotional type according to the pre-defined feature classification, so that the virtual image can select the appropriate emotional state to interact with the user in the future.

[0044] Furthermore, the inquiry text may specifically be a voice segment, or a sentence marked with intonation features, or any other text style in any reasonable form, and this application does not limit this.

[0045] S12: Determine a reply text of the inquiry text based on the inquiry text and the emotion type label, and form a dialogue text based on the inquiry text and the reply text.

[0046] Furthermore, the intelligent terminal device used to display the virtual image can generate a reply text for the inquiry text after obtaining the user's inquiry text and emotion type label. For example, according to the specific sentence corresponding to the inquiry text and the emotion type label assigned to the user, a sentence response text that conforms to the user's current emotional state is generated, and the emotion state of the sentence response text is rationally adjusted according to the currently determined emotion type label to generate a reply text that conforms to the current situation, thereby being able to form a dialogue text based on the inquiry text and the reply text.

[0047] It is understandable that when users in different emotional states use the same sentence, they usually desire different responses with different tones. Based on this, by establishing the correspondence between the emotional type labels of the inquiry text, a more accurate and reasonable reply text can be formed, and the corresponding dialogue text will also be more reasonable.

[0048] S13: Using the conversation text and the emotion type label, obtain the emotion response data matching the emotion type label.

[0049] Furthermore, after the corresponding dialogue text is formed, the intelligent terminal device used to display the virtual image can use the dialogue text and the emotion type label to synthesize the emotion response data that matches the emotion type label, that is, corresponds to the user's current emotional state.

[0050] It is understandable that the emotional response data may specifically be a speech segment including intonation features, and / or data corresponding to a facial expression image and / or body movements having specific emotional features.

[0051] S14: Load the emotional response data into the virtual image to make an emotional interactive response to the user.

[0052] Specifically, after obtaining the emotional response data corresponding to the user's current emotional type label, the emotional response data can be loaded into the virtual image so that the virtual image can make an interactive response to the user that is suitable for the current situation, that is, respond to the inquiry text and facial expressions given by the user with emotion, for example, a voice with a specific tone corresponding to the user's current emotional state, and / or facial expression animations and / or body movements with specific emotional characteristics.

[0053] It is understandable that the virtual image pre-modeled by the smart terminal device can be a drivable three-dimensional virtual image model, and the emotional response data, such as facial animation and body movement sequence, can be generated into a video frame sequence by a three-dimensional rendering engine, so that after adding synthetic speech, a complete three-dimensional virtual image video can be obtained. The three-dimensional virtual image can be rendered in a free perspective by a three-dimensional rendering engine, and displayed in a two-dimensional plane or three-dimensional AR / VR form, and used in scenes such as news broadcasting, program interaction, and human-computer dialogue.

[0054] Furthermore, in one embodiment, the above S11 may specifically include: inputting the acquired user's inquiry text and facial expression into an NLP (Natural Language Processing) dialogue system with emotional response, so as to determine the user's current emotion type label through the NLP dialogue system.

[0055] It is understandable that after recognizing the content of the user's inquiry text, the NLP dialogue system can first perform sentiment classification on the inquiry text to obtain the sentiment type label of the user's inquiry text, and combine the text sentiment label with the recognized user voice and facial expression to obtain dialogue text and facial expression response data with emotional attributes. Among them, the dialogue text and facial expression response data can be used as input for the voice, facial expression and body movement synthesis system in the future, so that emotions run through all expression dimensions of the three-dimensional virtual image in this case.

[0056] In other embodiments, after obtaining the user's query text and facial expression, the user's current emotion type label can be determined based on a set convolutional network model, or a trained deep learning network model, or a specific function mapping relationship.

[0057] The above scheme obtains emotional response data that matches the emotional type label by utilizing the dialogue text and the emotional type label, and loads the emotional response data into the virtual image, so as to make an emotional interactive response to the user through the virtual image loaded with the emotional response data, thereby making the virtual image that interactively responds to the user have more anthropomorphic emotions and personality, so as to be able to effectively express human-like emotions, thereby enabling the user to obtain a more natural and interesting interactive experience, and the corresponding interactive process is also more flexible and more user-friendly.

[0058] See also Figure 2 , Figure 2 This is a flow chart of the second embodiment of the interaction method of the present application. The interaction method of this embodiment is Figure 1 A flowchart of a detailed embodiment of the interaction method in the embodiment of the present invention comprises the following steps:

[0059] S21: Obtain the user's query text and facial expression, and determine the user's current emotion type label.

[0060] S22: Determine a reply text of the inquiry text based on the inquiry text and the emotion type label, and form a dialogue text based on the inquiry text and the reply text.

[0061] Among them, S21 and S22 are respectively Figure 1 S11 and S12 are the same. For details, please refer to S11 and S12 and their related text descriptions, which will not be repeated here.

[0062] S23: Using the dialogue text and the emotion type label, synthesize the speech with emotion corresponding to the emotion type label.

[0063] Specifically, after the corresponding dialogue text is formed, the intelligent terminal device used to display the virtual image can use the dialogue text and the emotion type label to synthesize the emotion-containing speech that matches the emotion type label, that is, corresponds to the user's current emotion state.

[0064] S24: Loading the emotional speech into the virtual image, and playing the emotional speech through the virtual image.

[0065] Furthermore, after obtaining the emotional voice corresponding to the user's current emotion type label, the emotional voice can be loaded into the virtual image, and the virtual image can play the emotional voice to make a corresponding emotional voice response to the inquiry text and facial expression given by the user and the user's current emotional state determined thereby.

[0066] See also Figure 3 , Figure 3 This is a flow chart of the third embodiment of the interaction method of the present application. The interaction method of this embodiment is Figure 2 A flowchart of a detailed embodiment of the interaction method in the embodiment of the present invention comprises the following steps:

[0067] S31: Obtain the user's query text and facial expression, and determine the user's current emotion type label.

[0068] S32: Determine a reply text of the inquiry text based on the inquiry text and the emotion type label, and form a dialogue text based on the inquiry text and the reply text.

[0069] Among them, S31 and S32 are respectively Figure 2 S21 and S22 are the same. Please refer to S21 and S22 and their related text descriptions for details, which will not be repeated here.

[0070] S33: Using the dialogue text and the emotion type label, synthesize the emotional speech and facial expression animation corresponding to the emotion type label.

[0071] Specifically, after the corresponding dialogue text is formed, the intelligent terminal device used to display the virtual image can use the dialogue text and the emotion type label to synthesize the emotional voice and facial expression animation that matches the emotion type label, that is, corresponds to the user's current emotional state.

[0072] S34: Loading the emotional speech and facial expression animation into the virtual image, and playing the emotional speech and displaying the facial expression animation through the virtual image.

[0073] Furthermore, after obtaining the emotional speech and facial expression animation corresponding to the user's current emotion type label, the emotional speech and facial expression animation can be loaded into the virtual image, so that the virtual image plays the emotional speech and synchronously displays the facial expression animation, so as to make corresponding emotional voice and image responses to the inquiry text and facial expression given by the user and the user's current emotional state determined thereby.

[0074] Please continue to refer to Figure 4 , Figure 4 yes Figure 3 In one embodiment, the interactive method of the present application includes, in addition to the above S31-S34, further some more specific steps. Specifically, the above S33 may also include the following steps:

[0075] S331: Input the dialogue text and the emotion type label into the text-to-speech and facial animation model, and use the text-to-speech and facial animation model to generate an emotion state code based on the emotion type label.

[0076] Specifically, a trained network model, namely, a text-to-speech and facial animation model, is loaded in the smart terminal device used to display the virtual image. After the corresponding dialogue text and emotion type labels are input into the text-to-speech and facial animation model, the text-to-speech and facial animation model can generate emotion state codes based on the corresponding stored or set emotion type labels.

[0077] It is understandable that the emotional state encoding can specifically be a segment of speech with specific intonation characteristics, and / or a facial expression image and / or body movement with specific emotional characteristics, a feature vector representation corresponding to the segment, or any reasonable data such as an encoding tensor or feature sequence, so that it can be displayed as a segment of speech with specific intonation characteristics, and / or a facial expression image and / or body movement with specific emotional characteristics.

[0078] S332: Determine emotional speech and facial expression animation using emotional state coding.

[0079] Furthermore, after the intelligent terminal device obtains the emotion state code through text-to-speech and facial animation models, it can use the emotion state code to determine the corresponding emotion-containing speech and facial expression animation.

[0080] In a specific embodiment, Figure 5 As shown, Figure 5 yes Figure 4From the framework diagram of an embodiment of the text-to-speech and facial animation model involved in the text-to-speech and facial animation model, it can be known that the text-to-speech and facial animation model is specifically a TTSA (Text-to-Speech and Animation) system with emotional attributes, wherein the TTSA system specifically includes an Encoder, an Attention mechanism, and a Decoder, and the Decoder further includes a Voice Dncoder and an Animation Dncoder. And the TTSA system is specifically implemented based on a sequence-to-sequence generation model.

[0081] It can be seen from this that after the intelligent terminal device used to display the virtual image inputs the acquired dialogue text into the TTSA system, its encoder can perform feature encoding on the dialogue text, and the corresponding attention mechanism can perform feature calculations on the feature encoding corresponding to the emotion type labels such as neutral, happy, sad, angry, cute, etc., to obtain the corresponding emotion state encoding, and then the decoder can decode the emotion state encoding and parse the emotion state encoding into emotional speech and facial expression animation.

[0082] Please continue to refer to Figure 6 , Figure 6 yes Figure 4 A flowchart of an embodiment of a method for training a text-to-speech and facial animation model involved in the present invention. In one embodiment, before the above S331, the following may be specifically included:

[0083] S41: Inputting the emotion type label, the first dialogue text sample and its corresponding emotion response sample into the first preset network model.

[0084] It is understandable that before interacting with users through text-to-speech and facial animation models, they need to be trained first. For example, a large amount of audio and video data of announcers speaking with emotional states needs to be collected first to organize them into a first dialogue text sample, and the emotion type label of the first dialogue text sample needs to be determined, and the emotion response sample needs to be extracted, and then the acquired emotion type label, the first dialogue text sample and its corresponding emotion response sample need to be input into the first preset network model.

[0085] The emotional response sample may specifically be the actual emotional speech and emotional facial animation that occurs in response to the first dialogue text sample.

[0086] S42: The first preset network model synthesizes speech prediction data and facial expression animation prediction data corresponding to the emotion type label based on the first dialogue text sample and the emotion type label, and compares the speech prediction data and facial expression animation prediction data with the emotion response sample to obtain a corresponding first matching degree result.

[0087] Furthermore, after obtaining the corresponding first dialogue text sample, the first preset network model can perform feature extraction on the first dialogue text sample to obtain the corresponding emotion state code, and then can perform inference based on the emotion state code and the emotion type label corresponding to the first dialogue text sample, and then synthesize the corresponding speech prediction data and facial expression animation prediction data.

[0088] In order to make the speech prediction data and facial expression animation prediction data more reasonable, that is, closer to the actual character dialogue scene, it is necessary to compare the speech prediction data and facial expression animation prediction data with the emotional response sample to verify the similarity between the predicted data and the sample data. Specifically, this similarity can be quantified through set function processing or network model architecture to obtain the corresponding first matching degree result and confidence.

[0089] Among them, the emotional state needs to pre-define common emotional labels, such as neutral, happy, sad, angry, cute, etc. During training, each pre-defined emotional label is assigned an emotional state code, which is randomly initialized at the beginning. During the training process, each training sample only updates its corresponding emotional state code. After the training is completed, each emotional state code has emotional attributes.

[0090] S43: Train the first preset network model according to the first matching degree result and the emotional response sample, and determine the trained model as a text-to-speech and facial animation model.

[0091] Furthermore, after obtaining the first matching degree result, the first preset network model can be trained according to the first matching degree result and the corresponding emotional response sample, and the internal parameters in the first preset network model can be adjusted in real time to gradually improve the efficiency of the first matching degree result. When the efficiency reaches the set level, the corresponding model after training is determined as the text-to-speech synthesis and facial animation model.

[0092] See also Figure 7 , Figure 7 This is a flow chart of the fourth embodiment of the interaction method of the present application. The interaction method of this embodiment is Figure 2 A flowchart of a detailed embodiment of the interaction method in the embodiment of the present invention comprises the following steps:

[0093] S51: Obtain the user's query text and facial expression, and determine the user's current emotion type label.

[0094] S52: Determine a reply text of the inquiry text based on the inquiry text and the emotion type label, and form a dialogue text based on the inquiry text and the reply text.

[0095] Among them, S51 and S52 are respectively Figure 2 S21 and S22 are the same. Please refer to S21 and S22 and their related text descriptions for details, which will not be repeated here.

[0096] S53: Using the dialogue text and the speech with emotion to synthesize the body movements corresponding to the emotion type label.

[0097] Specifically, after the corresponding dialogue text is formed, the intelligent terminal device used to display the virtual image can use the dialogue text and the emotion type label to synthesize the body movements that match the emotion type label, that is, corresponding to the user's current emotional state.

[0098] S54: Loading the body movements into the virtual image, and displaying the body movements through the virtual image.

[0099] Furthermore, after obtaining the body movement corresponding to the user's current emotion type label, the body movement can be loaded into the virtual image, so that the virtual image can make and display the body movement to respond to the inquiry text and facial expression given by the user and the user's current emotional state determined thereby with corresponding actions.

[0100] Furthermore, in one embodiment, the above S53 may specifically include: using the dialogue text and the emotion type label to synthesize the emotional speech, facial expression animation and body movement corresponding to the emotion type label.

[0101] The above-mentioned S54 corresponds to loading the emotional voice, facial expression animation and body movements into the virtual image, playing the emotional voice through the virtual image, and displaying the facial expression animation and body movements.

[0102] It is understandable that in this embodiment, by adding emotion tags to all expression dimensions of the avatar, such as reply text, voice, facial expressions and body movements, the emotion expression can be effectively integrated into the entire expression process of the three-dimensional avatar. In the reply text, specifically, after recognizing the user's inquiry text and facial and voice emotions, the corresponding dialogue text and emotional response are made, and the emotional response will be integrated into all subsequent expression dimensions.

[0103] Please continue to refer to Figure 8 , Figure 8 yes Figure 7 FIG. 5 is a flow chart of an embodiment of S53.

[0104] In one embodiment, the above S53 may further include:

[0105] S531: Obtain named entities in the conversation text.

[0106] It is understandable that in the dimension of body language, since body language and reply text are usually not closely related, for example, most body language may be meaningless, and only specific semantic texts have corresponding relationships, such as hello, goodbye, please go right, please look up, etc.

[0107] Therefore, after obtaining the user's inquiry text and facial expressions and determining the user's current emotion type label to form the corresponding dialogue text, it is necessary to first extract named entities with action semantics from the dialogue text, such as hello, goodbye, please go left, please look up, etc. These named entities can correspond to relatively certain body movements, so that the subsequently synthesized body movements have a clearer correspondence with the dialogue text.

[0108] S532: Determine the corresponding initial body movement using the named entity.

[0109] Furthermore, after a named entity with a specific semantic text is extracted from the conversation text, an initial body movement corresponding to the named entity can be determined according to the correspondence between the named entity and the body movement.

[0110] S533: Acquire stress and / or rhythm information of the speech with emotion.

[0111] It is understandable that emotional speech usually affects people's body language during conversation to a certain extent. For example, under different emotional states, one or more of any reasonable information such as the stress, rhythm and intonation of the corresponding speech will usually be different, which in turn affects the body language of the conversation participants.

[0112] Specifically, the intelligent terminal device for displaying the virtual image further obtains the stress and / or rhythm information of the user's emotional voice through a corresponding sound receiving device.

[0113] S534: Synthesize the body movement corresponding to the emotion type label using the initial body movement and the stress and / or rhythm information.

[0114] Furthermore, after obtaining the initial body movements and stress and / or rhythm information, the smart terminal device can use the initial body movements and stress and / or rhythm information to synthesize body movements that match the emotion type label, that is, corresponding to the user's current emotional state.

[0115] Furthermore, in one embodiment, the above S53 may specifically include: inputting the dialogue text and the speech with emotion into the action synthesis model, and using the action synthesis model to synthesize the body movement corresponding to the emotion type label.

[0116] Specifically, a trained network model, namely, an action synthesis model, is loaded in the smart terminal device used to display the virtual image, so that after the corresponding dialogue text and emotional speech are input into the action synthesis model, the action synthesis model can synthesize the corresponding body movements based on the corresponding stored or set emotion type labels.

[0117] In a specific embodiment, Fig. 9 As shown, Fig. 9 yes Figure 8 From the framework schematic diagram of an embodiment of the action synthesis model involved in , it can be known that the action synthesis model can specifically be a network model combined with the named entity recognition NER (Named Entity Recognition) task in NLP (Natural Language Processing), and the action synthesis model specifically includes Text Transformer (text translator), Audio Transformer (speech translator), Action NER (action named entity recognition task), CrossAttention (cross attention mechanism), Action Condition (action state recognizer), Action Transformer (action translator), and Action Decoder (action decoder).

[0118] It can be seen from this that after the intelligent terminal device used to display the virtual image inputs the acquired dialogue text and emotional speech into the text translator and speech translator in the action synthesis model respectively, it can obtain the named entities in the dialogue text through its action named entity recognition tasker, and use the named entities to determine the corresponding initial body movements, and perform weighted operations on the dialogue text and the emotional speech through the cross-attention mechanism, and then the action state recognizer can identify the initial body movements and the stress and / or rhythm information from the initial body movements and the results of the weighted operations, so that the action translator can synthesize the body movement sequence or feature vector corresponding to the emotional type label, and the action decoder can also synthesize the corresponding body movements corresponding to the emotional type label.

[0119] Please continue to refer to Fig.10 , Fig.10 yes Figure 8 In one embodiment, before the above S53, the following may be specifically included:

[0120] S61: Input the emotion type label, the second dialogue text sample, the speech sample with emotion and the corresponding body movement sample into the second preset network model.

[0121] It is understandable that before interacting with users through the action synthesis model, it is necessary to train it first. For example, it is necessary to first collect a large number of real-person speaking videos, which include speaking voice and body movements, so as to organize them into second dialogue text samples and speech samples with emotions, and determine the emotion type label of the second dialogue text sample, and extract the body movement sample, and then input the acquired emotion type label, the second dialogue text sample and its corresponding body movement sample into the second preset network model.

[0122] The body movement sample may specifically be an actual body movement that occurs in response to the second dialogue text sample.

[0123] S62: The second preset network model synthesizes body movement prediction data corresponding to the emotion type label based on the second dialogue text sample and the speech sample with emotion, and obtains a corresponding second matching degree result by comparing the body movement prediction data with the body movement sample.

[0124] Furthermore, after obtaining the corresponding second dialogue text sample and the speech sample with emotion, the second preset network model can perform feature extraction on the second dialogue text sample to extract the action state code of each type of named entity in the second dialogue text sample, and add the corresponding action state code to synthesize a semantic action sequence, and then perform integrated calculation and reasoning with the speech sample with emotion to synthesize body movement prediction data corresponding to the emotion type label.

[0125] In order to make the body movement prediction data more reasonable, that is, closer to the actual character dialogue scene, it is necessary to compare the body movement prediction data with the body movement samples to verify the similarity between the predicted data and the sample data. Specifically, this similarity can be quantified through set function processing or network model architecture to obtain the corresponding second matching degree result and confidence.

[0126] It is understandable that, like the above-mentioned TTSA system, the action synthesis model also needs to collect a large number of real-person speaking videos, which include speaking voice and body movements. The video data can be crawled from news reports or TV speeches on the Internet, and the speech text and body movement data can be obtained through speech recognition and 3D (three-dimensional) human posture estimation. The action entity label needs to be fuzzily confirmed in advance and identified in the training set speech text by the NER module. The body movement data corresponding to the action entity label can first be roughly marked by the audio correspondence relationship, and then finely marked by manual. During training, when an action entity label is encountered in a body movement sequence, the system will update the action entity encoding after the Action NER module. After the training is completed, each action entity encoding can learn its corresponding action sequence pattern.

[0127] During reasoning, when the Action NER module recognizes an action entity, its corresponding action entity encoding is added to the main network process of action sequence generation to synthesize an action sequence with clear semantics. At the same time, the emotional attributes in the synthesized speech will also provide a certain emotional state for the generation of the synthesized action sequence.

[0128] S63: Train the second preset network model according to the second matching degree result and the body movement sample, and determine the trained model as the movement synthesis model.

[0129] Furthermore, after obtaining the second matching degree result, the second preset network model can be trained according to the second matching degree result and the corresponding body movement samples, and the internal parameters in the second preset network model can be adjusted in real time to gradually improve the efficiency of the second matching degree result. When the efficiency reaches the set level, the corresponding model after training is determined as the action synthesis model.

[0130] The above scheme adds emotional state attributes to all expression dimensions of the virtual image's dialogue text, voice, facial animation and body movements, so that emotions run through all expression dimensions of the three-dimensional virtual image, making it have emotional and anthropomorphic characteristics, making the three-dimensional virtual image more natural. In the text dimension, in addition to the dialogue text, the system gives an additional emotional label for the text, which will be used as the input of the subsequent speech, facial animation and body movement synthesis system. In the speech and facial animation dimensions, by proposing a TTSA system with emotional state, speech and facial animation sequences with emotional state can be synthesized. In the body movement dimension, by combining the Action NER module, a body movement sequence with a clear semantic relationship with the dialogue text can be synthesized, and the synthesized speech is also used as input to provide emotional state for the entire body movement synthesis. And because the emotional expression runs through the three aspects of the speech, facial expression and body movement of the three-dimensional virtual image, the virtual image driving system and the corresponding interaction method in this application have the advantages of high naturalness, strong expressiveness, and more user-friendly.

[0131] See also Fig.11 , Fig.11 It is a schematic diagram of the framework of an embodiment of the interactive device of the present application.

[0132] The interactive device 71 of this embodiment includes: an acquisition module 711, a processing module 712 and a display module 713. The acquisition module 711 is used to acquire the user's inquiry text and facial expression, and determine the user's current emotion type label; the processing module 712 is used to determine the reply text of the inquiry text based on the inquiry text and the emotion type label, and form a dialogue text based on the inquiry text and the reply text, so as to obtain the emotion response data matching the emotion type by using the dialogue text and the emotion type label; the display module 713 is used to load the emotion response data into the virtual image, so as to make an interactive response with emotion to the user.

[0133] The processing module 712 is also used to use the dialogue text and the emotion type label to synthesize the speech with emotion corresponding to the emotion type label; and the display module 713 is also used to load the speech with emotion into the virtual image and play the speech with emotion through the virtual image.

[0134] The processing module 712 is also used to use the dialogue text and the emotion type label to synthesize the emotional speech and facial expression animation corresponding to the emotion type label; and the display module 713 is also used to load the emotional speech and facial expression animation into the virtual image, and play the emotional speech and display the facial expression animation through the virtual image.

[0135] The processing module 712 is also used to input the dialogue text and emotion type labels into the text-synthesized speech and facial animation model, and use the text-synthesized speech and facial animation model to generate emotion state coding based on the emotion type labels; and use the emotion state coding to determine the emotion-containing speech and facial expression animation.

[0136] The processing module 712 is also used to input the emotion type label, the first dialogue text sample and its corresponding emotion response sample into the first preset network model; the first preset network model synthesizes the speech prediction data and facial expression animation prediction data corresponding to the emotion type label based on the first dialogue text sample and the emotion type label, and compares the speech prediction data and facial expression animation prediction data with the emotion response sample to obtain a corresponding first matching degree result; the first preset network model is trained according to the first matching degree result and the emotion response sample, and the trained model is determined as a text-synthesized speech and facial animation model.

[0137] The processing module 712 is also used to synthesize body movements corresponding to the emotion type label using the dialogue text and the speech with emotion; and the display module 713 is also used to load the body movements into the virtual image and display the body movements through the virtual image.

[0138] The processing module 712 is also used to obtain named entities in the dialogue text; determine the corresponding initial body movements using the named entities; obtain the stress and / or rhythm information of the emotional speech; and synthesize the body movements corresponding to the emotional type label using the initial body movements and the stress and / or rhythm information.

[0139] The processing module 712 is also used to input the dialogue text and the speech with emotion into the action synthesis model, and use the action synthesis model to synthesize the body movements corresponding to the emotion type label.

[0140] The processing module 712 is also used to input the emotion type label, the second dialogue text sample, the speech sample with emotion and the corresponding body movement sample into the second preset network model; the second preset network model synthesizes the body movement prediction data corresponding to the emotion type label based on the second dialogue text sample and the speech sample with emotion, and compares the body movement prediction data with the body movement sample to obtain a corresponding second matching degree result; the second preset network model is trained according to the second matching degree result and the body movement sample, and the trained model is determined as the action synthesis model.

[0141] The above scheme enables the virtual image that interacts with the user to effectively express human-like emotions, thereby allowing the user to obtain a more natural and interesting interactive experience.

[0142] See also Fig.12 , Fig.12 81 is a schematic diagram of a framework of an embodiment of an electronic device of the present application. The electronic device 81 includes a memory 811 and a processor 812 coupled to each other, and the processor 812 is used to execute program instructions stored in the memory 811 to implement the steps of any of the above-mentioned Japanese text-to-sound conversion method embodiments. In a specific implementation scenario, the electronic device 81 may include but is not limited to: a microcomputer, a server, and in addition, the electronic device 81 may also include a mobile device such as a laptop computer and a tablet computer, which is not limited here.

[0143] Specifically, the processor 812 is used to control itself and the memory 811 to implement the steps of any of the above-mentioned Japanese phonetic-sound conversion method embodiments. The processor 812 can also be called a CPU (Central Processing Unit). The processor 812 may be an integrated circuit chip with signal processing capabilities. The processor 812 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 812 can be implemented by an integrated circuit chip.

[0144] The above scheme enables the virtual image that interacts with the user to effectively express human-like emotions, thereby allowing the user to obtain a more natural and interesting interactive experience.

[0145] See also Fig.13 , Fig.13 The schematic diagram of the framework of an embodiment of a computer-readable storage medium of the present application is as follows: The computer-readable storage medium 91 stores program instructions 911 that can be executed by a processor, and the program instructions 911 are used to implement the steps of any of the above-mentioned interaction method embodiments.

[0146] The above scheme enables the virtual image that interacts with the user to effectively express human-like emotions, thereby allowing the user to obtain a more natural and interesting interactive experience.

[0147] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0148] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0149] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0150] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. An interactive method, characterized in that: The interaction method comprises: Obtain the user's query text and facial expression, and determine the user's current emotion type label; Determining a reply text of the inquiry text based on the inquiry text and the emotion type label, and forming a dialogue text based on the inquiry text and the reply text; The emotional response data matching the emotional type tag is obtained by using the dialogue text and the emotional type tag; wherein the step of obtaining the emotional response data matching the emotional type tag by using the dialogue text and the emotional type tag comprises: synthesizing the speech with emotion corresponding to the emotional type tag by using the dialogue text and the emotional type tag; the step of synthesizing the speech with emotion corresponding to the emotional type tag by using the dialogue text and the emotional type tag comprises: inputting the dialogue text and the emotional type tag into a text-synthesized speech and a facial animation model, generating an emotional state code based on the emotional type tag by using the text-synthesized speech and the facial animation model; and determining the speech with emotion and the facial expression animation by using the emotional state code; The emotional response data is loaded into the virtual image to make an emotional interactive response to the user; wherein the step of loading the emotional response data into the virtual image to make an emotional interactive response to the user includes: loading the emotional voice and facial expression animation into the virtual image, playing the emotional voice and displaying the facial expression animation through the virtual image.

2. The interactive method according to claim 1, characterized in that: The interaction method further comprises: Inputting the emotion type label, the first dialogue text sample and its corresponding emotion response sample into a first preset network model; The first preset network model synthesizes speech prediction data and facial expression animation prediction data corresponding to the emotion type label based on the first dialogue text sample and the emotion type label, and compares the speech prediction data and facial expression animation prediction data with the emotion response sample to obtain a corresponding first matching degree result; The first preset network model is trained according to the first matching degree result and the emotional response sample, and the trained model is determined as the text-to-speech and facial animation model.

3. The interactive method according to any one of claims 1 to 2, characterized in that: The step of synthesizing the speech with emotion corresponding to the emotion type label by using the dialogue text and the emotion type label also includes: Synthesizing body movements corresponding to the emotion type label using the dialogue text and the speech with emotion; The step of loading the emotional response data into the virtual image to make an emotional interactive response to the user also includes: The body movements are loaded into the virtual image, and the body movements are displayed through the virtual image.

4. The interactive method according to claim 3, characterized in that: The step of synthesizing the body movements corresponding to the emotion type label by using the dialogue text and the speech with emotion also includes: Obtaining named entities in the conversation text; Determine a corresponding initial body movement using the named entity; Acquiring stress and / or rhythm information of the emotional speech; The body movement corresponding to the emotion type label is synthesized using the initial body movement and the stress and / or rhythm information.

5. The interactive method according to claim 4, characterized in that: The step of synthesizing the body movements corresponding to the emotion type label by using the dialogue text and the speech with emotion also includes: The dialogue text and the speech with emotion are input into an action synthesis model, and the action synthesis model is used to synthesize body movements corresponding to the emotion type label.

6. The interactive method according to claim 5, characterized in that: The interaction method further comprises: Inputting the emotion type label, the second dialogue text sample, the speech sample with emotion, and the corresponding body movement sample into a second preset network model; The second preset network model synthesizes body movement prediction data corresponding to the emotion type label based on the second dialogue text sample and the speech sample with emotion, and obtains a corresponding second matching degree result by comparing the body movement prediction data with the body movement sample; The second preset network model is trained according to the second matching degree result and the body movement sample, and the trained model is determined as the movement synthesis model.

7. An interactive device, characterized in that: The interactive device comprises: The acquisition module is used to obtain the user's query text and facial expression, and determine the user's current emotion type label; A processing module, used to determine a reply text of the inquiry text based on the inquiry text and the emotion type label, and to form a dialogue text based on the inquiry text and the reply text, so as to input the dialogue text and the emotion type label into a text-synthesized speech and a facial animation model, and to generate an emotion state code based on the emotion type label using the text-synthesized speech and the facial animation model; and to determine an emotion-carrying speech and a facial expression animation using the emotion state code; The display module is used to load the emotional speech and facial expression animation into the virtual image, and play the emotional speech and display the facial expression animation through the virtual image.

8. An electronic device, characterized in that: The electronic device includes a memory and a processor coupled to each other, and the processor is used to execute program instructions stored in the memory to implement the interaction method according to any one of claims 1-6.

9. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the interaction method according to any one of claims 1 to 6 is implemented.