Lip shape determination method and device, equipment, storage medium and program product

By dividing the broadcast time period of 3D digital human phonemes into three segments, and using phoneme-lip mapping table and interpolation processing, the problem of unnatural and lifelike lip shapes of 3D digital human beings is solved, achieving higher stability and real-time performance. , reducing costs and solving compatibility issues under different driver standards.

CN118692484AActive Publication Date: 2024-09-24ALIPAY (HANGZHOU) INFORMATION TECH CO LTD

Patent Information

Application Number
CN202410940948.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-09-24
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

Existing lip-shape driving methods for 3D digital humans have problems such as unnatural lifelikeness, poor stability, poor real-time performance and high cost, especially in the processing of noisy audio data and compatibility issues under different driving standards.

Method used

By obtaining the text data to be broadcast by the digital person, the broadcast time period of each phoneme is divided into three time periods, the key frame lip shape is determined using the preset phoneme-lip shape mapping table, and the first and last sums are processed through the interpolation of the preceding and following phonemes. The lip shape in the third time period ensures a natural lip shape transition.

Benefits of technology

It improves the naturalness and stability of the lip shape, reduces the cost, ensures real-time performance and compatibility with different driver standards, and avoids lip shape mutation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118692484A
    Figure CN118692484A
Patent Text Reader

Abstract

The invention provides a lip shape determination method, which comprises the following steps of: acquiring text data to be broadcasted by a digital human, determining a broadcasting time period of each phoneme in the text data, and dividing the broadcasting time period of each phoneme into three time periods, the key frame lip shape needing to be maintained can be determined by looking up a phoneme-lip shape mapping table, and the other two time periods can be determined through interpolation between the key frame lip shape of the phoneme and the key frame lip shapes before and after the phoneme. Therefore, the broadcasting time period of each phoneme is divided into three parts, only the middle time period is used for maintaining the lip shape of the current phoneme, and the other time periods are used for transition with the lip shape of the previous phoneme or the lip shape of the next phoneme, so that the lip shape change is more vivid and natural.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of digital human technology, and in particular, to a lip shape determination method, device, equipment, storage medium, and program product. Background Art

[0002] Three-dimensional (3D) digital human is a virtual 3D image generated by digital technology. With the development of the concept of "metaverse", 3D digital human has more and more extensive applications.

[0003] 3D digital humans can be driven by computers. Computer driving can make the limbs and face of 3D digital humans move, making them more realistic and natural. The facial driving of 3D digital humans includes lip shape driving. When 3D digital humans make voice broadcasts, the lip shape of 3D digital humans needs to be driven so that the lip shape of 3D digital humans can correspond to the audio of 3D digital humans' voice broadcasts.

[0004] In the prior art, the lip shape driven by the lip shape driving method of 3D digital human still has the problem of being unnatural and realistic. Summary of the invention

[0005] In view of this, one or more embodiments of the present specification provide a lip shape determination method, apparatus, device, storage medium, and program product.

[0006] According to a first aspect of one or more embodiments of this specification, a lip shape determination method is proposed, the method comprising:

[0007] Acquire text data to be broadcasted by the digital human, and determine the broadcasting time period of the phoneme corresponding to each text unit in the text data; the text unit is a character and / or a word;

[0008] For each phoneme of the text data, dividing the broadcasting time period of the phoneme into a first time period, a second time period including a key frame, and a third time period;

[0009] Determine the key frame lip shape corresponding to each phoneme of the text data according to a preset phoneme-lip shape mapping table;

[0010] For each phoneme of the text data, the lip shape of the first time period is determined based on the interpolation of the lip shape of the previous key frame and the key frame lip shape of the phoneme, the lip shape of the second time period is set to maintain the key frame lip shape, and the lip shape of the third time period is determined based on the interpolation of the key frame lip shape of the phoneme and the next key frame lip shape.

[0011] According to a second aspect of one or more embodiments of this specification, a lip shape determination device is provided, the device comprising:

[0012] The time period determination module is used to obtain the text data to be broadcasted by the digital human, and determine the broadcasting time period of the phoneme corresponding to each text unit in the text data; the text unit is a character and / or a word;

[0013] A time period division module, for dividing, for each phoneme of the text data, a broadcast time period of the phoneme into a first time period, a second time period including a key frame, and a third time period;

[0014] A key frame lip shape determination module, used to determine the key frame lip shape corresponding to each phoneme of the text data according to a preset phoneme-lip shape mapping table;

[0015] The lip shape determination module is used to determine the lip shape of the first time period for each phoneme of the text data based on the interpolation of the lip shape of the previous key frame and the key frame lip shape of the phoneme, set the lip shape of the second time period to maintain the key frame lip shape, and determine the lip shape of the third time period based on the interpolation of the key frame lip shape of the phoneme and the next key frame lip shape.

[0016] According to a third aspect of the embodiments of this specification, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the lip shape determination method as described in the first aspect of the embodiments of this specification is implemented.

[0017] According to a fourth aspect of the embodiments of this specification, a computer device is provided, the computer device comprising:

[0018] processor;

[0019] a memory for storing processor-executable instructions;

[0020] The processor implements the lip shape determination method as described in the first aspect of the embodiment of this specification by running the executable instructions.

[0021] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, including computer program instructions, which, when executed by a processor, implement the lip shape determination method as described in the first aspect of the embodiments of this specification.

[0022] This specification provides a lip shape determination method, which obtains the text data broadcast by the digital human band, and determines the broadcast time period of each phoneme in the text data, and divides the broadcast time period of each phoneme into three time periods, wherein the middle time period of the three sections can determine the key frame lip shape to be maintained by looking up the phoneme-lip shape mapping table, and the other two time periods can be determined by interpolating the key frame lip shape of the phoneme and the key frame lip shapes before and after the phoneme. In this way, the broadcast time period of each phoneme is divided into three parts, and only the middle time period is used to maintain the lip shape of the current phoneme, and the other time periods are used to transition with the lip shape of the previous phoneme or the lip shape of the next phoneme, so that the lip shape change can be more realistic and natural.

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

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0025] Figure 1 It is a schematic diagram of a voice driving method in a related technology shown in this specification.

[0026] Figure 2 is a flow chart of a lip shape determination method according to an exemplary embodiment of the present specification.

[0027] Figure 3 It is a schematic diagram of the effects of the two interpolation methods shown in this specification.

[0028] Figure 4 It is a schematic diagram of a lip shape determination method shown in this specification according to a specific embodiment.

[0029] Figure 5 This is a comparison diagram of the effects of driving a digital human using a phoneme-demonstrated mouth shape and lip shape driving parameters according to a specific embodiment of the present specification.

