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

By segmenting the reply voice into voice segments and generating matching appearance control data packets, the data synchronization problem in virtual human technology is solved, the timeliness and fluency of virtual human interaction are improved, and resource consumption is reduced.

CN114610158BActive Publication Date: 2024-09-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 22 Cites 0 Cited by

Patent Information

Application Number
CN202210302689.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-25
Publication Date
2024-09-27
Estimated Expiration
2042-03-25

AI Technical Summary

Technical Problem

In virtual human technology, due to the influence of different transmission channels or network delays, the data of virtual objects during interaction is difficult to be presented synchronously, resulting in poor timeliness and accuracy, large amount of calculation, high power consumption, and poor interaction fluency.

Method used

By dividing the reply voice into multiple voice segments, and generating virtual object appearance control data matching each voice segment, multiple data packets are formed and synchronously transmitted to the client to achieve precise interactive control of virtual objects.

Benefits of technology

It improves the synchronization of data transmission, achieves timeliness and stability of interaction, reduces resource consumption and calculations, avoids system freezes, and improves the smoothness of virtual object interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610158B
    Figure CN114610158B
Patent Text Reader

Abstract

The disclosed embodiments are about a data processing method and device, electronic device, and storage medium, and relate to the field of computer technology. The data processing method includes: receiving real-time input information sent by a client, and generating a reply voice according to the real-time input information; segmenting the reply voice to obtain multiple voice segments, and obtaining the appearance control data of the virtual object matching each voice segment; generating a data packet according to the voice segment and the appearance control data of the virtual object matching the voice segment; and sending the data packet to the client, so that the client can interactively control the virtual object in the client according to the data packet. The technical solution disclosed in the present invention can improve the synchronization of data transmission and the accuracy of interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, a data processing device, an electronic device, and a computer-readable storage medium. Background Art

[0002] Virtual human technology can generate virtual objects by modeling any real person and displaying them on terminal devices so that users can interact with them through virtual objects.

[0003] In related technologies, due to differences in transmission channels or network latency, data synchronization during virtual object interactions is difficult, resulting in poor timeliness and accuracy. Furthermore, the interaction process requires significant computational effort, consumes significant power and data, and results in poor interaction fluidity.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the Invention

[0005] The purpose of the present disclosure is to provide a data processing method and device, an electronic device, and a storage medium, thereby overcoming, at least to a certain extent, the problem of data being unable to be transmitted synchronously due to limitations and defects in related technologies.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.

[0007] According to a first aspect of the present disclosure, a data processing method is provided, which is applied to a server, comprising: receiving real-time input information sent by a client, and generating a reply voice based on the real-time input information; segmenting the reply voice to obtain multiple voice segments, and obtaining appearance control data of a virtual object matching each of the voice segments; generating a data packet based on the voice segments and the appearance control data of the virtual object matching each of the voice segments; and sending the data packet to the client, so that the client can interactively control the virtual object in the client based on the data packet.

[0008] According to a second aspect of the present disclosure, a data processing method is provided, which is applied to a client, comprising: sending real-time input information to a server so that the server generates a reply voice for the real-time input information, and generating a data packet based on multiple voice segments obtained by segmenting the reply voice and appearance control data of a virtual object matching the voice segments; receiving the data packet returned by the server, and interactively controlling the virtual object based on the data packet.

[0009] According to a third aspect of the present disclosure, a data processing device is provided, which is applied to a server and includes: a reply voice generation module, which is used to receive real-time input information sent by a client and generate a reply voice according to the real-time input information; a voice segmentation module, which is used to segment the reply voice to obtain multiple voice segments, and obtain appearance control data of a virtual object matching each of the voice segments; a data packet generation module, which is used to generate a data packet according to the voice segments and the appearance control data of the virtual object matching each of the voice segments; and a data packet sending module, which is used to send the data packet to the client, so that the client can interactively control the virtual object in the client according to the data packet.

[0010] According to a fourth aspect of the present disclosure, a data processing device is provided, which is applied to a client and includes: an information receiving module, which is used to send real-time input information to a server so that the server generates a reply voice for the real-time input information, and generates a data packet based on multiple voice segments obtained by segmenting the reply voice and appearance control data of a virtual object matching the voice segments; an interactive control module, which is used to receive the data packet returned by the server and interactively control the virtual object based on the data packet.

[0011] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the data processing method of the first aspect or the second aspect and its possible implementation method by executing the executable instructions.

[0012] According to a sixth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the data processing method of the first aspect or the second aspect and its possible implementation methods are implemented.

[0013] In the data processing method, data processing device, electronic device and computer-readable storage medium provided in the embodiments of the present disclosure, on the one hand, the reply voice is divided into multiple voice segments, and the appearance control data of the virtual object matching each voice segment is generated, and then multiple data packets are obtained based on the voice segments and the matching appearance control data, and the multiple data packets are further sent to the client so that the client can interactively control the virtual object according to the data packets. Since the reply voice and the matching appearance control data can be divided into fine-grained data packets for transmission, the reply voice and the appearance control data are synchronously transmitted to the client through the data packets, thereby improving the problem of asynchronous data transmission in the related art that may be caused by network delays or different transmission channels, and can improve the synchronization of data transmission, achieve synchronous rendering, and thus achieve accurate interaction, improve the synchronization, timeliness and stability of interaction. On the other hand, since the data in each data packet is lightweight data, the lightweight data is transmitted through the data packet, which reduces resource consumption and required traffic, reduces the amount of calculation, avoids the problem of system jamming, and can improve the smoothness of virtual object interactive control.

[0014] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0016] Figure 1 A schematic diagram showing a system architecture to which the data processing method according to an embodiment of the present disclosure can be applied.

[0017] Figure 2 A schematic diagram schematically illustrates a data processing method in an embodiment of the present disclosure.

[0018] Figure 3 The following schematically illustrates a flow chart of dynamically adjusting the reference time segmentation granularity in an embodiment of the present disclosure.

[0019] Figure 4 A schematic diagram schematically illustrates the time segmentation granularity in an embodiment of the present disclosure.

