Mouth shape generation method, device, equipment and medium

Through the combination of phoneme recognition and mouth shape generation models, more subtle phoneme changes and individual differences are captured, solving the problem of insufficient mouth shape accuracy and naturalness in traditional mouth shape generation methods, and achieving more accurate and natural mouth shapes. generate.

CN118736069APending Publication Date: 2024-10-01ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410751839.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The traditional mouth shape generation method has the problem of poor accuracy in generating mouth shapes because it covers a small range of speech changes, and the alignment effect is not natural enough.

Method used

The target text is converted into the target phoneme sequence through the preset phoneme recognition model, and the preset mouth shape generation model is used to extract the target mouth shape characteristics of the target phoneme sequence, and then the target mouth shape is generated, capturing more subtle phoneme changes and individuals difference.

Benefits of technology

It improves the accuracy of the target mouth shape characteristics, generates more accurate, natural and flexible mouth shapes, and can better cover the individual differences in mouth shape characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736069A_ABST
    Figure CN118736069A_ABST
Patent Text Reader

Abstract

The invention relates to a mouth shape generation method and device, equipment and a medium. The method comprises the following steps: acquiring a target text for synthesizing a mouth shape; converting the target text into a target phoneme sequence through a preset phoneme recognition model; and extracting a target mouth shape feature of the target phoneme sequence through a preset mouth shape generation model, and converting the target mouth shape feature into a target mouth shape. According to the invention, a more accurate, natural and flexible target mouth shape can be generated.
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 lip shape generation method, device, equipment and medium. Background Art

[0002] Lip-sync generation technology can be applied to scenes such as movies, TV shows, animations, games, and virtual characters. The lip-sync generation method generally uses a rule-based approach or uses a preset lip-sync library and speech mapping. Among them, the rule-based approach is based on the knowledge of linguistics and phonetics, and a series of rules are formulated to describe the mapping relationship between speech and lip-sync; however, due to the complexity of speech and individual differences, the rule-based method is often difficult to cover all situations, and the alignment effect is not natural enough. The method of mapping the lip-sync library to speech requires pre-defining a set of lip-sync libraries, and mapping the phonemes in the speech to the models in the lip-sync library by writing scripts; however, this method cannot completely cover all phonemes and accent changes, resulting in inaccurate alignment.

[0003] Therefore, the traditional lip shape generation method has problems such as poor accuracy in generating lip shapes due to its small coverage of speech variation range. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a lip shape generation method, device, equipment and medium.

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

[0006] Obtaining target text for lip synthesis;

[0007] Converting the target text into a target phoneme sequence by using a preset phoneme recognition model;

[0008] The target lip shape features of the target phoneme sequence are extracted through a preset lip shape generation model, and the target lip shape features are converted into a target lip shape.

[0009] According to another aspect of the present disclosure, there is also provided a lip shape generating device, comprising:

[0010] A text acquisition module, used to acquire target text for lip synthesis;

[0011] A phoneme conversion module, used for converting the target text into a target phoneme sequence through a preset phoneme recognition model;

[0012] The lip shape generation module is used to extract the target lip shape features of the target phoneme sequence through a preset lip shape generation model, and convert the target lip shape features into a target lip shape.

[0013] According to another aspect of the present disclosure, an electronic device is provided, the electronic device comprising:

[0014] processor;

[0015] a memory for storing instructions executable by the processor;

[0016] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above method.

[0017] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.

[0018] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0019] The technical solution provided by the disclosed embodiment includes: obtaining a target text for synthesizing lip shapes; converting the target text into a target phoneme sequence through a preset phoneme recognition model; extracting target lip shape features of the target phoneme sequence through a preset lip shape generation model, and converting the target lip shape features into a target lip shape. Compared with the existing methods, this technical solution uses a phoneme recognition model to convert the target text into a target phoneme sequence, which can capture more and more subtle phoneme changes and individual differences; and uses a lip shape generation module to learn the mapping relationship between phonemes and lip shape features, thereby converting the target phoneme sequence into target lip shape features and generating a target lip shape, which can improve the accuracy of the target lip shape features, better cover the lip shape features of individual differences, and thus generate a more accurate, natural, and flexible target lip shape. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 is a flow chart of the lip shape generation method described in an embodiment of the present disclosure;

