End-to-end multi-scale style migration singing sound conversion method and system

Through the end-to-end multi-scale style transfer method, using components such as feature extraction and style encoder to process singing voices, the problem of insufficient style modeling in traditional methods is solved, and a higher style transfer similarity and sound quality improvement is achieved.

CN118969013AActive Publication Date: 2024-11-15INST OF ACOUSTICS CHINESE ACAD OF SCI

Patent Information

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

AI Technical Summary

Technical Problem

Traditional singing voice conversion methods lack effective modeling and conversion mechanisms for singing styles, and cannot effectively capture the fine-grained and expression skills of singing styles, resulting in poor style transfer effect. Along with style leakage, it cannot meet users' subjective and objective evaluations.

Method used

Using end-to-end multi-scale style transfer singing voice conversion method, the singing voice is extracted and processed through components such as feature extraction module, residual style encoder, uncertain style instance normalization module, pitch predictor and neurovocoder. Content vectors, MIDI, global and local style vectors can realize style transfer, reduce style leakage, and improve sound quality and naturalness.

Benefits of technology

It improves the similarity of singing style transfer, reduces style leakage, improves sound quality and naturalness, and solves the problem of insufficient capture of fine-grained style modeling and expression techniques in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118969013A_ABST
    Figure CN118969013A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of song conversion, and relates to an end-to-end multi-scale style migration song conversion method and system. The method comprises the following steps: acquiring target singing sound to be converted, preprocessing the target singing sound, and removing accompaniment sound; inputting the preprocessed target singing sound and the reference singing sound of a to-be-adopted style into a pre-established and trained singing sound conversion model, and outputting a synthesized singing sound with the reference singing sound style to realize style migration; the singing sound conversion model is used for extracting a content vector and an MIDI from the preprocessed target singing sound, extracting global and local style vectors, pitches and CQT spectrums from the reference singing sound, and obtaining a singing sound waveform through end-to-end processing. According to the singing multi-scale style modeling method, multi-scale style modeling is carried out on singing, the problem of poor style similarity in classic singing conversion is solved, the tone quality is further improved, and the naturalness of singing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of singing voice conversion, and in particular relates to a singing voice conversion method and system for end-to-end multi-scale style transfer. Background Art

[0002] Singing voice conversion (SVC) aims to transfer the identity of a source singer to that of a target singer without changing the content. With the rapid development of SVC, the demand for personalized singing styles is increasing, which poses a challenge to current SVC models. Different from traditional SVC tasks, singing voice conversion with style transfer aims to transfer not only the identity of the target singer but also the singing style. Personal singing style mainly includes singing method (e.g., pop, folk), technique (e.g., vibrato, glissando), and pronunciation. However, traditional SVC methods lack an effective mechanism to model and transfer these styles.

[0003] In order to model the style of singing, most of the research starts from the perspective of decoupling. Some methods use the singer's identity information to adjust the formant-related and pitch-related decoders in an attempt to separate the timbre and singing style, but this method can only be trained on parallel data, which is very costly for singing. Or some methods try to model the overall style through a style encoder, but this method can only model the singer's timbre. The style of singing is usually fine-grained, and it is impossible to model the details of singing with only one style encoder. In addition, these methods only focus on limited aspects of singing style and cannot capture the expressive techniques of singing style. The current style modeling information is accompanied by style leakage due to the presence of more redundancy, so the results cannot satisfy users in terms of objective evaluation and subjective scoring. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects of the prior art and propose an end-to-end multi-scale style transfer singing voice conversion method and system.

[0005] In order to achieve the above object, the present invention proposes an end-to-end multi-scale style transfer singing voice conversion method, comprising:

[0006] Collect the target singing voice to be converted and pre-process it to remove the accompaniment sound;

[0007] The pre-processed target singing voice and the reference singing voice of the intended style are input into a pre-established and trained singing voice conversion model, and a synthesized singing voice with the style of the reference singing voice is output to achieve style transfer;

[0008] The singing voice conversion model is used to extract content vectors and MIDI from the preprocessed target singing voice, extract global and local style vectors, pitch and CQT spectrum from the reference singing voice, and obtain the singing voice waveform through end-to-end processing.