[0020] Figure 5 The following schematically illustrates a flow chart of determining external appearance control data in an embodiment of the present disclosure.

[0021] Figure 6A schematic diagram schematically illustrates the divided data packets in an embodiment of the present disclosure.

[0022] Figure 7 The following is a schematic diagram showing data transmission processing performed by a server in an embodiment of the present disclosure.

[0023] Figure 8 A flowchart schematically illustrates another data processing method in an embodiment of the present disclosure.

[0024] Figure 9 The flowchart schematically illustrates the overall interaction in the embodiment of the present disclosure.

[0025] Figure 10 The flowchart of the data flow-based interaction method in the embodiment of the present disclosure is schematically shown.

[0026] Figure 11 A block diagram schematically shows a data processing device in an embodiment of the present disclosure.

[0027] Figure 12 A block diagram schematically shows another data processing device in an embodiment of the present disclosure.

[0028] Figure 13 The block diagram schematically shows an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the present disclosure will be more comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or that other methods, components, devices, steps, etc. may be employed. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0030] In addition, the accompanying drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0031] In related technologies, when rendering a virtual human, multiple multimedia data must be input simultaneously to drive the virtual human, which can cause system lag and affect smoothness. Furthermore, body language, facial expressions, lip shape, eye movements, and voice may become out of sync during transmission, resulting in inconsistent rendering of the virtual human. This fails to address latency issues and prevents timely interaction.

[0032] In order to solve the above technical problems, an embodiment of the present disclosure provides a data processing method that can be applied to application scenarios in which a user interacts with a virtual person through dialogue.

[0033] Figure 1 A schematic diagram showing a system architecture to which the data processing method and apparatus according to the embodiments of the present disclosure can be applied.

[0034] like Figure 1 As shown, system architecture 100 may include client 101 and server 102. Client 101 may be a smart device, such as a smartphone, computer, tablet computer, smart speaker, or other smart device. A virtual human application may be installed on client 101 to interact with the user through virtual objects corresponding to the virtual human application. Server 102 may be a backend system that provides data processing services in accordance with the embodiments of the present disclosure. It may include a single electronic device with computing capabilities, such as a portable computer, desktop computer, or smartphone, or a cluster of multiple electronic devices, for processing data sent by the client.

[0035] This data processing method can be applied to scenarios where virtual humans interact with clients, and can also be applied to scenarios where multiple media information is transmitted and synchronized. Figure 1As shown in , user 103 sends a voice to client 101, and client 101 can send the voice to server 102. Server 102 first determines whether real-time input information is received. If real-time input information is received, semantic analysis is performed on the real-time input information to generate a reply voice; the reply voice is further segmented to obtain multiple voice segments, and appearance control data matching each voice segment is generated; then, based on each voice segment and the appearance control data of the virtual object matching each voice segment, multiple data packets are generated to achieve data synchronization through multiple data packets; finally, the multiple data packets are sent to the client. Based on this, client 101 can control the virtual object to perform corresponding interactive operations based on the data in the received multiple data packets, such as controlling the virtual object to perform actions corresponding to the reply voice, and displaying expressions corresponding to the reply voice, etc.

[0036] The server 102 can be the same as the client 101, that is, both the client 101 and the server 102 are smart devices, such as smart phones. The server 102 can also be different from the client 101, which is not particularly limited here.

[0037] It should be noted that the data processing method provided in the embodiment of the present disclosure can be executed by the server 102. Accordingly, the data processing method can be set in the server 102 through a program or the like.

[0038] Next, refer to Figure 2 The data processing method in the embodiment of the present disclosure is described in detail.

[0039] In step S210, the real-time input information sent by the client is received, and a reply voice is generated according to the real-time input information.

[0040] In the disclosed embodiment, the client can be any smart device that can realize voice dialogue, such as a smart phone, tablet computer, smart speaker, smart TV, wearable device, etc. A virtual human application can be installed in the client, and the virtual human application can construct a virtual object. A virtual object refers to a virtual person or a virtual image, and the virtual object can interact with the user through voice, thereby realizing the intelligent dialogue function. A virtual person can be generated by modeling any user and then generating a virtual image of the user to restore the real person effect, and the virtual person can be set on a variety of smart devices including mobile phones, computers, etc. to interact with the user. The virtual objects in the client, the server, and the user can form a dialogue system to realize dialogue interaction.

[0041] In interactive scenarios, real-time input information can be information collected by the client and input by the user through an application installed on the client. This real-time input information can be voice or text. It is used to interact with virtual objects on the client. When the real-time input information is text, it can be converted to voice using text-to-speech. This example uses real-time voice input as an example.

[0042] In one embodiment, to avoid the impact of other smart devices in the same space on real-time speech, voice recognition can be performed on the collected voice information, and the voice information input by the user contained therein can be determined as real-time speech. In addition, voice information with different accents can be recognized to obtain real-time speech to improve the accuracy of the received speech. For example, it can be detected whether voice information input by other smart devices is received. If voice information input by other devices is detected, the voice information can be filtered and only the voice information input by the user is retained as real-time speech. The other devices can be any type of smart devices, such as smart speakers or smart terminals, etc.

[0043] A reply speech refers to a response to real-time input information, such as an answer to the real-time speech or a search result. When the real-time input information is real-time speech, the reply speech can be determined based on the real-time semantics and real-time intent of the real-time speech. For example, semantic analysis can be performed on the real-time speech to obtain the corresponding semantics, and intent recognition can be performed on the real-time speech to determine its intent.

[0044] Semantic analysis is used to represent the structure of language using the semantic structure of a sentence. Intent recognition refers to identifying the purpose and intention of real-time speech. For example, for real-time speech input by the user, the probability of each intent is calculated according to the intent recognition model, and the intent with the highest probability is finally determined as the intention of the real-time speech. The intent recognition model can be used to determine the intention to which the input belongs in an interactive scenario. The input of the intent recognition model is conversation data (real-time speech), and the output is the intention to which the conversation data belongs (the intention of real-time speech). The intent recognition model can be, for example, a text classification model such as a convolutional neural network model, a long short-term memory network model, a BERT (Bidirectional Encoder Representations from Transformer, based on Transformer bidirectional encoder representation) model. It should be noted that the various models listed above are only examples. In actual applications, the intent recognition model can also adopt other types of text classification models, and the present disclosure does not make specific limitations on this.