[0023] Figure 2 A schematic diagram of the lip shape generation process described in an embodiment of the present disclosure;

[0024] Figure 3is a structural block diagram of the lip shape generation device described in an embodiment of the present disclosure;

[0025] Figure 4 It is a schematic diagram of the structure of the electronic device described in the embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0027] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0028] At present, the lip shape generation method that uses a preset lip shape library and speech mapping requires pre-defining a set of lip shape libraries, which contain lip shape models corresponding to common phonemes or syllables. By writing a script, the phonemes in the speech are mapped to the models in the lip shape library. This method cannot completely cover all phoneme and accent changes, resulting in inaccurate alignment. In addition, the rule-based lip shape generation method requires a series of rules to be formulated based on the knowledge of linguistics and phonetics to describe the mapping relationship between speech and lip shape. These rules can determine the changes in lip shape based on the pitch, length, volume and other characteristics of the speech. However, due to the complexity of speech and individual differences, rule-based methods often find it difficult to cover all situations, and the alignment effect may not be natural enough.

[0029] Therefore, the above-mentioned traditional lip shape generation method has the problems of poor accuracy in generating lip shapes due to the small range of voice changes covered, and also has problems such as poor alignment effect. Based on this, the embodiments of the present disclosure provide a lip shape generation method, device, equipment and medium. This solution uses a model to extract the lip shape features corresponding to the phonemes, which can capture more subtle changes and individual differences, and thus generate more accurate lip shapes. For ease of understanding, the embodiments of the present disclosure are described below.

[0030] Figure 1 This is a flow chart of a lip shape generation method provided by an embodiment of the present disclosure. The method can be executed by a lip shape generation device configured in a terminal, and the device can be implemented by software and / or hardware. Figure 1 , the lip shape generation method may include the following steps:

[0031] S102: Obtain target text for lip synthesis.

[0032] Reference Figure 2In this embodiment, the original text for lip synthesis is first obtained. For example, taking the need to drive the virtual image to express a sentence as an example, the original text can be understood as a sentence expressed in text form; the original text can be composed of different languages, such as Chinese, English, French, Russian, etc.

[0033] Specifically, the original text may be input by the user in real time, for example, the original text provided by the user may be obtained through a keyboard or a screen; a pre-set original text may also be obtained from a database; or voice data may be obtained and converted to obtain the original text.

[0034] The original text is then preprocessed to obtain the target text; wherein the preprocessing includes but is not limited to at least one of the following: text segmentation, removal of stop words, stemming and lemmatization. Specifically, text segmentation refers to the text segmentation of the original text to split the original text into independent words or phrases. Stop words refer to certain characters or words that are automatically filtered out before or after processing natural language data (or text) in information retrieval in order to save storage space and improve search efficiency; in specific implementation, stop words in the original text can be removed according to a preset stop word list. The purpose of stemming or lemmatization is to convert words into their basic language form, i.e., stems, without considering the grammar and semantics of the words; for example, "running" can be restored to "run" and "walked" can be restored to "walk". Usually, a stemming algorithm or a stemmer can be used to extract stems from the original text. Stemming or lemmatization helps to reduce the diversity of vocabulary and make the model easier to learn.

[0035] The preprocessed target text will be easier for the model to understand and process, reducing the difficulty of subsequent phoneme recognition.

[0036] S104: Convert the target text into a target phoneme sequence through a preset phoneme recognition model.

[0037] The phoneme recognition model can be trained based on text samples annotated with phoneme sequence samples, combined with Figure 2 , the training process can be referred to as follows.

[0038] A phoneme library including a plurality of first phoneme samples is established; for example, by consulting linguistic materials or existing research, a library including phonemes of various languages, namely a phoneme library, is established, and the phoneme library includes a plurality of first phoneme samples.

[0039] Obtain a text sample, and mark the text sample with a phoneme sequence sample according to the first phoneme sample in the phoneme library. The text sample can be a text that has been preprocessed by text splitting, removing stop words, etc., in order to simplify model training. Mark each character in the text sample with a phoneme according to the first phoneme sample in the phoneme library to obtain a phoneme sequence sample corresponding to the text sample.

