Data processing method, device, electronic device and computer storage medium

By extracting intention information and behavioral materials from the preset text of virtual characters and generating behavioral data, it solves the problems of high cost and poor reusability of virtual anchors, and improves the behavioral relevance and user experience of virtual characters.

CN114139525BActive Publication Date: 2024-10-22ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010814986.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-13
Publication Date
2024-10-22
Estimated Expiration
2040-08-13

AI Technical Summary

Technical Problem

The actions of virtual anchors usually need to be completed manually, resulting in high costs and poor reusability of actions, which cannot effectively reduce the production cost of virtual anchors.

Method used

By obtaining the intention information of the statements in the preset text of the virtual character, determine the target behavior material that matches the statement, and perform splicing processing according to the order of the statements in the text to generate the behavior data of the virtual character to reduce the cost of the virtual character and improve The relevance and authenticity of their actions.

Benefits of technology

It achieves a high correlation between the movements and dialogues of virtual characters, improves the user's viewing experience, and reduces the production costs of virtual anchors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139525B_ABST
    Figure CN114139525B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a data processing method, device, electronic device and computer storage medium. The data processing method includes: obtaining the intention information of a sentence in a preset text for a virtual character, the intention information is used to indicate the purpose of the virtual character's behavior; according to the intention information of the sentence, determining the target behavior material that matches the sentence from the preset behavior material of the virtual character; according to the order of the sentences in the preset text, splicing the target behavior material that matches the sentence with the target behavior material that matches other sentences in the preset text to obtain the behavior data of the virtual character corresponding to the preset text. The solution provided by this embodiment can reduce the cost of virtual characters, make virtual characters vivid and realistic, and enhance the user's viewing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a data processing method, device, electronic device and computer storage medium. Background Art

[0002] With the development of video technology, virtual anchors are being used more and more widely. For example, in e-commerce scenarios, virtual anchors (or virtual characters) are used to broadcast live, and during the live broadcast, the virtual anchors introduce products and interact with the audience.

[0003] However, the actions of virtual anchors are usually performed by staff wearing sensory equipment, which means that the labor cost of virtual anchors is high; and the actions of virtual anchors that have been acquired cannot be used repeatedly for different products, which means that the reusability of virtual anchor actions is poor. For the above reasons, the cost of virtual anchors is high. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a data processing solution to at least partially solve the above problems.

[0005] According to a first aspect of an embodiment of the present invention, a data processing method is provided, comprising: obtaining intention information of a sentence in a preset text for a virtual character, the intention information being used to indicate the purpose of the virtual character's behavior; determining, based on the intention information of the sentence, target behavior material that matches the sentence from the preset behavior material of the virtual character; and splicing, based on the order of the sentences in the preset text, the target behavior material that matches the sentence with target behavior materials that match other sentences in the preset text, so as to obtain the behavior data of the virtual character corresponding to the preset text.

[0006] According to a second aspect of an embodiment of the present invention, there is provided a data processing device, comprising: an intention information acquisition module, for obtaining the intention information of a sentence in a preset text for a virtual character, the intention information being used to indicate the purpose of the behavior of the virtual character; a matching module, for determining, based on the intention information of the sentence, a target behavior material that matches the sentence from the preset behavior materials of the virtual character; and a behavior data generation module, for splicing the target behavior material that matches the sentence with the target behavior materials that match other sentences in the preset text according to the order of the sentences in the preset text, so as to obtain the behavior data of the virtual character corresponding to the preset text.

[0007] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the data processing method described in the first aspect.

[0008] According to a fourth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the data processing method as described in the first aspect is implemented.

[0009] According to the data processing scheme provided by the embodiment of the present invention, the intention information of the sentence in the preset text for the virtual character can be obtained, and the intention information is used to indicate the purpose of the behavior of the virtual character; thus, according to the intention information of the sentence, the target behavior material matching the sentence can be determined from the preset behavior material of the virtual character, and then according to the order of the sentences in the preset text, the target behavior material matching the sentence and the target behavior material matching other sentences in the preset text are spliced ​​to obtain the behavior data of the virtual character corresponding to the preset text, so that the action of the virtual character can be determined according to the behavior data, reducing the cost of the virtual character; and corresponding behavior data can be generated according to the preset text, so that the behavior data has a high correlation with the preset text. When the virtual character has a conversation according to the preset text, the body movements and facial expressions of the virtual character can correspond to the behavior data determined according to the preset text, so that the behavior of the virtual character can have a high correlation with its dialogue and correspond to the intention expressed in its dialogue, thereby making the virtual character more vivid and realistic, and improving the user's viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0011] Figure 1A A flowchart of a data processing method provided in Example 1 of the present application;

[0012] Figure 1B for Figure 1A A schematic diagram of an example scenario in the illustrated embodiment;

[0013] Figure 2A A flowchart of a data processing method provided in Example 2 of the present application;

