Mouth shape animation sequence generation method and device

By generating phoneme sequences into visual sequence sequences and then into lip-sync animation sequences, the problem of low synchronization between virtual character lip movements and speech is solved, achieving fast and accurate lip-sync animation generation, applicable to diverse interactive scenarios, and reducing manual labor costs.

CN119048649AActive Publication Date: 2024-11-29DIVINE VISION (SHENZHEN) CULTURE TECH CO LTD

Patent Information

Application Number
CN202410918376.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-29
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

In existing technologies, the synchronization between the lip movements and the spoken words of virtual characters is low and the accuracy is poor. The range of applications is limited, and the labor costs are high and the processing time is long, which cannot meet the needs of different accents and languages.

Method used

The input information is processed to generate a phoneme sequence, a target mapping table is used to determine the visual sequence, and the weights are adjusted according to the visual sequence and target information to generate a lip-sync animation sequence. The animation transition is optimized by combining co-pronunciation rules and smoothing algorithms to achieve accurate synchronization between lip movements and speech.

Benefits of technology

The generated lip-sync animation sequences are suitable for different accents and languages, with high synchronization, good accuracy, fast generation speed, reduced manual costs, and are applicable to diverse interactive scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048649A_ABST
    Figure CN119048649A_ABST
Patent Text Reader

Abstract

The invention relates to a mouth shape animation sequence generation method and device. The method comprises the following steps: processing input information including input audio and / or input text to obtain a phoneme sequence corresponding to the input information; based on the phoneme sequence and the matched target mapping table, determining the options corresponding to the phonemes in the phoneme sequence to form an options sequence; adjusting the weight of each visual element in the visual element sequence according to the visual element sequence and the corresponding target information to form an adjusted visual element sequence; determining a mouth shape animation corresponding to each visual element in the adjusted visual element sequence based on the target mapping table; and generating a mouth shape animation sequence according to the mouth shape animation. The target mapping table matched with the input information is used for achieving generation from the phoneme sequence generated based on the input information to the visual element sequence and then to the mouth shape animation sequence, the input requirement is low, the mouth shape animation sequence is suitable for different accent and languages, the generation speed is high, the time is short, the synchronous matching degree with the audio is good, and the accuracy is high. And the labor cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for generating a lip animation sequence. Background Art

[0002] With the development of industries such as games, the interaction between users and virtual characters is becoming more and more diverse. In scenarios where users can talk to virtual characters, the virtual characters will make corresponding voices based on the user's voice or text input, and the virtual characters will also display corresponding lip shapes. However, in the related art, there are problems of varying degrees between the lip shapes of virtual characters and the voices they make, such as low synchronization and accuracy, limited adaptability, high labor costs, and long processing time. Summary of the invention

[0003] In view of this, the present disclosure proposes a method and device for generating a lip animation sequence.

[0004] According to one aspect of the present disclosure, a method for generating a lip animation sequence is provided, the method comprising:

[0005] Processing input information to obtain a phoneme sequence corresponding to the input information, wherein the input information includes input audio and / or input text;

[0006] Based on the phoneme sequence and the matched target mapping table, determining the visemes corresponding to each phoneme in the phoneme sequence to form a viseme sequence, wherein the target mapping table records a first corresponding relationship, and the first corresponding relationship represents a corresponding relationship between a phoneme and a viseme;

[0007] According to the viseme sequence and the corresponding target information, the weight of each viseme in the viseme sequence is adjusted to form an adjusted viseme sequence, wherein the target information includes a target timestamp, and the target timestamp indicates a start time point and an end time point of each phoneme in the phoneme sequence;

[0008] Determine the lip animation corresponding to each viseme in the adjusted viseme sequence based on the target mapping table, wherein the target mapping table further records a second corresponding relationship, and the second corresponding relationship represents a corresponding relationship between the viseme and the lip animation;

[0009] According to the lip animation, a lip animation sequence corresponding to the input information is generated.

[0010] In a possible implementation, the method further includes:

[0011] Determining corresponding speech features based on the input information;

[0012] Determining a matching target mapping table from a plurality of optional mapping tables according to the speech feature;

[0013] The speech feature includes a language, and the first corresponding relationship and the second corresponding relationship in each of the optional mapping tables match the speech feature corresponding to the optional mapping table.

[0014] In a possible implementation manner, the voice feature further includes at least one of the following: a dialect type, a type of a superimposed object, a gender and an age of the superimposed object, and the superimposed object includes an object that reads the input information aloud.

[0015] In a possible implementation, processing the input information to obtain a phoneme sequence corresponding to the input information includes:

[0016] In the case where the input information includes input audio and input text, converting the input text into a corresponding phoneme sequence,