[0009] Preferably, the singing voice conversion model includes: a feature extraction module, a residual style encoder, a content encoder, an uncertainty style instance normalization module, a pitch predictor, a priori encoder and a neural vocoder; wherein,

[0010] The feature extraction module is used to extract the content vector and MIDI of the pre-processed target singing voice, and extract the pitch F0 and the first-order difference ΔF0 of F0, the global style vector s including the timbre vector Gt and the singing style vector Gs, and the CQT spectrum of the reference singing voice;

[0011] The residual style encoder is used to extract a local style vector ls including modified sounds in MIDI scale according to the CQT spectrum and ΔF0 of the reference singing voice;

[0012] The content encoder is used to encode the content vector from 768 dimensions to 192 dimensions, encode the MIDI to 128 dimensions, concatenate and input into a 4-layer FFT network, and obtain the encoded content vector Ec, which is respectively input into an uncertainty style instance normalization module and a residual style encoder;

[0013] The uncertainty style instance normalization module is used to normalize the encoded content vector Ec instance, calculate the channel covariance matrix of the scale and bias vector of the global style vector s, and obtain the content representation after style perturbation;

[0014] The pitch predictor is used to fuse the content representation after style disturbance and the global style vector s through adaptive instance normalization, and then output the predicted pitch through 4-layer FFT to constrain the pitch within the set range of MIDI pitch to avoid being out of tune;

[0015] The prior encoder uses a 4-layer FFT to calculate a multivariate Gaussian distribution based on the predicted pitch and the mean and variance of the content vector predicted prior distribution after the style perturbation of the uncertainty style instance normalization module, and obtains the sampling features of the 192-dimensional prior distribution by sampling;

[0016] The neural vocoder adopts a structure based on nsf HiFiGAN, which is used to output a predicted singing waveform according to the sampling features of the prior distribution.

[0017] Preferably, the feature extraction module includes: a pitch extractor, a Content Vec unit, a global style encoder and a MIDI extractor; wherein,

[0018] The pitch extractor is used to extract the pitch F0 of the target singing voice and the reference singing voice, and calculate the first-order difference ΔF0 of the reference singing voice F0;

[0019] The Content Vec unit is used to extract a content vector from the pre-processed target singing voice;

[0020] The global style encoder is used to extract the timbre vector Gt and the singing style vector Gs of the reference singing voice;

[0021] The MIDI extractor is used to measure the beat of the target song, quantize F0 according to the beat, remove shorter notes and silent parts, interpolate to the same frame rate as the Mel spectrum, and calculate the CQT spectrum that expresses the pitch characteristics.

[0022] Preferably, the global style encoder is based on the MERT model, and two branches with the same structure are added, each branch consists of a linear layer and a pooling layer, and the processing process includes:

[0023] The reference singing voice with a sampling rate of 24K was downsampled 320 times to obtain the low frame rate features;

[0024] Input the two branches at the same time to obtain the timbre vector Gt and the singing style vector Gs respectively.

[0025] Preferably, the residual style encoder includes: a front-end convolutional network, a residual quantization module and a cross attention fusion network; and its processing process includes:

[0026] The CQT spectrum, ΔF0 and note start identifier of the reference singing voice are input into the front-end convolutional network and residual quantization module in sequence, and a 2-layer local style vector ls is output, where the note start identifier is obtained according to the change position of MIDI;

[0027] The local style vector ls and the encoded content vector Ec output by the content encoder are fused by the cross-attention fusion network, and a content vector Ec′ with style fusion of the same length as Ec is output.

[0028] Preferably, the processing process of the uncertainty style instance normalization module includes:

[0029] Calculate the instance normalization of the content vector Ec;

[0030] The timbre vector Gt and the singing style vector Gs are added as the global style vector s, and the scale vector γ(s) and the bias vector β(s) are predicted through the linear layer respectively. Then, the channel covariance matrix ∈ of the scale vector is calculated according to the following formula: γ (s) and the channel covariance matrix ∈ of the bias vector β (s):

[0031]

[0032] Where T represents transpose, B represents the training batch size, and E(*) represents expectation;

[0033] The original style and the perturbed style are balanced by the parameter λ for the predicted scale vector γ(s) and the bias vector β(s) according to the following formula:

[0034] γ perb (s)=γ(s)+λ*∈ γ (s)

[0035] β perb (s)=β(s)+λ*∈ β (s)

[0036] Among them, γ perb (s), β perb (s) represent the scale vector and bias vector after style perturbation, λ~Beta(α,α), α∈(0,∞),

[0037] During the training process, the uncertainty style instance normalization module is activated with a set probability, and the content representation USIN(Ec, s) after style perturbation is:

[0038]

[0039] Among them, μ(Ec) and σ(Ec) are the expectation and standard deviation of the content vector Ec along the time dimension respectively.

[0040] Preferably, the method further comprises a step of training a singing voice conversion model; comprising:

[0041] A posterior encoder and a discriminator are added before and after the neural vocoder of the singing voice conversion model respectively; wherein the posterior encoder is an 8-layer convolution block based on convolution and ReLU and LayerNorm stacking; the discriminator includes a multi-cycle discriminator, a multi-scale discriminator and a multi-scale multi-subband complex STFT discriminator;

[0042] Obtain audio data sets of songs of different styles, perform sound source separation, remove harmony, and detect voice activity to establish a training set;

[0043] The training set is sequentially input into the singing voice conversion model with added posterior encoder and discriminator;

[0044] The model parameters are adjusted by calculating the KLLoss between the posterior distribution output by the posterior encoder and the prior distribution output by the prior encoder. The discriminator calculates the feature loss function between the predicted singing waveform output by the neural vocoder and the real singing waveform, and the model parameters are adjusted until the training requirements are met to obtain a trained singing conversion model.

[0045] On the other hand, the present invention provides an end-to-end multi-scale style transfer singing voice conversion system, comprising:

[0046] The acquisition preprocessing module is used to acquire the target singing voice to be converted and perform preprocessing to remove the accompaniment sound;

[0047] A style transfer module is used to input the pre-processed target singing voice and the reference singing voice of the intended style into a pre-established and trained singing voice conversion model, and output a synthesized singing voice with the style of the reference singing voice to achieve style transfer;

[0048] The singing voice conversion model is used to extract content vectors and MIDI from the preprocessed target singing voice, extract global and local style vectors, pitch and CQT spectrum from the reference singing voice, and obtain the singing voice waveform through end-to-end processing.

[0049] Compared with the prior art, the advantages of the present invention are:

[0050] 1. The feature extraction module of the present invention automatically extracts the features of the singing voice. Compared with the traditional singing voice conversion, the pre-trained global style encoder models the reference singing voice timbre and singing method, thereby improving the singing style similarity of the singing voice migration; the MIDI extractor extracts the MIDI information of the target singing voice, removes the style features of the target singing voice in terms of pitch, and avoids the occurrence of the out-of-tune phenomenon;

[0051] 2. The residual style encoder of the present invention models fine-grained singing styles, solving the problem that fine-grained singing styles cannot be modeled in classic singing conversion;

[0052] 3. The uncertainty style instance normalization module of the present invention effectively reduces the style leakage of the target singing voice in singing voice migration by disturbing the style information of the target singer's content vector;

[0053] 4. The method of the present invention performs multi-scale style modeling on singing, solves the problem of poor style similarity in classic singing conversion, and further improves the sound quality and the naturalness of the singing. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 This is a training framework diagram of an end-to-end multi-scale style transfer singing voice conversion system;

[0055] Figure 2 It is an inference framework diagram of an end-to-end multi-scale style transfer singing voice conversion system;

[0056] Figure 3 Residual style encoder structure diagram;

[0057] Figure 4 Structure diagram of the feature extraction module. DETAILED DESCRIPTION

[0058] Residual Vector Quantize (RVQ) was first used for information compression and is currently widely used in the fields of Text-to-Speech (TTS) and Voice Conversion (VC) for decoupling and information extraction.

[0059] The present invention attempts to build a high-quality and expressive SVC system to solve the problem that traditional singing voice conversion cannot model fine-grained singing styles, and further improve the sound quality and naturalness. The method includes the following steps:

[0060] Collect the target singing voice to be converted and pre-process it to remove the accompaniment sound;