[0014] Figure 2B for Figure 2A A flowchart of steps for determining a trigger time in the illustrated embodiment;

[0015] Figure 2C for Figure 2A A flowchart of steps for obtaining behavior data in the illustrated embodiment;

[0016] Figure 2D for Figure 2A A schematic diagram of a material sequence in the illustrated embodiment;

[0017] Figure 2E for Figure 2A A schematic diagram of a filled material sequence in the illustrated embodiment;

[0018] Figure 2F for Figure 2A A schematic diagram of a cropped material sequence in the illustrated embodiment;

[0019] Figure 3A A flowchart of a data processing method provided in Example 3 of the present application;

[0020] Figure 3B for Figure 3A A schematic diagram of a label level directory in the illustrated embodiment;

[0021] Figure 3C for Figure 3A A schematic diagram of label classification in the illustrated embodiment;

[0022] Figure 3D for Figure 3A A schematic diagram of a recognized preset text in the illustrated embodiment;

[0023] Figure 3E for Figure 3A A schematic diagram of an interface in the illustrated embodiment;

[0024] Figure 4 is a structural block diagram of a data processing device according to a fourth embodiment of the present invention;

[0025] Figure 5 FIG. 4 is a schematic diagram of the structure of an electronic device according to Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.

[0027] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.

[0028] Embodiment 1

[0029] Figure 1A A flowchart of a data processing method provided in Embodiment 1 of the present application is shown in the figure. The data processing method includes:

[0030] S101. Obtaining intention information of a sentence in a preset text for a virtual character, wherein the intention information is used to indicate a behavior purpose of the virtual character.

[0031] A virtual character refers to a character generated by an application installed on a terminal device, or a character simulated by an AI robot, etc. A virtual character may be a virtual person, a virtual animal, etc., which is not limited in this embodiment. A virtual character may include one or more, which is also not limited in this embodiment.

[0032] The preset text of the virtual character can be the script of the virtual character, that is, the dialogue content of the virtual character. The preset text can be written by a dedicated staff member, or can be automatically generated by a computer, which is not limited in this embodiment.

[0033] The preset text may include one or more sentences, and part or all of the sentences may correspond to intention information. In this embodiment, for any sentence in the preset text for the virtual character, the intention information of the sentence may be determined.

[0034] The intention information can be used to indicate the purpose of the virtual character's behavior. The intention information can specifically be the virtual character's intention, the virtual character's emotion, etc. For example, the virtual character's intention to guide the user to pay attention to the product, the virtual character's emotion when introducing the advantages of an item to the user is happy, etc. Of course, the above is only an example, and this embodiment does not limit this.

[0035] It should also be noted that, in the case of obtaining relevant copyrights, the image of the virtual character may include the image of a star, a famous person, a cartoon character, etc., and the actions of the virtual character may be classic or personalized actions; in addition, the image, actions, etc. of the virtual character may include multiple versions, for example, it may include a general version that can be used by more users, and it may also include a special version customized for each user, etc., which is not limited in this embodiment.

[0036] S102: Determine, based on the intention information of the sentence, target behavior material that matches the sentence from preset behavior materials of the virtual character.

[0037] In this embodiment, a database of behavior materials of preset virtual characters may be pre-established, and the database may store behavior materials of preset virtual characters corresponding to a variety of intention information.

[0038] The behavior material may specifically be behavior material corresponding to the physical behavior of the virtual character, behavior material corresponding to facial expressions, or behavior material corresponding to other behaviors, which is not limited in this embodiment.

[0039] For example, if the intent information is "guiding ordering", the corresponding behavior material may be pointing to the "Add to Cart" button with a finger to remind the user to click the button; if the intent information is "introducing the next product", the corresponding behavior material may be indicating that the next product appears.

[0040] The behavior material of the virtual character may be a video frame of the virtual character performing a certain behavior, or may be instruction information instructing the virtual character to perform a certain behavior, for example, indicating the movement trajectory of a node on the virtual character, etc. This embodiment does not limit this.

[0041] After determining the intention information of the sentence, the target behavior material corresponding to the sentence can be determined from the preset behavior material of the virtual character according to the intention information. For example, the behavior material of the preset virtual character can be provided with a corresponding intention information tag. After obtaining the intention information of the sentence, the intention information of the sentence can be directly matched with the intention information tag, and the target behavior material matched by the sentence can be determined according to the matching result. It should be understood that the above is only for illustration and is not intended to be a limitation of this application.

[0042] S103. According to the order of the sentences in the preset text, the target behavior material matched by the sentence is spliced ​​with the target behavior materials matched by other sentences in the preset text to obtain the behavior data of the virtual character corresponding to the preset text.

[0043] For any sentence in the preset text, the behavior data of the virtual character corresponding to the preset text can be obtained by splicing the target behavior material matching the sentence with the target behavior materials matching other sentences in the preset text according to the order of the sentences in the preset text.

