Rhythm annotation method and system
By extracting word-level prosodic expressions from training speech data and performing clustering, the problem of insufficient prosodic representation and difficulty in control in the existing technology is solved, more humane speech generation is achieved, and the naturalness and accuracy of TTS synthesized speech are improved. interactive experience.
Patent Information
- Application Number
- CN202111591322.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-23
AI Technical Summary
The explicit prosodic features in the existing technology cannot fully represent the prosodic space, and the control is cumbersome. The implicit prosodic space is difficult to control, and most of the work is performed at the phoneme level, resulting in the generated prosodic speech being not humane enough.
By extracting word-level prosodic expressions from the training speech data, reconstructing them, and using word-level prosodic expressions for clustering, we obtain unsupervised prosodic annotations for each word, and combine text information for prosody synthesis to achieve more humane speech generation. .
It achieves word-level prosody modeling and control, has diversity, interpretability and good control capabilities, and improves the naturalness and user interaction experience of TTS synthesized speech.
Smart Images

Figure CN114255736B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent speech, and in particular to a prosody annotation method and system. Background Art
[0002] In order to make intelligent voice interaction more humane, rhythm is usually added to the audio used to communicate with users. By adjusting the rhythm, the conversation can be made more rhythmic and the emotion of the language can be expressed.
[0003] Usually, the modeling of the rhythm space can be added to the basic module of TTS (Text To Speech). Work related to rhythm control either uses VAE (Variational Auto-Encoder) to sample rhythm from a latent space, or uses additional parameters to control certain quantities related to rhythm features such as fundamental frequency and energy. In rhythm modeling, most of them aim to improve naturalness and diversity, and most of them use explicit rhythm features. This results in rhythmic speech.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:
[0005] Explicit prosodic features cannot fully represent the prosodic space and are cumbersome to control; implicit prosodic space is even more difficult to control because it is a continuous space and lacks interpretability. In addition, most related work is done at the phoneme level, which is convenient but does not conform to the principles of natural human speech, making the generated prosodic speech less humane. Summary of the invention
[0006] In order to at least solve the problem that the rhythmic speech generated in the prior art is not humane enough.
[0007] In a first aspect, an embodiment of the present invention provides a prosody tagging method, comprising:
[0008] Extracting word-level prosodic expressions from training speech data, and reconstructing the speech using the word-level prosodic expressions to obtain reconstructed speech with word-level prosodic expressions;
[0009] Performing a first clustering on the reconstructed speech according to text information of words;
[0010] An unsupervised second clustering is performed on the results of the first clustering according to the rhythm to obtain an unsupervised rhythm tagging of each word.
[0011] In a second aspect, an embodiment of the present invention provides a text-to-speech method based on prosody annotation, comprising:
[0012] Inputting the text into a text-to-speech model, performing a first clustering based on the text information of the words and a second clustering based on the rhythm on the phoneme sequence determined by the text-to-speech model, and obtaining an unsupervised rhythmic annotation of each word in the text;
[0013] The unsupervised prosodic annotation of each word is at least used to perform prosodic synthesis on the prime sequence to obtain speech with prosody.
[0014] In a third aspect, an embodiment of the present invention provides a prosody annotation system, including:
[0015] A speech reconstruction program module is used to extract word-level prosodic expressions from training speech data, and reconstruct the speech using the word-level prosodic expressions to obtain reconstructed speech with word-level prosodic expressions;
[0016] A clustering program module, used for performing a first clustering on the reconstructed speech according to the text information of the words;
[0017] The rhythm tagging program module is used to perform unsupervised second clustering on the results of the first clustering according to rhythm to obtain unsupervised rhythm tagging of each word.
[0018] In a fourth aspect, an embodiment of the present invention provides a text-to-speech system based on prosody annotation, comprising:
[0019] An unsupervised prosodic tagging program module is used to input a text into a text-to-speech model, perform a first clustering based on the text information of the words and a second clustering based on the prosody on the phoneme sequence determined by the text-to-speech model, and obtain an unsupervised prosodic tagging of each word in the text;
[0020] The speech synthesis program module is used to perform rhythm synthesis on the element sequence by at least using the unsupervised rhythm annotation of each word to obtain speech with rhythm.
[0021] In a fifth aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the rhythm tagging method of any embodiment of the present invention.
[0022] In a sixth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the prosody tagging method of any embodiment of the present invention are implemented.
[0023] The beneficial effects of the embodiments of the present invention are: the prosody modeling and control is performed at the word level, and the words contain rich semantic information, so they can be well associated with the context. In addition, a variety of prosody can be annotated, and the prosody is interpretable, well controlled, and highly scalable, so as to achieve more humanized prosody annotation. The TTS synthesized speech has richer prosody, and the user's interactive experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 is a flow chart of a rhythm marking method provided by an embodiment of the present invention;
[0026] Figure 2 It is a system architecture diagram of a rhythm extraction and annotation system of a rhythm annotation method provided by an embodiment of the present invention;
[0027] Figure 3 is a flowchart of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention;
[0028] Figure 4 It is a structural diagram of a prosody control model in the training and reasoning stages of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention;
[0029] Figure 5 is a schematic diagram of a log-likelihood curve of a leaf of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention;
[0030] Figure 6 is a schematic diagram of a subjective evaluation of the naturalness of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention;
[0031] Figure 7 It is a schematic diagram of synthesized speech with artificially specified prosody of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention;
[0032] Figure 8 It is a schematic diagram of Mel-cepstrum distortion of GT labels and control labels of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention;
[0033] Fig. 9It is a schematic diagram of subjective evaluation of controllability of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention;
[0034] Fig.10 is a structural schematic diagram of a rhythm tagging system provided by an embodiment of the present invention;
[0035] Fig.11 It is a structural schematic diagram of a text-to-speech system based on prosody annotation provided by an embodiment of the present invention;
[0036] Fig.12 A schematic structural diagram of an embodiment of a prosody annotation and an electronic device for converting text to speech based on prosody annotation provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] like Figure 1 FIG. 1 is a flow chart of a prosody tagging method provided by an embodiment of the present invention, comprising the following steps:
[0039] S11: extracting word-level prosodic expressions from training speech data, and reconstructing the speech using the word-level prosodic expressions to obtain reconstructed speech with word-level prosodic expressions;
[0040] S12: performing a first clustering on the reconstructed speech according to text information of words;
[0041] S13: Performing unsupervised second clustering on the results of the first clustering according to rhythm, to obtain unsupervised rhythm labeling of each word.
[0042] In this embodiment, it is found that the word is the basic unit of rhythm, because a word, in the case of different words, has different rhythms. This is used as the basic unit of rhythm for processing. In short, this method is divided into the following stages: Figure 2 As shown in the figure, word-level prosodic embedding extraction and two-stage word-level prosodic tagging are performed. After obtaining the word-level prosodic tagging, TTS training with prosodic tagging can be performed.
[0043] For step S11, Figure 2As shown in (a), the word-level prosodic expression is extracted from the Mel-spectrogram of the training data, and this prosodic expression is embedded in the TTS system for training.
[0044] Specifically, it includes: pre-building a text-to-speech model and a prosody extractor based on FastSpeech2; inputting the training speech data into the text-to-speech model, and determining the phoneme sequence of the training speech data using the encoder of the text-to-speech model;
[0045] The prosody extractor extracts the word-level prosodic expression of each word from the Mel-spectrogram of the training speech data, and reconstructs the phoneme sequence using the word-level prosodic expression to obtain a reconstructed speech with the word-level prosodic expression.
[0046] In this embodiment, in order to obtain word-level prosodic embedding, a TTS (Text To Speech) model based on FastSpeech2 is first constructed, and then a prosodic extractor is constructed. Figure 2 As shown in (a), the prosodic extractor generates a hidden vector (called prosodic embedding e) for each word from the corresponding mel spectrum segment. The generated prosodic embedding is then aligned with the phoneme sequence and concatenated to the encoder output. Therefore, the extractor is optimized to extract useful prosodic information to better reconstruct the output speech, including the prosodic information and speech content of the word.
[0047] For step S12, there are two stages of prosody tagging. The intuitive idea is that words with very different phonetic contents, such as the long word "congratulations" and the short word "cat", are pronounced completely differently, so the same prosody tag should not be used. Therefore, in this method, a two-stage prosody tagging strategy is designed. First, a decision tree is used to classify words into different types according to their phonetic contents, and then GMM (Gaussian Mixed Model) is used to cluster the prosody in each type of words.
[0048] The first clustering of the reconstructed speech according to the text information of the words includes: performing a first clustering of the reconstructed speech according to the text information of the words based on a decision tree. In this embodiment, the first clustering is a first stage decision tree clustering.
[0049] Inspired by the HMM (HiddenMarkov Model) state binding technology in ASR (Automatic Speech Recognition), a binary decision tree was constructed for word clustering, which contains a set of questions Q about its speech content, where all words in the root are clustered into l leaf nodes. For this purpose, 39 questions were designed based on preset professional knowledge, such as "Is the phoneme of the word greater than 4?", "Is the first phoneme of this word 'm' or 'n'?", and "Does this word end with a closed syllable?".
[0050] Each node in the decision tree contains a set of words whose prosodic embeddings can be modeled with a Gaussian distribution and the log-likelihood can be expressed as:
[0051]
[0052] i is the node index, ε (i) is the set of all prosodic embeddings corresponding to the words in node i. Each non-leaf node i is associated with a question q that partitions the words in the node into its left or right children, resulting in increasing log-likelihood of the prosodic embeddings:
[0053] Δ g LL (i) =LL (i’s left child under q) +LL (i’s right child under q) -LL (i)
[0054] The initial tree contains only the root node, which is also a leaf node. Then, recursively perform the following steps: find the problem that maximizes the increase in the log-likelihood of all leaf nodes, and select a leaf node j whose increase is the largest among all leaf nodes, that is:
[0055]
[0056] The selected nodes are split with the corresponding questions. This process continues until the increase in logarithmic likelihood is less than the threshold. Thus, the topological structure of the decision tree is obtained. In this method, Figure 2 As shown in (b), the number of blades l is 10, and their indexes are represented by letters from a to j.
[0057] In layman's terms, the above steps are to first set a set of questions, all of which are related to the text information of the word, such as "whether it starts with a consonant", "whether it contains the phoneme IY1", "whether the phonemes of the word are greater than 4", etc. A decision tree is used to iteratively cluster the data into 10 categories (leaf nodes) in the first cluster based on the criterion of maximizing the total likelihood of the data (the number of corresponding clusters will change as the question set is modified, and the number of clusters is not limited here).
[0058] For step S13, the second stage can use Gaussian mixture clustering. The word-level prosodic embedding extracted by the neural network contains the prosodic information and speech content of the word. However, the decision tree clusters words into l leaf nodes based only on the question of speech content, so it is assumed that the prosodic embeddings of words in leaf nodes are different only in prosody and similar in speech content. Therefore, the clustering within the leaf node is controlled by prosody, not speech content.
[0059] Then, GMM-based clustering is performed on the rhythm embedding in each leaf node i:
[0060]
[0061] where k is the Gaussian component index and m is the number of components. The prosody of each word is labeled with the index of the Gaussian component that maximizes the posterior probability of its prosodic embedding e:
[0062]
[0063] In the above steps represents the mean vector of the kth Gaussian component in leaf node i, represents the covariance matrix of the kth Gaussian component in this node, represents the weight of the kth Gaussian component in this node. Specifically, m can be set to 5, so the range of Gaussian component ID is 0 to 4. Therefore, all words in the training set are marked with m*l=5*10=50 prosodic tags, which is the prosodic tag of each word, which is a combination of 10 leaf ids and 5 Gaussian component ids. Figure 2 As shown in (b), the prosody tags are from a0 to j4. The above prosody extraction and tagging are completely unsupervised, where only audio information is used. In addition, the labeling system is driven by both data and knowledge.
[0064] From this implementation, it can be seen that the prosody modeling and control is done at the word level, and words contain rich semantic information, so they can be well associated with the context. In addition, a variety of prosody can be annotated, and it has interpretability, good controllability and high scalability, achieving more humanized prosody annotation.
[0065] like Figure 3 FIG. 1 is a flowchart of a text-to-speech method based on prosody annotation provided by an embodiment of the present invention, comprising the following steps:
[0066] S21: inputting the text into a text-to-speech model, performing a first clustering based on the text information of the words and a second clustering based on the rhythm on the phoneme sequence determined by the text-to-speech model, and obtaining an unsupervised rhythmic annotation of each word in the text;
[0067] S22: Performing rhythm synthesis on the prime sequence using at least the unsupervised rhythm annotation of each word to obtain rhythmic speech.
[0068] In this embodiment, since unsupervised prosodic annotations are obtained for each word, they can be applied to text-to-speech tasks to perform prosodic control of speech with prosodic annotations.
[0069] For step S21, a TTS model is trained with derived word-level prosodic tags, such as Figure 4 As shown in the figure. In the training phase, the TTS model guides the determined phoneme sequence to the prosodic tag predictor. In the inference phase, the prosodic tag can be predicted from the input text by the prosodic predictor. This is the prosodic tagging part mentioned above, and the unsupervised prosodic tagging of each word is obtained.
[0070] For step S22, the unsupervised prosodic annotation of each word is used to perform prosodic synthesis on the element sequence to obtain a speech with prosody. As an implementation method, considering a more humanistic design, a user is provided with an inputtable manually specified prosodic annotation to perform prosodic synthesis on the element sequence to obtain a speech with prosody that better meets the user's expectations.
[0071] Specifically, Figure 4 As shown in the figure, (a) represents the training process in this step, and (b) represents the flowchart of the synthesis stage after the training is completed. In the synthesis stage, you can let the model automatically predict the prosody annotation based on the context, or you can manually specify the annotation for any word and input it into the TTS model to synthesize the desired rhythm. The rhythm predictor predicts the prosody marker of each word based on the phoneme hidden state corresponding to each word (that is, the encoder output sequence h). The rhythm predictor contains a bi-GRU (Bi-directional Gated Recurrent Unit), which converts the phoneme hidden state into a vector for each word, two convolution blocks and a softmax layer. The convolution block here consists of a 1D convolution layer, a ReLU activation layer, a normalization layer and a random dropout layer. The predictor uses a cross entropy loss L PPand rhythm labels are optimized. Therefore, the overall loss of model training is defined as:
[0072]
[0073] Where L FastSpeech2 is the text-to-speech model loss of FastSpeech2, and α is the relative weight between these two terms.
[0074] It can be seen from this implementation that the prosody annotation based on the definite diversity, interpretability and good controllability is applied to TTS, so that the speech synthesized by TTS has richer prosody and improves the user's interactive experience.
[0075] The method is experimentally demonstrated using LJSpeech, a single-speaker dataset containing 24 hours of experimental recordings. 242 utterances are set aside as a test set. All sounds are downsampled to 16kHz. Feature extraction is performed using 800-point window length, 200-point frame shift, 1024 FFT points, and 320 mel-bins. Phoneme alignment is obtained using a HMM-GMM ASR model trained on librispeech (a dataset), where GMM (Gaussian mixture model). The vocoder used in this work is MelGAN. The coefficient α is set to 1.0. The prosodic embedding is 128-dimensional.
[0076] Determine the performance of decision trees in prosodic labeling. Figure 5 The average rhythm embedding number curve of each leaf node and the average rhythm embedding number curve of all leaf nodes ∑ i∈leaf nodes LL (i) The overall prosodic embedding log-likelihood curve. As the number of leaf nodes increases, the average prosodic embedding number of each leaf node decreases, while the overall log-likelihood of prosodic embedding increases. Considering performance and complexity, the tree growth is stopped when the number of leaves reaches 10.
[0077] To determine the naturalness of the predicted prosody, a TTS model with a prosody predictor is trained using the derived word-level prosody markers. During the inference phase, word-level prosody can be predicted by the prosody predictor from the input text or specified manually. In this part, a test set is synthesized where the prosody is predicted and sampled. Then, naturalness is evaluated using the MUSHRA test, where 30 listeners are asked to rate each utterance between 0 and 100. The proposed model is compared with two baselines: the typical FastSpeech2 model original Raw_FSP and a TTS model where phoneme-level prosody is modeled using a mixture density network PLP_MDN. In addition, the ground-truth mel-spectrograms of the recordings are reconstructed by a vocoder and then provided as GT in the listening test. The results are shown in Figure 2. Figure 6 As shown in Figure 2. It can be observed that the proposed system outperforms the other two models in terms of naturalness due to word-level prosody modeling. However, the WLP samples are still slightly worse than GT.
[0078] Among them, GT refers to the real recording (ground truth). In the experiment, to ensure that the listener is not affected by the sound quality, the GT sample is actually the audio synthesized by MelGAN after extracting the mel spectrum from the real recording. Raw_FSP refers to the audio synthesized by the original FastSpeech2 model without prosody modeling, and PLP_MDN (phone-level prosody mixture density network) refers to the audio synthesized by using the phoneme-level mixture density network as the model for prosody modeling. WLP_predict (word-level prosody, predicted) is the audio synthesized by completely predicting the prosody through the prosody predictor in this method.
[0079] In order to evaluate the word-level prosody controllability of the proposed TTS model, the proposed prosody tagging system is first used to label the ground truth word prosody for the test set. Then, the test set is synthesized 5 times, where the prosody tags of the words in leaf d are manually assigned as d0 to d4, while the prosody tags of other words are predicted and sampled. Figure 7 An example is shown where the word “responsibility” between the yellow dashed lines is manually controlled by d0 to d4 respectively. It can be observed that the 5 prosody of the word are all different, showing the controllability of prosodic marking.
[0080] In addition, it is necessary to confirm that the same prosodic label leads to similar prosody. Therefore, this method evaluates the prosodic similarity between the recording and the synthesized speech with different assigned prosodic labels for all words in the leaf d in the test set. In theory, when the assigned prosodic label is equal to the reference prosodic label, the prosody of the word in the synthesized speech should be most similar to the recording.
[0081] This method evaluates prosodic similarity from both objective and subjective perspectives. First, the average Mel inverted distortion (MCD) of all words with a baseline prosodic label dt is calculated, where t ranges from 0 to 4 for recordings and synthesized speech with a specific prosodic label. The results are shown in Figure 8 As shown in the figure, it can be found that all diagonal values are the lowest in their column values, which shows that in the synthesized speech, the same prosodic label will produce similar prosody, and the label used for control can also better show the prosodic characteristics of this label in the training set.
[0082] At the same time, prosody similarity was evaluated with a subjective listening test in which 30 listeners were provided with recorded and synthesized speech with different prosodic labels for each group and were asked to select the prosodic word of the corresponding synthesized speech that was most similar to the recorded speech. Fig. 9 It is described in the form of a confusion matrix in . Similar to the objective evaluation results, the ratio of synthesized speech with the same prosodic label to the benchmark, i.e., the diagonal value is the highest in its column, further verifying the controllability of prosodic labels.
[0083] In summary, this method proposes a new unsupervised word-level prosodic tagging method in two stages. First, words are classified into different types according to their phonetic content using decision trees, and then prosody is clustered using GMMs in each type of words. In addition, a TTS system with derived word-level prosodic tags is trained for controllable speech synthesis, where prosody can be predicted from the input text or manually specified. Experiments on LJSpeech show that the proposed model achieves better naturalness than the typical FastSpeech2 model with predicted prosody. In addition, subjective and objective evaluations of prosodic controllability show that prosody can be effectively controlled by specifying word-level prosodic tags.
[0084] like Fig.10 FIG. 1 is a schematic diagram of the structure of a prosody annotation system provided by an embodiment of the present invention. The system can execute the prosody annotation method described in any of the above embodiments and is configured in a terminal.
[0085] The prosody annotation system 10 provided in this embodiment includes: a speech reconstruction program module 11 , a clustering program module 12 and a prosody annotation program module 13 .
[0086] Among them, the speech reconstruction program module 11 is used to extract word-level prosodic expressions from the training speech data, and reconstruct the speech using the word-level prosodic expressions to obtain reconstructed speech with word-level prosodic expressions; the clustering program module 12 is used to perform a first clustering of the reconstructed speech according to the text information of the words; the prosodic annotation program module 13 is used to perform an unsupervised second clustering of the results of the first clustering according to the prosody to obtain unsupervised prosodic annotations for each word.
[0087] Furthermore, the speech reconstruction program module is used to:
[0088] Pre-built FastSpeech2-based text-to-speech model and prosody extractor;
[0089] Inputting the training speech data into the text-to-speech model, and determining a phoneme sequence of the training speech data using an encoder of the text-to-speech model;
[0090] The prosody extractor extracts the word-level prosodic expression of each word from the Mel-spectrogram of the training speech data, and reconstructs the phoneme sequence using the word-level prosodic expression to obtain a reconstructed speech with the word-level prosodic expression.
[0091] The embodiment of the present invention further provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the prosody tagging method in any of the above method embodiments;
[0092] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:
[0093] Extracting word-level prosodic expressions from training speech data, and reconstructing the speech using the word-level prosodic expressions to obtain reconstructed speech with word-level prosodic expressions;
[0094] Performing a first clustering on the reconstructed speech according to text information of words;
[0095] An unsupervised second clustering is performed on the results of the first clustering according to the rhythm to obtain an unsupervised rhythm tagging of each word.
[0096] like Fig.11 The figure shows a structural schematic diagram of a text-to-speech system based on prosody annotation provided by an embodiment of the present invention. The system can execute the text-to-speech method based on prosody annotation described in any of the above embodiments and is configured in a terminal.
[0097] The prosody tagging system 20 provided in this embodiment includes: an unsupervised prosody tagging program module 21 and a speech synthesis program module 22 .
[0098] Among them, the unsupervised prosodic annotation program module 21 is used to input the text into the text-to-speech model, perform a first clustering based on the text information of the words and a second clustering based on the prosody on the phoneme sequence determined by the text-to-speech model, and obtain the unsupervised prosodic annotation of each word in the text; the speech synthesis program module 22 is used to perform prosodic synthesis on the phoneme sequence using at least the unsupervised prosodic annotation of each word to obtain speech with rhythm.
[0099] Furthermore, the speech synthesis program module is also used for:
[0100] The unsupervised prosodic annotation of each word and the input manually specified prosodic annotation are used to perform prosodic synthesis on the element sequence to obtain speech with prosody.
[0101] The embodiment of the present invention further provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the text-to-speech method based on prosody annotation in any of the above method embodiments;
[0102] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:
[0103] Inputting the text into a text-to-speech model, performing a first clustering based on the text information of the words and a second clustering based on the rhythm on the phoneme sequence determined by the text-to-speech model, and obtaining an unsupervised rhythmic annotation of each word in the text;
[0104] The unsupervised prosodic annotation of each word is at least used to perform prosodic synthesis on the prime sequence to obtain speech with prosody.
[0105] As a non-volatile computer-readable storage medium, it can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. One or more program instructions are stored in the non-volatile computer-readable storage medium, and when executed by the processor, the prosody annotation method and the text-to-speech method based on prosody annotation in any of the above method embodiments are executed.
[0106] Fig.12 FIG. 1 is a schematic diagram of the hardware structure of an electronic device for a prosody annotation method and a text-to-speech method based on prosody annotation provided in another embodiment of the present application. Fig.12 As shown, the device includes:
[0107] One or more processors 1210 and memory 1220, Fig.12 A processor 1210 is taken as an example. The prosody annotation method and the apparatus of the text-to-speech method based on prosody annotation may further include: an input device 1230 and an output device 1240 .
[0108] The processor 1210, the memory 1220, the input device 1230 and the output device 1240 may be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.
[0109] The memory 1220, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the prosody annotation method and the text-to-speech method based on prosody annotation in the embodiments of the present application. The processor 1210 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 1220, that is, the prosody annotation method and the text-to-speech method based on prosody annotation in the above method embodiments are implemented.
[0110] The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data, etc. In addition, the memory 1220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1220 may optionally include a memory remotely arranged relative to the processor 1210, and these remote memories may be connected to the mobile device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0111] The input device 1230 can receive input digital or character information. The output device 1240 can include a display device such as a display screen.
[0112] The one or more modules are stored in the memory 1220 , and when executed by the one or more processors 1210 , perform the prosody annotation method and the text-to-speech method based on prosody annotation in any of the above method embodiments.
[0113] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0114] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0115] An embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the prosody annotation method and the text-to-speech method based on prosody annotation of any embodiment of the present invention.
[0116] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:
[0117] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.
[0118] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDAs, MIDs, and UMPC devices, such as tablet computers.
[0119] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0120] (4) Other electronic devices with data processing functions.
[0121] In this article, relational terms such as first and second, etc. are used only 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" and "comprise" include not only those elements, but also other elements not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.
[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A prosody marking method, comprising: Extracting word-level prosodic expressions from training speech data, and reconstructing the speech using the word-level prosodic expressions to obtain reconstructed speech with word-level prosodic expressions; Performing a first clustering on the reconstructed speech according to text information of words; Performing an unsupervised second clustering on the results of the first clustering according to prosody to obtain an unsupervised prosodic labeling of each word; The extracting word-level prosodic expressions from the training speech data and reconstructing the speech using the word-level prosodic expressions comprises: Pre-built FastSpeech2-based text-to-speech model and prosody extractor; Determining a phoneme sequence of the training speech data using an encoder of the text-to-speech model; The prosody extractor extracts the word-level prosodic expression of each word from the Mel-spectrogram of the training speech data, and reconstructs the phoneme sequence using the word-level prosodic expression to obtain a reconstructed speech with the word-level prosodic expression.
2. The method according to claim 1, wherein: The first clustering of the reconstructed speech according to the text information of the words comprises: The reconstructed speech is subjected to a first clustering based on a decision tree according to text information of words.
3. A prosody annotation system, comprising: A speech reconstruction program module is used to extract word-level prosodic expressions from training speech data, and reconstruct the speech using the word-level prosodic expressions to obtain reconstructed speech with word-level prosodic expressions; A clustering program module, used for performing a first clustering of the reconstructed speech according to the text information of the words; A prosody tagging program module, used for performing an unsupervised second clustering of the results of the first clustering according to the prosody to obtain an unsupervised prosody tagging of each word; The speech reconstruction program module is used for: Pre-built FastSpeech2-based text-to-speech model and prosody extractor; Determining a phoneme sequence of the training speech data using an encoder of the text-to-speech model; The prosody extractor extracts the word-level prosodic expression of each word from the Mel-spectrogram of the training speech data, and reconstructs the phoneme sequence using the word-level prosodic expression to obtain a reconstructed speech with the word-level prosodic expression.
4. The system according to claim 3, wherein: The clustering program module is used to: The reconstructed speech is subjected to a first clustering based on a decision tree according to text information of words.
5. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in claim 1 or 2.
6. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to claim 1 or 2 are implemented.
Citation Information
Patent Citations
Voice synthesis method and device
CN105529023A
Text rhythm hierarchical structure prediction method, apparatus and device, and storage medium
CN110534087A
Parallel end-to-end speech synthesis method based on hopping encoder
CN112820266A
Speech synthesis method and system with rhythm
CN112863482A
End-to-end speech synthesis method and system based on fusion of acoustic features and text emotion features
CN113506562A
