Quick singing tone conversion method and device based on zero sample

By constructing a singing voice data set and a feature decoupler using the Hubert model and residual quantization codebook, combined with adversarial training, the problem of lack of data and unclear feature decoupling in singing voice tone conversion was solved, and rapid detection in zero-sample scenarios was achieved. and efficient conversion, improving conversion quality and generalization performance.

CN118782016AActive Publication Date: 2024-10-15BEIJING DUIJIUDANGGE TECH CO LTD

Patent Information

Application Number
CN202410922079.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-15
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The existing technology has problems with lack of data, unclear feature decoupling and dependence on the discriminator in singing voice conversion, making it difficult to achieve efficient conversion of zero-sample scenes, especially when the voice content is diversified and the rhythm is enhanced in the singing scene. .

Method used

Construct a singing data set containing dry vocals and lyric text, introduce the Hubert model and the singing feature decoupler of the residual quantization codebook, extract speech content features and morpheme features through cross prediction, combine audio super-resolution processing and adversarial training, and generate The discriminator and discriminator are adversarially trained to generate synthetic human voices for fast conversion.

Benefits of technology

It improves the accuracy of speech content feature extraction and timbre conversion quality, reduces conversion time, realizes rapid conversion of zero-sample singing timbres, and ensures conversion quality and generalization performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118782016A_ABST
    Figure CN118782016A_ABST
Patent Text Reader

Abstract

The invention discloses a quick singing tone conversion method and device based on a zero sample, and the method comprises the steps: constructing a singing data set containing a trunk voice and a lyric text, and constructing a singing feature decoupler containing a Hubert model and a residual quantization codebook to extract an audio codebook index sequence of the trunk voice, a text encoder is introduced to extract morpheme features and a morpheme index sequence of a lyric text, a singing feature decoupler is optimized through cross prediction in sequence, so that the accuracy of voice content feature extraction can be improved, and on the basis, pitch features and timbre features representing rhythm are introduced, so that the accuracy of voice content feature extraction is improved. The quality of the human voice generated and synthesized by the generator based on the voice content features, the pitch features and the timbre features is enhanced through adversarial training, rapid conversion from the song human voice tone to the user timbre is realized, and the conversion quality can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of natural language processing in artificial intelligence, and in particular relates to a method and device for rapid conversion of singing voice tonality based on zero samples. Background Art

[0002] The task of singing voice conversion aims to convert the vocal timbre of a given original song into that of another person while keeping the content of the song consistent. Existing singing voice conversion uses a few-sample learning method, which requires tens of minutes to hours of data to fine-tune the model to achieve timbre conversion. Zero-sample singing voice conversion requires directly converting the vocal timbre of the original song to the timbre of the reference audio based on the original song and a few seconds of reference audio without training the model. In terms of timbre conversion, previous research has mainly focused on non-singing speech conversion, and is mainly divided into synthesis methods and conversion methods.

[0003] The synthesis method generally adopts encoder-decoder deconstruction, in which a feature decoupling method is introduced to use multiple encoders to extract speech content feature representation (Content Encoder) and speaker feature representation (Speaker Encoder) from the speech. In the training stage of the synthesis method, the synthesis method first trains the speaker encoder and the speech content encoder separately, and then trains and fine-tunes the two together with the decoder. Existing research mainly adopts the training strategy of generative adversarial network (GAN). In the process of training the encoder, a speaker judger is introduced to judge whether the speech content encoder is the same speaker or which speaker. By making the judge unable to identify the speaker, the speech content encoder can ensure that it does not contain speaker information, thereby achieving the purpose of feature decoupling. Finally, by splicing the original speech content features with the speaker features together, the decoder can generate the voice after timbre conversion.

[0004] The conversion method skips the process of feature decoupling and regeneration, and directly converts the original speech content into the target timbre. CycleGAN inputs the speech of the original speaker through a converter, outputs the speech of the target speaker, and is converted back to the original speaker by another converter. During the process, the discriminator is used to determine whether it is the same speaker for adversarial training. However, CycleGAN is constrained by the number of speakers, and a set of models needs to be trained for different speakers. StarGAN introduces speaker feature representation in the direct conversion process, and uses the discriminator to determine whether it belongs to the input speaker, so as to achieve direct timbre conversion for multiple speakers. In summary, although the conversion method avoids the feature decoupling process of the synthesis method, if you want to achieve a specific timbre conversion, it still depends on the speaker features. And because the speaker features are not eliminated in the speech content, it is easy to fall into mode collapse if only the discriminator is relied on to achieve speaker discrimination, especially for zero-sample scenarios, it is difficult to ensure that the original speech features do not interfere with the speaker features.

