Generating audio using autoregressive generative neural networks
Through autoregressive generation neural network combined with semantic and acoustic representation, the problem of difficulty in long-term coherence and diversification of audio signal generation in the prior art is solved, and high-quality, semantic coherent audio generation is achieved, which is suitable for audio generation of diverse speakers. .
Patent Information
- Application Number
- CN202410903951.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-01-26
- Filing Date
- 2023-09-07
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2043-09-07
AI Technical Summary
The prior art is difficult to generate long-term coherent and high-quality audio signals, especially in the absence of conditionalization or text annotation, which makes it difficult for conventional systems to generate semantic coherent speech, and conventional systems are usually based on the voice of a single speaker. Training is performed, and speech that retains diverse speakers cannot be generated.
Using autoregressive generation neural networks, the audio signal is generated through a combination of semantic representation and acoustic representation, and the acoustic representation is processed using a decoder neural network to generate predictions of audio signals. The system is able to capture local dependencies and long-term without text annotations. Semantic information and generate audio with speech continuity.
It realizes the generation of syntactic and semantic coherent speech without text annotations, which can retain the voice and tone of a diverse speaker, generate high-quality and structurally coherent audio signals, and improves the robustness and computing efficiency of audio generation.
Smart Images

Figure CN118887971A_ABST
Abstract
Description
Description of the case This application is a divisional application of Chinese invention patent application No. 202380015080.5, with an application date of September 7, 2023. CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority to U.S. Provisional Application No. 63 / 404,528 filed on September 7, 2022 and U.S. Provisional Application No. 63 / 441,412 filed on January 26, 2023. The disclosures of the prior applications are considered part of and incorporated by reference into the disclosure of the present application. Technical Field
[0002] This application relates to the use of autoregressive generative neural networks to generate audio. Background Art
[0003] A neural network is a machine learning model that uses one or more layers of nonlinear units to predict the output of a received input. In addition to the output layer, some neural networks also include one or more hidden layers. The output of each hidden layer is used as the input of the next layer in the network (i.e., the next hidden layer or output layer). Each layer of the network generates an output from the received input according to the current value input of the corresponding set of parameters. Summary of the invention
[0004] This specification describes a system implemented as a computer program on one or more computers in one or more locations that generates audio signals using one or more generative neural networks.
[0005] Generally speaking, the output audio signal is an output audio example, which includes a sample of an audio wave at each output time step in a series of output time steps spanning a specified time window. For example, the output time steps may be arranged at regular intervals within the specified time window.
[0006] The audio samples at a given output time step may be the amplitude values of the audio wave or amplitude values that have been compressed, companded, or both. For example, the audio samples may be original amplitude values or mu-law companded representations of the amplitude values.
[0007] According to a first aspect, there is provided a computer-implemented method for generating a prediction of an audio signal, the method comprising: receiving a request to generate an audio signal having a corresponding audio sample at each of a plurality of output time steps spanning a time window; obtaining a semantic representation of the audio signal, the semantic representation specifying a corresponding semantic word-gram at each of a plurality of first time steps spanning the time window, each semantic word-gram being selected from a vocabulary of semantic word-grams and representing a semantic content of the audio signal at the corresponding first time step; generating an acoustic representation of the audio signal conditioned on at least the semantic representation using one or more generative neural networks, the acoustic representation specifying a set of one or more corresponding acoustic word-grams at each of a plurality of second time steps spanning the time window, the one or more corresponding acoustic word-grams at each second time step representing an acoustic characteristic of the audio signal at the corresponding second time step; and processing at least the acoustic representation using a decoder neural network to generate the prediction of the audio signal.
[0008] In some implementations, the decoder neural network is a decoder neural network of a neural audio codec that has been jointly trained with an encoder neural network based on an objective that measures a reconstruction quality of a predicted audio signal generated by the decoder neural network from an acoustic representation generated using outputs generated by the encoder neural network.
[0009] In some implementations, the acoustic representation is a prediction of a real-valued acoustic representation that an encoder neural network would generate by processing an output of the audio signal.
[0010] In some implementations, the encoder neural network outputs a corresponding embedding at each second time step of the plurality of second time steps, and wherein the real-valued acoustic representation is generated by applying quantization to each of the corresponding embeddings.
[0011] In some implementations, the quantization is residual vector quantization, which encodes each embedding using a hierarchy of multiple vector quantizers, each of which generates a corresponding acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer, wherein the hierarchy includes one or more coarse vector quantizers located at a first one or more positions in the hierarchy and one or more fine vector quantizers located at a last one or more positions in the hierarchy, and the set of the one or more corresponding acoustic word-grams at each second time step includes, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer and being a prediction of a real-valued acoustic word-gram that would be generated by the vector quantizer from a real-valued embedding generated by the encoder neural network at the second time step.
[0012] In some implementations, the set of one or more corresponding acoustic word-grams at each second time step of the plurality of second time steps includes a plurality of acoustic word-grams that collectively represent a prediction of an output of a residual vector quantization applied to an embedding, the embedding representing an acoustic characteristic of the audio signal at the second time step, the residual vector quantization encoding the embedding using a hierarchy of multiple vector quantizers, each of the multiple vector quantizers generating a corresponding acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer, wherein the hierarchy includes one or more coarse vector quantizers located at a first one or more positions in the hierarchy and one or more fine vector quantizers located at a last one or more positions in the hierarchy, and the set of acoustic word-grams at each second time step includes, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer.
[0013] In some implementations, generating the acoustic representation of the audio signal using one or more generative neural networks conditioned on at least the semantic representation includes: for each of the one or more coarse vector quantizers in the hierarchy, generating a corresponding acoustic word-meta for the second time step of the vector quantizer using a first generative neural network conditioned on at least the semantic representation.
[0014] In some implementations, the first generative neural network is an autoregressive neural network configured to autoregressively generate the acoustic word-grams according to a first generation order, and wherein each particular acoustic word-gram of each particular coarse vector quantizer at each particular second time step is conditioned on at least the semantic representation and any acoustic word-gram that precedes the particular acoustic word-gram in the first generation order.
[0015] In some implementations, each particular acoustic word-element at each particular second time step of each particular coarse vector quantizer is after the following acoustic words-element in the first generation order: (i) any acoustic word-element at any second time step of any coarse vector quantizer among the coarse vector quantizers before the particular second time step, and (ii) any acoustic word-element at the particular second time step of any coarse vector quantizer before the particular vector quantizer in the hierarchy.
[0016] In some implementations, the first generative neural network has a decoder-only Transformer architecture or an encoder-decoder Transformer architecture.
[0017] In some implementations, generating the acoustic representation of the audio signal using one or more generative neural networks conditioned on at least the semantic representation includes: for each of the one or more fine vector quantizers in the hierarchy, generating the corresponding acoustic word-gram of the second time step of the vector quantizer using a second generative neural network conditioned on the corresponding acoustic word-gram of the second time step of the one or more coarse vector quantizers in the hierarchy.
[0018] In some implementations, the second generative neural network is not conditioned on the semantic representation.
[0019] In some implementations, the second generative neural network is an autoregressive neural network configured to autoregressively generate the acoustic word-grams according to a second generation order, and wherein each particular acoustic word-gram of each particular fine vector quantizer at each particular second time step is conditioned on: (i) corresponding acoustic word-grams of at least a subset of the second time steps of the one or more coarse vector quantizers, and (ii) at least a subset of the acoustic word-grams that precede the particular acoustic word-gram in the second generation order.
[0020] In some implementations, each specific acoustic word-element of each specific fine vector quantizer at each specific second time step is after the following acoustic words-element in the second generation order: (i) any acoustic word-element of any fine vector quantizer among the fine vector quantizers at any second time step before the specific second time step, and (ii) any acoustic word-element of any fine vector quantizer before the specific vector quantizer in the hierarchy at the specific second time step.
[0021] In some implementations, each particular acoustic word-element of each particular fine vector quantizer at each particular second time step is conditioned on: (i) the corresponding acoustic word-element of the one or more coarse vector quantizers at a second time step that is at most a threshold number of second time steps prior to the second time step, and (ii) any acoustic word-element at a second time step that precedes the particular second time step and is at most a threshold number of second time steps prior to the second time step in the second generation order.
[0022] In some implementations, the second generative neural network has a decoder-only Transformer architecture or an encoder-decoder Transformer architecture.
[0023] In some implementations, obtaining the semantic representation of the audio signal includes: using a third generative neural network to autoregressively generate the semantic representation.
[0024] In some implementations, the request specifies a context of the audio signal and the audio signal is conditioned on the context.
[0025] In some implementations, the context specifies semantic properties of the audio signal, and obtaining a semantic representation of the audio signal includes generating the semantic representation conditioned on the context.
[0026] In some implementations, the context specifies acoustic characteristics of the audio signal, and generating an acoustic representation of the audio signal using one or more generative neural networks conditioned on at least the semantic representation includes generating an acoustic representation of the audio signal using one or more generative neural networks conditioned on the semantic representation and the context.
[0027] In some implementations, for each of the one or more coarse vector quantizers in the hierarchy, using a first generative neural network to generate a corresponding acoustic word-gram for the second time step of the vector quantizer conditioned on at least the semantic representation includes: for each of the one or more coarse vector quantizers in the hierarchy, using a first generative neural network to generate a corresponding acoustic word-gram for the second time step of the vector quantizer conditioned on the semantic representation and the context.
[0028] In some implementations, processing at least the acoustic representation using a decoder neural network to generate the prediction of the audio signal includes processing the acoustic representation and an acoustic representation of the context using the decoder neural network to generate the prediction of the audio signal.
[0029] In some implementations, the context includes audio input.
[0030] In some implementations, the context includes visual data.
[0031] In some implementations, the text includes text data.
[0032] In some implementations, the number of first time steps and the number of second time steps spanning the time window are less than the number of output time steps spanning the time window.
[0033] In some implementations, the number of the first time steps spanning the time window is less than the number of the second time steps spanning the time window.
[0034] According to a second aspect, there is provided a computer-implemented method for generating a prediction of an audio signal, the method comprising: receiving a request to generate an audio signal conditioned on an input, the audio signal having a corresponding audio sample at each of a plurality of output time steps spanning a time window; processing the input using an embedding neural network to map the input to one or more embedded word-grams; generating a semantic representation of the audio signal, the semantic representation specifying a corresponding semantic word-gram at each of a plurality of first time steps spanning the time window, each semantic word-gram being derived from a semantic word-gram conditioned on the embedded word-gram; The method comprises the steps of: generating an acoustic representation of the audio signal using one or more generative neural networks conditioned on at least the semantic representation and the embedded word-grams, the acoustic representation specifying a set of one or more corresponding acoustic word-grams at each second time step in a plurality of second time steps spanning the time window, the one or more corresponding acoustic word-grams at each second time step representing an acoustic characteristic of the audio signal at the corresponding second time step; and processing at least the acoustic representation using a decoder neural network to generate the prediction of the audio signal.
[0035] In some implementations, processing the input using an embedding neural network to map the input to one or more embedded word-grams includes: generating an embedding vector for the input in a joint embedding space using the embedding neural network; and quantizing the embedding vector to generate embedded word-grams.
[0036] In some implementations, the input includes a text sequence, and wherein the embedding neural network has been trained to map text and audio to a joint embedding space.
[0037] In some implementations, the input includes a text sequence, and the prediction of the audio signal is a prediction of music described by the text sequence.
[0038] In some implementations, the input further includes an audio signal representing a melody, and the prediction of the audio signal is a prediction of music described by the text sequence and following the melody.
[0039] In some implementations, the method further includes: processing the audio signal using a melody embedding neural network to map the audio signal to one or more melody embedding tokens; and concatenating the melody embedding tokens with the embedding tokens.
[0040] In some implementations, the input includes an audio signal representing a melody, and the prediction of the audio signal is a prediction of music that follows the melody.
[0041] In some implementations, the method further includes: processing the audio signal using a melody embedding neural network to map the audio signal to one or more melody embedding tokens; and wherein each semantic token is selected from a semantic token vocabulary conditioned on the melody embedding token.
[0042] In some implementations, processing the audio signal using a melody embedding neural network to map the audio signal to one or more melody embedding words includes: using the melody embedding neural network to generate one or more melody embedding vectors for the audio signal in a joint embedding space; and quantizing the one or more melody embedding vectors to generate melody embedding words.
[0043] In some implementations, the text sequence includes a plurality of text subsequences, and the prediction of the audio signal is a prediction of music having music segments corresponding to and reflecting each of the subsequences.
[0044] In some implementations, the embedded neural network is trained based on training data including an audio signal.
[0045] In some implementations, the embedding neural network has been trained based on a target such that the text describing the audio signal and the corresponding audio signal have embeddings that are close to each other in the joint embedding space.
[0046] In some implementations, the decoder neural network is a decoder neural network of a neural audio codec that has been jointly trained with an encoder neural network based on an objective that measures a reconstruction quality of a predicted audio signal generated by the decoder neural network from an acoustic representation generated using outputs generated by the encoder neural network.
[0047] In some implementations, the acoustic representation is a prediction of a real-valued acoustic representation that an encoder neural network would generate by processing an output of the audio signal.
[0048] In some implementations, the encoder neural network outputs a corresponding embedding at each second time step of the plurality of second time steps, and wherein the real-valued acoustic representation is generated by applying quantization to each of the corresponding embeddings.
[0049] In some implementations, the quantization is residual vector quantization, which encodes each embedding using a hierarchy of multiple vector quantizers, each of which generates a corresponding acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer, wherein the hierarchy includes one or more coarse vector quantizers located at a first one or more positions in the hierarchy and one or more fine vector quantizers located at a last one or more positions in the hierarchy, and the set of the one or more corresponding acoustic word-grams at each second time step includes, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer and being a prediction of a real-valued acoustic word-gram that would be generated by the vector quantizer from a real-valued embedding generated by the encoder neural network at the second time step.
[0050] In some implementations, the set of one or more corresponding acoustic word-grams at each second time step of the plurality of second time steps includes a plurality of acoustic word-grams that collectively represent a prediction of an output of a residual vector quantization applied to an embedding, the embedding representing an acoustic characteristic of the audio signal at the second time step, the residual vector quantization encoding the embedding using a hierarchy of multiple vector quantizers, each of the multiple vector quantizers generating a corresponding acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer, wherein the hierarchy includes one or more coarse vector quantizers located at a first one or more positions in the hierarchy and one or more fine vector quantizers located at a last one or more positions in the hierarchy, and the set of acoustic word-grams at each second time step includes, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer.
[0051] In some implementations, generating the acoustic representation of the audio signal using one or more generative neural networks conditioned on at least the semantic representation and the embedded word-metabytes includes: for each of the one or more coarse vector quantizers in the hierarchy, generating a corresponding acoustic word-metabyte for the second time step of the vector quantizer using a first generative neural network conditioned on at least the semantic representation and the embedded word-metabytes.
[0052] In some implementations, the first generative neural network is an autoregressive neural network configured to autoregressively generate the acoustic word-grams according to a first generation order, and wherein each particular acoustic word-gram of each particular coarse vector quantizer at each particular second time step is conditioned on at least the semantic representation and the embedded word-gram and any acoustic word-gram that precedes the particular acoustic word-gram in the first generation order.
[0053] In some implementations, each particular acoustic word-element of each particular coarse vector quantizer at each particular second time step is after the following acoustic words-element in the generation order: (i) any acoustic word-element of any coarse vector quantizer among the coarse vector quantizers at any second time step before the particular second time step, and (ii) any acoustic word-element of any coarse vector quantizer before the particular vector quantizer in the hierarchy at the particular second time step.
[0054] In some implementations, the first generative neural network has a decoder-only Transformer architecture or an encoder-decoder Transformer architecture.
[0055] In some implementations, generating the acoustic representation of the audio signal using one or more generative neural networks conditioned on at least the semantic representation and the embedded word-grams includes: for each of the one or more fine vector quantizers in the hierarchy, generating the corresponding acoustic word-grams of the second time step of the vector quantizer using a second generative neural network conditioned on the corresponding acoustic word-grams of the second time step of the one or more coarse vector quantizers in the hierarchy.
[0056] In some implementations, the second generative neural network is not conditioned on the semantic representation and the embedded word.
[0057] In some implementations, the second generative neural network is an autoregressive neural network configured to autoregressively generate the acoustic word-grams according to a second generation order, and wherein each particular acoustic word-gram of each particular fine vector quantizer at each particular second time step is conditioned on: (i) corresponding acoustic word-grams of at least a subset of the second time steps of the one or more coarse vector quantizers, and (ii) at least a subset of the acoustic word-grams that precede the particular acoustic word-gram in the second generation order.
[0058] In some implementations, each specific acoustic word-element of each specific fine vector quantizer at each specific second time step is after the following acoustic words-element in the generation order: (i) any acoustic word-element of any fine vector quantizer among the fine vector quantizers at any second time step before the specific second time step, and (ii) any acoustic word-element of any fine vector quantizer before the specific vector quantizer in the hierarchy at the specific second time step.
[0059] In some implementations, each particular acoustic word-element of each particular fine vector quantizer at each particular second time step is conditioned on: (i) the corresponding acoustic word-element of the one or more coarse vector quantizers at a second time step that is at most a threshold number of second time steps prior to the second time step, and (ii) any acoustic word-element at a second time step that precedes the particular second time step and is at most a threshold number of second time steps prior to the second time step in the second generation order.
[0060] In some implementations, the second generative neural network has a decoder-only Transformer architecture or an encoder-decoder Transformer architecture.
[0061] In some implementations, generating the semantic representation of the audio signal includes: using a third generative neural network to autoregressively generate the semantic representation using the embedded word as a conditioning signal.
[0062] In some implementations, the number of first time steps and the number of second time steps spanning the time window are less than the number of output time steps spanning the time window.
[0063] In some implementations, the number of the first time steps spanning the time window is less than the number of the second time steps spanning the time window.
[0064] In some implementations, the input comprises a text sequence, the embedding is an embedding in a joint embedding space, wherein the one or more generative neural networks have been trained at least in part based on audio-only training data, and wherein during the training, the semantic representation and the acoustic representation are conditioned on the embedding of the audio input in the joint embedding space.
[0065] According to another aspect, a system is also described, the system comprising: one or more computers; and one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform the method described herein.
[0066] According to another aspect, one or more computer-readable storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform the methods described herein are also described.
[0067] Particular embodiments of the subject matter described in this specification can be implemented so as to realize one or more of the following advantages.
[0068] The system described in this specification provides high-quality audio generation with long-term coherent structure. For example, to generate a prediction of an audio signal, the system may obtain a semantic representation of the audio signal. The semantic representation may ensure long-term consistency by representing features such as the language content of speech or the melody and rhythm of music. The system may use one or more generative neural networks to generate an acoustic representation of the audio signal based on the semantic representation. The acoustic representation may ensure high-quality audio synthesis by representing features such as acoustic details. The system may then process the acoustic representation using a decoder neural network to generate a prediction of the audio signal. Thus, the system may use information from both the semantic representation and the acoustic representation to generate high-quality and structurally coherent audio.
[0069] Conventional systems that generate audio may not be able to generate audio with coherent speech without conditioning or text annotations. The system described in this specification can generate syntactically and semantically coherent speech without any text annotations. For example, the system can use semantic representations to capture local dependencies (such as phonetics) and long-term semantic information (such as language content and temporal structure).
[0070] In addition, conventional systems for generating speech may generate speech with limited acoustic diversity or quality. For example, conventional systems may be trained based only on clean speech and generate speech in the voice of a single speaker. Other conventional systems may generate low-quality audio. The system described in this specification can generate speech continuations that retain the voice, intonation, and prosody of any unseen speaker. For example, the system can use acoustic representations to capture the speaker identity and recording conditions of an audio input given a context.
[0071] In some implementations, the audio generated by the system is music. For example, the system can generate a continuation of an audio input, the continuation comprising music that is coherent with the input in terms of melody, harmony, pitch, playing style, timbre, and rhythm. The system can use semantic representations to capture information such as harmony, rhythm, and melody. For example, the semantic representation can provide a melodic and temporal structure that is consistent with the prompt. The system can then use the semantic representation to guide the generation of an acoustic representation.
[0072] The system can save computing resources during training. For example, a decoder neural network that generates a prediction of an audio signal from an acoustic representation can be pre-trained and frozen before training one or more generative neural networks. An audio representation neural network that can be used to obtain a target semantic representation and a neural audio codec that can be used to obtain a target acoustic representation can also be pre-trained and frozen before training one or more generative neural networks. In addition, while conventional systems are trained based on clean audio speech samples, the system described in this specification shows strong performance when trained based on more diverse and noisy samples. The increased robustness to the quality of the training data reduces the computing resources and time required to prepare the training data and make it clean.
[0073] The system can also save computational resources during inference. For example, the system obtains a semantic representation and then uses the semantic representation as a conditional for generating an acoustic representation. Thus, the system processes a reduced number of tokens compared to alternatives such as processing interleaved sequences of semantic and acoustic tokens, thereby allowing for more efficient inference and training. Furthermore, autoregressively generating semantic and acoustic tokens and then mapping acoustic tokens to audio samples saves computational resources compared to alternatives such as directly processing audio samples.
[0074] In some implementations, the system can generate music given an input that includes text. The system can generate long, high-quality, and coherent music that follows a given high-level text description that is more complex than conventional music generation systems. For example, because the system uses an embedding neural network with a joint embedding space of audio and text and a generative neural network described in this specification, the system can generate music conditioned on text more efficiently than conventional systems that generate music from text.
[0075] In addition, not all desired musical characteristics are easy to describe using text. For example, melody may be an important characteristic of a piece of music, but it is difficult to describe using text. Given an input audio clip representing a melody, in some implementations, the system may generate music that follows the melody. For example, the input audio clip may include a hummed melody. The system may generate music that follows the melody by providing conditioning to one or more generative neural networks using a melody embedding neural network. In some implementations, the system may generate music that follows the input melody and reflects the input text sequence. For example, the system may use an embedding neural network and a melody embedding neural network to generate embedded word units (also called audio embedding word units).
[0076] The system can generate music conditioned on text without requiring a large training dataset of paired text-music training data. The system can be trained based on a music dataset only. Training the system based on music only also helps make the system robust to noisy labels, which can be a limitation when implementing conventional music generation systems.
[0077] In some implementations where the system can generate music given an input including text, each component of the system can be trained independently, thereby achieving flexibility and efficiency during training. For example, the embedding neural network and the decoder neural network can be trained separately or simultaneously.
[0078] The details of one or more embodiments of the subject matter of this specification are set forth in the accompanying drawings and the following description. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] Figure 1 is a block diagram of an example audio generation system.
[0080] Figure 2 is a diagram of an example process for generating acoustic word-grams.
[0081] Figure 3 is a flow chart of an example process for generating a prediction of an audio signal.
[0082] Figure 4 is a diagram of an example process for training an example audio generation system.
[0083] Figure 5 is a diagram of an example process for generating a prediction of an audio signal.
[0084] Figure 6 is a diagram of an example process for generating acoustic word-grams.
[0085] Figure 7 is a flow chart of an example process for generating a prediction of an audio signal.
[0086] Figure 8 is a diagram of an example process for training an example audio generation system.
[0087] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION
[0088] Figure 1 is a block diagram of an example audio generating system 100. Audio generating system 100 is an example of a system implemented as a computer program on one or more computers in one or more locations in which the systems, components, and techniques described below are implemented.
[0089] Given a request 102 to generate an audio signal, the audio generation system 100 generates a prediction of an audio signal 104. The audio signal 104 includes a corresponding audio sample at each of a plurality of output time steps spanning a time window.
[0090] To generate audio, system 100 receives a request 102 .
[0091] In some implementations, the request 102 can specify a context for the audio signal 104. In these implementations, the audio signal 104 is conditioned on the context.
[0092] For example, the context may include an audio input as an input audio signal. In some examples, the audio input may include words spoken by a particular speaker. In these examples, the audio signal 104 may be a continuation of the words spoken by the particular speaker. In some examples, the audio input may include music. In these examples, the audio signal 104 may be a continuation of the music in the audio input.
[0093] In some implementations, the input audio signal may include a melody, and the audio signal 104 may be music that follows the melody. The system 100 may generate an output audio signal 104 that is music that follows the melody, as described below with reference to Figures 5 to 8 described in further detail.
[0094] In some examples, the context may also include text data. The audio signal 104 may include speech reflecting the text data. In some implementations, the audio signal 104 may include music reflecting the text data. In these implementations, the system 100 generates an output audio signal 104 reflecting the text data, as described below with reference to Figures 5 to 8 described in further detail.
[0095] In some examples, the context may also include visual data. In these examples, the audio signal 104 may include speech describing the visual data or music reflecting the visual data.
[0096] In some implementations, the system 100 may also include an embedding neural network 120. In some examples where the context includes an input, the system 100 may process the input to map the input to one or more embedding tokens 122, also referred to as audio embedding tokens.
[0097] For example, if the input includes a text sequence, the embedding neural network 120 can be trained to map the text and audio to a joint embedding space of text and audio, also referred to as a joint audio embedding space. For example, the embedding neural network may include a neural network that maps text inputs to embeddings, and a neural network that maps audio inputs to embeddings. In the joint embedding space of text and audio, both text and audio are mapped to embeddings in the same embedding space. That is, the embedding vectors for text and audio have the same dimensionality. In addition, embeddings that are close together in the joint embedding space mean that the embeddings share semantics within and across modalities. For example, two embeddings that are close to each other may represent two semantically similar text sequences, two semantically similar audio samples, or an audio sample and a text sequence with semantically similar features. The embedding neural network 120 is described below with reference to Figure 8 Described in further detail.
[0098] The system 100 may obtain a semantic representation 106 of the audio signal 104. The semantic representation 106 specifies a corresponding semantic word-gram at each first time step of a plurality of first time steps spanning a time window.
[0099] Each semantic word-gram is selected from the semantic word-gram vocabulary and represents the semantic content of the audio signal 104 at the corresponding first time step. Examples of semantic content that can be represented by semantic words-grams include linguistic content, pronunciation, language syntax, and prosodic features of speech. Examples of semantic content can also include genre, melody, harmony, and rhythmic characteristics of music.
[0100] The system may generate a semantic representation 106 of the audio signal 104 in any of a number of ways. Generating the semantic representation 106 is described below with reference to Figure 3 and Figure 7 Described in further detail.
[0101] The number of first time steps and the number of semantic tokens may depend on the sampling rate of the audio representation neural network, i.e., the number of embeddings per unit time, which is described below with reference to Figure 3 and Figure 7 Described in further detail.
[0102] The system 100 then generates an acoustic representation 110 of the audio signal 104 using one or more generative neural networks 108 and conditioned on at least the semantic representation 106 .
[0103] The acoustic representation 110 specifies a set of one or more corresponding acoustic tokens at each second time step in a plurality of second time steps across the time window. The one or more corresponding acoustic tokens at each second time step represent the acoustic characteristics of the audio signal 104 at the corresponding second time step. The acoustic characteristics capture the details of the audio waveform and allow for high-quality synthesis. The acoustic characteristics may include, for example, the identity of the speaker. The acoustic characteristics may also include recording conditions, such as the level of reverberation, distortion, and background noise. Generating the acoustic representation 110 is described below with reference to Figure 2 and Figure 6 Described in further detail.
[0104] The number of second time steps may depend on the sampling rate of the encoder neural network, which will be referred to below. Figure 3 and Figure 4 Further detailed description. In some implementations, the number of second time steps can be greater than the number of first time steps. For example, the number of second time steps can be twice the number of first time steps. Thus, for each semantic word-gram at the first time step, the acoustic representation may include one or more acoustic word-grams at each of two second time steps corresponding to the first time step.
[0105] The system 100 then processes at least the acoustic representation 110 using a decoder neural network 112 to generate a prediction of the audio signal 104. For example, a corresponding audio sample for each of a plurality of output time steps across a time window may be based on one or more acoustic tokens of the acoustic representation 110.
[0106] In some implementations, the decoder neural network 112 may be a decoder neural network of a neural audio codec. The neural audio codec may be, for example, a SoundStream neural audio codec. The decoder neural network 112 is referred to below in Figure 3 and Figure 4 Described in further detail.
[0107] Therefore, the system 100 can generate an audio signal 104 that satisfies the request from the acoustic word-membrane, which requires less computing resources and power than directly generating audio samples without word-membrane. For example, compared to autoregressively generating audio samples, autoregressively generating word-mems that represent the features of audio samples is more computationally efficient. The system 100 can generate word-mems from embeddings at a sampling rate lower than the sampling rate of the audio signal. For example, the audio signal may have a sampling rate of 16 kHz, so that the audio signal includes an audio sample every 0.0625 ms. The embedding for generating semantic word-membrane can be calculated at a sampling rate of 25 Hz, so that each embedding can represent the features of a 40 ms window of the audio signal. In addition, the embedding for generating acoustic word-membrane can be calculated at a sampling rate of 50 Hz, so that each embedding can represent the features of a 20 ms window of the audio signal. After quantizing the embedding into acoustic word-membrane, the system 100 can use a decoder neural network 112 to decode the acoustic word-membrane into an audio signal at a higher sampling rate.
[0108] System 100 may be configured to perform any of a variety of tasks that require generating audio signal 104 as output.
[0109] For example, the audio signal 104 may be a speech signal, and the system 100 may generate the speech signal unconditionally, e.g., resulting in generation of a speech signal drawn from a distribution represented by a training data set on which the generative neural network was trained.
[0110] As another example, the audio signal 104 may be a different type of audio signal, such as music, animal sounds, etc., and the system may generate the audio signal 104 unconditionally, e.g., resulting in the generation of an audio signal 104 extracted from a distribution represented by a training data set on which the generative neural network is trained.
[0111] As another example, as described above, the system 100 may receive a context along with a request to generate the audio signal 104 and generate the audio signal 104 conditioned on the received context.
[0112] For example, the audio signal 104 may be speech or other audio signal, ie, such that the system 100 generates the output audio signal 104 conditioned on the context of the input audio signal.
[0113] As an example, the generated output audio signal 104 may be a prediction of an audio signal that follows the input audio signal. For example, the context may be an input speech signal that is a question asked by one speaker, and the output audio signal may be an output speech signal that is an answer to the question spoken by the same speaker or another speaker. As another example, the context may be an input speech signal that is a first part of an utterance spoken by one speaker, and the output audio signal 104 may be an output speech signal that is a completion of the utterance spoken by the speaker or another speaker, or a response to the input utterance.
[0114] As one example, in some implementations, the input audio signal can represent music, and the system 100 can generate the output audio signal 104 that is the music following the input audio signal.
[0115] As another example, the system 100 may perform sound separation on the input audio signal to generate the output audio signal 104. For example, the input audio signal may include both speech and music or other background noise, and the output audio signal 104 may represent only the speech. As another example, the input audio signal may include speech from multiple speakers (and optionally background noise), and the output audio signal 104 may include only the speech of one of the speakers. In some examples, the system 100 may perform audio conditional separation, i.e., when the input audio signal may include additional audio input that is acoustically similar to one of the speakers, and the output audio signal 104 may include only the speech of the speaker in the input audio signal that is acoustically similar to the additional audio input.
[0116] As another example, the system 100 may perform speech-to-speech translation, wherein the input speech and the output speech represent the same semantic content but are spoken differently. For example, the input audio signal may include speech in one natural language, and the output audio signal may represent speech in a different target natural language, which is a translation of the input speech into the target language. As another example, the input audio signal may include speech spoken by a first speaker, and the output audio signal 104 may represent the same semantic content as the input speech but spoken by a different speaker. As an example of this, the input audio signal may include speech spoken by a first speaker with a first accent of a natural language, and the output audio signal may represent the same semantic content as the input speech but spoken by a different speaker with a different accent of a natural language. As another example, the input audio signal may include speech spoken by a first speaker with a speech disorder, and the output audio signal may represent the same semantic content as the input speech but without the speech disorder. As another example, the input audio signal may include a first speech segment, and the output audio signal may include a shorter second speech segment outlining the semantic content of the first speech.
[0117] As another example, in some implementations, the system 100 can perform melody-conditional music generation, where an input audio signal represents a melody, and the system 100 can generate an output audio signal 104 that is music that follows the melody.
[0118] As another example, the context may include both audio data and text data.
[0119] For example, the system 100 can perform transcription-conditional speech enhancement, where the context is a text transcription and noisy audio corresponding to the text transcription, and the output audio signal 104 is clean audio corresponding to the text transcription. For example, the clean audio may include less background noise than the noisy audio.
[0120] As another example, the system 100 can perform transcription-based audio completion, where the context is a text transcription and audio corresponding to a portion of the text transcription, and the output audio signal 104 corresponds to a different portion of the text transcription. The system 100 can be trained to autoregressively predict semantic and acoustic tokens, for example, by teacher-forcing.
[0121] As another example, the system 100 may perform speaker-conditioned text-to-speech, where the context is a text transcription and a speaker's audio, and the output audio signal 104 is a verbal utterance of the speaker speaking the text transcription.
[0122] As another example, in some implementations, the system 100 may perform text and melody conditional music generation. The context may include a text sequence and an input audio signal representing a melody. The system 100 may generate an output audio signal 104 that is music described by the text sequence and follows the melody.
[0123] As another example, the context may include both audio data and visual data (eg, images or video).
[0124] For example, system 100 may perform audio-video continuation, where the system receives a partial audio track and a corresponding video, and outputs audio signal 104 that is a continuation of the partial audio track.
[0125] As another example, the system 100 may perform cross-modal filling, where the system receives a video and an audio track corresponding to a portion of the video, and outputs the audio signal 104 as an audio track corresponding to a different portion of the video.
[0126] As another example, contextual input may include only visual data.
[0127] For example, the system 100 may perform image-conditioned audio generation, wherein the system receives an input image and generates an output audio signal 104 describing the image.
[0128] As another example, the contextual input may include only textual data.
[0129] For example, the system 100 may perform sound synthesis based on text descriptions, eg, where the input is text describing an audio signal, and the output is the audio signal 104 represented by the text.
[0130] As an example, the system 100 may perform text-conditional music generation, where the input may include a text sequence, and the system 100 may generate an output audio signal 104 that is music that can be described by the text sequence. Figures 5 to 8 Describe in more detail.
[0131] As another example, in some implementations, the system 100 may perform story mode generation. The input may include multiple text subsequences. The system may generate an output audio signal 104 including music segments corresponding to each of the subsequences. Each music segment may be described by a corresponding text subsequence. In addition, the system 100 may generate smooth transitions between each music segment that are rhythmically consistent and semantically reasonable.
[0132] As another example, the system 100 may perform text-conditioned speech sampling, eg, where the input is a text transcription and the output audio signal 104 is a speech utterance of a random speaker speaking the text transcription with a random prosody.
[0133] In some implementations where the context input includes non-audio data, the system 100 may be trained based on training data that includes only audio, as described below with reference to Figure 8 Describe in more detail.
[0134] Figure 2 is a diagram of an example process for generating acoustic word units. For convenience, process 200 will be described as being performed by a system of one or more computers located in one or more locations. For example, an audio generation system appropriately programmed according to the present specification, such as Figure 1 The audio generation system 100 may perform process 200 .
[0135] The system can generate acoustic tokens of the acoustic representation using one or more generative neural networks, such as a coarse generative neural network 210 and a fine generative neural network 220. The coarse generative neural network 210 is also referred to as a first generative neural network. The fine generative neural network 220 is also referred to as a second generative neural network. The system can condition the generation of the acoustic representation on at least the semantic representation 106.
[0136] The encoder neural network can be part of a neural audio codec that includes a decoder neural network and an encoder neural network. Figure 4 As described in further detail, the decoder neural network and the encoder neural network may be jointly trained. The coarse generative neural network 210 and the fine generative neural network 220 may be trained to predict acoustic representations generated based on the output of a vector quantizer of a neural audio codec.
[0137] In some implementations, the set of one or more corresponding acoustic word-grams at each second time step in a plurality of second time steps includes a plurality of acoustic word-grams that collectively represent a prediction of an output of a residual vector quantization applied to an embedding, the embedding representing an acoustic characteristic of an audio signal at the second time step. Residual vector quantization encodes the embedding using a hierarchy of a plurality of vector quantizers, each of which generates a corresponding acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer. The hierarchy includes one or more coarse vector quantizers at the first one or more positions in the hierarchy and one or more fine vector quantizers at the last one or more positions in the hierarchy. The set of acoustic word-grams at each second time step includes, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer.
[0138] For example, the hierarchy may include vector quantizer, and vector quantizer 1… It can be a coarse vector quantizer, while the vector quantizer It may be a fine vector quantizer. The coarse vector quantizer generates coarse acoustic word units or acoustic word units of the coarse vector quantizer 212 that represent acoustic characteristics such as speaker identity and recording conditions. The fine vector quantizer generates fine acoustic word units or acoustic word units of the fine vector quantizer 222 that represent fine acoustic details. For example, the fine acoustic word units may be used to remove lossy compression artifacts in the coarse acoustic word units.
[0139] In some implementations, the number of first time steps and the number of second time steps across the time window are less than the number of output time steps across the time window. That is, the sampling rate of the encoder neural network outputting the corresponding embedding at each second time step in the second time step may be lower than the sampling rate of the audio signal. Figure 3 The sampling rate of the audio representation neural network may be lower than the sampling rate of the audio signal. Thus, the number of embeddings from which semantic tokens may be generated and the number of embeddings from which acoustic tokens may be generated may be smaller than the number of output time steps.
[0140] In some embodiments, the number of first time steps across the time window is less than the number of second time steps across the time window. For example, for each semantic word-gram, the system may generate two acoustic word-grams for each coarse vector quantizer and two acoustic word-grams for each fine vector quantizer. That is, the sampling rate of the encoder neural network that outputs the corresponding embedding at each second time step in the second time step may be higher than the sampling rate of the encoder neural network in the second time step. Figure 3 The audio representation is the sampling rate of the neural network.
[0141] To generate the acoustic representation, the coarse generative neural network 210 may generate acoustic tokens for the coarse vector quantizer 212 conditioned on at least the semantic representation 106. For example, for each of the one or more coarse vector quantizers in the hierarchy, the coarse generative neural network 210 may generate corresponding acoustic tokens for the second time step of the vector quantizer conditioned on at least the semantic representation. The acoustic tokens of the coarse vector quantizer 212 represent acoustic characteristics such as speaker identity and recording conditions.
[0142] In some implementations where the request specifies a context and the context specifies an acoustic characteristic of an audio signal (such as where the context includes an audio input), the system can condition the semantic representation and the context to generate an acoustic representation of the audio signal. For example, for each of the one or more coarse vector quantizers in the hierarchy, the coarse generative neural network 210 can condition the semantic representation 106 and the acoustic token representing the context to generate a corresponding acoustic token for a second time step of the vector quantizer.
[0143] The coarse generative neural network 210 may be an autoregressive neural network configured to autoregressively generate acoustic tokens for the coarse vector quantizer 212 according to a first generation order.
[0144] Each specific acoustic word-meta of each specific coarse vector quantizer and at each specific second time step is conditioned on at least the semantic representation and any acoustic word-meta that precedes the specific acoustic word-meta in the first generation order. In addition, each specific acoustic word-meta of each specific coarse vector quantizer and at each specific second time step is after the following acoustic word-meta in the generation order: (i) any acoustic word-meta of any coarse vector quantizer in the coarse vector quantizer at any second time step before the specific second time step, and (ii) any acoustic word-meta of any coarse vector quantizer before the specific vector quantizer in the hierarchy at the specific second time step.
[0145] For example, the hierarchy may include vector quantizer, and vector quantizer 1… It can be a coarse vector quantizer, while the vector quantizer It can be a fine vector quantizer. The specific second time step and a specific coarse vector quantizer The acoustic word at is conditioned on the following: all semantic words in the semantic representation, At the second time step before and at Any acoustic word at the previous coarse vector quantizer, and any acoustic word at a specific coarse vector quantizer The previous coarse vector quantizer is at the second time step Any acoustic word at .
[0146] In some implementations, the coarse generative neural network 210 has a decoder-only Transformer architecture. In some implementations, the coarse generative neural network 210 has an encoder-decoder Transformer architecture.
[0147] To generate the acoustic representation, the fine generative neural network 220 may be conditioned on at least the acoustic tokens of the coarse vector quantizer 212 to generate the acoustic tokens of the fine vector quantizer 222. For example, for each of the one or more fine vector quantizers in the hierarchy, the fine generative neural network 220 may be conditioned on the corresponding acoustic tokens of the second time step of the one or more coarse vector quantizers in the hierarchy to generate the corresponding acoustic tokens of the second time step of the vector quantizer. Thus, the fine generative neural network 220 may not be conditioned on the semantic representation 106. The acoustic tokens of the fine vector quantizer 222 may be used to further improve the audio quality, for example, by removing lossy compression artifacts.
[0148] The fine generative neural network 220 may be an autoregressive neural network configured to autoregressively generate acoustic tokens according to a second generative order. Each specific acoustic token of each specific fine vector quantizer and at each specific second time step is conditioned on: (i) corresponding acoustic tokens of at least a subset of the second time steps of one or more coarse vector quantizers, and (ii) at least a subset of the acoustic tokens preceding the specific acoustic token in the second generative order. Each specific acoustic token of each specific fine vector quantizer and at each specific second time step is after the following acoustic tokens in the second generative order: (i) any acoustic token of any fine vector quantizer in the fine vector quantizer at any second time step preceding the specific second time step, and (ii) any acoustic token of any fine vector quantizer preceding the specific vector quantizer in the hierarchy at the specific second time step.
[0149] For example, the hierarchy may include vector quantizer, and the vector quantizer It can be a fine vector quantizer. The specific second time step and specific vector quantizer The acoustic word element at the second time step is conditioned on the following: all acoustic words of the coarse vector quantizer 312, At the second time step before and at Any acoustic word at the subsequent fine vector quantizer, and at a specific fine vector quantizer The previous coarse vector quantizer and fine vector quantizer are at the second time step Any acoustic word at .
[0150] In some implementations, each particular acoustic word-meta of each particular fine vector quantizer at each particular second time step is conditioned on: (i) corresponding acoustic word-meta of one or more coarse vector quantizers at most a threshold number of second time steps before the second time step, and (ii) any acoustic word-meta at a second time step that precedes the particular second time step and is at most a threshold number of second time steps before the second time step in the second generation order. That is, the second time step may be divided into non-overlapping batches of consecutive second time steps.
[0151] For example, for a particular second time step and specific vector quantizer The acoustic word at is conditioned on the following: the coarse vector quantizer 312 is at a specific second time step before and with a specific second time step Any acoustic word in the same corresponding second time step batch, and any acoustic word in the corresponding batch at the second time step At the second time step before and at Any acoustic word at the subsequent fine vector quantizer, as well as at a specific fine vector quantizer The previous coarse vector quantizer and fine vector quantizer are at the second time step Any acoustic word at .
[0152] In some implementations, the thin generative neural network 220 has a decoder-only Transformer architecture. In some implementations, the thin generative neural network 220 has an encoder-decoder Transformer architecture.
[0153] In some implementations, the system may generate acoustic words for the coarse vector quantizer 212 and acoustic words for the fine vector quantizer 222 simultaneously. A hierarchy of vector quantizers, a specific coarse vector quantizer or a fine vector quantizer At a specific second time step The acoustic word at is conditioned on the following: at the second time step At the second time step before and at All acoustic tokens at the previous vector quantizer, and at a specific vector quantizer The previous vector quantizer is at the second time step Any acoustic word at .
[0154] The system may include the acoustic tokens of the fine vector quantizer 222 in the acoustic representation. The system may use the acoustic representation to generate a prediction of the audio signal, as described below with reference to Figure 3 described.
[0155] Figure 3 is a flow chart of an example process for generating a prediction of an audio signal. For convenience, process 300 will be described as being performed by a system of one or more computers located in one or more locations. For example, an audio generation system appropriately programmed according to the present specification, such as Figure 1 The audio generation system 100 may perform process 300 .
[0156] The system receives a request to generate an audio signal (step 310). The audio signal has corresponding audio samples at each output time step in a plurality of output time steps across a time window. In some examples, the request may specify a context of the audio signal. The audio signal may be conditioned on the context. For example, the context may include audio input, visual data, and / or text data as described above.
[0157] The system obtains a semantic representation of the audio signal (step 320). The semantic representation specifies a corresponding semantic word-gram at each first time step in a plurality of first time steps across the time window. Each semantic word-gram may be selected from a semantic word-gram vocabulary and may represent a semantic content of the audio signal at the corresponding first time step.
[0158] In some implementations, the system may generate a semantic representation. For example, the system may use a semantic representation generation neural network to regressively generate a semantic representation. The semantic representation generation neural network may also be referred to as a third generation neural network.
[0159] For example, the semantic representation generation neural network may be trained to autoregressively generate semantic tokens one by one. The semantic representation generation neural network may be, for example, a neural network based on a decoder-only or encoder-decoder Transformer. For example, the semantic representation generation neural network may have been trained to predict a semantic representation generated based on the output of one or more layers (e.g., one of the intermediate layers) of the audio representation neural network.
[0160] The audio representation neural network can generate outputs or embeddings at regular time intervals. For example, the audio representation neural network can generate an embedding every 40 ms of the input audio signal.
[0161] The training of semantic representation generation neural network and audio representation neural network is shown below. Figure 4 Described in further detail.
[0162] In some implementations, the request specifies a context that specifies semantic properties of the audio signal. For example, the context may include an audio input. The system may condition the generation of the semantic representation on the context. For example, when the generation is conditional on the context including the audio input, the system may use an audio representation neural network to generate a semantic representation of the audio input as described above.
[0163] In some examples, the audio signal spans the same time window as the audio input. The system may use the semantic representation of the audio input as the semantic representation of the audio signal. For example, the semantic representation of the audio signal may include semantic tokens of the semantic representation of the audio input.
[0164] In some examples, the audio signal spans a time window that is longer than the audio input. For example, the audio signal may be a continuation of the audio input. For example, the audio signal may be a continuation of speech or a continuation of music. The system may cause the semantic representation generating neural network to condition on at least the semantic representation of the audio input when autoregressively generating the semantic representation of the audio signal. For example, the semantic representation generating neural network may autoregressively generate semantic tokens of the audio signal conditioned on semantic tokens of the audio input. The semantic representation of the audio signal may include semantic tokens of the semantic representation of the audio input, followed by the autoregressively generated semantic tokens.
[0165] In some implementations, the request specifies a context that includes text or image data. When the generation is conditioned on a context input that is at least partially non-audio, the system may generate the semantic tokens by: using an appropriate encoder neural network to map the context input to a semantic token from a vocabulary for the non-audio portion of the audio input, and using the semantic tokens as (at least part of) the semantic representation of the audio signal; or the system may condition the semantic representation generation neural network on at least the semantic tokens when autoregressively generating the semantic representation of the audio signal.
[0166] For example, if the context includes image data, the system can use an encoder neural network configured to map image data to audio to map the image data to semantic tokens from a vocabulary. In some examples, the system can use the semantic tokens as semantic representations of the audio signal. In some examples, the system can condition the semantic representation generating neural network on at least the semantic tokens when autoregressively generating the semantic representation of the audio signal.
[0167] For example, if the context includes text data, the system may use an encoder neural network configured to map text data to audio to map the text data to semantic tokens from a vocabulary. In some implementations, the encoder neural network may be a reference Figure 1 and Figure 8The system may further describe an embedding neural network in detail. For example, the text data may include a text sequence describing music, and the embedding neural network may map the description of the music to audio. The system may use semantic tokens corresponding to the audio as at least a portion of a semantic representation of the audio signal. In some examples, the system may condition the semantic representation generating neural network on at least the semantic token when autoregressively generating the semantic representation of the audio signal.
[0168] The system generates an acoustic representation of the audio signal (step 330). The system may generate the acoustic representation using one or more generative neural networks and conditional on at least the semantic representation. The acoustic representation specifies a set of one or more corresponding acoustic tokens at each second time step in a plurality of second time steps spanning the time window. The one or more corresponding acoustic tokens at each second time step may represent an acoustic characteristic of the audio signal at the corresponding second time step. Generating an acoustic representation of the audio signal is described above with reference to Figure 2 Described in further detail.
[0169] In some implementations, the context specifies acoustic characteristics of the audio signal to be generated, such as when the context specifies a target speaker for the output audio signal, includes speech that the output audio signal is to follow, or includes audio that should be similar to the output audio signal in another manner. In these implementations, the system can map the context to an acoustic representation, for example using a neural audio codec as described above, and use at least a portion of the acoustic representation of the context when generating the acoustic representation of the audio signal. Generating an acoustic representation conditioned on the context is described above with reference to Figure 2 Described in further detail.
[0170] The system processes at least the acoustic representation to generate a prediction of the audio signal (step 340). The system can use a decoder neural network to process at least the acoustic representation to generate a prediction of the audio signal. For example, a corresponding audio sample at each of a plurality of output time steps across a time window can be based on one or more acoustic tokens of each vector quantizer in the hierarchy.
[0171] In some implementations where the context specifies acoustic characteristics of the audio signal, the system can use a decoder neural network to process the acoustic representation and the acoustic representation of the context to generate a prediction of the audio signal. For example, the decoder neural network can process acoustic tokens of the acoustic representation and acoustic tokens representing the context.
[0172] In some implementations, the number of first time steps and the number of second time steps across the time window are less than the number of output time steps across the time window. In some implementations, the number of first time steps across the time window is less than the number of second time steps across the time window, as described above with reference to Figure 2 described in further detail.
[0173] Figure 4 is a diagram of an example process 400 for training an example audio generating system. For convenience, process 400 will be described as being performed by a training system of one or more computers located in one or more locations.
[0174] The training system can train the audio generation system based on training data, such as Figure 1 In some implementations, components of the audio generation system, such as the semantic representation generation neural network 130, the one or more generation neural networks 108, the neural audio codec 420, and the audio representation neural network 410, can be trained independently.
[0175] The training system can train the neural audio codec 420 and the audio representation neural network 410 based on training data including audio clips. Example audio clips of training data are shown in Figure 4 4 is shown as target audio 450.
[0176] The neural audio codec 420 may include a decoder neural network and an encoder neural network. For example, the encoder neural network may convert the target audio 450 into a coded signal, which is quantized into an acoustic representation. The decoder neural network may convert the acoustic representation into a predicted audio signal. In some implementations, the neural audio codec 420 may be pre-trained and frozen before training the audio generation system.
[0177] The neural audio codec 420 can be trained to minimize adversarial and reconstruction losses. For example, the decoder neural network and the encoder neural network can be jointly trained based on an objective that measures the quality of reconstruction of a predicted audio signal generated by the decoder neural network from an acoustic representation generated using outputs generated by the encoder neural network.
[0178] The audio representation neural network 410 may have been trained to generate a representation of an input audio signal. In some implementations, the audio representation neural network 410 may be pre-trained and frozen prior to training the audio generation system. The audio representation neural network 410 may be trained to minimize a masked language model (MLM) loss and a contrastive loss. The audio representation neural network 410 may be, for example, a w2v-BERT model that maps an input audio signal to a set of language features.
[0179] The training system can train the semantic representation generation neural network 130 and the one or more generation neural networks 108 based on the training data including the audio clips. In some implementations, the generation neural network can be trained by forced teaching.
[0180] The training system may train the semantic representation generation neural network 130 to predict a semantic representation generated based on the output of one or more layers (eg, one of the intermediate layers) of the audio representation neural network 410 .
[0181] For example, the audio representation neural network 410 may include a model having multiple layers. For example, the audio representation neural network 410 may include a self-attention based model, such as a Transformer based model or a Conformer based model having multiple layers.
[0182] The self-attention based model may have been trained based on a speech representation task, for example, by self-supervised learning. The self-attention based model may have been trained based on other tasks, such as, for example, automatic speech recognition.
[0183] The output of one or more layers of the audio representation neural network 410 may include embeddings of the input audio. For example, a self-attention-based model may generate dense embeddings for some or all audio samples in the training data. The embeddings for the intermediate layers of the self-attention-based model for some or all audio samples may be clustered into K clusters by k-means. The centroids of the clusters may be used as semantic tokens. In some implementations, the output may be normalized prior to clustering so that each dimension has zero mean and unit variance.
[0184] The sample target semantic representation used to train the semantic representation generation neural network 130 may have been generated by providing the target audio 450 to the self-attention based model. The training system may generate semantic tokens of the target semantic representation by assigning each output of the target audio 450 to the centroid of the nearest cluster.
[0185] In some implementations, continuous repetitions of semantic tokens within the target semantic representation may be removed. For example, the target semantic representation of the target audio 450 includes a sequence of semantic tokens. The training system may remove the semantic tokens that are continuously repeated in the sequence, and then use the target semantic representation without the continuously repeated semantic tokens for training.
[0186] The training system may train one or more generative neural networks 108 to generate an acoustic representation conditioned on at least the semantic representation. In some implementations, the acoustic representation may be a prediction of a real-valued acoustic representation that would be generated from the output of an encoder neural network by processing an audio signal. For example, the encoder neural network may be a convolutional encoder that maps an audio signal to a sequence of embeddings. The encoder neural network may output a corresponding embedding at each second time step in a plurality of second time steps. Each corresponding embedding at each second time step in the plurality of second time steps may correspond to a feature of the audio signal at the second time step. By applying quantization to each of the corresponding embeddings, a real-valued acoustic representation may be generated. As described above, the encoder neural network may be part of a neural audio codec such as the neural audio codec 420.
[0187] For example, the quantization may be residual vector quantization that encodes each embedding using a hierarchy of multiple vector quantizers that each generate a corresponding acoustic word from its corresponding acoustic word vocabulary. The hierarchy may include Vector quantizers, each of which uses a corresponding vocabulary. The hierarchy may include one or more coarse vector quantizers located at the first one or more positions in the hierarchy and one or more fine vector quantizers located at the last one or more positions in the hierarchy. The set of one or more corresponding acoustic word-units at each second time step may include a corresponding acoustic word-unit for each vector quantizer, wherein the corresponding acoustic word-unit is selected from the vocabulary of the vector quantizer and is a prediction of a real-valued acoustic word-unit that will be generated by the vector quantizer from a real-valued embedding generated by the encoder neural network at the second time step.
[0188] The training system may train one or more generative neural networks 108 to predict acoustic representations generated based on the output of a residual vector quantizer of the neural audio codec 420 .
[0189] The target acoustic representation for training the one or more generative neural networks 108 may have been generated by applying quantization to each of the corresponding embeddings output by the encoder neural network of the neural audio codec 420 at each of the plurality of second time steps. The quantization may be as described above with reference to Figure 2 The residual vector quantization (RVQ) described.
[0190] Figure 5 is a diagram of an example process for generating a prediction of an audio signal. For convenience, process 500 will be described as being performed by a system of one or more computers located in one or more locations. For example, an audio generation system appropriately programmed according to the present specification, such as Figure 1The audio generation system 100 may execute process 500 .
[0191] The system receives a request to generate an audio signal conditioned on an input 502. For example, the input 502 may include the Figures 1 to 3 In the context of the audio signal described. In the example process 500, the input includes text data. The system can perform text conditional music generation so that the generated audio 504 is music described by the text data "hip hop song with violin solo". The text data may include descriptions of significant complexity, such as "enchanting jazz song with a memorable saxophone solo and a solosinger" or "Berlin 90s techno with a low bass and strong kick".
[0192] The system uses the above reference Figure 1 The embedding neural network 120 is used to process text data. The embedding neural network 120 maps text to one or more embedding word units 122. The embedding neural network 120 can be trained to map text and audio to a joint embedding space of text and audio, also known as a joint audio embedding space. The system can use the embedding neural network 120 to generate an embedding vector for the input of text data in the joint embedding space. Then, the system can quantize the embedding vector to generate an embedding word unit 122.
[0193] In some implementations, the embedding neural network 120 may include a text network and a music network. For example, the embedding neural network 120 may include a neural network trained to map text to an embedding in a joint embedding space, and a neural network trained to map audio to an embedding in a joint embedding space. For example, the embedding neural network 120 may be a joint embedding model with two embedding towers, one for text and one for music. The towers use contrastive learning to map text and music to a shared embedding space. Figure 8 The training of the embedding neural network 120 is described.
[0194] The system generates a semantic representation 106 of the audio signal 504. Each semantic word-gram of the semantic representation 106 is selected conditioned on the embedded word-gram 122 from the semantic word-gram vocabulary.
[0195] For example, the system may use the semantic representation generation neural network to autoregressively generate the semantic representation 106 using the embedded word 122 as a conditioning signal. For example, the semantic representation generation neural network may be conditioned on the embedded word 122 when autoregressively generating the semantic representation 106. That is, the semantic word at each first time step may be conditioned on the semantic word at the previous first time step and the embedded word 122. The semantic representation generation neural network may generate ,in The first time step The semantic word at Represents embedded word 122.
[0196] Then, the system generates an acoustic representation 110 of the audio signal 504 conditioned on at least the semantic representation 106 and the embedded word-membrane 122. The system may generate the acoustic representation using one or more generative neural networks and conditioned on at least the semantic representation 106 and the embedded word-membrane 122. For example, the one or more generative neural networks may regressively generate the acoustic representation 110 conditioned on the semantic representation 106 and the embedded word-membrane 122. That is, the set of one or more acoustic word-mems at each second time step may be conditioned on the acoustic word-mems, the semantic representation 106, and the embedded word-membrane 122 at the previous second time step. The one or more generative neural networks may generate ,in The first time step The acoustic word at represents a semantic representation, and represents an embedded token 122 generated from the text.
[0197] The system then processes at least the acoustic representation 110 using the decoder neural network 112 to generate a prediction of the audio signal 504 .
[0198] Thus, the generated audio 504 includes music that can be described by the text data "hip hop song with violin solo" of the input 502. Although the input 502 in this example includes text data, the system can be trained based on audio signals, as described below with reference to Figure 8 described.
[0199] Figure 6 is a diagram of an example process 600 for generating acoustic word units. For convenience, process 600 will be described as being performed by a system of one or more computers located in one or more locations. For example, an audio generation system appropriately programmed according to the present specification, such as Figure 1 The audio generation system 100 may execute process 600.
[0200] Process 600 is similar to the above reference Figure 2 The process 200 is similar in that the system can use one or more generative neural networks, such as a coarse generative neural network 610 and a fine generative neural network 620, to generate acoustic tokens of the acoustic representation. The coarse generative neural network 610 is also referred to as a first generative neural network and is similar to the reference 200. Figure 2 The coarse generative neural network 210 is described above. The fine generative neural network 620 is also referred to as the second generative neural network and is similar to the reference Figure 2 The system may condition the generation of the acoustic representation on at least the semantic representation 106 and the embedded word 122 (also referred to as the audio embedded word).
[0201] The encoder neural network can be part of a neural audio codec that includes a decoder neural network and an encoder neural network. Figure 8 As described in further detail, the decoder neural network and the encoder neural network may be jointly trained. The coarse generative neural network 610 and the fine generative neural network 620 may be trained to predict acoustic representations generated based on the output of a vector quantizer of a neural audio codec.
[0202] In some implementations, the set of one or more corresponding acoustic word-grams at each second time step in a plurality of second time steps includes a plurality of acoustic word-grams that collectively represent a prediction of an output of a residual vector quantization applied to an embedding, the embedding representing an acoustic characteristic of an audio signal at the second time step. Residual vector quantization encodes the embedding using a hierarchy of a plurality of vector quantizers, each of which generates a corresponding acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer. The hierarchy includes one or more coarse vector quantizers at the first one or more positions in the hierarchy and one or more fine vector quantizers at the last one or more positions in the hierarchy. The set of acoustic word-grams at each second time step includes, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer.
[0203] For example, the hierarchy may include vector quantizer, and vector quantizer 1… It can be a coarse vector quantizer, while the vector quantizer It may be a fine vector quantizer. The coarse vector quantizer generates coarse acoustic word units representing acoustic characteristics such as speaker identity and recording conditions or acoustic word units of the coarse vector quantizer 612. The fine vector quantizer generates fine acoustic word units representing fine acoustic details or acoustic word units of the fine vector quantizer 622. For example, the fine acoustic word units may be used to remove lossy compression artifacts in the coarse acoustic word units.
[0204] In some implementations, the number of first time steps and the number of second time steps across the time window are less than the number of output time steps across the time window. That is, the sampling rate of the encoder neural network outputting the corresponding embedding at each second time step in the second time step may be lower than the sampling rate of the audio signal. In addition, reference Figure 7 The sampling rate of the audio representation neural network may be lower than the sampling rate of the audio signal. Therefore, the number of embeddings from which semantic tokens can be generated and the number of embeddings from which acoustic tokens can be generated may be less than the number of output time steps.
[0205] In some embodiments, the number of first time steps across the time window is less than the number of second time steps across the time window. For example, for each semantic word-gram, the system may generate two acoustic word-grams for each coarse vector quantizer and two acoustic word-grams for each fine vector quantizer. That is, the sampling rate of the encoder neural network that outputs the corresponding embedding at each second time step in the second time step may be higher than the reference neural network. Figure 7 The audio representation is the sampling rate of the neural network.
[0206] To generate the acoustic representation, the coarse generative neural network 610 may generate acoustic tokens for the coarse vector quantizer 612 conditioned on at least the semantic representation 106 and the embedding tokens 122. In some examples, the embedding tokens 122 may include melody embedding tokens, also referred to as melody audio embedding tokens. In some examples, the embedding tokens 122 may be concatenated with the melody embedding tokens.
[0207] For example, for each of the one or more coarse vector quantizers in the hierarchy, the coarse generative neural network 610 may generate a corresponding acoustic word-gram for a second time step of the vector quantizer conditioned on at least the semantic representation 106 and the embedded word-gram 122. The acoustic word-gram of the coarse vector quantizer 612 represents acoustic characteristics such as recording conditions.
[0208] The coarse generative neural network 610 may be an autoregressive neural network configured to autoregressively generate acoustic tokens for the coarse vector quantizer 612 according to a first generation order.
[0209] Each specific acoustic word-meta of each specific coarse vector quantizer and at each specific second time step is conditioned on at least the semantic representation 106 and the embedding word-meta 122 and any acoustic word-meta that precedes the specific acoustic word-meta in the first generation order. In addition, each specific acoustic word-meta of each specific coarse vector quantizer and at each specific second time step is after the following acoustic word-meta in the generation order: (i) any acoustic word-meta of any coarse vector quantizer in the coarse vector quantizer at any second time step before the specific second time step, and (ii) any acoustic word-meta of any coarse vector quantizer that precedes the specific vector quantizer in the hierarchy at the specific second time step.
[0210] For example, the hierarchy may include vector quantizer, and vector quantizer 1… It can be a coarse vector quantizer, while the vector quantizer It can be a fine vector quantizer. The specific second time step and a specific coarse vector quantizer The acoustic word at is conditioned on: all semantic words of the semantic representation 106, all embedded words 122, At the second time step before and at Any acoustic word at the previous coarse vector quantizer, and any acoustic word at a specific coarse vector quantizer The previous coarse vector quantizer is at the second time step Any acoustic word at .
[0211] In some implementations, the coarse generative neural network 610 has a decoder-only Transformer architecture. In some implementations, the coarse generative neural network 610 has an encoder-decoder Transformer architecture.
[0212] To generate the acoustic representation, the fine generative neural network 620 may generate acoustic tokens for the fine vector quantizer 622 conditioned on at least the acoustic tokens of the coarse vector quantizer 612. For example, for each of the one or more fine vector quantizers in the hierarchy, the fine generative neural network 620 may generate a corresponding acoustic token for the second time step of the vector quantizer conditioned on the corresponding acoustic token for the second time step of the one or more coarse vector quantizers in the hierarchy. Thus, the fine generative neural network 620 may not be conditioned on the semantic representation 106 and the embedded tokens 122. The acoustic tokens of the fine vector quantizer 622 may be used to further improve the audio quality, for example, by removing lossy compression artifacts.
[0213] The fine generative neural network 620 may be an autoregressive neural network configured to autoregressively generate acoustic tokens according to a second generative order. Each specific acoustic token of each specific fine vector quantizer and at each specific second time step is conditioned on: (i) corresponding acoustic tokens of at least a subset of the second time steps of one or more coarse vector quantizers, and (ii) at least a subset of the acoustic tokens preceding the specific acoustic token in the second generative order. Each specific acoustic token of each specific fine vector quantizer and at each specific second time step is after the following acoustic tokens in the second generative order: (i) any acoustic token of any fine vector quantizer in the fine vector quantizer at any second time step preceding the specific second time step, and (ii) any acoustic token of any fine vector quantizer preceding the specific vector quantizer in the hierarchy at the specific second time step.
[0214] For example, the hierarchy may include vector quantizer, and the vector quantizer It can be a fine vector quantizer. The specific second time step and a specific fine vector quantizer The acoustic word element at the second time step is conditioned on the following: all acoustic words of the coarse vector quantizer 612, At the second time step before and at Any acoustic word at the subsequent fine vector quantizer, and at a specific fine vector quantizer The previous coarse vector quantizer and fine vector quantizer are at the second time step Any acoustic word at .
[0215] In some implementations, each particular acoustic word-meta of each particular fine vector quantizer at each particular second time step is conditioned on: (i) corresponding acoustic word-meta of one or more coarse vector quantizers at most a threshold number of second time steps before the second time step, and (ii) any acoustic word-meta at a second time step that precedes the particular second time step and is at most a threshold number of second time steps before the second time step in the second generation order. That is, the second time step may be divided into non-overlapping batches of consecutive second time steps.
[0216] For example, for a particular second time step and specific vector quantizer The acoustic word at is conditioned on the following: the coarse vector quantizer 612 is at a specific second time step before and with a specific second time step Any acoustic word in the same corresponding second time step batch, and any acoustic word in the corresponding batch at the second time step At the second time step before and at Any acoustic word at the subsequent fine vector quantizer, as well as at a specific fine vector quantizer The previous coarse vector quantizer and fine vector quantizer are at the second time step Any acoustic word at .
[0217] In some implementations, the thin generative neural network 620 has a decoder-only Transformer architecture. In some implementations, the thin generative neural network 620 has an encoder-decoder Transformer architecture.
[0218] In some implementations, the system can generate acoustic words for the coarse vector quantizer 612 and acoustic words for the fine vector quantizer 622 simultaneously. A hierarchy of vector quantizers, a specific coarse vector quantizer or a fine vector quantizer At a specific second time step The acoustic word at is conditioned on the following: at the second time step At the second time step before and at All acoustic tokens at the previous vector quantizer, and at a specific vector quantizer The previous vector quantizer is at the second time step Any acoustic word at .
[0219] The system may include the acoustic tokens of the fine vector quantizer 622 in the acoustic representation. The system may use the acoustic representation to generate a prediction of the audio signal, as described below with reference to Figure 7 described.
[0220] Figure 7 700 is a flow chart of an example process 700 for generating a prediction of an audio signal. For convenience, process 700 will be described as being performed by a system of one or more computers located in one or more locations. For example, an audio generation system appropriately programmed according to the present specification, such as Figure 1 The audio generation system 100 may execute process 700.
[0221] The system receives a request to generate an audio signal conditioned on an input (step 710). The audio signal has corresponding audio samples at each output time step in a plurality of output time steps across a time window. The audio signal can be conditioned on the input. For example, the input can be included in a context, which is specified in the request. The input can include an input audio signal, visual data, and / or text data.
[0222] In examples where the input comprises textual data (such as a text sequence), the prediction of the audio signal may be a prediction of the music described by the text sequence.
[0223] In some examples, the text sequence may include a plurality of text subsequences.The prediction of the audio signal may be a prediction of music having a music segment corresponding to and reflecting each of the subsequences in the subsequences.
[0224] In the example where the input comprises text data and an input audio signal representing a melody, the prediction of the audio signal may be a prediction of the music described by the text sequence and following the melody.
[0225] In an example where the input comprises an input audio signal representing a melody, the prediction of the audio signal may be a prediction of music that follows the melody. For example, the input audio signal may represent whistling or humming.
[0226] In the example where the input comprises an input audio signal representing music, the prediction of the audio signal may be a continuation of the input audio signal.
[0227] In some examples where the input includes visual data, the system may obtain a textual description of the visual data. In some implementations, the system may generate a textual description of the visual data. The prediction of the audio signal may be a prediction of the music described by the textual description.
[0228] The system processes the input to map the input to one or more embedded tokens (step 715). Embedded tokens are also referred to as audio embedded tokens. The system may use an embedding neural network to process the input. For example, the system may use an embedding neural network to generate an embedding vector for the input, and quantize the embedding vector to generate an embedded token.
[0229] In some examples, the input includes a text sequence. The embedding neural network may have been trained to map text and audio to a joint embedding space, also referred to as a joint audio embedding space. In examples where the input includes a text sequence, embedded tokens are generated from the text.
[0230] The embedded neural network can be trained based on training data including audio signals. The training of the embedded neural network is described below. Figure 8 Described in further detail.
[0231] In some examples, the input may include multiple subsequences of text. In these examples, the system may generate an embedded word for each subsequence and, therefore, vary the conditioning signal for each subsequence when generating the semantic and acoustic representations.
[0232] In some examples, the input includes a text sequence and an input audio signal representing a melody. The system can process the input audio signal using a melody embedding neural network to map the input audio signal to one or more melody embedding tokens, also referred to as melody audio embedding tokens. The system can then concatenate the melody embedding tokens with the embedding tokens.
[0233] In some examples, the input includes an input audio signal representing a melody. The system can process the input audio signal using a melody embedding neural network to map the audio signal to one or more melody embedding tokens. The system can use the melody embedding tokens as embedding tokens to serve as conditioning for generating semantic and acoustic representations.
[0234] In these examples where the input audio signal represents a melody, to process the input audio signal using a melody embedding neural network, the system can use the melody embedding neural network to generate one or more melody embedding vectors of the input audio signal in a joint embedding space (also referred to as a joint audio embedding space). In some implementations, the melody embedding neural network can be a visual transformer (ViT) that receives a time frame of a mel-spectrogram of the input audio signal and generates a melody embedding vector of the input audio signal.
[0235] The system may quantize the melody embedding vector to generate a melody embedding word. For example, the system may use residual vector quantization to quantize the melody embedding vector into a melody embedding word. The training of the melody embedding neural network is described below with reference to Figure 8 Described in further detail.
[0236] The system generates a semantic representation of the audio signal (step 720). The semantic representation specifies a corresponding semantic word-gram at each first time step in a plurality of first time steps across the time window. Each semantic word-gram is selected from a semantic word-gram vocabulary conditioned on an embedded word-gram and represents the semantic content of the audio signal at the corresponding first time step.
[0237] In some implementations, the system can embed word units as conditioning signals using a semantic representation generation neural network to regressively generate semantic representations. The semantic representation generation neural network can also be referred to as a third generation neural network and is similar to the above reference Figure 3 The semantic representation generates a neural network.
[0238] For example, the semantic representation generation neural network may be trained to autoregressively generate semantic tokens one by one. The semantic representation generation neural network may be, for example, a neural network based on a decoder-only or encoder-decoder Transformer. For example, the semantic representation generation neural network may have been trained to predict a semantic representation generated based on the output of one or more layers (e.g., one of the intermediate layers) of the audio representation neural network.
[0239] The audio representation neural network can generate outputs or embeddings at regular time intervals. For example, the audio representation neural network can generate an embedding every 40 ms of the input audio signal.
[0240] The training of semantic representation generation neural network and audio representation neural network is shown below. Figure 8 Described in further detail.
[0241] In some examples, the input includes a text sequence, and an embedded token is generated from the text. In these examples, the system can condition the semantic representation generating neural network on at least the embedded token when autoregressively generating a semantic representation of the audio signal.
[0242] In some examples, the input may include multiple text subsequences, and the embedded tokens include embedded tokens for each subsequence. For example, for a first subsequence, the system may condition the semantic representation generation neural network on the embedded tokens of the first subsequence when autoregressively generating a semantic representation of the audio signal. For a second subsequence, the system may condition the semantic representation generation neural network on the embedded tokens of the second subsequence and the semantic tokens generated for the first subsequence.
[0243] In some examples, the input includes a text sequence and an input audio signal representing a melody, and an embedded word-membrane is generated from the text and a melody embedded word-membrane is generated from the input audio signal. The system may concatenate the melody embedded word-membrane with the embedded word-membrane. The system may condition each semantic word-membrane from a semantic word-membrane vocabulary on the melody embedded word-membrane and the embedded word-membrane. The system may condition the semantic representation generating neural network on the embedded word-membrane and the melody embedded word-membrane when autoregressively generating a semantic representation of the audio signal.
[0244] In some examples, the input includes an input audio signal representing a melody, and a melody embedding token is generated from the input audio signal. In these examples, the system can use the melody embedding token as the embedding token. The system can select each semantic token from the semantic token vocabulary conditioned on the embedding token. The system can condition the semantic representation generating neural network on the embedding token when autoregressively generating a semantic representation of the audio signal.
[0245] In some examples, the system may generate predictions for an audio signal that is longer than the audio signal on which the system was trained. For example, the system may be trained on a 30 second audio signal. To generate a longer audio signal, the semantic representation generation neural network may advance in steps of 15 seconds, using the 15 seconds as a prefix to generate another 15 seconds, while conditioning on the same embedded tokens from the input text.
[0246] The system generates an acoustic representation of the audio signal (step 730). The system may generate the acoustic representation using one or more generative neural networks and conditional on at least the semantic representation and the embedded word. The acoustic representation specifies a set of one or more corresponding acoustic word-grams at each second time step in a plurality of second time steps across the time window. The one or more corresponding acoustic word-grams at each second time step represent the acoustic characteristics of the audio signal at the corresponding second time step. Generating the acoustic representation is described in the above reference to Figure 6 Described in further detail.
[0247] In some implementations, the input includes a text sequence. One or more generative neural networks may have been trained at least in part based on audio-only training data. During training, the semantic representation and the acoustic representation are conditioned on the embedding of the audio input in a joint embedding space of text and audio. The training is described below with reference to Figure 8 Described in further detail.
[0248] The system processes at least the acoustic representation to generate a prediction of the audio signal (step 740). The system can use a decoder neural network to process the acoustic representation. For example, a corresponding audio sample at each output time step in a plurality of output time steps across a time window can be based on one or more acoustic tokens of each vector quantizer in the hierarchy.
[0249] In some implementations, the number of first time steps and the number of second time steps across the time window are less than the number of output time steps across the time window. In some implementations, the number of first time steps across the time window is less than the number of second time steps across the time window, as described above with reference to Figure 6 described in further detail.
[0250] Figure 8 is a diagram of an example process 800 for training an example audio generating system. For convenience, process 800 will be described as being performed by a training system of one or more computers located in one or more locations.
[0251] Process 800 with reference Figure 4 The process 400 is similar in that the training system can train the audio generation system based on training data, such as Figure 1In some implementations, components of the audio generation system, such as the embedding neural network 120, the semantic representation generation neural network 130 (in Figure 4 ), one or more generative neural networks 108, a neural audio codec 420, and an audio representation neural network 410.
[0252] The embedding neural network 120 may be a joint embedding model with two embedding towers, one for text and one for music. For example, the embedding neural network 120 may be a MuLan model. The towers use contrastive learning to map text and music to a shared embedding space. The text network may be a BERT pre-trained on a large corpus of text-only data. For example, the music network may be a residual convolutional network.
[0253] The embedding neural network 120 may be trained based on training data including an audio signal. For example, the training data may include pairs of music clips and corresponding text annotations. The embedding neural network 120 may be trained to associate music to unconstrained natural language descriptions. For example, the embedding neural network 120 may be trained based on a goal so that text describing an audio signal and the corresponding audio signal have embeddings that are close to each other in a joint embedding space of audio and text. In some implementations, the embedding neural network 120 may be pre-trained and frozen before training the audio generation system.
[0254] Since the audio generation system can be trained based on audio-only training data, the training data can be easily scaled. The training data is not limited to audio data with textual commentary. In addition, by training the embedding neural network 120 based on contrastive loss, the robustness to noisy text descriptions can be improved.
[0255] To generate an embedding token for training the audio generation system, the training system may provide the target audio signal 850 to the embedding neural network 120. The embedding neural network 120 may generate a representation of the target audio signal 850 in the joint embedding space. The training system may quantize the representation into discrete embedding tokens. The embedding tokens are based on the embedding of the target audio signal 850 in the joint embedding space.
[0256] In some implementations, the training data may include audio signals that are longer than the audio signals that the embedding neural network 120 is pre-trained to operate on. For example, the target audio signal 850 may have a length of 30 seconds, and the embedding neural network 120 may have been pre-trained to operate on 10-second sequences. The training system may use the embedding neural network 120 to calculate representations based on 10-second windows of the target audio signal 850 with a step size of 1 second, and average the resulting representations. The training system may then quantize the averaged representation into discrete embedding tokens of the target audio signal 850.
[0257] The training system may train the neural audio codec 420 and the audio representation neural network 410 based on training data including audio clips such as music clips. Example audio clips of training data are shown in Figure 8 8 is shown as target audio 850.
[0258] As above reference Figure 4 As described, the neural audio codec 420 may include a decoder neural network and an encoder neural network. For example, the encoder neural network may convert the target audio 850 into a coded signal, which is quantized into an acoustic representation. The decoder neural network may convert the acoustic representation into a predicted audio signal. In some implementations, the neural audio codec 420 may be pre-trained and frozen before training the audio generation system.
[0259] The neural audio codec 420 can be trained to minimize adversarial and reconstruction losses. For example, the decoder neural network and the encoder neural network can be jointly trained based on an objective that measures the quality of reconstruction of a predicted audio signal generated by the decoder neural network from an acoustic representation generated using outputs generated by the encoder neural network.
[0260] The audio representation neural network 410 may have been trained to generate a representation of the input audio signal. In some implementations, the audio representation neural network 410 may be pre-trained and frozen prior to training the audio generation system. The audio representation neural network 410 may be trained to minimize a masked language model (MLM) loss and a contrastive loss. For example, the audio representation neural network 410 may be a w2v-BERT model.
[0261] The training system can train the semantic representation generation neural network 130 and the one or more generation neural networks 108 based on the training data including the audio clips. In some implementations, the generation neural network can be trained by forced teaching.
[0262] The training system may train the semantic representation generation neural network 130 to predict the semantic representation generated based on the output of one or more layers (e.g., one of the intermediate layers) of the audio representation neural network 410. The training system may train the semantic representation generation neural network 130 as a condition for embedding word units. The semantic representation generation neural network 130 may be distributed Modeling is performed, where The first time step The semantic word at Represents an embedded token generated from audio.
[0263] For example, the audio representation neural network 410 may include a network having multiple layers. For example, the audio representation neural network 410 may include a self-attention based model, such as a Transformer based model or a Conformer based model having multiple layers.
[0264] Self-attention based models can be trained on music representation tasks, for example through self-supervised learning.
[0265] The output of one or more layers of the audio representation neural network 410 may include an embedding of the input audio. For example, a self-attention based model may generate dense embeddings for some or all audio samples in the training data. The embeddings of some or all audio samples by the intermediate layers of the self-attention based model may be clustered into K clusters by k-means. The centroids of the clusters may be used as semantic tokens. In some implementations, the output may be normalized prior to clustering so that each dimension has zero mean and unit variance.
[0266] The sample target semantic representation used to train the semantic representation generation neural network 130 may have been generated by providing the target audio 450 to the self-attention based model. The training system may generate semantic tokens of the target semantic representation by assigning each output of the target audio 450 to the centroid of the nearest cluster.
[0267] In some implementations, continuous repetitions of semantic tokens within the target semantic representation may be removed. For example, the target semantic representation of the target audio 850 includes a sequence of semantic tokens. The training system may remove the semantic tokens that are repeated continuously in the sequence, and then use the target semantic representation without the continuous repeated semantic tokens for training.
[0268] The training system may train one or more generative neural networks 108 to generate an acoustic representation conditioned on at least the semantic representation and the embedded word. In some implementations, the acoustic representation is a prediction of a real-valued acoustic representation that would be generated from the output of the encoder neural network by processing the audio signal. For example, the encoder neural network may be a convolutional encoder that maps the audio signal to a sequence of embeddings. Each corresponding embedding at each second time step in a plurality of second time steps may correspond to a feature of the audio signal at the second time step. A real-valued acoustic representation may be generated by applying quantization to each of the corresponding embeddings. As described above, the encoder neural network may be part of a neural audio codec such as a neural audio codec.
[0269] For example, the quantization may be a residual vector quantization that encodes each embedding using a hierarchy of multiple vector quantizers that each generate a corresponding acoustic word-metaphor from a corresponding acoustic word-metaphor of the vector quantizer. The hierarchy may include one or more coarse vector quantizers at the first one or more positions in the hierarchy and one or more fine vector quantizers at the last one or more positions in the hierarchy. The set of one or more corresponding acoustic word-metaphors at each second time step may include, for each vector quantizer, a corresponding acoustic word-metaphor that is selected from the vocabulary of the vector quantizer and is a prediction of a real-valued acoustic word-metaphor that would be generated by the vector quantizer from a real-valued embedding that is generated by the encoder neural network at the second time step.
[0270] The training system may train one or more generative neural networks 108 to predict acoustic representations generated based on the output of the residual vector quantizer of the neural audio codec 420. The training system may train the one or more generative neural networks 408 conditioned on the embedded word. The one or more generative neural networks 408 may be distributed Modeling is performed, where The first time step The acoustic word at represents a semantic representation, and Represents an embedded token generated from audio.
[0271] The target acoustic representation for training the one or more generative neural networks 108 may have been generated by applying quantization to each of the corresponding embeddings output by the encoder neural network of the neural audio codec 420 at each of the plurality of second time steps. The quantization may be as described above with reference to Figure 6 The residual vector quantization (RVQ) described.
[0272] In some implementations, the audio generation system further includes a melody embedding neural network. The melody embedding neural network may have been trained based on audio pairs that match melody but have different acoustic effects. For example, the training data may include different versions of the same music clip, such as covers, instrumentals, vocals, humming, and singing.
[0273] The melody embedding neural network can be trained so that when two audio clips contain the same melody, the corresponding embeddings in the joint embedding space (also called the joint audio embedding space) are close to each other. For example, a melody embedding neural network can be trained using a semi-hard triplet loss to generate an embedding of the audio that represents the melody in the input audio signal while being invariant to the acoustic characteristics associated with the instrument being played.
[0274] This specification uses the term "configuration" in conjunction with system and computer program components. For a system of one or more computers to be configured to perform specific operations or actions, it is meant that the system has installed thereon software, firmware, hardware, or a combination thereof that, in operation, causes the system to perform those operations or actions. For one or more computer programs to be configured to perform specific operations or actions, it is meant that the one or more programs include instructions that, when executed by a data processing device, cause the device to perform those operations or actions.
[0275] Embodiments of the subject matter and functional operations described in this specification may be implemented in digital electronic circuit systems, in tangibly embodied computer software or firmware, in computer hardware, including the structures disclosed in this specification and their structural equivalents or a combination of one or more of them. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory storage medium, for execution by a data processing device or for controlling the operation of a data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively or additionally, program instructions may be encoded on an artificially generated propagation signal (e.g., a machine-generated electrical, optical, or electromagnetic signal), which is generated to encode information for transmission to an appropriate receiver device for execution by a data processing device.
[0276] The term "data processing equipment" refers to data processing hardware, and includes all types of equipment, devices and machines for processing data, including, for example, a programmable processor, a computer or a plurality of processors or computers. The equipment may also be or further include a dedicated logic circuit system, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the equipment may also optionally include code for creating an execution environment for a computer program, for example, code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0277] A computer program, which may also be referred to or described as a program, software, software application, application, module, software module, script or code, may be written in any form of programming language (including compiled or interpreted languages or declarative or procedural languages); and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment. A program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that holds other programs or data (e.g., one or more scripts stored in a markup language document), in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, subroutines or code portions). A computer program may be deployed to execute on one computer or on multiple computers located at one site or distributed over multiple sites and interconnected by a data communications network.
[0278] In this specification, the term "engine" is used broadly to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Typically, an engine will be implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers will be dedicated to a specific engine; in other cases, multiple engines can be installed and run on the same one or more computers.
[0279] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by a dedicated logic circuit system (e.g., an FPGA or ASIC) or by a combination of a dedicated logic circuit system and one or more programmed computers.
[0280] A computer suitable for executing a computer program can be based on a general or special microprocessor or both, or any other kind of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The basic elements of a computer are a central processing unit for fulfilling or executing instructions and one or more memory devices for storing instructions and data. The central processing unit and the memory can be supplemented by a special logic circuit system or incorporated into the special logic circuit system. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as a disk, a magneto-optical disk, or an optical disk, or operatively coupled to receive data from it or transfer data to it or both. However, the computer does not have to have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, such as a universal serial bus (USB) flash drive, to name a few.
[0281] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks.
[0282] To provide interaction with a user, embodiments of the subject matter described in this specification may be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user, and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user may be received in any form, including sound, voice, or tactile input. In addition, the computer may interact with the user by sending documents to and receiving documents from the device used by the user; for example, by sending a web page to a web browser on the user's device in response to a request received from the web browser. In addition, the computer may interact with the user by sending a text message or other form of message to a personal device (e.g., a smart phone running a messaging application), and receiving a response message from the user in response.
[0283] A data processing device used to implement a machine learning model may also include, for example, a dedicated hardware accelerator unit that is used to handle general-purpose and computationally intensive portions of a machine learning training or production (i.e., inference) workload.
[0284] Machine learning models can be implemented and deployed using a machine learning framework (e.g., the TensorFlow framework or the Jax framework).
[0285] Embodiments of the subject matter described in this specification may be implemented in a computing system that includes a back-end component (e.g., as a data server), or includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer having a graphical user interface, a web browser, or an application through which a user can interact with an implementation of the subject matter described in this specification), or any combination of one or more such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.
[0286] A computing system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The relationship of the client and the server is generated by computer programs running on respective computers and having a client-server relationship with each other. In some embodiments, the server transmits data (e.g., an HTML page) to a user device, for example, for the purpose of displaying data to a user interacting with the device acting as a client and receiving user input from it. Data generated at the user device, for example, the result of a user interaction, may be received from the device at the server.
[0287] Although this specification contains many specific implementation details, these details should not be interpreted as limitations on the scope of any invention or the scope that can be claimed, but should be interpreted as descriptions of features that can be specific to a particular embodiment of a particular invention. Certain features described in this specification in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination. In addition, although features may be described above as working in certain combinations and even initially claimed as such, one or more features from a combination may be deleted from the claimed combination in some cases, and the claimed combination may involve a sub-combination or a variant of a sub-combination.
[0288] Similarly, although operations are depicted in the drawings and recited in the claims in a particular order, this should not be construed as requiring that such operations be performed in the particular order shown or in a sequential order, or that all of the operations shown be performed, to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems may generally be integrated together in a single software product or packaged into multiple software products.
[0289] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous.
Claims
1. A computer-implemented method for generating a prediction of an audio signal, the method include: receiving a request to generate an audio signal conditioned on an input, the audio signal having corresponding audio samples at each of a plurality of output time steps spanning a time window; processing the input using an embedding neural network to map the input to one or more embedded tokens; generating a semantic representation of the audio signal, the semantic representation specifying a corresponding semantic word-meta at each first time step of a plurality of first time steps spanning the time window, each semantic word-meta being selected from a vocabulary of semantic word-meta conditioned on the embedded word-meta and representing a semantic content of the audio signal at the corresponding first time step; generating, using one or more generative neural networks conditioned on at least the semantic representation and the embedded word-grams, an acoustic representation of the audio signal, the acoustic representation specifying a set of one or more corresponding acoustic word-grams at each second time step in a plurality of second time steps spanning the time window, the one or more corresponding acoustic word-grams at each second time step representing an acoustic characteristic of the audio signal at the corresponding second time step; as well as At least the acoustic representation is processed using a decoder neural network to generate the prediction of the audio signal.
2. The method according to claim 1, in, Processing the input using an embedding neural network to map the input to one or more embedded tokens includes: Using the embedding neural network to generate an embedding vector of the input in a joint embedding space; and The embedding vector is quantized to generate an embedding token.
3. The method according to claim 1, in, The input comprises a text sequence, and wherein the embedding neural network has been trained to map text and audio to a joint embedding space.
4. The method according to claim 3, in, The text sequence comprises a plurality of text subsequences, and the prediction of the audio signal is a prediction of music having music segments corresponding to and reflecting each of the subsequences.
5. The method according to claim 1, in, The input comprises a text sequence, and the prediction of the audio signal is a prediction of music described by the text sequence.
6. The method according to claim 5, in, The input further comprises an audio signal representing a melody, and the prediction of the audio signal is a prediction of the music described by the text sequence and following the melody.
7. The method according to claim 6, in, The method further comprises: processing the audio signal using a melody embedding neural network to map the audio signal to one or more melody embedding tokens; and The melody embedding word is concatenated with the embedding word.
8. The method according to claim 7, in, Processing the audio signal using a melody embedding neural network to map the audio signal to one or more melody embedding tokens includes: generating one or more melody embedding vectors of the audio signal in a joint embedding space using the melody embedding neural network; and The one or more melody embedding vectors are quantized to generate melody embedding tokens.
9. The method according to claim 1, in, The input comprises an audio signal representing a melody, and the prediction of the audio signal is a prediction of music following the melody.
10. The method according to claim 9, in, The method further comprises: processing the audio signal using a melody embedding neural network to map the audio signal to one or more melody embedding tokens; and Each semantic word is selected from a semantic word list based on the melody embedding word.
11. The method of claim 1, in, The embedding neural network is trained based on training data including audio signals.
12. The method of claim 1, in, The embedding neural network has been trained based on the objective such that the text describing the audio signal and the corresponding audio signal have embeddings that are close to each other in a joint embedding space.
13. The method of claim 1, in, The decoder neural network is a decoder neural network of a neural audio codec, the decoder neural network having been jointly trained with an encoder neural network based on an objective that measures a reconstruction quality of a predicted audio signal generated by the decoder neural network from an acoustic representation generated using outputs generated by the encoder neural network.
14. The method of claim 1, in, The acoustic representation is a prediction of a real-valued acoustic representation that an encoder neural network would generate by processing the output of the audio signal.
15. The method of claim 14, in, The encoder neural network outputs a corresponding embedding at each second time step of the plurality of second time steps, and wherein the real-valued acoustic representation is generated by applying quantization to each of the corresponding embeddings.
16. The method of claim 15, in: The quantization is residual vector quantization, the residual vector quantization uses a hierarchy of multiple vector quantizers to encode each embedding, the multiple vector quantizers each generating a corresponding acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer, wherein the hierarchy includes one or more coarse vector quantizers located at a first one or more positions in the hierarchy and one or more fine vector quantizers located at a last one or more positions in the hierarchy, and The set of one or more corresponding acoustic word-grams at each second time step includes, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer and being a prediction of a real-valued acoustic word-gram generated by the vector quantizer from a real-valued embedding generated by the encoder neural network at the second time step.
17. The method of claim 1, in: the set of one or more corresponding acoustic tokens at each second time step of the plurality of second time steps comprises a plurality of acoustic tokens that collectively represent a prediction of an output of a residual vector quantization applied to an embedding, the embedding representing an acoustic characteristic of the audio signal at the second time step, The residual vector quantization encodes the embedding using a hierarchy of a plurality of vector quantizers, each of the plurality of vector quantizers generating a respective acoustic word-gram from a corresponding acoustic word-gram vocabulary of the vector quantizer, wherein the hierarchy comprises one or more coarse vector quantizers located at a first one or more positions in the hierarchy and one or more fine vector quantizers located at a last one or more positions in the hierarchy, and The set of acoustic word-grams at each second time step comprises, for each vector quantizer, a corresponding acoustic word-gram selected from the vocabulary of the vector quantizer.
18. The method of claim 17, in, Generating an acoustic representation of the audio signal conditioned on at least the semantic representation and the embedded word-gram using one or more generative neural networks comprises: For each of the one or more coarse vector quantizers in the hierarchy, a first generative neural network is used to generate a corresponding acoustic word-metaphor for the second time step of the coarse vector quantizer conditioned on at least the semantic representation and the embedded word-metaphor.
19. The method of claim 18, in, The first generative neural network is an autoregressive neural network configured to autoregressively generate the acoustic word-grams according to a first generative order, and wherein each specific acoustic word-gram of each specific coarse vector quantizer at each specific second time step is conditioned on at least the semantic representation and the embedded word-gram and any acoustic word-gram that precedes the specific acoustic word-gram in the first generative order.
20. The method of claim 19, in, Each specific acoustic word-element of each specific coarse vector quantizer at each specific second time step is, in the first generation order, after the following acoustic words-element: (i) any acoustic word-element of any coarse vector quantizer among the coarse vector quantizers at any second time step before the specific second time step, and (ii) any acoustic word-element of any coarse vector quantizer before the specific coarse vector quantizer in the hierarchy at the specific second time step.
21. The method of claim 18, in, The first generative neural network has a decoder-only Transformer architecture or an encoder-decoder Transformer architecture.
22. The method of claim 18, in, Generating an acoustic representation of the audio signal conditioned on at least the semantic representation and the embedded word-gram using one or more generative neural networks comprises: For each of the one or more fine vector quantizers in the hierarchy, a second generative neural network is used to generate the corresponding acoustic word-grams of the second time step of the fine vector quantizer conditioned on the corresponding acoustic word-grams of the second time step of the one or more coarse vector quantizers in the hierarchy.
23. The method of claim 22, in, The second generative neural network is not conditioned on the semantic representation and the embedded word.
24. The method of claim 22, in, The second generative neural network is an autoregressive neural network configured to autoregressively generate the acoustic word-grams according to a second generative order, and wherein each specific acoustic word-gram of each specific fine vector quantizer at each specific second time step is conditioned on: (i) corresponding acoustic word-grams of at least a subset of the second time steps of the one or more coarse vector quantizers, and (ii) at least a subset of the acoustic word-grams that precede the specific acoustic word-gram in the second generative order.
25. The method of claim 24, in, Each specific acoustic word-element of each specific fine vector quantizer at each specific second time step is, in the second generation order, after the following acoustic words-element: (i) any acoustic word-element of any fine vector quantizer among the fine vector quantizers at any second time step before the specific second time step, and (ii) any acoustic word-element of any fine vector quantizer before the specific fine vector quantizer in the hierarchy at the specific second time step.
26. The method of claim 24, in, Each specific acoustic word-element of each specific fine vector quantizer at each specific second time step is conditioned on: (i) the corresponding acoustic word-element of the one or more coarse vector quantizers at a second time step at most a threshold number of second time steps before the second time step, and (ii) any acoustic word-element at a second time step in the second generation order that precedes the specific second time step and is at most a threshold number of second time steps before the second time step.
27. The method of claim 1, in, Generating a semantic representation of the audio signal includes: The semantic representation is autoregressively generated using a third generative neural network with the embedded word as a conditioning signal.
28. The method of claim 1, in, The input comprises a text sequence, the embedding is an embedding in a joint embedding space, wherein the one or more generative neural networks have been trained at least in part based on audio-only training data, and wherein during training, the semantic representation and the acoustic representation are conditioned on the embedding of the audio input in the joint embedding space.
29. A system comprising one or more computers and one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising a method for generating a prediction of an audio signal, the method include: receiving a request to generate an audio signal conditioned on an input, the audio signal having corresponding audio samples at each of a plurality of output time steps spanning a time window; processing the input using an embedding neural network to map the input to one or more embedded tokens; generating a semantic representation of the audio signal, the semantic representation specifying a corresponding semantic word-meta at each first time step of a plurality of first time steps spanning the time window, each semantic word-meta being selected from a vocabulary of semantic word-meta conditioned on the embedded word-meta and representing a semantic content of the audio signal at the corresponding first time step; generating, using one or more generative neural networks conditioned on at least the semantic representation and the embedded word-grams, an acoustic representation of the audio signal, the acoustic representation specifying a set of one or more corresponding acoustic word-grams at each second time step in a plurality of second time steps spanning the time window, the one or more corresponding acoustic word-grams at each second time step representing an acoustic characteristic of the audio signal at the corresponding second time step; as well as At least the acoustic representation is processed using a decoder neural network to generate the prediction of the audio signal.
30. One or more computer-readable storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform operations comprising a method for generating a prediction of an audio signal, the method include: receiving a request to generate an audio signal conditioned on an input, the audio signal having corresponding audio samples at each of a plurality of output time steps spanning a time window; processing the input using an embedding neural network to map the input to one or more embedded tokens; generating a semantic representation of the audio signal, the semantic representation specifying a corresponding semantic word-meta at each first time step of a plurality of first time steps spanning the time window, each semantic word-meta being selected from a vocabulary of semantic word-meta conditioned on the embedded word-meta and representing a semantic content of the audio signal at the corresponding first time step; generating, using one or more generative neural networks conditioned on at least the semantic representation and the embedded word-grams, an acoustic representation of the audio signal, the acoustic representation specifying a set of one or more corresponding acoustic word-grams at each second time step in a plurality of second time steps spanning the time window, the one or more corresponding acoustic word-grams at each second time step representing an acoustic characteristic of the audio signal at the corresponding second time step; as well as At least the acoustic representation is processed using a decoder neural network to generate the prediction of the audio signal.
Citation Information
Patent Citations
System and method for implementing a vocal user interface by combining a speech to text system and a speech to intent system
CN108885870A
Very deep convolutional neural networks for end-to-end speech recognition
CN109937446A
End-to-end text-to-speech conversion
CN110476206A
Apparatus, method, and medium for generating grammar network for use in speech recognition and dialogue speech recognition
US20060173686A1
Acoustic-to-word neural network speech recognizer
US20180174576A1
Cited By
Speech synthesis method and device
CN120564695A