[0045] In an embodiment of the present disclosure, the server includes a background service representing a speech semantic service, and the background service includes an NLP (Natural language process) computing engine. For example, the background service in the server can be called to receive real-time speech collected by the client, and perform semantic analysis and intent recognition on the real-time speech. The NLP computing engine can be used to calculate the text information of the reply speech corresponding to the real-time speech. At the same time, the text information of the reply speech can also be semantically analyzed to obtain the corresponding reply semantics, and the text information of the reply speech can be intent recognized to obtain the corresponding reply intent. Furthermore, the text information of the reply speech can be converted into text-to-speech by TTS (Text to Speech) to generate the corresponding reply speech.

[0046] In step S220, the reply voice is segmented to obtain a plurality of voice segments, and appearance control data of a virtual object matching each of the voice segments is obtained.

[0047] In the disclosed embodiments, segmenting a reply speech refers to dividing a complete reply speech into multiple speech segments. The speech segments can be parts of the reply speech, and the lengths of the speech segments can be the same or different. When segmenting the reply speech, the segments can be divided sequentially based on chronological order.

[0048] In one embodiment, the reply speech can be segmented in chronological order based on the time segmentation granularity to obtain multiple speech segments. The reply speech used for segmentation here can be the reply speech per unit time. The unit time can be any time length, such as per second or per minute, and is not specifically limited here. The time segmentation granularity refers to the standard used to divide the speech, which can be used to determine the number of speech segments. Different time segmentation granularities result in different lengths of the divided speech segments and the number of speech segments obtained. The size of the time segmentation granularity is negatively correlated with the number of speech segments, and positively correlated with the length of the speech segments. That is, the larger the time segmentation granularity, the longer the length of the speech segments and the fewer the number of speech segments; the smaller the time segmentation granularity, the shorter the length of the speech segments and the more the number of speech segments. In the embodiment of the present disclosure, when the time segmentation granularity is determined, the reply speech can be quickly segmented based on the time segmentation granularity, thereby improving the response speed of the speech segments and the data transmission efficiency.

[0049] For the same reply speech segment, one or more time segmentation granularities can be used for segmentation. In the disclosed embodiments, to improve speech segmentation accuracy, the time segmentation granularity can be dynamically adjusted, and multiple time segmentation granularities can be combined to effectively segment the reply speech. When performing speech segmentation, a reference time segmentation granularity can first be obtained. The reference time segmentation granularity can then be dynamically adjusted to obtain an appropriate time segmentation granularity. The reference time segmentation granularity refers to a default segmentation granularity. Exemplarily, the reference time segmentation granularity can be determined based on evaluation parameters, which represent evaluation criteria for speech segmentation. The evaluation parameters can be a combination of one or more of performance parameters, restoration degree, and completeness. Performance parameters can include power consumption parameters and segmentation efficiency parameters, among others; restoration degree refers to the similarity between multiple speech segments and the reply speech; and completeness refers to the completeness of multiple speech segments relative to the reply speech. The test speech can be segmented using multiple candidate segmentation granularities, obtaining multiple test segments of the test speech corresponding to each candidate segmentation granularity. The multiple test segments can then be compared with the test speech to determine the evaluation parameters of the test speech, namely, performance parameters, restoration degree, and completeness. The performance parameters, restoration degree, and integrity can be further arranged in order, and the candidate segmentation granularity with the largest performance parameter, the largest restoration degree, and / or the highest integrity can be determined as the reference time segmentation granularity. Determining the reference time segmentation granularity based on the performance parameters, restoration degree, and integrity can accurately determine the default segmentation granularity.

[0050] In the disclosed embodiment, the unit time is per second, and the reference time segmentation granularity can be, for example, 50ms, although it can also be 20ms or other granularities. Here, the reference time segmentation granularity of 50ms is used as an example for illustration. When the reference time segmentation granularity is 50ms, the reply speech per unit time can be segmented into 20 speech segments.

[0051] To achieve accurate speech segmentation, the reference time segmentation granularity can be dynamically adjusted based on the real-time attribute information of the reply speech. This real-time attribute information can include the reply speech's speaking rate, emotional tag status, and completeness. This example uses the reply speech's speaking rate as an example.

[0052] Figure 3 The flowchart of dynamically adjusting the reference time segmentation granularity is shown schematically in FIG. Figure 3 As shown in , it mainly includes the following steps:

[0053] In step S310, it is determined whether the speech rate of the reply voice satisfies the first adjustment condition. If so, the process proceeds to step S320. If not, the process proceeds to step S330.

[0054] In step S320, the reference time division granularity is reduced to obtain the time division granularity.

[0055] In step S330, it is determined whether the speech rate of the reply voice satisfies the second adjustment condition. If so, the process proceeds to step S340. If not, the process proceeds to step S350.

[0056] In step S340, the reference time division granularity is increased to obtain the time division granularity.

[0057] In step S350 , the reference time division granularity is used as the time division granularity.

[0058] In the embodiment of the present disclosure, when the real-time attribute information is the speaking speed of the reply voice, the first adjustment condition is greater than the standard speaking speed, for example, it can be 2 times the speed, 4 times the speed, etc. Specifically, the speaking speed of the reply voice can be determined based on the frequency of the real-time voice or the reply voice, the length of the blank time and other information, and then it is determined whether the speaking speed of the reply voice meets the first adjustment condition or whether it meets the second adjustment condition. If it is determined that the speaking speed of the reply voice meets the first adjustment condition, that is, it is greater than the standard speaking speed, the reference time segmentation granularity can be reduced to determine the reduced time segmentation granularity. When reducing, the degree of reduction can be determined according to the speaking speed of the reply voice, and the degree of reduction can be positively correlated with the speaking speed of the reply voice, and the time segmentation granularity can be negatively correlated with the speaking speed of the reply voice. That is, the faster the speaking speed, the greater the degree of reduction and the smaller the time segmentation granularity. If the speaking speed of the reply voice is not greater than the standard speaking speed, it is continued to determine whether the speaking speed of the reply voice meets the second adjustment condition.