[0005] Nowadays, voice conversion methods need to be trained on large-scale speech datasets first. Voice conversion datasets can be divided into two categories: 1) paired datasets (parallel data); 2) unpaired datasets (unparallel data). Paired datasets contain speech of multiple speakers speaking the same paragraph. However, under such stringent requirements, the number of existing paired datasets is scarce and it is difficult to support the training of speech models. In addition, paired data and limited speakers have the risk of causing the model to fall into overfitting, further reducing the generalization performance of the model. Unpaired datasets are large in scale and contain different speakers and different speech content. Although they provide sufficient data for voice conversion models, due to the uncertainty of speakers, multilingual speech, lack of annotations and other issues, voice alignment and speaker annotation of voice conversion models have brought great challenges. Although there are voice conversion datasets such as Voice Conversion Challenge and LibriSpeech, there is no large-scale dataset for singing voice conversion.

[0006] In summary, there is currently a lack of data in the area of ​​singing voice timbre conversion, and methods still need to be improved. Direct timbre conversion methods are difficult to migrate to zero-sample scenarios due to unclear feature decoupling and reliance on the discriminator. The synthesis method uses a dual stage of feature decoupling and synthesis, which alleviates the feature coupling problem to a certain extent, but the content extraction method is not suitable for singing scenarios. This is because singing, compared to speaking, dilutes the speech content and strengthens the rhythm, and the speech content is more diverse due to the singing style of songs, so both the speaker encoder and the speech content encoder need to be adjusted. Summary of the invention

[0007] In view of the above, the purpose of the present invention is to provide a method and device for rapid singing voice timbre conversion based on zero samples, which is mainly aimed at the zero-sample singing voice timbre conversion scenario, improves the song voice content coding and speaker coding in the feature decoupling stage, introduces the song basic frequency coding to characterize the song rhythm to enhance the feature representation, and improves the timbre conversion quality through adversarial training tasks, thereby improving the generalization performance of timbre post-conversion.

[0008] To achieve the above-mentioned purpose of the invention, an embodiment provides a method for quickly converting singing voice based on zero sample, comprising the following steps:

[0009] Construct a singing dataset containing dry vocals and lyrics text;

[0010] Construct a singing voice feature decoupler including a Hubert model and a residual quantization codebook, wherein the Hubert model is used to extract the initial content features of the dry human voice, and the residual quantization codebook is used to map the initial content features into an audio codebook index sequence. A text encoder is introduced to extract the morpheme index sequence and morpheme features of the lyrics text, and a singing voice feature decoupler is trained by cross-prediction based on the audio codebook index sequence, morpheme index sequence, and morpheme features.

[0011] In the feature extractor, the trained singing feature decoupler is used in combination with audio super-resolution processing to extract the speech content features of the dry voice, and the pitch features and timbre features of the dry voice are extracted. In the generator, synthetic voice is generated according to the speech content features, pitch features and timbre features, a discriminator is introduced to distinguish between the synthetic voice and the dry voice, and the feature extractor, generator and discriminator are trained by adversarial training.

[0012] When applying inference, the trained feature extractor and generator are used to generate synthetic human voice as the converted singing voice, realizing rapid conversion of singing voice tonality.

[0013] Preferably, a text encoder is introduced to extract the morpheme index sequence and morpheme features of the lyrics text, including:

[0014] The text encoder includes a morpheme extraction unit and a morpheme feature extraction unit. The morphemes in the lyrics text are extracted by the morpheme extraction unit, and the morpheme indexes corresponding to the morphemes are obtained based on the morpheme-index table to form a morpheme index sequence. The morpheme features are extracted based on the morpheme index sequence by the morpheme feature extraction unit.

[0015] Preferably, the singing feature decoupler is trained by cross-prediction based on the audio codebook index sequence, the morpheme index sequence and the morpheme features, including:

[0016] A content predictor is introduced, and a morpheme index sequence input to the content predictor is embedded to obtain a morpheme embedding feature, and the morpheme embedding feature is fused with the morpheme feature to obtain a fused morpheme feature. An audio codebook index sequence input to the content predictor is embedded to obtain an audio feature, and the fused morpheme feature and the audio feature are cross-predicted, that is, a predicted audio codebook index sequence corresponding to speech is generated based on the fused morpheme feature, and a predicted morpheme index sequence corresponding to text is generated based on the audio feature;

[0017] An audio alignment loss is constructed based on the audio codebook index sequence and the predicted audio codebook index sequence, and a text alignment loss is constructed based on the morpheme index sequence and the predicted morpheme index sequence. The singing feature decoupler is trained based on the audio alignment loss and the morpheme alignment loss to optimize the parameters of the Hubert model and update the residual quantization codebook.

[0018] Preferably, the feature extractor uses a trained singing feature decoupler in combination with audio super-resolution processing to extract the speech content features of the dry human voice, and simultaneously extracts the pitch features and timbre features of the dry human voice, including:

