Speech synthesis method, system, electronic device and storage medium

By using a combination of phoneme-level prosody controller and acoustic model in the speech synthesis system to replace the traditional Mel spectrum, the problem of acoustic model prediction error transmission is solved, and the tone quality and prosody diversity of speech synthesis are improved.

CN114783410BActive Publication Date: 2024-09-06AISPEECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210406843.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2024-09-06
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

In a cascade system, the prediction errors of the acoustic model will be passed down, making it difficult to accurately model the complex distribution of the Mel spectrum in the time and frequency directions. In particular, the high-frequency part is unclear, which affects the audio quality.

Method used

By obtaining the hidden layer representation and inputting it into the phoneme-level prosody controller for discrete phoneme-level prosody prediction, and combining the hidden layer representation with the classifier and convolutional neural network in the acoustic model, the frame-level discrete acoustic features and prosody features are predicted, instead Traditional mel spectrum uses a vocoder to generate speech with diverse rhythms.

Benefits of technology

The acoustic model and vocoder are reconstructed, reducing the error propagation problem, significantly improving the sound quality of the synthesized speech, and retaining the prosodic diversity. The quality of the generated speech is improved and the prosodic diversity is maintained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114783410B
    Figure CN114783410B
Patent Text Reader

Abstract

The embodiment of the present invention provides a speech synthesis method, system, electronic device and storage medium. The method includes: obtaining a hidden layer representation for speech synthesis data, inputting the hidden layer representation into a phoneme-level prosody controller to obtain a discrete phoneme-level prosody prediction; inputting the discrete phoneme-level prosody prediction and the hidden layer representation into an acoustic model, predicting the discrete acoustic features of each frame through a classifier in the acoustic model, and predicting the prosody features at the frame level using a convolutional neural network in the acoustic model; inputting the discrete acoustic features and the prosody features at the frame level into a vocoder to generate speech with diverse prosody. The embodiment of the present invention uses a discretized speech representation to replace the traditional Mel spectrum, thereby greatly reducing the problem of error transmission. Not only has the sound quality of the synthesized speech been greatly improved, but the prosody diversity has also been retained. Different prosodys can be generated by the prosody controller, thereby generating diverse speech.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent speech, and in particular to a speech synthesis method, system, electronic device and storage medium. Background Art

[0002] TTS (text-to-speech) synthesis is the process of converting text into corresponding speech. Compared with traditional statistical parameter speech synthesis, the neural TTS model based on deep neural network has better performance. The mainstream neural text-to-speech synthesis system is usually a cascade system that converts the input text into Mel spectrum and then converts the Mel spectrum into audio. Tacotron2, FastSpeech 2, GlowTTS, etc. can be used for conversion. Among them, Tacotron2 is a sequence-to-sequence model based on the attention mechanism, FastSpeech2 is a parallel generation model based on the Transformer network, and GlowTTS uses a reversible network to inversely transform the distribution of Mel spectrum into a simple distribution and optimize it through the maximum likelihood criterion.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:

[0004] In a cascade system, the prediction errors of the acoustic model will be passed down. The Mel spectrum has complex correlations in both time and frequency directions, and its distribution is relatively complex, which makes it difficult to model accurately enough through general models. In particular, the spectrum of the high-frequency part is often unclear under the prediction of the commonly used L1 or L2 criteria. In places where the predicted Mel spectrum is inaccurate, the sound quality of the generated audio will be reduced. Summary of the invention

[0005] In order to at least solve the problem in the prior art that in a cascade system, the prediction error of the acoustic model will be transmitted downward, and if the Mel spectrum prediction is inaccurate, the quality of the generated audio will be affected. In a first aspect, an embodiment of the present invention provides a speech synthesis method, comprising:

[0006] Obtaining a hidden layer representation for speech synthesis data, and inputting the hidden layer representation into a phoneme-level prosody controller to obtain a discrete phoneme-level prosody prediction;

[0007] Inputting the discrete phoneme-level prosody prediction and the hidden layer representation into an acoustic model, predicting the discrete acoustic features of each frame by a classifier in the acoustic model, and predicting the prosody features at the frame level by using a convolutional neural network in the acoustic model;

