Audio synthesis method, device, equipment, storage medium and program product

By training the audio synthesis model, using sample synthesis data to generate natural singing voices, the problems of vocal distortion and melody distortion in the prior art are solved, and a more natural audio synthesis effect is achieved.

CN118553254BActive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411018524.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-05
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

The existing audio synthesis technology has problems of vocal distortion and melody distortion, making it difficult to fit the natural rhythm of the speaker, and signal processing methods lead to timbre distortion.

Method used

By using multiple sample synthesis data to train the basic synthesis model, including sample accompaniment, sample base tone features, sample clean audio and real synthesis audio, the target synthesis data is obtained to generate singing voices that are more natural and close to the user's real voice.

Benefits of technology

It realizes the generation of singing voices that are more natural and close to the user's real voice, solves the problems of vocal distortion and melody distortion, and retains the user's tone.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118553254B_ABST
    Figure CN118553254B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an audio synthesis method, device, equipment, storage medium and program product, and relates to the field of data processing technology. The method comprises: obtaining original synthesis data of audio to be processed, the original synthesis data includes target accompaniment, target pitch feature and target clean audio, the target pitch feature and target clean audio are obtained based on the audio to be processed, and the original synthesis data is processed by a target synthesis model to obtain target synthesis audio, the target synthesis model is obtained by training a basic synthesis model based on multiple sample synthesis data, the sample synthesis data includes sample accompaniment, sample pitch feature, sample clean audio and real synthesis audio. So that the target synthesis model can generate a singing voice that is more natural and closer to the real voice of the user based on the user's target accompaniment, target pitch feature and target clean audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to an audio synthesis method, device, equipment, storage medium and program product. Background Art

[0002] Audio synthesis converts speech signals into natural-sounding singing voices.

[0003] In the related art, the conversion of singing voice can be achieved based on signal processing methods, but there are serious problems of vocal distortion and melody distortion, and the signal processing method will also cause timbre distortion, making it difficult to fit the natural melody of the speaker. Summary of the invention

[0004] To overcome the problems existing in the related art, the present disclosure provides an audio synthesis method, apparatus, device, storage medium and program product to preserve the user's timbre and generate a singing voice that is more natural and closer to the user's real voice.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided an audio synthesis method, comprising:

[0006] Acquire original synthesized data of the audio to be processed, wherein the original synthesized data includes a target accompaniment, a target pitch feature, and a target clean audio, wherein the target pitch feature and the target clean audio are obtained based on the audio to be processed;

[0007] The original synthesis data is processed by a target synthesis model to obtain a target synthesis audio. The target synthesis model is obtained by training a basic synthesis model based on multiple sample synthesis data. The sample synthesis data includes sample accompaniment, sample fundamental tone features, sample clean audio and real synthesis audio.

[0008] Optionally, before obtaining the original synthesized data of the audio to be processed, the method further includes:

[0009] Obtaining the audio to be processed;

[0010] Performing pitch extraction on the audio to be processed to obtain the target pitch feature;

[0011] Noise reduction is performed on the audio to be processed to obtain the target clean audio.

[0012] Optionally, the extracting pitch of the audio to be processed to obtain the target pitch feature includes:

[0013] According to the target sampling rate, the sampling rate of the audio to be processed is converted to obtain a sampled audio;

[0014] Smoothing the sampled audio to obtain smoothed audio;

[0015] Filtering the smoothed audio to obtain preprocessed audio;

[0016] The target pitch feature is obtained according to the pitch period of the preprocessed audio.

[0017] Optionally, before obtaining the original synthesized data of the audio to be processed, the method further includes:

[0018] In case of receiving the user's instruction data, the target accompaniment is obtained based on the instruction data, wherein the instruction data includes original accompaniment data and / or audio style data.

[0019] Optionally, the method further comprises:

[0020] In the case where no indication data from the user is received, obtaining historical data of the user;

[0021] Determining the historical style of the user according to the historical data of the user;

[0022] Based on the historical style, the target accompaniment is generated.

[0023] Optionally, the target synthesis model is obtained by the following steps:

[0024] Performing multiple rounds of training on the basic synthesis model according to the plurality of sample synthesis data;

[0025] After each round of training, obtain the predicted synthesized audio corresponding to this round of training;

[0026] Obtaining a prediction loss corresponding to the current round of training based on the predicted synthetic audio and the real synthetic audio in the sample synthetic data corresponding to the current round of training;

[0027] Optimizing the basic synthesis model according to the prediction loss corresponding to this round of training;

[0028] When the basic synthesis model meets the stopping condition, the training is stopped to obtain the target synthesis model.

[0029] Optionally, performing multiple rounds of training on the basic synthesis model according to the plurality of sample synthesis data includes:

[0030] For each round of training, multiple sample synthetic data corresponding to the round of training are obtained;

[0031] The multiple sample synthesis data corresponding to the round of training are processed separately by the basic synthesis model to obtain the predicted synthesis audio corresponding to each sample synthesis data.

[0032] Optionally, the basic synthesis model includes a feature modeling network, a timbre preservation network and a decoding network;

[0033] The method of processing the plurality of sample synthesis data corresponding to the round of training respectively by the basic synthesis model to obtain the predicted synthesis audio corresponding to each sample synthesis data comprises:

[0034] For any sample synthetic data corresponding to this round of training, extract features of the sample accompaniment and the sample clean audio through the feature modeling network to obtain target modeling features;

[0035] The target modeling feature and the sample pitch feature are processed by the timbre-preserving network to obtain a timbre fusion feature;

[0036] The timbre fusion feature is decoded through the decoding network to obtain the predicted synthesized audio corresponding to the sample synthesis data.

[0037] Optionally, the feature modeling network includes a first encoding network, a second encoding network, a fusion network, a time modeling network and a local information modeling network;

[0038] The step of extracting features from the sample accompaniment and the sample clean audio through the feature modeling network to obtain target modeling features includes:

[0039] Extracting features from the frequency domain information of the sample accompaniment through the first encoding network to obtain a first feature;

[0040] Extracting features from the time domain information of the clean audio sample through the second coding network to obtain a second feature;

[0041] fusing the first feature and the second feature through the fusion network to obtain a fusion feature;

[0042] Performing global time dimension modeling on the fusion features through the time modeling network to obtain basic modeling features;

[0043] The target modeling feature is obtained by performing local information modeling on the basic modeling feature through the local information modeling network.

[0044] Optionally, the timbre-preserving network comprises a first self-attention layer, a timbre extraction layer, a self-attention module, and a second self-attention layer;

[0045] The step of processing the target modeling feature and the sample pitch feature through the timbre preservation network to obtain a timbre fusion feature includes:

[0046] Processing the target modeling feature through the first self-attention layer to obtain a third feature;

[0047] Performing feature mapping on the sample pitch feature through the timbre extraction layer to obtain a fourth feature;

[0048] The third feature and the fourth feature are fused by the self-attention module to obtain a basic fused feature;

[0049] The basic fusion feature is processed by the second self-attention layer to obtain the timbre fusion feature.

[0050] Optionally, before performing multiple rounds of training on the basic synthesis model according to the plurality of sample synthesis data, the method further includes:

[0051] A plurality of original sample data are processed respectively to obtain a plurality of sample synthesis data, wherein the original sample data includes a sample accompaniment and an original audio, and the sample pitch feature and the sample clean audio are obtained based on the original audio.

[0052] Optionally, the processing of the plurality of original sample data respectively to obtain the plurality of sample synthetic data includes:

[0053] Performing data enhancement on the plurality of original sample data respectively to obtain enhanced sample data corresponding to each original sample data, wherein the enhanced sample data includes augmented audio and augmented accompaniment;

[0054] A plurality of the sample synthesis data are obtained according to the plurality of original sample data and the enhanced sample data corresponding to each of the original sample data.

[0055] Optionally, performing data enhancement on the plurality of original sample data respectively to obtain enhanced sample data corresponding to each original sample data includes:

[0056] For any original sample data among the multiple original sample data, data amplification is performed on the original audio in the original sample data to obtain the amplified audio corresponding to the original sample data;

[0057] The sample accompaniment in the original sample data is amplified to obtain an amplified accompaniment corresponding to the original sample data.

[0058] Optionally, the amplifying the original audio in the original sample data to obtain the amplified audio corresponding to the original sample data includes:

[0059] Based on the target fundamental frequency contour, time-stretching the original audio in the original sample data to obtain stretched audio;

[0060] The stretched audio is randomly resampled to obtain an amplified audio corresponding to the original sample data.

[0061] Optionally, the step of performing data amplification on the sample accompaniment in the original sample data to obtain an amplified accompaniment corresponding to the original sample data includes:

[0062] Extracting the melody contour of the sample accompaniment in the original sample data and marking the pitch to obtain a marked melody;

[0063] The annotated melody is randomly resampled to obtain an augmented accompaniment corresponding to the original sample data.

[0064] Optionally, obtaining the plurality of sample synthetic data according to the plurality of original sample data and the enhanced sample data corresponding to each of the original sample data includes:

[0065] For any original sample data, according to the sample accompaniment and original audio in the original sample data, obtain the sample accompaniment, sample pitch feature, sample clean audio and real synthesized audio corresponding to the original sample data, so as to obtain the sample synthesized data corresponding to the original sample data;

[0066] For any enhanced sample data, based on the augmented accompaniment and augmented audio in the enhanced sample data, the sample accompaniment, sample pitch characteristics, sample clean audio and real synthesized audio corresponding to the enhanced sample data are obtained to obtain the sample synthesized data corresponding to the enhanced sample data.

[0067] Optionally, before respectively processing a plurality of original sample data to obtain a plurality of sample synthetic data, the method further comprises:

[0068] Delete silent frames and continuous silent frames in the multiple original sample data, the silent frames are audio frames whose volume value is less than the first volume value, and the continuous silent frames are multiple continuous audio frames whose continuous duration is greater than the preset duration and whose volume values ​​are all less than the second volume value.

[0069] According to a second aspect of an embodiment of the present disclosure, there is provided an audio synthesis device, including:

[0070] A first acquisition module is configured to acquire original synthesis data of the audio to be processed, wherein the original synthesis data includes a target accompaniment, a target pitch feature and a target clean audio, wherein the target pitch feature and the target clean audio are obtained based on the audio to be processed;

[0071] The first acquisition module is configured to process the original synthesis data through a target synthesis model to obtain a target synthesis audio. The target synthesis model is obtained by training a basic synthesis model based on multiple sample synthesis data. The sample synthesis data includes sample accompaniment, sample fundamental tone features, sample clean audio and real synthesis audio.

[0072] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0073] processor;

[0074] a memory for storing processor-executable instructions;

[0075] Among them, the processor is configured to implement the steps of the audio synthesis method provided by the first aspect of the present disclosure when executing.

[0076] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the audio synthesis method provided in the first aspect of the present disclosure are implemented.

[0077] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the audio synthesis method provided in the first aspect of the present disclosure.

[0078] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0079] By obtaining the original synthesis data of the audio to be processed, the original synthesis data includes the target accompaniment, the target pitch feature and the target clean audio, the target pitch feature and the target clean audio are obtained based on the audio to be processed, and the original synthesis data is processed by the target synthesis model to obtain the target synthesis audio, the target synthesis model is obtained based on the basic synthesis model trained by multiple sample synthesis data, the sample synthesis data includes the sample accompaniment, the sample pitch feature, the sample clean audio and the real synthesis audio. By using the multiple sample synthesis data including the sample accompaniment, the sample pitch feature, the sample clean audio and the real synthesis audio to train the basic synthesis model, the basic synthesis model can learn the user's pitch feature and obtain a more accurate target synthesis model. So that the target synthesis model can generate a singing voice that is more natural and closer to the user's real voice based on the user's target accompaniment, the target pitch feature and the target clean audio.

[0080] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0082] Figure 1 The figure is a flow chart of an audio synthesis method according to an exemplary embodiment.

[0083] Figure 2 It is a schematic diagram of an audio synthesis method according to an exemplary embodiment.

[0084] Figure 3 It is a structural diagram of a basic synthesis model according to an exemplary embodiment.

[0085] Figure 4 The present invention is a block diagram of an audio synthesis device according to an exemplary embodiment.

[0086] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0087] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0088] The embodiments described in some embodiments of the present disclosure below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0089] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0090] Audio synthesis converts speech signals into natural-sounding singing voices.

[0091] In the related art, the conversion of singing voice can be achieved based on signal processing methods, but there are serious problems of vocal distortion and melody distortion, and the signal processing method will also cause timbre distortion, making it difficult to fit the natural melody of the speaker.

[0092] In view of the above technical problems, the embodiments of the present disclosure provide an audio synthesis method, device, equipment, storage medium and program product, which can train a basic synthesis model by using a plurality of sample synthesis data including sample accompaniment, sample pitch characteristics, sample clean audio and real synthesized audio, so that the basic synthesis model can learn the user's pitch characteristics and obtain a more accurate target synthesis model. So that the target synthesis model can generate a singing voice that is more natural and closer to the user's real voice based on the user's target accompaniment, target pitch characteristics and target clean audio.

[0093] Through the audio synthesis method provided by the embodiment of the present disclosure, a user can record his or her own voice, such as speech or singing, and generate a complete song including accompaniment.

[0094] In one application scenario, users can use the audio synthesis method provided by the embodiment of the present disclosure to convert their ordinary voice into singing voice, thereby realizing a personalized KTV function. The main purpose is to create an entertainment effect, and a complete song can be generated through simple sentences and a cappella.

[0095] In one application scenario, music producers can use the audio synthesis method provided by the embodiment of the present disclosure to convert ordinary speech into singing sounds, thereby providing more timbre options for music production. Focusing on professional effects, producers can compose songs and sing a cappella, and generate complete songs.

[0096] In one application scenario, the audio synthesis method provided by the embodiment of the present disclosure can be used in various entertainment applications, such as converting speech into the voice of a cartoon character or the voice of an animal.

[0097] In one application scenario, a game application may use the audio synthesis method provided by the embodiment of the present disclosure to provide more timbre options for game characters, thereby increasing the fun and personalization of the game.

