Controllable output method and device based on autoregressive deep learning speech synthesis

By embedding speech recognition and proofreading modules to proofread the speech of autoregressive deep learning speech synthesis, it solves the problems of missing words, repetitions, and wrong words, achieves natural, smooth, and accurate speech output, and improves the accuracy of speech synthesis. .

CN118506764BActive Publication Date: 2024-10-11CHENGDU SOBEY DIGITAL TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410954812.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-11
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The random sampling strategy introduced in the inference phase of the autoregressive deep learning speech synthesis method leads to missing words, repeated words, and misspoken words, which seriously affects the user experience, and data collection, annotation, and model training are time-consuming.

Method used

By embedding the speech recognition module and the proofreading module, the speech of the autoregressive deep learning speech synthesis is checked, the text to be proofread is extracted, text normalization processing and phoneme extraction are performed, and character matching is performed. If the match is successful, the speech is output, otherwise the speech is regenerated. Implement automated voice proofreading.

Benefits of technology

It effectively improves the problems of missing words, repetitions and wrong words, achieves natural, smooth and accurate phonetic expression, and improves the output accuracy of speech synthesis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506764B_ABST
    Figure CN118506764B_ABST
Patent Text Reader

Abstract

The present invention discloses a controllable output method and device based on autoregressive deep learning speech synthesis, which belongs to the field of natural language processing and deep learning, and includes the steps of: completing speech synthesis of reference text, reference speech and target text based on autoregressive deep learning speech synthesis; extracting text information to be proofread of synthesized speech based on speech recognition; removing all non-text parts in target text and text to be proofread based on proofreading matching, extracting target text phonemes and text to be proofreading phonemes respectively, performing phoneme matching on target text phonemes and text to be proofreading phonemes, and outputting matching results. If the matching result is successful, the speech is output, otherwise the above steps are repeated until the proofreading matching is successful. The present invention can realize automatic proofreading of autoregressive deep learning speech synthesis, improve the problems of missing words, repetition and wrong words in autoregressive deep learning speech synthesis, and improve the stability of autoregressive deep learning speech synthesis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of natural language processing and deep learning technology, and more specifically, to a controllable output method and device based on autoregressive deep learning speech synthesis. Background Art

[0002] The autoregressive deep learning speech synthesis method establishes a mapping relationship between the text input and the Mel spectrum output, and predicts the subsequent speech based on the generated part. This makes the generated speech more natural and coherent in both overall structure and local details, and closer to real human speech. The commonly used autoregressive deep learning speech synthesis model uses random sampling strategies to improve speech diversity during the inference phase. Although the introduction of random sampling strategies makes speech more fluent and natural, it may also aggravate the phenomenon of missing words, repeating words, and saying the wrong words.

[0003] By optimizing the training of the autoregressive deep learning speech synthesis model, the phenomenon of missing words, repetition, and wrong words can be improved, but data collection, annotation, and model training will take a lot of time. By embedding the speech recognition module and the proofreading module to check the speech synthesized by the autoregressive deep learning, the phenomenon of missing words, repetition, and wrong words can be effectively improved without training. Specifically, the reference text, reference speech, and speech corresponding to the target text are synthesized by the autoregressive deep learning speech synthesis method, and the text to be proofread corresponding to the synthesized speech is extracted. The text to be proofread and the target text are respectively subjected to text normalization and phoneme extraction, and then the phonemes of the text to be proofread and the target text are matched by characters. If the match is successful, the speech is output; otherwise, the speech is regenerated and the above steps are repeated. In this way, by embedding the speech recognition module and the proofreading module to detect abnormal speech, and regenerating it after the abnormality is detected, the problems of missing words, repetition, and wrong words in speech synthesis can be improved, and the natural, fluent, and accurate speech expression of text information can be automatically realized. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a controllable output method and device based on autoregressive deep learning speech synthesis, which provides a new solution to improve the problems of missing words, repetitions, and wrong words in autoregressive deep learning speech synthesis.

[0005] The object of the present invention is achieved through the following solutions:

[0006] A controllable output method based on autoregressive deep learning speech synthesis includes the following steps:

[0007] S1: Based on the autoregressive deep learning speech synthesis method, the features of the target text and the reference text are extracted, and the features of the reference audio are extracted. The extracted features are sent to the autoregressive deep learning model for speech synthesis to obtain the synthesized speech.

[0008] S2: Perform speech recognition on the synthesized speech to obtain the text to be proofread corresponding to the synthesized speech;

[0009] S3: Performing text normalization processing on the target text and the text to be proofread to obtain the target text and the text to be proofread containing only pronounced characters, and then obtaining the target text phonemes and the text to be proofread phonemes respectively according to the fixed coding relationship between text and phonemes, and then performing phoneme matching on the target text phonemes and the text to be proofread, and outputting the matching results;

[0010] S4: judging the matching result. If the matching result is successful, there is no missing word, repetition or wrong word problem in the synthesized speech, and the synthesized speech is output; otherwise, returning to step S1 to perform speech synthesis again.

[0011] Further, in step S1, the features of the target text and the reference text are extracted, specifically including the sub-steps: extracting the features of the target text and the reference text using the BERT model, specifically including the sub-steps:

[0012] S21: cutting the text into a number of character units, and converting the character units into one-dimensional character vectors by querying the character vector table;

[0013] S22: extract the text vector and position vector corresponding to each word vector;

[0014] S23: The sum of the word vector, text vector and position vector is input into the Transformer model, and the text feature is output.

[0015] Furthermore, in step S1, the feature extraction of the reference audio specifically includes the sub-steps of: extracting the features of the reference audio using the Huber model, and the Huber model only predicts part of the audio frame during feature extraction, and uses the unmasked part to predict the masked part, so that the model can correctly predict the audio content without seeing the input.

[0016] Further, in step S1, the extracted features are fed into an autoregressive deep learning model for speech synthesis, which specifically includes sub-steps: the autoregressive deep learning model is composed of a Transformer model and a decoding part of a VITS model, and the execution process of speech synthesis specifically includes sub-steps:

[0017] S31: extracting short-time Fourier change features of the reference speech;

[0018] S32: Send the target text features, reference audio features, and reference text features obtained in step S1 to the Transformer model for encoding to obtain semantic features;

[0019] S33: Input the semantic features obtained in step S32 and the short-time Fourier change features in step S31 into the VITS decoding part to obtain synthesized speech.

[0020] Furthermore, the text vector is automatically learned during the model training process, and is used to characterize the global semantic information of the text and is integrated with the semantic information of individual words.

[0021] Furthermore, the position vector encodes the position of the word vector so that words at different positions of the text can express different semantic information.

[0022] Furthermore, the VITS decoding part uses HiFiGAN's vocoder as its core component.

[0023] Furthermore, in step S2, the speech recognition performed on the synthesized speech is specifically based on a speech recognition method, and the speech recognition is performed on the synthesized speech using a Paraformer model.

[0024] Furthermore, in step S3, the text normalization process specifically includes the sub-steps of using regular expressions to match and delete all punctuation marks.

[0025] Furthermore, in step S3, the phoneme matching specifically includes the sub-steps of: checking the elements at the same position of the target text phoneme and the phoneme in the text to be proofread one by one; if the elements at the same position of the target text phoneme and the phoneme in the text to be proofread are completely consistent, the output is successful; otherwise, the output is failed.

[0026] Furthermore, in step S3, the target text phonemes and the to-be-proofread text phonemes are obtained respectively according to the fixed coding relationship between the text and the phonemes, which specifically includes the sub-steps of extracting the Chinese pinyin of the text and extracting the text phonemes in the form of initials, finals and tones.

[0027] Furthermore, in step S4, the matching result is judged. If the matching result is successful, there is no problem of missing words, repetitions, or wrong words in the synthesized speech, and the synthesized speech is output; otherwise, returning to step S1 and re-performing speech synthesis also includes sub-steps: introducing a maximum matching number limit to avoid an algorithm dead loop caused by a continuous matching failure. When the proofreading matching number exceeds the set value, the synthesized speech is directly output.