[0019] The trained singing feature decoupler is used to extract the audio codebook index sequence of the input dry human voice, and the audio codebook index sequence is subjected to audio super-resolution processing to obtain the speech content features of the dry human voice;

[0020] The Mel spectrum is extracted from the dry vocals, and the fundamental frequency curve reflecting the pitch contour of the song is extracted from the Mel spectrum by the fundamental frequency extractor RMVPE as the pitch feature. At the same time, a convolutional neural network is used to extract the timbre features from the Mel spectrum.

[0021] Preferably, generating a synthesized human voice in the generator according to the speech content features, pitch features and timbre features includes:

[0022] The speech content features, pitch features, and timbre features are all input into the multi-dimensional timbre embedding encoder. After each of them passes through the embedding layer to unify the dimensions, any two features are cross-added through the cross-attention mechanism to obtain a speech embedding representation containing rhythm, timbre, and content. Based on the speech embedding representation, a prior distribution representing the speech distribution is generated. When applying reasoning, the prior distribution and timbre features are processed by the stream model and then passed through the audio decoder to generate a synthetic human voice.

[0023] The posterior encoder is introduced to generate the posterior distribution of speech distribution according to the speech content characteristics of the dry human voice. During adversarial training, the posterior distribution and timbre characteristics are processed by the flow model and then passed through the audio decoder to generate synthetic human voice.

[0024] Preferably, when the feature extractor, generator and discriminator are trained in an adversarial training manner, the loss functions used include: the adversarial loss of the adversarial network composed of the generator and the discriminator, the audio synthesis loss constructed based on the Mel spectrum difference and feature map difference between the synthesized human voice and the original dry human voice, the similarity loss between the prior distribution and the posterior distribution, and the quantization loss based on the residual quantization codebook.

[0025] Preferably, when applying inference, the speech content features and pitch features of the singing voice to be converted are extracted by a feature extractor, and the timbre features of the target voice are directly extracted by a convolutional neural network. Then, a synthetic voice is generated as the converted singing voice based on the speech content features and pitch features of the singing voice to be converted and the timbre features of the target voice by a generator.

[0026] To achieve the above-mentioned purpose of the invention, the embodiment further provides a device for quickly converting singing voice tone based on zero sample, comprising:

[0027] A data construction module, which is used to construct a singing data set including dry vocals and lyrics text;

[0028] A pre-training module is used to construct a singing voice feature decoupler including a Hubert model and a residual quantization codebook, wherein the Hubert model is used to extract the initial content features of the dry human voice, the residual quantization codebook is used to map the initial content features into an audio codebook index sequence, a text encoder is introduced to extract the morpheme index sequence and morpheme features of the lyrics text, and a singing voice feature decoupler is trained by cross-prediction based on the audio codebook index sequence, the morpheme index sequence and the morpheme features;

[0029] An adversarial training module is used to extract the speech content features of the dry voice by using the trained singing feature decoupler combined with audio super-resolution processing in the feature extractor, and to extract the pitch features and timbre features of the dry voice at the same time, to generate a synthetic voice in the generator according to the speech content features, pitch features and timbre features, to introduce a discriminator to distinguish and discriminate the synthetic voice from the dry voice, and to train the feature extractor, generator and discriminator by adversarial training;

[0030] An inference module is applied, which is used to generate a synthetic human voice as a converted singing voice using the trained feature extractor and generator, so as to realize a rapid conversion of singing voice tonality.

[0031] To achieve the above-mentioned purpose of the invention, an 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, they are used to implement the above-mentioned zero-sample-based singing voice tonality rapid conversion method.

[0032] To achieve the above-mentioned purpose of the invention, an embodiment further provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned method for rapid conversion of singing voice tone based on zero samples is implemented.

[0033] Compared with the prior art, the present invention has the following beneficial effects:

[0034] A singing feature decoupler containing the Hubert model and residual quantization codebook will be constructed to extract the audio codebook index sequence, and a text encoder will be introduced to extract morpheme features and morpheme index sequences. The singing feature decoupler will be optimized through cross-prediction in turn to improve the accuracy of speech content feature extraction. On this basis, pitch features and timbre features representing rhythm will be introduced, and adversarial training will be used to enhance the quality of the generator generating synthetic vocals based on speech content features, pitch features and timbre features, so as to achieve rapid conversion of the song's vocal timbre to the user's timbre while ensuring the quality of the conversion. 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 flow chart of a method for rapid conversion of singing voice tone based on zero samples provided by an embodiment;

[0037] Figure 2 It is a flow chart of constructing a singing data set provided by an embodiment;

[0038] Figure 3 is a pre-training flow chart of a singing feature decoupler provided in an embodiment;

[0039] Figure 4 is a flowchart of adversarial training provided by an embodiment;