[0098] Figure 1 is a flowchart of an audio synthesis method according to an exemplary embodiment. Figure 2 is a schematic diagram of an audio synthesis method according to an exemplary embodiment. Figure 1 and Figure 2 As shown, the following steps may be included.

[0099] In step S101, original synthesized data of the audio to be processed is obtained, where the original synthesized data includes a target accompaniment, a target pitch feature, and a target clean audio, where the target pitch feature and the target clean audio are obtained based on the audio to be processed.

[0100] In this embodiment, the original synthesis data is the input data of the target synthesis model, and may include a target accompaniment, a target pitch feature, and a target clean audio. The target accompaniment may be input by a user or automatically generated. The target pitch feature and the target clean audio may be obtained based on the audio to be processed, the audio to be processed may be the audio input by the user, and the target pitch feature may be the pitch frequency of the audio input by the user. The target clean audio may be the audio obtained by denoising the audio input by the user, for example, removing the ambient noise in the audio input by the user.

[0101] In step S102, the original synthesis data is processed by a target synthesis model to obtain a target synthesis audio. The target synthesis model is obtained by training a basic synthesis model based on multiple sample synthesis data. The sample synthesis data includes sample accompaniment, sample pitch features, sample clean audio and real synthesis audio.

[0102] In this embodiment, the basic synthesis model can be trained in advance by using a plurality of sample synthesis data including sample accompaniment, sample pitch features, sample clean audio, and real synthesized audio, so that the basic synthesis model can learn the user's pitch features and obtain a more accurate target synthesis model. The original synthesis data obtained is input into the target synthesis model, and the target synthesis audio can be output through the target synthesis model. The target synthesis model more naturally integrates the target accompaniment and the target clean audio, and retains the timbre of the audio input by the user, generating a more natural singing voice that is closer to the user's real voice.

[0103] In a possible implementation, before obtaining the original synthesized data of the audio to be processed, the method further includes:

[0104] Obtain the audio to be processed; perform pitch extraction on the audio to be processed to obtain the target pitch feature; perform noise reduction on the audio to be processed to obtain the target clean audio.

[0105] In this embodiment, the audio to be processed input by the user can be obtained in advance, and the audio to be processed can be further processed to obtain the input data required by the model. Specifically, the audio to be processed can be subjected to noise reduction, for example, noise mixed in the recorded sound due to environmental factors, microphone factors and the user's own recording problems can be removed, and the noise can include environmental noise and white noise, etc., to obtain the target clean audio. And the audio to be processed can be subjected to fundamental tone extraction to extract the target fundamental tone features corresponding to the audio to be processed, so as to retain the timbre of the audio to be processed.

[0106] In a possible implementation, the processed audio may be first subjected to noise reduction to obtain a target clean audio, and then pitch extraction may be performed on the target clean audio to obtain a target pitch feature, so as to avoid the influence of noise on the target pitch feature and obtain a more accurate target pitch feature.

[0107] In a possible implementation, a method for performing pitch extraction on the processed audio to obtain a target pitch feature may be:

[0108] According to the target sampling rate, the sampling rate of the processed audio is converted to obtain the sampled audio; the sampled audio is smoothed to obtain the smoothed audio; the smoothed audio is filtered to obtain the preprocessed audio; and the target pitch feature is obtained according to the pitch period of the preprocessed audio.

[0109] In this embodiment, the processed audio may be pre-processed by sampling rate conversion, smoothing and filtering, and the pitch period may be calculated using the autocorrelation function. The autocorrelation function method is based on the temporal similarity of the signal, and the pitch period is obtained by calculating the correlation between the waveform and its own waveform after a period of delay, and then the inverse of the pitch period is converted into the pitch frequency.

[0110] Specifically, based on the target sampling rate, the audio to be processed can be sampled at a rate conversion to obtain a more suitable sampled audio. The sampled audio can then be smoothed to reduce noise and unnecessary high-frequency components in preparation for subsequent pitch detection. A bandpass filter can be used to isolate the human voice frequency range to remove non-human voice components in the audio.

[0111] In a possible implementation, before obtaining the original synthesized data of the audio to be processed, the method further includes:

[0112] When the user's instruction data is received, the target accompaniment is obtained based on the instruction data, and the instruction data includes original accompaniment data and / or audio style data.

[0113] In this embodiment, during the audio synthesis process, the user can specify the desired target accompaniment by inputting indication data, or the user may not input indication data, and the accompaniment may be automatically generated.

[0114] The indication data may include original accompaniment data, which may be an accompaniment uploaded by the user or an accompaniment selected by the user from candidate accompaniments. For example, the selectable candidate accompaniments may be displayed to the user through a user interface, and the original accompaniment selected by the user from the candidate accompaniments may be determined based on the user's selection operation, thereby obtaining the target accompaniment. If the user does not select a candidate accompaniment and uploads the desired original accompaniment by himself, the original accompaniment uploaded by the user is directly determined as the target accompaniment, so as to generate singing based on the accompaniment desired by the user.

[0115] Alternatively, the indication data may include audio style data, and optional candidate styles may be displayed to the user through a user interface, and the audio style data selected by the user may be determined based on the user's selection operation, and then based on the audio style data, a target accompaniment that matches the audio style may be randomly generated.

[0116] Alternatively, the indication data may include original accompaniment data and audio style data, and the original accompaniment data may be adjusted based on the original accompaniment data and combined with the audio style data to obtain a target accompaniment that conforms to the audio style.

[0117] In a possible implementation, the method further includes:

[0118] In the case where no instruction data from the user is received, the user's historical data is obtained; the user's historical style is determined according to the user's historical data; and the target accompaniment is generated based on the historical style.

[0119] In this embodiment, if the user's instruction data is not received, the target accompaniment can be automatically generated. Specifically, the user's historical data can be obtained, and the historical data can be the user's historically synthesized audio. The obtained historical data is processed to determine the historical audio style of the historical data, thereby obtaining the user's historical style. Then, based on the historical style, a target accompaniment that conforms to the historical style is randomly generated.

[0120] In a possible implementation, the target synthesis model is obtained by the following steps:

[0121] The basic synthesis model is trained multiple times according to multiple sample synthesis data; after each round of training, the predicted synthesis audio corresponding to this round of training is obtained; the prediction loss corresponding to this round of training is obtained according to the predicted synthesis audio and the real synthesis audio in the sample synthesis data corresponding to this round of training; the basic synthesis model is optimized according to the prediction loss corresponding to this round of training; when the basic synthesis model meets the stopping condition, the training is stopped to obtain the target synthesis model.

[0122] In this embodiment, multiple sample synthesis data can be obtained, and the multiple sample synthesis data can be divided into multiple groups of training data, and then the basic synthesis model is trained multiple times through the multiple groups of training data, and each round of training uses a group of training data. Among them, the multiple sample synthesis data may include sample synthesis data corresponding to the original sample data and sample synthesis data corresponding to the enhanced sample data, and the sample synthesis data corresponding to the enhanced sample data is obtained by enhancing the original sample data. In the process of grouping the multiple sample synthesis data, the grouping can be performed according to the preset rules, so that each group of training data includes sample synthesis data corresponding to the original sample data and sample synthesis data corresponding to the enhanced sample data, and in each group of training data, the sample synthesis data corresponding to the original sample data and the sample synthesis data corresponding to the enhanced sample data are arranged crosswise. For example, in each group of training data, the sample synthesis data corresponding to 2 original sample data and the sample synthesis data corresponding to 3 enhanced sample data can be arranged continuously. And in each round of training, each group of training data is sequentially input into the basic synthesis model for training in the order of continuous arrangement. The purpose of this is to ensure that the basic detection model is not biased in the process of using data, and has both the guidance of the original sample data and the role of enhancing the robustness of the model.