[0061] The pre-processed target singing voice and the reference singing voice of the intended style are input into a pre-established and trained singing voice conversion model, and a synthesized singing voice with the style of the reference singing voice is output to achieve style transfer;

[0062] The singing voice conversion model is used to extract content vectors and MIDI from the preprocessed target singing voice, extract global and local style vectors, pitch and CQT spectrum from the reference singing voice, and obtain the singing voice waveform through end-to-end processing.

[0063] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0064] Example 1

[0065] The present invention proposes an end-to-end multi-scale style transfer singing voice conversion method, which not only effectively models the complex singing styles in singing, but also has higher sound quality and naturalness compared to the current singing voice conversion system.

[0066] The end-to-end multi-scale style transfer singing voice conversion model we proposed specifically includes: feature extraction module, residual style encoder, uncertainty style instance normalization module, neural content encoder, pitch predictor, prior encoder, neural vocoder. The posterior encoder and discriminator modules are added during model training. The specific block diagram is as follows Figure 1 As shown. For the trained model, the actual model block diagram is as follows Figure 2 shown.

[0067] like Figure 3 Shown is the residual style encoder, Figure 4 It is the feature extraction module.

[0068] The method comprises:

[0069] Step 1) Obtain a multi-style song audio data set from the Internet, perform sound source separation, remove harmony, voice activity detection (VAD), and then manually spot check to remove uncleaned data. Since the existing singing data style is single and multi-style singing data is difficult to obtain, the training set of the present invention is composed of multi-style singing data. First, obtain multi-style song data from the Internet, unify the audio sampling rate to 44.1K, use the open source UVR5 tool to perform sound source separation and retain the singing; use the open source tool silero-vad to perform VAD on the singing; use the open source pyannote tool to first perform speaker logs and discard the audio of multiple singers; manually spot check some data, delete data with poor quality, and finally form a multi-style singing data set.

[0070] Step 2) Train the global style encoder MERT based on the training set, extract the global style for each voice in the training set, and divide the global style into timbre and singing method (for example: popular singing, bel canto singing). Use the pre-trained Content Vec to extract the content vector, the pre-trained RMVPE to extract the pitch and the first-order difference information of the pitch, and obtain the musical instrument digital interface notes (MIDI) according to the pitch quantization. Finally, calculate the CQT spectrum; the global style encoder is based on the MERT model, adding two modules consisting of a linear layer and a pooling layer, and fine-tuning the singer and singing style classification task on a multi-style singing data set. The input of the global style encoder is 24K singing. The MERT model downsamples the audio by 320 times to obtain low frame rate features, and then inputs them into the modules consisting of linear layers and pooling layers to obtain timbre coding vectors and singing style features, respectively, and uses cross entropy loss for optimization. The trained global style encoder extracts the timbre vector Gt and the singing style vector Gs for each song in the training set, and the two are added as the final global style information s.

[0071] The MIDI extractor first measures the speed of the singing audio, and then quantizes the pitch to 1 / 2 notes, 1 / 4 notes, and 1 / 8 notes, removing shorter notes and silent parts, and finally interpolating to the same frame rate as the Mel spectrum. In addition, the first-order differential pitch information of the reference audio is calculated as a dynamic feature, which represents the vibrato and embellishment-related features of the singer when singing, and the CQT spectrum of the calculated audio, where the CQT dimension is 108, which shows pitch-related features compared to the Mel spectrum.

[0072] Step 3) Based on the global style vector, content vector, pitch, first-order difference of pitch, CQT and MIDI obtained in step 2), an end-to-end singing conversion model is input, and a singing waveform is output;

[0073] The content encoder is based on the Feed-Forward Transformer (FFT) structure. It takes the input content vector and encodes it from 768 dimensions to 192 dimensions, and encodes the MIDI information of the source song to 128 dimensions. The two are concatenated and sent into a 4-layer FFT network, and finally the encoded content vector Ec is output.

[0074] Uncertainty Style Instance Normalization (USIN) module, the input of this module is the encoded content vector Ec and the global style vector s. First, the instance normalization of the content vector is calculated, and the global style vector is predicted by the linear layer to respectively predict the scale vector γ(s) and the bias vector β(s), and then the channel covariance matrix of the scale and bias vectors is calculated. The formula is:

[0075]