[0008] The discrete acoustic features and the frame-level prosodic features are input into a vocoder to generate speech with diverse prosody.

[0009] In a second aspect, an embodiment of the present invention provides a speech synthesis system, including:

[0010] A prosody prediction program module, used for obtaining a hidden layer representation for speech synthesis data, inputting the hidden layer representation into a phoneme-level prosody controller, and obtaining a discrete phoneme-level prosody prediction;

[0011] A prosodic feature program module, for inputting the discrete phoneme-level prosodic prediction and the hidden layer representation into an acoustic model, predicting the discrete acoustic features of each frame through a classifier in the acoustic model, and predicting the prosodic features at the frame level using a convolutional neural network in the acoustic model;

[0012] The speech generation program module is used to input the discrete acoustic features and the frame-level prosodic features into a vocoder to generate speech with diverse prosody.

[0013] According to a third 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 speech synthesis method of any embodiment of the present invention.

[0014] In a fourth 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 speech synthesis method of any embodiment of the present invention are implemented.

[0015] The beneficial effects of the embodiments of the present invention are: the acoustic model and the vocoder are reconstructed, and the traditional Mel spectrum is replaced by a discretized speech representation, thereby greatly reducing the problem of error transmission. Not only the sound quality of the synthesized speech is greatly improved, but also the rhythm diversity is retained. Different rhythms can be generated by the rhythm controller, thereby generating a variety of speech. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] 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.

[0017] Figure 1 is a flow chart of a speech synthesis method provided by one embodiment of the present invention;

[0018] Figure 2It is a model architecture diagram of a speech synthesis method provided by an embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a phoneme-level prosody controller of a speech synthesis method provided by an embodiment of the present invention;

[0020] Figure 4 It is a schematic diagram of speech reconstruction performance of a vocoder on a test set of a speech synthesis method provided by an embodiment of the present invention;

[0021] Figure 5 It is a schematic diagram of evaluating a text-to-speech synthesis system of a speech synthesis method provided by an embodiment of the present invention;

[0022] Figure 6 It is a schematic diagram of pitch trajectories of synthesized speech with different prosody in a speech synthesis method provided by an embodiment of the present invention;

[0023] Figure 7 It is a schematic diagram of the prediction accuracy of phoneme-level prosody labels of a speech synthesis method provided by an embodiment of the present invention;

[0024] Figure 8 It is a schematic diagram of the prediction accuracy of discrete acoustic features of a speech synthesis method provided by an embodiment of the present invention;

[0025] Fig. 9 is a structural schematic diagram of a speech synthesis system provided by an embodiment of the present invention;

[0026] Fig.10 A schematic structural diagram of an embodiment of a speech synthesis electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] 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.

[0028] like Figure 1 FIG. 1 is a flow chart of a speech synthesis method provided by an embodiment of the present invention, comprising the following steps:

[0029] S11: Obtaining a hidden layer representation for speech synthesis data, and inputting the hidden layer representation into a phoneme-level prosody controller to obtain a discrete phoneme-level prosody prediction;

[0030] S12: Mix the discrete phoneme-level prosody prediction and the hidden layer representation and input them into an acoustic model, predict the discrete acoustic features of each frame through a classifier in the acoustic model, and predict the prosody features at the frame level using a convolutional neural network in the acoustic model;

[0031] S13: Inputting the discrete acoustic features and the frame-level prosodic features into a vocoder to generate speech with diverse prosody.

[0032] In this embodiment, a discretized speech representation is used to replace the traditional Mel spectrum, thereby greatly reducing the problem of error transmission. Figure 2 As shown, the acoustic model and vocoder are redesigned, and the process of speech synthesis using this acoustic model and vocoder can be called high-fidelity text-to-speech synthesis with self-supervised discrete acoustic features.

