Virtual image generation method, device, equipment, storage medium and program product
By fusing voice and timbre characteristics to generate a virtual image related to a specific timbre, the problem of lip shape and voice synchronization consistency in the existing technology is solved, and the simulation effect and user experience of the virtual image are improved.
Patent Information
- Application Number
- CN202210572336.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-24
AI Technical Summary
Existing avatar generation technology is difficult to ensure the synchronization of lip shape and speech output. Especially when inputting multi-timbral speech data, the accuracy is insufficient, resulting in poor simulation results.
By acquiring target voice data and target timbre parameters, integrating timbre identification and voice characteristics, determining the image parameters of the avatar, generating an avatar related to a specific timbre, and using technologies such as convolutional neural networks to achieve accurate synchronization of lip shape changes.
It improves the simulation effect of the avatar, ensures that the lip shape and speech output are synchronized and consistent, adapts to the application scenarios of multiple timbres, reduces the abnormal closing of plosive sounds and unstable lip sequence, and improves the user's immersive experience.
Smart Images

Figure CN114999441B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, in particular to the field of deep learning, image processing, and computer vision technology, and specifically to a method, device, equipment, storage medium, and program product for generating a virtual image. Background Art
[0002] With the development of computer technology and Internet technology, various functional services in life and entertainment can be provided through virtual images. For example, some virtual images can provide audio-visual functional services such as voice broadcasting by combining visual display and voice output. Summary of the invention
[0003] The present disclosure provides a method, apparatus, device, storage medium and program product for generating a virtual image.
[0004] According to one aspect of the present disclosure, a method for generating a virtual image is provided, comprising: acquiring target voice data; obtaining target timbre voice data based on the target voice data and target timbre parameters, wherein the target timbre parameters have a corresponding timbre identifier; fusing the timbre identifier with the voice features of the target timbre voice data to obtain a target feature; determining image parameters for the virtual image based on the target feature; and generating the virtual image based on the image parameters.
[0005] According to another aspect of the present disclosure, a virtual image generation device is provided, comprising: a target voice data determination module, a target timbre voice data determination module, a target feature determination module, an image parameter determination module, and a virtual image generation module. The target voice data determination module is used to obtain target voice data; the target timbre voice data determination module is used to obtain target timbre voice data based on the target voice data and target timbre parameters, wherein the target timbre parameters have corresponding timbre identifiers; the target feature determination module is used to fuse the timbre identifier with the voice features of the target timbre voice data to obtain target features; the image parameter determination module is used to determine image parameters for the virtual image according to the target features; and the virtual image generation module is used to generate the virtual image according to the image parameters.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory in communication with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method of the embodiment of the present disclosure.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to cause a computer to execute the method of the embodiment of the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method of the embodiment of the present disclosure is implemented.
[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0011] Figure 1 A system architecture diagram schematically shows a method and device for generating a virtual image according to an embodiment of the present disclosure;
[0012] Figure 2 A flowchart of a method for generating a virtual image according to an embodiment of the present disclosure is schematically shown;
[0013] Figure 3 A schematic diagram of obtaining target timbre speech data according to an embodiment of the present disclosure is schematically shown;
[0014] Figure 4 A schematic diagram schematically shows a method of determining image parameters for a virtual image according to an embodiment of the present disclosure;
[0015] Figure 5 A schematic diagram of obtaining facial posture features according to an embodiment of the present disclosure is schematically shown;
[0016] Figure 6 A schematic diagram schematically shows a method for generating a virtual image according to another embodiment of the present disclosure;
[0017] Figure 7 A schematic diagram of generating a virtual image according to an embodiment of the present disclosure is schematically shown;
[0018] Figure 8 A schematic diagram of acquiring target voice data according to an embodiment of the present disclosure is schematically shown;
[0019] Fig. 9 A block diagram schematically shows a virtual image generating device according to an embodiment of the present disclosure; and
[0020] Fig.10 The block diagram schematically shows an electronic device that can implement the virtual image generation method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0022] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0023] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0024] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0025] With the development of computer technology and Internet technology, various functional services in life and entertainment can be provided through virtual images. Some virtual images can provide audio-visual functional services such as voice broadcasting by combining visual display and voice output.
[0026] For audio-visual service, in some implementations, the avatar can also output voice with a specific timbre. According to different timbres, how to ensure that the facial expressions made by the avatar are synchronized with the output voice is an urgent problem to be solved. Whether the lip shape of the avatar and the voice can be synchronized is one of the factors that affect the simulation effect of the avatar.
[0027] In some embodiments, when the avatar makes corresponding expressions based on voice, the lip shape changes are not consistent with the voice output. For example, in some embodiments, voice data can be input into a trained voice-facial lip shape model to output data that can drive the facial lip shape changes.
[0028] The speech data of some speech-facial lip shape models are relatively simple, for example, the speech data only includes a single timbre. When the speech-facial lip shape model is actually applied, when the input speech data includes multiple timbres, the data output by the speech-facial lip shape model to drive the facial lip shape change is not accurate.
[0029] Some speech-to-facial lip shape models can filter out the noise audio in speech data, but in actual application, the noise audio cannot be completely filtered out to obtain pure speech data. The data output by the speech-to-facial lip shape model to drive the facial lip shape changes is not accurate. The lack of accuracy is reflected, for example, in the abnormal closed lip shape of plosive sounds and the unstable lip shape sequence of consecutive frames.
[0030] Figure 1 The system architecture of the method and device for generating a virtual image according to an embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0031] like Figure 1 As shown, the system architecture 100 according to this embodiment may include clients 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the clients 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0032] Users can use clients 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on clients 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0033] The clients 101, 102, 103 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. The clients 101, 102, 103 of the disclosed embodiment may, for example, run applications.
[0034] The server 105 may be a server that provides various services, such as a backend management server that provides support for websites browsed by users using the clients 101, 102, and 103 (for example only). The backend management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the client. In addition, the server 105 may also be a cloud server, that is, the server 105 has a cloud computing function.
[0035] It should be noted that the virtual image generation method provided in the embodiment of the present disclosure can be executed by the server 105. Accordingly, the virtual image generation device provided in the embodiment of the present disclosure can be set in the server 105. The virtual image generation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the client 101, 102, 103 and / or the server 105. Accordingly, the virtual image generation device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the client 101, 102, 103 and / or the server 105.
[0036] In an example, the server 105 may obtain the initial text data from the clients 101 , 102 , and 103 through the network 104 .
[0037] It should be understood that Figure 1 The number of clients, networks and servers in the embodiment is only for illustration. Any number of clients, networks and servers may be provided as required.
[0038] It should be noted that in the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0039] In the technical solution of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0040] The present disclosure provides a method for generating a virtual image. Figure 1 The system architecture of Figure 2 to Figure 8 The virtual image generation method according to the exemplary embodiment of the present disclosure is described as follows. The virtual image generation method of the embodiment of the present disclosure can be, for example, Figure 1 The server 105 shown is used for execution.
[0041] Figure 2 The flowchart of a method for generating a virtual image according to an embodiment of the present disclosure is schematically shown.
[0042] like Figure 2 As shown, the virtual image generation method 200 of the embodiment of the present disclosure may include, for example, operations S210 to S250.
[0043] In operation S210, target voice data is acquired.
[0044] Voice data can be understood as the audio form of speech.
[0045] In operation S220, target timbre voice data is obtained based on the target voice data and the target timbre parameter.
[0046] The target timbre parameter has a corresponding timbre identifier.
[0047] It should be noted that timbre refers to the unique characteristics of different sounds in terms of waveform, and timbre is determined by the characteristics of the sound-producing body.
[0048] Taking human singing as an example, due to the characteristics of the body structure of each person, such as the oral cavity and throat, each person has a unique timbre. Due to the uniqueness of the timbre, each person's interpretation of the same song is also different. The virtual image generation method of the embodiment of the present disclosure simulates a specific timbre through a target timbre parameter.
[0049] For example, the target timbre parameter may include pitch.
[0050] It can be understood that the target timbre speech data has corresponding timbre characteristics based on the target speech data.
[0051] In operation S230, the timbre identifier is merged with the speech feature of the target timbre speech data to obtain the target feature.
[0052] Exemplarily, the target feature can be obtained by fusing the timbre identifier with the speech feature of the target timbre speech data in a manner of splicing them in the same dimension.
[0053] The target feature can be understood, for example, to be represented in the form of a feature vector, and the feature vector can support computer processing.
[0054] In operation S240, image parameters for the avatar are determined according to the target features.
[0055] In operation S250, a virtual image is generated according to the image parameters.
[0056] It can be understood that for a certain target voice data, based on a specific target timbre parameter, the target timbre voice data obtained has a specific timbre, and the virtual image will also have specific characteristics in visual performance. For example, for target voice data A, based on two different target timbre parameters B and target timbre parameters C, corresponding target timbre voice data Ab and target timbre voice data Ac can be obtained respectively, and the virtual image has corresponding different lip shape changes Lb and lip shape changes Lc based on the target timbre voice data Ab and the target timbre voice data Ac.
[0057] The virtual image generation method of the disclosed embodiment introduces target timbre parameters. The target timbre voice data obtained based on the target voice data and the target timbre parameters have corresponding timbre characteristics. By fusing the timbre identifier with the voice feature of the target timbre voice data, the target feature obtained can, for example, reflect the association between the target timbre voice data and the corresponding target timbre parameters, and can adapt to various timbre application scenarios. The target feature can, for example, also reflect the characteristics of a specific timbre of the target timbre voice data, and the image parameters determined according to the target feature are related to the specific timbre. Therefore, the virtual image generated according to the image parameters is a visual representation related to a specific timbre. In the case of the same target voice data and different target timbre parameters, the visual representation of this virtual image will be different, and it has a better simulation effect.
[0058] Figure 3 A schematic diagram schematically shows a method for generating a virtual image according to another embodiment of the present disclosure for obtaining target timbre and voice data.
[0059] like Figure 3 As shown, the following embodiments can be used to implement a specific example of obtaining target timbre voice data based on target voice data and target timbre parameters.
[0060] The target speech data 301 includes at least one speech unit, and the target timbre parameter 302 includes timbre parameters for each speech unit.
[0061] In operation S331 , the timbre parameters are matched to corresponding speech units to obtain target timbre speech data 303 .
[0062] exist Figure 3 In the example of , the target speech data 301 includes a total of x speech units, namely speech unit u1 to speech unit ux, and the target timbre parameters 302 include a total of x timbre parameters, namely timbre parameters p1 to timbre parameters px.
[0063] According to the virtual image generation method of the embodiment of the present disclosure, more accurate target timbre voice data can be obtained by matching the corresponding timbre parameters of each voice unit one by one.
[0064] Figure 4 The diagram schematically shows a method for determining image parameters for a virtual image in a method for generating a virtual image according to another embodiment of the present disclosure.
[0065] According to a method for generating a virtual image according to another embodiment of the present disclosure, a specific example of determining image parameters for a virtual image according to target features can be implemented through the following embodiments.
[0066] In operation S441 , facial posture feature 402 is obtained according to target feature 401 .
[0067] Facial posture features can be understood as features that characterize facial postures. Facial posture features can, for example, map the facial expressions of a virtual image.
[0068] In operation S442 , the facial posture feature 402 is feature-segmented to obtain a plurality of posture segmentation features 403 .
[0069] Exemplarily, feature splitting can be performed according to splitting logic set by relevant personnel, for example, feature splitting can be performed according to equal amount splitting or according to splitting logic of feature parts.
[0070] The split features may be shuffled by a random algorithm, for example, to obtain random posture split features.
[0071] In operation S443 , based on the plurality of posture segmentation features 403 , a segmentation feature correlation parameter 404 is determined.
[0072] The split feature correlation parameter is used to characterize the correlation between multiple posture split features.
[0073] In operation S444 , facial parameters 405 are determined based on the split feature correlation parameters 404 and the facial posture features 402 .
[0074] The image parameters include facial parameters.
[0075] The posture segmentation feature is a more fine-grained feature than the facial posture feature. Through the fine-grained posture segmentation feature, the determined facial parameters are more accurate. Therefore, for the application scenario of the virtual image generation of the embodiment of the present disclosure, the facial expression of the virtual image generated based on the facial parameters is more accurate and realistic, and the virtual image has a better simulation effect.
[0076] It can be understood that pronunciation will cause corresponding changes in the face. For example, when the gesture segmentation feature is segmented by facial parts, for example, when pronouncing the sound "A", the lip shape will change, and the cheeks of the face will expand, and there is a relatively higher correlation between the lip shape and the cheeks of the face; while when pronouncing the sound "B", the lip shape will change, but it will not cause the cheeks of the face to expand, and there is a relatively lower correlation between the lip shape and the cheeks of the face.
[0077] According to the split feature correlation parameter, the virtual image generation method of the embodiment of the present disclosure can learn the degree of correlation between the posture split features for a certain pronunciation, and self-supervise the process of determining facial parameters. As a result, the accuracy of the facial parameters determined according to the split feature correlation parameter and the facial posture feature is higher.
[0078] According to a method for generating a virtual image according to another embodiment of the present disclosure, a specific example of obtaining facial posture features based on the voice features of the target voice data can be implemented through the following embodiments.
[0079] In operation S511 , the Mel-cepstral coefficients 502 of the target speech data 501 are acquired.
[0080] Mel-scale Frequency Cepstral Coefficients, or MFCC for short, are parameters determined based on Mel-scale Frequency Cepstral Coefficients. They are more robust and more in line with the auditory characteristics of the human ear, and they still have good recognition performance when the signal-to-noise ratio is reduced.
[0081] Exemplarily, it can be achieved through: pre-emphasis → framing → windowing → fast Fourier transform → triangular bandpass filter → Mel frequency filter bank → calculate the logarithmic energy of each filter bank output → obtain MFCC through discrete cosine transform. Pre-emphasis can be achieved by passing the target speech data through a high-pass filter. Pre-emphasis can enhance the high-frequency part, make the spectrum of the signal flat, and keep the signal in the entire frequency band from low frequency to high frequency. Pre-emphasis can also eliminate the effects of the vocal cords and lips during the vocalization process to compensate for the high-frequency part of the speech signal suppressed by the vocalization system and highlight the high-frequency resonance peak.
[0082] The speech feature of the target speech data may include a Mel-cepstral coefficient of the target speech data.
[0083] In operation S512 , the phoneme feature 503 is obtained according to the Mel-cepstral coefficient 502 .
[0084] Phoneme features are used to characterize pronunciation action units. Phoneme features can be understood as phonemes represented by feature vectors. Phonemes can be understood as the smallest speech unit divided according to the natural properties of speech. Each pronunciation action in a syllable can constitute a phoneme. Therefore, a phoneme is the smallest unit or the smallest speech segment that constitutes a syllable, and is the smallest linear speech unit divided from the perspective of sound quality.
[0085] In operation S513 , facial gesture features 504 are obtained based on the phoneme features 503 .
[0086] Since the Mel-cepstral coefficients are strongly correlated with phonemes, and phonemes are strongly correlated with lip shape, according to the virtual image generation method of the embodiment of the present disclosure, the phoneme features that are strongly correlated with lip shape can be obtained based on the Mel-cepstral coefficients of the target speech data, and the facial posture features obtained from the phoneme features can map the accurate lip shape.
[0087] Figure 6 A schematic diagram of a method for generating a virtual image according to another embodiment of the present disclosure is schematically shown. In the embodiment of the present disclosure, a specific example of generating a virtual image according to target speech data is implemented by a convolutional neural network Net.
[0088] Figure 6 A timbre identification inference module A-ID-Inf is also shown. Since the target timbre parameter has a corresponding timbre identification, the timbre identification inference module A-ID-Inf can be used to determine the corresponding target timbre parameter according to the timbre identification.
[0089] Exemplarily, for a certain timbre identification A-ID, the timbre identification inference module A-ID-Inf can be used to determine the corresponding target timbre parameter A-pa, and the timbre parameter of the target timbre parameter A-pa can be matched to the speech unit of the corresponding target speech data Aui to obtain the target timbre speech data Aut.
[0090] Exemplarily, the target timbre speech data Aut can be preliminarily divided by adding speech windows, each speech window can be further divided into m speech segments, and n Mel-cephalometric coefficient components of each speech segment can be extracted to obtain the speech feature vector MFCC of the target timbre speech data Aut, and the speech feature vector MFCC is m*n dimensional.
[0091] Exemplarily, m can be 64, and n can be 32.
[0092] On this basis, the timbre identifier A-ID is fused with the speech feature MFCC of the target timbre speech data Aut to obtain the target feature, and the target feature is used as the model input of the convolutional neural network.
[0093] Exemplarily, the target feature after the fusion of the timbre identifier A-ID and the speech feature MFCC of the target timbre speech data Aut may be (m+1)*n dimensional or m*(n+1) dimensional.
[0094] Exemplarily, the timbre identifier A-ID may be a one-hot encoding, which is a One Hot encoding.
[0095] Since speech is continuous in a short period of time, the virtual image generation method of the embodiment of the present invention can add a speech window that can cover multiple sound frames to the target timbre speech data, extract the features of multiple consecutive sound frames, and better learn the features of multiple consecutive sound frames, which conforms to the characteristics of speech in a short period of time, thereby better fitting facial parameters.
[0096] Exemplarily, the speech window may be set to 385 ms.
[0097] The model input Input can be input into the convolutional neural network Net, which can include a speech analysis network N1, a facial posture analysis network N2, a self-supervision network N3, a fully connected layer CF and an output layer OL.
[0098] The speech analysis network N1 can be used to extract speech features from the n-dimensional features or n+1-dimensional features of the model input Input to obtain phoneme features.
[0099] The facial posture analysis network N2 can extract the m-dimensional features or m+1-dimensional features of the model input Input, analyze the time evolution of the features, and output facial posture features.
[0100] The self-supervised network N3 can be used to perform feature splitting on facial posture features, obtain multiple posture splitting features after splitting, and determine the splitting feature correlation parameters based on the multiple posture splitting features; the fully connected layer CF can be used to fit facial parameters according to the facial posture features and the splitting feature correlation parameters, wherein the fully connected layer is set to at least two layers. It can be understood that a binary classification numerical result can be obtained by only one fully connected layer, and a numerical value cannot represent a facial parameter. At least two fully connected layers can fit a multidimensional vector, so the multidimensional vector fitted by at least two fully connected layers can be used to represent the facial parameter.
[0101] The output layer OL can be used to output facial parameters. A virtual image Vi can be generated according to the facial parameters, specifically, a facial model of the virtual image.
[0102] Exemplarily, the facial parameters may include blend shape coefficient weights (blending shape coefficients, i.e., BlendShape). The blend shape coefficients may be used to characterize the parameterized initial facial model, and the blend shape coefficient weights characterize the weight values of the blend shape coefficients, and the blend shape coefficient weights are between 0 and 1. By adjusting the values of the blend shape coefficient weights, the initial facial model may be adjusted to obtain a facial model with a corresponding expression.
[0103] The model parameters of the convolutional neural network Net include network weights. When the convolutional neural network model regresses the numerical values of facial parameters with small values, such as the weight of the mixed shape coefficient, the network weight has a greater impact on the facial parameters. In some cases, it will directly lead to abnormal numerical values of the regressed facial parameters. Taking the mixed shape coefficient weight as an example of facial parameters, the split feature correlation parameter can, for example, characterize the correlation between the mixed shape coefficient weights between multiple posture split features, and self-supervise the process of determining facial parameters based on facial posture features. It can be understood as the feature learning of unlabeled supervision signals for facial posture features through the split feature correlation parameter. The facial parameters determined based on the facial posture features and the split feature correlation parameter are more accurate and stable, and the virtual image generated based on the facial parameters is more vivid, and the simulation effect is better.
[0104] Exemplarily, during the training phase of the convolutional neural network Net, the weight of the part of the facial parameters output by the network that is not related to the lip shape change can be reduced. For example, the training sample Ts outputs the facial parameter Fd through the convolutional neural network Net, and the loss value can be calculated by the label La of the training sample Ts and the facial parameter Fd. When calculating the loss value, the weight of the part that is not related to the lip shape change can be reduced. The part that is not related to the lip shape change may include, for example, eyebrows, eyes, and the like.
[0105] Figure 7 A schematic diagram of generating a virtual image according to a virtual image generating method according to yet another embodiment of the present disclosure is schematically shown.
[0106] According to a method for generating a virtual image according to another embodiment of the present disclosure, a specific example of generating a virtual image according to image parameters can be implemented through the following embodiments.
[0107] In operation S751, an initial face model 702 is acquired.
[0108] The initial facial model 702 is generated according to the initial facial parameters 701 .
[0109] In operation S752 , the initial facial parameters 701 of the initial facial model 702 are updated according to the facial parameters 703 to generate a target facial model 704 .
[0110] In operation S753 , based on the target facial model 704 , the virtual image 705 is obtained.
[0111] The virtual image generation method of the embodiment of the present disclosure can quickly and efficiently generate a virtual image based on the initial facial model by updating the initial facial parameters through facial parameters.
[0112] Figure 8 A schematic diagram of obtaining target voice data in a method for generating a virtual image according to another embodiment of the present disclosure is schematically shown. Figure 8 The schematic diagram schematically shows a schematic diagram of adjusting the initial speech unit duration of each initial speech unit based on the target speech unit duration.
[0113] like Figure 8 As shown, a specific example of obtaining target voice data can be achieved through the following embodiments: initial text data is converted into voice to obtain initial voice data, wherein the initial voice data includes initial voice units, and each initial voice unit of the initial voice data has an initial voice unit duration and an initial rhythm parameter; and based on the target voice unit duration and the target rhythm parameter, the initial voice unit duration and the initial rhythm parameter of each initial voice unit are adjusted to obtain the target voice data.
[0114] The initial voice data is the audio form of the initial text data. The initial voice unit can be understood as the voice unit of the initial voice data, and the initial voice unit duration can be understood as the voice unit duration of the initial voice data. The voice unit duration can be understood as the pronunciation duration of the voice unit. The voice unit can be, for example, a character, a word, etc.
[0115] The initial rhythm parameters can be understood as rhythm parameters of initial speech data.
[0116] Exemplarily, the rhythm parameter may include at least one of melody, frequency, and pitch.
[0117] Exemplarily, the initial text data may be converted into speech through a text-to-speech conversion model to obtain initial speech data, wherein the text-to-speech conversion model is a TTS model (Text To Speech, referred to as TTS for short).
[0118] Exemplarily, the speech style conversion model may be used to adjust the initial rhythm parameters of each initial speech unit.
[0119] It can be understood that the target speech data has a target speech unit duration and a target rhythm parameter.
[0120] The virtual image generation method of the disclosed embodiment supports the generation of virtual images driven by initial text data, expanding the application scenarios of virtual images. By converting the initial text data into speech, the initial speech data obtained is not affected by interference noise and is a "pure" speech data. By adjusting the initial speech unit duration and initial rhythm parameters of each initial speech unit based on the target speech unit duration and target rhythm parameters, the target speech data obtained has the characteristics of being "pure" and matching the target speech unit duration and target rhythm parameters.
[0121] The lip shape of the virtual image generated based on the "pure" target voice data is more accurate, and at least the occurrence of abnormal lip shape and closed mouth of the virtual image's plosive sounds can be reduced.
[0122] Since the duration of a speech unit is related to the lip shape change sequence, the virtual image generated based on the target speech data matching the duration of the target speech unit can at least improve the stability of the lip shape sequence.
[0123] The virtual image generated according to the target voice data matching the target rhythm parameters can, for example, provide the function of outputting the target voice data having the target rhythm parameters, thereby improving the situation where the virtual image mechanically outputs machine sounds, thereby improving the simulation effect of the virtual image and enhancing the user's immersive experience.
[0124] The virtual image generation method of the disclosed embodiment can be applied to application scenarios such as virtual image facial lip shape capture, virtual image singing, film and television animation, interactive game entertainment, etc. Since the lip shape of the virtual image generated by the virtual image generation method of the disclosed embodiment is more accurate and the lip shape sequence is more stable, the virtual image generation method of the disclosed embodiment has a better virtual image simulation effect and can improve the user's immersive experience. It can also replace complex and expensive facial lip shape capture equipment in live broadcast scenarios, reducing equipment investment costs and the labor cost of modifying abnormal lip shapes of virtual images in the later stage.
[0125] Figure 8 The schematic diagram of adjusting the initial speech unit duration of each initial speech unit is schematically shown, wherein five speech units A, B, C, D and E are shown, five target speech unit durations t1', t2', t3', t4' and t5' are shown, and the initial speech unit durations of the five initial speech units t1, t2, t3, t4 and t5 of the initial speech data Ai are also shown. It can be understood that for each initial speech unit, based on the target speech unit duration, the initial speech unit duration of the initial speech unit is adjusted until the initial speech unit duration is consistent with the target speech unit duration, and the target speech data At can be obtained.
[0126] The method for generating a virtual image according to the embodiment of the present disclosure can be applied to the scene of music audio such as songs. By adjusting the initial speech unit duration and initial rhythm parameters of each initial speech unit based on the target speech unit duration and target rhythm parameters of the music audio, target speech data having a speech unit duration matching relationship and a rhythm parameter matching relationship with the music audio can be obtained. Based on the target speech data with rhythm, the lip shape sequence of the generated virtual image is more stable and accurate, and has a better virtual image simulation effect. For example, the generated virtual image can also be used to provide audio-visual function services such as singing.
[0127] Fig. 9 A block diagram of a virtual image generating device according to an embodiment of the present disclosure is schematically shown.
[0128] like Fig. 9 As shown, the virtual image generation device 900 of the embodiment of the present disclosure includes, for example, a target voice data determination module 910, a target timbre voice data determination module 920, a target feature determination module 930, an image parameter determination module 940 and a virtual image generation module 950.
[0129] The target voice data determination module 910 is used to obtain target voice data.
[0130] The target timbre voice data determination module 920 is used to obtain the target timbre voice data based on the target voice data and the target timbre parameters, wherein the target timbre parameters have corresponding timbre identifiers.
[0131] The target feature determination module 930 is used to fuse the timbre identifier with the speech feature of the target timbre speech data to obtain the target feature.
[0132] The image parameter determination module 940 is used to determine the image parameters for the virtual image according to the target characteristics.
[0133] The virtual image generation module 950 is used to generate a virtual image according to image parameters.
[0134] According to the embodiment of the present disclosure, the timbre identifier is used to identify a specified pronunciation style and / or a specified pronunciation object.
[0135] According to an embodiment of the present disclosure, the target voice data includes at least one voice unit, the target timbre parameters include timbre parameters for each voice unit, and the target timbre voice data determination module includes: a target timbre voice data determination submodule.
[0136] The target timbre voice data determination submodule is used to match the timbre parameters to the corresponding voice units to obtain the target timbre voice data.
[0137] According to an embodiment of the present disclosure, the image parameters include facial parameters, and the image parameter determination module includes: a facial posture feature determination submodule, a posture splitting feature determination submodule, a splitting feature correlation parameter determination submodule and a facial parameter determination submodule.
[0138] The facial posture feature determination submodule is used to obtain facial posture features according to target features.
[0139] The posture splitting feature determination submodule is used to perform feature splitting on facial posture features to obtain multiple posture splitting features after splitting.
[0140] The split feature correlation parameter determination submodule is used to determine the split feature correlation parameter based on multiple posture split features. The split feature correlation parameter is used to characterize the correlation between multiple posture split features.
[0141] The facial parameter determination submodule is used to determine facial parameters according to the split feature correlation parameters and facial posture features.
[0142] According to an embodiment of the present disclosure, the facial posture feature determination submodule includes: a Mel-cepstral coefficient determination unit, a phoneme feature determination unit and a facial posture feature determination unit.
[0143] The Mel-cepstral coefficient determination unit is used to obtain the Mel-cepstral coefficient of the target feature.
[0144] The phoneme feature determination unit is used to obtain the phoneme feature according to the Mel-frequency cepstral coefficient, wherein the phoneme feature represents the pronunciation action unit.
[0145] The facial posture feature determination unit is used to obtain the facial posture feature according to the phoneme feature.
[0146] According to an embodiment of the present disclosure, the virtual image generation module includes: an initial face model determination submodule, a target face model determination submodule and a virtual image generation submodule.
[0147] The initial facial model determination submodule is used to obtain an initial facial model, wherein the initial facial model is generated according to initial facial parameters.
[0148] The target facial model determination submodule is used to update the initial facial parameters of the initial facial model according to the facial parameters to generate the target facial model.
[0149] The virtual image generation submodule is used to obtain a virtual image according to the target facial model.
[0150] According to an embodiment of the present disclosure, the target voice data determination module includes: an initial voice data determination submodule and a target voice data determination submodule.
[0151] an initial voice data determination submodule, configured to perform voice conversion on the initial text data to obtain initial voice data, wherein the initial voice data includes initial voice units, and each initial voice unit of the initial voice data has an initial voice unit duration and an initial rhythm parameter; and
[0152] The target speech data determination submodule is used to adjust the initial speech unit duration and initial rhythm parameters of each initial speech unit based on the target speech unit duration and the target rhythm parameters to obtain the target speech data.
[0153] It should be understood that the embodiments of the device part of the present disclosure are the same or similar to the embodiments of the method part of the present disclosure, and the technical problems solved and the technical effects achieved are also the same or similar, and the present disclosure will not elaborate on them here.
[0154] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0155] Fig.10 A schematic block diagram of an example electronic device 1000 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0156] like Fig.10 As shown, the device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 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.
[0157] A number of components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0158] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as the virtual image generation method. For example, in some embodiments, the virtual image generation method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the virtual image generation method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to execute the virtual image generation method in any other appropriate manner (eg, by means of firmware).
[0159] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0160] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0161] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0162] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0163] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0164] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0165] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0166] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for generating a virtual image, comprising: Obtain target voice data; Based on the target voice data and the target timbre parameter, obtaining the target timbre voice data, wherein the target timbre parameter has a corresponding timbre identifier; Fusion of the timbre identifier with the speech feature of the target timbre speech data to obtain a target feature; Determining image parameters for the virtual image according to the target features, the image parameters including facial parameters, the facial parameters being used to drive changes in facial lip shape; and generating the virtual image according to the image parameters; Wherein, determining the image parameters for the virtual image according to the target characteristics includes: Obtaining facial posture features according to the target features; Performing feature splitting on the facial posture feature to obtain a plurality of posture split features after splitting; Based on the multiple posture splitting features, determining a splitting feature correlation parameter, wherein the splitting feature correlation parameter is used to characterize the correlation between the multiple posture splitting features, and the correlation between the multiple posture splitting features includes the correlation between the lip shape and the face; and The facial parameters are determined according to the split feature correlation parameters and the facial posture features. 2 . The method according to claim 1 , wherein the timbre identifier is used to identify a specified pronunciation style and / or a specified pronunciation object.
3. The method according to claim 1, wherein the target voice data comprises at least one voice unit, the target timbre parameters comprise timbre parameters for each voice unit, and the step of obtaining the target timbre voice data based on the target voice data and the target timbre parameters comprises: The timbre parameters are matched to corresponding speech units to obtain the target timbre speech data.
4. The method according to claim 1, wherein: The step of obtaining facial posture features according to the target features includes: Obtaining Mel-frequency cepstral coefficients of the target feature; Obtaining phoneme features according to the Mel-cepstral coefficients; and The facial posture feature is obtained according to the phoneme feature.
5. The method according to claim 1, wherein: Generating the virtual image according to the image parameters includes: Acquire an initial facial model, wherein the initial facial model is generated according to initial facial parameters; updating the initial facial parameters of the initial facial model according to the facial parameters to generate a target facial model; and The virtual image is obtained according to the target facial model.
6. The method according to any one of claims 1 to 5, wherein: The acquiring of target voice data comprises: Performing voice conversion on the initial text data to obtain initial voice data, wherein the initial voice data includes initial voice units, and each initial voice unit of the initial voice data has an initial voice unit duration and an initial rhythm parameter; and Based on the target speech unit duration and the target rhythm parameter, the initial speech unit duration and the initial rhythm parameter of each initial speech unit are adjusted to obtain the target speech data.
7. A virtual image generating device, comprising: A target voice data determination module, used to obtain target voice data; A target timbre voice data determination module, used to obtain the target timbre voice data based on the target voice data and the target timbre parameter, wherein the target timbre parameter has a corresponding timbre identifier; A target feature determination module, used for fusing the timbre identifier with the speech feature of the target timbre speech data to obtain a target feature; An image parameter determination module, used to determine image parameters for the virtual image according to the target features, the image parameters including facial parameters, the facial parameters being used to drive changes in facial lip shape; and A virtual image generation module, used for generating the virtual image according to the image parameters; Wherein, the image parameter determination module includes: A facial posture feature determination submodule, used to obtain facial posture features according to the target features; A posture split feature determination submodule is used to perform feature splitting on the facial posture feature to obtain a plurality of posture split features after splitting; a split feature correlation parameter determination submodule, used to determine a split feature correlation parameter based on the plurality of posture split features, wherein the split feature correlation parameter is used to characterize the correlation between the plurality of posture split features, and the correlation between the plurality of posture split features includes the correlation between lip shape and face; and The facial parameter determination submodule is used to determine the facial parameters according to the split feature correlation parameters and the facial posture features.
8. The device according to claim 7, wherein the timbre identifier is used to identify a specified pronunciation style and / or a specified pronunciation object.
9. The device according to claim 7, wherein the target speech data comprises at least one speech unit, the target timbre parameters comprise timbre parameters for each speech unit, and the target timbre speech data determination module comprises: The target timbre voice data determination submodule is used to match the timbre parameters to corresponding voice units to obtain the target timbre voice data.
10. The device according to claim 7, wherein: The facial posture feature determination submodule comprises: A Mel-cepstral coefficient determination unit, used to obtain the Mel-cepstral coefficient of the target feature; a phoneme feature determination unit, configured to obtain a phoneme feature according to the Mel-cepstral coefficient; and A facial posture feature determination unit is used to obtain the facial posture feature according to the phoneme feature.
11. The device according to claim 7, wherein: The virtual image generation module includes: An initial facial model determination submodule is used to obtain an initial facial model, wherein the initial facial model is generated according to initial facial parameters; a target facial model determination submodule, configured to update the initial facial parameters of the initial facial model according to the facial parameters to generate a target facial model; and The virtual image generation submodule is used to obtain the virtual image according to the target facial model.
12. The device according to any one of claims 7 to 11, wherein: The target voice data determination module comprises: an initial voice data determination submodule, configured to perform voice conversion on the initial text data to obtain initial voice data, wherein the initial voice data includes initial voice units, and each initial voice unit of the initial voice data has an initial voice unit duration and an initial rhythm parameter; and The target speech data determination submodule is used to adjust the initial speech unit duration and the initial rhythm parameter of each initial speech unit based on the target speech unit duration and the target rhythm parameter to obtain the target speech data.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