[0030] Figure 6 It is a schematic diagram of a three-segment interpolation shown in this specification according to a specific embodiment.

[0031] Figure 7 is a block diagram of a lip shape determination device according to an exemplary embodiment of the present specification.

[0032] Figure 8 It is a hardware structure diagram of a computer device shown in this specification according to an exemplary embodiment. DETAILED DESCRIPTION

[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0034] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0035] 3D digital human (hereinafter referred to as digital human) is a 3D model that exists in the digital world and is driven by a computer program. The application of digital human is becoming more and more widespread. For example, digital human can be used as customer service, digital human can be used as tour guide, etc. Digital human driving is a method of controlling the movement of digital human through computer programs. Digital human has multiple key points of the human body. By controlling the displacement and rotation of the key points of the human body, the body and face of the digital human can be changed, so that the digital human can move.

[0036] Digital human driving includes facial driving and limb driving. In the application of digital humans, users have a more obvious perception of the digital human's face, so the facial driving effect of digital humans is very important for the application of digital humans. Digital human facial driving includes lip shape driving and expression driving. In related technologies, expression driving is generally achieved by playing preset expression animations. Lip shape driving is generally based on audio or text data, and uses automated technology to generate lip shape driving parameters that are semantically consistent with the audio or text data, so that the lip shape driving parameters are used to drive the digital human to emit lip shapes consistent with the audio or text data, making the digital human more vivid and natural.

[0037] In the related art, the lip shape driving methods of digital humans include voice driving and phoneme driving.

[0038] Speech-driven lip shape is a method that predicts lip shape driving parameters based on input audio data, which is generally implemented based on artificial neural networks. Figure 1 As shown, Figure 1A schematic diagram of a method for driving lip shape by speech is shown. First, audio or video data is input into a predefined audio feature extractor (i.e., an encoder) to extract audio features in the audio or video data. The audio features can be a representation matrix of the audio. Then, using a trained decoder, the audio features are input into the decoder to obtain the lip shape driving parameters of each frame. Figure 1 The dotted box represents the data, and the solid box represents the artificial neural network model.

[0039] The encoder and decoder can be artificial neural network models trained using audio-lip alignment training data. For the decoder, Figure 1 As shown, it can use the autoregressive method to output lip shape driving parameters according to the input audio features, that is, the lip shape driving parameters of the previous N-1 frames are used as input, and the lip shape driving parameters of the Nth frame are predicted through the decoder. Among them, the lip shape driving parameters can be driving data in the form of vectors, such as 52-dimensional vectors, etc. Each value in the vector can represent the displacement size or direction of a key point of the digital human's lips relative to the initial position.

[0040] Although the above-mentioned speech-based end-to-end lip shape driving method can generate lip shape driving parameters more conveniently, this method has the following problems:

[0041] First, the speech-based lip-shaped driving method utilizes an artificial neural network, and the training of the artificial neural network requires a large amount of high-quality audio-lip alignment training data. Most of these training data are collected in a laboratory environment, and the collection cost is relatively high. Moreover, the training data is collected in a laboratory environment, and the audio quality is relatively high. In actual applications, the audio data used may be noisy. The characteristics of these noisy audio data are different from those of the audio data collected in the laboratory. The model trained by the audio data collected in the laboratory has unstable processing effects on these out-of-domain data with different characteristics. This may result in the lip-shaped driving parameters finally output by the decoder not corresponding to the audio data in semantics when noisy audio data is input.

[0042] Second, in actual applications, the types of digital human models that need to be driven come from different sources, which may lead to differences in the driving standards used by different digital humans. Under different driving standards, the format of the lip shape driving parameters may be different. For example, under some driving standards, the lip shape driving parameters are 52 dimensions, and under some driving standards, the lip shape driving parameters are 108 dimensions, etc. There are also differences in the key points selected under different driving standards. Therefore, for digital humans with different driving standards, it is necessary to collect training data under multiple driving standards to train encoders and encoders, which is costly and expensive to train models.

[0043] Third, the above decoder model generally uses autoregressive prediction, which has a low overall efficiency and cannot guarantee the real-time generation of lip drive parameters. In order to improve the inference efficiency of the model, the model needs to be specially modified for inference acceleration, but if you want to ensure high real-time performance, the modification cost is high.

[0044] In addition to voice driving, the related art can also use a phoneme-based lip shape driving method to drive the digital human, which can overcome the above-mentioned problems of voice driving. Phoneme driving is to divide the text into multiple phonemes, and drive the lip shape of the digital human according to the preset lip shape driving parameters of each phoneme.

[0045] Compared with speech drive, in the phoneme-based lip shape driving method, the lip shape driving parameters of the same phoneme at different times are the same, the driving effect is more stable, and the interpretability is stronger; in addition, since this method drives the digital human according to the preset lip shape driving parameters of each phoneme, compared with the autoregressive prediction model, the processing efficiency is also higher, and the real-time processing can be guaranteed; and for different driving standards, there is no need to collect training data under multiple driving standards, only the lip shape driving parameters corresponding to each phoneme under different driving standards need to be obtained, and the lip shape driving parameters corresponding to each phoneme under different driving standards can be obtained by simple processing of the lip shape driving parameters of each phoneme under one driving standard, which is low in cost.

[0046] However, in the lip shape driving method based on phonemes in the related art, the lip shape of the digital human is still not natural and realistic enough. The main reason is that in the existing digital human broadcasting process, there is a lack of natural transition between phonemes, which easily leads to sudden changes in lip shape.

[0047] In order to solve the problem of unnatural and realistic lip shape of digital human, this specification provides a lip shape determination method, which obtains the text data of the digital human broadcast, and determines the broadcast time period of each phoneme in the text data, and divides the broadcast time period of each phoneme into three time periods, among which, the middle time period between the three segments can determine the key frame lip shape to be maintained by looking up the phoneme-lip shape mapping table, and the other two time periods can be determined by interpolating the key frame lip shape of the phoneme and the key frame lip shapes before and after the phoneme.

[0048] In this way, the broadcasting time period of each phoneme is divided into three parts, and only the middle time period is used to maintain the lip shape of the current phoneme, and the other time periods are used to transition between the lip shape of the previous phoneme or the lip shape of the next phoneme, which can make the lip shape changes more realistic and natural.

[0049] Compared with the interpolation method in the related art, the method in this specification takes into account the problem of lip shape mutation that is ignored in the related art, and solves this problem by interpolating part of the time period in the broadcast time period of each phoneme, making the lip shape more realistic and natural.

[0050] Moreover, compared with speech-based lip shape driving, the phoneme-driven method can also solve the problems of poor stability, poor real-time performance and high cost of speech driving.