[0033] Reconstructing waveforms from vector quantized acoustic features requires additional prosodic features. Therefore, in this method, three-dimensional prosodic features are used, including logarithmic pitch, energy, and POV (probability of voice). The prosodic features are then normalized to zero mean and unit variance. For simplicity of presentation, the following section abbreviates the combination of discrete acoustic features V and three-dimensional prosodic features P as V&P. This method consists of two parts: the acoustic model predicts V&P based on the input phoneme sequence, and the vocoder generates a waveform based on V&P.

[0034] For step S11, it is necessary to obtain the latent representation of the speech synthesis data during the synthesis process of the present method. As an embodiment, the acquisition of the latent representation for the speech synthesis data includes: inputting the text or phoneme sequence as the speech synthesis data into a text encoder to obtain the latent representation of the speech synthesis data. In this embodiment, TTS usually uses text. If sufficient preparation is available, the text can be converted into a phoneme sequence first, and then the phoneme sequence can be directly used to synthesize speech. Figure 2 The left side of the figure represents the acoustic model, where the text encoder, consisting of 6 Conformerblocks, takes the input phoneme sequence / encoding to determine the hidden state h. The hidden state h is then sent to the PL prosody controller that predicts the PL prosody label and the duration predictor that predicts the duration of each phoneme, resulting in discrete phoneme-level prosody predictions.

[0035] For step S12, the discrete phoneme-level prosody prediction and hidden layer representation are mixed and input into the acoustic model, where the acoustic model consists of 3 Conformer blocks, whose output passes through the LSTM (Long Short-Term Memory) layer, followed by the Softmax activation function for discrete acoustic feature classification. The decoder output and discrete acoustic features are further concatenated and passed to 4 convolutional layers, each of which is followed by layer normalization and a dropout layer for prosody feature prediction, thereby obtaining predicted frame-level prosody features.

[0036] As explained above, this method is to calculate the dynamic features Δp and Δ 2 p. A total of 9 dimensions of prosodic features [p, Δp, Δ 2 p] is averaged over the frames of each phoneme, so the prosody of each phoneme can be represented by a vector. Then, k-means is used to classify all PL (phoneme level) prosody representations into n clusters, and the cluster index is used as the PL prosody label.

[0037] The redesigned acoustic model also needs to be trained. Before training the acoustic model, all trained phonemes are pre-tagged with phoneme-level (PL) prosody and input into the prosody controller. The architecture of the prosody controller is as follows: Figure 3 As shown in Figure 2, the controller is trained to predict PL prosody labels from the text encoder output h using LSTM. Then, the quantized PL prosody, i.e., the center of the corresponding k-means cluster, is projected and added to h to control the subsequent acoustic feature generation.

[0038] Furthermore, the phoneme duration and prosodic features are trained using L2 and L1 losses respectively, and the PL prosodic labels and discrete acoustic features are trained using cross entropy loss. The overall training criteria are:

[0039]

[0040] Among them, L PL_lab refers to the loss function value of the phoneme-level prosodic label, L dur Refers to the loss function value of the phoneme duration, L v Refers to the loss function value of discrete features, L P Refers to the loss function value of the rhythmic feature.

[0041] Since the acoustic model was changed, its corresponding decoding was also adjusted. There are two LSTMs in the acoustic model, one for the autoregressive prediction of PL prosody labels and the other for discrete acoustic features. During training, both LSTMs are conditioned on their input and output before the predicted truth. During inference, beam search decoding is used. In particular, the decoding starts with an all-zero vector. Here k represents the beam size. In each decoding step, the top K classes of all current hypotheses are considered and the results are taken as k new hypotheses. Compared with greedy search decoding, which always selects the best result at each step based on history, beam search decoding takes history and the future into account.