[0040] The phoneme recognition model to be trained is trained according to the text sample and its annotated phoneme sequence sample. As an example, the prediction factor sequence of the text sample can be identified by the phoneme recognition model to be trained, and the phoneme recognition model is trained according to the loss function value between the predicted phoneme sequence and the accurate phoneme sequence sample annotated by the text sample. The above training process is performed multiple times until the loss function value between the predicted phoneme sequence and the phoneme sequence sample is less than a preset value or reaches a preset number of training times, and a trained phoneme recognition model is obtained. The phoneme recognition model obtained by the present embodiment after a large amount of data training can accurately convert text into a phoneme sequence.

[0041] The target text is input into the trained phoneme recognition model, and the phoneme recognition model recognizes the target phoneme sequence corresponding to the target text. This embodiment uses the phoneme recognition model to mark the target phoneme sequence on the target text, thereby improving the efficiency and accuracy of the phoneme standard.

[0042] S106: extract target lip shape features of the target phoneme sequence through a preset lip shape generation model, and convert the target lip shape features into a target lip shape.

[0043] The lip shape generation model in this embodiment is used to extract the target lip shape features corresponding to the target phoneme sequence according to the pre-learned mapping relationship between phonemes and lip shape features, and then synthesize the target lip shape features according to the sequence of phonemes in the target phoneme sequence to obtain the target lip shape displayed as a lip shape image sequence.

[0044] like Figure 2 This embodiment provides a method for learning the mapping relationship between phonemes and lip shape features by a lip shape generation model, comprising the following steps (1)-(5):

[0045] (1) Acquire speech data samples annotated with lip shape samples. Specifically, speech data samples can be acquired through a professional speech database or a specific recording device, and accurate lip shape samples can be annotated on the speech data samples, thereby obtaining a large number of speech data samples annotated with lip shape samples. The lip shape samples are, for example, images containing lip shape.

[0046] (2) Extracting lip shape feature samples from the lip shape samples.

[0047] (3) Extracting a second phoneme sample from the speech data sample. In a possible embodiment, the speech data sample may be first converted into a speech text, and then the speech text may be converted into a second phoneme sample through a phoneme recognition model.

[0048] (4) Extracting the predicted lip shape features of the second phoneme sample through the lip shape generation model to be trained.

[0049] (5) According to the loss function value between the predicted lip shape features and the lip shape feature samples, the lip shape generation model is trained through the back propagation algorithm. In specific implementation, the lip shape generation model can use the mean square error loss function to try to minimize the loss function value between the predicted lip shape features and the lip shape feature samples. The loss function value is used to measure the difference between the predicted lip shape features and the lip shape feature samples, and can reflect the degree of closeness between the predicted lip shape features and the real and accurate lip shape feature samples. During the training process, the gradient descent optimization algorithm is used to train the lip shape generation model, and the back propagation algorithm is used to update the parameters of the lip shape generation model to minimize the loss function value. This process usually requires multiple iterations until the lip shape generation model achieves satisfactory performance on the validation set.

[0050] This embodiment uses a supervised learning training method to train the lip generation model to learn the mapping relationship between phonemes and lip shape features.

[0051] The above-mentioned lip generation model can specifically use deep learning models such as Transformer. Using Transformer to process sequence data can capture long-term dependencies in the sequence, which is very useful for mapping tasks.

[0052] After the lip shape generation model is trained, the trained lip shape generation model is used for inference to generate target lip shape features. Specifically, the target text is obtained, the target text is converted into a target phoneme sequence through the phoneme recognition model, the target phoneme sequence is converted into a target lip shape feature according to the mapping relationship between phonemes and lip shape features through the trained lip shape generation model, and the target lip shape feature is converted into a target lip shape; wherein the target lip shape can be displayed in a visual form such as an image or animation.

[0053] According to the above embodiment, another lip shape generation method is provided herein, comprising the following steps.

[0054] S202, obtaining original text for lip synthesis; preprocessing the original text to obtain target text; wherein the preprocessing includes: text segmentation, removal of stop words, stemming and word form restoration.

[0055] S204: Convert the target text into a target phoneme sequence through a preset phoneme recognition model.

[0056] S206: Extract target lip shape features of the target phoneme sequence through a preset lip shape generation model.

[0057] S208: synthesize the target lip shape features into a lip shape image sequence according to the sequence of the phonemes in the target phoneme sequence.

