Generation method and device of mouth shape driving data
By extracting and transforming the fusion of audio features and mouth-shaped driver reference features, high-quality mouth-shaped driver data is generated, which solves the problem of low accuracy under different mouth-shaped driver tasks and improves the expressiveness and interactivity of virtual objects.
Patent Information
- Application Number
- CN202410755562.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-24
AI Technical Summary
The lip shape driving accuracy under different mouth shape driving tasks is low, which affects the user experience. Existing technology cannot effectively solve this problem.
By obtaining audio data and mouth shape driver reference data, extracting and performing feature transformation, the mouth shape driver data used to drive the virtual object's mouth shape is generated. Feature encoding and factor graph are used for feature fusion to generate high quality mouth shape driver data.
It improves the accuracy of lip-sync drive under different lip-sync drive tasks, enhances the expressiveness and interactivity of virtual objects, and ensures the natural fluency and accuracy of lip-sync animation.
Smart Images

Figure CN118692483A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method and device for generating lip-driven data. Background Art
[0002] In the development of virtual object technology, lip-activated technology, as an important branch, plays a vital role. Through lip-activated technology, the mouth movements of virtual objects can be accurately simulated, so that they can produce lip movements and speech outputs similar to real images. Lip-activated technology can not only enhance the realism and interactivity of virtual objects, but also expand its application areas, such as virtual assistants, virtual speakers, virtual characters, etc. However, although lip-activated technology plays an important role in virtual object technology, there is still a technical problem of low lip-activated accuracy under different lip-activated tasks, which may affect the user experience.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for generating lip-actuating data, so as to at least solve the technical problem of low lip-actuating accuracy under different lip-actuating tasks.
[0005] According to one aspect of an embodiment of the present invention, a method for generating lip-type drive data is provided, comprising: acquiring audio data and lip-type drive reference data, wherein the lip-type drive reference data is reference data for driving the lip shape corresponding to a preselected lip-type drive task; extracting initial audio features from the audio data, and performing feature transformation on the initial audio features to obtain processed audio features, wherein the initial audio features are audio features shared by different lip-type drive tasks, and the processed audio features are audio features corresponding to the preselected lip-type drive task; performing feature encoding on the lip-type drive reference data to obtain drive reference features; and generating lip-type drive data for driving the lip shape of a virtual object based on the processed audio features and the drive reference features.
[0006] According to another aspect of an embodiment of the present invention, there is further provided a device for generating lip-type drive data, comprising: an acquisition module, configured to acquire audio data and lip-type drive reference data, wherein the lip-type drive reference data is reference data for driving the lip shape corresponding to a preselected lip-type drive task; an extraction module, configured to extract initial audio features from the audio data, and perform feature transformation on the initial audio features to obtain processed audio features, wherein the initial audio features are audio features shared by different lip-type drive tasks, and the processed audio features are audio features corresponding to the preselected lip-type drive task; an encoding module, configured to perform feature encoding on the lip-type drive reference data to obtain drive reference features; and a generation module, configured to generate lip-type drive data for driving the lip shape of a virtual object based on the processed audio features and the drive reference features.
[0007] In an embodiment of the present invention, audio data and lip-type drive reference data are obtained, wherein the lip-type drive reference data is reference data for driving the lip shape corresponding to a preselected lip-type drive task; initial audio features are extracted from the audio data, and feature transformation is performed on the initial audio features to obtain processed audio features, wherein the initial audio features are audio features shared by different lip-type drive tasks, and the processed audio features are audio features corresponding to the preselected lip-type drive task; feature encoding is performed on the lip-type drive reference data to obtain drive reference features; based on the processed audio features and the drive reference features, lip-type drive data for driving the lip shape of a virtual object is generated. Through the above method, the technical problem of low lip-type drive accuracy under different lip-type drive tasks is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0009] Figure 1 is a flowchart of a method for processing audio data according to an embodiment of the present application;
[0010] Figure 2 is a flow chart of a method for generating lip-actuated drive data according to an embodiment of the present application;
[0011] Figure 3 is a flow chart of another method for generating lip-actuated driving data according to an embodiment of the present application;
[0012] Figure 4 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0013] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0014] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0015] Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values of the parts and steps set forth in these embodiments do not limit the scope of the application. Meanwhile, it should be understood that, for ease of description, the sizes of the various parts shown in the accompanying drawings are not drawn according to actual proportional relationships. The technology, methods and equipment known to those of ordinary skill in the relevant art may not be discussed in detail. In all examples shown and discussed here, any specific value should be interpreted as being merely exemplary, rather than as a limitation. Therefore, other examples of exemplary embodiments may have different values. It should be noted that similar reference numerals and letters represent similar items in the following drawings, and therefore, once a certain item is defined in an accompanying drawing, it does not need to be further discussed in subsequent drawings.
[0016] Example 1
[0017] The present application embodiment provides a method for processing audio data, such as Figure 1 As shown, the method comprises the following steps:
[0018] Step S102: extracting initial audio features from the audio data, wherein the initial audio features are audio features shared by different lip-driven tasks.
[0019] First, the raw audio data is preprocessed, including removing background noise, normalizing the audio signal, and processing the audio data in segments to ensure the stability and consistency of the audio signal. Then, audio features are extracted, such as Mel-frequency cepstral coefficients (MFCC), linear predictive coding (LPC), constant Q transform (CQT), etc. This can effectively capture the important features in the audio signal and convert them into feature vectors.
[0020] In order to improve the robustness of the features, the audio features can be processed at multiple scales. By analyzing the audio signal at different time scales, more levels of information can be captured, resulting in more expressive audio features. Afterwards, data enhancement techniques (such as random clipping, frequency masking, time-frequency mixing, etc.) are applied to generate more diverse training data, thereby improving the generalization ability of the model. At the same time, dimensionality reduction techniques (such as principal component analysis PCA, t-SNE, etc.) are used to reduce the feature dimension, retain the main information and remove redundant data.
[0021] Through the above steps, the extracted initial audio features can not only reflect the main information of the audio signal, but also adapt to different lip-driven tasks, ensuring the consistency and effectiveness of the features. The features extracted by the embodiment can be used in different tasks, thereby improving the flexibility and scalability of the entire system.
[0022] Step S104: divide the initial audio feature into multiple time windows, and calculate the variance modulation for each time window to obtain the variance modulation feature.
[0023] First, the extracted initial audio features are divided into multiple time windows. The length of the time window can be set to, for example, one window every 10 milliseconds, 20 milliseconds or 50 milliseconds. The overlap rate of the time window can also be adjusted to ensure more continuous and detailed feature capture. In each time window, the audio features in the window are statistically analyzed. Statistics can be performed by calculating the mean, standard deviation, maximum value, minimum value, etc. The above statistics can effectively reflect the characteristics of the audio signal in the time window. Variance modulation calculation is performed on the audio features in each time window. Specifically, the variance of the feature value in the window can be calculated, which can capture the amplitude and stability of the change of the audio signal in the time period. The larger the variance, the more drastic the change of the audio signal, and the smaller the variance, the more stable the audio signal. In order to improve the robustness and expressiveness of the feature, a multi-scale feature processing method can be combined. Analysis is performed on different time scales to obtain variance modulation features at different time resolutions. This multi-scale analysis method can capture the changing laws of audio signals at different time levels. Then, the variance modulation features under different time windows and different time scales are combined and fused to form a complete variance modulation feature set. This method can ensure that the extracted variance modulation features can fully reflect the temporal variation characteristics of the audio signal.
[0024] In order to further improve the stability of the features and the training effect of the model, the variance modulation features can be regularized. For example, normalization can be performed to adjust the feature values to a uniform range, or feature selection can be performed to retain the most representative features and remove redundant features. Through the above steps, the variance modulation features finally obtained can accurately describe the temporal variation pattern of the audio signal, providing a solid foundation for the subsequent lip-driven data generation. The variance modulation features not only have high recognition, but also can effectively enhance the model's understanding and processing capabilities of audio signals, improving the performance and accuracy of lip-driven tasks.
[0025] Step S106, extracting spatial correlation from the lip-driven reference data, extracting spatial correlation features with variance greater than a preset threshold value using a nonlinear transformation method, and mapping the variance modulation features to the same numerical space as the spatial correlation features, generating processed audio features for the lip-driven data. The lip-driven reference data is reference data for a specific lip-driven task.
[0026] First, spatial correlation is extracted from the lip-driven reference data. For example, the data is feature encoded to obtain driving reference features, and the cross-correlation function between these features is calculated; then the spatial correlation of these features is calculated based on the cross-correlation function, and the correlation reflects the relationship between different driving reference features. The above method enhances the feature representation of lip-driven data, improves the performance of lip-driven tasks, enables the model to better understand the relationship between different lip shapes, improves the distinguishability of features and reduces redundancy, thereby improving the generation effect of lip-driven data.
[0027] Next, the variance modulation features are mapped to the same numerical space based on spatial correlation to obtain processed audio features for generating lip-driven data. Specifically, a nonlinear transformation method is used to extract spatial correlation features whose importance is greater than a threshold from the spatial correlation to enhance their characteristics. For example, the spatial correlation features are processed using a nonlinear transformation method to obtain multiple principal component feature vectors, each of which represents a principal component; the principal component feature vectors whose variance is greater than a preset threshold are selected as spatial correlation features, where the importance threshold includes a preset variance threshold. Through this method, the relationship between lip-driven reference data is captured more accurately, the representation ability of the features is improved, which helps to improve the generation effect of lip-driven data and improve the performance and accuracy of lip-driven tasks.
[0028] Then, the variance modulation feature is mapped to the same numerical space as the enhanced spatial correlation feature to obtain the processed audio feature. For example, the enhanced spatial correlation feature and the variance modulation feature are processed by interquartile range respectively; the target space of the processed spatial correlation feature is set to the same numerical space, and the processed variance modulation feature is mapped to the target space.
[0029] This embodiment performs interquartile range processing on the enhanced spatial correlation features and variance modulation features to ensure that they have similar distribution characteristics in the numerical space, thereby maintaining consistency between the features, improving the accuracy and reliability of lip-driven data generation, and further improving the performance and effect of the lip-driven task.
[0030] After generating processed audio features of lip-driven data, the processed audio features and driving reference features in the driving reference data are fused using a factor graph to obtain fused features; the fused features are feature decoded using a feature decoding network to generate lip-driven data for driving the lip shape of a virtual object.
[0031] Example 2
[0032] The present application also provides a method for generating lip-activated data. Figure 2 As shown, the method comprises the following steps:
[0033] Step S202, obtaining lip-type drive reference data, and performing feature encoding on the lip-type drive reference data to obtain drive reference features.
[0034] The lip-driven reference data is nonlinearly mapped by using a mean square error loss function, and the lip-driven reference data is mapped to a feature representation space with a dimension less than a preset dimension threshold to obtain a low-dimensional feature representation, wherein the low-dimensional feature representation is a feature representation with a dimension less than the preset dimension threshold; the low-dimensional feature representation is feature encoded to obtain the driving reference feature.
[0035] Specifically, for example, a nonlinear mapping model is first constructed. A nonlinear mapping model is selected, such as a neural network, an autoencoder, etc. The model will be used to map the lip-driven reference data to a low-dimensional feature space. The mean square error (MSE) is used as the loss function. MSE can measure the reconstruction error of the data in the mapping process to ensure that the mapped low-dimensional features can retain the important information of the original data as much as possible. The nonlinear mapping model is trained using the lip-driven reference data. During the training process, the model parameters are optimized by the back propagation algorithm to minimize the mean square error loss function, thereby improving the mapping performance and accuracy of the model. After the model training is completed, the lip-driven reference data is input into the trained nonlinear mapping model. The model maps the input data to a low-dimensional feature representation space to obtain a feature representation below a preset dimensionality threshold. The obtained low-dimensional feature representation is encoded. For example, sparse coding, convolutional coding, etc. are used to further compress the feature representation and extract key feature information. Through the encoding process, the final driving reference feature is obtained.
[0036] Through the above steps, this embodiment can effectively compress the lip-driven reference data into a low-dimensional feature representation space while retaining the main information and features of the data. This can not only reduce the consumption of computing resources and improve processing efficiency, but also enhance the generalization ability and robustness of the model. The driving reference features obtained after encoding the low-dimensional features can be used for subsequent lip-driven tasks to ensure that the generated lip-driven data is accurate and stable, and can better reflect the characteristics of the original data.
[0037] Step S204: Process the audio data to obtain audio features.
[0038] The specific processing method can be as described in Example 1, or the following method can be used:
[0039] 1) Extract initial audio features from audio data.
[0040] First, the raw audio data is preprocessed. For example, noise suppression techniques are used to reduce background noise in the audio. The audio signal is normalized to ensure that its amplitude is within a certain range. The audio data is split into small segments to ensure signal stability and consistency.
[0041] Next, audio features are extracted, such as Mel-frequency cepstral coefficients (MFCC), linear predictive coding (LPC), constant Q transform (CQT), etc. These features can effectively capture important information in the audio signal and convert it into feature vectors. In order to further improve the robustness of the features, a multi-scale processing method is adopted: the audio signal is analyzed at different time scales to obtain more levels of information and obtain more expressive audio features. Random clipping, frequency masking, time-frequency mixing and other techniques are used to generate more diverse training data and enhance the generalization ability of the model. Principal component analysis (PCA), t-SNE and other methods are used to reduce feature dimensions, retain main information and remove redundant data. Through the above steps, the extracted initial audio features can not only reflect the main information of the audio signal, but also adapt to different lip-driven tasks to ensure the consistency and effectiveness of the features. In this way, the extracted features are universal between different tasks, which improves the flexibility and scalability of the system.
[0042] 2) Calculate the variance modulation feature.
[0043] First, the extracted initial audio features are divided into multiple time windows. The length of the time window can be set to, for example, one window every 10 milliseconds, 20 milliseconds, or 50 milliseconds, and the overlap rate of the windows can be adjusted to ensure continuous and detailed feature capture.
[0044] In each time window, statistical analysis is performed to calculate statistics such as mean, standard deviation, maximum value, minimum value, etc. These statistics can effectively reflect the characteristics of the audio signal in the time window. Next, the variance of the eigenvalues in each time window is calculated to capture the amplitude and stability of the audio signal in this time period. The larger the variance, the more drastic the change of the audio signal; the smaller the variance, the more stable the audio signal.
[0045] In order to further improve the expressiveness of the features, a multi-scale processing method is adopted. The variance modulation features are calculated at different time scales to obtain features at different time resolutions. The variance modulation features at different time windows and different time scales are combined and fused to form a complete feature set. In order to improve the stability of the features and the training effect of the model, the variance modulation features can be regularized, such as normalization, adjusting the feature values to a uniform range, or performing feature selection to retain the most representative features and remove redundant features. The final variance modulation features can accurately describe the temporal changes of the audio signal and provide a solid foundation for the subsequent lip-driven data generation.
[0046] 3) Extracting spatial correlations from lip-driven reference data.
[0047] First, spatial correlation is extracted from the lip-driven reference data. The lip-driven reference data is encoded to obtain the driven reference features. The cross-correlation function between the driven reference features is calculated to determine the spatial correlation of the features. Then, the variance modulation features are mapped to the same numerical space based on the spatial correlation to obtain the processed audio features. The spatial correlation features are processed by nonlinear transformation to extract features with importance greater than a threshold. The principal component feature vectors with variance greater than a preset threshold are extracted by principal component analysis. Next, the variance modulation features are mapped to the same numerical space as the enhanced spatial correlation features to ensure that their distribution characteristics in the numerical space are similar, so as to maintain consistency between the features and improve the accuracy and reliability of lip-driven data generation.
[0048] Step S206, generating lip-activated data.
[0049] First, a factor graph model is constructed to represent the relationship between the processed audio features and the driving reference features. The factor graph can effectively capture and fuse the interdependencies between different features through the structure of nodes and edges. In the factor graph, nodes represent features, while edges represent the interactions between features. By reasoning and calculating the factor graph, fused features can be obtained, which contain comprehensive information of audio and driving reference data.
[0050] Subsequently, the decoding operation is performed through the feature decoding network. The feature decoding network usually adopts a deep neural network structure, such as a back-propagation neural network, a convolutional neural network (CNN), or a recurrent neural network (RNN). These networks can learn how to convert fused features into specific lip-driven data through training. The feature decoding network is trained using labeled training data. The training data should contain audio features, driving reference features, and corresponding lip-driven data. During the training process, the network parameters are optimized by minimizing the loss function (such as mean square error) so that it can accurately decode the fused features into lip-driven data. Based on the trained feature decoding network, a reverse mapping operation is performed. The fused features are input into the feature decoding network, and the network maps these fused features to the original feature space to generate the corresponding lip-driven data. The dimension of this original feature space is consistent with the dimension of the lip-driven reference data, ensuring that the generated data has sufficient details and accuracy.
[0051] Finally, the generated lip-driven data is optimized and post-processed. For example, a smoothing filter can be used to eliminate mutations and noise in the data to make the lip movements smoother and more natural. Physical constraints and rules can also be applied to ensure that the generated lip movements conform to real physical laws and human lip behaviors. The generated lip-driven data is integrated into the animation system of the virtual object. By coordinating this data with other animation parts of the virtual object (such as expressions, head movements, etc.), the lip movements of the virtual object are made more natural and smooth, improving the interactive experience and expressiveness.
[0052] Through the above steps, the present embodiment can effectively utilize the factor graph and feature decoding network to generate high-quality lip-driven data from the processed audio features and driving reference features. The lip-driven data processed in this way can not only accurately reflect the characteristics of the audio and reference data, but also achieve natural and smooth lip animation, and enhance the expressiveness and interactivity of the virtual character.
[0053] Example 3
[0054] The present application embodiment provides another method for generating lip-activated data, such as Figure 3 As shown, the method comprises the following steps:
[0055] Step S302, obtaining data.
[0056] First, obtain audio data. Use recording equipment or smart phones to capture audio signals. The corpus should be representative and cover a variety of speech features and lip shape changes required for lip-driven tasks. After collecting the audio data, data cleaning and processing are required to remove background noise, eliminate environmental interference, and correct abnormal fluctuations in the audio signal.
[0057] Next, obtain the lip-driven reference data. The lip-driven reference data is data corresponding to the predetermined lip-driven task, and its main function is to drive the lip movements of the virtual object. These data contain detailed information related to oral morphology, lip movement, etc. When obtaining the lip-driven reference data, a video recording device can be used to record the speaker's lip movements. Make sure that the clarity and frame rate of the video recording device are high enough to capture subtle lip changes. Subsequently, the video data is processed and analyzed using computer vision technology to extract detailed lip movement parameters. These parameters can include lip position, mouth opening degree, teeth and tongue position, etc.
[0058] In lip-driven technology, by analyzing the lip-driven reference data, the system can accurately simulate the corresponding lip movements, thereby achieving lip-driven expression synchronization of the virtual object. In order to improve the accuracy of the simulation, a machine learning algorithm can be used to train the lip-driven reference data.
[0059] The specific steps are as follows: Annotate the recorded video frame by frame to mark the key lip positions and morphological parameters. These annotated data will serve as the basis for training the model. Extract the lip features of each frame from the annotated data. These features include but are not limited to lip contour, lip thickness, visible parts of teeth and tongue, etc. Use the extracted feature data to train the machine learning model so that it can predict the corresponding lip movements based on the input audio features. After training, use an independent test data set to verify and evaluate the model. Ensure that the model can accurately predict lip movements by adjusting model parameters and optimizing algorithms. In actual applications, the system will generate corresponding lip movement data through the trained model based on the real-time input audio features.
[0060] Through the above steps, this embodiment can realize the generation of high-quality lip-driven data from audio data and lip-driven reference data. These data can be used to drive the lip animation of the virtual object, so that it can accurately reflect the speaker's lip changes, thereby achieving more realistic virtual character expressions and interactive effects.
[0061] Step S304: extracting audio features.
[0062] The initial audio features after multi-scale feature processing are divided into multiple continuous time windows. The time window can be of fixed length, for example, each window contains 100 milliseconds of audio data, or it can be dynamically adjusted according to actual needs, such as adaptively adjusting the window length according to the content changes of the audio signal. The features in each time window represent the audio information within a period of time, which helps to capture the changes of the audio signal in different time periods.
[0063] For each feature value in each time window, its variance modulation is calculated. Variance modulation refers to the square of the average distance of a set of feature values from their average value, which can be used to measure the degree of discreteness or variation of the set of feature values. Specifically, for the audio features in each time window, the average value of these feature values is first calculated, then the square of the difference between each feature value and the average value is calculated, and finally the average of these squared differences is calculated.
[0064] The variance modulation calculated in each time window is used as a feature value, so that the variance modulation feature for each time window is obtained. By calculating the variance modulation of the feature value in each time window, information about the degree of change of the audio feature in different time periods can be obtained.
[0065] The variance modulation feature provides important information about the volatility of the audio signal on the time axis. It can help understand the dynamic changes of the audio signal in different time periods, such as the intensity, frequency changes, rhythm, etc. of the audio signal. These changes are crucial for lip-driven tasks because the lip movements need to correspond closely to the dynamic changes of the audio signal. For example, during speech, different sounds and pitch changes will cause subtle adjustments in the lip movements. By introducing the variance modulation feature, the system can better capture and reflect these changes, thereby generating more accurate and natural lip-driven data.
[0066] This embodiment can obtain detailed information about the volatility of the audio signal on the time axis by performing time window division and variance modulation calculation on the audio features after multi-scale feature processing. This information provides a comprehensive and in-depth feature description for the lip-activated task, enabling the system to better understand and simulate the relationship between the audio signal and the lip movement, thereby improving the accuracy and naturalness of the lip-activated task.
[0067] Afterwards, the spatial correlation of the lip-driven reference data is calculated based on the lip-driven reference data. For example, a spatial correlation index, such as a correlation coefficient, a cross-correlation function or other correlation index, is selected to calculate the spatial correlation of the lip-driven reference data. The correlation coefficient can be used to measure the degree of linear correlation between different oral morphologies and lip movements, while the cross-correlation function can describe the nonlinear correlation between oral morphologies and lip movements. For image data, the correlation coefficient or cross-correlation function between pixels can be calculated; for time series data, the correlation index between sequences can be calculated. Then, a spatial correlation matrix is constructed: a spatial correlation matrix is constructed according to the calculated spatial correlation index. The spatial correlation matrix can be a symmetric matrix, in which each element represents the degree of correlation between two features. The spatial correlation matrix can be a real-valued matrix or a discrete-valued matrix, which is used to represent the spatial correlation between the driving reference features. Subsequently, a suitable feature enhancement method is selected according to the obtained spatial correlation matrix. For example, a convolutional neural network can be used to learn spatial correlation patterns and generate new feature representations. Alternatively, a spatial filter can be applied to highlight specific spatial correlation features and suppress other irrelevant information. In addition, nonlinear transformation methods or dimensionality reduction techniques can be used to extract more discriminative spatial correlation features. Through the above steps, the spatial correlation can be effectively extracted from the lip-driven reference data and its features can be enhanced, thereby improving the performance and robustness of the lip-driven model.
[0068] Based on the spatial correlation after feature enhancement, the variance modulation features are mapped to the same numerical space through matrix multiplication, element-by-element operation or the forward propagation process of the neural network to obtain the processed audio features. The mapped features have higher expressiveness and discriminability, which helps to improve the performance of the lip-driven model. The purpose of feature transformation is to convert the initial audio features into audio features corresponding to the pre-selected lip-driven task.
[0069] Step S306, generating lip-activated data.
[0070] Time alignment is used to ensure that the processed audio features and the driving reference features are aligned on the time axis. For example, interpolation or other time synchronization methods are used to ensure that the features of different data sources correspond to each other at the same time point. The features of different data sources are standardized to ensure that they have similar scales and distributions to avoid excessive influence of a certain feature on the fusion result. The attention mechanism is introduced to perform weighted fusion of each feature by calculating the correlation weights between features. The attention mechanism can dynamically adjust the weights of different features to highlight important features. The processed audio features and the driving reference features are directly concatenated together to form a long vector containing all feature information. Weights are assigned according to the importance of the features, and the features from different sources are weighted summed to obtain the fused features. The fused features are input into the trained feature decoding network, and the corresponding lip-driven data is output through forward propagation calculation.
[0071] Subsequently, the generated lip-driven data is reverse-mapped and converted back to the original feature space to ensure that the generated driving data matches the needs of the actual driving system. The generated lip-driven data is integrated into the animation system of the virtual object. The lip-driven data is passed to the animation engine of the virtual object through an API or a specific interface. In actual application scenarios, the lip-driven data is dynamically generated using the real-time input audio features through feature fusion and decoding networks to drive the lip movements of the virtual object in real time.
[0072] Through the above steps, this embodiment can realize the generation of high-quality lip-driven data from the processed audio features and driving reference features. These data can be used to drive the lip animation of the virtual object, so that it can accurately reflect the speaker's lip changes, thereby achieving more realistic virtual character expressions and interactive effects.
[0073] Example 4
[0074] The embodiment of the present application provides an audio data processing device, including: an audio extraction module, a modulation module and a mapping module. The audio extraction module is configured to extract initial audio features from audio data, wherein the initial audio features are audio features shared by different lip-driven tasks; the modulation module is configured to divide the initial audio features into multiple time windows, and calculate variance modulation for each of the multiple time windows to obtain variance modulation features; the mapping module is configured to extract spatial correlation from lip-driven reference data, and map the variance modulation features to the same numerical space based on the spatial correlation to obtain processed audio features for generating lip-driven data, wherein the lip-driven reference data is reference data for driving the lip shape corresponding to the pre-selected lip-driven task.
[0075] It should be noted that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and its method embodiment belong to the same concept, and its specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0076] Example 5
[0077] Figure 4 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Figure 4 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.
[0078] like Figure 4 As shown, the electronic device includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0079] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0080] In particular, according to an embodiment of the present disclosure, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, various functions defined in the method and apparatus of the present application are executed. In some embodiments, the electronic device may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0081] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0082] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0083] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0084] As another aspect, the present application further provides a computer-readable 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.
[0085] The computer-readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device can implement each step of the method embodiment.
[0086] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0087] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0088] In the several embodiments provided in the present application, it should be understood that the disclosed terminal device can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0091] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for generating lip-driven data, characterized in that: include: Acquire audio data and lip-type driving reference data, wherein the lip-type driving reference data is reference data for driving the lip shape corresponding to the pre-selected lip-type driving task; Extracting initial audio features from the audio data, performing scale analysis and data enhancement on the initial audio features, and performing feature transformation on the initial audio features after the scale analysis and data enhancement to obtain processed audio features, wherein the initial audio features are audio features shared by different lip-driven tasks, and the processed audio features are audio features corresponding to the preselected lip-driven tasks; Performing feature encoding on the lip-driven reference data to obtain a driving reference feature; Based on the processed audio features and the driving reference features, generating lip-forming driving data for driving the lip shape of the virtual object; Among them, based on the processed audio features and the driving reference features, lip-type driving data for driving the lip shape of the virtual object is generated, including: using a factor graph to perform feature fusion on the processed audio features and the driving reference features to obtain a fused feature; using a feature decoding network to perform feature decoding on the fused feature to generate the lip-type driving data.
2. The method according to claim 1, characterized in that: Performing feature transformation on the initial audio features to obtain processed audio features includes: The initial audio features are standardized by using a zero mean method, and the standardized initial audio features are scaled by using a principal component analysis method; Multi-scale feature processing is performed on the initial audio features after feature scaling processing, and the initial audio features after multi-scale feature processing are mapped to the same numerical space as the lip-driven reference data to obtain the processed audio features.
3. The method according to claim 2, characterized in that Mapping the initial audio features after multi-scale feature processing to the same numerical space as the lip-driven reference data to obtain the processed audio features, including: Dividing the initial audio features after multi-scale feature processing into multiple time windows, and calculating variance modulation for each time window to obtain variance modulation features; The spatial correlation is extracted from the lip-driven reference data, the spatial correlation is feature enhanced, and the variance modulation feature is mapped to the same numerical space based on the feature-enhanced spatial correlation to obtain the processed audio feature.
4. The method according to claim 3, characterized in that Extracting spatial correlation from the lip-driven reference data and performing feature enhancement on the spatial correlation, including: Calculating the spatial correlation of the lip-actuated reference data using a cross-correlation function; Based on the spatial correlation, a nonlinear transformation method or a dimensionality reduction method is used to extract spatial correlation features whose importance is greater than an importance threshold from the spatial correlation, so as to enhance the features of the spatial correlation.
5. The method according to claim 1, characterized in that The lip-type drive reference data is feature-encoded to obtain a drive reference feature, including: Using a mean square error loss function, nonlinearly mapping the lip-driven reference data is performed to map the lip-driven reference data to a feature representation space whose dimension is less than a preset dimensionality threshold, so as to obtain a low-dimensional feature representation, wherein the low-dimensional feature representation is a feature representation whose dimension is less than the preset dimensionality threshold; Feature encoding is performed on the low-dimensional feature representation to obtain the driving reference feature.
6. The method according to claim 1, characterized in that Based on the processed audio features and the driving reference features, generating lip-type driving data for driving the lip shape of the virtual object, comprising: Using a factor graph to perform feature fusion on the processed audio features and the driving reference features to obtain fused features; The fusion features are decoded by using a feature decoding network to generate the lip-driven data.
7. The method according to claim 6, characterized in that Feature decoding is performed on the fused features to generate the lip-type drive data, including: performing a reverse mapping operation on the fused features to map the fused features to an original feature space to obtain the lip-type drive data, wherein the original feature space is a feature space whose dimension is equal to that of the lip-type drive reference data.
8. A device for generating lip-activated data, characterized in that: include: An acquisition module is configured to acquire audio data and lip-type driving reference data, wherein the lip-type driving reference data is reference data for driving the lip shape corresponding to the pre-selected lip-type driving task; an extraction module configured to extract initial audio features from the audio data, perform scale analysis and data enhancement on the initial audio features, and perform feature transformation on the initial audio features after scale analysis and data enhancement to obtain processed audio features, wherein the initial audio features are audio features shared by different lip-driven tasks, and the processed audio features are audio features corresponding to the preselected lip-driven tasks; An encoding module is configured to perform feature encoding on the lip-driven reference data to obtain a driving reference feature; The generating module is configured to generate lip-forming driving data for driving the lip shape of the virtual object based on the processed audio features and the driving reference features.
9. An electronic device, characterized in that: include: a memory configured to store a computer program; The processor is configured to make the computer execute the method according to any one of claims 1 to 7 when the program is executed.
10. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed, the computer is caused to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Method and device for driving mouth of robot to open and close through voice, robot, electronic equipment and computer readable medium
CN119541530A