[0042] In step S13, a redesigned vocoder is used to generate speech with diverse prosody using discrete acoustic features and frame-level prosodic features. The model architecture of the vocoder is shown in the figure. Figure 2 As shown in the right half. As an implementation method, the discrete acoustic features and the rhythmic features at the frame level are spliced, processed by the convolution layer and the feature encoder, and then input into the adversarial network generator to generate speech with diverse rhythms, wherein the feature encoder is constructed by four layers of Conformer blocks to optimize the sound quality of the generated speech. In this implementation method, both the discrete acoustic features and the rhythmic features are transformed through the convolution layer, the channels of the convolution layer are 92 and 32 respectively, and the kernel size is 5. The two outputs are then connected in series and passed to the convolution layer, the feature encoder and the HifiGAN generator in turn. The feature encoder here is designed for smoothing discontinuous quantized acoustic features. It contains 4 constellation blocks, each of which uses 2 attention heads and 384-dimensional self-attention. The output of the HifiGAN generator is the corresponding waveform. The training criteria of HifiGAN are used to optimize the vocoder model.

[0043] As an implementation mode, the training method of the feature encoder includes: in addition to training the feature encoder based on discrete acoustic training features and frame-level prosody training features, the feature encoder is additionally multi-task trained through Mel spectrum to help training convergence.

[0044] In this embodiment, in addition to using the existing target to compare with the predicted results until the training converges, or the teacher-student training method, or other training methods, it is also found that when training the model from scratch, the vocoder is difficult to converge, only HifiGAN loss. Therefore, a multi-task pre-training technique is introduced, which also uses a linear projection layer to output the predicted mel spectrogram from the feature encoder. Formally speaking, the training standard can be written during the pre-training process:

[0045]

[0046] Among them, L HIFIGANRepresents the loss function value of training HifiGAN, L mel Represents the loss function value of predicting the mel spectrum.

[0047] After pre-training, the mel-spectrogram prediction task is removed, which means that α is set to 0.

[0048] A brief summary of the above steps: Figure 2 The left half is the acoustic model, and the right half is the vocoder. The acoustic model inputs the text or phoneme sequence into the model, and then passes through the text encoder to obtain the hidden layer representation. It is first used to predict the discrete phoneme-level prosody, and then the discrete phoneme-level prosody is mixed with the previous hidden layer representation and sent to the acoustic model. The Softmax is used to classify and predict the discrete speech representation of each frame. Then, based on this, the convolutional neural network is used to predict the rhythmic features at the frame level.

[0049] The discrete acoustic features and prosodic features are then fed into the vocoder. The vocoder first transforms the discretized speech representation and frame-level prosodic features through a convolutional layer and concatenates them together. Then, after a layer of convolution and a feature encoder, they are fed into the HifiGAN generator to predict the audio. The feature encoder here consists of 4 layers of Conformer blocks. The optimization criteria of this model are consistent with HifiGAN. In order to ensure training convergence, a pre-training technique is used, that is, an additional multi-task training is added at the beginning to predict the Mel spectrum from the output of the feature encoder. After a period of training, this additional task is removed.

[0050] It can be seen from this implementation that the acoustic model and vocoder are reconstructed, and the discretized speech representation is used to replace the traditional Mel spectrum, thereby greatly reducing the problem of error transmission. Not only the sound quality of the synthesized speech is greatly improved, but also the rhythm diversity is retained. Different rhythms can be generated through the rhythm controller, thereby generating diverse speech.

[0051] The method was tested on the LJSpeech dataset, which is an English dataset containing about 24 hours of speech recorded by a female speaker. This method omitted 100 utterances for validation and 150 utterances for testing. For simplicity, all speech data in this work were resampled to 16kHz. Discrete acoustic features were extracted using a public pre-trained model. The frame shift of the discrete features was 10ms, and the number of possible discrete feature acoustic vectors was 21.5k. The three-dimensional prosodic features were extracted using the Kaldi algorithm. Audio samples are provided online.

[0052] For the reconstruction of the vocoder, the vocoder and HifiGAN were trained on the training set of V&P. In the vocoder training, α was set to 60 in the first 200k optimization iterations of pre-training. HifiGAN with mel-spectrogram was also trained for comparison. Then, the speech reconstruction performance on the test set given the GT (ground-truth) acoustic features was evaluated both subjectively and objectively. In particular, a MOS (mean opinion score) listening test was conducted, asking 15 listeners to rate the speech quality of each sentence from 0 to 5. For objective evaluation, PESQ (Perceptual evaluation of speech quality) was calculated, which measures the similarity between the synthesized speech and the corresponding recording. GPE (Gross Pitch Error) was also analyzed, which calculates the proportion of frames in voiced frames where the pitch difference between the recorded and synthesized speech is less than 20%. The results are shown in Figure 2. Figure 4 shown.