[0017] Analyzing and processing the input audio using a first preset model to obtain a phoneme probability distribution sequence corresponding to the input audio, and generating a corresponding target timestamp based on the phoneme probability distribution sequence and the phoneme sequence,

[0018] Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio, and the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the input audio.

[0019] In a possible implementation, processing the input information to obtain a phoneme sequence corresponding to the input information includes:

[0020] In the case where the input information includes input audio, the input audio is analyzed and processed using a second preset model to obtain a phoneme probability distribution sequence corresponding to the input audio, and a corresponding phoneme sequence is determined according to the phoneme probability distribution sequence and a corresponding target timestamp is generated.

[0021] Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio, and the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the input audio.

[0022] In a possible implementation, processing the input information to obtain a phoneme sequence corresponding to the input information includes:

[0023] In the case where the input information includes input text, the input text is converted into a corresponding phoneme sequence, and a generated audio corresponding to the input text is generated using a preset audio generation model,

[0024] Analyzing and processing the generated audio using a first preset model to obtain a phoneme probability distribution sequence corresponding to the generated audio, and generating a corresponding target timestamp based on the phoneme probability distribution sequence and the phoneme sequence,

[0025] Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the generated audio, and the target timestamp is used to indicate the starting time point and ending time point of each phoneme in the phoneme sequence in the generated audio.

[0026] In a possible implementation, the target information further includes the volume of each of the phonemes.

[0027] According to the viseme sequence and the corresponding target information, the weight of each viseme in the viseme sequence is adjusted to form an adjusted viseme sequence, including:

[0028] Based on the target information, determining the volume and duration corresponding to each of the visual elements;

[0029] According to the volume and duration corresponding to each of the visual elements, the weight of each of the visual elements in the visual element sequence is adjusted to form an adjusted visual element sequence.

[0030] In a possible implementation, the method further includes:

[0031] The lip animation sequence is superimposed on a preset target object model to generate a target object animation including lip shape changes; wherein the target object includes an object that reads the input information aloud.

[0032] In a possible implementation, the method further includes:

[0033] Performing transition processing on the lip animation in the lip animation sequence;

[0034] The transition process includes at least one of the following:

[0035] adjusting the lip animation in the lip animation sequence according to the corresponding co-articulation rule;

[0036] inserting at least one transitional lip animation between adjacent lip animations;

[0037] A smoothing algorithm is used to adjust the variation range and speed of the lip shape in the lip shape animation sequence.

[0038] According to another aspect of the present disclosure, a lip animation sequence generating device is provided, the device comprising:

[0039] An input processing module, used to process input information to obtain a phoneme sequence corresponding to the input information, wherein the input information includes input audio and / or input text;

[0040] a viseme sequence determination module, configured to determine, based on the phoneme sequence and the matched target mapping table, the viseme corresponding to each phoneme in the phoneme sequence to form a viseme sequence, wherein the target mapping table records a first corresponding relationship, wherein the first corresponding relationship indicates a corresponding relationship between a phoneme and a viseme;

[0041] A sequence adjustment module, configured to adjust the weight of each viseme in the viseme sequence according to the viseme sequence and corresponding target information to form an adjusted viseme sequence, wherein the target information includes a target timestamp, and the target timestamp indicates a start time point and an end time point of each phoneme in the phoneme sequence;

[0042] A lip animation determination module is used to determine the lip animation corresponding to each viseme in the adjusted viseme sequence based on the target mapping table, wherein the target mapping table also records a second corresponding relationship, which represents the corresponding relationship between the viseme and the lip animation.

[0043] A sequence generation module is used to generate a lip animation sequence corresponding to the input information according to the lip animation.

[0044] According to another aspect of the present disclosure, a lip animation sequence generating device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0045] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

[0046] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0047] The disclosed embodiments provide a method and device for generating a lip animation sequence. The lip animation sequence is generated by taking input audio and / or input text as input, thereby reducing the input data requirements of the lip animation sequence. The generation of the phoneme sequence generated based on the input information to the viseme sequence and then to the lip animation sequence is realized by using a target mapping table that matches the input information. The generated lip animation sequence is suitable for speech features such as different accents and languages, and the lip animation sequence is generated quickly and in a short time, with a good degree of synchronization with the speech and high accuracy, and no manual debugging is required, and the labor cost is low.

[0048] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0050] Figure 1 A flowchart of a method for generating a lip animation sequence according to an embodiment of the present disclosure is shown.

[0051] Figure 2 A schematic flow chart of a method for generating a lip animation sequence according to an embodiment of the present disclosure is shown.

[0052] Figure 3 A schematic flow chart of a first input information processing method in a lip animation sequence generation method according to an embodiment of the present disclosure is shown.