[0040] Figure 5 is an application reasoning flow chart provided by an embodiment;

[0041] Figure 6 is a structural schematic diagram of a device for rapid conversion of singing voice tone based on zero samples provided in an embodiment;

[0042] Figure 7 It is a schematic diagram of the structure of a computing device provided in an embodiment. DETAILED DESCRIPTION

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

[0044] Although the singing voice timbre conversion method can be achieved by drawing on traditional speech synthesis and conversion methods, there is still a lack of large-scale integrated singing dry vocal data to train the model. At the same time, these methods require user data ranging from ten minutes to several hours to adjust the model. For a single ordinary user, this scale of data is difficult to achieve, which greatly limits the application and promotion of singing voice timbre conversion.

[0045] In order to solve the technical problems of missing data sets and relying on small-sample data to fine-tune the model, an embodiment of the present invention provides a zero-sample based fast singing timbre conversion solution, which aggregates and processes singing vocal data to construct a singing data set, and completes the feature decoupling of singing audio according to the differences between singing and speech, uses auxiliary tasks to improve the accuracy of feature decoupling, and trains the model through adversarial training to decouple and combine the features of the original singing to be converted and the target user's voice to generate the singing after timbre conversion, ultimately achieving zero-sample fast singing timbre conversion and reducing the user's reference audio data duration requirement to five seconds.

[0046] like Figure 1 As shown, the embodiment provides a method for quickly converting singing voice based on zero samples, comprising the following steps:

[0047] S1, construct a singing dataset containing dry vocals and lyrics text.

[0048] In the embodiment, Figure 2 As shown in the figure, hundreds of thousands of song data were obtained by crawling technology and sorting open source data sets, covering multiple languages. In order to eliminate interference from factors other than human voice, the human voice classifier demucs was used to separate the song audio to obtain the pure human voice of the song, that is, the dry human voice. In addition, in order to obtain the human voice lyrics in the song to improve the accuracy of the model's voice content extraction, funasr and whisper v3 were used to extract the complete lyrics and the pronunciation start and end time of each word from Chinese and foreign songs respectively. The final data was manually screened, and all errors in the recognition results were deleted to obtain a singing data set containing dry human voice and lyrics text.

[0049] S2, construct a singing feature decoupler and perform pre-training.

[0050] In the embodiment, Figure 3As shown, the constructed singing feature decoupler includes a Hubert model and a residual quantization codebook, wherein the Hubert model is pre-trained and used to extract the initial content features of dry vocals. Specifically, in the Hubert model, the audio time domain features are obtained from the audio file of the dry vocals at a sampling rate of 16kHz, and the Mel spectrum features are extracted through fast Fourier transform and Mel filter, and the initial content features are obtained based on the Mel spectrum features. The residual quantization codebook is composed of several quantization codebooks connected in sequence, each of which converts the input vector into a corresponding quantization codebook vector index sequence, and outputs the result after subtracting the input vector from the corresponding codebook vector to the next quantization codebook, so as to pass it, and the final result is spliced ​​by the vector index sequences obtained by all codebooks. The initial content features can be mapped to an audio codebook index sequence through the residual quantization codebook, so that feature extraction is performed from the aspect of speech content.

[0051] In the embodiment, feature extraction is also performed from the aspect of text content, and a text encoder is specifically introduced to extract the morpheme index sequence and morpheme features of the lyrics text, wherein the text encoder includes a morpheme extraction unit and a morpheme feature extraction unit, and the morphemes in the lyrics text are extracted by the morpheme extraction unit, and each word in Chinese, English and Japanese is converted into the corresponding minimum pronunciation unit-morpheme according to the language difference using pypinyin and g2p_en and pyopenjtalk, and the morpheme index corresponding to the morpheme is obtained based on the morpheme-index table, thereby forming a morpheme index sequence. In order to solve the problem of sparse index, morpheme features are extracted based on the morpheme index sequence by the morpheme feature extraction unit, and specifically, the morpheme index sequence is subjected to feature embedding processing using the large-scale pre-trained text processing model Bert, and finally a high-dimensional morpheme feature is obtained.

[0052] Due to the domain differences between the extracted audio and text, the extracted morpheme index sequence and the audio codebook index sequence still need to be aligned through training. This alignment process enables the extracted audio codebook index sequence to accurately reflect the text content contained in the morpheme features and reduce the interference information such as the original timbre and rhythm contained in the Hubert model. Specifically, a content predictor is introduced to assist feature alignment through the speech content prediction task. The audio codebook index sequence, morpheme index sequence and morpheme features are input into the content predictor for cross-prediction to train the singing feature decoupler, so that the features corresponding to the two sequences are aligned and can reflect the original content information.