[0051] Next, a lip shape determination method shown in this specification will be specifically described. Figure 2 As shown, Figure 2 is a flow chart of a lip shape determination method according to an exemplary embodiment of the present specification, including:

[0052] Step 201, obtaining text data to be broadcasted by the digital human, and determining the broadcasting time period of the phoneme corresponding to each text unit in the text data.

[0053] The text units are characters and / or words.

[0054] In step 201, in order to finally obtain the lip shape of the digital human, it is necessary to first obtain the text data that the digital human needs to broadcast, split the text data into each phoneme, and determine the duration of each phoneme.

[0055] The text data may be a sentence or a word. The length of the text data may be determined according to the processing capability of the processor. For example, if the processing capability of the processor is strong and the lip shape of a longer sentence can be generated in a short time, longer text data may be selected. The length of the text data may also be preset, for example, it may be set to input a sentence each time. The length of the text data may also be determined according to the segmentation, for example, the length of the text data to be processed in one processing may be determined according to the punctuation marks in the text data.

[0056] Phoneme is a concept in linguistics, which refers to the smallest, indivisible, and meaningful phonetic unit in a language. Phoneme is an abstract phonetic category that does not directly correspond to any specific phonetic word, but refers to the functional attributes of the phonetic word that can distinguish the meaning of a word. For Chinese, phonemes can include initial consonants, finals, etc. For English, phonemes can include a single phonetic symbol.

[0057] A text unit is a text that is composed of at least one phoneme and cannot be divided further in a sentence. For example, for Chinese, a text unit can be a single character, for English, a text unit can be a word, and for Japanese, a text unit can be a single hiragana or katakana (here, one hiragana or katakana can be regarded as one character).

[0058] As for the method of obtaining text data, the text data marked with the start and end timestamps of each text unit or the text data marked with the start and end timestamps of each phoneme can be directly obtained, wherein the start and end timestamps can be marked manually or in other automated ways.

[0059] The method for obtaining text data can also be to first obtain the audio data that the digital human needs to broadcast, then perform speech recognition processing on the audio data, and then obtain the text data, as well as the start and end timestamps of each text unit in the text data in the audio data broadcast, and then split the text unit into multiple phonemes, and determine the broadcast time period of each phoneme based on the start and end timestamps of each text unit.

[0060] In other words, step 201 includes: performing speech recognition on the target audio to obtain the text data and the start and end timestamps corresponding to each text unit in the text data; determining the phonemes corresponding to each text unit in the text data; and dividing the time period corresponding to the start and end timestamps of each text unit into broadcasting time periods of multiple phonemes corresponding to the text unit according to a preset division rule.

[0061] Among them, determining the phoneme corresponding to each text unit in the text data can be done by pre-storing a phoneme table, in which the phoneme corresponding to each text unit is recorded, and determining the phoneme corresponding to each text unit by searching the phoneme table. In addition, the phoneme corresponding to each text unit in the text data can be determined by first converting the text unit into pinyin or phonetic symbols, and then splitting the pinyin or phonetic symbols into multiple phonemes according to the splitting rules of the pinyin or phonetic symbols. The above examples do not represent limitations on this specification, and the methods for determining the phonemes corresponding to text units in the related art can be used as the methods in this specification.

[0062] In addition, the preset division rule can be an average division, that is, the time period corresponding to the start and end timestamps of the text unit is evenly divided into the phonemes of the text unit, thereby determining the broadcast time period of each phoneme. In addition, the division rule can also be determined according to the pronunciation rule. For example, when the text data is Chinese, since the pronunciation of the finals is generally longer than the pronunciation of the initial consonants when reading aloud, a certain division ratio can be preset as the preset division rule according to the above pronunciation rule, such as 40% of the time period corresponding to the start and end timestamps of the text unit is divided into the initial consonants, and 60% is divided into the finals, etc.

[0063] The above two division methods do not limit this specification, and this specification does not limit the preset division rules for dividing the broadcast time periods of phonemes.

[0064] Step 203: for each phoneme of the text data, divide the broadcasting time period of the phoneme into a first time period, a second time period including a key frame, and a third time period.

[0065] After the broadcasting time period of each phoneme is determined through step 201, the broadcasting time period of each phoneme needs to be further divided into a time period for maintaining the key frame lip shape of the phoneme (i.e., the second time period), and a time period for smooth transition (i.e., the first time period and the third time period). The first time period is used to connect with the previous key frame lip shape, and the third time period is used to connect with the next key frame lip shape.

[0066] By dividing the broadcasting time period of each phoneme into multiple sections and performing the lip shape transition in the first and third sections, the phenomenon of sudden changes in lip shape can be avoided, making the lip shape of the digital human more realistic and natural. At the same time, the second section can be the middle section of the broadcasting time period. Maintaining the key frame lip shape in the second section can also make the lip shape and the text content of the broadcast more semantically corresponding.

[0067] Among them, the division into three time periods can be to divide the broadcast time period of each phoneme into three sections on average, and the three sections are respectively the first time period, the second time period and the third time period in order. In addition, in some cases, the digital human is a customized digital human, and the division ratio of the three time periods can be determined according to the lip shape change rule of the customized digital human. For example, the customized digital human is customized according to a specific person, and the lip shape of the specific person changes slowly when speaking, and will not maintain the lip shape corresponding to a certain phoneme for a long time. Then, the division ratio can be preset and the first time period, the second time period and the third time period can be determined according to the division ratio. The proportion of the second time period in the ratio can be less than one-third, so that the customized digital human can be more corresponding to the specific person. Of course, the three time periods can also be divided according to other methods, and the above examples do not limit this specification.

[0068] The specific implementation of the division into three time periods may be to divide the broadcast frame corresponding to each phoneme into three equal sections, and each time period includes a number of frames.

[0069] Step 205: Determine the key frame lip shape corresponding to each phoneme of the text data according to a preset phoneme-lip shape mapping table.

[0070] Through step 205, the key frame lip shape that needs to be maintained in the second time period can be determined.

[0071] As for the execution order of step 203 and step 205, step 203 may be executed first and then step 205, or step 205 may be executed first and then step 203, or step 203 and step 205 may be executed in parallel. This specification does not limit the execution order of step 203 and step 205.

[0072] Among them, the key frame refers to a special frame defined on the timeline. Between key frames, the corresponding lip shape driving parameters can be determined by interpolation and other methods. The key frame lip shape is the lip shape on the key frame. The lip shape of the key frame can be directly obtained by table lookup and other methods.

[0073] The phoneme-lip shape mapping table is a database storing the lip shape corresponding to each phoneme. The lip shape determined in this specification may be a lip shape driving parameter, which is the driving data used to drive the key points of the digital human's lips to move. In addition, the lip shape determined in this specification may also be other types of data, such as data describing the position coordinates of the key points of the lips in a three-dimensional coordinate system. After obtaining other types of lip shape data, the lip shape data may be mapped to a lip shape driving parameter by a table lookup method, thereby driving the change of the lip shape.