[0123] After each round of training, the predicted synthesized audio output by the basic synthesis model in this round of training is obtained, and the predicted loss corresponding to this round of training is obtained by calculating the loss based on the loss function according to the predicted synthesized audio and the real synthesized audio in the sample synthesis data corresponding to this round of training. Among them, the loss function can be the mean square error between the logarithmic amplitude spectrogram of the predicted synthesized audio and the logarithmic amplitude spectrogram of the real synthesized audio. Then, according to the predicted loss corresponding to this round of training, the basic synthesis model is optimized. Until the basic synthesis model meets the stopping condition, the training is stopped to obtain the target synthesis model. Among them, the stopping condition can be that the number of training rounds reaches a preset number of rounds or the basic synthesis model converges.

[0124] Among them, during the training process, the sample clean audio uses time domain information to input the basic synthesis model, and the sample accompaniment uses frequency domain information to input the basic synthesis model. For example, for the time domain information, it can be resampled from 48kHz to 32kHz to reduce the amount of data processing and improve the data processing speed. And the short-time Fourier transform of 1024 frequency samples can be calculated by the basic detection model using a 50ms window size and a 25ms frame shift size. That is, each short-time Fourier transform window can contain 50ms of audio data, and there is an overlap of 25ms between each short-time Fourier transform window. Through the short-time Fourier transform, the time domain information is converted to the frequency domain, and the spectrum representation of 1024 frequency samples is obtained. During the optimization process, the Adam optimizer can be used, the initial learning rate can be 0.001, and the exponential decay factor can be 0.99. All networks in the basic detection model can be trained for 80 generations, where one generation is a plurality of sample synthetic data in the entire training data set and is used once in full during the training process. 128 sample synthetic data can be used for each iteration. During the training process, the regularization term z in the loss function is annealed, that is, its influence is gradually reduced as the number of iterations increases. This helps the model learn a wider range of features in the early stages of training and focus on minimizing the reconstruction error in the later stages of training. Annealing methods can include linear attenuation and step attenuation.

[0125] In a possible implementation, a method for performing multiple rounds of training on a basic synthesis model according to multiple sample synthesis data may be:

[0126] For each round of training, multiple sample synthesis data corresponding to the round of training are obtained; the multiple sample synthesis data corresponding to the round of training are processed separately by the basic synthesis model to obtain the predicted synthesized audio corresponding to each sample synthesis data.

[0127] In this embodiment, each group of training data in multiple groups of training data can be obtained in turn for multiple rounds of training. In any round of training, a group of training data can be obtained as multiple sample synthetic data corresponding to that round of training, and the group of training data can be input into the basic synthesis model in sequence according to the order of continuous arrangement for training to obtain the predicted synthetic audio corresponding to each sample synthetic data in the group of training data.

[0128] Figure 3 is a schematic diagram of a basic synthesis model according to an exemplary embodiment. Figure 3 As shown, in one possible implementation, the basic synthesis model includes a feature modeling network, a timbre preservation network, and a decoding network.

[0129] The multiple sample synthesis data corresponding to the round of training are processed respectively by the basic synthesis model to obtain the predicted synthesis audio corresponding to each sample synthesis data, including:

[0130] For any sample synthetic data corresponding to this round of training, the feature modeling network is used to extract features of the sample accompaniment and the sample clean audio to obtain the target modeling features; the target modeling features and the sample fundamental pitch features are processed by the timbre preservation network to obtain the timbre fusion features; the timbre fusion features are decoded by the decoding network to obtain the predicted synthetic audio corresponding to the sample synthetic data.

[0131] In this embodiment, for any sample synthesis data corresponding to this round of training, the feature modeling network can be used to extract features, fuse features, and perform feature modeling on the sample accompaniment and the sample clean audio, thereby obtaining the target modeling features. The sample pitch features can be fused into the target modeling features through the timbre preservation network to obtain the timbre fusion features. The timbre fusion features are then decoded through the decoding network to obtain the predicted synthesized audio corresponding to the sample synthesis data.

[0132] Continue to refer Figure 3 ,In a possible implementation mode, the feature modeling network includes a first encoding network, a second encoding network, a fusion network, a time modeling network and a local information modeling network;

[0133] The method of extracting features of the sample accompaniment and the sample clean audio through the feature modeling network to obtain the target modeling features can be:

[0134] The frequency domain information of the sample accompaniment is extracted through the first encoding network to obtain the first feature; the time domain information of the sample clean audio is extracted through the second encoding network to obtain the second feature; the first feature and the second feature are fused through the fusion network to obtain the fusion feature; the fusion feature is modeled in the global time dimension through the time modeling network to obtain the basic modeling feature; the basic modeling feature is modeled locally through the local information modeling network to obtain the target modeling feature.

[0135] In this embodiment, since the human voice contains less musical information than the accompaniment, the frequency domain information can be used as input for the sample accompaniment to help the synthesis result fit the human voice, and the time domain information can be used as input for the sample clean audio to reduce the amount of calculation. Then, the frequency domain information of the sample accompaniment can be feature extracted through the first coding network to obtain the first feature, and the time domain information of the sample clean audio can be feature extracted through the second coding network to obtain the second feature. Among them, the first encoding network can be F-Encoder (frequency domain encoder), and the second encoding network can be T-Encoder (time domain encoder). Among them, the T-Encoder structure can include 3 layers of Conv2D (two-dimensional convolutional layer), each layer is connected to the Average Pooling layer (average pooling layer) and Relu (Rectified Linear Unit) activation function and BN (BatchNormalization) layer, and the F-Encoder includes 3 layers of Conv2D and Relu activation function and BN layer, so as to expand the time domain information to the same scale as the frequency domain information, so as to perform feature splicing and then feature fusion in the dimension of frequency domain information.

[0136] After obtaining the first feature and the second feature, a fusion network may be used to fuse the first feature and the second feature to obtain a fusion feature. The fusion network may be Conv1D (one-dimensional convolutional layer).

[0137] Then, the fusion features can be modeled in the global time dimension through the time modeling network to obtain the basic modeling features. The time modeling network can be two LSTMs (Long Short-Term Memory) to model the global time dimension and achieve long-term modeling dependencies.

[0138] Then, the local information modeling network is used to perform local information modeling on the basic modeling features to obtain the target modeling features. The local information modeling network may include 4 layers of Conv2D, which are interspersed with LayerNorm (Layer Normalization) and Average Pooling layers and Relu activation functions. That is, each layer of Conv2D includes a Conv2D, LayerNorm, Average Pooling layers, and Relu activation functions.