[0076] Where T represents transpose, B represents the training batch size, and E(*) represents expectation;

[0077] It represents the style covariance matrix between samples in a batch. Based on this, a parameter is used to balance the original style and the perturbed style in the original bias and scale vectors. The formula is:

[0078] γ perb (s)=γ(s)+λ*∈ γ (s)

[0079] β perb (s)=β(s)+λ*∈ β (s)

[0080] Among them, γ perb (s), β perd (s) represent the scale vector and bias vector after style perturbation, respectively, and the parameters are λ~Beta(α,α), where α∈(0,∞), and α is set to 0.2. In actual operation, in order to take into account both the sound quality and the style transfer effect, USIN will be activated with a set probability, and the probability is set to 0.2. The final content representation USIN(Ec,s) after style perturbation is:

[0081]

[0082] Among them, μ(Ec) and σ(Ec) are the expectation and standard deviation of the content vector Ec along the time dimension respectively.

[0083] The input of the residual style encoder is the CQT spectrum, ΔF0 and note start identifier of the reference audio, where the note start identifier is obtained according to the change position of MIDI. Each feature is first concatenated through a one-dimensional convolution, and then all features are fused through a convolution. The features are then sent to a convolution module, which includes a WaveNet network and a 5-layer convolution block consisting of a depth-separable convolution and a Snake activation function. Then, average pooling is performed according to the MIDI boundary to obtain the MIDI-scale style information, and finally input into the residual vector quantization (RVQ) to obtain 2 layers of style information. These two layers of information are fused with the content information through the cross-attention mechanism of the FFT decoder, and the local style vector ls is fused with the encoded content vector Ec output by the content encoder, and the content vector Ec′ with the same length as Ec is output.

[0084] The input of the pitch predictor is the output of the residual style encoder. The global style information is fused through adaptive instance normalization. The model structure is based on a 4-layer FFT, which outputs the predicted pitch and then constrains the pitch to within ±100 cents of the MIDI pitch to avoid being out of tune.

[0085] The input of the prior encoder is the feature of the sum of the predicted pitch information and content information, and the mean and variance of the predicted prior distribution. The model structure is based on 4 layers of FFT. The dimensions are all 192. The multivariate Gaussian distribution is calculated based on the mean and variance, and the 192-dimensional hidden layer features are sampled from the distribution.

[0086] The posterior encoder model structure is based on convolution and ReLU and LayerNorm stacked 8-layer convolution blocks, which are only used during training. The input is a 128-dimensional Mel spectrum, which is first mapped to 192 dimensions through a convolution layer, and then detailed modeling is performed through stacked convolution blocks. Finally, a convolution layer is used to predict the mean and variance of the posterior distribution of the 192-dimensional features, and the multivariate Gaussian distribution is calculated based on the mean and variance. During the training process, the KL (Kullback-Leibler) divergence Loss between the calculation and the prior distribution is optimized.

[0087] The neural vocoder uses a structure based on nsf HiFiGAN, inputs sampling features of the prior distribution, and outputs a predicted singing waveform.

[0088] The discriminator uses a multi-cycle discriminator, a multi-scale discriminator, and a multi-scale multi-subband complex STFT discriminator. The end-to-end model is trained based on GAN, so the discriminator is only used during the model training process. The multi-cycle and multi-scale discriminators are the same as HiFiGAN. The multi-scale multi-subband complex STFT discriminator, the multi-scale includes FFT length, frame shift length and window length of 1024, 120, 600; 2048, 240, 1200; 512, 50, 240. First, the STFT complex spectrum of the waveform is calculated, and then multiple sub-bands are divided according to the frequency ratio of (0.0, 0.1), (0.1, 0.25), (0.25, 0.5), (0.5, 0.75), (0.75, 1.0), and input into 4 two-dimensional convolutions with kernel size of (3, 9) and 1 kernel size of (3, 3) to calculate the feature map, and then the final output is flattened into a one-dimensional feature as the feature of the discriminator. During training, the predicted waveform and the true waveform are optimized by calculating the feature loss through the discriminator.

[0089] Example 2

[0090] Embodiment 2 of the present invention provides an end-to-end multi-scale style transfer singing voice conversion system, which is implemented based on the method of embodiment 1, and the system includes:

[0091] The acquisition preprocessing module is used to acquire the target singing voice to be converted and perform preprocessing to remove the accompaniment sound;

[0092] A style transfer module is used to input the pre-processed target singing voice and the reference singing voice of the intended style into a pre-established and trained singing voice conversion model, and output a synthesized singing voice with the style of the reference singing voice to achieve style transfer;

[0093] The singing voice conversion model is used to extract content vectors and MIDI from the preprocessed target singing voice, extract global and local style vectors, pitch and CQT spectrum from the reference singing voice, and obtain the singing voice waveform through end-to-end processing.

[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.

Claims

1. An end-to-end multi-scale style transfer singing voice conversion method, comprising: Collect the target singing voice to be converted and pre-process it to remove the accompaniment sound; The pre-processed target singing voice and the reference singing voice of the intended style are input into a pre-established and trained singing voice conversion model, and a synthesized singing voice with the style of the reference singing voice is output to achieve style transfer; The singing voice conversion model is used to extract content vectors and MIDI from the preprocessed target singing voice, extract global and local style vectors, pitch and CQT spectrum from the reference singing voice, and obtain the singing voice waveform through end-to-end processing.

2. The singing voice conversion method of end-to-end multi-scale style transfer according to claim 1, characterized in that: The singing voice conversion model includes: a feature extraction module, a residual style encoder, a content encoder, an uncertainty style instance normalization module, a pitch predictor, a priori encoder and a neural vocoder; wherein, The feature extraction module is used to extract the content vector and MIDI of the pre-processed target singing voice, and extract the pitch F0 and the first-order difference ΔF0 of F0, the global style vector s including the timbre vector Gt and the singing style vector Gs, and the CQT spectrum of the reference singing voice; The residual style encoder is used to extract a local style vector ls including modified sounds in MIDI scale according to the CQT spectrum and ΔF0 of the reference singing voice; The content encoder is used to encode the content vector from 768 dimensions to 192 dimensions, encode the MIDI to 128 dimensions, concatenate and input into a 4-layer FFT network, and obtain the encoded content vector Ec, which is respectively input into an uncertainty style instance normalization module and a residual style encoder; The uncertainty style instance normalization module is used to normalize the encoded content vector Ec instance, calculate the channel covariance matrix of the scale and bias vector of the global style vector s, and obtain the content representation after style perturbation; The pitch predictor is used to fuse the content representation after style disturbance and the global style vector s through adaptive instance normalization, and then output the predicted pitch through 4-layer FFT to constrain the pitch within the set range of MIDI pitch to avoid out-of-tune; The prior encoder uses a 4-layer FFT to calculate a multivariate Gaussian distribution based on the predicted pitch and the mean and variance of the content vector predicted prior distribution after the style perturbation of the uncertainty style instance normalization module, and obtains the sampling features of the 192-dimensional prior distribution by sampling; The neural vocoder adopts a structure based on nsf HiFiGAN, which is used to output a predicted singing waveform according to the sampling features of the prior distribution.

3. The singing voice conversion method of end-to-end multi-scale style transfer according to claim 2, characterized in that: The feature extraction module includes: a pitch extractor, a Content Vec unit, a global style encoder and a MIDI extractor; wherein, The pitch extractor is used to extract the pitch F0 of the target singing voice and the reference singing voice, and calculate the first-order difference ΔF0 of the reference singing voice F0; The Content Vec unit is used to extract a content vector from the pre-processed target singing voice; The global style encoder is used to extract the timbre vector Gt and the singing style vector Gs of the reference singing voice; The MIDI extractor is used to measure the beat of the target song, quantize F0 according to the beat, remove shorter notes and silent parts, interpolate to the same frame rate as the Mel spectrum, and calculate the CQT spectrum that expresses the pitch characteristics.

4. The singing voice conversion method of end-to-end multi-scale style transfer according to claim 3, characterized in that: The global style encoder is based on the MERT model and adds two branches with the same structure. Each branch consists of a linear layer and a pooling layer. The processing process includes: The reference singing voice with a sampling rate of 24K was downsampled 320 times to obtain the low frame rate features; Input the two branches at the same time to obtain the timbre vector Gt and the singing style vector Gs respectively.

5. The singing voice conversion method of end-to-end multi-scale style transfer according to claim 2, characterized in that: The residual style encoder includes: a front-end convolutional network, a residual quantization module and a cross-attention fusion network; its processing process includes: The CQT spectrum, ΔF0 and note start identifier of the reference singing voice are input into the front-end convolutional network and residual quantization module in sequence, and a 2-layer local style vector ls is output, where the note start identifier is obtained according to the change position of MIDI; The local style vector ls and the encoded content vector Ec output by the content encoder are fused by the cross-attention fusion network, and a content vector Ec′ with style fusion of the same length as Ec is output.

6. The singing voice conversion method of end-to-end multi-scale style transfer according to claim 2, characterized in that: The processing process of the uncertainty style instance normalization module includes: Calculate the instance normalization of the content vector Ec; The timbre vector Gt and the singing style vector Gs are added as the global style vector s, and the scale vector γ(s) and the bias vector β(s) are predicted through the linear layer respectively. Then, the channel covariance matrix ∈ of the scale vector is calculated according to the following formula: γ (s) and the channel covariance matrix ∈ of the bias vector β (s): Where T represents transpose, B represents the training batch size, and E(*) represents expectation; The original style and the perturbed style are balanced by the parameter λ for the predicted scale vector γ(s) and the bias vector β(s) according to the following formula: c perb (s)=γ(s)+λ*∈ γ (s) b perb (s)=β(s)+λ*∈ β (s) Among them, γ perb (s), β perb (s) represent the scale vector and bias vector after style perturbation, λ~Beta(α,α), α∈(0,∞), During the training process, the uncertainty style instance normalization module is activated with a set probability, and the content representation USIN(Ec, s) after style perturbation is: Among them, μ(Ec) and σ(Ec) are the expectation and standard deviation of the content vector Ec along the time dimension respectively.

7. The singing voice conversion method of end-to-end multi-scale style transfer according to claim 2, characterized in that: The method also includes a step of training a singing voice conversion model; comprising: A posterior encoder and a discriminator are added before and after the neural vocoder of the singing voice conversion model respectively; wherein the posterior encoder is an 8-layer convolution block based on convolution and ReLU and LayerNorm stacking; the discriminator includes a multi-cycle discriminator, a multi-scale discriminator and a multi-scale multi-subband complex STFT discriminator; Obtain audio data sets of songs of different styles, perform sound source separation, remove harmony, and detect voice activity to establish a training set; The training set is sequentially input into the singing voice conversion model with added posterior encoder and discriminator; The model parameters are adjusted by calculating the KL Loss between the posterior distribution output by the posterior encoder and the prior distribution output by the prior encoder. The discriminator calculates the feature loss function between the predicted singing waveform output by the neural vocoder and the real singing waveform, and the model parameters are adjusted until the training requirements are met to obtain a trained singing conversion model.

8. An end-to-end multi-scale style transfer singing voice conversion system, which is characterized by: The acquisition preprocessing module is used to acquire the target singing voice to be converted and perform preprocessing to remove the accompaniment sound; A style transfer module is used to input the pre-processed target singing voice and the reference singing voice of the intended style into a pre-established and trained singing voice conversion model, and output a synthesized singing voice with the style of the reference singing voice to achieve style transfer; The singing voice conversion model is used to extract content vectors and MIDI from the preprocessed target singing voice, extract global and local style vectors, pitch and CQT spectrum from the reference singing voice, and obtain the singing voice waveform through end-to-end processing.

Citation Information

Patent Citations

  • Voice tone quality similarity measurement method for musical instrument under tone quality migration

    CN108417228A

  • Singing synthetic method for tone conversion

    CN108461079A

  • Style migration method of music with human voice

    CN111816202A

  • Audio style conversion method and system based on Cycle-GAN

    CN112951253A

  • Song searching method and device, equipment, medium and product

    CN114764452A

Cited By

  • Audio processing method and device

    CN120510853A

  • Intelligent synthetic singing detection method and system based on original waveform and collaborative understanding

    CN120526810A

  • Audio processing method and device

    CN120673729A

  • Audio timbre conversion method, electronic equipment and computer storage medium

    CN121191526A