End-to-end song generation method and system based on user popular spoken language expression
Through large language model and generative model technology, lyrics and audio with segment structure are generated, which solves the problem of users' understanding of popular spoken expressions and lack of song structure, and achieves the universality and accuracy of song creation.
Patent Information
- Application Number
- CN202410870727.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Existing text-to-song generation technology has difficulty understanding users' popular spoken expressions, and the generated songs lack structure. Manually annotated data sets are limited to expert annotations, and there are accuracy issues.
A large language model is used to obtain the user's popular spoken expression text, generate a lyric sequence with a segment structure, and perform denoising processing through the generative model and VAE model to generate matching audio distribution and convert it into song audio data.
It achieves a full understanding of popular spoken expressions and the universality of song creation, captures music structure, and generates songs that are rich and match spoken expressions, improving the accuracy and structural integrity of song creation.
Smart Images

Figure CN118609544A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of artificial intelligence music generation, and specifically relates to an end-to-end song generation method and system based on user colloquial spoken expressions. Background Art
[0002] Text-to-song generation aims to create songs from descriptive text. Previous research has typically focused on specific aspects of songwriting, such as text-to-music, lyrics-to-melody, and score-to-song, but has not covered the entire songwriting process. In terms of text-to-music generation, models such as MusicLM and MusicGen use a single-stage Transformer language model through a quantization-based audio codec to generate text-to-music, and adopt an efficient codebook interleaving mode, and adopt a large language model and diffusion model to generate high-quality audio. For lyrics-to-melody generation, SongMASS, TeleMelody, and SongGLM take lyrics as input and output melody, ensuring that the lyrics are associated with the melody. For score-to-song generation, Melodist adopts a two-stage approach, including generating vocals from a given score and generating accompaniment based on the vocals and natural language cues. Text-to-song generation platforms such as Suno, SkyMusic, and SongR have received widespread attention for their capabilities. However, these platforms often do not provide access to their datasets and methods, which may limit reproducibility and pose challenges for future research, while it may encounter issues such as poor understanding of input text descriptions and lack of structure in generated songs.
[0003] In the field of music generation, although many datasets have been proposed to date, including datasets derived from automatic annotation using music information retrieval (MIR) algorithms or large language models (LLMs) and manual annotation, automatic annotation datasets use existing music information retrieval algorithms to extract music attributes from symbolic music or audio music. The extracted attributes are then merged into complete descriptive text or regarded as descriptive tags. MSD collects a large amount of music data, including audio, MIDI, and tags obtained through the Echo Nest Analyze API (MIR toolkit). POP909 provides a dataset containing audio, main melody spectrum, and other music attributes such as key and beat. MuseCoco and Mustango extract features from raw audio and then use ChatGPT to integrate these features into description text. MuLaMCap in Noise2Music uses a large language model to generate a set of music description texts, and then uses MuLan (a text-music embedding model) to match these texts with the music audio in the dataset. Despite this, there is still a significant semantic gap between the datasets obtained by automatic annotation and complex human descriptions, which reduces the accuracy of the dataset and limits the performance of the model.
[0004] Manually annotated datasets collect descriptions or tags from music websites, or include data annotated by professional musicians. Hooktheory is a music website where users upload audio with annotations such as melody, chords, and beats. MTG and Mousai use the corresponding tags on the music website as description tags, while ERNIEMusic uses music reviews as music descriptions and builds datasets based on them. MusicLM provides a music description dataset MusicCaps annotated by professional musicians. However, current manually annotated datasets are limited by expert annotations and a limited range of descriptions, which is significantly different from the descriptions provided by the general public. In addition, existing manually annotated datasets are usually annotated by only one person per record, which may also lead to inaccuracies due to human errors or biases. Summary of the invention
[0005] In view of the above, an object of the present invention is to provide an end-to-end song generation method and system based on user colloquial expressions, to create songs based on fully understood colloquial expressions, and to match the user's colloquial expressions with the created songs.
[0006] To achieve the above-mentioned purpose of the invention, an embodiment provides an end-to-end song generation system based on user colloquial expressions, comprising:
[0007] An acquisition module, which is used to acquire the colloquial expression text input by the user and use it as a description text prompt word;
[0008] A lyrics generation module, which is used to generate a lyrics sequence with a music segment structure according to the description text prompt words using a large language model;
[0009] The audio generation module is used to use a generative model to perform denoising on a lyrics sequence with a musical segment structure to generate a potential probability distribution representing the music, and based on the potential probability distribution, search in the audio data space of the VAE model to obtain the audio distribution corresponding to the lyrics sequence. Each point in the audio distribution represents a segment of audio. After converting the audio distribution into a spectrogram, the spectrogram is converted into audio data of the song.
[0010] Preferably, the lyrics sequence with a segment structure comprises a sequence composed of lyrics, wherein the lyrics are labeled, wherein the labels include timbre, instrument, sound effect, style, and segment structure labels, and the segment structure labels include prelude, verse, pre-chorus, chorus, bridge or interlude, and conclusion;
[0011] Ignoring the lyrics, the segment structure tags are separated and arranged by separation tags to form a segment structure.
[0012] Preferably, the method of using a generative model to perform denoising processing based on a lyrics sequence with a music segment structure to generate a potential probability distribution representing music includes:
[0013] Initialize multiple consecutive time windows, and for each time window, extract at least a portion of the lyrics sequence that matches the length of the time window from the lyrics sequence with a segment structure as the current input lyrics sequence, and perform continuous denoising based on the generated audio data corresponding to the current input lyrics sequence and the previous time window through a generative model to generate a potential probability distribution representing the music corresponding to the current time window.
[0014] Preferably, the step of continuously denoising the generated audio data based on the current input lyrics sequence and the previous time window through a generative model to generate a potential probability distribution representing music corresponding to the current time window includes:
[0015] For the current time window, the generated audio data and the description text prompt words corresponding to the previous time window are processed by CLAP to form an embedded vector, which is then concatenated with the current noise to form a concatenated vector and input into the generation model. At the same time, the current input lyrics sequence is also input into the generation model. The generation model performs denoising processing at time step t to obtain the denoising result corresponding to time step t, and the denoising result is used as the current noise at time step t-1;
[0016] Among them, t takes the value of [0,T]. When t takes T, the current noise corresponding to time step T is the initial random noise, and the generated audio data corresponding to the previous time window corresponding to time step T is an empty vector; when t takes 0, the denoising result corresponding to time step 0 is considered to be a noise-free result, as the potential probability distribution representing the music.
[0017] Preferably, the generation model includes a DIT sub-model for performing noise generation based on the splicing vector and the lyrics sequence, and a DDPM sub-model for performing denoising calculation based on the generated noise;
[0018] In the DIT model, the input concatenated vector is processed as a noise potential vector after block division and first-layer normalization, and then the first important feature is focused on by multi-head self-attention processing. The first important feature and the input vector processed by multi-head self-attention are concatenated through the first residual connection and then processed by the second layer of normalization to obtain the input concatenated vector corresponding to the processed first vector;
[0019] After the current input lyrics sequence is embedded, the embedding vector is obtained, and then multi-head cross attention processing is performed with the first vector to focus on the second important feature, and the second important feature is concatenated with the first residual connection result through a second residual connection to obtain a second vector;
[0020] The second vector is normalized and point-by-point feed-forwarded in the third layer and then concatenated with the second vector. The concatenated result is normalized, linearly mapped, and reshaped in the fourth layer to obtain the noise distribution.
[0021] Preferably, the DIT sub-model is replaced by a SIT sub-model, in which, during the shape adjustment process, random sampling is performed by selecting a sampler, and a noise distribution is generated based on the random sampling result;
[0022] In the interpolation framework of the DIT sub-model, a mapping relationship is found between the potential probability distribution of the generative model output and the high-dimensional normal distribution space of the VAE by selecting the interpolation parameters, and the audio distribution corresponding to the lyrics sequence is searched and determined based on the mapping relationship.
[0023] Preferably, the VAE model includes a VAE encoder and a VAE decoder, which are obtained based on self-supervised training, wherein the VAE encoder is used to compress and encode the input audio data into an audio distribution in an audio data space, and the VAE decoder is used to decode the audio distribution in the audio data space to generate a spectrogram;
[0024] The audio distribution of the audio data space corresponding to the trained VAE encoder is sampled as sample data for training the generative model;
[0025] The trained VAE decoder is used to convert the audio distribution into a spectrogram when applied.
[0026] Preferably, the generative model needs to undergo parameter optimization before being applied. During parameter optimization, the audio distribution of the audio data space of the VAE model is sampled to obtain sample data, and the audio data is used as a label to perform supervised training on the generative model based on the sample data under the label to optimize the generative model parameters.
[0027] Preferably, the large language model is fine-tuned before being applied, and the text data used for fine-tuning includes: music annotations used by professionals and business enthusiasts to mark music, wherein the music annotations use professional descriptions and popular colloquial descriptions, and the professional descriptions and the popular colloquial descriptions form data pairs, and the large language model is fine-tuned using the data pairs so that it can be converted into a lyric sequence with a musical segment structure based on the popular colloquial description text.
[0028] To achieve the above-mentioned purpose of the invention, an embodiment of the present invention further provides an end-to-end song generation method based on user colloquial expressions, using the above-mentioned end-to-end song generation system, the method comprising the following steps:
[0029] Using the acquisition module to acquire the colloquial language expression text input by the user and use it as a description text prompt word;
[0030] The lyrics generation module uses a large language model to generate a lyrics sequence with a musical segment structure according to the description text prompt words;
[0031] The music generation module is used to generate audio data based on the lyrics sequence, specifically including: within each time window, a generative model is used to perform denoising processing based on the lyrics sequence with a musical segment structure to generate a potential probability distribution representing the music, and based on the potential probability distribution, a search is performed in the audio data space of the VAE model to obtain a high-dimensional audio distribution corresponding to the lyrics sequence, each point in the audio distribution represents a segment of audio, and after the high-dimensional audio distribution is converted into a spectrogram, the spectrogram is converted into the audio data of the song, and the audio data generated in sequence in multiple time windows constitute the final audio data.
[0032] To achieve the above-mentioned purpose of the invention, an embodiment of the present invention further provides a computing device, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the above-mentioned end-to-end song generation method based on the user's colloquial spoken expression.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] The present invention uses a large language model to convert colloquial expression text into a lyric sequence with a musical segment structure, which can fully understand the colloquial expression, make song creation more universal, and fully capture the musical structure of the song, including the phrase structure and rhyme format. On this basis, the potential probability distribution of the music is generated by the generative model, and the high-dimensional audio distribution is searched and clustered by the VAE model. By converting the high-dimensional audio distribution into a spectrogram and then into the audio data of the song, the automatically generated songs are richer, and the created songs can be highly matched and aligned with the colloquial expression. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 is a schematic diagram of the structure of an end-to-end song generation system based on user colloquial expressions provided by an embodiment;
[0037] Figure 2 It is a flowchart of using the song generation system provided in the embodiment to generate songs;
[0038] Figure 3 It is a schematic diagram of a flow chart of generating potential probability distribution of music based on a generative model within a single time window provided by an embodiment;
[0039] Figure 4 is a schematic diagram of a structure for generating noise in a DIT sub-model provided in an embodiment;
[0040] Figure 5 is a flow chart of an end-to-end song generation method based on user colloquial expressions provided by an embodiment;
[0041] Figure 6 It is a schematic diagram of the structure of a computing device provided in an embodiment. DETAILED DESCRIPTION
[0042] To make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.
[0043] like Figure 1 As shown, the embodiment provides an end-to-end song generation system based on user colloquial spoken expressions, including an acquisition module 11, a lyrics generation module 12, and an audio generation module 13.
[0044] In the embodiment, the acquisition module 11 is used to obtain the colloquial expression text input by the user. The colloquial expression text is not conducive to the understanding of the model and the audio biochemical generation. Therefore, the colloquial expression text needs to be used as a description text prompt word and converted into a lyric sequence that the model can understand.
[0045] In the embodiment, the lyrics generation module 12 is used to generate a lyrics sequence with a segment structure according to the description text prompt word using a large language model. The lyrics sequence with a segment structure includes a sequence composed of lyrics, and the lyrics in the sequence are labeled, wherein the labels include timbre, instrument, sound effect, style, and segment structure label, wherein the segment structure label includes prelude <intro>, Main Song <verse>, Pre-chorus <pre-chorus>,refrain <chorus>, bridge or interlude<Bridgeor Interlude> , and Conclusion <outro>Etc. These tags constitute the rhythm of the whole song. Ignoring the lyrics, the segment structure tags are separated and arranged by separation tags. The structure description sequence of the song is named segment structure.
[0046] Among them, the prelude <intro>It is the introduction at the beginning of a song. It is usually a piece of pure music to attract the audience's attention. In addition, another popular design is to start the song with a vocal part, followed by an instrumental introduction. <verse>It refers to the part after the prelude that has a strong narrative tone and usually sounds a bit dull. <pre-chorus>, its role is to transition the emotion of the verse to the chorus. Many songs do not have a special pre-chorus section, and the latter part of the verse section plays the same role. <chorus>It is commonly known as the climax of a song, usually following the pre-chorus or verse of the song. The chorus is usually repeated many times.<Bridge or Interlude> It refers to the part that is generally used to connect the main song and the chorus, both of which are generally pure music.
[0047] The large language model uses Qwen's 14B model. According to official recommendations and subsequent practical results, the quantized dialogue model is most suitable for quickly verifying the lyrics generation requirements of the present invention, so the final base model uses Qwen-14B-Chat-Int4. Of course, other large language models can also be used. The large language model needs to be fine-tuned before it is used.
[0048] The text data used for fine-tuning includes: music annotations that are tagged by professionals and business enthusiasts, where the music annotations use professional descriptions and popular colloquial descriptions, and the professional descriptions and popular colloquial descriptions form data pairs to ensure the diversity of viewpoints, which can improve the accuracy of music annotations and their correspondence with common semantics. The large language model is fine-tuned using data pairs so that it can be converted into a lyric sequence (Song Structure & Lyric) with a segment structure (Song Structure) based on the popular colloquial description text. Specifically, the labels used for labeling also include timbre, instruments, sound effects, style, and segment structure.
[0049] In the embodiment, the audio generation module 13 is used to generate audio data based on the lyrics sequence. Specifically, a generative model is used to perform denoising processing based on the lyrics sequence with a musical segment structure to generate a potential probability distribution representing the music, and based on the potential probability distribution, a search is performed in the audio data space of the VAE model to obtain the audio distribution corresponding to the lyrics sequence. Each point in the audio distribution represents a segment of audio. After the audio distribution is converted into a spectrogram, the spectrogram is converted into audio data of the song.
[0050] Among them, when a generative model is used to perform denoising based on a lyrics sequence with a musical segment structure to generate a potential probability distribution representing music, denoising generation is performed according to a time window. Specifically, multiple consecutive time windows are initialized first, and the length of each time window corresponds to the length of the generated audio data, which can be defined by oneself. In multiple consecutive time windows, the length of the time windows can be the same or different without any constraints. In each time window, after the potential probability distribution is generated based on the generative model, the potential probability distribution generated in each time window is also converted into corresponding audio data through a subsequent conversion process.
[0051] Specifically, for each time window, at least a part of the lyrics sequence that matches the length of the time window is extracted from the lyrics sequence with a musical segment structure as the current input lyrics sequence, and continuous denoising is performed through a generative model based on the current input lyrics sequence and the generated audio data corresponding to the previous time window to generate a latent probability distribution (Latent Sample) representing the music corresponding to the current time window.
[0052] like Figure 2 and Figure 3 As shown, based on the current input lyrics sequence and the generated audio data corresponding to the previous time window, the generative model is used to continuously denoise and generate the potential probability distribution representing the music corresponding to the current time window, including:
[0053] For the current time window, such as Figure 2 As shown, the description text prompt is processed by CLAP to form a description embedding vector. This process ensures that the input description text prompt is converted into a dense vector representation, capturing the semantic nuances required for music generation. At the same time, the generated audio data corresponding to the previous time window is also processed by CLAP to form an audio embedding vector. The description embedding vector and the audio embedding vector are concatenated and then concatenated with the current noise to form a concatenated vector, which is then input into the generation model. At the same time, the current input lyrics sequence is converted into a lyrics embedding vector and is also input into the generation model, as shown in Figure 3 As shown, denoising processing is performed at time step t in the generative model to obtain a denoising result corresponding to time step t, and the denoising result is used as the current noise at time step t-1.
[0054] In the generative model, the denoising process is multi-time step, that is, t takes the value of [0, T], and after T+1 time steps of denoising, the final potential probability distribution is obtained. It should be noted that when t takes T, that is, the current noise corresponding to the first time step T of denoising is the initial random noise, and the generated audio data corresponding to the previous time window corresponding to the first time step T is an empty vector, that is, a vector composed of 0, and the dimension is the same as the audio data generated at other time steps. When t takes 0, that is, the denoising result corresponding to the last time step 0 of denoising is considered to be a noise-free result, which is the potential probability distribution representing the music obtained by the entire denoising process in the current time window.
[0055] In the embodiment, the generation model includes a DIT sub-model and a DDPM sub-model, and each time step in a single time window is processed by the DIT sub-model and the DDPM sub-model, wherein the DIT sub-model is used to generate noise based on the concatenated vector and the lyrics embedding vector corresponding to the lyrics sequence, and the DDPM sub-model is used to use the DIT sub-model to generate noise to further denoise the denoising result of the previous time step, that is, to perform subtraction calculation to obtain the denoising result of the current time step.
[0056] like Figure 4 As shown in the figure, in the DIM model, the input concatenated vector is processed as a noise latent vector (Noised latent) through patchification and the first layer normalization (Layer Norm), so that a token is generated by dividing multiple small blocks, and then the multi-head self-attention process (Multi-Head Self-Attention) is used to focus on different parts of the noise latent vector to capture complex dependencies and patterns, and obtain the first important feature. The first important feature and the input vector processed by the multi-head self-attention are concatenated through the first residual connection and then processed by the second layer normalization (Layer Norm) to obtain the input concatenated vector corresponding to the processed first vector;
[0057] At the same time, the current input lyrics sequence carries labels about timbre, instruments, sound effects, style, music structure, etc. Since the length of the lyrics vector corresponding to the current input lyrics sequence with labels is uncertain, it is input into the DIT sub-model for multi-head cross-attention learning. This mechanism enables the DIT sub-model to cross-learn lyrics content of uncertain length with audio. Specifically, the current input lyrics sequence is embedded to obtain the lyrics embedding vector, and then multi-head cross-attention processing (Multi-Head Cross-Attention) is performed with the first vector to focus on the second important feature, and the second important feature is spliced with the first residual connection result through the second residual connection to obtain the second vector;
[0058] The second vector is processed by the third layer normalization (Layer Norm) and pointwise feedforward (Pointwise Feedforward) and then concatenated with the second vector. The concatenated result is processed by the fourth layer normalization (Layer Norm), linear mapping (Linear) and reshape adjustment (Reshape) to obtain the noise distribution (Noise).
[0059] It should also be noted that in the generative model, the DIT sub-model can be replaced by the SIT model. The SIT model is a continuous, rate-predictable, linearly schedulable and SDE-sampled model. It integrates a flexible interpolation framework based on the architecture of the DIT model, allowing two data distributions to be connected in a more flexible way than the standard diffusion model. Compared with DiT, it has more diverse and flexible choices in interpolation (selection of interpolation parameters αt, σt) and sampler (ODE or SDE).
[0060] Specifically, the latent probability distribution generated by the original DIT sub-model is searched in the audio data space of the VAE model to obtain the audio distribution corresponding to the lyrics sequence. The interpolation parameters in the interpolation framework of the SIT sub-model can more efficiently find a mapping relationship between the disordered latent probability distribution and the normal high-dimensional distribution space of VAE, and the audio distribution corresponding to the lyrics sequence is searched and determined based on the mapping relationship, thereby improving the inference rate.
[0061] Furthermore, compared to the DiT sub-model, which is deterministic in the shape adjustment (Resample) step, the SiT sub-model adds a random sampling process in the Resample step through the selection of the sampler to generate a potential probability distribution. This allows the diffusion coefficient of the model to not need to be bound between inference and training, reducing the plagiarism rate.
[0062] The essence of song generation is to simulate the probability distribution p of the original sound. But this p may be very complex and cannot be calculated accurately. So try to start with a very simple distribution q, such as the standard normal distribution N(0,1). If you can find a functional F:q->p, then as long as you take a point in q, it corresponds to a song in p. It is too difficult to directly convert the unknown distribution p into the known standard normal distribution N(0,1), so it is implemented using multiple modules.
[0063] The expected audio space is similar to the normal distribution. Therefore, a space transformation is performed to transform the irregular space into a regular normal distribution. The complexly distributed music data set needs to be transformed into a normal high-dimensional distribution through the trained VAE model. VAE contains all the songs in the training data. Each song is a point. These points are spread out around the normal distribution, which determines the upper limit of the diversity of the generated songs.
[0064] Therefore, a variational autoencoder model, namely the VAE model, is also pre-trained. The VAE model includes a VAE encoder and a VAE decoder, which is obtained based on self-supervised training, wherein the VAE encoder is used to compress and encode the input audio data into an audio distribution in an audio data space, and the VAE decoder is used to decode the audio distribution in the audio data space to generate a spectrogram; the audio distribution in the audio data space corresponding to the trained VAE encoder is sampled as sample data for training the generated model; the trained VAE decoder is used to convert the audio distribution into a spectrogram when applied.
[0065] In an embodiment, samples are constructed based on the audio distribution of the audio data space of the trained VAE model to optimize the parameters of the generation model. Specifically, only the parameters of the DIT sub-model are optimized. The optimization process is: the audio distribution of the audio data space of the VAE model is sampled to obtain sample data, and the audio data is used as a label to perform supervised training on the generation model based on the sample data under the label to optimize the generation model parameters.
[0066] Since the training sample data of the generative model is obtained by sampling the audio data space obtained by compressing the audio data set through the VAE encoder, the training sample data of the generative model is equivalent to a subset of the audio data space corresponding to the VAE model. In this way, the potential probability distribution representing music obtained by using the trained generative model is also a subset of the audio data space. Each point in the potential probability distribution represents a song, and the expected audio space is similar to the normal distribution. Therefore, an audio space conversion is required to convert the space corresponding to the irregular potential probability distribution into a regular space distribution. The audio data space of the trained VAE model is considered to be a dictionary. In each time window, the potential probability distribution is used as an index to search in the dictionary of the VAE model to obtain the audio distribution corresponding to the lyrics sequence. Such an audio distribution satisfies the normal distribution. Similarly, each point in the audio distribution represents a piece of audio.
[0067] like Figure 2 As shown in the figure, after obtaining the audio distribution in each time window, the VAE decoder converts the normal distribution of the audio distribution into a specific scattered distribution. Each point in the scattered distribution also represents a piece of audio. When placed in the entire audio data space, the normal distribution to the scattered point group similar songs together, which can be used to extract song information. The scattered distribution is visualized and converted into a spectrogram in the form of a heat map, which can be a Mel-spectrogram. Each bright spot in the figure corresponds to a small piece of audio in the song.
[0068] The spectrogram is just audio in the form of image visualization, but it is not the real audio in the form of sound. For this reason, the spectrogram needs to be converted into the audio data of the song. As we all know, the conversion from sound to heat map is easy, but the reverse is not easy. Because the heat map only has the volume level (or bright or dark), there is no relationship between sounds (phase). To solve this problem, the present invention also trains a conversion model HiFi-GAN, the purpose of which is to convert the audio according to the given heat map into the form of sound. Then, in each time window, the trained conversion model HiFi-GAN is used to convert the spectrogram in the form of heat map into the audio of the song, and the audio data will be used as the input data of the next time window.
[0069] The end-to-end song generation system can realize the generation from colloquial description to song audio, aiming to create songs based on given colloquial description text. Unlike previous work that focused on specific aspects of text-to-song generation, the system of the present invention covers the entire creation process from abstract description to complete song production, and has unique features:
[0070] (1) Fully understand spoken language: Since people usually use spoken language rather than professional descriptions, it is crucial to support both spoken and professional descriptions. However, spoken descriptions are more difficult to understand and process. The system of the present invention fine-tunes the large language model through a self-constructed annotated dataset, so that the large language model can convert the spoken description text into a lyric sequence with a musical segment structure, achieving full understanding of the spoken description and high-quality generation of the lyric sequence;
[0071] (2) Fully capture the musical structure of the song: The musical structure of the song mainly includes the musical phrase structure and rhyme structure. The generative model, VAE model and conversion model HiFiGAN in the audio generation module are used to generate songs with musical structure, ensuring coherence and overall quality.
[0072] like Figure 5 As shown, the embodiment also provides an end-to-end song generation method based on user colloquial expressions, the method adopts the above end-to-end song generation system, and includes the following steps:
[0073] S1, using an acquisition module to acquire a colloquial expression text input by a user and use it as a description text prompt word;
[0074] S2, using the lyrics generation module to use a large language model to generate a lyrics sequence with a music segment structure according to the description text prompt words;
[0075] S3, using the audio generation module to generate audio data based on the lyrics sequence.
[0076] Specifically, within each time window, a generative model is used to perform denoising processing based on a lyric sequence with a musical segment structure to generate a potential probability distribution representing the music, and based on the potential probability distribution, a search is performed in the audio data space of the VAE model to obtain a high-dimensional audio distribution corresponding to the lyric sequence. Each point in the audio distribution represents a segment of audio. After the high-dimensional audio distribution is converted into a spectrogram, the spectrogram is converted into the audio data of the song. The audio data generated sequentially in multiple time windows constitute the final audio data.
[0077] The embodiment further provides a computing device, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, the end-to-end song generation method based on the user's colloquial expression is implemented, specifically including the following steps:
[0078] S1, using an acquisition module to acquire a colloquial expression text input by a user and use it as a description text prompt word;
[0079] S2, using the lyrics generation module to use a large language model to generate a lyrics sequence with a music segment structure according to the description text prompt words;
[0080] S3, using the audio generation module to generate audio data based on the lyrics sequence.
[0081] like Figure 6 As shown, the computing device provided in the embodiment, at the hardware level, includes not only a processor and a memory, but also hardware required for other services such as an internal bus, a network interface, and a memory. The memory is a non-volatile memory, and the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the end-to-end song generation method based on the user's colloquial expression described in S1-S3 above. Of course, in addition to software implementations, the present invention does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0082] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.< / chorus> < / verse> < / intro> < / outro> < / chorus> < / verse> < / intro>
Claims
1. An end-to-end song generation system based on user colloquial expressions, characterized in that: include: An acquisition module, which is used to acquire the colloquial expression text input by the user and use it as a description text prompt word; A lyrics generation module, which is used to generate a lyrics sequence with a music segment structure according to the description text prompt words using a large language model; The audio generation module is used to use a generative model to perform denoising on a lyrics sequence with a musical segment structure to generate a potential probability distribution representing the music, and based on the potential probability distribution, search in the audio data space of the VAE model to obtain the audio distribution corresponding to the lyrics sequence. Each point in the audio distribution represents a segment of audio. After converting the audio distribution into a spectrogram, the spectrogram is converted into audio data of the song.
2. The end-to-end song generation system based on user colloquial expressions according to claim 1 is characterized in that: The lyrics sequence with a segment structure includes a sequence composed of lyrics, wherein the lyrics are labeled, wherein the labels include timbre, instrument, sound effect, style, and segment structure labels, and the segment structure labels include prelude, verse, pre-chorus, chorus, bridge or interlude, and conclusion; Ignoring the lyrics, the segment structure tags are separated and arranged by separation tags to form a segment structure.
3. The end-to-end song generation system based on user colloquial expressions according to claim 2 is characterized in that: The method of using a generative model to perform denoising on a lyrics sequence having a music segment structure to generate a potential probability distribution representing music includes: Initialize multiple consecutive time windows, and for each time window, extract at least a portion of the lyrics sequence that matches the length of the time window from the lyrics sequence with a segment structure as the current input lyrics sequence, and perform continuous denoising based on the generated audio data corresponding to the current input lyrics sequence and the previous time window through a generative model to generate a potential probability distribution representing the music corresponding to the current time window.
4. The end-to-end song generation system based on user colloquial expressions according to claim 3 is characterized in that: The method of continuously denoising the generated audio data based on the current input lyrics sequence and the previous time window through a generative model to generate a potential probability distribution representing music corresponding to the current time window includes: For the current time window, the generated audio data and the description text prompt words corresponding to the previous time window are processed by CLAP to form an embedded vector, which is then concatenated with the current noise to form a concatenated vector and input into the generation model. At the same time, the current input lyrics sequence is also input into the generation model. The generation model performs denoising processing at time step t to obtain the denoising result corresponding to time step t, and the denoising result is used as the current noise at time step t-1; Among them, t takes the value of [0,T]. When t takes T, the current noise corresponding to time step T is the initial random noise, and the generated audio data corresponding to the previous time window corresponding to time step T is an empty vector; when t takes 0, the denoising result corresponding to time step 0 is considered to be a noise-free result, as the potential probability distribution representing the music.
5. The end-to-end song generation system based on user colloquial expressions according to claim 4 is characterized in that: The generation model includes a DIT sub-model for performing noise generation based on the splicing vector and the lyrics sequence, and a DDPM sub-model for performing denoising calculation based on the generated noise; In the DIM model, the input concatenated vector is processed as a noise potential vector after block partitioning and first-layer normalization, and then the multi-head self-attention process is used to focus on the first important feature, and the first important feature and the input vector processed by the multi-head self-attention process are concatenated through the first residual connection and then processed by the second layer of normalization to obtain the input concatenated vector corresponding to the processed first vector; After the current input lyrics sequence is embedded, the embedding vector is obtained, and then multi-head cross attention processing is performed with the first vector to focus on the second important feature, and the second important feature is concatenated with the first residual connection result through a second residual connection to obtain a second vector; The second vector is normalized and point-by-point feed-forwarded in the third layer and then concatenated with the second vector. The concatenated result is normalized, linearly mapped, and reshaped in the fourth layer to obtain the noise distribution.
6. The end-to-end song generation system based on user colloquial expressions according to claim 5 is characterized in that: The DIT sub-model is replaced by a SIT sub-model. In the SIT sub-model, during the shape adjustment process, random sampling is performed by selecting a sampler, and a noise distribution is generated based on the random sampling result. In the interpolation framework of the DIT sub-model, a mapping relationship is found between the potential probability distribution of the generative model output and the high-dimensional normal distribution space of the VAE by selecting the interpolation parameters, and the audio distribution corresponding to the lyrics sequence is searched and determined based on the mapping relationship.
7. The end-to-end song generation system based on user colloquial expressions according to claim 1 is characterized in that: The VAE model includes a VAE encoder and a VAE decoder, which are obtained based on self-supervised training, wherein the VAE encoder is used to compress and encode the input audio data into an audio distribution in an audio data space, and the VAE decoder is used to decode the audio distribution in the audio data space to generate a spectrogram; The audio distribution of the audio data space corresponding to the trained VAE encoder is sampled as sample data for training the generative model; The trained VAE decoder is used to convert the audio distribution into a spectrogram when applied.
8. The end-to-end song generation system based on user colloquial expressions according to claim 1 is characterized in that: The generative model needs to undergo parameter optimization before being applied. During parameter optimization, the audio distribution of the audio data space of the VAE model is sampled to obtain sample data, and the audio data is used as a label to perform supervised training on the generative model based on the sample data under the label to optimize the generative model parameters.
9. The end-to-end song generation system based on user colloquial expressions according to claim 1 is characterized in that: The large language model is fine-tuned before being applied, and the text data used in the fine-tuning includes: music annotations used by professionals and business enthusiasts to mark music, wherein the music annotations use professional descriptions and popular colloquial descriptions, and the professional descriptions and the popular colloquial descriptions form data pairs, and the large language model is fine-tuned using the data pairs so that it can be converted into a lyric sequence with a musical segment structure based on the popular colloquial description text.
10. An end-to-end song generation method based on user colloquial expressions, characterized in that: Using the end-to-end song generation system described in claims 1-9, the method comprises the following steps: Using the acquisition module to acquire the colloquial language expression text input by the user and use it as a description text prompt word; The lyrics generation module uses a large language model to generate a lyrics sequence with a musical segment structure according to the description text prompt words; The music generation module is used to generate audio data based on the lyrics sequence, specifically including: within each time window, a generative model is used to perform denoising processing based on the lyrics sequence with a musical segment structure to generate a potential probability distribution representing the music, and based on the potential probability distribution, a search is performed in the audio data space of the VAE model to obtain a high-dimensional audio distribution corresponding to the lyrics sequence, each point in the audio distribution represents a segment of audio, and after the high-dimensional audio distribution is converted into a spectrogram, the spectrogram is converted into the audio data of the song, and the audio data generated in sequence in multiple time windows constitute the final audio data.
11. A computing device comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the one or more processors execute the executable code, they are used to implement the end-to-end song generation method based on user colloquial expressions as described in claim 10.
Citation Information
Patent Citations
Song generation method, device and system and data processing and song playing method
CN109979497A
Intention recognition model training method, intention recognition method, and related apparatus
CN111161740A
Music recommendation method based on time residence and state residence mixed model
CN113220929A
Active noise reduction filter generation method, storage medium and earphone
CN114339513A
Initial and final pronunciation duration prediction method and structure, terminal and storage medium
CN114913877A
Cited By
Detection feature enhancement method, system and device for forged audio and medium
CN120089151A
Method and system for completing searching according to fuzzy significance label by using AI large model
CN120386810A