[0059] The second adjustment condition is that the speaking speed is less than the standard speaking speed. In order to avoid invalid segmentation, the reference time segmentation granularity can be increased. Since too large a segmentation granularity will affect the synchronization effect, the reference time segmentation granularity can be increased by a preset multiple to obtain the time segmentation granularity. The preset multiple can be determined according to actual needs, for example, it can be 1 times or 2 times, etc. It should be noted that when the speaking speed of the reply voice is less than the standard speaking speed, the reference time segmentation granularity can be increased by 1 times or 2 times. At this time, the reference time segmentation granularity will not be positively or negatively correlated with the speaking speed of the reply voice.

[0060] If the speaking speed of the reply voice does not meet the first adjustment condition or the second adjustment condition, that is, the speaking speed of the reply voice is the standard speaking speed, the reference time segmentation granularity can be used as the time segmentation granularity.

[0061] For example, refer to Figure 4As shown in , if the frequency of the real-time speech, the length of the blank time and other information are used to determine that the first 0.4 seconds of the reply speech belongs to the normal speaking speed, the adjacent 0.4 seconds belong to 2 times the speed, and the last 0.2 seconds belong to 0.5 times the speed. The first 0.4 seconds can be divided using the reference time division granularity as time division granularity 1. For the adjacent 0.4 seconds, the reference time division granularity can be reduced by half to obtain time division granularity 2, and time division granularity 2 is used for division. For the last 0.2 seconds, the reference time division granularity can be increased to 2 times to obtain time division granularity 3, and time division granularity 3 is used for division. Among them, time division granularity 1 is larger than time division granularity 2, and time division granularity 3 is larger than time division granularity 1.

[0062] In addition, the real-time attribute information can also be the emotional tag status of the reply voice. The emotional tag status can be used to indicate whether the reply voice contains an emotional tag. Therefore, the reference time segmentation granularity can be dynamically adjusted based on whether the reply voice contains an emotional tag to obtain the time segmentation granularity. If not, the reference time segmentation granularity is increased. If it is, the reference time segmentation granularity is reduced based on the number of emotional tags, and the number of emotional tags is negatively correlated with the time segmentation granularity. In other words, the more emotional tags there are, the smaller the time segmentation granularity.

[0063] In addition, the reference time segmentation granularity can be dynamically adjusted according to the completeness of the reply speech. For example, when the completeness is low, the reference time segmentation granularity can be reduced.

[0064] In the disclosed embodiment, the reference time segmentation granularity is dynamically adjusted through the real-time attribute information of the reply voice to obtain an accurate time segmentation granularity, which can accurately divide the reply voice and obtain multiple voice segments that conform to the actual situation, thereby increasing rationality.

[0065] After the reply voice is divided into multiple voice segments, the appearance control data of the virtual object matching each voice segment can be generated. The appearance control data can be used to represent the rendering data of the virtual object. For a virtual object, its appearance control data may include data of multiple preset parts, for example, including but not limited to action data (body data) and expression drive data. The action data may be data of a part that can perform an action, for example, including but not limited to hand movements, foot movements, and leg movements, etc. The expression drive data can be represented by the drive data of multiple parts that can adjust the state, so the expression drive parameters may include multiple parameters. Being able to adjust the state means that the state can change rather than being fixed. The drive data of the part that can adjust the state may include but not limited to facial expression data, lip shape data, and eye data. Based on this, the appearance control data may include but not limited to action data and drive data such as facial expression data, lip shape data, and eye data.

[0066] Exemplarily, the emotion label can be determined based on the text information of the reply voice, and the appearance control data matching each voice segment can be obtained in combination with each of the voice segments and the emotion label. The emotion label refers to a label used to represent the expression of the reply voice generated for the real-time voice. The emotion label can be, for example, a label such as happy, smiling, etc. Among them, the emotion label can be generated according to the emotion model in the emotion engine. The emotion model can be a trained machine learning model or any type of classification model. The machine learning model can be trained based on the training data and the true labels of the training data, and specifically the training data is input into the machine learning model to obtain the corresponding predicted labels. The model parameters of the machine learning model are adjusted according to the predicted labels and the true labels until the predicted labels are consistent with the true labels, and the trained machine learning model is obtained as the emotion model. The training data can be any type of voice data. On this basis, after generating the text information of the reply voice corresponding to the real-time voice, the text information of the reply voice can be input into the emotion engine, and the emotion label of the text information of the reply voice can be determined by the emotion model in the emotion engine.

[0067] Since the appearance control data may include motion data and expression driving data, the appearance control data may be determined in different ways. Figure 5 A flow chart for determining the appearance control data is schematically shown in FIG. Figure 5 As shown in , it mainly includes the following steps:

[0068] In step S510, voice-to-action conversion is performed on each of the voice segments to obtain action data of each of the voice segments.

[0069] In this step, each voice segment can first be converted into corresponding action data through voice-to-action conversion. The action data here can be represented as a floating-point array or a string. Voice-to-action conversion refers to converting the reply voice into driving data used to predict the possible actions of the virtual object. The action data can include action amplitude data and action posture data. The action amplitude data is used to represent the action amplitude, and the action posture data is used to represent the action posture.

[0070] It should be noted that for the same reply voice, the corresponding action data may be the same or different. Specifically, the action data can be determined based on the voice attributes of the voice segments into which the reply voice is cut. The voice attributes may include the volume and speech rate of the reply voice, etc. The volume of the reply voice may be positively correlated with the action amplitude data in the action data, and the speech rate of the reply voice may also be positively correlated with the action amplitude data in the action data. The same reply voice may correspond to a variety of candidate action gestures, and one can be selected from the candidate action gestures to be determined as the action gesture data. For example, it can be determined whether the candidate action gesture has been executed. If all candidate action gestures have been executed, a candidate action gesture is randomly selected as the action gesture. If there are unexecuted candidate action gestures, a candidate action gesture is randomly selected from the unexecuted candidate action gestures as the action gesture. Based on this, the action amplitude data and action gesture data can be determined based on the voice attributes of the voice segments, thereby accurately determining the action data based on multiple dimensions.