[0053] Specifically, the content predictor adopts a Transformer-based Decoder structure. The morpheme index sequence input to the content predictor is embedded to obtain a morpheme embedding feature, and the morpheme embedding feature is fused with the morpheme feature to obtain a fused morpheme feature. The audio codebook index sequence input to the content predictor is embedded to obtain an audio feature. The fused morpheme feature and the audio feature are cross-predicted, that is, a predicted audio codebook index sequence corresponding to speech is generated based on the fused morpheme feature, and a predicted morpheme index sequence corresponding to text is generated based on the audio feature.

[0054] During training, first read the corresponding audio clip from the time interval annotated by the lyrics of the singing data set to obtain the paired lyrics text and the dry human voice as the speech information, then extract the audio codebook index sequence, morpheme index sequence and morpheme features through the above-mentioned singing feature decoupler and text encoder, and then generate the predicted audio codebook index sequence and predicted morpheme index sequence through the above-mentioned content predictor, finally construct the audio alignment loss based on the audio codebook index sequence and the predicted audio codebook index sequence, and construct the text alignment loss based on the morpheme index sequence and the predicted morpheme index sequence, and train the singing feature decoupler based on the audio alignment loss and the morpheme alignment loss to optimize the parameters of the Hubert model and update the residual quantization codebook, so as to ensure the accuracy of content feature decoupling, and then ensure the accuracy of subsequent speech content feature extraction.

[0055] S3, based on the trained singing feature decoupler, extracts the speech content features of the dry voice, and extracts the pitch features and timbre features of the dry voice, and then performs adversarial training based on the generator and the discriminator.

[0056] In the embodiment, a feature extractor is constructed based on the trained singing feature decoupler, wherein the feature extractor includes the trained singing feature decoupler, audio super-resolution processing, a fundamental frequency extractor RMVPE, and a convolutional neural network, wherein the convolutional neural network includes a fully connected layer, a convolutional layer, and a self-attention layer. Specifically, Figure 4 As shown, the process of extracting features using a feature extractor includes:

[0057] The trained singing feature decoupler is used to extract the audio codebook index sequence of the input dry human voice, and the audio codebook index sequence is subjected to audio super-resolution processing to obtain the speech content features of the dry human voice;

[0058] Extract the Mel spectrum from the dry vocals. For the rhythm of the song, the fundamental frequency curve reflecting the pitch contour of the song is extracted from the Mel spectrum by the fundamental frequency extractor RMVPE as the pitch feature.

[0059] Since the Mel spectrum feature can well reflect the human ear's perception of audio, a convolutional neural network is used to extract the timbre features from the Mel spectrum. That is, the Mel spectrum is mapped by a fully connected layer, then convolved by a convolution layer, and then the features obtained by the convolution are focused on by a self-attention layer to obtain the timbre features.

[0060] The above feature extractor can accurately extract the speech content features, pitch features and timbre features from the speech. The extracted timbre features constitute the speaker encoding features. Then the adversarial training strategy is introduced to combine the generator and the discriminator to complete the singing synthesis after timbre conversion. The specific process is as follows Figure 4 As shown:

[0061] In the generator, the speech content features are used as the control conditions for synthesizing human voices, together with the pitch features and timbre features, and are input into the multi-dimensional timbre embedding encoder. After each of them passes through the embedding layer to unify the dimensions, any two features are cross-added through the cross-attention mechanism to obtain a speech embedding representation containing rhythm, timbre and content. Based on the speech embedding representation, a prior distribution representing the speech distribution is generated. The prior distribution is represented by the mean and logarithmic variance. At the same time, a posterior encoder is introduced to generate a posterior distribution of the speech distribution according to the speech content features of the dry voice. The posterior distribution is also represented by the mean and logarithmic variance. During adversarial training, the posterior distribution and timbre features are processed by a flow model and then passed through an audio decoder to generate a synthesized human voice. Among them, the flow model can use the Glow model, and the audio decoder uses a deconvolution structure.

[0062] During the adversarial training process, the discriminator distinguishes between audio of synthesized human voices and audio of original dry human voices after comprehensively evaluating the spatiotemporal features of the audio through stacked one-dimensional and two-dimensional convolutional networks. The loss function used, in addition to the adversarial loss of the adversarial network composed of the generator and the discriminator, also includes various other losses corresponding to the generator, specifically including an audio synthesis loss constructed based on the Mel spectrum difference and feature map difference between the synthesized human voice and the original dry human voice, wherein the Mel spectrum difference and the feature map difference can both adopt LI loss or L2 loss, and the feature map loss refers to the feature map extracted corresponding to the synthesized human voice and the original dry human voice, which can come from the intermediate feature map extracted by the discriminator, or can be a feature map extracted by another network structure such as VGG; it also includes a similarity loss based on the prior distribution and the posterior distribution, which can be a KL divergence loss, which is specifically calculated by the mean and logarithmic variance of the prior distribution and the mean and corresponding variance of the posterior distribution; it also includes a quantization loss based on a residual quantization codebook, the residual quantization codebook is continuously optimized during the training process, and the difference between the features before and after mapping by the residual quantization codebook is used as the quantization loss.