[0074] For Chinese and English, Chinese and English phonemes can include 16 whole-word syllables, 23 initial consonants, 34 finals, and 39 phonetic symbols. When the text data includes Chinese and English, the phoneme-lip shape mapping table can include the lip shape data corresponding to the above-mentioned 16 whole-word syllables, 23 initial consonants, 34 finals, and 39 phonetic symbols.

[0075] Next, the method for obtaining the phoneme-lip shape mapping table will be described. Digital humans are generally divided into customized digital humans and ordinary digital humans. Customized digital humans are digital humans that are customized for a specific image and can be driven by a computer, such as digital humans customized for a certain star, digital humans customized for a certain cartoon image, etc. Ordinary digital humans are digital humans that are not customized for a specific image and use a general drive standard. It should be noted that customized digital humans may also use a general drive standard.

[0076] For customized digital humans, in order to make the digital humans more consistent with the specific image, the customized digital humans will generally have a pre-made phoneme-lip shape mapping table covering basic phonemes. In this case, the lip shapes corresponding to other phonemes can be obtained by combining the lip shape lines of multiple phonemes based on the phoneme-lip shape mapping table including the basic phonemes.

[0077] Specifically, if the digital human model is customized for a specific image, the digital human model generally corresponds to the lip shape driving parameters of each phoneme in the pre-customized first phoneme set. In one embodiment, the set range of the preset phoneme set corresponding to the phoneme-lip shape mapping table required by step 205 is larger than the customized first phoneme set. In this case, the phoneme-lip shape mapping table is obtained in the following manner: the lip shape driving parameters corresponding to the intersection phonemes of the first phoneme set and the preset phoneme set are set as the lip shape data in the phoneme-lip shape mapping table; for the target phonemes in the preset phoneme set that do not belong to the intersection phonemes, they are decomposed into a combination of multiple phonemes in the first phoneme set, and the combination of the lip shape driving parameters of the multiple phonemes is set as the lip shape data of the target phoneme in the phoneme-lip shape mapping table.

[0078] For example, for Chinese, the first phoneme set may include all initials, vowels, and finals, and those not included may be complex finals such as an / ai / ing. For ai, the lip shape of the finals a and i may be linearly combined to obtain the lip shape of ai. Of course, the first phoneme set may also include a set of other phonemes, and this specification does not limit the specific form of the first phoneme set.

[0079] In some cases, the customized digital human may also pre-make a phoneme-lip shape mapping table covering all phonemes. In this case, the pre-made phoneme-lip shape mapping table can be directly used as the phoneme-lip shape mapping table used in step 205.

[0080] For common general digital human models, there is generally no pre-made phoneme-lip shape mapping table, so the phoneme-lip shape mapping table can be obtained by motion capture. In other words, the phoneme-lip shape mapping table is obtained by the following method: the lip shape driving parameters corresponding to each phoneme in the preset phoneme set are obtained by motion capture, thereby generating the phoneme-lip shape mapping table.

[0081] For digital humans with different drive standards, the motion capture tools corresponding to each drive standard can be used to obtain the phoneme-lip shape mapping table under each drive standard. For example, for a digital human model using the ARKit52 drive standard, the Livelink motion capture software corresponding to the ARKit52 drive standard can be used to collect the lip shapes of the motion capture actors when demonstrating different phonemes, thereby obtaining the phoneme-lip shape mapping table.

[0082] In addition, for digital humans with different driving standards, the lip shapes collected by motion capture under a certain driving standard can also be expanded to obtain phoneme-lip shape mapping tables under other driving standards. For example, when the lip shape is a lip shape driving parameter, and the existing lip shape driving parameter is a 52-dimensional phoneme-lip shape mapping table, then the lip shape driving parameter of the phoneme-lip shape mapping table can be increased or decreased in dimension to obtain phoneme-lip shape mapping tables of other dimensions under other driving standards.

[0083] For various digital humans, the cost of obtaining the phoneme-lip shape mapping table is relatively low. Compared with the voice-driven method in the related technology that needs to obtain the audio-lip shape alignment training data under each driving standard, it is lower in cost and easier to expand to multiple driving standards.

[0084] Step 207, for each phoneme of the text data, determine the lip shape of the first time period based on the interpolation of the lip shape of the previous key frame and the key frame lip shape of the phoneme, set the lip shape of the second time period to maintain the key frame lip shape, and determine the lip shape of the third time period based on the interpolation of the key frame lip shape of the phoneme and the next key frame lip shape.

[0085] After obtaining the key frame lip shape corresponding to each phoneme through the phoneme-lip shape mapping table and determining the first time period, second time period and third time period corresponding to each phoneme, the lip shape can be set in the first time period as a transition with the previous key frame lip shape, the key frame lip shape corresponding to the current phoneme can be maintained in the second time period, and the lip shape can be set in the third time period as a transition with the next key frame lip shape.

[0086] There are two situations for the previous key frame lip shape and the next key frame lip shape, one is the key frame lip shape corresponding to the phoneme adjacent to the phoneme, and the other is the closed lip shape. Next, the implementation methods of step 207 in these two situations will be described.

[0087] In one case, the speech in the broadcast audio is continuous, which is manifested by no silence time between adjacent phonemes or a short silence time. In this case, the previous key frame lip shape is the key frame lip shape corresponding to the previous phoneme of the phoneme in the text data, and the next key frame lip shape is the key frame lip shape corresponding to the next phoneme of the phoneme in the text data.

[0088] For example, if the text data is “virtual digital human”, the text data can be divided into several phonemes, namely “x”, “u”, “n”, “i”, “sh”, “u”, “zi”, “r” and “en”. For the phoneme “n”, the previous key frame lip shape can be the key frame lip shape of “u”, and the next key frame lip shape can be the key frame lip shape of “i”.

[0089] Since the first time period of each phoneme is used to smoothly transition from the previous key frame lip shape to the key frame lip shape of the current phoneme, and the third time period is used to smoothly transition from the key frame lip shape of the current phoneme to the next key frame lip shape. Then, when the previous key frame lip shape is the key frame lip shape corresponding to the previous phoneme of the phoneme in the text data, and the next key frame lip shape is the key frame lip shape corresponding to the next phoneme of the phoneme in the text data, the third time period of the previous phoneme and the first time period of the current phoneme are combined to transition from the key frame lip shape of the previous phoneme to the key frame lip shape of the current phoneme, and the third time period of the current phoneme and the first time period of the next phoneme are combined to transition from the key frame lip shape of the current phoneme to the key frame lip shape of the next phoneme.