[0044] When the target behavior material is a video frame, the behavior data may specifically include: a sequence of target behavior materials obtained by splicing the target behavior material matching the sentence with the target behavior material matching other sentences in the preset text according to the order of the sentences in the preset text; or an image sequence obtained by splicing the target behavior material matching the sentence with the target behavior material matching other sentences in the preset text according to the order of the sentences in the preset text.

[0045] Therefore, when the virtual character conducts a conversation according to the preset text, the actions of the virtual character can be determined based on the behavioral data, thereby reducing the cost of the virtual character; and, the actions of the virtual character can correspond to the obtained behavioral data of the virtual character. Since the behavioral data is determined based on the preset text, the actions of the virtual character are highly correlated with the preset text, thereby making the virtual character more vivid and realistic, thereby enhancing the user's viewing experience.

[0046] Of course, those skilled in the art should understand that the above is only an example and is not intended to limit the present application.

[0047] See also Figure 1B The solution of this embodiment is exemplified below through a specific usage scenario.

[0048] like Figure 1B As shown, the preset text includes 5 sentences, and the intent information corresponding to the sentences are intents A, B, C, D, and E respectively.

[0049] According to the determined intention information, the target behavior materials that match the five sentences are determined to be behavior materials A, B, C, D, and E from the preset behavior materials of the virtual character. According to the order of sentence A in the preset text, the target behavior material A that matches sentence A is spliced ​​with the target behavior materials B, C, D, and E that match other sentences in the preset text, and the behavior data of the virtual character can be obtained.

[0050] The solution provided in this embodiment can obtain the intention information of the sentence in the preset text for the virtual character, and the intention information is used to indicate the purpose of the behavior of the virtual character; thus, according to the intention information of the sentence, the target behavior material matching the sentence can be determined from the preset behavior material of the virtual character, and then according to the order of the sentences in the preset text, the target behavior material matching the sentence is spliced ​​with the target behavior materials matching other sentences in the preset text to obtain the behavior data of the virtual character corresponding to the preset text, so that the action of the virtual character can be determined according to the behavior data, reducing the cost of the virtual character; and corresponding behavior data can be generated according to the preset text, so that the behavior data has a high correlation with the preset text. When the virtual character has a conversation according to the preset text, the body movements and facial expressions of the virtual character can correspond to the behavior data determined according to the preset text, so that the behavior of the virtual character can have a high correlation with its dialogue and correspond to the intention expressed in its dialogue, thereby making the virtual character more vivid and realistic, and improving the user's viewing experience.

[0051] The solution provided in this embodiment can be executed by any appropriate electronic device with data processing capability, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.) and a PC, etc.

[0052] Embodiment 2

[0053] Figure 2A A flow chart of a data processing method provided in Embodiment 2 of the present application is shown in the figure. The data processing method includes:

[0054] S201. Obtaining intention information of a sentence in a preset text for a virtual character, wherein the intention information is used to indicate a behavior purpose of the virtual character.

[0055] In this embodiment, the intent information may specifically include an intent label and an emotion label. The intent label may be used to indicate the purpose of the virtual character, and the emotion label may be used to indicate the emotion of the user in performing this behavior. For example, when a virtual character introduces the advantages of a product, the purpose is to guide the topic so that the user can understand the advantages of the product. In order to make the user have a better impression of the product, the virtual character should express his love for the product when introducing the product, that is, the corresponding intent label is to guide the topic, and the corresponding emotion label is to like.

[0056] For example, if the sentence is "I just introduced this product... Next, I will introduce this product...", the intention label of the sentence can be "leading the topic", and the corresponding emotion label can be "like"; if the sentence is "The above is..., are you more excited after listening to it?", the intention label of the sentence is "progressive", and the corresponding emotion label can be "touched".

[0057] It should also be noted that the intention information of a sentence may include an intention tag, or may include an intention tag and an emotion tag, which is not limited in this embodiment.

[0058] S202: Determine, based on the intention information of the sentence, target behavior material that matches the sentence from preset behavior materials of the virtual character.

[0059] The specific implementation method of this step refers to the above embodiment and will not be repeated here.

[0060] S203: Determine the time information of the sentence in the voice data according to the preset text.

[0061] In this embodiment, the voice data of the preset text may be voice data obtained by converting the preset text into audio; or the voice data may be obtained by manually reading the preset text and recording it, etc. This embodiment does not limit this.

[0062] The time information of a sentence in the speech data may include the time information of the speech corresponding to the sentence in the total speech data. The time information may be, for example, the start time of the speech, the end time of the speech, etc. The time information may specifically be the timestamp of the speech data; the time information may also include the timestamp of each word in the sentence in the speech data, etc.