[0028] A controllable output device based on autoregressive deep learning speech synthesis includes a processor and a memory, wherein a program is stored in the memory. When the program is loaded by the processor, the controllable output method based on autoregressive deep learning speech synthesis as described in any of the above items is executed.

[0029] The beneficial effects of the present invention include:

[0030] In the method of the present invention, first, feature extraction is performed on the reference text, reference speech, and target text respectively, and they are predicted using an autoregressive deep learning model to obtain a synthesized speech. Secondly, speech recognition is performed on the synthesized speech to obtain a text to be proofread. Thirdly, punctuation marks of the target text and the text to be proofread are filtered out through text normalization processing. Next, the target text phonemes and the text to be proofread phonemes are obtained using the fixed coding relationship between text and phonemes. Finally, phoneme matching is performed on the target text phonemes and the text to be proofread. If the phoneme matching is successful, the speech is output, otherwise the above steps are repeated. Based on the above steps. The present invention can effectively improve the accuracy of the output speech, improve the phenomenon of missing words, repetitions, and wrong words in the results of autoregressive deep learning speech synthesis, and obtain natural, fluent, and accurate speech. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0032] Figure 1 It is a flow chart of a controllable output method based on autoregressive deep learning speech synthesis in an embodiment of the present invention;

[0033] Figure 2 This is a schematic diagram of the autoregressive deep learning speech synthesis process in an embodiment of the present invention;

[0034] Figure 3 It is a schematic diagram of the proofreading and matching algorithm flow in the example of the present invention.

[0035] Figure 4 This is a character matching example in the example of the present invention. DETAILED DESCRIPTION

[0036] All features disclosed in all embodiments in this specification, or steps in all methods or processes implicitly disclosed, except for mutually exclusive features and / or steps, can be combined and / or expanded or replaced in any manner.

[0037] The specific implementation process of the present invention is as follows:

[0038] In the inventive concept, the inventor of the present invention believes that the autoregressive deep learning speech synthesis method can generate natural, coherent, and closer to real human speech. However, the random sampling strategy introduced in the inference stage of this type of speech synthesis method aggravates the problems of missing words, repetition, and wrong words, which seriously affects the user experience. In order to solve the above technical problems, the embodiment of the present invention proposes a controllable output scheme based on autoregressive deep learning speech synthesis, synthesizing the reference text, reference speech, and speech corresponding to the target text through the autoregressive deep learning speech synthesis method, extracting the text to be proofread corresponding to the synthesized speech, and performing text normalization processing and phoneme extraction on the text to be proofread and the target text respectively, and then performing character matching on the phonemes of the text to be proofread and the target text. If the match is successful, the speech is output; otherwise, the speech is regenerated and the above steps are repeated. This method can effectively improve the problems of missing words, repetition, and wrong words that are prone to occur in the autoregressive deep learning speech synthesis method, and realize the natural, fluent, and accurate speech expression of text information. Next, its detailed implementation scheme is described.

[0039] Please refer to Figure 1 , Figure 1 A flow chart of a controllable output method based on autoregressive deep learning speech synthesis proposed in an embodiment of the present invention is shown, which specifically includes the following steps:

[0040] S1: Based on the autoregressive deep learning speech synthesis method, the features of the target text and the reference text are extracted, the features of the reference audio are extracted, and the extracted features are sent to the autoregressive deep learning model to obtain the synthesized speech.

[0041] S2: Based on the speech recognition method, perform speech recognition on the synthesized speech to obtain the text to be proofread corresponding to the synthesized speech.

[0042] S3: Based on proofreading matching algorithm, such as Figure 3 As shown, firstly, the target text and the text to be proofread are subjected to text normalization processing to obtain the target text and the text to be proofread containing only the pronounced characters. Then, according to the fixed coding relationship between the text and the phoneme, the target text phonemes and the text to be proofread are obtained respectively. Finally, the target text phonemes and the text to be proofread are subjected to phoneme matching, and the matching results are output.