[0139] In a possible implementation, after obtaining the target modeling features, the first time modeling subnetwork may be used again to ensure that the time dimension information is not destroyed, wherein the first time modeling subnetwork may be two LSTMs to update the target modeling features.

[0140] Continue to refer Figure 3 In one possible implementation, the timbre-preserving network includes a first self-attention layer, a timbre extraction layer, a self-attention module, and a second self-attention layer.

[0141] The method of processing the target modeling features and the sample pitch features through the timbre preservation network to obtain the timbre fusion features can be as follows:

[0142] The target modeling features are processed through the first self-attention layer to obtain the third feature; the sample fundamental pitch features are feature mapped through the timbre extraction layer to obtain the fourth feature; the third feature and the fourth feature are fused through the self-attention module to obtain the basic fusion feature; the basic fusion feature is processed through the second self-attention layer to obtain the timbre fusion feature.

[0143] In this embodiment, in order to ensure that the timbre of the original singer can be preserved in the process of fusion of singing and accompaniment, a guiding module of a miniature Unet structure is proposed: Transformer--TF-Attention--Transformer. Among them, the first self-attention layer may include 3 layers of Transformer (self-attention model), and the first self-attention layer ensures time dependence. The self-attention module may be TF-Attention, which is based on the basic self-attention module. The timbre extraction layer may be a 2-layer TCN (Temporal Convolutional Network). In order to fuse the characteristics of the singer, the sample pitch feature is feature mapped, that is, the fourth feature is obtained using a 2-layer TCN network, and the fourth feature is used as the "value" parameter in the self-attention module to achieve fusion with the third feature and obtain the basic fusion feature. The second self-attention layer may be a 5-layer Transformer. The basic fusion feature is processed by the second self-attention layer to obtain the timbre fusion feature. The timbre preservation network ultimately realizes the nonlinear time alignment between the singing melody feature and the user's timbre. In order to consider the amount of computation, the timbre preservation network uses an asymmetric model before and after the attention layer, that is, the first self-attention layer includes 3 layers of Transformer, and the second self-attention layer includes 5 layers of Transformer. Among them, each Transformer layer can include 4 attention heads, 2 encoder layers and 2 decoder layers, and the dimension of the feedforward layer can be set to 512.

[0144] In a possible implementation, after obtaining the timbre fusion feature, the second time modeling subnetwork can be used again to ensure that the time dimension information is not destroyed. The second time modeling subnetwork can be an LSTM to update the timbre fusion feature and ensure the validity of the time dimension.

[0145] In one possible implementation, the decoding network may include a decoder and an inverse short-time Fourier transform layer. The timbre fusion features are finally passed through a decoder composed of four layers of deconvolution to restore the features to the frequency domain dimension, and finally the final predicted synthetic audio is output through an inverse short-time Fourier transform layer.

[0146] In a possible implementation, before performing multiple rounds of training on the basic synthesis model according to the multiple sample synthesis data, the method further includes:

[0147] A plurality of original sample data are processed respectively to obtain a plurality of sample synthesis data, wherein the original sample data includes a sample accompaniment and an original audio, and the sample pitch feature and the sample clean audio are obtained based on the original audio.

[0148] In this embodiment, the original sample data may include sample accompaniment and original audio, and the sample accompaniment and original audio may be obtained through an open source database as the original sample data. In order to obtain more sample synthesis data, each original sample data may be data enhanced so that more sample synthesis data may be obtained through the enhanced data. Among them, the sample pitch feature and the sample clean audio are obtained based on the original audio, the original audio may be subjected to pitch extraction to obtain the sample pitch feature, and the original audio may be subjected to noise reduction to obtain the sample clean audio. Among them, the real synthesized audio in the sample synthesis data may be synthesized by the sample accompaniment and the original audio. It may also be synthesized by the amplified accompaniment and amplified audio after data enhancement.

[0149] In a possible implementation manner, before respectively processing a plurality of original sample data to obtain a plurality of sample synthetic data, the method further includes:

[0150] Delete silent frames and continuous silent frames in multiple original sample data, where the silent frames are audio frames whose volume value is less than the first volume value, and the continuous silent frames are multiple continuous audio frames whose continuous duration is greater than the preset duration and whose volume values ​​are all less than the second volume value.

[0151] In this embodiment, silent frames and continuous silent frames may be deleted in advance so as to obtain more effective amplified data. The first volume value may be 0 decibels, the second volume value may be 50 decibels, and the continuous duration may be 50 milliseconds.

[0152] In a possible implementation, a method of processing a plurality of original sample data respectively to obtain a plurality of sample synthetic data may be:

[0153] Data enhancement is performed on multiple original sample data respectively to obtain enhanced sample data corresponding to each original sample data, wherein the enhanced sample data includes augmented audio and augmented accompaniment; multiple sample synthesis data are obtained according to the multiple original sample data and the enhanced sample data corresponding to each original sample data.

[0154] In this embodiment, data enhancement can be performed for each original sample data, that is, one original sample data can be amplified to obtain multiple enhanced sample data. Specifically, the original audio and sample accompaniment in each original sample data can be amplified to obtain amplified audio and amplified accompaniment. Then, one original sample data can obtain one sample synthesis data, and one enhanced sample data can obtain one sample synthesis data, thereby obtaining multiple sample synthesis data.

[0155] In a possible implementation, a method of performing data enhancement on a plurality of original sample data respectively to obtain enhanced sample data corresponding to each original sample data may be:

[0156] For any original sample data among the multiple original sample data, the original audio in the original sample data is data amplified to obtain the amplified audio corresponding to the original sample data; the sample accompaniment in the original sample data is data amplified to obtain the amplified accompaniment corresponding to the original sample data.

[0157] In this implementation, the original audio and sample accompaniment in each original sample data may be amplified respectively to obtain amplified audio and amplified accompaniment.

[0158] In a possible implementation, performing data amplification on the original audio in the original sample data to obtain the amplified audio corresponding to the original sample data includes:

[0159] Based on the target fundamental frequency contour, the original audio in the original sample data is time-stretched to obtain the stretched audio; the stretched audio is randomly resampled to obtain the amplified audio corresponding to the original sample data.

[0160] In this embodiment, a target fundamental frequency contour can be set in advance, and then the original audio in the original sample data is time-stretched to the length of the target fundamental frequency contour to obtain stretched audio. The stretched audio is randomly resampled, and the resampled data is combined to obtain the amplified audio corresponding to the original sample data. For a stretched audio, multiple rounds of resampling can be performed, and the data obtained from one round of resampling is combined to obtain an amplified audio, so that one original audio can obtain multiple amplified audios. In order to increase the data volume of the sample synthesis data and obtain a better model training effect.

[0161] In a possible implementation, a method for performing data amplification on the sample accompaniment in the original sample data to obtain the amplified accompaniment corresponding to the original sample data may be:

[0162] The melody contour of the sample accompaniment in the original sample data is extracted and the pitch is marked to obtain the marked melody; the marked melody is randomly resampled to obtain the augmented accompaniment corresponding to the original sample data.