[0063] For example, the voice data in this article may be voice data of 3 minutes (min) in length, wherein the voice corresponding to one sentence has a start time corresponding to a timestamp of 01:11 and an end time corresponding to a timestamp of 01:30 in the voice data. It should be understood that the above is only an example and is not intended to limit the present application.

[0064] S204: Determine the triggering time of the target behavior material corresponding to the sentence according to the time information of the sentence in the voice data.

[0065] After determining the time information, the triggering time of the target behavior material corresponding to the sentence can be determined according to the time information of the sentence in the voice data. For example, the start time can be determined as the triggering time of the target behavior material, the end time can be determined as the triggering time of the target behavior material, a certain time point between the start time and the end time can be determined as the triggering time of the target behavior material, etc.

[0066] Optionally, in this embodiment, the sentence may include keywords, and the target behavior material may include key frames matching the keywords. Figure 2B As shown, step S204 may specifically include:

[0067] S2041. Determine the start time of the keyword in the sentence carried in the time information of the sentence as the trigger time of the key frame in the corresponding target behavior material.

[0068] The keywords in the sentence may be words used to indicate actions, words that can indicate the purpose of the behavior of a virtual character, etc. The method for determining the specific keywords can be determined by technicians in this field and will not be repeated here.

[0069] The time information of the sentence in the voice data may include the timestamp of each word in the sentence, and the start time of the keyword may be the timestamp of the first word in the keyword.

[0070] The target behavior material may include multiple video frames, and the multiple video frames may include one or more key frames. For example, the target behavior material corresponding to the sentence "Dear babies, welcome to..., love you" is the video frame of the "heart gesture" action, and the key frames may include: the video frame corresponding to the start of the heart gesture action or the video frame corresponding to the completion of the heart gesture action, etc.

[0071] In order to make the virtual character more vivid, when the dialogue content spoken by the virtual character is a keyword in a sentence, it is hoped that the key frame in the target behavior material can be displayed to the user. For this reason, in this embodiment, the start time of the keyword in the sentence carried in the time information of the sentence is determined as the trigger time of the key frame in the corresponding target behavior material. For example, the start time of the keyword "I love you guys" is determined as the trigger time of the key frame in the video frame of the "heart" action, so that when the virtual character says the word "love" in "I love you guys", the heart action is completed synchronously.

[0072] S2042: Determine the triggering time of the target behavior material according to the number of frames between the key frame and the start frame of the target behavior material, and the triggering time of the key frame.

[0073] Since the key frame may be located at the beginning, middle or end of the target behavior material, that is, the position of the key frame in the target behavior material is not fixed, the trigger time of the key frame cannot be used as the trigger time of the target behavior material. Therefore, in this embodiment, the trigger time of the target behavior material is determined according to the number of frames between the key frame and the start frame of the target behavior material and the trigger time of the key frame.

[0074] The start frame of the target behavior material may be the first video frame of the target behavior material, that is, the first video frame when the target behavior material is played. The play time of the start frame of the target behavior material may be directly used as the trigger time of the target behavior material.

[0075] In this embodiment, the starting frame and the key frame of the target behavior material may be the same or different, and this embodiment does not limit this.

[0076] When the starting frame is the same as the key frame, the trigger time of the target behavior material determined in step S2042 is the trigger time of the key frame.

[0077] When the starting frame is different from the key frame, according to the number of frames between the starting frame and the key frame, the interval time between the starting frame and the key frame can be determined. Thus, based on the trigger time of the key frame, the interval time can be subtracted to determine the trigger time of the target behavior material.

[0078] For example, when the statement is "Simple and fashionable... better modifies the face shape", the corresponding target behavior material is the video frame of the action of "giving a thumbs up". The keyword in the statement can be "better". When the dialogue spoken by the virtual character is the word "more", the video frame corresponding to the completion of the action of giving a thumbs up is displayed.

[0079] Therefore, it can be determined that the key frame in the target behavior material is the video frame corresponding to the completion of the action of giving a thumbs up, and the time stamp t1 corresponding to the word "more" is determined as the trigger time of this key frame, that is, the video frame A corresponding to the completion of the action of giving a thumbs up is aligned with the word "more" in the voice data.

[0080] Then, according to the number of frames between the initial frame in the target behavior material and the video frame corresponding to the completion of the action of giving a thumbs up, the interval time t2 can be calculated, and t1 - t2 is determined as the trigger time of the target behavior material.

[0081] By determining the start time of the keyword in the statement carried in the time information as the trigger time of the key frame in the corresponding target behavior material, the key frame in the target behavior material can be aligned with the keyword in the voice, which can make the association between the behavior of the virtual character and the content spoken by the virtual character higher, increase the authenticity of the virtual character, and thus improve the user's viewing experience.

[0082] S205. According to the trigger time of the target behavior material, splice the target behavior material matched with the statement and the target behavior materials matched with other statements in the preset text to obtain the behavior data of the virtual character corresponding to the preset text.