[0053] Figure 4 It is a block diagram of a device 1900 for generating a lip animation sequence according to an exemplary embodiment. DETAILED DESCRIPTION

[0054] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0055] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0056] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0057] In the game and other industries, users have an increasing demand for interactive experience with virtual characters. Taking games as an example, players have an increasing demand for interactive experience with characters. Among them, the realism and immersive dialogue experience of NPC (Non-Player Character) have become an important part of improving the quality of games. In the related art, in the production of NPC lip animation, animators manually produce animated lip sequences by feeling the changes in vowels. The production of a complete series takes months or even years, and the process is very complicated. However, the game NPC dialogue task requires not only accurate lip synchronization, but also real-time voice dialogue, so it cannot be processed by manual methods. The continuous development of AI technology has gradually made it used in the game field. Among them, AI lip-driven technology is mainly divided into two categories. One is the method of generating blended shapes (blend shape, bs) or meshes. This method drives the lip shape by generating bs or meshes end-to-end; the other is a phoneme-based method. This method extracts the phoneme sequence in the speech and generates a natural lip sequence in combination with the co-pronunciation law between phonemes.

[0058] For example, JALI facial animation technology uses the phoneme method to drive lip shape. It can create character facial animation by controlling the movement of the jaw and lips. This technology is an animator-centric facial animation production system. Its purpose is to generate high-quality lip shape results through programs and embed them into the existing animation production process to facilitate animators to further manually refine adjustments. However, for a large amount of dialogue content, manual adjustments increase labor costs and are not conducive to automated workflows. This technology mentions the use of the Multiple Feature Alignment (MFA) method to align audio and text and output the duration of the phoneme sequence. However, actual tests have found that the alignment results generated by the MFA method take a long time and are not suitable for real-time lip synchronization scenarios. In addition, the MFA alignment method also performs poorly in speech tests with different accents, cross-languages, and background noise.

[0059] How to provide a lip animation generation method that is suitable for different accents, languages ​​and other speech characteristics, with fast generation speed, short time, high synchronization and accuracy with speech, and low labor cost, is a technical problem that needs to be solved urgently.

[0060] To solve the above technical problems, the embodiments of the present disclosure provide a method and device for generating a lip animation sequence. The lip animation sequence is generated by taking input audio and / or input text as input, which reduces the input data requirements of the lip animation sequence. The generation of the phoneme sequence generated based on the input information to the viseme sequence and then to the lip animation sequence is realized by using a target mapping table that matches the input information. The generated lip animation sequence is suitable for speech features such as different accents and languages, and the lip animation sequence is generated quickly and in a short time, with a good degree of synchronization with the speech and high accuracy, and no manual debugging is required, which has low labor costs.

[0061] like Figure 1 , Figure 2 As shown, the lip animation generation method provided in the embodiment of the present disclosure includes steps S101 to S105.

[0062] In step S101, input information is processed to obtain a phoneme sequence corresponding to the input information, where the input information includes input audio and / or input text.

[0063] In this embodiment, the phoneme sequence includes multiple phonemes, which are the smallest speech units divided according to the natural attributes of speech. They are analyzed according to the pronunciation actions in the syllable, and one action constitutes one phoneme. The phoneme sequence includes multiple phonemes, and the multiple phonemes are arranged in an order corresponding to the input information.

[0064] In this embodiment, after receiving the input information, the input information can be analyzed to obtain the voice features of the input information. The voice features include information representing the characteristics of the voice, such as the language, dialect type, type of superimposed object, gender and age of the superimposed object, etc. The superimposed object includes an object that reads the input information aloud, which can be a cartoon image of a person, an animal, or an inanimate object that can be used as an external broadcast carrier of the input information and can emit corresponding voices. The present disclosure does not limit this. Among them, the language can be determined directly based on the input text, and the dialect type of some languages ​​can be further determined.

[0065] In some embodiments, the voice features may also be determined in combination with the user's input operation, such as determining the type of the superimposed object, the gender and age of the superimposed object according to the user's input.

[0066] In this embodiment, the phonemes of different languages ​​are different. The phonemes of different dialects of the same language may also be different.

[0067] In this embodiment, the processing of the input information in step S101 is different depending on the type of the input information, which will be described below respectively.

[0068] Method 1:

[0069] In the case where the input information includes input audio and input text, step S101 may include: converting the input text into a corresponding phoneme sequence. Analyzing and processing the input audio using a first preset model to obtain a phoneme probability distribution sequence corresponding to the input audio; and generating a corresponding target timestamp based on the phoneme probability distribution sequence and the phoneme sequence, and using the target timestamp as target information. The phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio. The target timestamp is used to indicate the starting time point and the ending time point of each of the phonemes in the phoneme sequence in the input audio.