[0071] In step S520 , expression driving data corresponding to each voice segment is determined according to each voice segment and the emotion tag.

[0072] In this step, while determining the action data, expression drive data corresponding to the voice segment can be determined based on the voice segment and the emotional tag determined by the text information of the reply voice. Drive data for multiple state-adjustable parts can be generated, and then the multiple drive data can be combined into expression drive data. The drive data for multiple state-adjustable parts is generated to represent the state of each part. For example, facial expression data can include data corresponding to smiling, sadness, etc.; eye drive data can include, but is not limited to, data corresponding to blinking and closing eyes; lip drive data can include data corresponding to opening, closing, etc.

[0073] In the disclosed embodiment, the reply speech is divided into multiple speech segments based on time granularity, and the corresponding action data and expression-driven data are generated for each speech segment in combination with the emotion tag. Based on this, the action data and expression-driven data are also generated in small segments. Since each speech segment is matched with the appearance control data, each speech segment is synchronized with its corresponding appearance control data.

[0074] Next, continue to refer to Figure 2 As shown in , in step S230 , a data packet is generated according to the voice segments and the appearance control data of the virtual object matching each of the voice segments.

[0075] In an embodiment of the present disclosure, multiple data packets can be generated based on multiple voice segments and the appearance control data matching each voice segment. Specifically, each voice segment and the appearance control data matching each voice segment can be synchronously combined to obtain a data packet corresponding to each voice segment. Based on this, each data packet contains a voice segment, the action data corresponding to the voice segment, and the expression drive data, and the expression drive data can include multiple parameters. The multiple parameters refer to the drive data of the parts that can adjust the state. Based on this, the multiple parameters can include but are not limited to facial expression data, lip shape data, and eye data. It should be supplemented that the voice segment and the appearance control data are synchronized, and the appearance control data itself is synchronized. The appearance control data itself is synchronized, which means that the expression drive data and the action data contained in the appearance control data are synchronized, and the multiple parameters contained in the expression drive data are synchronized with each other. Therefore, the data packet can synchronize the voice field with its corresponding appearance control data, avoiding the problem of data asynchrony caused by network abnormalities or other reasons in the related art.

[0076] For example, refer to Figure 6 As shown in , the reply voice can be divided into data packet 1, data packet 2...data packet n. For data packet 1, it can include voice segment 1, action data 1 of voice segment 1, and expression-driven data 1. For data packet n, it can include voice segment n, action data n of voice segment n, and expression-driven data n. It should be noted that the data contained in each data packet is of the same type (for example, it can be a voice segment, action data, and expression-driven data), and the specific values ​​of each type of data can be the same or different.

[0077] Continue to refer Figure 2 As shown in , in step S240, the data packet is sent to the client, so that the client interactively controls the virtual object in the client according to the data packet.

[0078] In the disclosed embodiment, after generating multiple data packets, the data packets can be sent to the client in chronological order. Since the data in each data packet is synchronized, the voice clip and appearance control data can be kept synchronized. After receiving the data packet, the client can send the action data and expression-driven data in the data packet to the rendering engine of the virtual object, so that the rendering engine generates corresponding instructions based on the data in the data packet to render the virtual object, drive the virtual object to perform the action corresponding to the action data, and drive the virtual object to display the expression corresponding to the expression-driven data, thereby realizing interaction with the user.

[0079] refer to Figure 7As shown in , user 701 sends real-time input information A to client 702. Client 702 sends the real-time input information to server 703. Server 703 parses the real-time input information to generate its corresponding reply voice B, and then segments reply voice B into data packets 1, 2, through n. Server 703 returns the data packets to client 702 in chronological order to control the interaction between virtual object 704 in client 702 and user 701.

[0080] In the disclosed embodiment, while sending data packets to the client, the reply voice is also transmitted to the audio player for synchronous playback. Because each frame of reply voice data is segmented into relatively small voice segments and each frame is fully synchronized, each frame received by the client is synchronized with the voice and appearance control data. This ensures consistency in the virtual object's appearance, including its shape, facial expression, lip shape, and eye shape, and the lip shape, face, and eye shape are synchronized with the voice. The data stream is segmented at a fine granularity per second, and the voice data and appearance control data are synchronized on the server side. This ensures that the data received by the client is always synchronized, preventing data desynchronization caused by network interference. Complex data is processed by the server backend, and the expression algorithms for movement, facial expression, lip shape, and eye shape are all deployed on the server side, as is the intelligent voice semantics service. The client side is only responsible for rendering the virtual human's 3D appearance and receiving driver data, ensuring lightweight data transmission and saving client-side power consumption. It also prevents rendering issues such as lag, improving rendering smoothness and stability, and enhancing interactive accuracy.

[0081] In the embodiment of the present disclosure, a data processing method is also provided, which can be applied to the client. Figure 8 As shown in FIG, the method mainly includes the following steps S810 and S820:

[0082] In step S810, the real-time input information is sent to the server, so that the server generates a reply voice for the real-time input information and generates a data packet based on a plurality of voice segments obtained by segmenting the reply voice and appearance control data of a virtual object matching the voice segments;

[0083] In step S820, the data packet returned by the server is received, and the virtual object is interactively controlled according to the data packet.

[0084] The client can collect real-time input information output by the user and send the real-time input information to the server. The server can generate a reply voice based on the real-time input information according to the method in steps S210 to S240, divide the reply voice into multiple voice segments based on time segmentation granularity, generate surface control data corresponding to each voice segment, and combine the voice segments and their corresponding surface control data into a data packet. Furthermore, the data packets are returned to the client in chronological order.

[0085] The client can receive data packets and parse the voice segments and appearance control data in each data packet, and generate instructions through the voice segments and appearance control data to control and render the virtual objects installed in the client.