[0083] After determining the trigger time of the target behavior material, the target behavior material can be spliced according to the trigger time to obtain the behavior data of the virtual character.

[0084] For example, if the target behavior materials include 10, the ID value of the target behavior material and its trigger time can be used as a set of values, and the sequence data after sorting according to the order of the target behavior materials can be used as the behavior data. Alternatively, if the target behavior materials include 10, the video frames included in the target behavior materials can be spliced ​​according to the trigger time of the target behavior materials, and the video frame sequence obtained after splicing can be used as the behavior data.

[0085] Optionally, in this embodiment, if Figure 2C As shown, step S205 may include:

[0086] S2051. Splice material sequence data according to the trigger time and duration of the target behavior material matched by the sentence and the trigger time and duration of the target behavior material matched by other sentences in the preset text.

[0087] The duration of the target behavior material may be the time required to play a video frame of the target behavior material.

[0088] For example, in this embodiment, the duration of the voice data of the preset text is 3 minutes (i.e., 180 seconds), and the target behavior materials corresponding to the sentences of the preset text may include 5 target behavior materials A, B, C, D, and E, wherein the trigger time of the target behavior material A is 00:00, and the duration is 15 seconds; the trigger time of the target behavior material B is 00:28, and the duration is 40 seconds; the trigger time of the target behavior material C is 01:00, and the duration is 20 seconds; the trigger time of the target behavior material D is 02:00, and the duration is 35 seconds; the trigger time of the target behavior material E is 02:30, and the duration is 30 seconds. Then, the spliced ​​material sequence data can be as follows: Figure 2D shown.

[0089] S2052: Perform padding and / or cropping processing on the material sequence data.

[0090] like Figure 2D As shown, the spliced ​​material sequence data may include a blank time period between two adjacent target behavior materials, and may also include an overlapping time period between two adjacent target behavior materials. Of course, in other implementations of this embodiment, the spliced ​​material sequence data may include either a blank time period or an overlapping time period, or neither of the blank time period and this embodiment does not limit this.

[0091] For the blank time period, the material sequence data may be filled. The specific filling process may include: for the blank time period between two adjacent target behavior materials in the material sequence data, determining a filling behavior material from preset behavior materials, and filling the filling behavior material into the blank time period of the material sequence data to obtain the material sequence data after the filling process.

[0092] In this embodiment, by filling the blank time period, the target behavior materials before and after the blank time period can be connected in series through the filling behavior material, thereby ensuring the continuity of the behavior of the virtual character and further improving the authenticity of the virtual character.

[0093] For example, the filling behavior material may be a behavior material corresponding to a relatively common action that is preset, for example, an action such as drawing a semicircle with the arm in front of the body. The material sequence data after the filling process may be Figure 2E As shown, material F and material G are filled in two blank time periods respectively.

[0094] When filling, the start time of the blank time period can be directly used as the trigger time of the filling behavior material. If the duration of the filling behavior material is greater than the blank time period, it can be trimmed through the subsequent trimming step; if the duration of the filling behavior material is less than the blank time period, multiple filling behavior materials can be filled in the blank time period, so that the material sequence data after filling does not include the blank time period.

[0095] The material sequence data may be cropped for the overlapping time period. Specifically, the cropping process may include: for the overlapping time period in which two adjacent target behavior materials in the material sequence data overlap, cropping at least one of the two adjacent target behavior materials that overlap.

[0096] In this embodiment, at least one of the two adjacent overlapping target behavior materials is cropped according to the overlapping time period, thereby avoiding action errors caused by the overlap between the target behavior materials and improving the authenticity of the virtual character.

[0097] For example, the cropping process of at least one of the two adjacent target behavior materials that overlap may be: cropping the video frame corresponding to the overlapping time period of one of the two adjacent target behavior materials; or cropping both of the two adjacent target behavior materials so that there is no overlap between the two; or cropping the video frames corresponding to the overlapping time period of the two adjacent target behavior materials so that the overlapping time period becomes a blank time period, which can then be filled using the above filling scheme. The material sequence data after the cropping process can be Figure 2FAs shown, material C and material D are cropped respectively.

[0098] S2053: Obtaining behavior data of the virtual character corresponding to the preset text according to the processed material sequence data.

[0099] In this embodiment, by filling and / or cropping the material sequence, the generated behavior data can be made more realistic and coherent, avoiding situations such as incoherent movements of the virtual character due to blanks between the target behavior materials, or movement errors due to overlaps between the target behavior materials, thereby improving the authenticity of the virtual character.

[0100] The solution provided in this embodiment can be executed by any appropriate electronic device with data processing capability, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.) and a PC, etc.

[0101] Embodiment 3