[0058] In specific implementation, computer graphics technology can be used to convert the target lip shape feature corresponding to each phoneme into a specific lip shape image, and then the lip shape images are combined into a lip shape image sequence according to the order of the phonemes in the target phoneme sequence. It can be understood that with the switching and playing of the lip shape images in the lip shape image sequence, a dynamic lip shape change effect can be formed to simulate the lip shape movement of a person when speaking.

[0059] S210, time-aligning the lip-sync image sequence with the dubbing audio data corresponding to the target text to generate a lip-sync animation. The specific implementation of this step can refer to the following steps:

[0060] Acquire dubbing audio data corresponding to the target text; align each phoneme in the target phoneme sequence with the phoneme recognized by the dubbing audio data to obtain an alignment result; determine the playback timestamp of each phoneme in the target phoneme sequence based on the alignment result; drive the lip image sequence according to the playback timestamp of each phoneme in the target phoneme sequence to generate a lip animation.

[0061] In summary, the lip shape generation method provided by the embodiment of the present disclosure includes: obtaining a target text for synthesizing lip shapes; converting the target text into a target phoneme sequence through a preset phoneme recognition model; extracting the target lip shape features of the target phoneme sequence through a preset lip shape generation model, and converting the target lip shape features into the target lip shape. Compared with the existing methods, the present technical solution uses a phoneme recognition model to convert the target text into a target phoneme sequence, which can capture more and more subtle phoneme changes and individual differences; and uses a lip shape generation module to learn the mapping relationship between phonemes and lip shape features, thereby converting the target phoneme sequence into target lip shape features and generating a target lip shape, which can improve the accuracy of the target lip shape features, better cover the lip shape features of individual differences, and thus generate a more accurate, natural and flexible target lip shape.

[0062] In addition, this technical solution uses a trained deep learning model in the process of acquiring phoneme and mouth shape features. This is not limited to a fixed set of training data, nor is it limited to fixed voice data such as phonemes and mouth shapes. It can generate a wider and more detailed mouth shape change. This flexibility enables the solution to adapt to more diverse voice and facial expression needs, and the generated mouth shape is closer to the real human mouth shape, thereby improving the naturalness and realism of the voice animation.

[0063] Figure 3This is a structural block diagram of a lip shape generation device provided in an embodiment of the present disclosure. The device can be used to implement the lip shape generation method provided in the embodiment. The device can be implemented by software and / or hardware. Figure 3 , the lip shape generation device may include the following modules:

[0064] A text acquisition module 310 is used to acquire a target text for lip synthesis;

[0065] A phoneme conversion module 320, configured to convert the target text into a target phoneme sequence through a preset phoneme recognition model;

[0066] The lip shape generation module 330 is used to extract the target lip shape features of the target phoneme sequence through a preset lip shape generation model, and convert the target lip shape features into a target lip shape.

[0067] In one embodiment, the apparatus further comprises a first training module, which is used to:

[0068] establishing a phoneme library including a plurality of first phoneme samples;

[0069] Acquire a text sample, and mark a phoneme sequence sample for the text sample according to the first phoneme sample in the phoneme library;

[0070] The phoneme recognition model to be trained is trained according to the text sample and the annotated phoneme sequence sample.

[0071] In one embodiment, the apparatus further comprises a second training module, which is used to:

[0072] Obtaining a speech data sample annotated with a lip sample;

[0073] Extracting a mouth shape feature sample of the mouth shape sample;

[0074] extracting a second phoneme sample of the speech data sample;

[0075] Extracting predicted lip shape features of the second phoneme sample by using a lip shape generation model to be trained;

[0076] The lip shape generation model is trained according to the loss function value between the predicted lip shape feature and the lip shape feature sample through a back propagation algorithm.

[0077] In one embodiment, the lip shape generation module 330 is specifically used for:

[0078] The target lip shape features are synthesized according to the sequence of each phoneme in the target phoneme sequence to obtain the target lip shape displayed in a lip shape image sequence.

[0079] In one embodiment, the lip shape generation module 330 is further specifically used for:

[0080] Acquire dubbing audio data corresponding to the target text;

[0081] Aligning each phoneme in the target phoneme sequence with the phoneme identified in the dubbing audio data to obtain an alignment result;

