Parallel Tacotron: A non-autoregressive and controllable TTS.
The non-autoregressive TTS model with a VAE-based residual encoder efficiently synthesizes speech with intended prosody and style by disentangling prosodic information, addressing inefficiencies and degradation issues of autoregressive models, resulting in high-quality speech output.
Patent Information
- Application Number
- JP2023524427
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-10-21
- Filing Date
- 2021-05-05
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-05-05
AI Technical Summary
Autoregressive text-to-speech (TTS) models require numerous computations, leading to inefficiencies during inference and often produce degraded synthetic speech with issues like babbling, early cutoffs, and word repetition, especially for longer texts.
A non-autoregressive TTS model enhanced with a variational autoencoder (VAE)-based residual encoder disentangles style/prosodic information from reference audio signals, using self-attention blocks to predict mel-frequency spectrograms directly, allowing for efficient and controlled synthesis of speech with intended prosody/style.
The proposed model significantly reduces training and inference times while producing high-quality, natural-sounding synthetic speech that maintains the intended prosody and style, even for longer texts, overcoming the limitations of autoregressive models.
Smart Images

Figure 0007554926000004 
Figure 0007554926000008 
Figure 0007554926000001
Abstract
Description
[Technical field]
[0001] This disclosure relates to parallel tacotron non-autoregressive and controllable text-to-speech (TTS). [Background technology]
[0002] Text-to-speech (TTS) systems read digital text to users and are becoming increasingly prevalent on mobile devices. A particular TTS model aims to synthesize various aspects of speech, such as speaking style, to generate a natural-sounding human-like voice. Synthesis in a TTS model is a one-to-many mapping problem, as there can be multiple speech outputs for different prosody of the text input. Many TTS systems utilize autoregressive models that predict the current value based on previous values. Autoregressive TTS models can synthesize text and generate very natural-sounding speech output, but they require hundreds of calculations, which reduces their efficiency during inference. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] van den Oord, Parallel WaveNet: Fast High-Fidelity Speech Synthesis, available at https: / / arxiv.org / pdf / 1711.10433.pdf Summary of the Invention [Means for solving the problem]
[0004] One aspect of the disclosure provides a computer-implemented method that, when executed on data processing hardware, causes the data processing hardware to perform operations for training a non-autoregressive text-to-speech (TTS) model. The operations include receiving training data including a reference audio signal and a corresponding input text sequence. The reference audio signal includes spoken speech, and the input text sequence corresponds to a transcript of the reference audio signal. The operations also include encoding the reference audio signal using a residual encoder into a variational embedding that disentangles style / prosodic information from the reference audio signal, and encoding the input text sequence into an encoded text sequence using a text encoder. The operations also include predicting, using a duration decoder, a phoneme duration for each phoneme in the input text sequence based on the encoded text sequence and the variational embedding. The operations also include determining a phoneme duration loss based on the predicted phoneme duration and a reference phoneme duration from the reference audio signal for each phoneme in the input text sequence. The operations also include generating one or more predicted mel-frequency spectrogram sequences for the input text sequence based on the output of the duration decoder as an output from a spectrogram decoder including a stack of self-attention blocks. The operations also include determining a final spectrogram loss based on the one or more predicted mel-frequency spectrogram sequences and a reference mel-frequency spectrogram sequence sampled from a reference audio signal, and training a TTS model based on the final spectrogram loss and the corresponding phoneme duration loss determined for each phoneme in the input text sequence.
[0005] Implementations of the present disclosure may include one or more of any of the following features: In some implementations, each self-attention block in a stack of self-attention blocks includes an identical lightweight convolution (LConv) block. In other implementations, each self-attention block in a stack of self-attention blocks includes an identical transformer block. The input text sequence may include words, each with one or more phonemes, silence at all word boundaries, and punctuation.
[0006] In some examples, the residual encoder includes a global variational autoencoder (VAE), and encoding the reference audio signal into a variational embedding includes sampling a reference mel-frequency spectrogram sequence from the reference audio signal, and encoding the reference mel-frequency spectrogram sequence into a variational embedding using the global VAE. In some implementations, the residual encoder includes a phoneme-level fine-grained variational autoencoder (VAE), and encoding the reference audio signal into a variational embedding includes sampling a reference mel-frequency spectrogram sequence from the reference audio signal, aligning the reference mel-frequency spectrogram sequence with each phoneme in the sequence of phonemes extracted from the input text sequence, and encoding the sequence of phoneme-level variational embeddings based on aligning the reference mel-frequency spectrogram sequence with each phoneme in the sequence of phonemes using the phoneme-level fine-grained VAE.
[0007] Optionally, the residual encoder may include a stack of lightweight convolution (LConv) blocks, each LConv block in the stack of LConv blocks including a gated linear unit (GLU) layer, an LConv layer configured to receive an output of the GLU layer, residual connections configured to connect the output of the LConv layer with an input to the GLU layer, and a final feed-forward layer configured to receive as an input the residual connections connecting the output of the LConv layer with the input to the GLU layer. The operations may further include upsampling the output of the duration decoder to a number of frames using a reference phoneme duration sampled from a reference audio signal for each phoneme in the input text sequence, and obtaining a position embedding representing phoneme position information for each phoneme in the input text utterance. Here, generating one or more predicted Mel-frequency spectrogram sequences for the input text sequence is based on the position embedding and the upsampling of the output of the duration decoder to a number of frames.
[0008] In some examples, generating one or more predicted mel-frequency spectrogram sequences for the input text sequence includes generating a respective mel-frequency spectrogram sequence as an output from each self-attention block in a stack of self-attention blocks of a spectrogram decoder. In these examples, determining a final spectrogram loss includes determining, for each predicted mel-frequency spectrogram sequence, a respective spectrogram loss based on the predicted mel-frequency spectrogram sequence and a reference mel-frequency spectrogram sequence, and aggregating the respective spectrogram losses determined for the predicted mel-frequency spectrogram sequences to generate a final spectrogram loss. In some implementations, the duration decoder includes a stack of self-attention blocks followed by two independent projections, and predicting a phoneme duration for each phoneme in the input text sequence includes predicting a probability of a non-zero duration for each phoneme using a sigmoid activation followed by a first projection of the two independent projections, and predicting a phoneme duration for each phoneme using a soft-plus activation followed by a second projection of the two independent projections. The operations may further include, for each phoneme, determining whether a probability of a predicted non-zero duration for the corresponding phoneme is less than a threshold, and setting the predicted phoneme duration for the corresponding phoneme to zero if the probability of a non-zero duration is less than the threshold.
[0009] In some examples, the operations further include concatenating the encoded text sequence, the variational embeddings, and a reference speaker embedding representing an identity of a reference speaker who emitted the reference audio signal, and generating an output of the duration decoder based on a duration decoder receiving as input the concatenation of the encoded text sequence, the variational embeddings, and the reference speaker embeddings. Optionally, the input text sequence may include a sequence of phonemes, and encoding the input text sequence into the encoded text sequence includes receiving a respective embedding for each phoneme in the sequence of phonemes from a phoneme lookup table, and for each phoneme in the sequence of phonemes, processing the respective embeddings to generate a transformed embedding for each of the phonemes using an encoder pre-net neural network of the text encoder, processing the respective transformed embeddings to generate a convolutional output using a bank of convolutional blocks, and processing the convolutional output to generate the encoded text sequence using a stack of self-attention blocks.
[0010] Another aspect of the present disclosure provides a system for training a non-autoregressive text-to-speech (TTS) model, the system including data processing hardware and memory hardware storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations. The operations include receiving training data including a reference audio signal and a corresponding input text sequence. The reference audio signal includes spoken speech, and the input text sequence corresponds to a transcript of the reference audio signal. The operations also include encoding the reference audio signal using a residual encoder into a variational embedding that disentangles style / prosodic information from the reference audio signal, and encoding the input text sequence into an encoded text sequence using a text encoder. The operations also include predicting a phoneme duration for each phoneme in the input text sequence based on the encoded text sequence and the variational embedding using a duration decoder. The operations also include determining a phoneme duration loss based on the predicted phoneme duration and a reference phoneme duration from the reference audio signal for each phoneme in the input text sequence. The operations also include generating one or more predicted mel-frequency spectrogram sequences for the input text sequence based on the output of the duration decoder as an output from a spectrogram decoder including a stack of self-attention blocks. The operations also include determining a final spectrogram loss based on the one or more predicted mel-frequency spectrogram sequences and a reference mel-frequency spectrogram sequence sampled from a reference audio signal, and training a TTS model based on the final spectrogram loss and the corresponding phoneme duration loss determined for each phoneme in the input text sequence.
[0011] Implementations of the present disclosure may include one or more of any of the following features: In some implementations, each self-attention block in a stack of self-attention blocks includes an identical lightweight convolution (LConv) block. In other implementations, each self-attention block in a stack of self-attention blocks includes an identical transformer block. The input text sequence may include words, each with one or more phonemes, silence at all word boundaries, and punctuation.
[0012] In some examples, the residual encoder includes a global variational autoencoder (VAE), and encoding the reference audio signal into a variational embedding includes sampling a reference mel-frequency spectrogram sequence from the reference audio signal, and encoding the reference mel-frequency spectrogram sequence into a variational embedding using the global VAE. In some implementations, the residual encoder includes a phoneme-level fine-grained variational autoencoder (VAE), and encoding the reference audio signal into a variational embedding includes sampling a reference mel-frequency spectrogram sequence from the reference audio signal, aligning the reference mel-frequency spectrogram sequence with each phoneme in the sequence of phonemes extracted from the input text sequence, and encoding the sequence of phoneme-level variational embeddings based on aligning the reference mel-frequency spectrogram sequence with each phoneme in the sequence of phonemes using the phoneme-level fine-grained VAE.
[0013] Optionally, the residual encoder may include a stack of lightweight convolution (LConv) blocks, each LConv block in the stack of LConv blocks including a gated linear unit (GLU) layer, an LConv layer configured to receive an output of the GLU layer, residual connections configured to connect the output of the LConv layer with an input to the GLU layer, and a final feed-forward layer configured to receive as an input the residual connections connecting the output of the LConv layer with the input to the GLU layer. The operations may further include upsampling the output of the duration decoder to a number of frames using a reference phoneme duration sampled from a reference audio signal for each phoneme in the input text sequence, and obtaining a position embedding representing phoneme position information for each phoneme in the input text utterance. Here, generating one or more predicted Mel-frequency spectrogram sequences for the input text sequence is based on the position embedding and the upsampling of the output of the duration decoder to a number of frames.
[0014] In some examples, generating one or more predicted mel-frequency spectrogram sequences for the input text sequence includes generating a respective mel-frequency spectrogram sequence as an output from each self-attention block in a stack of self-attention blocks of a spectrogram decoder. In these examples, determining a final spectrogram loss includes determining, for each predicted mel-frequency spectrogram sequence, a respective spectrogram loss based on the predicted mel-frequency spectrogram sequence and a reference mel-frequency spectrogram sequence, and aggregating the respective spectrogram losses determined for the predicted mel-frequency spectrogram sequence to generate a final spectrogram loss. In some implementations, the duration decoder includes a stack of self-attention blocks followed by two independent projections, and predicting a phoneme duration for each phoneme in the input text sequence includes predicting a probability of a non-zero duration for each phoneme using a sigmoid activation followed by a first projection of the two independent projections, and predicting a phoneme duration for each phoneme using a soft-plus activation followed by a second projection of the two independent projections. The operations may further include, for each phoneme, determining whether a probability of a predicted non-zero duration for the corresponding phoneme is less than a threshold, and zeroing the predicted phoneme duration for the corresponding phoneme if the probability of a non-zero duration is less than the threshold.
[0015] In some examples, the operations further include concatenating the encoded text sequence, the variational embedding, and a reference speaker embedding representing an identity of a reference speaker who emitted the reference audio signal, and generating an output of the duration decoder based on a duration decoder receiving as input the concatenation of the encoded text sequence, the variational embedding, and the reference speaker embedding. Optionally, the input text sequence may include a sequence of phonemes, and encoding the input text sequence into the encoded text sequence includes receiving a respective embedding for each phoneme in the sequence of phonemes from a phoneme lookup table, and for each phoneme in the sequence of phonemes, processing the respective embeddings to generate a transformed embedding for each of the phonemes using an encoder pre-net neural network of the text encoder, processing the respective transformed embeddings to generate a convolutional output using a bank of convolutional blocks, and processing the convolutional output to generate the encoded text sequence using a stack of self-attention blocks.
[0016] Another aspect of the disclosure provides a computer-implemented method that, when executed on data processing hardware, causes the data processing hardware to perform operations. The operations include receiving a text utterance to be synthesized into speech and encoding a sequence of phonemes extracted from the text utterance into an encoded text sequence using a text encoder of a non-autoregressive TTS model. The operations also include selecting a variational embedding of the text utterance that specifies an intended prosody / style for synthesizing the text utterance into speech. For each phoneme in the phoneme sequence, the operations further include predicting a phoneme duration of the corresponding phoneme based on the encoded text sequence and the selected variational embedding using a duration decoder of the non-autoregressive TTS model. The operations also include generating a predicted mel-frequency spectrogram sequence of the text utterance based on the output of the duration decoder and the predicted phoneme duration as output from a spectrogram decoder of the non-autoregressive TTS model that includes a stack of self-attention blocks. The predicted mel-frequency spectrogram sequence has the intended prosody / style specified by the selected variational embedding.
[0017] Implementations of the present disclosure may include one or more of any of the following features: In some implementations, the selected variational embedding includes a previous variational embedding sampled from a variational autoencoder (VAE)-based residual encoder. The operations may further include converting the predicted Mel-frequency spectrogram sequence into synthetic speech using a synthesizer. In some examples, the sequence of phonemes extracted from the text utterance into the encoded text sequence includes receiving a respective embedding for each phoneme in the sequence of phonemes from a phoneme lookup table, and for each phoneme in the sequence of phonemes, processing the respective embeddings to generate a transformed embedding for each of the phonemes using an encoder pre-net neural network of a text encoder, processing the respective transformed embeddings to generate a convolution output using a bank of convolution blocks, and processing the convolution output to generate the encoded text sequence using a stack of self-attention blocks.
[0018] Optionally, each self-attention block in the stack of self-attention blocks of the spectrogram decoder may include one of the same lightweight convolution (LConv) block or the same transformer block. In some implementations, the operations further include upsampling the output of the duration decoder to several frames using the predicted phoneme durations and obtaining a positional embedding representing phoneme position information for each phoneme in the sequence of phonemes. Here, generating a predicted Mel-frequency spectrogram sequence of the text utterance is based on the positional embedding and the upsampling of the output of the duration decoder to several frames. The operations may further include concatenating the encoded text sequence, the selected variational embedding, and a reference speaker embedding representing an identification of a reference speaker associated with the selected variational embedding, and generating an output of the duration decoder based on the duration decoder receiving as input the concatenation of the encoded text sequence, the variational embedding, and the reference speaker embedding.
[0019] Another aspect of the present disclosure provides a system for executing a trained non-autoregressive text-to-speech (TTS) model, the system including data processing hardware and memory hardware storing instructions that, when executed on the data processing hardware, cause the data processing hardware to perform operations. The operations include receiving a text utterance to be synthesized into speech, and encoding a sequence of phonemes extracted from the text utterance into an encoded text sequence using a text encoder of the non-autoregressive TTS model. The operations also include selecting a variational embedding of the text utterance that specifies an intended prosody / style for synthesizing the text utterance into speech. For each phoneme in the sequence of phonemes, the operations further include predicting a phoneme duration of the corresponding phoneme based on the encoded text sequence and the selected variational embedding using a duration decoder of the non-autoregressive TTS model. The operations also include generating a predicted mel-frequency spectrogram sequence of the text utterance based on the output of the duration decoder and the predicted phoneme duration as an output from a spectrogram decoder of the non-autoregressive TTS model including a stack of self-attention blocks. The predicted Mel-frequency spectrogram sequence has the intended prosody / style specified by the selected variational embedding.
[0020] Implementations of the present disclosure may include one or more of any of the following features: In some implementations, the selected variational embedding includes a previous variational embedding sampled from a variational autoencoder (VAE)-based residual encoder. The operations may further include converting the predicted Mel-frequency spectrogram sequence into synthetic speech using a synthesizer. In some examples, the sequence of phonemes extracted from the text utterance into the encoded text sequence includes receiving a respective embedding for each phoneme in the sequence of phonemes from a phoneme lookup table, and for each phoneme in the sequence of phonemes, processing the respective embeddings to generate a transformed embedding for each of the phonemes using an encoder pre-net neural network of a text encoder, processing the respective transformed embeddings to generate a convolution output using a bank of convolution blocks, and processing the convolution output to generate the encoded text sequence using a stack of self-attention blocks.
[0021] Optionally, each self-attention block in the stack of self-attention blocks of the spectrogram decoder may include one of the same lightweight convolution (LConv) block or the same transformer block. In some implementations, the operations further include upsampling the output of the duration decoder to several frames using the predicted phoneme durations and obtaining a positional embedding representing phoneme position information for each phoneme in the sequence of phonemes. Here, generating a predicted Mel-frequency spectrogram sequence of the text utterance is based on the positional embedding and the upsampling of the output of the duration decoder to several frames. The operations may further include concatenating the encoded text sequence, the selected variational embedding, and a reference speaker embedding representing an identification of a reference speaker associated with the selected variational embedding, and generating an output of the duration decoder based on the duration decoder receiving as input the concatenation of the encoded text sequence, the variational embedding, and the reference speaker embedding.
[0022] The details of one or more implementations of the disclosure are set forth in the accompanying drawings and the description below. Other aspects, features, and advantages will become apparent from the description and drawings, and from the claims. [Brief description of the drawings]
[0023] [Figure 1] FIG. 1 illustrates an example system for training a deep neural network to provide a non-autoregressive TTS model that predicts spectrograms of text utterances. [Diagram 2] FIG. 1 is a schematic diagram of a non-autoregressive neural network for training a non-autoregressive TTS model. [Diagram 3] FIG. 3 is a schematic diagram of executing a trained non-autoregressive TTS model trained by the non-autoregressive deep neural network of FIG. [Figure 4]FIG. 2 is a schematic diagram of an exemplary convolution block. [Diagram 5] FIG. 1 is a schematic diagram of an exemplary lightweight convolution block. [Figure 6] 1 is a flowchart of an exemplary arrangement of operations of a computer-implemented method for training a non-autoregressive TTS model. [Figure 7] 1 is a flowchart of an exemplary arrangement of operations of a computer-implemented method for executing a trained non-autoregressive TTS model. [Figure 8] FIG. 1 is a schematic diagram of an example computing device that can be used to implement the systems and methods described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] Like reference symbols in the various drawings indicate like elements.
[0025] The synthesis of realistic human speech is an open problem in that the same text input involves an infinite number of plausible speech recognitions. End-to-end neural network-based techniques have made progress to match human performance for short assistant-like utterances, but neural network models are sometimes considered more difficult to interpret and control than traditional models that involve multiple processing steps acting on sophisticated linguistic or phonetic representations. Sources of variation in speech include prosodic characteristics of intonation, stress, rhythm, style, as well as speaker and channel characteristics. Prosodic features of spoken speech convey linguistic, semantic, and emotional meaning beyond that present in the lexical representation (e.g., a transcript of the spoken utterance).
[0026] A neural network is a machine learning model that uses one or more layers of nonlinear units to predict an output for a received input. For example, a neural network-based end-to-end text-to-speech (TTS) model may convert an input text into an output speech. Neural TTS models offer the possibility to robustly synthesize speech by predicting linguistic elements that correspond to prosody not provided by the text input. As a result, synthetic speech that sounds realistic rather than monotonous can be generated for many applications such as audiobook narration, news readers, voice design software, and conversation assistants.
[0027] Many neural end-to-end TTS models utilize autoregressive models that predict current values based on previous values. For example, many autoregressive models are based on recurrent neural networks that use some or all of the internal state of the network from previous time steps in computing the output at the current time step. An example of a recurrent neural network is a long short-term (LSTM) neural network that includes one or more LSTM memory blocks. Each LSTM memory block can include one or more cells, each of which includes an input gate, a forget gate, and an output gate that allows the cell to remember the previous state of the cell, for example, for use in generating the current activation or to be provided to other components of the LSTM neural network.
[0028] Although autoregressive TTS models can synthesize text and generate highly natural speech output, their architecture of a series of unidirectional LSTM-based decoder blocks with soft attention is inherently less efficient for both training and inference when implemented on modern parallel hardware compared to fully feed-forward architectures. Furthermore, because autoregressive models are trained via supervision by applying ground truth labels at every time step, autoregressive models are further prone to mismatches between training and when the trained model is applied during inference. Combined with the soft attention mechanism, these mismatches can lead to degraded synthetic speech output, such as synthetic speech that exhibits robustness errors such as babbling, premature cutoff, word repetition, and word skipping. The degradation of synthetic speech quality in autoregressive TTS models can be further exacerbated as the size of the synthetic text increases.
[0029] To mitigate the aforementioned shortcomings of autoregressive-based TTS models, implementations herein are directed to a non-autoregressive neural TTS model augmented with a variational autoencoder (VAE)-based residual encoder. As will become apparent, a VAE-based residual encoder can disentangle latent representations / states from a reference audio signal that conveys residual information, such as style / prosodic information that cannot be represented by the input text (e.g., phoneme sequence) to be synthesized, or a speaker identifier (ID) of the speaker who spoke the reference audio signal. In other words, the latent representations enable the output synthetic speech generated by the TTS model to sound like the reference audio signal input to the residual encoder.
[0030] The non-autoregressive neural TTS model enhanced with a VAE-based residual encoder provides a controllable model for predicting the mel-spectral information (e.g., predicted mel-frequency spectrogram sequence) of an input text utterance, while effectively controlling the prosody / style represented in the mel-spectral information. For example, using the selected variational embeddings learned by the VAE-based residual encoder to represent the intended prosody / style for synthesizing the text utterance into an expressive voice, the spectrogram decoder of the TTS model may predict the mel-frequency spectrogram of the text utterance and provide it as an input to a synthesizer (e.g., a waveform synthesizer or a vocoder network) for converting the mel-frequency spectrogram into a time-domain audio waveform indicative of a synthetic voice having the intended prosody / style. As will become apparent, since the non-autoregressive TTS model is trained on sample input text sequences and corresponding reference mel-frequency spectrogram sequences of human voices only, the trained TTS model can convert the input text utterance into a mel-frequency spectrogram sequence having the intended prosody / style conveyed by the learned prior variational embeddings.
[0031] FIG. 1 illustrates an exemplary system 100 for training a deep neural network 200 augmented with a VAE-based residual encoder 180 to provide a non-autoregressive neural TTS model (or simply “TTS model”) 300 and predicting a spectrogram (i.e., a Mel-frequency spectrogram sequence) 302 of a text utterance 320 using the TTS model 300. The system 100 includes a computing system 120 having data processing hardware 122 and memory hardware 124 in communication with the data processing hardware 122 and storing instructions that cause the data processing hardware 122 to perform operations. In some implementations, the computing system 120 (e.g., the data processing hardware 122) or a user computing device 10 executing the trained TTS model 300 provides the spectrogram 302 predicted by the TTS model 300 from the input text utterance 320 to a synthesizer 155 for conversion into a time-domain audio waveform indicative of a synthesized speech 152 that can be audibly output as a verbal representation of the input text utterance 320. The time-domain audio waveform includes an audio waveform that defines the amplitude of an audio signal over time. The synthesizer 155 may be separately trained and conditioned based on the Mel-frequency spectrogram to convert to a time-domain audio waveform.
[0032] The Mel-frequency spectrogram includes a frequency domain representation of the sound. The Mel-frequency spectrogram emphasizes low frequencies that are important for speech intelligibility while de-emphasizing high frequencies that are dominated by fricatives and other noise bursts and generally do not need to be modeled with high fidelity. The synthesizer 155 may include a vocoder neural network, which may include any network configured to receive the Mel-frequency spectrogram and generate audio output samples (e.g., time-domain audio waveforms) based on the Mel-frequency spectrogram. For example, the vocoder network 155 may be based on a parallel feed-forward neural network as described in van den Oord, Parallel WaveNet: Fast High-Fidelity Speech Synthesis, available at https: / / arxiv.org / pdf / 1711.10433.pdf, which is incorporated herein by reference. Alternatively, the vocoder network 155 may be an autoregressive neural network. The synthesizer 155 may include a waveform synthesizer, such as a Griffin-Lim synthesizer or a trainable spectrogram / waveform inverter. The choice of synthesizer 155 does not affect the resulting prosody / style of the synthetic speech 152 , but rather only affects the audio fidelity of the synthetic speech 152 .
[0033] Since the input text utterance 320 has no way of conveying the context, semantics, and pragmatics to derive the desired prosody / style of the synthesized speech 152, the TTS model 300 may apply the variational embeddings 220 as latent variables specifying the intended prosody / style to predict a Mel-frequency spectrogram 302 of the text utterance 320 that conveys the intended prosody / style specified by the variational embeddings 220. In some examples, the computing system 120 implements the TTS model 300. Here, a user may access the TTS model 300 through the user computing device 10 to provide the input text utterance 320 to the TTS model 300 for synthesis into an expressive speech 152 having the intended prosody / style specified by the variational embeddings 220. The variational embeddings 220 may correspond to a previous variational embedding 220 selected by the user and sampled from the residual encoder 180. The variational embeddings 220 may be speaker-specific variational embeddings 220 that a user may select by providing (i.e., through an interface running on the user computing device 10) a speaker identifier (ID) that identifies the speaker speaking with the intended prosody / style. Here, each speaker ID may map to a respective speaker-specific variational embedding 220 pre-trained by the residual encoder 180. Additionally or alternatively, a user may provide an input specifying a particular vertical associated with each prosody / style. Here, different verticals (e.g., news anchor, sports anchor, etc.) may each map to a respective variational embedding 220 pre-trained by the residual encoder 180 that conveys the respective prosody / style associated with that vertical. In these examples, the synthesizer 155 may reside on the computing system 120 or the user computing device 10. If the synthesizer 155 resides on the computing system 120, the computing system 120 may transmit a time-domain audio waveform representing the synthetic speech 152 to the user computing device 10 for audible playback.In other examples, the user computing device 10 implements the TTS model 300. The computing system may include a distributed system (eg, a cloud computing environment).
[0034] In some implementations, the deep neural network 200 is trained on a large set of reference audio signals 201. Each reference audio signal 201 may include a spoken utterance of a human voice recorded by a microphone and having a prosody / style representation. During training, the deep neural network 200 may receive multiple reference audio signals 201 with different prosody / style for the same spoken utterance (i.e., the same utterance may be spoken in multiple different ways). Here, the reference audio signals 201 are variable-length signals with different lengths of the spoken utterance even if the content is the same. The deep neural network 200 may also receive multiple sets of reference audio signals 201, each set including reference audio signals 201 for utterances with similar prosody / style spoken by the same respective speaker but conveying different linguistic content. The deep neural network 200 augmented with the VAE-based residual encoder 180 is configured to encode / compress the prosody / style representation associated with each reference audio signal 201 into a corresponding variational embedding 220. The variational embeddings 220 may include fixed-length variational embeddings 220. The deep neural network 200 maps each variational embedding 220 to a corresponding speaker embedding y s The variational embeddings 220 may be stored in storage 185 (e.g., on memory hardware 124 of computing system 120) along with the variational embeddings 220. The variational embeddings 220 may be speaker-specific variational embeddings that include an ensemble (e.g., an average) of multiple variational embeddings 220 encoded by the residual encoder 180 from reference audio signals 201 spoken by the same speaker.
[0035] During inference, the computing system 120 or the user computing device 10 may use the trained TTS model 300 to predict a mel-frequency spectrogram sequence 302 of the text utterance 320. The TTS model 300 may select a variational embedding 220 from the storage 185 that represents the intended prosody / style of the text utterance 320. Here, the variational embedding 220 may correspond to a previous variational embedding 220 sampled from the VAE-based residual encoder 180. The TTS model 300 may use the selected variational embedding 220 to predict a mel-frequency spectrogram sequence 302 of the text utterance 320. In the illustrated example, the synthesizer 155 uses the predicted mel-frequency spectrogram sequence 302 to generate a synthetic speech 152 having the intended prosody / style specified by the variational embedding 220.
[0036] During inference, the computing system 120 or the user computing device 10 may use the trained TTS model 300 to predict a mel-frequency spectrogram sequence 302 of the text utterance 320. The TTS model 300 may select a variational embedding 220 from the storage 185 that represents the intended prosody / style of the text utterance 320. Here, the variational embedding 220 may correspond to a previous variational embedding 220 sampled from the VAE-based residual encoder 180. The TTS model 300 may use the selected variational embedding 220 to predict a mel-frequency spectrogram sequence 302 of the text utterance 320. In the illustrated example, the synthesizer 155 uses the predicted mel-frequency spectrogram sequence 302 to generate a synthetic speech 152 having the intended prosody / style specified by the variational embedding 220.
[0037] In a non-limiting example, an individual may train the deep neural network 200 to learn speaker-specific variational embeddings that convey prosody / style representations associated with a particular speaker. For example, Brian McCullough, host of the Techmeme Ride Home podcast, may train the deep neural network 200 on a reference audio signal 201 that includes previous episodes of the podcast along with an input text sequence 206 that corresponds to a transcript of the reference audio signal 201. During training, the VAE-based residual encoder 180 may learn a speaker-specific variational embedding 220 that represents the prosody / style of Brian narrating the Ride Home podcast. Brian may then apply this speaker-specific variational embedding 220 for use by the trained TTS model 300 (running on the computing system 120 or the user computing device 10) to predict the mel-frequency spectrogram sequence 302 of a text utterance 320 that corresponds to a transcript of a new episode of the Ride Home podcast. The predicted Mel-frequency spectrogram sequence 302 can be provided as an input to the synthesizer 155 to generate a synthetic speech 152 with Brian's unique prosody / style as specified by Brian's speaker-wise variational embedding 220. That is, the resulting synthetic speech 152 may sound exactly like Brian's voice and feature Brian's prosody / style for narrating an episode of the Ride Home podcast. Thus, to broadcast a new episode, Brian need only provide the episode transcript and use the trained TTS model 300 to generate a synthetic speech 302 that can be streamed to the Ride Home podcast's loyal listeners (also known as the Mutant Podcast Army).
[0038] 2 illustrates a non-autoregressive neural network (e.g., the deep neural network of FIG. 1) 200 for training a non-autoregressive TTS model 300. The deep neural network 200 includes a VAE-based residual encoder 180, a text encoder 210, a duration decoder 230, and a spectrogram decoder 250. The deep neural network 200 may be trained based on training data including a plurality of reference audio signals 201 and corresponding input text sequences 206. Each reference audio signal 201 includes spoken utterances of a human voice, and the corresponding input text sequences 206 correspond to transcriptions of the reference audio signals 201. In the illustrated example, the VAE-based residual encoder 180 is configured to encode the reference audio signals 201 into variational embeddings 220(z). Specifically, the residual encoder 180 receives a reference mel-frequency spectrogram sequence 202 sampled from a reference audio signal 201 and encodes the reference mel-frequency spectrogram sequence 202 into a variational embedding 220, whereby the variational embedding 220 disentangles style / prosodic information from the reference audio signal 201 corresponding to spoken utterances of a human voice. Thus, the variational embedding 220 corresponds to a reference speaker's latent state, such as the emotions and intentions that contribute to the reference speaker's prosody, emotion, and / or speaking style. As used herein, the variational embedding 220 includes both style and prosodic information. In some examples, the variational embedding 220 includes a vector of numerical values with a capacity represented by the number of bits in the variational embedding 220. The reference mel-frequency spectrogram sequence 202 sampled from the reference audio signal 201 is a vector of numerical values of length L R and dimension D R As used herein, the reference Mel-frequency spectrogram sequence 202 includes a number of fixed-length reference Mel-frequency spectrogram frames sampled / extracted from the reference audio signal 201. Each reference Mel-frequency spectrogram frame may have a duration of 5 milliseconds.
[0039] The VAE-based residual encoder 180 corresponds to a posterior network that enables unsupervised learning of latent representations of speaking styles (i.e., variational embeddings (z)). Learning variational embeddings using a VAE network provides advantageous properties of disentanglement, scaling, and combination to simplify style control compared to heuristic-based systems. In some implementations, as shown in FIG. 2, the VAE-based residual encoder 180 includes a global VAE network that encodes a global variational embedding 220 from the entire reference mel-frequency spectrogram sequence 202. Here, the global VAE network 400a includes two stacks 410, 420 of lightweight convolutional (LConv) blocks, each with multi-head attention. FIG. 5 shows a schematic diagram 500 of an exemplary LConv block having a gated linear unit (GLU) layer 502, an LConv layer 504 configured to receive the output of the GLU layer 502, and a feed-forward (FF) layer 506. The exemplary LConv block 500 also includes a first residual connection 508 (e.g., a first concatenator 508) configured to concatenate the output of the LConv layer 504 with the input to the GLU layer 502. The FF layer 506 is configured to receive as an input the first residual connection 508, which concatenates the output of the LConv layer 504 with the input to the GLU layer 502. The exemplary LConv block 500 also includes a second residual connection 510 (e.g., a second concatenator 510) configured to concatenate the output of the FF layer 506 with the first residual connection 508. The exemplary LConv block 500 may implement FF mixing in the FF layer 506 using the structure ReLU(W1X+b1)W2+b2, where W1 increases the dimension by a factor of four. Each LConv block in the first stack 410 and the second stack 420 of the global VAE network 180 may include eight heads. In some examples, a first stack of LConv blocks 410 includes three 17×1 LConv blocks, and a second stack of LConv blocks 420 following the first stack 410 includes five 17×1 LConv blocks interleaved with a 3×1 convolution.This configuration of two stacks 410, 420 of LConv blocks 410, 420 allows the global VAE network 180 to successively downsample the latent representation before applying global average pooling to obtain the final global variational embedding 220. The projection layer 430 may project the dimensionality of the global variational embedding 220 output from the second stack of LConv blocks 420. For example, the global variational embedding 220 output from the second stack of LConv blocks 420 may have 8 dimensions, and the projection layer 430 may project that dimensionality to 32.
[0040] In other implementations, the VAE-based residual encoder 180 includes a phoneme-level fine-grained VAE network that the non-autoregressive neural network 200 may employ instead of the global VAE network shown in Fig. 2. While the global VAE network shown in Fig. 2 encodes the reference mel-frequency spectrogram sequence 202 into a global variational embedding 220 at the utterance level, the phoneme-level fine-grained VAE network is configured to encode spectrogram frames from the reference mel-frequency spectrogram sequence 202 associated with each phoneme in the input text sequence 206 into respective phoneme-level variational embeddings 220. More specifically, the phoneme-level fine-grained VAE network may align the reference mel-frequency spectrogram sequence 202 with each phoneme in the sequence of phonemes extracted from the input text sequence 206 and encode a sequence of phoneme-level variational embeddings 220. Thus, each phoneme-level variational embedding 220 in the sequence of phoneme-level variational embeddings 220 encoded by the phoneme-level fine-grained VAE network encodes a respective subset of one or more spectrogram frames from the reference mel-frequency spectrogram sequence 202 that includes a respective phoneme in the sequence of phonemes extracted from the input text sequence 206. The phoneme-level fine-grained VAE network first encodes the reference mel-frequency spectrogram sequence 202 into a speaker embedding y sand position embeddings 216 indicating phoneme position information for each phoneme in the sequence of phonemes extracted from the input text sequence 206. Each position embedding 216 may include a fixed-length vector containing information about the specific position of each phoneme in the sequence of phonemes extracted from the input text sequence 206. This concatenation is then applied to a stack of five 8-headed 17×1 LConv blocks to compute attention using the layer-normalized encoded text sequence 219 output from the text encoder 210.
[0041] 2, the text encoder 210 encodes the input text sequence 206 into a text encoding sequence 219. The text encoding sequence 219 includes an encoded representation of a sequence of speech units (e.g., phonemes) extracted from the input text sequence 206. The input text sequence 206 may include words, each having one or more phonemes, silence at all word boundaries, and punctuation. Thus, the input text sequence 206 includes a sequence of phonemes, and the text encoder 210 may receive from the token embedding lookup table 207 a respective token embedding for each phoneme in the sequence of phonemes, where each token embedding includes a phoneme embedding. However, in other examples, instead of phonemes, the token embedding lookup table 207 may obtain token embeddings for other types of speech input associated with the input text sequence 206, such as, but not limited to, sub-phonemes (e.g., senomes), graphemes, word fragments, or words in an utterance. After receiving the respective token embeddings of each phoneme in the sequence of phonemes, the text encoder 210 uses the encoder pre-net neural network 208 to process the respective token embeddings and generate respective transformed embeddings 209 of each phoneme. A bank of convolution (Conv) blocks 212 can then process the respective transformed embeddings 209 to generate convolution outputs 213. In some examples, the bank of Conv blocks 212 includes three identical 5×1 Conv blocks. FIG. 4 shows a schematic diagram 400 of an exemplary Conv block having a Conv layer 402, a batch normalization layer 404, and a dropout layer 406. During training, the batch normalization layer 404 may apply batch normalization to reduce internal covariate shifts. The dropout layer 406 may reduce overfitting. Finally, an adder 214 combines the convolution output 213 with the position embedding 216 to generate an input 215, and a stack of self-attention blocks 218 processes the input 215 to generate an encoded text sequence 219.In the illustrated example, the stack of self-attention blocks 218 includes six transformer blocks. In other examples, the self-attention block 218 may include LConv blocks instead of transformer blocks.
[0042] In particular, since each convolution output 213 flows through a stack of self-attention blocks 218 simultaneously, and thus the stack of self-attention blocks 218 has no knowledge of the position / order of each phoneme in the input text utterance, the position embedding 216 combined with the convolution output 213 inserts the necessary position information indicating the order of each phoneme in the input text sequence 206. In contrast, an autoregressive encoder incorporating a recurrent neural network (RNN) inherently considers the order of each phoneme, since each phoneme is parsed in order from the input text sequence. However, a text encoder 210 integrating a stack of self-attention blocks 218 using multi-head self-attention avoids the recurrence of the autoregressive encoder, significantly reducing training time, and theoretically captures longer-term dependencies in the input text sequence 206.
[0043] Continuing with reference to FIG. 2, a concatenator 222 combines the variational embeddings 220 from the residual encoder 180, the encoded text sequence 219 output from the text encoder 210, and a reference speaker embedding y y , which represents the speaker identity 205 of the reference speaker who originated the reference audio signal. s The duration decoder 230 concatenates the encoded text sequence 219, the variational embeddings 220, and the reference speaker embedding y to generate an output 238 of the duration decoder 230 for predicting the phoneme duration 240 for each phoneme in the sequence of phonemes in the input text sequence 206. s224. In some implementations, the duration decoder 230 includes a stack of self-attention blocks 232 followed by two independent projections. In the illustrated example, the stack of self-attention blocks includes four 3×1 LConv blocks. As described above with reference to FIG. 5, each LConv block in the stack of self-attention blocks 232 may include a GLU unit 502, an LConv layer 504, and an FF layer 506 with remaining connections. The duration decoder 230 may predict the phoneme duration 240 for each phoneme by predicting the probability of the non-zero duration 235 for each phoneme and predicting the consecutive phoneme duration 237 for each phoneme. Since the sequence of phonemes in the input text sequence 206 includes regular phonemes, silences between word boundaries, and punctuation marks, only regular phonemes are associated with non-zero durations, while silences and punctuation marks are generally associated with non-zero durations. Thus, the duration decoder 230 uses the sigmoid activation 234 following the first of the two independent activations to predict the probability of a non-zero duration 235, and the soft-plus activation following the second of the two independent projections to predict the continuous phoneme duration for each phoneme. For each phoneme, the duration decoder may determine whether the probability of a predicted non-zero duration 235 for the corresponding phoneme is below a threshold, and if the probability of a non-zero duration is below the threshold, a multiplier 239 may zero the continuous phoneme duration 237 predicted by the soft-plus activation 236 for the corresponding phoneme. Otherwise, if the probability of a non-zero duration is equal to or greater than the threshold, the predicted phoneme duration 240 may be set equal to the continuous phoneme duration 237 predicted by the soft-plus activation 236.
[0044] The reference phoneme duration 245 for each phoneme may be sampled from the reference audio signal 201 using an external aligner, such as a hidden Markov model based external aligner. The duration decoder 230 may compute a cross entropy (CE) loss term 242 between the reference phoneme duration 245 and the probability of a non-zero duration 235. The duration decoder 230 may compute an L1 loss term 244 between the predicted phoneme duration 240 and the reference phoneme duration 245. A phoneme duration loss based on two levels of CE 242 and L1 loss term 244 may be computed for the input text sequence 206.
[0045] Continuing to refer to FIG. 2, the upsampling layer 246 uses the reference phoneme duration 245 sampled from the reference audio signal to upsample the output 238 of the duration decoder 230 to a number of frames specified by the reference phoneme duration 245, where the number of frames corresponds to the length of the reference Mel-frequency spectrogram sequence 202 (i.e., the number of frames generated by the upsampling layer 246 is equal to the number of reference spectrogram frames in the reference Mel-frequency spectrogram sequence 202). One or more position embeddings 216 may be added to the output 238 of the upsampling layer 246 to inform the spectrogram decoder 250 of the respective frame positions within each phoneme. The one or more different types of position embeddings 216 may include at least one of a transformer-style sinusoidal embedding of frame positions within a phoneme, a transformer-style sinusoidal embedding of phoneme durations, or a fractional progression of frames within a phoneme. In some implementations, when several different types of the aforementioned positional embeddings 216 are added, the weighting layer 248 learns positional weights 249 to combine one or more positional embeddings 216 with the output 238 of the duration decoder 230. For example, for each channel and positional embedding, the weighting layer 248 may learn softmax regularization weights to have the non-autoregressive neural network 200 learn to select which positional embeddings 216 to copy to the spectrogram decoder 250.
[0046] The spectrogram decoder 250 is configured to receive as an input the upsampled output 238 of the duration decoder 230 combined with the weighted positional embedding 216 and generate as an output one or more predicted Mel-frequency spectrogram sequences 302 for the input text sequence 206. The spectrogram decoder 250 may include a stack of multiple self-attention blocks 252, 252a-n with multi-head attention. In some examples, the spectrogram decoder 250 includes six 8-head 17x1 LConv blocks with 0.1 dropout. The spectrogram decoder 250 may include more or less than six LConv blocks. As described above with reference to FIG. 5, each LConv block in the stack of self-attention blocks 232 may include a GLU unit 502, an LConv layer 504, and a FF layer 506 with remaining connections. In other examples, each self-attention block 252 in the stack includes an identical transformer block.
[0047] In some implementations, the spectrogram decoder 250 generates a respective predicted mel-frequency spectrogram sequence 302, 302a-n as an output from each self-attention block 252 in the stack of self-attention blocks 252, 252a-n. The network 200 may be trained such that the number of frames of each predicted mel-frequency spectrogram sequence 302 is equal to the number of frames of the reference mel-frequency spectrogram sequence 202 input to the residual encoder 180. In the illustrated example, each self-attention block 252a-n is paired with a corresponding projection layer 254a-n that projects the output 253 from the self-attention block 252 to generate a respective predicted mel-frequency spectrogram sequence 302a-n having dimensions that match those of the reference mel-frequency spectrogram sequence 202. In some examples, the projection layer 254 projects a 128-bin predicted mel-frequency spectrogram sequence 302. By predicting multiple Mel-frequency spectrogram sequences 302a-n, the non-autoregressive neural network 200 may be trained using an iterative spectrogram loss. That is, for each predicted Mel-frequency spectrogram sequence 302a-n, a respective spectrogram loss 270, 270a-n may be determined based on the corresponding predicted Mel-frequency spectrogram sequence 302 and the reference Mel-frequency spectrogram sequence 202. Each spectrogram loss 270 may include an L1 loss term. For example, a first spectrogram loss 270a may be determined based on the first predicted Mel-frequency spectrogram sequence 302a and the reference Mel-frequency spectrogram sequence 202, and a second spectrogram loss 270b may be determined based on the first predicted Mel-frequency spectrogram sequence 302a and the reference Mel-frequency spectrogram sequence 202, and so on until all of the respective spectrogram losses 270a-n have been determined by iteratively determining the predicted Mel-frequency spectrogram sequences 302a-n.The spectrogram losses 270 may be aggregated to generate a final spectrogram loss 280. The final spectrogram loss 280 may correspond to an iterative L1 loss term 280. Aggregating the spectrogram losses 270a-n may include summing the spectrogram losses 270a-n to obtain the final spectrogram loss 280. Optionally, aggregating the spectrogram losses may include averaging the spectrogram losses.
[0048] The deep neural network 200 may be trained such that the number of frames in each predicted mel-frequency spectrogram sequence 302 is equal to the number of frames in the reference mel-frequency spectrogram sequence 202 input to the residual encoder 180. Furthermore, the deep neural network 200 is trained such that the data associated with the reference mel-frequency spectrogram sequence 202 and the predicted mel-frequency spectrogram sequence 302 substantially match each other. The predicted mel-frequency spectrogram sequence 302 may implicitly provide a prosody / style representation of the reference audio signal 201.
[0049] 3 illustrates an example of a non-autoregressive TTS model 300 trained by the non-autoregressive deep neural network 200 of FIG. 2. Specifically, FIG. 3 illustrates the TTS model 300 using a selected variational embedding 220 to predict a mel-frequency spectrogram sequence 302 of an input text utterance 320, whereby the selected variational embedding 220 represents the intended prosody / style of the text utterance 320. During inference, the trained TTS model 300 may run on the computing system 120 or the user computing device 10 and use the selected variational embedding 220 to predict a mel-frequency spectrogram sequence 302 corresponding to the input text utterance 320. Here, the TTS model 300 selects from the storage 185 a variational embedding 220 that represents the intended prosody / style of the text utterance 320. In some examples, a user provides a user input instruction indicating a selection of the intended prosody / style that the user wants to convey in the resulting synthetic speech 152 for the text utterance 320, and the TTS model 300 selects an appropriate variational embedding 220 from the data storage 185 that represents the intended prosody / style. In these examples, the intended prosody / style may be selected by the user by indicating a speaker ID 205 associated with a particular speaker who speaks in the intended prosody / style and / or by specifying a particular prosodic vertical (e.g., news anchor, sports anchor, etc.) that corresponds to the intended prosody / style. The selected variational embedding 220 may correspond to a previous variational embedding 220 sampled from the VAE-based residual encoder 180. The trained TTS model 300 uses the synthesizer 155 to generate a synthetic speech 152 having the intended prosody / style (e.g., selected variational embedding 220) for each input text utterance 320. That is, the selected variational embedding 220 may include the intended prosody / style (eg, newscaster, sportscaster, etc.) stored in the residual encoder 180.The selected variational embedding 220 conveys the intended prosody / style through the synthesized speech 152 of the input text utterance 320.
[0050] In an additional implementation, the trained TTS model 300 uses the residual encoder 180 during inference to extract / predict on the fly the variational embeddings 220 to use in predicting the mel-frequency spectrogram sequence 302 of the input text utterance 320. For example, the residual encoder 180 may receive a reference audio signal 201 (FIG. 2) emitted by a human user conveying an intended prosody / style (e.g., "Say it like this") and extract / predict a corresponding variational embedding 220 representing the intended prosody / style. The trained TTS model 300 may then use the variational embeddings 220 to effectively transfer the intended prosody / style conveyed by the reference audio signal 201 to the predicted mel-frequency spectrogram sequence 302 for the input text utterance 320. Thus, the input text utterance 320 to be synthesized into the expressive voice 152 and the reference audio signal 201 conveying the intended prosody / style to be transferred to the expressive voice 152 may contain different linguistic content.
[0051] In particular, the text encoder 210 encodes the sequence of phonemes extracted from the text utterance 320 into an encoded text sequence 219. The text encoder 210 may receive a respective token embedding for each phoneme in the sequence of phonemes extracted from the text utterance 320 from the token embedding lookup table 207. After receiving the respective token embedding for each phoneme in the sequence of phonemes extracted from the text utterance 320, the text encoder 210 uses the encoder pre-net neural network 208 to process the respective token embeddings to generate respective transformed embeddings 209 for each phoneme. A bank of Conv blocks 212 (e.g., three identical 5×1 Conv blocks) then processes each transformed embedding 209 to generate a convolution output 213. Finally, an adder 214 combines the convolution output 213 with positional embeddings 216 to generate an input 215, and a stack of self-attention blocks 218 (e.g., six transform blocks) processes the input 215 to generate an encoded text sequence 219. The positional embeddings 216 combined with the convolution output 213 provide the necessary positional information indicating the order of each phoneme in the sequence of phonemes of the text utterance 320.
[0052] Continuing with reference to FIG. 3, a concatenator 222 combines the selected variational embedding 220, the encoded text sequence 219, and optionally the reference speaker embedding y to generate a concatenation 224. s Here, the reference speaker embedding y smay represent the speaker identity 205 of the reference speaker who emitted one or more reference speech signals 201 associated with the selected variational embedding 220, or the speaker identity 205 of another reference speaker whose voice characteristics are conveyed in the resulting synthetic speech 152. The duration decoder 230 combines the encoded text sequence 219, the selected variational embedding 220, and the reference speaker embedding y to generate an output 238 of the duration decoder 230 for predicting the phoneme duration 240 for each phoneme in the sequence of phonemes in the input text utterance 320. s 2. The apparatus is configured to decode a concatenation 224 of
[0053] In some implementations, the duration decoder 230 includes a stack of self-attention blocks 232 (e.g., four 3×1 LConv blocks) followed by two independent projections 234, 236. The duration decoder 230 may predict the phoneme duration for each phoneme by predicting the probability of the non-zero duration 235 for each phoneme and predicting the continuous phoneme duration 237 for each phoneme. Since the sequence of phonemes in the input text utterance 320 includes regular phonemes, silences between word boundaries, and punctuation marks, only regular phonemes are associated with non-zero durations, while silences and punctuation marks are generally associated with non-zero durations. Thus, the duration decoder 230 uses a sigmoid activation 234 followed by a first of the two independent activations to predict the probability of the non-zero duration 235, and a soft-plus activation 236 followed by a second of the two independent projections to predict the continuous phoneme duration 237 for each phoneme. For each phoneme, the duration decoder 230 determines whether the probability of non-zero duration 235 is less than a threshold, and if the probability of non-zero duration 235 is less than the threshold, a multiplier 239 may zero the continuous phoneme duration 237 predicted by soft-plus activations 236 for the corresponding phoneme. Otherwise, if the probability of non-zero duration 235 is greater than or equal to the threshold, the predicted phoneme duration 240 may be set equal to the continuous phoneme duration 237 predicted by soft-plus activations 236.
[0054] The trained TTS model 300 may include an upsampling layer 246 that uses the predicted phoneme duration 240 to upsample the output 238 of the duration decoder 230 to a number of frames, where the number of frames corresponds to the predicted length of the predicted spectrogram 302 determined by the predicted phoneme duration 240 and the output 238 of the corresponding input text utterance 320. The TTS model 300 may obtain one or more position embeddings 216 that represent phoneme position information for each phoneme in the sequence of phonemes of the input text utterance 320. The one or more position embeddings 216 may be added to the number of frames of the output 238 generated by the upsampling layer 246 to inform the spectrogram decoder 250 of the respective frame positions within each phoneme. That is, since the stack of self-attention blocks 252 may not have knowledge about the position / order of each phoneme in the input text utterance 320, the position embeddings 216 provide the necessary order of each phoneme in the phoneme sequence. In some implementations, several different types of positional embeddings 216 are added to the output 238, and a weighting layer 248 learns positional weights 249 to combine one or more of the positional embeddings 216 with the output 238 of the duration decoder 230. For example, for each channel and positional embedding 216, the weighting layer 248 may learn softmax regularization weights to have the non-autoregressive neural network 200 learn to select which positional embeddings 216 to copy to the spectrogram decoder 250. The one or more positional embeddings 216 may include the following types of positional embeddings: transformer-style sinusoidal embeddings, each indicating a frame position within a phoneme, transformer-style sinusoidal embeddings, each indicating a predicted phoneme duration for the respective phoneme, and fractional progression of frames within the phoneme.
[0055] The spectrogram decoder 250 is configured to generate a predicted Mel-frequency spectrogram sequence 302 of the text utterance 320 based on the learned position weights 249 derived from the output 238 of the duration decoder 230 and the predicted phoneme durations 240 after upsampling, where the predicted Mel-frequency spectrogram sequence 302 has the intended prosody / style specified by the selected variational embedding 220. The predicted Mel-frequency spectrogram sequence 302 of the text utterance 320 is based on the position embedding 216 and on upsampling the output 238 of the duration decoder 230 to several frames.
[0056] The spectrogram decoder 250 generates each predicted Mel-frequency spectrogram sequence 302 as an output from the last self-attention block 252 in the stack of self-attention blocks 252a-n, where each self-attention block 252 in the stack of self-attention blocks 252 of the spectrogram decoder 250 includes one of the same LConv block or the same transformer block. In some examples, the spectrogram decoder 250 includes six 8-head 17×1 LConv blocks with 0.1 dropout. The output of the last feed-forward (FF) layer 506 (FIG. 5) for each self-attention block 252 is provided as an input to the subsequent self-attention block 252. That is, the GLU unit 502 (FIG. 5) and LConv layer 504 (FIG. 5) of the first self-attention block 252a in the stack of self-attention blocks 252a-n process the output 238 from the duration decoder 230 and the predicted phoneme duration 240, and the output from the last FF layer 506 of the first self-attention block 252a is provided as input to the subsequent second self-attention block 252b in the stack of self-attention blocks 252. The output of the last FF layer of each self-attention block 252 is provided as input to the subsequent self-attention block 252 until the last self-attention block 252n in the stack of self-attention blocks 252 is reached. The last self-attention block 252n (e.g., the sixth self-attention block 252) in the stack of self-attention blocks 252 is paired with a corresponding projection layer 254 that projects the output 253 from the last self-attention block 252 to generate a respective predicted Mel-frequency spectrogram sequence 302.
[0057] The predicted mel-frequency spectrogram sequence 302 produced by the spectrogram decoder 250 corresponds to the input text utterance 320 and conveys the intended prosody / style indicated by the selected variational embedding 220. The trained TTS model 300 provides the predicted mel-frequency spectrogram sequence 302 of the input text utterance 320 to the synthesizer 155 for conversion into a time-domain audio waveform indicative of a synthetic speech 152. The synthetic speech 152 may be audibly output as a verbal representation of the input text utterance 320, including the intended prosody / style indicated by the selected variational embedding 220.
[0058] 6 is a flow chart of an exemplary configuration of operations of a computer-implemented method 600 for training a non-autoregressive TTS model. The method 600 includes, in step 602, receiving training data including a reference audio signal 201 and a corresponding input text sequence 206. The reference audio signal 201 includes spoken speech, and the input text sequence 206 corresponds to a transcript of the reference audio signal 201. The method 600 includes, in step 604, encoding the reference audio signal 201 into a variational embedding 220 using a residual encoder 180. The variational embedding 220 disentangles style / prosodic information from the reference audio signal 201. The method 600 includes, in step 606, encoding the input text sequence 206 into an encoded text sequence 219 using a text encoder 210. The method 600 includes, at step 608 , predicting, using a duration decoder 230 , a phoneme duration 240 for each phoneme in the input text sequence 206 based on the encoded text sequence 219 and the variational embeddings 220 .
[0059] The method 600 includes, in step 610, determining a phoneme duration loss 244 based on the predicted phoneme durations 240 and a reference phoneme duration 245 sampled from the reference audio signal 201 for each phoneme in the input text sequence 206. The method 600 includes, in step 612, generating one or more predicted mel-frequency spectrogram sequences 302 for the input text sequence 206 based on the output 238 of the duration decoder 230 as output from a spectrogram decoder 250 including a stack of self-attention blocks 252. The method 600 includes, in step 614, determining a final spectrogram loss 280 based on the one or more predicted mel-frequency spectrogram sequences 302 and the reference mel-frequency spectrogram sequences sampled from the reference audio signal 201. The method 600 includes, at step 616 , training the TTS model 300 based on the final spectrogram loss 280 and the corresponding phoneme duration loss 244 determined for each phoneme in the input text sequence 206 .
[0060] 7 is a flow chart of an exemplary configuration of operations of a computer-implemented method 700 for executing the trained non-autoregressive TTS model 300. The method 700 includes receiving a text utterance 320 to be synthesized into speech 152, at step 702. The method 700 includes encoding a sequence of phonemes extracted from the text utterance 320 into an encoded text sequence 219, at step 704, using a text encoder 210 of the non-autoregressive TTS model 300. The method 700 includes selecting a variational embedding 220 of the text utterance 320, at step 706. The variational embedding 220 specifies the intended prosody / style for synthesizing the text utterance 320 into speech 152. The method 700 includes, at step 708, predicting, for each phoneme in the sequence of phonemes, the phoneme duration 240 of the corresponding phoneme based on the encoded text sequence 219 and the selected variational embedding 220 using the duration decoder 230 of the non-autoregressive TTS model 300. The method 700 includes, at step 710, generating a predicted Mel-frequency spectrogram sequence 302 of the text utterance 320 based on the output 238 of the duration decoder 230 and the predicted phoneme duration 240 as output from a spectrogram decoder 250 of the non-autoregressive TTS model 300 including a stack of self-attention blocks 252. The predicted Mel-frequency spectrogram sequence 302 has the intended prosody / style specified by the selected variational embedding 220.
[0061] 8 is a schematic diagram of an exemplary computing device 800 that may be used to implement the systems and methods described herein. Computing device 800 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The components shown herein, their connections and relationships, and their functions are for illustrative purposes only and are not intended to limit the implementation of the invention(s) described and / or claimed herein.
[0062] The computing device 800 includes a processor 810, a memory 820, a storage device 830, a high-speed interface / controller 840 that connects to the memory 820 and a high-speed expansion port 850, and a low-speed interface / controller 860 that connects to a low-speed bus 870 and the storage device 830. Each of the components 810, 820, 830, 840, 850, and 860 are interconnected using various buses and may be mounted on a common motherboard or otherwise as needed. The processor 810 can process instructions for execution within the computing device 800, including instructions stored in the memory 820 or the storage device 830, to display graphical information for a graphical user interface (GUI) of an external input / output device such as a display 880 connected to the high-speed interface 840. In other implementations, multiple processors and / or multiple buses may be used as needed, along with multiple memories and types of memory. Also, multiple computing devices 800 may be connected, with each device providing a portion of the required operations (e.g., as a server bank, a group of blade servers, or a multi-processor system).
[0063] The memory 820 stores information non-transiently within the computing device 800. The memory 820 may be a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. The non-transient memory 820 may be a physical device used to temporarily or permanently store programs (e.g., sequences of instructions) or data (e.g., program state information) used by the computing device 800. Examples of non-volatile memory include, but are not limited to, flash memory and read-only memory (ROM) / programmable read-only memory (PROM) / erasable programmable read-only memory (EPROM) / electronically erasable programmable read-only memory (EEPROM) (e.g., typically used for firmware such as boot programs). Examples of volatile memory include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), phase change memory (PCM), as well as disks or tapes.
[0064] The storage device 830 can provide mass storage for the computing device 800. In some implementations, the storage device 830 is a computer-readable medium. In various different implementations, the storage device 830 can be a floppy disk device, a hard disk device, an optical disk device, or a tape device, a flash memory or other similar solid-state memory device, or an array of devices including devices in a storage area network or other configuration. In additional implementations, the computer program product is embodied in an information carrier. The computer program product includes instructions that, when executed, perform one or more methods as described above. The information carrier is a computer-readable medium or a machine-readable medium, such as the memory 820, the storage device 830, or a memory on the processor 810.
[0065] The high-speed controller 840 manages the bandwidth-intensive operations of the computing device 800, while the low-speed controller 860 manages the less bandwidth-intensive operations. Such assignment of duties is merely an example. In some implementations, the high-speed controller 840 is coupled to a memory 820, a display 880 (e.g., through a graphics processor or accelerator), and a high-speed expansion port 850 that can accept various expansion cards (not shown). In some implementations, the low-speed controller 860 is coupled to a storage device 830 and a low-speed expansion port 890. The low-speed expansion port 890, which may include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), may be coupled, for example, through a network adapter to one or more input / output devices such as a keyboard, pointing device, scanner, or a networking device such as a switch or router.
[0066] The computing device 800, as shown in the figure, can be implemented in many different forms: for example, it can be implemented as a standard server 800a, or multiple times in a group of such servers 800a, as a laptop computer 800b, or as part of a rack server system 800c.
[0067] Various implementations of the systems and techniques described herein may be realized in digital electronic and / or optical circuitry, integrated circuits, specially designed ASICs (application-specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs executable and / or interpretable on a programmable system that includes at least one programmable processor, which may be special-purpose or general-purpose, coupled to receive data and instructions from and transmit data and instructions to a storage system, at least one input device, and at least one output device.
[0068] A software application (i.e., a software resource) may refer to computer software that causes a computing device to perform a task. In some examples, a software application may be referred to as an "application," an "app," or a "program." Examples of applications include, but are not limited to, system diagnostic applications, system management applications, system maintenance applications, word processing applications, spreadsheet applications, messaging applications, media streaming applications, social networking applications, and gaming applications.
[0069] These computer programs (also known as programs, software, software applications, or codes) contain machine instructions for a programmable processor and may be implemented in high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, non-transitory computer-readable medium, apparatus and / or device (e.g., magnetic disk, optical disk, memory, programmable medium logic device (PLD)) used to provide machine instructions and / or data to a programmable processor including a machine-readable medium that receives the machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0070] The processes and logic flows described herein can be implemented by one or more programmable processors, also referred to as data processing hardware, which execute one or more computer programs to perform functions by operating on input data to generate output. The processes and logic flows can also be implemented by special purpose logic circuitry, such as, for example, an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). Processors suitable for executing computer programs include, by way of example, both general purpose and special purpose microprocessors, and any one or more processors of any type of digital computer. In general, a processor receives instructions and data from a read-only memory, a random access memory, or both. The essential elements of a computer are a processor for performing instructions and one or more memory devices for storing instructions and data. In general, a computer also includes one or more mass storage devices, such as magnetic, magneto-optical, or optical disks, for storing data, or is operatively coupled to receive data from or transfer data to them, or both. However, a computer need not be equipped with such devices. Computer-readable media suitable for storing computer program instructions and data include, by way of example, all types of non-volatile memory, media, and memory devices, including semiconductor memory devices such as EPROM, EEPROM, flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD-ROM and DVD-ROM disks. The processor and the memory may be supplemented by, or incorporated in, special purpose logic circuitry.
[0071] To provide for user interaction, one or more aspects of the present disclosure can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube), LCD (liquid crystal display) monitor, or touch screen, for displaying information to the user, and optionally a keyboard and pointing device, e.g., a mouse or trackball, by which the user can provide input to the computer. Other types of devices can also be used to provide for user interaction, e.g., feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and input from the user can be received in any form, including acoustic, speech, or tactile input, etc. Additionally, the computer can interact with the user by sending and receiving documents to and from a device used by the user, e.g., by sending a web page to a web browser on the user's client device in response to a request received from the web browser.
[0072] A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the disclosure. Accordingly, other implementations are within the scope of the appended claims. [Explanation of symbols]
[0073] 10 User Computing Devices 100 Systems 120 Computing Systems 122 Data Processing Hardware 124 Memory Hardware 152 Synthetic Voice 155 Synthesizer 155 Vocoder Network 180 Residual Encoder 185 Data Storage 200 Deep Neural Networks 200 Non-autoregressive Neural Networks 201 Reference Audio Signal 202 Reference Mel-Frequency Spectrogram Sequence 205 Speaker Identity 206 Input Text Sequence 207 Token Embedding Lookup Table 208 Encoder Prenet Neural Network 209 Transformed Embedding 210 Text Encoder 212 Convolution (Conv) Block 213 Convolution Output 214 Adder 215 Input 216 Position Embedding 218 Self-Attention Block 219 Text Encoding Sequences 219 Encoded Text Sequence 220 Variational Embedding 222 Coupler 224 Consolidated 230 Duration Decoder 232 Self-Attention Block 234 Sigmoid Activation 234 Projection 235 Non-zero Duration 236 Soft Plus Activation 236 Projection 237 Continuous phoneme duration 238 Output 240 Phoneme Duration 242 Cross-entropy (CE) loss term 244 L1 loss term 245 Reference Phoneme Duration 246 upsampling layers 248 Weighting Layer 249 Position Weight 250 Spectrogram Decoder 252 Self-Attention Block 252a~n Self-attention block 252a Self-Attention Block 252b Self-Attention Block 252n Self-Attention Block 253 Output 254 Projection layer 254a~n Projection layer 270 Spectrogram Loss 270a~n Spectrogram Loss 270b Second Spectrogram Loss 280 Final Spectrogram Loss 300 Non-autoregressive Neural TTS Models 302 Mel-frequency spectrogram sequence 302 Predicted Spectrogram 302a first predicted Mel-frequency spectrogram sequence 302a~n Mel-frequency spectrogram sequence 320 Text to speech 320 Input Text to Speech Schematic diagram of 400 Conv Block 400a Global VAE Network 402 Conv layer 404 Batch normalization layer 406 Dropout Layer 410 First Stack 420 Second Stack 430 Projection layer 500 LConv block schematic 500 LConv Blocks 502 Gated Linear Unit (GLU) layer 504 LConv layer 506 Feedforward (FF) Layer 508 1st Remaining Connection 508 First Coupler 510 Second Remainder Connection 510 Second Coupler 600 Computer Implementation Methods 700 Computer Implementation Methods 800 computing devices 800a Standard Server 800b Laptop Computer 800c Rack Server System 810 Processor 820 Memory 830 Storage Devices 840 High Speed Interface / Controller 850 High Speed Expansion Port 860 Low Speed Interface / Controller 870 Slow Bus 880 Display 890 Low Speed Expansion Port
Claims
1. 1. A computer-implemented method (600) that, when executed on data processing hardware (122), causes the data processing hardware (122) to perform operations for training a non-autoregressive text-to-speech (TTS) model (300), the operations comprising: receiving training data including a reference audio signal (201) and a corresponding input text sequence (206), the reference audio signal (201) comprising spoken speech and the input text sequence (206) corresponding to a transcript of the reference audio signal (201); encoding the reference audio signal (201) into a variational embedding (220) using a residual encoder (180), the variational embedding (220) disentangling style / prosodic information from the reference audio signal (201); encoding said input text sequence (206) into an encoded text sequence (219) using a text encoder (210); predicting, using a duration decoder (230), a phoneme duration (240) for each phoneme in the input text sequence (206) based on the encoded text sequence (219) and the variational embeddings (220); determining a phoneme duration loss (244) based on the predicted phoneme durations (240) and on reference phoneme durations (245) sampled from the reference audio signal (201) for each phoneme in the input text sequence (206); generating, as output from a spectrogram decoder (250) comprising a stack of self-attention blocks (252), one or more predicted Mel-frequency spectrogram sequences (302) for the input text sequence (206) based on the output of the duration decoder (230); determining a final spectrogram loss (280) based on the one or more predicted Mel-frequency spectrogram sequences (302) and a reference Mel-frequency spectrogram sequence (202) sampled from the reference audio signal (201); training the TTS model (300) based on the final spectrogram loss (280) and the corresponding phoneme duration loss (244) determined for each phoneme in the input text sequence (206); A computer-implemented method (600) comprising:
2. 2. The computer-implemented method of claim 1, wherein each self-attention block in the stack of self-attention blocks comprises an identical lightweight convolution (LConv) block.
3. 2. The computer-implemented method of claim 1, wherein each self-attention block in the stack of self-attention blocks comprises an identical transformer block.
4. 4. The computer-implemented method of claim 1, wherein the input text sequence comprises words each having one or more phonemes, silence at all word boundaries, and punctuation.
5. the residual encoder (180) comprises a global variational autoencoder (VAE); The step of encoding the reference audio signal (201) into the variational embedding (220) comprises: Sampling the reference Mel-frequency spectrogram sequence (202) from the reference audio signal (201); encoding the reference Mel-frequency spectrogram sequence (202) into the variational embedding (220) using the global VAE; 5. The computer-implemented method (600) of claim 1, comprising:
6. the residual encoder (180) comprises a phoneme-level fine-grained variational autoencoder (VAE); The step of encoding the reference audio signal (201) into the variational embedding (220) comprises: Sampling the reference Mel-frequency spectrogram sequence (202) from the reference audio signal (201); aligning said reference Mel-frequency spectrogram sequence (202) with each phoneme in a sequence of phonemes extracted from said input text sequence (206); encoding a sequence of phoneme-level variational embeddings (220) based on aligning the reference Mel-frequency spectrogram sequence with each phoneme in the sequence of phonemes using the phoneme-level fine-grained VAE; 5. The computer-implemented method (600) of claim 1, comprising:
7. The residual encoder (180) comprises a stack of lightweight convolution (LConv) blocks (410, 420), each LConv block (410, 420) in the stack of LConv blocks (410, 420) comprising: a gated linear unit (GLU) layer (502); an LConv layer (504) configured to receive the output of the GLU layer (502); a remainder connection (508) configured to connect an output of the LConv layer (504) with an input to the GLU layer (502); a final feedforward layer (506) configured to receive as input the residual connection (508) connecting the output of the LConv layer (504) with the input to the GLU layer (502); 7. The computer-implemented method (600) of any one of claims 1 to 6, comprising:
8. The operation, upsampling the output of the duration decoder (230) to a number of frames using the reference phoneme durations (240) sampled from the reference audio signal (201) for each phoneme in the input text sequence (206); obtaining position embeddings (216) representing phoneme position information for each phoneme in the input text utterance (320); Further equipped with 8. The computer-implemented method (600) of claim 1, wherein generating the one or more predicted Mel-frequency spectrogram sequences (302) for the input text sequence (206) is based on the position embedding (216) and the upsampling of the output of the duration decoder (230) to the number of frames.
9. generating the one or more predicted mel-frequency spectrogram sequences (302) for the input text sequence (206) comprises generating a respective predicted mel-frequency spectrogram sequence (302) as output from each self-attention block (252) in the stack of self-attention blocks (252) of the spectrogram decoder (250); The step of determining the final spectrogram loss (280) comprises: determining, for each predicted Mel-frequency spectrogram sequence (302), a respective spectrogram loss (270) based on said predicted Mel-frequency spectrogram sequence (302) and said reference Mel-frequency spectrogram sequence (202); aggregating the respective spectrogram losses (270) determined for the predicted Mel-frequency spectrogram sequence (302) to generate the final spectrogram loss (280); 9. The computer-implemented method (600) of any one of claims 1 to 8, comprising:
10. said duration decoder (230) comprising a stack of self-attention blocks (232) followed by two independent projections; Predicting the phoneme duration (240) for each phoneme in the input text sequence (206) comprises: predicting a probability of a non-zero duration for each phoneme using a sigmoid activation (234) following a first of the two independent projections; predicting the phoneme duration (240) for each phoneme using a soft-plus activation (236) following a second of the two independent projections; 10. The computer-implemented method (600) of any one of claims 1 to 9, comprising:
11. The operation comprises, for each phoneme: determining whether the probability of a predicted non-zero duration for the corresponding phoneme is less than a threshold; setting the predicted phoneme duration (240) for the corresponding phoneme to zero if the probability of a non-zero duration is less than the threshold. The computer-implemented method (600) of claim 10, further comprising:
12. The operation, concatenating the encoded text sequence (219), the variational embeddings (220), and a reference speaker embedding representing the identity of a reference speaker that produced the reference audio signal (201); generating the output of the duration decoder (230) based on receiving as input the encoded text sequence (219), the variational embeddings (220), and the concatenation (224) of the reference speaker embeddings; 12. The computer-implemented method (600) of any one of claims 1 to 11, further comprising:
13. the input text sequence (206) comprises a sequence of phonemes; encoding the input text sequence (206) into the encoded text sequence (219), receiving from a phoneme lookup table (208) an embedding for each phoneme in the sequence of phonemes; for each phoneme in the sequence of phonemes, processing the respective embeddings using an Encoder PreNet neural network (207) of the text encoder (210) to generate a transformed embedding (209) for each of the phonemes; processing each transformed embedding (209) using a bank of convolution blocks (212) to generate a convolution output (213); processing the convolution output (213) using a stack of self-attention blocks (218) to generate the encoded text sequence (219); 13. The computer-implemented method (600) of any one of claims 1 to 12, comprising:
14. 1. A system (100) for training a non-autoregressive text-to-speech (TTS) model, comprising: Data processing hardware (122); memory hardware (124) in communication with said data processing hardware (122); When the memory hardware (124) is executed by the data processing hardware (122), the data processing hardware (122) is receiving training data including a reference audio signal (201) and a corresponding input text sequence (206), the reference audio signal (201) comprising spoken speech and the input text sequence (206) corresponding to a transcript of the reference audio signal (201); encoding the reference audio signal (201) into a variational embedding (220) using a residual encoder (180), the variational embedding (220) disentangling style / prosodic information from the reference audio signal (201); encoding said input text sequence (206) into an encoded text sequence (219) using a text encoder (210); predicting, using a duration decoder (230), a phoneme duration (240) for each phoneme in the input text sequence (206) based on the encoded text sequence (219) and the variational embeddings (220); determining a phoneme duration loss (244) based on the predicted phoneme durations (240) and reference phoneme durations (245) sampled from the reference audio signal (201) for each phoneme in the input text sequence (206); generating one or more predicted Mel-frequency spectrogram sequences (302) for the input text sequence (206) based on the output of the duration decoder (230) as output from a spectrogram decoder (250) comprising a stack of self-attention blocks (252); determining a final spectrogram loss (280) based on the one or more predicted Mel-frequency spectrogram sequences (302) and a reference Mel-frequency spectrogram sequence (202) sampled from the reference audio signal (201); training the TTS model (300) based on the final spectrogram loss (280) and the corresponding phoneme duration loss (244) determined for each phoneme in the input text sequence (206); A system (100) storing instructions for performing operations comprising:
15. 15. The system of claim 14, wherein each self-attention block in the stack of self-attention blocks comprises an identical lightweight convolution (LConv) block.
16. 15. The system (100) of claim 14, wherein each self-attention block (252) in the stack of self-attention blocks (252) comprises an identical transformer block.
17. 17. The system (100) of any one of claims 14 to 16, wherein the input text sequence (206) comprises words each having one or more phonemes, silence at all word boundaries, and punctuation.
18. the residual encoder (180) comprises a global variational autoencoder (VAE); encoding the reference audio signal (201) into the variational embedding (220), sampling the reference Mel-frequency spectrogram sequence (202) from the reference audio signal (201); encoding the reference Mel-frequency spectrogram sequence (202) into the variational embedding (220) using the global VAE; The system (100) according to any one of claims 14 to 17, comprising:
19. the residual encoder (180) comprises a phoneme-level fine-grained variational autoencoder (VAE); encoding the reference audio signal (201) into the variational embedding (220), sampling the reference Mel-frequency spectrogram sequence (202) from the reference audio signal (201); aligning the reference mel-frequency spectrogram sequence (202) with each phoneme in a sequence of phonemes extracted from the input text sequence (206); encoding a sequence of phoneme-level variational embeddings (220) based on aligning the reference Mel-frequency spectrogram sequence (202) with each phoneme in the sequence of phonemes using the phoneme-level fine-grained VAE; The system (100) according to any one of claims 14 to 17, comprising:
20. The residual encoder (180) comprises a stack of lightweight convolution (LConv) blocks (410, 420), each LConv block (410, 420) in the stack of LConv blocks (410, 420) comprising: a gated linear unit (GLU) layer (502); an LConv layer (504) configured to receive the output of the GLU layer (502); a remainder connection (508) configured to connect an output of the LConv layer (504) with an input to the GLU layer (502); a final feedforward layer (506) configured to receive as input the residual connection (508) connecting the output of the LConv layer (504) with the input to the GLU layer (502); The system (100) according to any one of claims 14 to 19, comprising:
21. The operation, upsampling the output of the duration decoder (230) to a number of frames using the reference phoneme durations (240) sampled from the reference audio signal (201) for each phoneme in the input text sequence (206); Obtaining position embeddings (216) representing phoneme position information for each phoneme in the input text utterance (320); Further equipped with 21. The system (100) of claim 14, wherein generating the one or more predicted Mel-frequency spectrogram sequences (302) for the input text sequence (206) is based on the position embedding (216) and the upsampling of the output of the duration decoder (230) to the number of frames.
22. generating the one or more predicted mel-frequency spectrogram sequences (302) for the input text sequence (206) comprises generating a respective predicted mel-frequency spectrogram sequence (302) as output from each self-attention block (252) in the stack of self-attention blocks (252) of the spectrogram decoder (250); Determining the final spectrogram loss (280) comprises: determining, for each predicted Mel-frequency spectrogram sequence (302), a respective spectrogram loss (270) based on said predicted Mel-frequency spectrogram sequence (302) and said reference Mel-frequency spectrogram sequence (202); aggregating the respective spectrogram losses (270) determined for the predicted Mel-frequency spectrogram sequence (302) to generate the final spectrogram loss (280); The system (100) according to any one of claims 14 to 21, comprising:
23. said duration decoder (230) comprising a stack of self-attention blocks (232) followed by two independent projections; Predicting the phoneme duration (240) for each phoneme in the input text sequence (206), predicting a probability of a non-zero duration for each phoneme using a sigmoid activation (234) following a first of the two independent projections; predicting the phoneme duration (240) for each phoneme using a soft-plus activation (236) following a second of the two independent projections; The system (100) according to any one of claims 14 to 22, comprising:
24. The operation comprises, for each phoneme: determining whether the probability of a predicted non-zero duration for the corresponding phoneme is less than a threshold; zeroing the predicted phoneme duration (240) for the corresponding phoneme if the probability of a non-zero duration is less than the threshold; 24. The system (100) of claim 23, further comprising:
25. The operation, Concatenating the encoded text sequence (219), the variational embeddings (220), and a reference speaker embedding representing the identity of a reference speaker who produced the reference audio signal (201); generating the output of the duration decoder (230) based on receiving as input the encoded text sequence (219), the variational embeddings (220), and the concatenation (224) of the reference speaker embeddings; 25. The system (100) of any one of claims 14 to 24, further comprising:
26. the input text sequence (206) comprises a sequence of phonemes; encoding the input text sequence (206) into the encoded text sequence (219), receiving from a phoneme lookup table (208) an embedding for each phoneme in the sequence of phonemes; for each phoneme in the sequence of phonemes, processing the respective embeddings using an Encoder PreNet neural network (207) of the text encoder (210) to generate transformed embeddings (209) for each of the phonemes; processing each transformed embedding (209) using a bank of convolution blocks (212) to generate a convolution output (213); processing the convolution output (213) using a stack of self-attention blocks (218) to generate the encoded text sequence (219); The system (100) according to any one of claims 14 to 25, comprising:
Citation Information
Patent Citations
Device, method and program for voice synthesis
JP2013171196A
Systems and methods for neural voice cloning with a few samples
US20190251952A1
Clockwork Hierarchical Variational Encoder
US20200074985A1