[0086] In the embodiment of the present disclosure, each synchronized data packet only contains driving data, and the driving data only has 1224 Float data. Lightweight network transmission improves data transmission efficiency and improves the rendering fluency of virtual objects, making the expressions and movements of virtual object rendering more accurate and reducing power consumption. Since the client can receive data packets transmitted by the server based on the reply voice and the matching appearance control data, and perform interactive control through the data packets, it improves the problem of asynchronous data transmission in related technologies that may be caused by network delays or different transmission channels, can improve the synchronization of data transmission, can achieve synchronous rendering, and then achieve accurate interaction, and improve the timeliness and stability of interaction.

[0087] It should be added that the entire interaction process is mainly realized through virtual objects in the server and client. Figure 9 In the service architecture shown in FIG, server 901 includes ASR (Automatic Speech Recognition) backend services, emotion tagging engine, TTS (Text to Speech), data segmentation, action engine, and data synchronization. Client 902 includes UI display (3D rendering engine) and audio playback.

[0088] Based on the above service architecture, the backend service receives real-time input from the client, identifies its semantics and intent, and sends it to the NLP computing engine, which then calculates the text of the response. The emotion tagging engine converts the semantics and intent of the text of the response transmitted by the backend ASR service into emotion tags. The text-to-speech service receives the text of the response and performs text-to-speech conversion to generate the response, which is then converted into a speech stream and transmitted to the action engine.

[0089] The action engine converts the voice stream and emotion label corresponding to the reply voice into appearance control data. The appearance control data includes action data and Euler data (expression driving data composed of facial expressions, lips, and eyes). Furthermore, the action engine divides the reply voice according to the time segmentation granularity to obtain multiple voice segments, and synchronizes each voice segment and its corresponding appearance control data to generate multiple data packets. For example, the reply voice is divided into data packets with a frame of 50ms, 20 packets per second, and the data packets are returned to the client. The data in each data packet is synchronized data, that is, the driving data such as body posture, facial expression, lip shape, and eyes in each data packet are synchronized, and the audio tracks of the appearance control data and voice data are also synchronized.

[0090] After receiving each data packet, the client parses the appearance control data in the data packet and sends it to the virtual object's 3D rendering engine to render the image in real time, including but not limited to driving the virtual object's movements, facial expressions, lip shape, eyes and other preset parts, so that the virtual object can display the movements and expressions corresponding to the voice clip.

[0091] Figure 10 The interactive flow chart based on data flow is schematically shown in Figure 10 As shown in , it mainly includes the following steps:

[0092] In step S1010, the client receives real-time input information sent by the user, such as real-time voice. An application for a virtual object can be configured in the client.

[0093] In step S1020, the client sends the real-time input information (real-time voice) to the background service and TTS of the server to generate text information of the reply voice through NLP, and converts the text information of the reply voice into a voice stream through TTS.

[0094] In step S1030, the speech stream is sent to the emotion tagging engine to generate emotion tags.

[0095] In step S1040, the voice stream is divided according to the time segmentation granularity to obtain multiple voice segments.

[0096] In step S1050 , the emotion tag is sent to the action engine and the voice stream is sent to the action engine to generate appearance control data corresponding to the voice segment.

[0097] In step S1060, a plurality of data packets are generated according to the voice segments and the corresponding appearance control data.

[0098] In step S1070, the voice streams and appearance control data in the plurality of data packets are synchronized and sent to the client.

[0099] In step S1080 , the client performs rendering according to the appearance control data.

[0100] The technical solution in the disclosed embodiments reduces the client's computational power consumption and improves the client's operational fluency by having the server process computationally intensive operations such as action data and expression-driven data. By segmenting the reply speech into fine-grained voice segments and synchronously combining the voice segments and the corresponding appearance control data into multiple data packets, which are then sent to the client for interaction, the problem of asynchronous data transmission due to network problems or other reasons in related technologies is avoided, as well as the inconsistency between voice and appearance control data. This improves the synchronization and fluency of actions, enabling timely and precise interaction.

[0101] The present disclosure provides a data processing device, referring to Figure 11 As shown in , the data processing device 1100 may include:

[0102] The reply voice generation module 1101 is used to receive the real-time input information sent by the client and generate a reply voice according to the real-time input information;

[0103] A speech segmentation module 1102 is configured to segment the reply speech to obtain a plurality of speech segments, and obtain appearance control data matching each of the speech segments;

[0104] The data packet generating module 1103 is configured to generate a data packet based on the voice segments and the appearance control data of the virtual object matching each voice segment;

[0105] The data packet sending module 1104 is configured to send the data packet to the client, so that the client can interactively control the virtual object in the client according to the data packet.

[0106] In an exemplary embodiment of the present disclosure, the speech segmentation module includes: a segmentation control module, configured to segment the reply speech in time sequence based on a time segmentation granularity to obtain a plurality of speech segments.

[0107] In an exemplary embodiment of the present disclosure, the segmentation control module includes: a dynamic adjustment module, which is used to dynamically adjust the reference time segmentation granularity according to the real-time attribute information of the reply voice to obtain the time segmentation granularity, and segment the reply voice according to the time segmentation granularity to obtain the multiple voice segments.

[0108] In an exemplary embodiment of the present disclosure, the dynamic adjustment module includes: a first adjustment module, which is used to reduce the reference time division granularity to obtain the time division granularity if the real-time attribute information of the reply voice meets the first adjustment condition; and a second adjustment module, which is used to increase the reference time division granularity to obtain the time division granularity if the real-time attribute information of the reply voice meets the second adjustment condition.

[0109] In an exemplary embodiment of the present disclosure, the apparatus further comprises: a reference granularity determination module, configured to determine the reference time segmentation granularity according to evaluation parameters; the evaluation parameters comprising at least one of performance parameters, restoration degree, and completeness.

[0110] In an exemplary embodiment of the present disclosure, the speech segmentation module includes: an appearance control data determination module, which is used to determine the emotion tag based on the reply speech, and obtain the appearance control data matching each speech segment in combination with each speech segment and the emotion tag.