[0163] In this embodiment, CREPE (Convolutional Recursive Extreme Pricer for Estimating Pitch, a monophonic pitch tracker based on a deep convolutional neural network) can be used to accurately extract the melody contour from the sample accompaniment and convert the melody contour to 128 pitches. The annotated melody is randomly resampled, and the resampled data is combined to obtain the amplified accompaniment corresponding to the original sample data. For a annotated melody, multiple rounds of resampling can be performed, and the data obtained from one round of resampling is combined to obtain an amplified accompaniment, so that one sample accompaniment can obtain multiple amplified accompaniments. In order to increase the data volume of the sample synthesis data and obtain better model training effects.

[0164] In a possible implementation, a method for obtaining multiple sample synthetic data according to multiple original sample data and enhanced sample data corresponding to each original sample data may be:

[0165] For any original sample data, based on the sample accompaniment and original audio in the original sample data, the sample accompaniment, sample pitch characteristics, sample clean audio and real synthesized audio corresponding to the original sample data are obtained to obtain the sample synthesized data corresponding to the original sample data; for any enhanced sample data, based on the amplified accompaniment and amplified audio in the enhanced sample data, the sample accompaniment, sample pitch characteristics, sample clean audio and real synthesized audio corresponding to the enhanced sample data are obtained to obtain the sample synthesized data corresponding to the enhanced sample data.

[0166] In this embodiment, for any original sample data, the sample accompaniment and original audio in the original sample data can be synthesized to obtain real synthesized audio, and the original audio can be processed to obtain sample pitch characteristics and sample clean audio, thereby obtaining the sample accompaniment, sample pitch characteristics, sample clean audio and real synthesized audio corresponding to the original sample data, so as to obtain sample synthesized data corresponding to the original sample data.

[0167] For any enhanced sample data, the amplified accompaniment and amplified audio in the enhanced sample data can be used to obtain real synthetic audio, and the amplified audio can be processed to obtain sample pitch characteristics and sample clean audio, and the amplified accompaniment can be used as the sample accompaniment to obtain the sample accompaniment, sample pitch characteristics, sample clean audio and real synthetic audio corresponding to the enhanced sample data, so as to obtain the sample synthetic data corresponding to the enhanced sample data.

[0168] Through the above data enhancement method, more sample synthesis data can be obtained so as to train a more accurate and robust target synthesis model.

[0169] Figure 4is a block diagram of an audio synthesis device according to an exemplary embodiment. Figure 4 , the audio synthesis device 400 may include a first acquisition module 401 and a first obtaining module 402.

[0170] The first acquisition module 401 is configured to acquire original synthesized data of the audio to be processed, wherein the original synthesized data includes a target accompaniment, a target pitch feature and a target clean audio, wherein the target pitch feature and the target clean audio are obtained based on the audio to be processed;

[0171] The first acquisition module 402 is configured to process the original synthesis data through a target synthesis model to obtain a target synthesis audio. The target synthesis model is obtained by training a basic synthesis model based on multiple sample synthesis data. The sample synthesis data includes sample accompaniment, sample fundamental tone features, sample clean audio and real synthesis audio.

[0172] Optionally, the audio synthesis device 400 further includes:

[0173] A second acquisition module is configured to acquire the audio to be processed;

[0174] A pitch extraction module is configured to perform pitch extraction on the audio to be processed to obtain the target pitch feature;

[0175] The noise reduction module is configured to perform noise reduction on the audio to be processed to obtain the target clean audio.

[0176] Optionally, the pitch extraction module includes:

[0177] A conversion submodule is configured to perform sampling rate conversion on the audio to be processed according to a target sampling rate to obtain a sampled audio;

[0178] A first obtaining submodule is configured to perform smoothing on the sampled audio to obtain smoothed audio;

[0179] The second obtaining submodule is configured to filter the smoothed audio to obtain the preprocessed audio.

[0180] The third obtaining submodule is configured to obtain the target pitch feature according to the pitch period of the preprocessed audio.

[0181] Optionally, the audio synthesis device 400 further includes:

[0182] The second obtaining module is configured to obtain the target accompaniment based on the indication data received from the user, wherein the indication data includes original accompaniment data and / or audio style data.

[0183] Optionally, the audio synthesis device 400 further includes:

[0184] A third acquisition module is configured to acquire the historical data of the user when no indication data of the user is received;

[0185] A determination module, configured to determine the historical style of the user according to the historical data of the user;

[0186] The generating module is configured to generate the target accompaniment based on the historical style.

[0187] Optionally, the audio synthesis device 400 further includes:

[0188] A training module, configured to perform multiple rounds of training on the basic synthesis model according to the plurality of sample synthesis data;

[0189] A fourth acquisition module is configured to acquire, after each round of training, the predicted synthesized audio corresponding to the current round of training;

[0190] A third obtaining module is configured to obtain the prediction loss corresponding to the current round of training according to the predicted synthetic audio and the real synthetic audio in the sample synthetic data corresponding to the current round of training;

[0191] An optimization module, configured to optimize the basic synthesis model according to the prediction loss corresponding to the current round of training;

[0192] The fourth acquisition module is configured to stop training and obtain the target synthesis model when the basic synthesis model meets the stopping condition.

[0193] Optionally, the training module includes:

[0194] An acquisition submodule is configured to acquire, for each round of training, a plurality of sample synthetic data corresponding to the round of training;

[0195] The fourth acquisition submodule is configured to process the multiple sample synthesis data corresponding to the round of training respectively through the basic synthesis model to obtain the predicted synthesized audio corresponding to each sample synthesis data.

[0196] Optionally, the basic synthesis model includes a feature modeling network, a timbre preservation network and a decoding network;

[0197] The fourth obtaining submodule comprises:

[0198] An extraction unit is configured to extract features of the sample accompaniment and the sample clean audio through the feature modeling network for any sample synthesis data corresponding to the round of training, so as to obtain target modeling features;

[0199] A third obtaining unit is configured to process the target modeling feature and the sample pitch feature through the timbre preservation network to obtain a timbre fusion feature;

[0200] The fourth obtaining unit is configured to decode the timbre fusion feature through the decoding network to obtain the predicted synthesized audio corresponding to the sample synthesis data.

[0201] Optionally, the feature modeling network includes a first encoding network, a second encoding network, a fusion network, a time modeling network and a local information modeling network;

[0202] The extraction unit comprises:

[0203] A first extraction subunit is configured to extract features from the frequency domain information of the sample accompaniment through the first encoding network to obtain a first feature;

[0204] A second extraction subunit is configured to extract features from the time domain information of the sample clean audio through the second encoding network to obtain a second feature;

[0205] a fusion subunit, configured to fuse the first feature and the second feature through the fusion network to obtain a fusion feature;

[0206] A first modeling subunit is configured to perform global time dimension modeling on the fusion feature through the time modeling network to obtain a basic modeling feature;

[0207] The second modeling subunit is configured to perform local information modeling on the basic modeling features through the local information modeling network to obtain the target modeling features.

[0208] Optionally, the timbre-preserving network comprises a first self-attention layer, a timbre extraction layer, a self-attention module, and a second self-attention layer;

[0209] The third obtaining unit comprises:

[0210] A first obtaining subunit is configured to process the target modeling feature through the first self-attention layer to obtain a third feature;