[0102] Figure 3A This is a flow chart of a data processing method provided in Embodiment 3 of the present application. In this embodiment, a script is taken as an example to schematically illustrate the scheme of the present application. As shown in the figure, the data processing method includes:

[0103] S301. Obtain multiple sample sentences and intent information corresponding to the sample sentences according to text samples.

[0104] In this embodiment, the text sample can be an intelligent script or a script written by a screenwriter. The text sample can include one or more text samples, and the text sample can be a complete script or a part of a script, which is not limited in this embodiment. Of course, the text sample can also be other, which is also within the scope of protection of this application.

[0105] The text sample may include multiple sample sentences and intent information corresponding to the annotated sample sentences. The intent information may include intent labels of the sample sentences, or may include intent labels and emotion labels of the sample sentences.

[0106] The specific process of determining the text sample label may be a process of generating a label hierarchy directory of the text sample. The label hierarchy may be as follows: Figure 3BAs shown, "Product Type" can be the type of text sample, Interaction Link 01 and Interaction Link 02 can be the interaction links of the text sample, Interaction Link Slice 01 is the slice of Interaction Link 01, "Intent and Emotion" is the label of the sentence corresponding to Interaction Link Slice 01, TTS is Text To Speech, that is, the text included in the sentence is converted into speech, "Expression" and "Behavior" can be the intention label and emotion label of the sentence, for example, the expression can be "happy", the behavior can be "guiding", etc., "Scene" can be the scene content of the interaction link, and the scene content can specifically include barrage, cards, background animation, etc.

[0107] In this embodiment, after the intent information of the text sample is determined, the sample sentences with the same intent information may be summarized as multiple training samples of the intent information.

[0108] For example, after determining the intent label and sentiment label of a text sample, the labels can be classified and summarized. Figure 3C Some label classification and summary results are shown. For example, labels may include emotional labels, general labels, narrative labels, and functional labels. Among them, emotional labels may be labels related to emotions, which may specifically include "happy", "extremely", "frustrated", etc.; general labels may be labels corresponding to more common sentences, which may specifically include "standby", "patting the head", "rubbing hands", etc.; narrative labels may be labels corresponding to sentences used to narrate content, which may specifically include "give examples", "affirmation", "emphasis", etc.; functional labels may be labels related to the functions that the language hopes to achieve, which may specifically include "selling goods", "taking out goods", "guiding orders", etc.

[0109] S302: Using the intent information and corresponding sample sentences as training samples, train an intent recognition model for recognizing the intent information of sentences in the preset text.

[0110] The intention recognition model in this embodiment can be any supervised training model, which is not limited in this embodiment. In addition, the specific training method can refer to the relevant technology, which will not be described in detail in this embodiment.

[0111] S303: Determine, with respect to the intention information, a behavior material database corresponding to the intention information.

[0112] In this embodiment, the intention information can be sent to the designer, and the designer can generate corresponding behavior materials according to the intention information and save them to the behavior material library. In this embodiment, the behavior materials can be animation materials drawn by the designer.

[0113] After generating the behavior material, you can add digital annotations to the behavior material, such as increasing the duration of the behavior material, increasing the triggering time of the key frames in the behavior material, etc.

[0114] S304, obtaining a preset text for the virtual character, inputting the preset text into an intention recognition model, performing intention recognition on sentences in the preset text for the virtual character through the intention recognition model, and obtaining intention information of the sentences in the preset text.

[0115] For example, the intent recognition model can label the sentences to represent the intent information through the labels. The labels corresponding to the sentences can include intent labels, or intent labels and emotion labels, which are not limited in this embodiment.

[0116] In this embodiment, the intention information of some sentences in the preset text can be obtained, and the intention information of all sentences can also be obtained, which is not limited in this embodiment.

[0117] For example, the preset text can be divided into multiple interaction links, and then the sentences of each interaction link can be input into the intent recognition model, thereby, the labels for representing the intent information of the sentences of the multiple interaction links can be determined respectively, and then the interaction links can be divided into multiple interaction link slices according to the labels, thereby generating a label directory hierarchy corresponding to the preset text; or, the preset text can be input into the intent recognition model, thereby determining the labels for representing the intent information of the sentences in the preset text, and then parsing the intent of the preset text according to the determined labels to generate a label directory hierarchy of the preset text.

[0118] For example, the recognized preset text can be Figure 3D As shown, for example, the intent label of "I just introduced some of the features of this isolation product" is "leading the topic", and the intent labels of the unlabeled sentences can be defaulted to general labels.

[0119] S305: According to the intention information corresponding to the sentence of the preset text, the target behavior material corresponding to the sentence is obtained from the behavior material database.

[0120] The specific determination method is referred to the above embodiment and will not be described in detail here.

[0121] Specifically, in this embodiment, step S305 may be: selecting corresponding animation resources according to the intention label and the emotion label.