[0070] In some embodiments, the first preset model may include a pre-trained Wav2Vec 2.0 model.

[0071] For example, if Figure 3 As shown, the input text can be tokenized based on a tokenizer corresponding to the language and dialect type in the speech feature to generate a corresponding phoneme sequence. A tokenizer is an algorithm or system that can convert the input text into a corresponding phoneme sequence and can be implemented based on existing technologies.

[0072] like Figure 3 As shown, the input audio can be analyzed and processed based on the trained first Wav2Vec 2.0 model corresponding to the language and dialect type in the speech features and the CTC (Connectionist Temporal Classification) loss function to obtain the phoneme probability distribution sequence corresponding to the input audio. In some embodiments, the process of generating the phoneme probability distribution sequence may include: performing preprocessing such as denoising and normalization on the input audio to obtain audio data; the first Wav2Vec 2.0 model receives the preprocessed audio data and extracts features from it. These features are usually high-dimensional acoustic features that can capture important information of the audio signal. The first Wav2Vec 2.0 model is trained using the CTC loss function, which allows the model to learn to map the input acoustic features to the output phoneme sequence. The first Wav2Vec 2.0 model forward propagates the features of the input audio to generate a phoneme probability distribution for each time step. This distribution represents the probability that each phoneme appears in the first Wav2Vec 2.0 model at that time step. The first Wav2Vec 2.0 model outputs a sequence of phoneme probability distributions in a continuous time step, where each time step corresponds to a probability vector of a phoneme. The phonemes involved in the phoneme probability distribution may be all the phonemes involved in the language and dialect type.

[0073] like Figure 3As shown, after obtaining the phoneme probability distribution sequence and the phoneme sequence, the CTC decoding algorithm (such as the Viterbi algorithm, etc.) is used to determine the most likely predicted phoneme sequence corresponding to the input audio according to the phoneme probability distribution sequence. A preliminary timestamp estimate is performed on the predicted phoneme sequence to obtain a prediction of a phoneme corresponding to each time step in the input audio. Among them, the preliminary timestamp estimate can be implemented based on existing technologies such as deep learning. Then, the timestamp is further optimized using a connector based on the phoneme sequence generated by the tag generator to determine the start time point and end time point of each phoneme in the input audio, and finally form a target timestamp. Among them, a connector is an algorithm or model used to align the phoneme sequence with the time axis of the audio signal to determine the start and end time points of each phoneme. This process is also called time alignment or phoneme boundary detection.

[0074] Method 2:

[0075] In the case where the input information includes input audio, step S101 may include: analyzing and processing the input audio using a second preset model to obtain a phoneme probability distribution sequence corresponding to the input audio. Determine a corresponding phoneme sequence based on the phoneme probability distribution sequence and generate a corresponding target timestamp and use the target timestamp as target information, wherein the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the input audio. The phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio.

[0076] In some embodiments, the second preset model may include a pre-trained Wav2Vec 2.0 model.

[0077] For example, the input audio can be preprocessed by denoising, normalizing, etc. to obtain audio data; based on the trained second Wav2Vec 2.0 model corresponding to the language and dialect type in the speech features (i.e., the second preset model), the preprocessed audio data is received and features are extracted from it. These features are usually high-dimensional acoustic features that can capture important information of the audio signal. The second Wav2Vec 2.0 model is trained using the CTC loss function, which allows the model to learn to map the input acoustic features to the output phoneme sequence. The second Wav2Vec 2.0 model forward propagates the features of the input audio, generates a phoneme probability distribution for each time step, and finally outputs a phoneme probability distribution sequence, where each time step corresponds to a probability vector of a phoneme. After obtaining the phoneme probability distribution sequence, a CTC decoding algorithm (such as the Viterbi algorithm, etc.) is used to determine the most likely phoneme sequence corresponding to the input audio according to the phoneme probability distribution sequence. The timestamp of the phoneme sequence is estimated to obtain a prediction of a phoneme corresponding to each time step in the input audio, determine the start time point and end time point of each phoneme in the input audio, and finally form a target timestamp.

[0078] The difference between the second method and the first method is that the second method uses the phoneme sequence output by the second prediction model as the phoneme sequence used in other subsequent steps, while the first method uses the phoneme sequence obtained by converting the input text as the phoneme sequence used in other subsequent steps. In addition, the second method directly forms the target timestamp based on the second prediction model; the first method obtains the timestamp estimate based on the first prediction model, and then optimizes the phoneme sequence obtained by converting the input text to obtain the final target timestamp.