[0111] In an exemplary embodiment of the present disclosure, the appearance control data determination module includes: an action data acquisition module, which is used to perform voice-action conversion on each of the voice segments and obtain the action data of each of the voice segments; and an expression drive data acquisition module, which is used to determine the expression drive data corresponding to each of the voice segments based on each of the voice segments and the emotion label.

[0112] In an exemplary embodiment of the present disclosure, the data packet generation module includes: a combining module, configured to synchronously combine each voice segment and the appearance control data corresponding to each voice segment to obtain a plurality of data packets.

[0113] It should be noted that the specific details of each module in the above-mentioned data processing device have been described in detail in the corresponding data processing method, and therefore will not be repeated here.

[0114] The present disclosure also provides a data processing device, referring to Figure 12 As shown in , the data processing device 1200 may include:

[0115] The information receiving module 1201 is configured to send the real-time input information to the server so that the server generates a reply voice for the real-time input information and generates a data packet based on multiple voice segments obtained by segmenting the reply voice and appearance control data of the virtual object matching the voice segments;

[0116] The interactive control module 1202 is configured to receive a data packet returned by the server and interactively control the virtual object according to the data packet.

[0117] Figure 13 Schematic diagram of an electronic device suitable for implementing an exemplary embodiment of the present disclosure is shown. The terminal of the present disclosure can be configured as follows Figure 13 The form of the electronic device shown, however, needs to be explained. Figure 13 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0118] The electronic device of the present disclosure includes at least a processor and a memory, where the memory is used to store one or more programs. When the one or more programs are executed by the processor, the processor can implement the method of the exemplary embodiment of the present disclosure.

[0119] Specifically, such as Figure 13 As shown, the electronic device 1300 may include: a processor 1310, an internal memory 1321, an external memory interface 1322, a Universal Serial Bus (USB) interface 1330, a charging management module 1340, a power management module 1341, a battery 1342, an antenna 1, an antenna 2, a mobile communication module 1350, a wireless communication module 1360, an audio module 1370, a speaker 1371, a receiver 1372, a microphone 1373, an earphone interface 1374, a sensor module 1380, a display screen 1390, a camera module 1391, an indicator 1392, a motor 1393, a button 1394 and a subscriber identification module (Subscriber Identification Module, SIM) card interface 1395, etc. The sensor module 1380 may include a depth sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor, etc.

[0120] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 1300. In other embodiments of the present application, the electronic device 1300 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0121] The processor 1310 may include one or more processing units, for example: the processor 1310 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor and / or a neural network processor (Neural-Network Processing Unit, NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. In addition, a memory can be provided in the processor 1310 for storing instructions and data. The data processing method in this exemplary embodiment can be executed by an application processor, a graphics processor or an image signal processor. When the method involves processing related to a neural network, it can be executed by an NPU.

[0122] The internal memory 1321 can be used to store computer executable program code, which includes instructions. The internal memory 1321 can include a program storage area and a data storage area. The external memory interface 1322 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 1300.

[0123] The communication functions of mobile terminal 1300 are implemented through a mobile communication module, antenna 1, a wireless communication module, antenna 2, a modem processor, and a baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module can provide 2G, 3G, 4G, and 5G mobile communication solutions for mobile terminal 1300. The wireless communication module can provide wireless communication solutions such as wireless LAN, Bluetooth, and near-field communication for mobile terminal 200.

[0124] The display module is used to implement display functions, such as displaying user interfaces, images, and videos. The camera module is used to implement shooting functions, such as capturing images and videos. The audio module is used to implement audio functions, such as playing audio and capturing voice. The power module is used to implement power management functions, such as charging the battery, powering the device, and monitoring the battery status.

[0125] The present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.

[0126] Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device.

[0127] Computer-readable storage media can transmit, propagate, or transfer programs for use by or in conjunction with an instruction execution system, apparatus, or device. Program code contained on a computer-readable storage medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, or any suitable combination thereof.

[0128] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments.

[0129] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0130] Furthermore, the figures above are merely illustrative of the processes included in the methods according to exemplary embodiments of the present disclosure and are not intended to be limiting. It is readily understood that the processes illustrated in the figures above do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0131] It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0132] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing what is disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims. It should be understood that the present disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and that various modifications and changes can be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, applied to a server, characterized in that: include: Receive real-time input information sent by the client, and generate a reply voice according to the real-time input information; Determine a reference time segmentation granularity according to evaluation parameters, dynamically adjust the reference time segmentation granularity according to real-time attribute information of the reply voice to obtain a time segmentation granularity, segment the reply voice according to the time segmentation granularity to obtain a plurality of voice segments, and obtain appearance control data of a virtual object matching each of the voice segments; the evaluation parameters include at least one of performance parameters, restoration degree, and completeness; generating a data packet according to the voice segments and the appearance control data of the virtual object matching each of the voice segments; Sending the data packet to the client, so that the client can interactively control the virtual object in the client according to the data packet; The dynamically adjusting the reference time segmentation granularity according to the real-time attribute information of the reply speech to obtain the time segmentation granularity includes: When the real-time attribute information is the speaking speed of the reply voice, if the speaking speed of the reply voice satisfies the first adjustment condition, the reduction degree is determined according to the speaking speed of the reply voice, so as to reduce the reference time division granularity to obtain the time division granularity; if the speaking speed of the reply voice satisfies the second adjustment condition, the reference time division granularity is increased to a preset multiple to obtain the time division granularity; When the real-time attribute information is the emotion tag state of the reply voice, dynamically adjusting the reference time segmentation granularity based on whether the reply voice contains the emotion tag to obtain the time segmentation granularity; When the real-time attribute information is the completeness of the reply speech, the reference time segmentation granularity is dynamically adjusted according to the completeness of the reply speech.

2. The data processing method according to claim 1, characterized in that: The step of segmenting the reply voice to obtain a plurality of voice segments includes: The reply speech is segmented in time sequence based on the time segmentation granularity to obtain a plurality of speech segments.