[0090] Correspondingly, step 207 determines the lip shape of the first time period specifically including: determining the interpolation period between the start time of the third time period of the previous phoneme and the start time of the second time period of the phoneme; obtaining the interpolated lip shape data of the key frame lip shape corresponding to the previous phoneme and the key frame lip shape of the phoneme in the interpolation period obtained according to the target interpolation algorithm, including the lip shape of the first time period.

[0091] Specifically, in one example, since the third time period of the previous phoneme and the first time period of the current phoneme are merged into an interpolation time period, after obtaining the interpolation lip shape data of the interpolation time period, the interpolation lip shape data is divided according to the time length ratio of the third time period of the previous phoneme and the first time period of the current phoneme, as the lip shape data of the third time period of the previous phoneme and the lip shape data of the first time period of the current phoneme.

[0092] Similarly, step 207 determines the lip shape of the third time period, which may specifically include determining the interpolation period between the end time of the second time period of the phoneme and the end time of the first time period of the next phoneme; obtaining the interpolated lip shape data of the key frame lip shape corresponding to the phoneme and the key frame lip shape of the next phoneme in the interpolation period obtained according to the target interpolation algorithm, including the lip shape of the third time period.

[0093] In another case, when the digital human is reading text data, there will still be pauses between some text units. During the pauses, the digital human is silent. In this case, if the digital human is still emitting interpolated lip shape data from the key frame lip shape of the previous phoneme to the key frame lip shape of the next phoneme, the digital human's lip shape will change less, which is obviously unnatural.

[0094] Therefore, in the case where the interval between two adjacent phonemes in the text data is long, a key frame of closed lip shape can be inserted. In other words, for a first phoneme and a second phoneme adjacent to each other in the text data, if the time interval between the end time of the broadcast time period of the first phoneme and the start time of the broadcast time period of the second phoneme is greater than a preset time threshold, a key frame corresponding to closed lip shape is inserted between the end time and the start time.

[0095] Among them, the key frame corresponding to the closed lip shape can be inserted in the middle position between the end time and the start time, so that the closed lip shape can be more natural. The key frame corresponding to the inserted closed lip shape can be one frame or multiple frames, or the number of key frames to be inserted can be determined based on the size of the time interval between the above-mentioned end time and the start time. When the time interval between the two is greater than the preset time threshold, the number of inserted closed lip shape key frames is positively correlated with the time interval. Of course, the above examples do not represent limitations on this specification.

[0096] This can avoid the problem of the lip shape changing too smoothly, resulting in a smaller visual range of lip shape changes.

[0097] In addition to the closed lip shape in the above cases, when the digital person pronounces the first sound or the last sound of the text data, the lip shape of the previous key frame or the lip shape of the next key frame may also be a closed lip shape.

[0098] In the case where the lip shape of the previous key frame or the lip shape of the next key frame is a closed lip shape, the lip shape of the first time period or the third time period may be acquired according to the following method.

[0099] When the lip shape of the previous key frame is a closed lip shape, determining the lip shape of the first time period may include: determining the interpolation period between the key frame moment corresponding to the closed lip shape and the start moment of the second time period of the phoneme; obtaining the interpolated lip shape data of the closed lip shape and the key frame lip shape of the phoneme obtained according to the target interpolation algorithm in the interpolation period, including the lip shape of the first time period.

[0100] When the lip shape of the next key frame is a closed lip shape, the method for determining the lip shape of the third time period is similar to the above-mentioned method for determining the lip shape of the first time period, and will not be repeated here.

[0101] The above respectively describes the implementation of step 207 when the previous key frame lip shape is the key frame lip shape or closed lip shape corresponding to the previous phoneme. In addition, for any phoneme, its previous key frame lip shape and the next key frame lip shape can be any combination of the key frame lip shape and closed lip shape of the phoneme, for example, the previous key frame lip shape is the key frame lip shape of the previous phoneme, and the next key frame lip shape is the key frame lip shape of the next phoneme; for another example, the previous key frame lip shape and the next key frame lip shape are both closed lip shapes; for another example, the previous key frame lip shape is the key frame lip shape of the previous phoneme, and the next key frame lip shape is closed lip shape; for example, the previous key frame lip shape is closed lip shape, and the next key frame lip shape is the key frame lip shape of the next phoneme.

[0102] In addition, the target interpolation algorithm used for the interpolation mentioned in step 207 may be a second-order interpolation algorithm and / or a Gaussian smoothing algorithm with a coefficient less than a preset coefficient threshold (hereinafter referred to as a Gaussian smoothing algorithm with a smaller coefficient). In other words, the above interpolation algorithm may be a second-order interpolation algorithm plus a Gaussian smoothing algorithm with a smaller coefficient, or a second-order interpolation algorithm plus other smoothing algorithms, or other interpolation algorithms plus a Gaussian smoothing algorithm with a smaller coefficient. The above processing can ensure that the interpolation result does not affect the overall opening and closing amplitude of the lip shape, making the overall visual effect of the lip shape more natural, especially when the lip shape of the previous key frame or the lip shape of the next key frame is a closed lip shape, these two interpolation algorithms will not erase the closed lip shape.

[0103] like Figure 3 As shown, Figure 3 The horizontal axis of the two figures represents time, and the vertical axis represents the overall degree of lip opening and closing. Figure 3 (a) is the lip shape after linear interpolation and Gaussian smoothing with a large coefficient. Figure 3 (b) is the lip shape after using the second-order interpolation and Gaussian smoothing algorithm with a small coefficient. Figure 3 It can be seen that compared with the conventional linear interpolation and Gaussian smoothing algorithm with a larger coefficient, the overall change of the lip shape after processing with the second-order interpolation and Gaussian smoothing algorithm with a smaller coefficient is larger, and the closed lip shape in the middle will not be erased, ensuring that the overall opening and closing range of the lip shape will not be too small, making the lip shape change more natural.

[0104] The lip shapes of the first time period and the third time period obtained in step 207 may be generated in real time during processing.

[0105] In addition, in order to improve processing efficiency, the lip shapes of the first time period and the third time period may also be obtained from pre-cached lip shape interpolation data.

[0106] Specifically, the target buffer area stores lip shape interpolation data of key frame lip shape combinations corresponding to various phoneme combinations in multiple interpolation time periods; the lip shapes of the first time period and the lip shapes of the third time period are read from the target buffer area according to the corresponding key frame lip shape combinations and interpolation time periods.

[0107] Since the interpolation algorithm has a larger overall time overhead than other steps in the method, the real-time performance of the processing can be further improved by pre-storing the above lip interpolation data in the target cache.