[0079] In some embodiments, the first prediction model and the second prediction model may be the same or different, and the present disclosure does not limit this. In the first and second methods, the GPU hardware may be used to implement the reasoning process using the model (the first preset model and the second preset model).

[0080] In Method 1 and Method 2, the trained Wav2Vec 2.0 model is combined with the CTC loss function to extract the timestamps of phonemes, and GPU hardware is used for network inference, which greatly speeds up the inference efficiency of the alignment model (the first preset model and the second preset model), so that the first preset model and the second preset model meet real-time requirements, and ensure high-precision alignment of text and audio, ensuring the precise synchronization of the final generated lip animation sequence with the input audio.

[0081] Moreover, during the training process of the first preset model and the second preset model, audio samples with pronunciation characteristics such as different timbres and tones, as well as different speech features can be used for model training, so that the first preset model and the second preset model can achieve accurate extraction of input audio with different timbres, tones and different speech features, and achieve high support for the model on different audios.

[0082] Method 3:

[0083] In the case where the input information includes input text, step S101 may include: converting the input text into a corresponding phoneme sequence, and generating a generated audio corresponding to the input text using a preset audio generation model. The generated audio is analyzed and processed using a first preset model to obtain a phoneme probability distribution sequence corresponding to the generated audio, and a corresponding target timestamp is generated based on the phoneme probability distribution sequence and the phoneme sequence. The phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the generated audio, and the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the generated audio.

[0084] In step S102, based on the phoneme sequence and the matched target mapping table, the viseme corresponding to each phoneme in the phoneme sequence is determined to form a viseme sequence.

[0085] In this embodiment, viseme is the visual equivalent of phoneme, which is a phoneme presented in a visual way, depicting the mouth posture when pronouncing, that is, the mouth shape.

[0086] In this embodiment, the target mapping table records a first correspondence relationship and a second correspondence relationship, wherein the first correspondence relationship represents the correspondence relationship between phonemes and visemes, and the second correspondence relationship represents the correspondence relationship between visemes and lip animations.

[0087] In this embodiment, before step S102, the method may further include: in the case where a corresponding speech feature is determined based on the input information, determining a matching target mapping table from a plurality of optional mapping tables according to the speech feature. The speech feature includes a language, and the first corresponding relationship and the second corresponding relationship in each of the optional mapping tables match the speech feature corresponding to the optional mapping table.

[0088] In this embodiment, corresponding optional mapping tables may be constructed in advance according to different speech features, so as to facilitate the subsequent matching of a target mapping table from a plurality of optional mapping tables based on the speech features.

[0089] For example, if Figure 3The optional mapping table shown in the figure. The speech features corresponding to the optional mapping table can be Chinese, Mandarin, human face, female, 30-40 years old. For Chinese, the phonemes can be the initials and finals of Pinyin. Based on the actual pronunciation and speech features, the phonemes, visemes and lip shapes (i.e. lip shape animations) can be created as follows: Figure 3 Optional mapping table shown. Based on Figure 3 It can be seen from the optional mapping table that when pronouncing the "b", "m" and "p" phonemes, the visual manifestation of the mouth shape is that the corners of the mouth are pulled outward, the chin is tightened, and the lips are pursed; when pronouncing the "o" and "ao" phonemes, the visual manifestation of the mouth shape is that the corners of the mouth are contracted inward, the chin is opened downward, and the mouth shape is relatively round.

[0090] In this embodiment, after determining the target mapping table that matches the input information, based on the phoneme sequence and the target mapping table, the viseme corresponding to each phoneme can be found based on the first correspondence between the phoneme and the viseme in the target mapping table, and then a viseme sequence can be formed based on each viseme and the order in which each viseme corresponds. The viseme sequence includes multiple visemes and the multiple visemes are arranged in the order corresponding to the input information.

[0091] In step S103, the weight of each viewme in the viewme sequence is adjusted according to the viewme sequence and the corresponding target information to form an adjusted viewme sequence.

[0092] In this embodiment, the target information may also include the volume of each of the phonemes, and the method may also include: when the input information includes input audio, the first preset model or the second preset model is also used to output the volume corresponding to each phoneme in the input audio. When the input information only includes input text, the volume of each phoneme can be generated based on the volume generation strategy. The volume generation strategy can be set based on the emotion, sentence structure, etc. of the sentence in the input text, and the present disclosure does not limit this.

[0093] In this embodiment, step S103 may include: determining the volume and duration corresponding to each of the visemes based on the target information; and adjusting the weight of each of the visemes in the viseme sequence according to the volume and duration corresponding to each of the visemes to form an adjusted viseme sequence. In some embodiments, each viseme in the viseme sequence has a preset weight, and then the weight corresponding to the viseme is adjusted according to the volume and duration corresponding to each viseme, so that after the adjustment, the weight of the viseme with a high volume and a long duration is higher, and the weight of the viseme with a low volume and a short duration is lower.