[0043] S4: judging the matching result obtained in step S3, if the matching result is successful, there is no missing word, repetition, or wrong word problem in the synthesized speech, and the synthesized speech is output; otherwise, returning to step S1 to perform speech synthesis again.

[0044] In the actual application process, in step S1, the BERT (Bidirectional Encoder Representations from Transformers) model is specifically used to extract the target text features. The BERT model can simultaneously consider the context of words and realize bidirectional language representation learning. The specific conception of its feature extraction process is as follows:

[0045] S21: Cut the text into several character units, and convert the character units into one-dimensional character vectors by querying the character vector table.

[0046] S22: Extract the corresponding text vector and position vector of each word vector.

[0047] S23: The sum of the word vector, text vector and position vector is input into the Transformer model, and the text feature is output.

[0048] In actual application, text vectors are automatically learned during model training to characterize the global semantic information of the text and integrate it with the semantic information of individual words.

[0049] In actual application, the position vector encodes the position of the word vector so that words at different positions in the text can express different semantic information.

[0050] In the actual application process, in step S1, the Hubert (Hidden Unit BERT) model is used to extract speech features. The Hubert model is a pre-trained model similar to BERT. First, the model needs to model the unmasked input as a meaningful continuous potential representation, which corresponds to the classic acoustic modeling problem. Secondly, when modeling the masked input, the model needs to capture the long-term temporal relationship between the learned representations. During the training process, in addition to training the correct clustering, the model also trains the consistency of the model representation, which enables the model to model the sequence structure of the input data well.

[0051] In the actual application process, in step S1, the Transformer model and the decoding part of the VITS model are used to form an autoregressive deep learning model. The Transformer model is a deep learning model based on the self-attention mechanism. It abandons the traditional architecture of recurrent neural networks and convolutional neural networks, and captures the dependencies in the input sequence through the self-attention mechanism and position encoding. The Transformer model consists of two parts: an encoder and a decoder, each of which contains multiple stacked attention layers. The encoder is composed of multiple identical layers stacked, and each layer contains two sublayers: a self-attention layer and a feedforward neural network. The self-attention layer allows the model to focus on all other positions in the input sequence when processing a certain position, thereby capturing long-distance dependencies. The feedforward neural network performs a nonlinear transformation on the representation of each position. In addition, residual connections and layer normalization are used between each sublayer to facilitate model training. The decoder is also composed of multiple identical layers stacked, but the structure is slightly different. Each decoder layer contains three sublayers: a self-attention layer, an encoder-decoder attention layer, and a feedforward neural network. The self-attention layer allows the model to focus on the generated output sequence when processing the output of the current position. The encoder-decoder attention layer allows the model to focus on the representation of the encoder output, thereby utilizing the information of the input sequence to generate the output. VITS combines multiple techniques such as variational inference, normalized flow, and adversarial training to achieve highly realistic speech output. The core idea of ​​the VITS model is to connect the acoustic model and vocoder in speech synthesis through latent variables. Unlike traditional spectrum-based methods, the VITS model uses latent variables for random modeling and performs random duration predictions on these latent variables. This design enables the model to generate speech with different tones and rhythms, thereby greatly increasing the diversity of synthesized speech. In this example, based on the above model, the execution process of speech synthesis is further proposed as follows Figure 2 As shown, the steps include:

[0052] S31: Extracting short-time Fourier change features of the reference speech.

[0053] S32: Send the target text features, reference audio features and reference text features obtained in step S1 to the Transformer model for encoding to obtain semantic features.

[0054] S33: Input the semantic features obtained in step S32 and the short-time Fourier change features in step S31 into the VITS decoding part to obtain synthesized speech.

[0055] In actual application, the VITS decoding part uses HiFiGAN's vocoder as its core component. HiFiGAN is a powerful neural network vocoder that can generate high-fidelity speech waveforms while maintaining a high generation speed.