[0063] The feature extractor, generator, and discriminator are adversarially trained through the loss function constructed above, so that the audio of the synthesized human voice generated by the generator becomes gradually difficult to distinguish, and the prior distribution of the prior space and the posterior distribution of the posterior space gradually approach each other, ensuring that the subsequent reasoning application can directly synthesize the timbre-converted song audio based on the prior original audio of the song and the user's target timbre reference audio.

[0064] S4, when applying inference, uses the trained feature extractor and generator to generate synthetic human voice as the converted singing voice, achieving rapid conversion of singing voice tonality.

[0065] In the embodiment, during model inference, the decoupling result of the voice feature uploaded by the user is merged with the decoupling result of the original song, the timbre feature of the user's voice replaces the timbre feature of the original song, and the final synthesized human voice is generated to achieve song timbre conversion. Specifically, after completing the above training, the inference process of song timbre conversion no longer requires a posterior encoder, but directly uses the trained feature extractor and generator to generate the synthesized human voice, such as Figure 4 As shown, the following process is included:

[0066] Firstly, the speech content features and pitch features of the song to be converted are extracted by a feature extractor. Specifically, the audio codebook index sequence of the input song to be converted is extracted by using a trained song feature decoupler, and the audio codebook index sequence is subjected to audio super-resolution processing to obtain the speech content features of the song to be converted; at the same time, a convolutional neural network is used to directly extract the timbre features of the target human voice, that is, the timbre features of the target human voice are used to replace the timbre features of the human voice to be converted;

[0067] Then, a synthesized vocal is generated as the converted singing voice through a generator based on the speech content features and pitch features of the vocal to be converted and the timbre features of the target vocal. Specifically, the speech content features and pitch features of the vocal to be converted and the timbre features of the target vocal are input into a multidimensional timbre embedding encoder to generate a prior distribution representing the speech distribution. The prior distribution and timbre features are processed by a flow model and then passed through an audio decoder to generate a synthesized vocal as the converted singing voice.

[0068] In the above conversion process, the target vocal is audio that did not appear in the training process and is a true zero sample. The timbre of the voice to be converted is converted based on the target vocal, which solves the problem that current singing voice timbre conversion in applications still requires tens of minutes to hours of data for small-sample learning. The model can convert the song vocal timbre into the user's timbre based on about five seconds of user recordings, greatly reducing the usage threshold of singing voice timbre conversion, which is of great significance for the large-scale promotion of singing voice timbre conversion applications.

[0069] like Figure 6As shown, the embodiment also provides a zero-sample-based singing voice tonality rapid conversion device 60, comprising a data construction module 61, a pre-training module 62, an adversarial training module 63, and an application reasoning module 64, wherein the data construction module 61 is used to construct a singing data set containing dry vocals and lyrics text.

[0070] The pre-training module 62 is used to construct a singing voice feature decoupler and perform pre-training. Specifically, a singing voice feature decoupler including a Hubert model and a residual quantization codebook is constructed, wherein the Hubert model is used to extract the initial content features of the dry human voice, the residual quantization codebook is used to map the initial content features to an audio codebook index sequence, a text encoder is introduced to extract the morpheme index sequence and morpheme features of the lyrics text, and a cross-prediction is performed based on the audio codebook index sequence, the morpheme index sequence and the morpheme features to train the singing voice feature decoupler.

[0071] The adversarial training module 63 is used to extract the speech content features of the dry voice based on the trained singing feature decoupler, and extract the pitch features and timbre features of the dry voice at the same time, and then perform adversarial training based on the generator and the discriminator. Specifically, it is used to extract the speech content features of the dry voice by using the trained singing feature decoupler in combination with audio super-resolution processing in the feature extractor, and extract the pitch features and timbre features of the dry voice at the same time, generate a synthetic voice in the generator according to the speech content features, pitch features and timbre features, introduce a discriminator to distinguish and discriminate between the synthetic voice and the dry voice, and train the feature extractor, generator and discriminator in an adversarial training manner.

[0072] The application reasoning module 64 is used to use the trained feature extractor and generator to generate a synthetic human voice as the converted singing voice, thereby realizing a rapid conversion of the singing voice tonality.

[0073] It should be noted that the device for rapid conversion of singing voice and timbre based on zero samples provided in the above-mentioned embodiment should be illustrated by the division of the above-mentioned functional modules when performing rapid conversion of singing voice and timbre. The above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal or server is divided into different functional modules to complete all or part of the functions described above. In addition, the device for rapid conversion of singing voice and timbre based on zero samples provided in the above-mentioned embodiment and the embodiment of the method for rapid conversion of singing voice and timbre based on zero samples belong to the same concept. The specific implementation process is detailed in the embodiment of the method for rapid conversion of singing voice and timbre based on zero samples, which will not be repeated here.