[0211] A second obtaining subunit is configured to perform feature mapping on the sample pitch feature through the timbre extraction layer to obtain a fourth feature;

[0212] A third obtaining subunit is configured to fuse the third feature and the fourth feature through the self-attention module to obtain a basic fused feature;

[0213] The fourth obtaining subunit is configured to process the basic fusion feature through the second self-attention layer to obtain the timbre fusion feature.

[0214] Optionally, the audio synthesis device 400 further includes:

[0215] The fifth acquisition module is configured to process multiple original sample data respectively to obtain multiple sample synthesis data, wherein the original sample data includes sample accompaniment and original audio, and the sample pitch feature and the sample clean audio are obtained based on the original audio.

[0216] Optionally, the fifth obtaining module includes:

[0217] The enhancement submodule is configured to perform data enhancement on the plurality of original sample data respectively to obtain enhanced sample data corresponding to each original sample data, wherein the enhanced sample data includes augmented audio and augmented accompaniment;

[0218] The fifth obtaining submodule is configured to obtain a plurality of the sample synthesis data according to the plurality of original sample data and the enhanced sample data corresponding to each original sample data.

[0219] Optionally, the enhancer module comprises:

[0220] A first amplification unit is configured to perform data amplification on the original audio in any original sample data among the plurality of original sample data to obtain an amplified audio corresponding to the original sample data;

[0221] The second amplification unit is configured to perform data amplification on the sample accompaniment in the original sample data to obtain an amplified accompaniment corresponding to the original sample data.

[0222] Optionally, the first amplification unit comprises:

[0223] A stretching subunit is configured to perform time stretching on the original audio in the original sample data based on the target fundamental frequency contour to obtain stretched audio;

[0224] The first sampling subunit is configured to randomly resample the stretched audio to obtain the amplified audio corresponding to the original sample data.

[0225] Optionally, the second amplification unit comprises:

[0226] A fifth obtaining subunit is configured to extract a melody contour and mark the pitch of the sample accompaniment in the original sample data to obtain a marked melody;

[0227] The second sampling subunit is configured to randomly resample the marked melody to obtain an augmented accompaniment corresponding to the original sample data.

[0228] Optionally, the fifth obtaining submodule includes:

[0229] A fifth obtaining unit is configured to obtain, for any original sample data, a sample accompaniment, a sample pitch feature, a sample clean audio, and a real synthesized audio corresponding to the original sample data according to the sample accompaniment and the original audio in the original sample data, so as to obtain sample synthesized data corresponding to the original sample data;

[0230] The sixth acquisition unit is configured to obtain, for any enhanced sample data, the sample accompaniment, sample pitch characteristics, sample clean audio and real synthesized audio corresponding to the enhanced sample data based on the augmented accompaniment and augmented audio in the enhanced sample data, so as to obtain the sample synthesized data corresponding to the enhanced sample data.

[0231] Optionally, the audio synthesis device 400 further includes:

[0232] The deletion module is configured to delete silent frames and continuous silent frames in the multiple original sample data, wherein the silent frames are audio frames whose volume value is less than the first volume value, and the continuous silent frames are multiple continuous audio frames whose continuous duration is greater than the preset duration and whose volume values ​​are all less than the second volume value.

[0233] Regarding the audio synthesis device 400 in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0234] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the audio synthesis method provided by the present disclosure are implemented.

[0235] Figure 5 5 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 500 may be provided as a server. Figure 5 , the electronic device 500 includes a processing component 522, which further includes one or more processors, and a memory resource represented by a memory 532 for storing instructions that can be executed by the processing component 522, such as an application. The application stored in the memory 532 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 522 is configured to execute instructions to perform the above-mentioned audio synthesis method.

[0236] The electronic device 500 may also include a power supply component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to connect the electronic device 500 to a network, and an input / output interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server 2003. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or similar.

[0237] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above audio synthesis method when executed by the programmable device.

[0238] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.

[0239] It should be understood that the features of some embodiments of the various present disclosures described herein may be combined with each other, unless specifically stated otherwise.

[0240] Although terms such as "first", "second" and "third" can be used herein to describe various components, parts, regions, layers or sections, these components, parts, regions, layers or sections are not limited to these terms. On the contrary, these terms are only used to distinguish one component, component, region, layer or section from another component, component, region, layer or section. Therefore, without departing from the teachings of each example, the first component, component, region, layer or section mentioned in the examples described herein may also be referred to as the second component, component, region, layer or section. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may expressly or implicitly include at least one of the features. In the description herein, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0241] In addition, the word "exemplary" is used herein to indicate serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a specific way. As used herein, the term "or" is intended to represent an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to represent any one of the natural inclusive arrangements. That is, if X applies A; X applies B; or X applies both A and B, "X applies A or B" is satisfied under any of the aforementioned examples. In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "one" and "an" as used in this application and the appended claims are generally understood to mean "one or more".

[0242] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although specific features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and beneficial to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in a specific embodiment or claim, such terms are intended to be inclusive in a manner similar to the term "comprising".

[0243] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0244] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An audio synthesis method, characterized in that: include: Acquire original synthesized data of the audio to be processed, wherein the original synthesized data includes a target accompaniment, a target pitch feature, and a target clean audio, wherein the target pitch feature and the target clean audio are obtained based on the audio to be processed; The original synthesized data is processed by a target synthesis model to obtain a target synthesized audio, wherein the target synthesis model is obtained by training a basic synthesis model based on a plurality of sample synthesis data, wherein the sample synthesis data includes a sample accompaniment, a sample pitch feature, a sample clean audio, and a real synthesized audio; The basic synthesis model includes a feature modeling network, a timbre preservation network and a decoding network, the feature modeling network includes a first encoding network, a second encoding network, a fusion network, a time modeling network and a local information modeling network, and the target synthesis model is obtained by the following steps: For each round of training, multiple sample synthetic data corresponding to the round of training are obtained; For any sample synthetic data corresponding to the round of training, extracting features of frequency domain information of the sample accompaniment through the first encoding network to obtain a first feature; Extracting features from the time domain information of the clean audio sample through the second coding network to obtain a second feature; fusing the first feature and the second feature through the fusion network to obtain a fusion feature; Performing global time dimension modeling on the fusion features through the time modeling network to obtain basic modeling features; Performing local information modeling on the basic modeling features through the local information modeling network to obtain target modeling features; The target modeling feature and the sample pitch feature are processed by the timbre-preserving network to obtain a timbre fusion feature; Decoding the timbre fusion feature through the decoding network to obtain the predicted synthesized audio corresponding to the sample synthesized data; After each round of training, obtain the predicted synthesized audio corresponding to this round of training; Obtaining a prediction loss corresponding to the current round of training based on the predicted synthetic audio and the real synthetic audio in the sample synthetic data corresponding to the current round of training; Optimizing the basic synthesis model according to the prediction loss corresponding to this round of training; When the basic synthesis model meets the stopping condition, the training is stopped to obtain the target synthesis model.

2. The audio synthesis method according to claim 1, characterized in that: Before obtaining the original synthesized data of the audio to be processed, the method further includes: Obtain the audio to be processed; Performing pitch extraction on the audio to be processed to obtain the target pitch feature; Noise reduction is performed on the audio to be processed to obtain the target clean audio.