[0122] S306. According to the order of the sentences in the preset text, the target behavior material matched by the sentence is spliced ​​with the target behavior materials matched by other sentences in the preset text to obtain the behavior data of the virtual character corresponding to the preset text.

[0123] In this embodiment, the start time of the keyword in the sentence can be used as the trigger time of the key frame in the target behavior material corresponding to the sentence. Figure 3D As shown, the words with background in the sentence are keywords, and the words with background in "Just now I just introduced some of the features of this product" are keywords. Then the start time of "Just now" can be used as the trigger time of the key frame in the target behavior material of "leading the topic". Then, the trigger time of the target behavior material can be determined according to the number of frames between the key frame and the start frame of the target behavior material, and the trigger time of the key frame.

[0124] After determining the triggering time of the target behavior material, the target behavior material can be processed according to the duration of the corresponding sentence and the duration of the target behavior material (such as animation resources). For example, overlong target behavior materials can be trimmed or general behavior materials can be added before and after the target behavior materials.

[0125] After obtaining the behavioral data, the behavioral data can be combined with the voice data for benchmarking triggering, so that the behavior of the virtual character displayed to the user has a strong correlation with the dialogue of the virtual character.

[0126] For example, Figure 3E As shown, when displaying, the top of the interface may include a virtual character, and the bottom of the virtual character may include the dialogue content of the virtual character, that is, the preset text. Figure 3E The dialogue content in the video is divided into 5 sentences, namely, sentences 1-5. The intention information of sentence 1 is "question", the intention information of sentence 2 is "transition", the intention information of sentence 2 is "general", the intention information of sentence 4 is "progressive", and the intention information of sentence 5 is "guide ordering". There are target behavior materials corresponding to 5 sentences at the bottom of the interface, namely, materials 1-5. When sentence 2 "Don't be in a hurry, let's take a look at the effect of wearing this wool sweater" starts playing, the black vertical line at the front of material 2 indicates that material 2 is triggered.

[0127] The solution provided by this embodiment can determine the actions of the virtual character based on the behavior data when the virtual character conducts a conversation according to the preset text, thereby reducing the cost of the virtual character; and can generate corresponding behavior data based on the sentences of the preset text, so that the behavior data has a high correlation with the preset text. When the virtual character conducts a conversation according to the preset text, the virtual character's body movements and facial expressions can correspond to the behavior data determined according to the preset text, so that the behavior of the virtual character can have a high correlation with its conversation and correspond to the intention expressed in its conversation, thereby making the virtual character more vivid and realistic, and improving the user's viewing experience.

[0128] The solution provided in this embodiment can be executed by any appropriate electronic device with data processing capability, including but not limited to: a server, a mobile terminal (such as a mobile phone, a PAD, etc.) and a PC, etc.

[0129] Embodiment 4

[0130] Figure 4 A structural schematic diagram of a data processing device provided for Embodiment 4 of the present application, as shown in the figure, comprises: an intention information acquisition module 401, a matching module 402, and a behavior data generation module 403.

[0131] The intention information obtaining module 401 is used to obtain the intention information of the sentence in the preset text for the virtual character, and the intention information is used to indicate the purpose of the behavior of the virtual character;

[0132] A matching module 402 is used to determine a target behavior material matching the sentence from preset behavior materials of a virtual character according to the intention information of the sentence;

[0133] The behavior data generation module 403 is used to splice the target behavior material matching the sentence with the target behavior material matching other sentences in the preset text according to the order of the sentences in the preset text to obtain the behavior data of the virtual character corresponding to the preset text.

[0134] Optionally, in any embodiment of the present application, the behavior data generation module 403 includes: a time information determination module 4031, used to determine the time information of the sentence in the voice data according to the voice data of the preset text; a material trigger determination module 4032, used to determine the trigger time of the target behavior material corresponding to the sentence according to the time information of the sentence in the voice data; a splicing module 4033, used to splice the target behavior material matching the sentence with the target behavior materials matching other sentences in the preset text according to the trigger time of the target behavior material, so as to obtain the behavior data of the virtual character corresponding to the preset text.

[0135] Optionally, in any embodiment of the present application, the material trigger determination module includes: a key frame trigger determination module, configured to determine the start time of the keyword in the sentence carried in the time information of the sentence as the trigger time of the key frame in the corresponding target behavior material;

[0136] The material trigger time determination module determines the trigger time of the target behavior material according to the number of frames between the key frame and the start frame of the target behavior material and the trigger time of the key frame.

[0137] Optionally, in any embodiment of the present application, the splicing module includes: a sequence determination module, used to splice out material sequence data according to the trigger time and duration of the target behavior material matched by the sentence, and the trigger time and duration of the target behavior material matched by other sentences in the preset text; a processing module, used to fill and / or crop the material sequence data; and a generation module, used to obtain the behavior data of the virtual character corresponding to the preset text based on the processed material sequence data.