[0082] Determine a playback timestamp of each phoneme in the target phoneme sequence based on the alignment result;

[0083] The lip-sync image sequence is driven according to the playback time stamp of each phoneme in the target phoneme sequence to generate a lip-sync animation.

[0084] In one embodiment, the text acquisition module 310 is specifically used for:

[0085] Get the original text for lip synthesis;

[0086] The original text is preprocessed to obtain a target text; wherein the preprocessing includes: text segmentation, stop word removal, stem extraction and word form restoration.

[0087] The implementation principle and technical effects of the device provided in this embodiment are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0088] Figure 4 The structure diagram of an electronic device provided by the embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the electronic device 400 includes one or more processors 401 and a memory 402 .

[0089] The processor 401 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.

[0090] The memory 402 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 401 may run the program instructions to implement the lip shape generation method of the embodiment of the present disclosure described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0091] In one example, the electronic device 400 may further include: an input device 403 and an output device 404, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0092] In addition, the input device 403 may also include, for example, a keyboard, a mouse, and the like.

[0093] The output device 404 can output various information to the outside, including the determined distance information, direction information, etc. The output device 404 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0094] Of course, to simplify, Figure 4 Only some of the components related to the present disclosure in the electronic device 400 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 400 may also include any other appropriate components.

[0095] Furthermore, this embodiment also provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the above-mentioned lip shape generation method.

[0096] The computer program product of a lip shape generation method, device, electronic device and medium provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0097] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0098] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for generating a lip shape, characterized in that: include: Obtaining target text for lip synthesis; Converting the target text into a target phoneme sequence through a preset phoneme recognition model; The target lip shape features of the target phoneme sequence are extracted through a preset lip shape generation model, and the target lip shape features are converted into a target lip shape.

2. The method according to claim 1, characterized in that The method further comprises: establishing a phoneme library including a plurality of first phoneme samples; Acquire a text sample, and mark a phoneme sequence sample for the text sample according to a first phoneme sample in the phoneme library; The phoneme recognition model to be trained is trained according to the text sample and the annotated phoneme sequence sample.

3. The method according to claim 1, characterized in that The method further comprises: Obtaining a speech data sample annotated with a lip sample; Extracting a mouth shape feature sample of the mouth shape sample; extracting a second phoneme sample of the speech data sample; Extracting predicted lip shape features of the second phoneme sample by using a lip shape generation model to be trained; The lip shape generation model is trained according to the loss function value between the predicted lip shape feature and the lip shape feature sample through a back propagation algorithm.

4. The method according to claim 1, characterized in that: The step of converting the target mouth shape feature into a target mouth shape comprises: The target lip shape features are synthesized according to the sequence of each phoneme in the target phoneme sequence to obtain the target lip shape displayed in a lip shape image sequence.

5. The method according to claim 4, characterized in that The method further comprises: Acquire dubbing audio data corresponding to the target text; Aligning each phoneme in the target phoneme sequence with the phoneme identified in the dubbing audio data to obtain an alignment result; Determine a playback timestamp of each phoneme in the target phoneme sequence based on the alignment result; The lip-sync image sequence is driven according to the playback time stamp of each phoneme in the target phoneme sequence to generate a lip-sync animation.

6. The method according to claim 1, characterized in that The step of obtaining a target text for lip synthesis includes: Get the original text for lip synthesis; The original text is preprocessed to obtain a target text; wherein the preprocessing includes: text segmentation, stop word removal, stem extraction and word form restoration.

7. A mouth shape generating device, characterized in that: include: A text acquisition module, used to acquire target text for lip synthesis; A phoneme conversion module, used for converting the target text into a target phoneme sequence through a preset phoneme recognition model; The lip shape generation module is used to extract the target lip shape features of the target phoneme sequence through a preset lip shape generation model, and convert the target lip shape features into a target lip shape.

8. The device according to claim 7, characterized in that The apparatus further comprises a first training module, which is used for: establishing a phoneme library including a plurality of first phoneme samples; Acquire a text sample, and mark a phoneme sequence sample for the text sample according to the first phoneme sample in the phoneme library; The phoneme recognition model to be trained is trained according to the text sample and the annotated phoneme sequence sample.

9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 6.