3. The audio synthesis method according to claim 2, characterized in that: The step of extracting the pitch of the audio to be processed to obtain the target pitch feature includes: According to the target sampling rate, the sampling rate of the audio to be processed is converted to obtain a sampled audio; Smoothing the sampled audio to obtain smoothed audio; Filtering the smoothed audio to obtain preprocessed audio; The target pitch feature is obtained according to the pitch period of the preprocessed audio.

4. The audio synthesis method according to claim 1, characterized in that: Before obtaining the original synthesized data of the audio to be processed, the method further includes: In case of receiving the user's instruction data, the target accompaniment is obtained based on the instruction data, wherein the instruction data includes original accompaniment data and / or audio style data.

5. The audio synthesis method according to claim 4, characterized in that: The method further comprises: In the case where no indication data from the user is received, obtaining historical data of the user; Determining the historical style of the user according to the historical data of the user; Based on the historical style, the target accompaniment is generated.

6. The audio synthesis method according to claim 1, characterized in that: The timbre preservation network includes a first self-attention layer, a timbre extraction layer, a self-attention module, and a second self-attention layer; The step of processing the target modeling feature and the sample pitch feature through the timbre preservation network to obtain a timbre fusion feature includes: Processing the target modeling feature through the first self-attention layer to obtain a third feature; Performing feature mapping on the sample pitch feature through the timbre extraction layer to obtain a fourth feature; The third feature and the fourth feature are fused by the self-attention module to obtain a basic fused feature; The basic fusion feature is processed by the second self-attention layer to obtain the timbre fusion feature.

7. The audio synthesis method according to claim 1, characterized in that: The method further comprises: A plurality of original sample data are processed respectively to obtain a plurality of sample synthesis data, wherein the original sample data includes a sample accompaniment and an original audio, and the sample pitch feature and the sample clean audio are obtained based on the original audio.

8. The audio synthesis method according to claim 7, characterized in that: The processing of the plurality of original sample data respectively to obtain the plurality of sample synthetic data comprises: Performing data enhancement on the plurality of original sample data respectively to obtain enhanced sample data corresponding to each original sample data, wherein the enhanced sample data includes augmented audio and augmented accompaniment; A plurality of the sample synthesis data are obtained according to the plurality of original sample data and the enhanced sample data corresponding to each of the original sample data.

9. The audio synthesis method according to claim 8, characterized in that ; The performing data enhancement on the plurality of original sample data respectively to obtain enhanced sample data corresponding to each original sample data includes: For any original sample data among the multiple original sample data, data amplification is performed on the original audio in the original sample data to obtain the amplified audio corresponding to the original sample data; The sample accompaniment in the original sample data is amplified to obtain an amplified accompaniment corresponding to the original sample data.

10. The audio synthesis method according to claim 9, characterized in that: The step of amplifying the original audio in the original sample data to obtain the amplified audio corresponding to the original sample data includes: Based on the target fundamental frequency contour, time-stretching the original audio in the original sample data to obtain stretched audio; The stretched audio is randomly resampled to obtain an amplified audio corresponding to the original sample data.

11. The audio synthesis method according to claim 9, characterized in that: The step of amplifying the sample accompaniment in the original sample data to obtain the amplified accompaniment corresponding to the original sample data includes: Extracting the melody contour of the sample accompaniment in the original sample data and marking the pitch to obtain a marked melody; The annotated melody is randomly resampled to obtain an augmented accompaniment corresponding to the original sample data.

12. The audio synthesis method according to claim 9, characterized in that: The obtaining of a plurality of sample synthesis data according to the plurality of original sample data and the enhanced sample data corresponding to each of the original sample data comprises: For any original sample data, according to the sample accompaniment and original audio in the original sample data, obtain the sample accompaniment, sample pitch feature, sample clean audio and real synthesized audio corresponding to the original sample data, so as to obtain the sample synthesized data corresponding to the original sample data; For any enhanced sample data, based on the augmented accompaniment and augmented audio in the enhanced sample data, the sample accompaniment, sample pitch feature, sample clean audio and real synthesized audio corresponding to the enhanced sample data are obtained to obtain the sample synthesized data corresponding to the enhanced sample data.

13. The audio synthesis method according to claim 7, characterized in that: Before respectively processing a plurality of original sample data to obtain a plurality of sample synthetic data, the method further includes: Delete silent frames and continuous silent frames in the multiple original sample data, the silent frames are audio frames whose volume value is less than the first volume value, and the continuous silent frames are multiple continuous audio frames whose continuous duration is greater than the preset duration and whose volume values ​​are all less than the second volume value.

14. An audio synthesis device, characterized in that: include: A first acquisition module is configured to acquire original synthesized data of the audio to be processed, wherein the original synthesized data includes a target accompaniment, a target pitch feature, and a target clean audio, wherein the target pitch feature and the target clean audio are obtained based on the audio to be processed; A first acquisition module is configured to process the original synthesis data through a target synthesis model to obtain a target synthesis audio, wherein the target synthesis model is obtained by training a basic synthesis model based on a plurality of sample synthesis data, wherein the sample synthesis data includes a sample accompaniment, a sample pitch feature, a sample clean audio, and a real synthesis audio; The basic synthesis model includes a feature modeling network, a timbre preservation network and a decoding network, the feature modeling network includes a first encoding network, a second encoding network, a fusion network, a time modeling network and a local information modeling network, and the audio synthesis device also includes: An acquisition submodule is configured to acquire, for each round of training, a plurality of sample synthetic data corresponding to the round of training; A first extraction subunit is configured to extract features from the frequency domain information of the sample accompaniment through the first encoding network to obtain a first feature; A second extraction subunit is configured to extract features from the time domain information of the sample clean audio through the second encoding network to obtain a second feature; a fusion subunit, configured to fuse the first feature and the second feature through the fusion network to obtain a fusion feature; A first modeling subunit is configured to perform global time dimension modeling on the fusion feature through the time modeling network to obtain a basic modeling feature; A second modeling subunit is configured to perform local information modeling on the basic modeling features through the local information modeling network to obtain target modeling features; A third obtaining unit is configured to process the target modeling feature and the sample pitch feature through the timbre preservation network to obtain a timbre fusion feature; A fourth obtaining unit is configured to decode the timbre fusion feature through the decoding network to obtain a predicted synthesized audio corresponding to the sample synthesized data; A fourth acquisition module is configured to acquire, after each round of training, the predicted synthesized audio corresponding to the current round of training; A third obtaining module is configured to obtain the prediction loss corresponding to the current round of training according to the predicted synthetic audio and the real synthetic audio in the sample synthetic data corresponding to the current round of training; An optimization module, configured to optimize the basic synthesis model according to the prediction loss corresponding to the current round of training; The fourth acquisition module is configured to stop training and obtain the target synthesis model when the basic synthesis model meets the stopping condition.

15. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the steps of the audio synthesis method described in any one of claims 1 to 13 when executed.

16. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the audio synthesis method described in any one of claims 1 to 13 are implemented.

17. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the steps of the audio synthesis method described in any one of claims 1 to 13.