[0108] Among them, for the specific data in the target cache area, since the broadcast time period of each phoneme under normal speaking speed is generally 20ms-50ms, the lip interpolation data of each phoneme combination interpolation period with a duration of 0-20 frames can be cached, which can cope with most situations.

[0109] In addition, in order to reduce the space occupied by the target buffer area, since some phonemes are generally not adjacent, such as two initial consonants in Chinese, the frequency of occurrence of each phoneme combination can be obtained in advance through artificial neural networks or other methods, and the lip interpolation data of phoneme combinations with a frequency greater than a certain threshold in multiple interpolation periods can be cached in the target buffer area, and phoneme combinations with too low frequency will not be cached. This can further reduce the storage space while improving real-time performance.

[0110] After executing step 207, the lip shape sequence obtained after determining the lip shape of each phoneme in the broadcasting time period can be smoothed by using a first-order Gaussian filter, or other smoothing algorithms.

[0111] After smoothing, the overall lip shape changes can be made more natural and realistic, improving the display effect of digital humans.

[0112] Compared with the speech-driven method in the related art, the above method, first, only needs to make a phoneme-lip shape mapping table, and does not need to obtain a large amount of high-quality audio-lip shape alignment data, and the cost is low. Second, compared with the encoder-decoder model trained based on laboratory data, the speech recognition result of text data is less affected by noise, the output lip shape is more stable, and the output lip shape is more interpretable. Third, for digital human models with different driving standards, there is no need to train encoder-decoder models for each driving standard separately. It is only necessary to obtain the phoneme-lip shape mapping table under different driving standards based on a certain driving standard through low-cost methods such as dimensionality increase or dimensionality reduction, which further reduces the cost. Fourth, in view of the problem of poor real-time performance caused by the high time-consuming autoregressive inference in the speech-driven method, the overall efficiency of determining the lip shape by searching the phoneme-lip shape mapping table is higher, and the lip shape interpolation data pre-cached in the above target buffer area can also further improve the processing efficiency and achieve the effect of real-time driving.

[0113] In addition, compared with the phoneme-driven method in the related art, the method of this specification divides the broadcast time period of each phoneme into three segments, performs interpolation processing on different segments, avoids sudden changes in lip shape, and makes the lip shape more natural and realistic.

[0114] Next, a lip shape determination method shown in this specification will be described in conjunction with a specific embodiment. In this embodiment, the lip shape is a lip shape driving parameter, and the text data is Chinese.

[0115] like Figure 4 As shown, this embodiment mainly includes the following steps:

[0116] First, the input text data and the start and end timestamps of each word in the text data are converted into initial and final phonemes and their corresponding start and end timestamps.

[0117] like Figure 4 As shown, this conversion can be to convert each character into pinyin first, and then further split the pinyin into initial consonants and final vowels. Here, the text data is taken as the "virtual digital person", and the start and end timestamps of the virtual digital person as a whole are 0-0.97s. According to the pinyin library, the pinyin of the "virtual digital person" can be determined as "xu", "ni", "shu", "zi" and "ren", and the above pinyin can be further split into "x", "u", "n", "i", "sh", "u", "zi", "r" and "en" phonemes according to initial consonants, final vowels and overall syllables.

[0118] Second, the lip shape driving parameters corresponding to each phoneme can be found through a predefined phoneme-lip shape mapping table. The lip shape driving parameters corresponding to each phoneme here are the key frame lip shapes mentioned above.

[0119] The phoneme-lip shape mapping table stores the most reasonable lip shape driving parameters for each phoneme. Figure 4 As shown, by looking up the phoneme-lip shape mapping table, the lip shape driving parameters of x and the lip shape driving parameters of u can be determined.

[0120] There are two common scenarios for obtaining the phoneme-lip shape mapping table: one is a custom digital human with a predefined phoneme-lip shape controller during modeling, and the other is a general digital human that uses a general driver standard (for example, ARKit52 standard) and does not have a specially preset phoneme-lip shape controller.

[0121] For customized 3D digital humans with predefined controllers, their predefined controllers usually cover all initials, vowels, finals and some English phonetic symbols, so the driving parameters of most phonemes can be obtained directly. For complex finals such as an / ai / ing and some phonetic symbols, the lip shape driving parameters of these phonemes can be obtained by combining them based on the controllability of known phonemes through expert experience.

[0122] For digital humans with universal facial driving standards, since there is no preset controller for specific phonemes, it is necessary to use a motion capture tool corresponding to the driving standard (such as Livelink motion capture software corresponding to the ARKit52 driving standard) to collect facial driving data of professional motion capture actors when demonstrating different phonemes, so as to obtain the lip shape driving parameters of each phoneme. Figure 5 As shown, Figure 5 The left picture shows the lip shape of the motion capture actor during the demonstration. The effect of driving the digital human based on the lip shape driving parameters determined by the lip shape is shown below. Figure 5 As shown in the figure on the right.

[0123] Third, fill in the lip interpolation data through a three-segment interpolation algorithm.

[0124] In the phoneme-lip shape mapping table, only the lip shape driving parameters corresponding to one frame of each phoneme are saved. In actual applications, if the lip shape is opened for only one frame, the time is too short and the amplitude of the lip shape will appear very small to the user visually.

[0125] In order to solve the above problem, a three-segment interpolation method is used to obtain the interpolation sequence between every two lip shape key frames. Specifically, the broadcast time period of each phoneme is evenly divided into three segments. The first time period is used for the transition from the previous key frame lip shape to the current phoneme key frame lip shape, the second time period is used to maintain the current phoneme key frame lip shape, and the third time period is used for the transition from the current phoneme key frame lip shape to the next key frame lip shape.

[0126] like Figure 4As shown, x can be used as a key frame, u can be used as a key frame, and interpolation transition can be performed between the two key frames. It should be noted that for the convenience of explanation, Figure 4 In the example, the second segment of x and u occupies only one frame, and the third segment of x and the first segment of u occupies one frame together. However, in actual application, the key frame lip shape of x and u may be maintained for more than one frame, and the interpolation transition between the two key frame lip shapes may also occupy more than one frame.

[0127] For the specific three-segment interpolation method, such as Figure 6 As shown, for phoneme x, the first time period is the transition frame sequence from closed lip shape (previous key frame lip shape) to x key frame lip shape, the second time period is the key frame lip shape holding sequence of phoneme x, and the third time period is the transition sequence from phoneme x key frame lip shape to phoneme u key frame lip shape. In addition, since the first time period of phoneme u is also the transition sequence from phoneme x key frame lip shape to phoneme u key frame lip shape, the first time period of phoneme u and the third time period of phoneme x together serve as the transition sequence from phoneme x key frame lip shape to phoneme u key frame lip shape.