[0053] In objective evaluations, it can be seen that the Vocoder reconstructs recordings better than HifiGAN with V&P. Furthermore, it can be seen that the PESQ values ​​of the Vocoder are worse than those of HifiGAN with mel-spectrograms. This is largely due to the information loss introduced by quantization. However, a closer reconstruction does not mean better speech quality. In fact, the difference between the speech produced by the Vocoder and HifiGAN with Melfram is almost imperceptible. In subjective listening tests, the Vocoder outperforms HifiGAN with V&P and reaches comparable quality to HifiGAN with mel-spectrograms. As for HifiGAN with V&P, some undesirable artifacts can sometimes be heard, which may be caused by the discontinuous quantized input characteristics.

[0054] For the naturalness of speech synthesis, the entire discrete feature-based text-to-speech conversion system (that is, the abbreviation of high-fidelity text-to-speech synthesis with self-supervised discrete acoustic features in this method) was trained, where the acoustic model was optimized for 1000 steps using the Adam optimizer. In the PL prosody and discrete acoustic feature prediction, the number of PL prosody clusters n was set to 128, and the beam sizes in beam search decoding were set to 5 and 10, respectively. Then, this method was compared with other currently popular methods, including Tacotron 2, GlowTTS, FastSpeech 2, and a fully end-to-end TTS model (VITS for short). In the first three baseline systems, 80-dimensional mel spectrograms were used as acoustic features and HifiGAN was used as the vocoder. The MOS listening test was used to evaluate the naturalness of the synthesized speech. The utterances in the test set were presented to 15 listeners, and the results are shown with 95% confidence intervals. Figure 5 middle.

[0055] As expected, quality degradation can be observed in all cascaded baseline TTS systems compared to speech reconstruction from GT mel-spectrograms. Although the sound quality of the fully end-to-end model VITS is similar to that of our method, it sometimes suffers from unnatural prosody. However, our method generates high-fidelity and natural speech with almost no quality degradation compared to speech reconstruction from GT V&P. In addition, our method is a cascaded TTS system that is more flexible than the fully end-to-end TTS system VITS.

[0056] For prosodic diversity, text-to-speech is a one-to-many mapping because speech contains different prosody in addition to text. Our method models this diversity using a PL prosodic controller, which enables our method to use different PL prosodic hypotheses in beam search to control speech synthesis. Here, a sentence with 3 different prosodic hypotheses is synthesized in the test set and Figure 6 Their pitch trajectories are shown in Figure 6 Their differences can be clearly seen in .

[0057] For the decoding algorithm, this method explores the effectiveness of beam search decoding for PL prosodic labeling and discrete acoustic feature prediction. To this end, greedy search and beam search with beam sizes of 5 and 10 are used in these two tasks, respectively. Here, the discrete acoustic feature prediction is conditioned on the GT duration and PL prosodic label to ensure that the predicted features are accurately aligned with the GT features so that the prediction accuracy can be calculated. The results are shown in Figure 7 and Figure 8 .

[0058] As can be seen, the accuracy of all settings is not very high. Nevertheless, in both inference tasks, beam search decoding is still slightly more accurate than greedy search. In addition, in PL prosodic marker prediction, a beam size of 5 works better, while in discrete acoustic feature prediction, a beam size of 10 works better.

[0059] In summary, this method proposes to use self-supervised discrete acoustic features instead of traditional mel spectrograms, which greatly narrows the quality gap between GT and predicted acoustic features, thereby improving the performance of the entire TTS system. The vocoder in this method uses an additional feature encoder to smooth discontinuous quantized input features and obtains better reconstruction performance than HifiGAN. It is also found that different PL prosody assumptions can generate different prosody in beam search decoding. In addition, beam search decoding outperforms greedy search in both PL prosody and discrete acoustic feature prediction.