[0056] In the actual application process, the Paraformer model is used to perform speech recognition in step S2 to obtain the text to be proofread. The Paraformer model is a single-round non-autoregressive speech recognition model with high recognition rate and high computational efficiency. Paraformer adopts an innovative predictor design to achieve high-accuracy prediction of the number of target characters and the corresponding acoustic latent variables. It also introduces the browsing language model idea in the field of machine translation, significantly enhances the model's ability to model contextual semantics, and enables Paraformer to have better results in speech recognition tasks. At the same time, the prediction of the Paraformer model at each moment does not depend on the output of the previous moment, which greatly accelerates the reasoning process. This design gives the Paraformer model a significant advantage in scenarios such as real-time speech recognition. In order to predict the number of target characters and extract the acoustic latent variables corresponding to the target characters, the Paraformer model uses a predictor to predict the number of characters and extracts the acoustic latent variables corresponding to the characters through a continuous integral emission mechanism. In order to solve the semantic information loss caused by the conditional independence assumption in the single-round non-autoregressive model, a sampler module based on the browsing language model is designed to enhance the model's modeling of contextual semantics.

[0057] In actual application, in step S3, the text normalization process uses regular expressions to match and delete all punctuation marks.

[0058] In the actual application process, in step S3, the Chinese pinyin of the text is extracted, and the text phonemes are extracted in the form of initial consonants, finals + tones. For example, the phonemes of "good luck" correspond to [h, ao3, y, un4], where the numbers represent tones.

[0059] In the actual application process, in step S3, the phoneme matching checks the elements at the same position of the target text phoneme and the text to be proofread one by one. If the elements at the same position of the target text phoneme and the text to be proofread are exactly the same, the output is successful, otherwise the output is failed. The matching sample is as follows: Figure 4 shown.

[0060] In actual application, in step S4, to avoid algorithm dead loop caused by continuous matching failure, a maximum matching number limit is introduced. In this embodiment, the maximum matching number is set to 5, and when the proofreading matching number exceeds the set value, the synthesized speech will be directly output.

[0061] It should be noted that within the scope of protection defined in the claims of the present invention, the following embodiments can be combined and / or expanded or replaced in any logical way from the above specific implementation methods, such as disclosed technical principles, disclosed technical features or implicitly disclosed technical features.

[0062] Example 1

[0063] A controllable output method based on autoregressive deep learning speech synthesis includes the following steps:

[0064] S1: Based on the autoregressive deep learning speech synthesis method, the features of the target text and the reference text are extracted, and the features of the reference audio are extracted. The extracted features are sent to the autoregressive deep learning model for speech synthesis to obtain the synthesized speech.

[0065] S2: Perform speech recognition on the synthesized speech to obtain the text to be proofread corresponding to the synthesized speech;

[0066] S3: Performing text normalization processing on the target text and the text to be proofread to obtain the target text and the text to be proofread containing only pronounced characters, and then obtaining the target text phonemes and the text to be proofread phonemes respectively according to the fixed coding relationship between text and phonemes, and then performing phoneme matching on the target text phonemes and the text to be proofread, and outputting the matching results;

[0067] S4: judging the matching result. If the matching result is successful, there is no missing word, repetition or wrong word problem in the synthesized speech, and the synthesized speech is output; otherwise, returning to step S1 to perform speech synthesis again.

[0068] Example 2

[0069] On the basis of Example 1, in step S1, the features of the target text and the reference text are extracted, specifically including the sub-steps of: extracting the features of the target text and the reference text using the BERT model, specifically including the sub-steps of:

[0070] S21: cutting the text into a number of character units, and converting the character units into one-dimensional character vectors by querying the character vector table;

[0071] S22: extract the text vector and position vector corresponding to each word vector;

[0072] S23: The sum of the word vector, text vector and position vector is input into the Transformer model, and the text feature is output.

[0073] Example 3

[0074] Based on Example 1, in step S1, the feature extraction of the reference audio specifically includes the sub-steps of: using the Huber model to extract the features of the reference audio, and the Huber model only predicts part of the audio frame during feature extraction, and uses the unmasked part to predict the masked part, so that the model can correctly predict the audio content without seeing the input.