[0128] In addition, considering the transition between phonemes, if the interval between the broadcasting time periods of two phonemes is too long, the lip shape will be too smooth, resulting in a smaller visual change in the lip shape. Figure 6 The first segment of phoneme u and the third segment of phoneme x serve as the transition sequence from the key frame lip shape of phoneme x to the key frame lip shape of phoneme u. If there is a long time interval between the third segment of x and the first segment of u, the transition sequence from the key frame lip shape of phoneme x to the key frame lip shape of phoneme u will be too smooth and unnatural. Therefore, if the time interval between the phoneme broadcast time periods is greater than the preset threshold of 100ms, a key frame of closed lip shape will be inserted in the middle.

[0129] In addition, in order to further improve the processing efficiency, the lip shape interpolation sequence can also be pre-cached. The specific caching method and interpolation algorithm are described in detail above and will not be repeated here.

[0130] Fourth, the entire lip shape sequence is smoothed by a first-order Gaussian filter to further improve the visual naturalness and smoothness of the lip shape.

[0131] Figure 4 The three vectors finally obtained in are the lip driving parameters of the three interpolation frames between x, u and xu in the above processing process.

[0132] Corresponding to the embodiments of the aforementioned method, this specification also provides embodiments of a device and a terminal to which it is applied.

[0133] like Figure 7 As shown, Figure 7 is a block diagram of a lip shape determination device according to an exemplary embodiment of the present specification, the device comprising:

[0134] The time period determination module 710 is used to obtain the text data to be broadcasted by the digital human, and determine the broadcasting time period of the phoneme corresponding to each text unit in the text data; the text unit is a character and / or a word;

[0135] A time period division module 720, for dividing, for each phoneme of the text data, a broadcast time period of the phoneme into a first time period, a second time period including a key frame, and a third time period;

[0136] A key frame lip shape determination module 730 is used to determine the key frame lip shape corresponding to each phoneme of the text data according to a preset phoneme-lip shape mapping table;

[0137] The lip shape determination module 740 is used to determine the lip shape of the first time period for each phoneme of the text data based on the interpolation of the previous key frame lip shape and the key frame lip shape of the phoneme, set the lip shape of the second time period to maintain the key frame lip shape, and determine the lip shape of the third time period based on the interpolation of the key frame lip shape of the phoneme and the next key frame lip shape.

[0138] In an optional embodiment, the time period determination module 710 is specifically used to: perform speech recognition on the target audio to obtain the text data and the start and end timestamps corresponding to each text unit in the text data; determine the phonemes corresponding to each text unit in the text data; and divide the time period corresponding to the start and end timestamps of each text unit into broadcasting time periods of multiple phonemes corresponding to the text unit according to a preset division rule.

[0139] In an optional embodiment, the digital human is a digital human model customized for a specific image, and the digital human model corresponds to the lip shape driving parameters of each phoneme in the pre-customized first phoneme set; the set range of the preset phoneme set corresponding to the phoneme-lip shape mapping table is larger than the first phoneme set. The above-mentioned device also includes a first mapping table acquisition module (not shown in the figure), which is used to: set the lip shape driving parameters corresponding to the intersection phonemes of the first phoneme set and the preset phoneme set as the lip shape data in the phoneme-lip shape mapping table; for the target phoneme in the preset phoneme set that does not belong to the intersection phoneme, decompose it into a combination of multiple phonemes in the first phoneme set, and set the combination of the lip shape driving parameters of each of the multiple phonemes as the lip shape data of the target phoneme in the phoneme-lip shape mapping table.

[0140] In an optional embodiment, the above-mentioned device also includes a second mapping table acquisition module (not shown in the figure), which is used to: obtain the lip shape driving parameters corresponding to each phoneme in the preset phoneme set through motion capture, so as to generate the phoneme-lip shape mapping table.

[0141] In an optional embodiment, the previous key frame lip shape is the key frame lip shape corresponding to the previous phoneme of the phoneme in the text data, and the next key frame lip shape is the key frame lip shape corresponding to the next phoneme of the phoneme in the text data.

[0142] In an optional embodiment, when the previous key frame lip shape is the key frame lip shape corresponding to the previous phoneme of the phoneme in the text data, the lip shape determination module 740 is specifically used to: determine the interpolation period between the start time of the third time period of the previous phoneme and the start time of the second time period of the phoneme; obtain the key frame lip shape corresponding to the previous phoneme obtained according to the target interpolation algorithm and the interpolated lip shape data of the key frame lip shape of the phoneme in the interpolation period, including the lip shape of the first time period.

[0143] In an optional embodiment, the above-mentioned device also includes a key frame insertion module (not shown in the figure), which is used to: for a first phoneme and a second phoneme adjacent to each other in the text data, if the time interval between the end time of the broadcast time period of the first phoneme and the start time of the broadcast time period of the second phoneme is greater than a preset time threshold, insert a key frame corresponding to the closed lip shape between the above-mentioned end time and start time.

[0144] In an optional embodiment, the previous key frame lip shape or the next key frame lip shape is a closed lip shape.

[0145] In an optional embodiment, the previous key frame lip shape is a closed lip shape; the lip shape determination module 740 is specifically used to: determine the interpolation period between the key frame moment corresponding to the closed lip shape and the start moment of the second time period of the phoneme; obtain the interpolated lip shape data of the closed lip shape and the key frame lip shape of the phoneme obtained according to the target interpolation algorithm in the interpolation period, including the lip shape of the first time period.

[0146] In an optional embodiment, the target interpolation algorithm is a second-order interpolation algorithm and / or a Gaussian smoothing algorithm whose coefficients are less than a preset coefficient threshold.

[0147] In an optional embodiment, the target buffer area stores lip shape interpolation data of key frame lip shape combinations corresponding to various phoneme combinations in multiple interpolation time periods; the lip shapes of the first time period and the lip shapes of the third time period are read from the target buffer area according to the corresponding key frame lip shape combinations and interpolation time periods.

[0148] In an optional embodiment, the above device further includes a smoothing processing module (not shown in the figure) for: after determining the lip shape of each phoneme during the broadcasting time period, smoothing the lip shape sequence obtained thereby.

[0149] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0150] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0151] like Figure 8 As shown, Figure 8 A hardware structure diagram of a computer device in which the lip shape determination device of the embodiment is located is shown, and the device may include: a processor 1010, a memory 1020 for storing processor executable instructions, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.

[0152] The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits, etc. The processor implements the above-mentioned lip shape determination method by running the executable instructions.

[0153] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant executable instructions are stored in the memory 1020.

[0154] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0155] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0156] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0157] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0158] The embodiments of the present specification also provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned lip shape determination method is implemented.

