Method for mixed alignment of virtual population type in English and Chinese
By constructing a unified phoneme set and using the Branchformer encoder structure, combined with streaming inference technology, the accuracy and latency issues of lip alignment in mixed Chinese and English were resolved, achieving efficient and accurate lip alignment results.
Patent Information
- Application Number
- CN202311379895.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-10-24
AI Technical Summary
Existing technologies cannot effectively lip-sync for mixed Chinese and English sentences, and existing methods have long alignment delays when the audio file is short or inaccurate alignment when the audio file is long, resulting in a poor user experience.
A unified phoneme set is constructed by combining the Branchformer encoder structure with the cgMLP structure. The phoneme set is fused through cluster analysis, and the lip-syncing of Chinese and English is achieved by using streaming inference technology. Block self-attention and block convolution techniques are used to reduce latency.
It improves the accuracy and fluency of lip-syncing in mixed Chinese and English, reduces the model's storage and computational requirements, enhances the model's generalization ability and robustness, and avoids phoneme conflicts between different languages.
Smart Images

Figure CN117437906B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of artificial intelligence technology, specifically to a method for aligning mixed Chinese and English lip readings in a virtual lip. Background Technology
[0002] Intelligent virtual humans refer to virtual characters with human appearance or features generated through computer technology. They can convey various information to humans in a visual way in different scenarios and fields, or engage in intelligent voice interaction and more complex multimodal interactions with humans. This technology has been widely applied in various application scenarios such as text broadcasting, intelligent customer service, short video generation, e-commerce live streaming, and metaverse, and has broad application prospects. In driving intelligent virtual humans, in addition to artificial intelligence-related technologies such as speech recognition, natural language understanding, speech synthesis, and behavioral emotion reasoning, another very important technology is how to make the lip movements of the virtual human match those of a real human as closely as possible after inputting TTS speech synthesis results or audio data such as real human recordings. Currently, there are some related research results or practical methods that have achieved the task of lip alignment to a certain extent, but some problems still exist to varying degrees, such as:
[0003] The inability to align sentences that combine Chinese and English, a situation that is common in many everyday scenarios, limits the application scope of this type of lip-syncing algorithm. Due to the problem of acoustic models fusing local and global features, existing lip-syncing methods often suffer from incomplete matching between virtual lip movements and audio data, resulting in low lip-sync similarity.
[0004] Existing lip-syncing algorithms often only align lip movements within a certain time frame, failing to achieve streaming lip-syncing. This problem is not noticeable when the audio file is short; however, with longer audio files, the algorithm requires a longer time to complete the alignment, causing users to wait longer for the virtual human's speech feedback, thus significantly reducing the timeliness and smoothness of the user experience.
[0005] A search revealed an invention patent with publication number CN107944542A, which discloses a multimodal interactive output method and system based on virtual humans. By parsing semantic and emotional data from the acquired multimodal data, the virtual human's face can mimic facial movements and emotions based on the parsing results, enhancing the user's visual engagement and presenting a realistic and smooth simulated interactive effect, thus improving the interactive experience. However, the lip-syncing in this method is performed on a word-length basis, without matching at the phoneme level. This leads to significant errors in the matching results; for example, the virtual human's lip movements may have already finished while the audio data is still playing.
[0006] The invention patent with publication number CN110136698B discloses a method, apparatus, device, and computer storage medium for determining lip shapes based on speech. The lip shapes in a lip shape sequence are associated with vectorized representations of speech segments in multiple speech segments, and the lip shape generation model is obtained based on a convolutional neural network. Using this implementation method, the lip shapes of virtual characters can be determined more effectively, making the lip movements of virtual characters more natural; however, it does not consider the duration of each phoneme in the audio and the duration corresponding to each lip shape in the lip shape sequence, which can also lead to significant deviations in the alignment results. Summary of the Invention
[0007] The purpose of this invention is to provide a method for aligning mixed Chinese and English lip readings in a virtual lip shape, so as to solve the problems mentioned in the background art.
[0008] To achieve the above objectives, the present invention provides the following technical solution: a method for aligning virtual lip readings with mixed Chinese and English, comprising the following steps:
[0009] Step 1: Training Unit Selection: Analyze the phoneme sequence from the speech and map it to the corresponding visual sequence. Prepare a batch of standard visuals in advance, and dynamically activate and mix a series of visuals according to the phoneme sequence obtained from the speech analysis. Finally, generate a continuous virtual mouth-shaped animation. In order to achieve Chinese and English mixed alignment, construct a unified phoneme set so that the acoustic model can model the speech of the two languages.
[0010] Step 2, Improved Model Structure: To better balance local and global features in the audio sequence and improve alignment accuracy, a Branchformer encoder structure was adopted. Branchformer has a parallel dual-branch structure, which can extract global and local features in parallel. Branch 1 uses a multi-head self-attention mechanism to extract global features from the input sequence; Branch 2 introduces a cgMLP structure to capture local features in the audio sequence. These two types of features can be combined in different ways in the end.
[0011] Step 3, Streaming Output: When lip-syncing mixed Chinese and English audio, streaming inference technology is used to complete the processing at a speed close to zero latency.
[0012] Compared with existing technologies, the beneficial effects of this invention are as follows: Based on the analysis of visual pixel mapping, this invention employs a clustering analysis and phoneme set fusion method to determine the mixed Chinese and English phoneme set. Phoneme fusion can utilize shared phonemes between different languages, reducing the number of model parameters and complexity, and improving the model's generalization ability and robustness. Phoneme fusion can also reduce the model's storage and computational requirements, improving model efficiency. Simultaneously, by sharing phoneme information from different languages, the amount of data and time required for model training can be reduced. Phoneme fusion can also improve the model's recognition accuracy and robustness. By using a unified phoneme set, phoneme conflicts and confusion between different languages can be avoided, improving the model's ability to distinguish between multiple languages. Attached Figure Description
[0013] Figure 1 This is a diagram illustrating audio phoneme alignment.
[0014] Figure 2 Example of a visual pixel definition;
[0015] Figure 3 A flowchart of the Branchformer encoder;
[0016] Figure 4 This is a diagram of Branchformer streaming processing. Detailed Implementation
[0017] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0018] This invention provides a technical solution: a method for aligning virtual lip readings with mixed Chinese and English, comprising the following steps:
[0019] I. Training Unit Selection
[0020] Phonemes and visomes are two important concepts in phonetics, describing the acoustic and visual features of speech, respectively. A phoneme is the smallest unit of speech defined based on its natural properties; it reflects the acoustic characteristics of speech. Different languages often have different definitions of phoneme sets. A visome is the visual description of a phoneme in spoken language, reflecting the position of facial muscles and lips during pronunciation. There is a certain correspondence between phonemes and visomes, but it is not a one-to-one correspondence. Different phonemes may share the same visome, and the same phoneme may have different visomes in different contexts, such as... Figure 1 As shown.
[0021] To solve the problem of automatically generating virtual lip-sync animation based on speech, a natural idea is to analyze the phoneme sequence from the speech and map it to the corresponding visual pixel sequence. For virtual humans, a batch of standard visual pixels can be pre-made, and a series of visual pixels can be dynamically activated and mixed according to the phoneme sequence obtained from speech analysis, ultimately generating continuous virtual lip-sync animation, such as... Figure 2 As shown.
[0022] Different languages have different phoneme sets. For example, Chinese has two types of phonemes: initials and finals, with tones; while English phonemes consist of vowels and consonants, without tones. To achieve mixed Chinese and English phoneme alignment, a unified phoneme set needs to be constructed so that the acoustic model can model the speech of both languages. This invention, based on the analysis of visual pixel mapping, uses a clustering analysis method to fuse phoneme sets to determine the mixed Chinese and English phoneme set. This method can reduce the size of the phoneme set while preserving the pronunciation features of both languages.
[0023] II. Improved Model Structure
[0024] To better balance local and global features in audio sequences and improve alignment accuracy, this invention employs a Branchformer encoder structure. Branchformer features a parallel dual-branch structure that extracts global and local features in parallel. Branch one utilizes a multi-head self-attention mechanism to extract global features from the input sequence; branch two introduces a cgMLP structure to capture local features in the audio sequence. These two types of features can then be combined in different ways. Branchformer is a more flexible, interpretable, and customizable encoder scheme. It features parallel branches for modeling various range dependencies in end-to-end speech processing; and the number, type, and weight of branches can be adjusted according to different tasks and data to achieve optimal performance and efficiency. Figure 3 As shown.
[0025] III. Streaming Output
[0026] When performing lip-syncing on audio containing mixed Chinese and English, the processing often needs to be completed at near-zero latency, which necessitates the use of streaming inference technology. This invention employs the following steps for streaming inference:
[0027] 1) First, the input speech signal is segmented into multiple chunks and features are extracted.
[0028] 2) Then the features are input into the Branchformer encoder to obtain the encoded representation.
[0029] 3) Use an alignment decoder to greedily decode each chunk to obtain frame-level output.
[0030] 4) Finally, the output of the Alignment Decoder is merged and post-processed to obtain the streaming alignment result.
[0031] During streaming inference, the audio is divided into chunks of a certain size and input into the Branchformer encoder. When implementing streaming inference under the Branchformer architecture, the K and V values of the attention need to be recorded as an attention cache for the next chunk's model inference. Additionally, this invention uses Casual Convolution during streaming processing; therefore, the kernel-size-1 dimension vector of the latent variables needs to be recorded as a cnn cache for use in the next chunk's convolution calculation, as follows: Figure 4 As shown
[0032] This invention also stream-based improves the self-attention and convolutional layers in the Branchformer encoder, using block self-attention and block convolution to reduce latency and memory consumption. Simultaneously, look-ahead self-attention and look-ahead convolution techniques are employed to increase look-ahead information and improve accuracy.
[0033] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for aligning virtual lip prints with mixed Chinese and English text, characterized in that, Includes the following steps: Step 1: Training Unit Selection: Analyze the phoneme sequence from the speech and map it to the corresponding visual sequence. Prepare a batch of standard visuals in advance, and dynamically activate and mix a series of visuals according to the phoneme sequence obtained from the speech analysis. Finally, generate a continuous virtual mouth-shaped animation. In order to achieve Chinese and English mixed alignment, construct a unified phoneme set so that the acoustic model can model the speech of the two languages. Step 2, Improved Model Structure: To better balance local and global features in the audio sequence and improve alignment accuracy, a Branchformer encoder structure was adopted. Branchformer has a parallel dual-branch structure, which can extract global and local features in parallel. Branch 1 uses a multi-head self-attention mechanism to extract global features from the input sequence; Branch 2 introduces a cgMLP structure to capture local features in the audio sequence. These two types of features can be combined in different ways in the end. Step 3, Streaming Output: When lip-syncing mixed Chinese and English audio, streaming inference technology is used to complete the processing at a speed close to zero latency. The process of streaming inference is as follows: S1. First, the input speech signal is segmented into multiple chunks and features are extracted; S2. Then the features are input into the Branchformer encoder to obtain the encoded representation; S3. Use an alignment decoder to perform greedy decoding on each chunk to obtain frame-level output; S4. Finally, the output of the alignment decoder is merged and post-processed to obtain the streaming alignment result. During the streaming inference process, the audio is divided into blocks of a certain size and input into the Branchformer encoder. When implementing streaming inference under the Branchformer architecture, the K and V of the Attention need to be recorded as a cache for the next chunk model inference.
2. The method for virtual lip-syncing with mixed English and Chinese characters according to claim 1, characterized in that: Step one uses a cluster analysis method to fuse phoneme sets to determine the mixed Chinese and English phoneme set.
Citation Information
Patent Citations
Multi-mode interaction output method and system based on virtual human
CN107944542A
Methods, apparatus, devices, and storage media for determining mouth shape
CN110136698B
System and method for animated lip synchronization
CA2959862A1
System and method for aligning virtual population types
CN114171007A