[0075] Example 4

[0076] On the basis of Example 1, in step S1, the extracted features are sent to the autoregressive deep learning model for speech synthesis, which specifically includes the sub-steps: the autoregressive deep learning model is composed of the decoding part of the Transformer model and the VITS model, and the execution process of speech synthesis specifically includes the sub-steps:

[0077] S31: extracting short-time Fourier change features of the reference speech;

[0078] S32: Send the target text features, reference audio features, and reference text features obtained in step S1 to the Transformer model for encoding to obtain semantic features;

[0079] S33: Input the semantic features obtained in step S32 and the short-time Fourier change features in step S31 into the VITS decoding part to obtain synthesized speech.

[0080] Example 5

[0081] Based on Example 2, the text vector is automatically learned during the model training process to characterize the global semantic information of the text and is integrated with the semantic information of individual words.

[0082] Example 6

[0083] On the basis of Example 2, the position vector encodes the position of the word vector so that words at different positions of the text can express different semantic information.

[0084] Example 7

[0085] Based on Example 4, the VITS decoding part uses the HiFiGAN vocoder as its core component.

[0086] Example 8

[0087] On the basis of Example 1, in step S2, the speech recognition of the synthesized speech is specifically based on a speech recognition method, and the speech recognition of the synthesized speech is performed using a Paraformer model.

[0088] Example 9

[0089] Based on Example 1, in step S3, the text normalization process specifically includes the sub-steps of using regular expressions to match and delete all punctuation marks.

[0090] Example 10

[0091] Based on Example 1, in step S3, the phoneme matching specifically includes the sub-steps of: checking the elements at the same position of the target text phoneme and the phoneme in the text to be proofread one by one, if the elements at the same position of the target text phoneme and the phoneme in the text to be proofread are exactly the same, then the output is successful, otherwise the output is failed.

[0092] Embodiment 11

[0093] On the basis of Example 1, in step S3, the target text phonemes and the phonemes of the text to be proofread are obtained respectively according to the fixed coding relationship between the text and the phonemes, which specifically includes the sub-steps of extracting the Chinese pinyin of the text and extracting the text phonemes in the form of initials, finals and tones.

[0094] Example 12

[0095] On the basis of Example 1, in step S4, the matching result is judged. If the matching result is successful, there is no problem of missing words, repetitions, or wrong words in the synthesized speech, and the synthesized speech is output; otherwise, returning to step S1 to re-perform speech synthesis also includes a sub-step: introducing a maximum matching number limit to avoid an algorithm dead loop caused by a continuous matching failure. When the number of proofreading matches exceeds the set value, the synthesized speech is directly output.

[0096] Example 13

[0097] A controllable output device based on autoregressive deep learning speech synthesis includes a processor and a memory, wherein a program is stored in the memory. When the program is loaded by the processor, a controllable output method based on autoregressive deep learning speech synthesis as described in any one of Examples 1 to 12 is executed.

[0098] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, limit the units themselves.

[0099] According to one aspect of an embodiment of the present invention, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the above various optional implementations.

[0100] As another aspect, an embodiment of the present invention further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

Claims

1. A controllable output method based on autoregressive deep learning speech synthesis, characterized in that: The following steps are involved: S1: Based on the autoregressive deep learning speech synthesis method, the features of the target text and the reference text are extracted, and the features of the reference audio are extracted. The extracted features are sent to the autoregressive deep learning model for speech synthesis to obtain the synthesized speech. S2: Perform speech recognition on the synthesized speech to obtain the text to be proofread corresponding to the synthesized speech; S3: Performing text normalization processing on the target text and the text to be proofread to obtain the target text and the text to be proofread containing only pronounced characters, and then obtaining the target text phonemes and the text to be proofread phonemes respectively according to the fixed coding relationship between text and phonemes, and then performing phoneme matching on the target text phonemes and the text to be proofread, and outputting the matching results; S4: judging the matching result. If the matching result is successful, there is no missing word, repetition, or wrong word problem in the synthesized speech, and the synthesized speech is output; Otherwise, return to step S1 and perform speech synthesis again.

2. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S1, the features of the target text and the reference text are extracted, specifically including the sub-steps: extracting the features of the target text and the reference text using the BERT model, specifically including the sub-steps: S21: cutting the text into a number of character units, and converting the character units into one-dimensional character vectors by querying the character vector table; S22: extract the text vector and position vector corresponding to each word vector; S23: The sum of the word vector, text vector and position vector is input into the Transformer model, and the text feature is output.

3. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S1, the feature extraction of the reference audio specifically includes the sub-steps of: using the Huber model to extract the features of the reference audio, and the Huber model only predicts part of the audio frame during feature extraction, and uses the unmasked part to predict the masked part, so that the model can correctly predict the audio content without seeing the input.

4. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S1, the extracted features are sent to the autoregressive deep learning model for speech synthesis, which specifically includes sub-steps: the autoregressive deep learning model is composed of the decoding part of the Transformer model and the VITS model, and the execution process of speech synthesis specifically includes sub-steps: S31: extracting short-time Fourier change features of the reference speech; S32: Send the target text features, reference audio features, and reference text features obtained in step S1 to the Transformer model for encoding to obtain semantic features; S33: Input the semantic features obtained in step S32 and the short-time Fourier change features in step S31 into the VITS decoding part to obtain synthesized speech.

5. The controllable output method based on autoregressive deep learning speech synthesis according to claim 2, characterized in that: The text vector is automatically learned during the model training process, and is used to characterize the global semantic information of the text and is integrated with the semantic information of a single word.

6. The controllable output method based on autoregressive deep learning speech synthesis according to claim 2, characterized in that: The position vector encodes the position of the word vector so that words at different positions in the text can express different semantic information.

7. The controllable output method based on autoregressive deep learning speech synthesis according to claim 4, characterized in that: The VITS decoding part uses HiFiGAN's vocoder as its core component.

8. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S2, the speech recognition performed on the synthesized speech is specifically based on a speech recognition method, and the speech recognition is performed on the synthesized speech using a Paraformer model.

9. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S3, the text normalization process specifically includes the sub-steps of using regular expressions to match and delete all punctuation marks.

10. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S3, the phoneme matching specifically includes the sub-steps of: checking the elements at the same position of the target text phoneme and the to-be-proofread text phoneme one by one, if the elements at the same position of the target text phoneme and the to-be-proofread text phoneme are completely consistent, then the output is successful, otherwise the output is failed.

11. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S3, the target text phonemes and the to-be-proofread text phonemes are obtained respectively according to the fixed coding relationship between the text and the phonemes, which specifically includes the sub-steps of extracting the Chinese pinyin of the text and extracting the text phonemes in the form of initials, finals and tones.

12. The controllable output method based on autoregressive deep learning speech synthesis according to claim 1, characterized in that: In step S4, the matching result is judged. If the matching result is successful, there is no missing word, repetition, or wrong word problem in the synthesized speech, and the synthesized speech is output; Otherwise, returning to step S1 to perform speech synthesis again also includes the sub-steps of introducing a maximum matching number limit to avoid an algorithm dead loop caused by a continuous matching failure, and directly outputting the synthesized speech when the number of proofreading matches exceeds the set value.

13. A controllable output device based on autoregressive deep learning speech synthesis, characterized in that: It comprises a processor and a memory, wherein a program is stored in the memory, and when the program is loaded by the processor, the controllable output method based on autoregressive deep learning speech synthesis as described in any one of claims 1 to 12 is executed.

Citation Information

Patent Citations

  • Multi-language text voice synthesizing method, device, equipment and storage medium

    CN111247581A

  • End-to-end speech synthesis error correction method, system and device

    CN112530405A

  • Speech synthesis method and device, equipment and storage medium

    CN112802444A

  • Text error correction method and device, electronic equipment and readable storage medium

    CN114510927A

  • Speech synthesis method and device, electronic equipment and storage medium

    CN115985291A