[0159] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0160] The present specification also provides a computer program product, including computer program instructions, which implement the above-mentioned lip shape determination method when executed by a processor.

[0161] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0162] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0163] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

Claims

1. A method for determining lip shape, the method comprising: Acquire text data to be broadcasted by the digital human, and determine the broadcasting time period of the phoneme corresponding to each text unit in the text data; The text unit is a character and / or word; For each phoneme of the text data, dividing the broadcasting time period of the phoneme into a first time period, a second time period including a key frame, and a third time period; Determine the key frame lip shape corresponding to each phoneme of the text data according to a preset phoneme-lip shape mapping table; For each phoneme of the text data, the lip shape of the first time period is determined based on the interpolation of the lip shape of the previous key frame and the key frame lip shape of the phoneme, the lip shape of the second time period is set to maintain the key frame lip shape, and the lip shape of the third time period is determined based on the interpolation of the key frame lip shape of the phoneme and the next key frame lip shape.

2. The method according to claim 1, wherein: The step of obtaining text data to be broadcasted by the digital human and determining the broadcasting time period of the phoneme corresponding to each word in the text data includes: Performing speech recognition on the target audio to obtain the text data and the start and end timestamps corresponding to each text unit in the text data; Determining the phoneme corresponding to each text unit in the text data; According to a preset division rule, the time period corresponding to the start and end timestamps of each text unit is divided into the broadcasting time periods of the multiple phonemes corresponding to the text unit.

3. The method according to claim 1, wherein: The digital human corresponds to a digital human model customized for a specific image, and the digital human model corresponds to lip shape driving parameters of each phoneme in a pre-customized first phoneme set; the set range of the preset phoneme set corresponding to the phoneme-lip shape mapping table is larger than the first phoneme set; the phoneme-lip shape mapping table is obtained by: Setting the lip shape driving parameters corresponding to the intersection phonemes of the first phoneme set and the preset phoneme set as the lip shape data in the phoneme-lip shape mapping table; For the target phoneme in the preset phoneme set that does not belong to the intersection phoneme, it is decomposed into a combination of multiple phonemes in the first phoneme set, and the combination of the lip shape driving parameters of each of the multiple phonemes is set as the lip shape data of the target phoneme in the phoneme-lip shape mapping table.

4. The method according to claim 1, wherein: The phoneme-lip shape mapping table is obtained by: The lip shape driving parameters corresponding to each phoneme in the preset phoneme set are obtained by motion capture, so as to generate the phoneme-lip shape mapping table.

5. According to the method of claim 1, the previous key frame lip shape is the key frame lip shape corresponding to the previous phoneme of the phoneme in the text data, and the next key frame lip shape is the key frame lip shape corresponding to the next phoneme of the phoneme in the text data.

6. The method according to claim 5, wherein: The determining the lip shape in the first time period includes: Determine an interpolation period between the start time of the third time period of the previous phoneme and the start time of the second time period of the phoneme; The key frame lip shape corresponding to the previous phoneme obtained according to the target interpolation algorithm and the interpolated lip shape data of the key frame lip shape of the phoneme in the interpolation period are obtained, including the lip shape in the first time period.

7. The method according to claim 1, further comprising: For the adjacent first phoneme and second phoneme in the text data, if the time interval between the end time of the broadcasting time period of the first phoneme and the start time of the broadcasting time period of the second phoneme is greater than a preset time threshold, a key frame corresponding to the closed lip shape is inserted between the above-mentioned end time and start time.

8. The method according to claim 7, wherein: The previous key frame lip shape or the next key frame lip shape is a closed lip shape.

9. The method according to claim 8, wherein the lip shape of the previous key frame is a closed lip shape; and the step of determining the lip shape of the first time period comprises: Determine an interpolation period between a key frame moment corresponding to the closed lip shape and a start moment of a second time period of the phoneme; The interpolated lip shape data of the closed lip shape obtained according to the target interpolation algorithm and the key frame lip shape of the phoneme in the interpolation period are obtained, including the lip shape in the first time period.

10. The method according to claim 6 or 9, wherein: The target interpolation algorithm is a second-order interpolation algorithm and / or a Gaussian smoothing algorithm whose coefficients are less than a preset coefficient threshold.

11. The method according to claim 1, wherein: The target buffer area stores lip shape interpolation data of key frame lip shape combinations corresponding to various phoneme combinations in multiple interpolation time periods; the lip shapes of the first time period and the lip shapes of the third time period are read from the target buffer area according to the corresponding key frame lip shape combinations and interpolation time periods.

12. The method according to claim 1, further comprising: After the lip shape of each phoneme in the broadcasting time period is determined, the lip shape sequence obtained is smoothed.

13. A lip shape determination device, comprising: A time period determination module, used to obtain text data to be broadcasted by the digital human, and determine the broadcasting time period of the phoneme corresponding to each text unit in the text data; The text unit is a character and / or word; A time period division module, for dividing, for each phoneme of the text data, a broadcast time period of the phoneme into a first time period, a second time period including a key frame, and a third time period; A key frame lip shape determination module, used to determine the key frame lip shape corresponding to each phoneme of the text data according to a preset phoneme-lip shape mapping table; The lip shape determination module is used to determine the lip shape of the first time period for each phoneme of the text data based on the interpolation of the lip shape of the previous key frame and the key frame lip shape of the phoneme, set the lip shape of the second time period to maintain the key frame lip shape, and determine the lip shape of the third time period based on the interpolation of the key frame lip shape of the phoneme and the next key frame lip shape.

14. A computer device comprising: processor; a memory for storing processor-executable instructions; The processor implements the lip shape determination method according to any one of claims 1 to 12 by running the executable instructions.

15. A computer-readable storage medium, wherein computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed by a processor, the lip shape determination method according to any one of claims 1 to 12 is implemented.

16. A computer program product, comprising computer program instructions, wherein when the computer program instructions are executed by a processor, the lip shape determination method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Lip language combination method and device, electronic device and storage medium

    CN108831463A

  • Image processing method and device and electronic equipment

    CN111277912A

  • Method and device for determining lip shape of virtual character, equipment and computer storage medium

    CN112131988A

  • Mouth shape animation generation method and system based on text driving

    CN116309984A

  • Method and apparatus for determining shape of lips of virtual character, device and computer storage medium

    US20220084502A1

Cited By

  • Phoneme time axis driven high-definition video mouth shape automatic synthesis method

    CN120640052A

  • A Phoneme Time-Axis Driven Method for Automatic Lip Synthesis in High-Definition Video

    CN120640052B

  • Lip shape data generation method and device, lip shape animation generation method and device, electronic equipment and program product

    CN121545543A