[0094] In step S104, based on the target mapping table, the lip animation corresponding to each viseme in the adjusted viseme sequence is determined, and the target mapping table also records a second corresponding relationship, which represents the corresponding relationship between the viseme and the lip animation.

[0095] In step S105, a lip animation sequence corresponding to the input information is generated according to the lip animation.

[0096] In this embodiment, based on the adjusted viseme sequence, the target mapping table is searched to determine the corresponding multiple lip animations, and then a lip animation sequence is generated based on the multiple lip animations. In this way, the generated lip animation sequence can be accurately synchronized with the audio.

[0097] In order to make the transition between lip animations in a lip animation sequence smoother and more natural, in a possible implementation, Figure 2 As shown, the method may further include: performing transition processing on the lip animation in the lip animation sequence;

[0098] The transition process includes at least one of the following:

[0099] adjusting the lip animation in the lip animation sequence according to the corresponding co-articulation rule;

[0100] inserting at least one transitional lip animation between adjacent lip animations;

[0101] A smoothing algorithm is used to adjust the variation range and speed of the lip shape in the lip shape animation sequence.

[0102] Among them, corresponding collaborative pronunciation rules can be set in advance according to the characteristics of audio with different speech features to provide corresponding lip shape basis and coordinated transition for different phonemes, so that the transition between lip shape animations in the lip shape animation sequence after transition processing is smoother and more coherent, thereby achieving accurate synchronization of lip shape and speech.

[0103] In this way, abrupt transitions and unnatural lip movements in the lip animation sequence can be eliminated through transition processing, making the generated lip animation sequence smooth and natural.

[0104] In a possible implementation, the method may further include: superimposing the lip animation sequence onto a preset target object model to generate a target object animation including lip shape changes; wherein the target object includes an object that reads the input information aloud.

[0105] In this implementation, the lip animation sequence is superimposed on the preset target object model, and the target object animation can be formed by rendering. In the target object animation, the lip shape of the target object changes according to the lip animation sequence. In this way, the corresponding audio can be played synchronously during the playback of the target object animation, and the lip shape and audio in the target object animation can be accurately matched and played synchronously. It can also achieve accurate and synchronous playback of audio and lip shapes with different voice characteristics, and has a wide range of applications and is applicable to diverse environments.

[0106] The present disclosure also provides a device for generating a lip animation sequence, the device comprising:

[0107] An input processing module, used to process input information to obtain a phoneme sequence corresponding to the input information, wherein the input information includes input audio and / or input text;

[0108] a viseme sequence determination module, configured to determine, based on the phoneme sequence and the matched target mapping table, the viseme corresponding to each phoneme in the phoneme sequence to form a viseme sequence, wherein the target mapping table records a first corresponding relationship, wherein the first corresponding relationship indicates a corresponding relationship between a phoneme and a viseme;

[0109] A sequence adjustment module, configured to adjust the weight of each viseme in the viseme sequence according to the viseme sequence and corresponding target information to form an adjusted viseme sequence, wherein the target information includes a target timestamp, and the target timestamp indicates a start time point and an end time point of each phoneme in the phoneme sequence;

[0110] A lip animation determination module is used to determine the lip animation corresponding to each viseme in the adjusted viseme sequence based on the target mapping table, wherein the target mapping table also records a second corresponding relationship, which represents the corresponding relationship between the viseme and the lip animation.

[0111] A sequence generation module is used to generate a lip animation sequence corresponding to the input information according to the lip animation.

[0112] In a possible implementation, the device may further include:

[0113] A mapping table selection module, configured to determine corresponding speech features based on the input information; and determine a matching target mapping table from a plurality of optional mapping tables according to the speech features;

[0114] The speech feature includes a language, and the first corresponding relationship and the second corresponding relationship in each of the optional mapping tables match the speech feature corresponding to the optional mapping table.

[0115] In a possible implementation manner, the voice feature further includes at least one of the following: a dialect type, a type of a superimposed object, a gender and an age of the superimposed object, and the superimposed object includes an object that reads the input information aloud.

[0116] In a possible implementation, the input processing module includes:

[0117] The first input processing submodule is configured to convert the input text into a corresponding phoneme sequence when the input information includes input audio and input text.

[0118] Analyzing and processing the input audio using a first preset model to obtain a phoneme probability distribution sequence corresponding to the input audio, and generating a corresponding target timestamp based on the phoneme probability distribution sequence and the phoneme sequence,