[0138] Optionally, in any embodiment of the present application, the processing module is used to: determine a filling behavior material from preset behavior materials for a blank time period between two adjacent target behavior materials in the material sequence data, and fill the filling behavior material into the blank time period of the material sequence data to obtain the material sequence data after filling processing.

[0139] Optionally, in any embodiment of the present application, the processing module is used to: for an overlapping time period in which two adjacent target behavior materials overlap in the material sequence data, perform cropping processing on at least one of the two adjacent target behavior materials that overlap.

[0140] Optionally, in any embodiment of the present application, the data processing device also includes: a sample determination module 404, used to obtain multiple sample sentences and intent information corresponding to the sample sentences based on text samples; a training module 405, used to train an intent recognition model for identifying the intent information of sentences in the preset text using the intent information and the corresponding sample sentences as training samples.

[0141] The data processing device of this embodiment is used to implement the corresponding data processing methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each module in the data processing device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.

[0142] Embodiment 5

[0143] Reference Figure 5 , shows a schematic diagram of the structure of an electronic device according to Embodiment 5 of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.

[0144] like Figure 5 As shown, the electronic device may include: a processor (processor) 502 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .

[0145] in:

[0146] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .

[0147] The communication interface 504 is used to communicate with other electronic devices or servers.

[0148] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in the above data processing method embodiment.

[0149] Specifically, the program 510 may include program codes, which include computer operation instructions.

[0150] The processor 502 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0151] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0152] The specific implementation of each step in program 510 can refer to the corresponding description of the corresponding steps and units in the above data processing method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiment, which will not be repeated here.

[0153] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.

[0154] The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code that may be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded over a network and will be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor, or hardware, the data processing method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the data processing method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the data processing method shown herein.

[0155] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.

[0156] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.

Claims

1. A data processing method, comprising: Obtaining intention information of a sentence in a preset text for a virtual character, wherein the intention information is used to indicate a behavior purpose of the virtual character; According to the intention information of the sentence, determining a target behavior material matching the sentence from the preset behavior materials of the virtual character; According to the triggering time of the target behavior material, the target behavior material matching the sentence is spliced ​​with the target behavior material matching other sentences in the preset text to obtain the behavior data of the virtual character corresponding to the preset text; The trigger time is obtained by: determining the start time of the keyword in the sentence as the trigger time of the corresponding key frame in the target behavior material; determining the trigger time of the target behavior material according to the number of frames between the key frame and the start frame of the target behavior material, and the trigger time of the key frame.

2. The method according to claim 1, wherein: The step of splicing the target behavior material matching the sentence with target behavior materials matching other sentences in the preset text according to the triggering time of the target behavior material to obtain behavior data of the virtual character corresponding to the preset text includes: splicing material sequence data according to the triggering time and duration of the target behavior material matched by the sentence, and the triggering time and duration of the target behavior material matched by other sentences in the preset text; Performing padding and / or cropping processing on the material sequence data; According to the processed material sequence data, the behavior data of the virtual character corresponding to the preset text is obtained.

3. The method according to claim 2, wherein: The filling process of the material sequence data includes: For the blank time period between two adjacent target behavior materials in the material sequence data, a filling behavior material is determined from preset behavior materials, and the filling behavior material is filled into the blank time period of the material sequence data to obtain the material sequence data after filling processing.

4. The method according to claim 2 or 3, wherein: The clipping of the material sequence data includes: For an overlapping time period in which two adjacent target behavior materials overlap in the material sequence data, at least one of the two adjacent overlapping target behavior materials is cropped.

5. The method according to claim 1, wherein: Before obtaining the intention information of the sentence in the preset text for the virtual character, the method further includes: According to the text sample, a plurality of sample sentences and the intention information corresponding to the sample sentences are obtained; The intention information and the corresponding sample sentences are used as training samples to train an intention recognition model for recognizing the intention information of sentences in the preset text.

6. A data processing device, comprising: An intention information obtaining module, used to obtain intention information of a sentence in a preset text for a virtual character, wherein the intention information is used to indicate the purpose of the behavior of the virtual character; A matching module, used to determine a target behavior material matching the sentence from preset behavior materials of a virtual character according to the intention information of the sentence; A behavior data generating module, for splicing the target behavior material matched by the sentence with target behavior materials matched by other sentences in the preset text according to the triggering time of the target behavior material, so as to obtain the behavior data of the virtual character corresponding to the preset text; The trigger time is obtained by: determining the start time of the keyword in the sentence as the trigger time of the corresponding key frame in the target behavior material; determining the trigger time of the target behavior material according to the number of frames between the key frame and the start frame of the target behavior material, and the trigger time of the key frame.

7. An electronic device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the data processing method according to any one of claims 1 to 5.

8. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the data processing method according to any one of claims 1 to 5 is implemented.