[0074] Based on the same inventive concept, an embodiment further provides a computing device, including a memory and one or more processors, wherein executable code is stored in the memory, and when the one or more processors execute the executable code, the method for quickly converting the singing voice tone based on zero samples is implemented, specifically including the following steps:

[0075] S1, construct a singing dataset containing dry vocals and lyrics text;

[0076] S2, construct a singing feature decoupler and perform pre-training;

[0077] S3, extracting the speech content features of the dry voice based on the trained singing feature decoupler, and extracting the pitch features and timbre features of the dry voice, and then performing adversarial training based on the generator and the discriminator;

[0078] S4, when applying inference, uses the trained feature extractor and generator to generate synthetic human voice as the converted singing voice, achieving rapid conversion of singing voice tonality.

[0079] like Figure 7 As shown, the computing device provided in the embodiment, in addition to the processor and memory, also includes hardware required for other services such as internal bus, network interface, memory, etc. at the hardware level. 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 zero-sample-based singing voice and timbre rapid conversion method described in S1-S4 above. Of course, in addition to the software implementation method, the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0080] Based on the same inventive concept, an embodiment further provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned method for rapid conversion of singing voice based on zero samples is implemented, which specifically includes the following steps:

[0081] S1, construct a singing dataset containing dry vocals and lyrics text;

[0082] S2, construct a singing feature decoupler and perform pre-training;

[0083] S3, extracting the speech content features of the dry voice based on the trained singing feature decoupler, and extracting the pitch features and timbre features of the dry voice, and then performing adversarial training based on the generator and the discriminator;

[0084] S4, when applying inference, uses the trained feature extractor and generator to generate synthetic human voice as the converted singing voice, achieving rapid conversion of singing voice tonality.

[0085] In the embodiment, computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data.

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

Claims

1. A method for fast conversion of singing voice based on zero sample. It is characterized in that The following steps are involved: Construct a singing dataset containing dry vocals and lyrics text; Construct a singing voice feature decoupler including a Hubert model and a residual quantization codebook, wherein the Hubert model is used to extract the initial content features of the dry human voice, and the residual quantization codebook is used to map the initial content features into an audio codebook index sequence. A text encoder is introduced to extract the morpheme index sequence and morpheme features of the lyrics text, and a singing voice feature decoupler is trained by cross-prediction based on the audio codebook index sequence, morpheme index sequence, and morpheme features. In the feature extractor, the trained singing feature decoupler is used in combination with audio super-resolution processing to extract the speech content features of the dry voice, and the pitch features and timbre features of the dry voice are extracted. In the generator, synthetic voice is generated according to the speech content features, pitch features and timbre features, a discriminator is introduced to distinguish between the synthetic voice and the dry voice, and the feature extractor, generator and discriminator are trained by adversarial training. When applying inference, the trained feature extractor and generator are used to generate synthetic human voice as the converted singing voice, realizing rapid conversion of singing voice tonality.

2. The method for rapid conversion of singing voice based on zero sample according to claim 1, It is characterized in that The text encoder is introduced to extract the morpheme index sequence and morpheme features of the lyrics text, including: The text encoder includes a morpheme extraction unit and a morpheme feature extraction unit. The morphemes in the lyrics text are extracted by the morpheme extraction unit, and the morpheme indexes corresponding to the morphemes are obtained based on the morpheme-index table to form a morpheme index sequence. The morpheme features are extracted based on the morpheme index sequence by the morpheme feature extraction unit.

3. The method for fast conversion of singing voice based on zero sample according to claim 1, It is characterized in that The singing feature decoupler is trained by cross-prediction based on the audio codebook index sequence, the morpheme index sequence and the morpheme features, including: A content predictor is introduced, and a morpheme index sequence input to the content predictor is embedded to obtain a morpheme embedding feature, and the morpheme embedding feature is fused with the morpheme feature to obtain a fused morpheme feature, and an audio codebook index sequence input to the content predictor is embedded to obtain an audio feature, and the fused morpheme feature and the audio feature are cross-predicted, that is, a predicted audio codebook index sequence corresponding to speech is generated based on the fused morpheme feature, and a predicted morpheme index sequence corresponding to text is generated based on the audio feature; An audio alignment loss is constructed based on the audio codebook index sequence and the predicted audio codebook index sequence, and a text alignment loss is constructed based on the morpheme index sequence and the predicted morpheme index sequence. The singing feature decoupler is trained based on the audio alignment loss and the morpheme alignment loss to optimize the parameters of the Hubert model and update the residual quantization codebook.