[0119] Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio, and the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the input audio.

[0120] In a possible implementation, the input processing module includes:

[0121] a second input processing submodule, configured to, when the input information includes input audio, analyze and process the input audio using a second preset model to obtain a phoneme probability distribution sequence corresponding to the input audio, determine a corresponding phoneme sequence according to the phoneme probability distribution sequence, and generate a corresponding target timestamp;

[0122] Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio, and the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the input audio.

[0123] In a possible implementation, the input processing module includes:

[0124] a third input processing submodule, configured to, when the input information includes an input text, convert the input text into a corresponding phoneme sequence, and generate a generated audio corresponding to the input text using a preset audio generation model,

[0125] Analyzing and processing the generated audio using a first preset model to obtain a phoneme probability distribution sequence corresponding to the generated audio, and generating a corresponding target timestamp based on the phoneme probability distribution sequence and the phoneme sequence,

[0126] Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the generated audio, and the target timestamp is used to indicate the starting time point and ending time point of each phoneme in the phoneme sequence in the generated audio.

[0127] In a possible implementation, the target information further includes the volume of each of the phonemes, and the sequence adjustment module includes:

[0128] A volume and duration determination submodule, used to determine the volume and duration corresponding to each of the visual elements based on the target information;

[0129] The adjustment submodule is used to adjust the weight of each of the visual elements in the visual element sequence according to the volume and duration corresponding to each of the visual elements, so as to form an adjusted visual element sequence.

[0130] In a possible implementation manner, the device further includes:

[0131] An animation generation module, used for superimposing the lip animation sequence onto a preset target object model to generate a target object animation including lip shape changes;

[0132] The target object includes an object that reads the input information.

[0133] In a possible implementation manner, the device further includes:

[0134] A transition processing module, used for performing transition processing on the lip animation in the lip animation sequence;

[0135] The transition process includes at least one of the following:

[0136] adjusting the lip animation in the lip animation sequence according to the corresponding co-articulation rule;

[0137] inserting at least one transitional lip animation between adjacent lip animations;

[0138] A smoothing algorithm is used to adjust the variation range and speed of the lip shape in the lip shape animation sequence.

[0139] It should be noted that, although the above embodiments are used as examples to introduce the lip animation sequence generation method and device, those skilled in the art will appreciate that the present disclosure should not be limited thereto. In fact, the user can flexibly set each step and module according to personal preferences and / or actual application scenarios, as long as it complies with the technical solution of the present disclosure.

[0140] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0141] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.

[0142] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.

[0143] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.

[0144] Figure 4 1 is a block diagram of a device 1900 for generating a lip animation sequence according to an exemplary embodiment. For example, the device 1900 may be provided as a server or a terminal device. Figure 4 , the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions, such as an application, that can be executed by the processing component 1922. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0145] The device 1900 may also include a power supply component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input / output interface 1958 (I / O interface). The device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2000. TM , MacOS X TM , Unix TM ,Linux TM , FreeBSD TM or similar.

[0146] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the device 1900 to perform the above method.

[0147] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0148] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0149] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0150] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0151] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0152] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0153] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0154] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0155] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for generating a lip animation sequence, It is characterized in that The method comprises: Processing input information to obtain a phoneme sequence corresponding to the input information, wherein the input information includes input audio and / or input text; Based on the phoneme sequence and the matched target mapping table, determining the visemes corresponding to each phoneme in the phoneme sequence to form a viseme sequence, wherein the target mapping table records a first corresponding relationship, and the first corresponding relationship represents a corresponding relationship between a phoneme and a viseme; According to the viseme sequence and the corresponding target information, the weight of each viseme in the viseme sequence is adjusted to form an adjusted viseme sequence, wherein the target information includes a target timestamp, and the target timestamp indicates a start time point and an end time point of each phoneme in the phoneme sequence; Determine the lip animation corresponding to each viseme in the adjusted viseme sequence based on the target mapping table, wherein the target mapping table further records a second corresponding relationship, and the second corresponding relationship represents a corresponding relationship between the viseme and the lip animation; According to the lip animation, a lip animation sequence corresponding to the input information is generated.

2. The method according to claim 1, It is characterized in that The method further comprises: Determining corresponding speech features based on the input information; Determining a matching target mapping table from a plurality of optional mapping tables according to the speech feature; The speech feature includes a language, and the first corresponding relationship and the second corresponding relationship in each of the optional mapping tables match the speech feature corresponding to the optional mapping table.

3. The method according to claim 2, It is characterized in that The voice feature further includes at least one of the following: a dialect type, a type of a superimposed object, a gender and an age of the superimposed object, and the superimposed object includes an object that reads the input information aloud.