[0060] like Fig. 9 The figure is a schematic diagram of the structure of a speech synthesis system provided by an embodiment of the present invention. The system can execute the speech synthesis method described in any of the above embodiments and is configured in a terminal.

[0061] The speech synthesis system 10 provided in this embodiment includes: a prosody prediction program module 11, a prosody feature program module 12 and a speech generation program module 13.

[0062] Among them, the rhythm prediction program module 11 is used to obtain the hidden layer representation for speech synthesis data, input the hidden layer representation into the phoneme-level rhythm controller, and obtain discrete phoneme-level rhythm prediction; the rhythm feature program module 12 is used to mix the discrete phoneme-level rhythm prediction and the hidden layer representation and input them into the acoustic model, predict the discrete acoustic features of each frame through the classifier in the acoustic model, and use the convolutional neural network in the acoustic model to predict the rhythm features at the frame level; the speech generation program module 13 is used to input the discrete acoustic features and the rhythm features at the frame level into the vocoder to generate speech with diverse rhythms.

[0063] Furthermore, the speech generation program module is used to:

[0064] The discrete acoustic features and the frame-level prosodic features are concatenated, processed by a convolutional layer and a feature encoder, and then input into an adversarial network generator to generate speech with diverse prosody. The feature encoder is constructed by a four-layer Conformer block to optimize the sound quality of the generated speech.

[0065] Furthermore, the training method of the feature encoder includes:

[0066] In addition to training the feature encoder based on discrete acoustic training features and frame-level prosody training features, the feature encoder is additionally trained on multiple tasks using Mel-spectrograms to help training convergence.

[0067] Further, the rhythm prediction program module is used for:

[0068] The text or phoneme sequence as speech synthesis data is input into a text encoder to obtain a latent layer representation of the speech synthesis data.

[0069] 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 speech synthesis method in any of the above method embodiments;

[0070] 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:

[0071] Obtaining a hidden layer representation for speech synthesis data, and inputting the hidden layer representation into a phoneme-level prosody controller to obtain a discrete phoneme-level prosody prediction;

[0072] Inputting the discrete phoneme-level prosody prediction and the hidden layer representation into an acoustic model, predicting the discrete acoustic features of each frame by a classifier in the acoustic model, and predicting the prosody features at the frame level by using a convolutional neural network in the acoustic model;

[0073] The discrete acoustic features and the frame-level prosodic features are input into a vocoder to generate speech with diverse prosody.

[0074] 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 speech synthesis method in any of the above method embodiments is executed.

[0075] Fig.10 FIG. 1 is a schematic diagram of the hardware structure of an electronic device of a speech synthesis method provided by another embodiment of the present application. Fig.10 As shown, the device includes:

[0076] One or more processors 1010 and memory 1020, Fig.10 A processor 1010 is taken as an example. The device of the speech synthesis method may further include: an input device 1030 and an output device 1040.

[0077] The processor 1010, the memory 1020, the input device 1030 and the output device 1040 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.

[0078] The memory 1020 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the speech synthesis method in the embodiment of the present application. The processor 1010 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 1020, that is, the speech synthesis method in the above method embodiment is implemented.

[0079] The memory 1020 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 1020 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 1020 may optionally include a memory remotely arranged relative to the processor 1010, 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.

[0080] The input device 1030 can receive input digital or character information. The output device 1040 can include a display device such as a display screen.

[0081] The one or more modules are stored in the memory 1020, and when executed by the one or more processors 1010, the speech synthesis method in any of the above method embodiments is executed.

[0082] 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.

[0083] 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.

[0084] 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 speech synthesis method of any embodiment of the present invention.