4. The method for rapidly converting singing voice based on zero sample according to claim 1, It is characterized in that In the feature extractor, the trained singing feature decoupler is combined with audio super-resolution processing to extract the speech content features of the dry human voice, and the pitch features and timbre features of the dry human voice are extracted at the same time, including: The trained singing feature decoupler is used to extract the audio codebook index sequence of the input dry human voice, and the audio codebook index sequence is subjected to audio super-resolution processing to obtain the speech content features of the dry human voice; The Mel spectrum is extracted from the dry vocals, and the fundamental frequency curve reflecting the pitch contour of the song is extracted from the Mel spectrum by the fundamental frequency extractor RMVPE as the pitch feature. At the same time, a convolutional neural network is used to extract the timbre features from the Mel spectrum.

5. The method for rapid conversion of singing voice based on zero sample according to claim 1, It is characterized in that In the generator, synthetic human voice is generated according to speech content features, pitch features, and timbre features, including: The speech content features, pitch features, and timbre features are all input into the multi-dimensional timbre embedding encoder. After each of them passes through the embedding layer to unify the dimensions, any two features are cross-added through the cross-attention mechanism to obtain a speech embedding representation containing rhythm, timbre, and content. Based on the speech embedding representation, a prior distribution representing the speech distribution is generated. When applying reasoning, the prior distribution and timbre features are processed by the stream model and then passed through the audio decoder to generate a synthetic human voice. The posterior encoder is introduced to generate the posterior distribution of speech distribution according to the speech content characteristics of the dry human voice. During adversarial training, the posterior distribution and timbre characteristics are processed by the flow model and then passed through the audio decoder to generate synthetic human voice.

6. The method for rapidly converting singing voice based on zero sample according to claim 5, It is characterized in that When training the feature extractor, generator and discriminator using adversarial training, the loss functions used include: the adversarial loss of the adversarial network composed of the generator and the discriminator, the audio synthesis loss constructed based on the Mel spectrum difference and feature map difference between the synthesized human voice and the original dry human voice, the similarity loss between the prior distribution and the posterior distribution, and the quantization loss based on the residual quantization codebook.

7. The method for rapidly converting singing voice based on zero sample according to claim 4, It is characterized in that When applying inference, the feature extractor is used to extract the speech content features and pitch features of the singing voice to be converted, and the convolutional neural network is used to directly extract the timbre features of the target voice. Then, the generator is used to generate a synthetic voice as the converted singing voice based on the speech content features and pitch features of the singing voice to be converted and the timbre features of the target voice.

8. A device for rapid conversion of singing voice tone based on zero sample, It is characterized in that include: A data construction module, which is used to construct a singing data set including dry vocals and lyrics text; A pre-training module is used to construct a singing voice feature decoupler including a Hubert model and a residual quantization codebook, wherein the Hubert model is used to extract the initial content features of the dry human voice, the residual quantization codebook is used to map the initial content features into an audio codebook index sequence, a text encoder is introduced to extract the morpheme index sequence and morpheme features of the lyrics text, and a singing voice feature decoupler is trained by cross-prediction based on the audio codebook index sequence, the morpheme index sequence and the morpheme features; An adversarial training module is used to extract the speech content features of the dry voice by using the trained singing feature decoupler combined with audio super-resolution processing in the feature extractor, and to extract the pitch features and timbre features of the dry voice at the same time, to generate a synthetic voice in the generator according to the speech content features, pitch features and timbre features, to introduce a discriminator to distinguish and discriminate the synthetic voice from the dry voice, and to train the feature extractor, generator and discriminator by adversarial training; An inference module is applied, which is used to generate a synthetic human voice as a converted singing voice using the trained feature extractor and generator, so as to realize a rapid conversion of singing voice tonality.

9. A computing device comprising a memory and one or more processors, wherein the memory stores executable code, It is characterized in that When the one or more processors execute the executable code, they are used to implement the zero-sample-based fast singing voice tonality conversion method described in any one of claims 1-7.

10. A computer-readable storage medium, It is characterized in that A program is stored thereon, and when the program is executed by a processor, the method for rapid conversion of singing voice tone based on zero samples as described in any one of claims 1-7 is implemented.

Citation Information

Patent Citations

  • Multi-factor controllable speech conversion method and system based on feature decoupling

    CN113327627A

  • Zero-sample voice cloning method and device based on audio decoupling and fusion

    CN115497449A

  • Voice tone conversion method and system

    CN116741144A

  • Information processing method, device and equipment

    CN116911251A

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

    CN117809621A

Cited By

  • Training method of singing sound conversion system, method for generating audio and related device

    CN119993117A

  • Audio processing method, program product and electronic device

    CN121034339A

  • Zero-sample singing tone conversion method and system

    CN121662060A