3. The data processing method according to claim 1, characterized in that: The step of obtaining appearance control data of a virtual object matching each of the voice segments includes: The emotion tag is determined according to the reply voice, and the appearance control data matching each voice segment is obtained by combining each voice segment and the emotion tag.

4. The data processing method according to claim 3, characterized in that: The appearance control data includes action data and expression drive data; the combining each of the voice segments and the emotion tag to obtain the appearance control data matching each of the voice segments includes: Performing voice-to-action conversion on each of the voice segments to obtain action data of each of the voice segments; The expression driving data corresponding to each of the voice segments is determined according to each of the voice segments and the emotion label.

5. The data processing method according to claim 1, characterized in that: The method of generating a plurality of data packets according to each of the voice segments and the appearance control data of the virtual object matching each of the voice segments comprises: Each voice segment and the appearance control data corresponding to each voice segment are synchronously combined to obtain multiple data packets.

6. A data processing method, applied to a client, characterized in that: include: The real-time input information is sent to a server so that the server generates a reply voice for the real-time input information, and generates a data packet according to a plurality of voice segments obtained by segmenting the reply voice and appearance control data of a virtual object matching the voice segments; wherein the plurality of voice segments are obtained by determining a reference time segmentation granularity according to evaluation parameters, dynamically adjusting the reference time segmentation granularity according to real-time attribute information of the reply voice to obtain a time segmentation parameter, and segmenting the reply voice according to the time segmentation granularity, wherein the evaluation parameter includes at least one of a performance parameter, a degree of restoration, and a degree of completeness; receiving a data packet returned by the server, and interactively controlling the virtual object according to the data packet; The step of dynamically adjusting the reference time segmentation granularity according to the real-time attribute information of the reply speech to obtain the time segmentation parameter includes: When the real-time attribute information is the speaking speed of the reply voice, if the speaking speed of the reply voice satisfies the first adjustment condition, the reduction degree is determined according to the speaking speed of the reply voice, so as to reduce the reference time division granularity to obtain the time division granularity; if the speaking speed of the reply voice satisfies the second adjustment condition, the reference time division granularity is increased to a preset multiple to obtain the time division granularity; When the real-time attribute information is the emotion tag state of the reply voice, dynamically adjusting the reference time segmentation granularity based on whether the reply voice contains the emotion tag to obtain the time segmentation granularity; When the real-time attribute information is the completeness of the reply speech, the reference time segmentation granularity is dynamically adjusted according to the completeness of the reply speech.

7. A data processing device, applied to a server, characterized in that: include: A reply voice generation module, used for receiving the real-time input information sent by the client, and generating a reply voice according to the real-time input information; A speech segmentation module, used to determine a reference time segmentation granularity according to evaluation parameters, dynamically adjust the reference time segmentation granularity according to real-time attribute information of the reply speech to obtain a time segmentation granularity, segment the reply speech according to the time segmentation granularity to obtain a plurality of speech segments, and obtain appearance control data of a virtual object matching each of the speech segments; the evaluation parameters include at least one of performance parameters, restoration degree, and completeness; A data packet generation module, used to generate a data packet according to the voice segments and the appearance control data of the virtual object matching each of the voice segments; A data packet sending module, used for sending the data packet to the client, so that the client can interactively control the virtual object in the client according to the data packet; The dynamically adjusting the reference time segmentation granularity according to the real-time attribute information of the reply speech to obtain the time segmentation granularity includes: When the real-time attribute information is the speaking speed of the reply voice, if the speaking speed of the reply voice satisfies the first adjustment condition, the reduction degree is determined according to the speaking speed of the reply voice, so as to reduce the reference time division granularity to obtain the time division granularity; if the speaking speed of the reply voice satisfies the second adjustment condition, the reference time division granularity is increased to a preset multiple to obtain the time division granularity; When the real-time attribute information is the emotion tag state of the reply voice, dynamically adjusting the reference time segmentation granularity based on whether the reply voice contains the emotion tag to obtain the time segmentation granularity; When the real-time attribute information is the completeness of the reply speech, the reference time segmentation granularity is dynamically adjusted according to the completeness of the reply speech.

8. A data processing device, applied to a client, characterized in that: include: An information receiving module is used to send the real-time input information to the server so that the server generates a reply voice for the real-time input information, and generates a data packet according to a plurality of voice segments obtained by segmenting the reply voice and appearance control data of a virtual object matching the voice segments; wherein the plurality of voice segments are obtained by determining a reference time segmentation granularity according to evaluation parameters, dynamically adjusting the reference time segmentation granularity according to the real-time attribute information of the reply voice to obtain a time segmentation parameter, and segmenting the reply voice according to the time segmentation granularity, wherein the evaluation parameter includes at least one of a performance parameter, a degree of restoration, and a degree of completeness; An interactive control module, used for receiving a data packet returned by the server and interactively controlling the virtual object according to the data packet; The dynamically adjusting the reference time segmentation granularity according to the real-time attribute information of the reply speech to obtain the time segmentation granularity includes: When the real-time attribute information is the speaking speed of the reply voice, if the speaking speed of the reply voice satisfies the first adjustment condition, the reduction degree is determined according to the speaking speed of the reply voice, so as to reduce the reference time division granularity to obtain the time division granularity; if the speaking speed of the reply voice satisfies the second adjustment condition, the reference time division granularity is increased to a preset multiple to obtain the time division granularity; When the real-time attribute information is the emotion tag state of the reply voice, dynamically adjusting the reference time segmentation granularity based on whether the reply voice contains the emotion tag to obtain the time segmentation granularity; When the real-time attribute information is the completeness of the reply speech, the reference time segmentation granularity is dynamically adjusted according to the completeness of the reply speech.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the data processing method described in any one of claims 1-5 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Processing method and system for voice data

    CN102831891A

  • Synthetic speech transmission method, cloud server and terminal device

    CN106504742A

  • Speech transmission control method and device, and computer readable storage medium

    CN108777682A

  • Voice emotion recognizing method, voice recognizing device, electronic equipment and readable medium

    CN109599128A

  • Live broadcast method and device based on artificial intelligence, equipment and storage medium

    CN111010586A