[0085] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0086] (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.

[0087] (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.

[0088] (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.

[0089] (4) Other electronic devices with data processing functions.

[0090] 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.

[0091] 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.

[0092] 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.

[0093] 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 speech synthesis method, comprising: Obtaining a hidden layer representation for speech synthesis data, and inputting the hidden layer representation into a phoneme-level prosody controller to obtain a discrete phoneme-level prosody prediction; The latent representation of the speech synthesis data is obtained by inputting a text or a phoneme sequence as the speech synthesis data into a text encoder; The discrete phoneme-level prosody prediction and the hidden layer representation are mixed and input into an acoustic model, a discrete acoustic feature of each frame is predicted by a classifier in the acoustic model, and a convolutional neural network in the acoustic model is used to predict a prosody feature at the frame level; the discrete acoustic feature includes a vector quantized acoustic feature; The discrete acoustic features and the frame-level prosodic features are input into a vocoder to generate speech with diverse prosody.

2. The method according to claim 1, wherein: The step of inputting the discrete acoustic features and the frame-level prosodic features into a vocoder to generate speech with diverse prosody comprises: The discrete acoustic features and the frame-level prosodic features are concatenated, processed by a convolutional layer and a feature encoder, and then input into an adversarial network generator to generate speech with diverse prosody. The feature encoder is constructed by a four-layer Conformer block to optimize the sound quality of the generated speech.

3. The method according to claim 2, wherein: The training method of the feature encoder includes: In addition to training the feature encoder based on discrete acoustic training features and frame-level prosody training features, the feature encoder is additionally trained on multiple tasks using Mel-spectrograms to help training convergence.

4. The method according to claim 1, wherein: Before obtaining the hidden layer representation for speech synthesis data, the method further includes: pre-training a phoneme-level prosody controller, including: The prosodic features in the training set are clustered in advance so that the phoneme-level prosodic controller outputs a phoneme-level prosodic label.

5. The method according to claim 1, wherein: The obtaining of the hidden layer representation for speech synthesis data comprises: The text or phoneme sequence as speech synthesis data is input into a text encoder to obtain a latent layer representation of the speech synthesis data.

6. A speech synthesis system, comprising: A prosody prediction program module, used for obtaining a hidden layer representation for speech synthesis data, inputting the hidden layer representation into a phoneme-level prosody controller, and obtaining a discrete phoneme-level prosody prediction; the hidden layer representation of the speech synthesis data is obtained by inputting a text or a phoneme sequence as the speech synthesis data into a text encoder; A prosodic feature program module, for inputting the discrete phoneme-level prosodic prediction and the hidden layer representation into an acoustic model, predicting the discrete acoustic features of each frame by a classifier in the acoustic model, and predicting the prosodic features of the frame level by using a convolutional neural network in the acoustic model; the discrete acoustic features include vector quantized acoustic features; The speech generation program module is used to input the discrete acoustic features and the frame-level prosodic features into a vocoder to generate speech with diverse prosody.

7. The system according to claim 6, wherein: The speech generation program module is used for: The discrete acoustic features and the frame-level prosodic features are concatenated, processed by a convolutional layer and a feature encoder, and then input into an adversarial network generator to generate speech with diverse prosody. The feature encoder is constructed by a four-layer Conformer block to optimize the sound quality of the generated speech.

8. The system according to claim 7, wherein: The training method of the feature encoder includes: In addition to training the feature encoder based on discrete acoustic training features and frame-level prosody training features, the feature encoder is additionally trained on a multi-task basis through a Mel spectrum to help training convergence.

9. The system according to claim 6, wherein: The rhythm prediction program module is also used for: The prosodic features in the training set are clustered in advance so that the phoneme-level prosodic controller outputs a phoneme-level prosodic label.

10. The system according to claim 6, wherein: The rhythm prediction program module is used to: The text or phoneme sequence as speech synthesis data is input into a text encoder to obtain a latent layer representation of the speech synthesis data.

11. 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 any one of claims 1 to 5.

12. 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 described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Voice synthesis model training method and device, voice synthesis method and device, and voice synthesizer

    CN112652293A

  • Speech synthesis method and system with rhythm

    CN112863482A

  • Speech synthesis method and speech synthesis model training method and device

    CN113112987A

  • Word acoustic feature system and training method and system of word acoustic feature system

    CN113112995A

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

    CN113327580A