4. The method according to claim 1, It is characterized in that Processing the input information to obtain a phoneme sequence corresponding to the input information includes: In the case where the input information includes input audio and input text, converting the input text into a corresponding phoneme sequence, Analyzing and processing the input audio using a first preset model to obtain a phoneme probability distribution sequence corresponding to the input audio, and generating a corresponding target timestamp based on the phoneme probability distribution sequence and the phoneme sequence, Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio, and the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the input audio.

5. The method according to claim 1, It is characterized in that Processing the input information to obtain a phoneme sequence corresponding to the input information includes: In the case where the input information includes input audio, the input audio is analyzed and processed using a second preset model to obtain a phoneme probability distribution sequence corresponding to the input audio, and a corresponding phoneme sequence is determined according to the phoneme probability distribution sequence and a corresponding target timestamp is generated. Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the input audio, and the target timestamp is used to indicate the starting time point and the ending time point of each phoneme in the phoneme sequence in the input audio.

6. The method according to claim 1, It is characterized in that Processing the input information to obtain a phoneme sequence corresponding to the input information includes: In the case where the input information includes input text, the input text is converted into a corresponding phoneme sequence, and a generated audio corresponding to the input text is generated using a preset audio generation model, Analyzing and processing the generated audio using a first preset model to obtain a phoneme probability distribution sequence corresponding to the generated audio, and generating a corresponding target timestamp based on the phoneme probability distribution sequence and the phoneme sequence, Among them, the phoneme probability distribution sequence is used to indicate the probability vectors of phonemes corresponding to different time steps in the generated audio, and the target timestamp is used to indicate the starting time point and ending time point of each phoneme in the phoneme sequence in the generated audio.

7. The method according to claim 1, It is characterized in that The target information also includes the volume of each of the phonemes. According to the viseme sequence and the corresponding target information, the weight of each viseme in the viseme sequence is adjusted to form an adjusted viseme sequence, including: Based on the target information, determining the volume and duration corresponding to each of the visual elements; According to the volume and duration corresponding to each of the visual elements, the weight of each of the visual elements in the visual element sequence is adjusted to form an adjusted visual element sequence.

8. The method according to claim 1, It is characterized in that The method further comprises: Superimposing the lip shape animation sequence onto a preset target object model to generate a target object animation including lip shape changes; The target object includes an object that reads the input information aloud.

9. The method according to claim 1, It is characterized in that The method further comprises: Performing transition processing on the lip animation in the lip animation sequence; The transition process includes at least one of the following: adjusting the lip animation in the lip animation sequence according to the corresponding co-articulation rule; inserting at least one transitional lip animation between adjacent lip animations; A smoothing algorithm is used to adjust the variation amplitude and speed of the lip shape in the lip shape animation sequence.

10. A lip animation sequence generating device, It is characterized in that The device comprises: An input processing module, used to process input information to obtain a phoneme sequence corresponding to the input information, wherein the input information includes input audio and / or input text; a viseme sequence determination module, configured to determine, based on the phoneme sequence and the matched target mapping table, the viseme corresponding to each phoneme in the phoneme sequence to form a viseme sequence, wherein the target mapping table records a first corresponding relationship, wherein the first corresponding relationship indicates a corresponding relationship between a phoneme and a viseme; A sequence adjustment module, configured to adjust the weight of each viseme in the viseme sequence according to the viseme sequence and corresponding target information to form an adjusted viseme sequence, wherein the target information includes a target timestamp, and the target timestamp indicates a start time point and an end time point of each phoneme in the phoneme sequence; A lip animation determination module is used to determine the lip animation corresponding to each viseme in the adjusted viseme sequence based on the target mapping table, wherein the target mapping table also records a second corresponding relationship, which represents the corresponding relationship between the viseme and the lip animation. A sequence generation module is used to generate a lip animation sequence corresponding to the input information according to the lip animation.

11. A lip animation sequence generating device, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 1 to 9 when executing the instructions stored in the memory.

12. A non-volatile computer-readable storage medium having computer program instructions stored thereon, It is characterized in that When the computer program instructions are executed by a processor, the method according to any one of claims 1 to X is implemented.

Citation Information

Patent Citations

  • Continuous-sign-language-video automatic-translation method based on asymmetric multilayer LSTM

    CN108171198A

  • Method and device for generating animated figure mouth shape

    CN111260761A

  • Animation generation method and device, electronic equipment and storage medium

    CN113539240A

  • Voice instruction recognition method and device, electronic equipment and storage medium

    CN115132196A

  • Mouth shape animation generation method and device, electronic equipment and storage medium

    CN116363268A

Cited By

  • Digital human rendering method and device, storage medium and program product

    CN120766707A