A voice cloning method, device, equipment and storage medium

By introducing a conditional normalization layer and neural network noise reduction technology into the basic acoustic model, the adaptive acoustic model of the target object can be trained quickly, solving the problems of long training time and audio quality degradation in existing technologies, and achieving efficient and high-quality speech cloning.

CN116206592BActive Publication Date: 2026-11-20AISPEECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310066406.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-17
Publication Date
2026-11-20
Estimated Expiration
2043-01-17

AI Technical Summary

Technical Problem

Existing speech cloning technology requires a large number of model parameter updates during model training, which leads to a decrease in the quality and naturalness of synthesized audio, and the training time is too long, affecting the user experience.

Method used

An adaptive acoustic model is adopted. By introducing a conditional normalization layer into the basic acoustic model, only the conditional normalization layer parameters of the decoder are updated. Combined with neural network noise reduction technology, the adaptive acoustic model of the target object is quickly trained, and the audio data of the target object is synthesized using a vocoder.

Benefits of technology

It significantly reduces the model training time for speech cloning, improves the speed and audio quality of speech cloning, enhances the user experience, and does not affect the naturalness of the synthesized audio.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116206592B_ABST
    Figure CN116206592B_ABST
Patent Text Reader

Abstract

The application provides a voice cloning method, device and equipment and a storage medium. The method comprises the following steps: receiving a text to be synthesized; converting the text to be synthesized into a phoneme sequence to be synthesized; inputting the phoneme sequence to be synthesized into an adaptive acoustic model, and converting the phoneme sequence to be synthesized into acoustic features to be synthesized of a target object by using the adaptive acoustic model; wherein the adaptive acoustic model is obtained by adaptively training a basic acoustic model based on target voice sample data of the target object, and the parameters of a conditional normalization layer of a decoder in the basic acoustic model are updated when the basic acoustic model is adaptively trained; and the acoustic features to be synthesized are synthesized into audio data to be synthesized of the target object by using a vocoder. The application reduces the training time of the adaptive model during voice cloning, and improves the efficiency and quality of voice cloning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to a voice cloning method, apparatus, device, and storage medium. Background Technology

[0002] With the advancement of technology, intelligent voice technology is also constantly developing, such as voice cloning technology. Voice cloning refers to using smart devices to synthesize audio data of a specified person's voice into specified content. For example, a smart speaker at home can play the owner's voice.

[0003] Traditional speech cloning techniques require extracting the target speaker's acoustic and voiceprint features from recorded audio in a real-world setting, training a model, and finally decoding the target speaker's acoustic features using a vocoder to obtain the cloned speech. However, model training requires updating a large number of model parameters, resulting in lengthy training times and a decrease in the quality and naturalness of the synthesized audio. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a voice cloning method, apparatus, device, and storage medium to eliminate or improve one or more defects existing in the prior art.

[0005] One aspect of the present invention provides a voice cloning method, the method comprising the following steps:

[0006] Receive the text to be synthesized;

[0007] Convert the text to be synthesized into a sequence of phonemes to be synthesized;

[0008] The phoneme sequence to be synthesized is input into an adaptive acoustic model, which is then used to convert the phoneme sequence into acoustic features of the target object. The adaptive acoustic model is obtained by adaptively training a basic acoustic model based on the target speech sample data of the target object. During the adaptive training of the basic acoustic model, the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated.

[0009] A vocoder is used to synthesize the acoustic features to be synthesized into target synthesized audio data of the target object.

[0010] In some embodiments of the present invention, the training method of the adaptive acoustic model includes:

[0011] Collect target speech sample data of the target object;

[0012] Convert the target speech sample data into target text;

[0013] Extract the target speaker vector and target acoustic features from the target speech sample data;

[0014] The target text is converted into a target phoneme sequence, and the target speech sample data and the target text are aligned to obtain a target duration sequence;

[0015] The basic acoustic model is adaptively trained based on the target phoneme sequence, the target duration sequence, the target acoustic features, and the target voiceprint vector, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated until the preset requirements are met.

[0016] In some embodiments of the present invention, the method further includes:

[0017] When adaptively training the basic acoustic model based on the target speech sample data of the target object, a neural network algorithm is used to denoise the target speech sample data, and the denoised target speech sample data is used to adaptively train the basic acoustic model to obtain the adaptive acoustic model.

[0018] In some embodiments of the present invention, the method further includes:

[0019] A noise reduction model is used to perform secondary noise reduction on the target synthesized audio data to obtain and output the noise-reduced target synthesized audio data.

[0020] In some embodiments of the present invention, the method further includes:

[0021] The sampling frequency of the target speech sample data is the same as the sampling frequency of the training data of the basic acoustic model.

[0022] In some embodiments of the present invention, the basic acoustic model further includes a reference encoder, which is used to learn the patterns of acoustic features in the audio data.

[0023] Another aspect of the present invention provides a voice cloning device, the device comprising:

[0024] The text receiving module is used to receive the text to be synthesized.

[0025] A phoneme conversion module is used to convert the text to be synthesized into a sequence of phonemes to be synthesized;

[0026] An acoustic feature prediction module is used to input the phoneme sequence to be synthesized into an adaptive acoustic model, and use the adaptive acoustic model to convert the phoneme sequence to be synthesized into acoustic features to be synthesized for the target object; wherein, the adaptive acoustic model is obtained by adaptively training a basic acoustic model based on the target speech sample data of the target object, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated during adaptive training of the basic acoustic model;

[0027] The speech synthesis module is used to synthesize the target synthesized audio data of the target object by using a vocoder to synthesize the acoustic features to be synthesized.

[0028] In some embodiments of the present invention, the apparatus further includes a model training module for training the adaptive acoustic model using the following method:

[0029] Collect target speech sample data of the target object;

[0030] Convert the target speech sample data into target text;

[0031] Extract the target speaker vector and target acoustic features from the target speech sample data;

[0032] The target text is converted into a target phoneme sequence, and the target speech sample data and the target text are aligned to obtain a target duration sequence;

[0033] The basic acoustic model is adaptively trained based on the target phoneme sequence, the target duration sequence, the target acoustic features, and the target voiceprint vector, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated until the preset requirements are met.

[0034] Another aspect of the present invention provides a voice cloning device, including a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the above-described voice cloning method.

[0035] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described voice cloning method.

[0036] This invention provides a speech cloning method, apparatus, device, and storage medium that requires only a small amount of audio data from the target object to train an adaptive acoustic model based on a fundamental acoustic model. The adaptive acoustic model can then be used to convert specified content into acoustic features of the target object, and a vocoder can be used to clone the target object's audio data. During adaptive training of the acoustic model, by introducing a conditional normalization layer into the decoder, the time required for adaptive training can be reduced without sacrificing the naturalness of the synthesized audio. This reduces the training time of the adaptive model during speech cloning, improves the speed of speech cloning, and ensures the audio quality of the cloned speech.

[0037] Additional advantages, objects, and features of the invention will be set forth in part in the description which follows, and will also become apparent in part to those skilled in the art upon studying the description, or may be learned by practice of the invention. The objects and other advantages of the invention can be realized and obtained by means of the structures specifically pointed out in the description and drawings.

[0038] Those skilled in the art will understand that the objectives and advantages achievable with the present invention are not limited to those specifically described above, and that the above and other objectives achievable with the present invention will become clearer from the following detailed description. Attached Figure Description

[0039] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, are not intended to limit the scope of the invention. The components in the drawings are not drawn to scale but are merely illustrative of the principles of the invention. For ease of illustration and description of certain parts of the invention, corresponding portions in the drawings may be enlarged, i.e., may appear larger relative to other components in an exemplary device actually manufactured according to the invention. In the drawings:

[0040] Figure 1 This is a schematic flowchart of a voice cloning method provided in one embodiment of this specification;

[0041] Figure 2 This is a schematic diagram of the training process of a basic acoustic model in one embodiment of this specification;

[0042] Figure 3 This is a flowchart illustrating the voice cloning process in another embodiment of this specification;

[0043] Figure 4 This is a schematic diagram of the module structure of one embodiment of the voice cloning device provided in this specification;

[0044] Figure 5 This is a hardware structure block diagram of a voice cloning server in one embodiment of this specification. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the embodiments and accompanying drawings. Here, the illustrative embodiments and descriptions of this invention are used to explain the invention, but are not intended to limit the invention.

[0046] It should also be noted that, in order to avoid obscuring the invention with unnecessary details, only the structures and / or processing steps closely related to the solution according to the invention are shown in the accompanying drawings, while other details that are not closely related to the invention are omitted.

[0047] It should be emphasized that the term "including / comprises" as used herein refers to the presence of a feature, element, step, or component, but does not exclude the presence or addition of one or more other features, elements, steps, or components.

[0048] It should also be noted that, unless otherwise specified, the term "connection" in this article can refer not only to a direct connection, but also to an indirect connection involving an intermediary.

[0049] In the following description, embodiments of the invention will be illustrated with reference to the accompanying drawings. In the drawings, the same reference numerals represent the same or similar parts, or the same or similar steps.

[0050] Typical speech cloning technology is based on speech synthesis models, consisting of an acoustic model and a vocoder. First, a basic acoustic model is trained on data from multiple speakers. Then, acoustic and voiceprint features of the target speaker are extracted using recorded audio from a real-world scenario. Adaptive training (updating numerous network model parameters) is performed on the basic acoustic model, and the corresponding acoustic features of the text to be cloned are inferred from the adaptive acoustic model. Finally, the vocoder decodes the target speaker's acoustic features to obtain the cloned speech. Speech cloning technology can synthesize the voice of a target speaker; for example, it can be applied to the dubbing industry to quickly synthesize the voice of a target voice actor, reducing dubbing costs and time. Of course, speech cloning technology can also be applied to other scenarios according to actual needs; the embodiments in this specification do not specifically limit its application.

[0051] However, in real-world applications of speech cloning technology, achieving good cloning results often requires specific recordings of the target speaker, such as a large number of recordings, a high signal-to-noise ratio, and lengthy adaptive training on the base model, involving numerous parameter updates to the acoustic model. These limitations significantly reduce the user experience. To improve the naturalness and expressiveness of synthesized audio, the base acoustic model is often derived from high-quality speech synthesis data and complex network structures. In real-world speech cloning applications, the sound quality of the cloned audio and the duration of adaptive training remain long-standing challenges in this field. To address the lengthy adaptive training, practitioners often reduce the adaptive time of the base acoustic model, but this also directly reduces the naturalness of the cloned audio.

[0052] This specification provides a speech cloning method that pre-trains an adaptive acoustic model of the target object based on a basic acoustic model. A conditional normalization layer is added to the basic acoustic model. During training the adaptive acoustic model, only the parameters of the conditional normalization layer in the decoder of the basic acoustic model need to be updated. During speech cloning, the trained adaptive acoustic model is used to synthesize the audio data of the target object's pronunciation from the text to be synthesized. The entire process only requires updating a small number of specified model parameters to quickly and accurately synthesize the specified text into the audio of the target object, significantly reducing the model training time for speech cloning and thus improving the efficiency of speech cloning. Simultaneously, it does not affect the quality of the cloned audio, enhancing the user experience.

[0053] Figure 1 This is a schematic flowchart of a voice cloning method provided in one embodiment of this specification, as shown below. Figure 1 As shown in this specification, in one embodiment of the voice cloning method, the method can be applied to terminal devices such as computers, tablets, servers, smartphones, and smart wearable devices. The method may include the following steps:

[0054] Step 102: Receive the text to be synthesized.

[0055] In its implementation, voice cloning technology refers to using smart devices to synthesize audio data of a target object's pronunciation from specified content. The text to be synthesized can be understood as the audio content to be cloned as the target object; it can be text, images, or speech. Speech recognition converts the speech into the corresponding text. For example, if user A wants to use a smart device to synthesize the text "The weather is nice today" into audio of user B's pronunciation, the text "The weather is nice today" can be understood as the text to be synthesized. Of course, the text to be synthesized can be in different languages, such as Chinese or English, depending on the actual needs. This specification does not impose specific limitations on the embodiments.

[0056] Step 104: Convert the text to be synthesized into a sequence of phonemes to be synthesized.

[0057] In the specific implementation process, after receiving the text to be synthesized, phoneme conversion can be performed. The phoneme sequence in the embodiments of this specification can be understood as a combination of the smallest speech units. The text to be synthesized can be converted into the corresponding phoneme sequence to be synthesized using front-end devices such as TTS software (text-to-speech software).

[0058] Step 106: Input the phoneme sequence to be synthesized into the adaptive acoustic model, and use the adaptive acoustic model to convert the phoneme sequence to be synthesized into the acoustic features to be synthesized of the target object; wherein, the adaptive acoustic model is obtained by adaptively training the basic acoustic model based on the target speech sample data of the target object, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated during the adaptive training of the basic acoustic model.

[0059] In the specific implementation process, the target object can be understood as the object whose sound is to be cloned. For example, a user wants to use a voice cloning device to synthesize the audio of user B's speech, and user B can be called the target object. An adaptive acoustic model can be pre-trained using target speech sample data of the target object. When it is necessary to clone the audio data of the target object, the corresponding text to be synthesized is converted into a sequence of phonemes to be synthesized and input into the adaptive acoustic model, so that the audio data of the target object can be synthesized. Referring to the description of the above embodiments, the adaptive acoustic model can be obtained by adaptive training based on the basic acoustic model. The basic acoustic model can be an acoustic model trained using a large amount of speech sample data. The basic acoustic model can learn the sound features of different objects and then synthesize the acoustic features of the specified object by specifying the content. The basic acoustic model can be an autoregressive speech synthesis model such as Tactotron2, TransformerTTS, Deep Voice 3, or a non-autoregressive speech synthesis model such as FastSpeech, FastSpeech2, depending on actual needs. This description and embodiment do not make specific limitations.

[0060] In some embodiments of this specification, the basic acoustic model can be FastSpeech2, with a Conditional Layer Normalization (CLN) layer added. When cloning a target object, such as the voice of a user, is required, audio data of the target object, i.e., target speech sample data, can be collected. The target speech sample data is then used to adaptively train the basic acoustic model. Furthermore, during adaptive training, only the parameters of the conditional normalization layer in the decoder of the basic acoustic model need to be updated to obtain the adaptive acoustic model. By setting the conditional normalization layer, the number of model parameter updates can be controlled during the training process of the adaptive acoustic model, reducing the training time of the speech cloning model, improving the training efficiency of the speech cloning model, and facilitating better deployment in later stages.

[0061] Figure 2 This is a schematic diagram of the training process of the basic acoustic model in one embodiment of this specification, as shown below. Figure 2 As shown in the embodiments of this specification, the basic acoustic model may also include a reference encoder. The reference encoder can be used to model the acoustic features extracted from the audio data, learn the rules of the acoustic features, and thus enable the basic acoustic model to extract the user's pronunciation characteristics, such as stress, pauses, and language style, thereby improving the prosody and emotional effect of the final synthesized speech, making the cloned speech more similar to the situation of a real person speaking.

[0062] like Figure 2 As shown, the training process of the basic acoustic model may include:

[0063] Collect sample training audio data, and extract the training voiceprint vector and training acoustic features from the sample training audio data;

[0064] Convert the sample training audio data into training text;

[0065] The training text is converted into a training phoneme sequence, and the sample training audio data is aligned with the training text to obtain a training duration sequence.

[0066] The model parameters of the basic acoustic model are set, wherein the basic acoustic model includes an encoder, a duration predictor, and a reference encoder, and the decoder includes a conditional normalization layer.

[0067] The training phoneme sequence is input into the encoder, the training duration sequence is input into the duration predictor, and the training acoustic features are input into the reference encoder;

[0068] The outputs of the encoder, the duration predictor, and the reference encoder, along with the voiceprint vector, are input into the decoder to train the basic acoustic model.

[0069] like Figure 2 As shown, a basic acoustic model can be understood as an intelligent learning model that takes audio and text data as input and outputs predicted acoustic features. Sample training audio data and corresponding training text can be pre-collected from an audio sample database for training the basic acoustic model. Feature extraction is performed on the sample training audio data and training text, and the extracted features are used to train the basic acoustic model. The specific process is as follows:

[0070] Step 1: Feature extraction from audio and text. First, a pre-trained voiceprint recognition model can be used to extract a 256-dimensional voiceprint vector (x-vector) from the audio (i.e., the sample training audio data), and acoustic features (320-dimensional mel-spectrum) can be further extracted from the audio. Second, the recorded text (i.e., the training text corresponding to the sample training audio data) is converted into the corresponding phoneme sequence. Finally, the audio and text are aligned using a pre-trained MFA (Montreal Forced Aligner) model to obtain a duration sequence.

[0071] Step 2: The phoneme sequence is passed through the encoder, the duration sequence is passed through the duration predictor, the Mel spectrum is passed through the reference encoder, and finally the outputs of the above parts and the voiceprint vector are sent to the decoder containing the conditional normalization layer to predict the corresponding acoustic features.

[0072] Step 3: Calculate the MSE loss between the decoder output and the real Mel spectrum to learn the distribution and patterns of the training sample data.

[0073] After training a large amount of training data to obtain a basic acoustic model, the basic acoustic model can be saved. When it is necessary to clone the voice of a specified object, the corresponding audio data can be collected to adaptively train the basic acoustic model, and an adaptive acoustic model that can clone the voice of the specified object can be quickly obtained.

[0074] In some embodiments of this specification, the training method for the adaptive acoustic model includes:

[0075] Collect target speech sample data of the target object;

[0076] Convert the target speech sample data into target text;

[0077] Extract the target speaker vector and target acoustic features from the target speech sample data;

[0078] The target text is converted into a target phoneme sequence, and the target speech sample data and the target text are aligned to obtain a target duration sequence;

[0079] The basic acoustic model is adaptively trained based on the target phoneme sequence, the target duration sequence, the target acoustic features, and the target voiceprint vector, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated until the preset requirements are met.

[0080] In the specific implementation process Figure 3 This is a flowchart illustrating the voice cloning process in another embodiment of this specification, such as... Figure 3 As shown, the target speaker is the target object. Audio data recorded by the target object can be collected, which is the target speech sample data. Generally, the target speech sample data does not require a large number of samples like the training of the basic acoustic model. The target speech sample data can be a small amount of audio data, such as 10 recordings. Only a small amount of audio data of the target object is needed to train an adaptive acoustic model that can clone the sound features of the target object.

[0081] Furthermore, in some embodiments of this specification, when collecting target speech sample data of the target object, the sampling frequency of the target speech sample data is the same as the sampling frequency of the training data of the basic acoustic model. The basic acoustic model is obtained by training on a large amount of training data. By collecting the audio of the target object at the same sampling frequency, the basic acoustic model can quickly and accurately learn the sound features of the target object, thereby improving the audio quality of the speech clone.

[0082] After collecting target speech sample data of the target object, ASR (Automatic Speech Recognition) can be performed on the target speech sample data to convert it into target text. Then, feature extraction is performed on the target speech sample data and target text, such as extracting the target speaker vector and target acoustic features from the target speech sample data, converting the target text into a target phoneme sequence, and aligning the target speech sample data and target text to obtain the target duration sequence. The feature extraction process can be referred to the above. Figure 2 The process of feature extraction in the basic acoustic model will not be elaborated here.

[0083] like Figure 3As shown, after feature extraction is completed, the basic acoustic model is adaptively trained based on the extracted target voiceprint vector, target acoustic features, target duration sequence, and target phoneme sequence. Only the parameters of the CLN layer in the decoder are updated on the basic acoustic model until the preset requirements are met, such as updating 500 steps, to obtain the adaptive acoustic model of the target speaker.

[0084] When adapting the acoustic model of the target object, the conditional normalization layer in the decoder is updated, achieving updates to only 70k parameters. Experiments show that faster and better replication results can be obtained within 500 adaptive steps. Table 1 is a reference from one embodiment of this specification. Figure 3 The process involved collecting a test set of 10 people (10 voice recordings per person) for relevant tests. Table 1 shows the relevant data on cloning time, naturalness, and similarity. The similarity and naturalness of the cloned voices were scored out of 5. As shown in Table 1, this embodiment of the specification starts by training an adaptive bioacoustic model of the target object. The entire voice cloning process takes only 6.2 minutes, and the similarity and naturalness of the voices are also quite good.

[0085] Table 1

[0086] Time required for voice cloning process Cloned speech naturalness Cloned speech similarity 6.2 minutes 3.92 3.87

[0087] The embodiments in this specification demonstrate that, based on a basic acoustic model, only a small amount of audio data of the target object is needed to quickly train an adaptive acoustic model capable of synthesizing the acoustic features of the target object. Furthermore, only a small number of parameters need to be updated during the adaptation process, which greatly reduces the training time of the adaptive model in speech cloning, improves the training speed of the model in speech cloning, and allows for the rapid acquisition of adaptive acoustic models for different target objects, laying the foundation for the popularization of speech cloning technology.

[0088] Step 108: Use a vocoder to synthesize the acoustic features to be synthesized into target synthesized audio data of the target object.

[0089] In the specific implementation process, after training an adaptive acoustic model using the audio data of the target object, the adaptive acoustic model can be used by specifying the sound of the target object. The adaptive acoustic model can then convert the text to be synthesized into the acoustic features of the target object. After converting the text to be synthesized into the acoustic features of the target object using the adaptive acoustic model, a vocoder can be used to synthesize the acoustic features into target synthesized audio data representing the pronunciation of the target object.

[0090] For example, if user A wants their home smart device to clone and synthesize user B's voice, they can pre-collect user B's audio data and, referring to the description in the above embodiment, adaptively train the basic acoustic model to obtain user B's adaptive acoustic model. Loading the trained adaptive acoustic model into the smart device, user A can input what they want the smart device to output, such as "Happy Birthday." The adaptive acoustic model in the smart device can convert "Happy Birthday" into user B's acoustic features, and then use a vocoder to synthesize the corresponding audio data from the acoustic features output by the adaptive acoustic model. The sound of this audio data is user B's voice.

[0091] Furthermore, after training and obtaining the adaptive acoustic model of the target object, if it is necessary to clone the audio data of the target object, the trained adaptive acoustic model of the target object can be used directly to predict the acoustic features of the synthesized phoneme sequence, without the need to repeatedly train the adaptive acoustic model of the target object.

[0092] The speech cloning method provided in this specification only requires collecting a small amount of audio data from the target object to train an adaptive acoustic model for the target object based on a basic acoustic model. The adaptive acoustic model can then be used to convert specified content into acoustic features of the target object, and a vocoder can then be used to clone the target object's audio data. During adaptive training of the basic acoustic model, by introducing a conditional normalization layer into the decoder of the acoustic model, the time required for adaptive training can be reduced without sacrificing the naturalness of the synthesized audio. This reduces the training time of the adaptive model during speech cloning, improves the speed of speech cloning, and ensures the audio quality of the cloned speech.

[0093] like Figure 3 As shown, in some embodiments of this specification, the method further includes:

[0094] When adaptively training the basic acoustic model based on the target speech sample data of the target object, a neural network algorithm is used to denoise the target speech sample data, and the denoised target speech sample data is used to adaptively train the basic acoustic model to obtain the adaptive acoustic model.

[0095] In practical implementation, during adaptive training of the basic acoustic model, after collecting target speech sample data of the target object, neural network algorithms such as RNN (Recurrent Neural Network) can be used to denoise the target speech sample data. Then, feature extraction is performed on the denoised target speech sample data. The extracted features are then used to adaptively train the basic acoustic model to obtain an adaptive acoustic model. Generally, in real-world scenarios, the target speaker's audio contains a certain amount of noise, and the signal-to-noise ratio of the target object's recorded audio is low. During adaptive training of the basic acoustic model, a large number of model parameters need to be updated, which can lead to a decrease in the quality and naturalness of the synthesized audio.

[0096] The embodiments in this specification improve the quality of audio data of the target object by using neural network noise reduction before training the adaptive acoustic model. This eliminates the need for excessively high requirements on the environment and quality when recording audio data of the target object, reduces the difficulty and requirements of sample collection, and improves the quality of speech cloning.

[0097] In addition, such as Figure 3 As shown, in some embodiments of this specification, the method further includes:

[0098] A noise reduction model is used to perform secondary noise reduction on the target synthesized audio data to obtain and output the noise-reduced target synthesized audio data.

[0099] In the specific implementation process, after synthesizing the corresponding audio data from the acoustic features output by the adaptive acoustic model, a denoising model such as Speex DSP can be used to denoise the synthesized audio data, obtaining and outputting the denoised target synthesized audio data. Speex DSP can be used for additional functions such as echo suppression and noise cancellation. Experiments have shown that further denoising the final synthesized audio improves its sound quality.

[0100] The embodiments in this specification improve the sound quality of the cloned audio by performing noise reduction twice on the audio data of the target object and the audio data generated by cloning, and by applying specific noise reduction methods to the recorded audio and the cloned audio respectively.

[0101] like Figure 3 As shown in the embodiments of this specification, the speech cloning method uses 10 audio sentences recorded by the target speaker in a real-world scenario. Based on the already trained basic acoustic model, the specified network layer is updated, thereby shortening the model's adaptation time. In addition, two different noise reduction processes are performed to ensure the sound quality and naturalness of the cloned audio.

[0102] First, in real-world usage scenarios, users are in various environments, and some users' recordings inevitably contain noise, which will certainly affect the quality of the final synthesized audio to some extent. The embodiments in this specification mainly perform the following operations during preprocessing: sampling rate conversion, loudness normalization, and noise reduction. The sampling rate of the user's recording must be consistent with the sampling rate of the training data of the basic acoustic model. Intensity normalization can be processed using the audio tool SOX, and noise reduction uses neural network-based noise reduction.

[0103] Secondly, feature extraction. This step mainly includes speech-to-text conversion, text-to-phoneme sequence conversion, alignment operation: MFA alignment, speaker vector extraction, and acoustic feature extraction. First, the user records 10 fluent audio sentences using a mobile phone in a quiet environment, and uses an ASR tool to transcribe the speech into corresponding text. Second, a Chinese dictionary is used to convert the recognized text into corresponding phoneme sequences. Then, the MFA alignment tool is used to align the phoneme sequences with the corresponding audio segments in terms of duration, resulting in the pronunciation duration corresponding to each phoneme. Third, a pre-trained speaker recognition model is used to extract speaker information from the audio, outputting a 256-dimensional vector (x-vector). Finally, acoustic features are extracted from the audio, using a 320-dimensional Mel spectrum.

[0104] Finally, adaptive training of the model. The embodiments in this specification are improvements on Fastspeech2. The main changes are the addition of a conditional normalization layer and a reference encoder. The conditional normalization layer is used to control the number of model parameter updates during the adaptive process and to facilitate better deployment later. The reference encoder is used to extract the user's pronunciation characteristics from the user's recording.

[0105] The speech cloning method provided in this specification, through an improved acoustic model, only requires updating the specified parameters in the acoustic model during adaptive learning of speech cloning, which can achieve faster and better replication results, thus improving the speed and effect of speech cloning. Furthermore, the use of neural network noise reduction before adaptation and the use of SpeedXSP for noise reduction after audio synthesis can improve the sound quality of the synthesized audio from speech cloning.

[0106] The various embodiments of the methods described in this specification are presented in a progressive manner. Similar or identical parts between the embodiments can be referred to interchangeably. Each embodiment focuses on highlighting the differences from other embodiments. Relevant details can be found in the descriptions of the method embodiments.

[0107] Based on the voice cloning method described above, one or more embodiments of this specification also provide a voice cloning apparatus. The apparatus may include devices (including distributed systems), software (applications), modules, components, servers, clients, etc., using the methods described in the embodiments of this specification, combined with necessary hardware implementations. Based on the same innovative concept, the apparatuses in one or more embodiments provided in this specification are as described in the following embodiments. Since the implementation schemes and methods for solving the problem are similar, the implementation of specific apparatuses in the embodiments of this specification can refer to the implementation of the foregoing methods, and repeated details will not be elaborated further. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the apparatuses described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.

[0108] Specifically, Figure 4 This is a schematic diagram of the module structure of one embodiment of the voice cloning device provided in this specification, as shown below. Figure 4 As shown, the apparatus provided in this specification may include:

[0109] Text receiving module 41 is used to receive the text to be synthesized;

[0110] Phoneme conversion module 42 is used to convert the text to be synthesized into a phoneme sequence to be synthesized;

[0111] The acoustic feature prediction module 43 is used to input the phoneme sequence to be synthesized into an adaptive acoustic model, and use the adaptive acoustic model to convert the phoneme sequence to be synthesized into acoustic features to be synthesized for the target object; wherein, the adaptive acoustic model is obtained by adaptively training a basic acoustic model based on the target speech sample data of the target object, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated during the adaptive training of the basic acoustic model;

[0112] The speech synthesis module 44 is used to synthesize the target synthesized audio data of the target object by using a vocoder to synthesize the acoustic features to be synthesized.

[0113] In some embodiments of this specification, the apparatus further includes a model training module for training the adaptive acoustic model using the following method:

[0114] Collect target speech sample data of the target object;

[0115] Convert the target speech sample data into target text;

[0116] Extract the target speaker vector and target acoustic features from the target speech sample data;

[0117] The target text is converted into a target phoneme sequence, and the target speech sample data and the target text are aligned to obtain a target duration sequence;

[0118] The basic acoustic model is adaptively trained based on the target phoneme sequence, the target duration sequence, the target acoustic features, and the target voiceprint vector, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated until the preset requirements are met.

[0119] The speech cloning device provided in this specification only requires collecting a small amount of audio data from the target object to train an adaptive acoustic model for the target object based on a basic acoustic model. The adaptive acoustic model can then be used to convert specified content into acoustic features of the target object, and a vocoder can then be used to clone the target object's audio data. During adaptive learning of the basic acoustic model, by introducing a conditional normalization layer into the decoder of the acoustic model, the time required for adaptive training can be reduced without sacrificing the naturalness of the synthesized audio. This reduces the training time of the adaptive model during speech cloning, improves the speed of speech cloning, and ensures the audio quality of the cloned speech.

[0120] In some embodiments of this specification, a speech synthesis device is also provided, including a processor and a memory. The memory stores computer instructions, and the processor executes the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the speech cloning method described in the above embodiments, such as:

[0121] Receive the text to be synthesized;

[0122] Convert the text to be synthesized into a sequence of phonemes to be synthesized;

[0123] The phoneme sequence to be synthesized is input into an adaptive acoustic model, which is then used to convert the phoneme sequence into acoustic features of the target object. The adaptive acoustic model is obtained by adaptively training a basic acoustic model based on the target speech sample data of the target object. During the adaptive training of the basic acoustic model, the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated.

[0124] A vocoder is used to synthesize the acoustic features to be synthesized into target synthesized audio data of the target object.

[0125] It should be noted that the apparatus and equipment described above, based on the method embodiments, may also include other implementation methods. Specific implementation methods can be found in the descriptions of the relevant method embodiments, and will not be elaborated upon here.

[0126] The methods and embodiments provided in this specification can be executed on mobile terminals, computer terminals, servers, or similar computing devices. Taking execution on a server as an example... Figure 5 This is a hardware structure block diagram of a voice cloning server in one embodiment of this specification. The computer terminal can be the voice cloning server or voice cloning device described in the above embodiments. Figure 5 The server 10 shown may include one or more (only one is shown in the figure) processors 100 (processors 100 may include, but are not limited to, microprocessors MCUs or programmable logic devices FPGAs), non-volatile memory 200 for storing data, and a transmission module 300 for communication functions. Those skilled in the art will understand that... Figure 5 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 10 may also include components that are more... Figure 5 The components shown may include more or fewer components, and may also include other processing hardware such as databases or multi-level caches, GPUs, or components with similar capabilities. Figure 5 The different configurations shown.

[0127] The non-volatile memory 200 can be used to store software programs and modules of application software, such as the program instructions / modules corresponding to the voice cloning method in the embodiments of this specification. The processor 100 executes various functional applications and resource data updates by running the software programs and modules stored in the non-volatile memory 200. The non-volatile memory 200 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the non-volatile memory 200 may further include memory remotely located relative to the processor 100, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0128] The transmission module 300 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the computer terminal's communication provider. In one example, the transmission module 300 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission module 300 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0129] Corresponding to the above method, the present invention also provides an apparatus comprising a computer device including a processor and a memory, the memory storing computer instructions, the processor executing the computer instructions stored in the memory, and the apparatus performing the steps of the method as described above when the computer instructions are executed by the processor.

[0130] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the aforementioned edge computing server deployment method. The computer-readable storage medium can be a tangible storage medium, such as random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, floppy disks, hard disks, removable storage disks, CD-ROMs, or any other form of storage medium known in the art.

[0131] Those skilled in the art will understand that the exemplary components, systems, and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software, or a combination of both. Whether implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention. When implemented in hardware, it can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the desired tasks. The programs or code segments can be stored in a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave.

[0132] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0133] In this invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or in place of features of other embodiments.

[0134] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and variations of the embodiments of the present invention are possible. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A voice cloning method, characterized in that, The method includes: Receive the text to be synthesized; Convert the text to be synthesized into a sequence of phonemes to be synthesized; The phoneme sequence to be synthesized is input into an adaptive acoustic model, which is then used to convert the phoneme sequence into acoustic features of the target object. The adaptive acoustic model is obtained by adaptively training a basic acoustic model based on the target speech sample data of the target object. During the adaptive training of the basic acoustic model, the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated. The basic acoustic model is trained using the following method: Collecting sample training audio data; extracting training voiceprint vectors and training acoustic features from the sample training audio data; converting the sample training audio data into training text; converting the training text into a training phoneme sequence; aligning the sample training audio data with the training text to obtain a training duration sequence; setting the model parameters of the basic acoustic model, wherein the basic acoustic model includes an encoder, a duration predictor, and a reference encoder, and the decoder includes a conditional normalization layer; inputting the training phoneme sequence into the encoder, the training duration sequence into the duration predictor, and the training acoustic features into the reference encoder; inputting the outputs of the encoder, the duration predictor, and the reference encoder, along with the training voiceprint vector, into the decoder to train the basic acoustic model; wherein the training voiceprint vector is obtained by extracting voiceprint features from the sample training audio data using a pre-trained voiceprint recognition model. The training method for the adaptive acoustic model includes: collecting target speech sample data of the target object; converting the target speech sample data into target text; extracting the target voiceprint vector and target acoustic features from the target speech sample data; converting the target text into a target phoneme sequence, and aligning the target speech sample data and the target text to obtain a target duration sequence; adaptively training the basic acoustic model based on the target phoneme sequence, the target duration sequence, the target acoustic features, and the target voiceprint vector, updating the parameters of the conditional normalization layer of the decoder in the basic acoustic model until a preset requirement is met; wherein, the target voiceprint vector is obtained by extracting voiceprint features from the target speech sample data using a pre-trained voiceprint recognition model; during the adaptive training of the basic acoustic model, only the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated; A vocoder is used to synthesize the acoustic features to be synthesized into target synthesized audio data of the target object.

2. The method according to claim 1, characterized in that, The method further includes: When adaptively training the basic acoustic model based on the target speech sample data of the target object, a neural network algorithm is used to denoise the target speech sample data, and the denoised target speech sample data is used to adaptively train the basic acoustic model to obtain the adaptive acoustic model.

3. The method according to claim 2, characterized in that, The method further includes: A noise reduction model is used to perform secondary noise reduction on the target synthesized audio data to obtain and output the noise-reduced target synthesized audio data.

4. The method according to claim 1, characterized in that, The method further includes: The sampling frequency of the target speech sample data is the same as the sampling frequency of the training data of the basic acoustic model.

5. The method according to claim 1, characterized in that, The basic acoustic model also includes a reference encoder, which is used to learn the patterns of acoustic features in the audio data.

6. A voice cloning device, characterized in that, The device includes: The text receiving module is used to receive the text to be synthesized. A phoneme conversion module is used to convert the text to be synthesized into a sequence of phonemes to be synthesized; An acoustic feature prediction module is used to input the phoneme sequence to be synthesized into an adaptive acoustic model, and use the adaptive acoustic model to convert the phoneme sequence to be synthesized into acoustic features to be synthesized for the target object; wherein, the adaptive acoustic model is obtained by adaptively training a basic acoustic model based on the target speech sample data of the target object, and the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated during adaptive training of the basic acoustic model; The basic acoustic model is trained using the following method: Collecting sample training audio data; extracting training voiceprint vectors and training acoustic features from the sample training audio data; converting the sample training audio data into training text; converting the training text into a training phoneme sequence; aligning the sample training audio data with the training text to obtain a training duration sequence; setting the model parameters of the basic acoustic model, wherein the basic acoustic model includes an encoder, a duration predictor, and a reference encoder, and the decoder includes a conditional normalization layer; inputting the training phoneme sequence into the encoder, the training duration sequence into the duration predictor, and the training acoustic features into the reference encoder; inputting the outputs of the encoder, the duration predictor, and the reference encoder, along with the training voiceprint vector, into the decoder to train the basic acoustic model; wherein the training voiceprint vector is obtained by extracting voiceprint features from the sample training audio data using a pre-trained voiceprint recognition model. The model training module is used to train the adaptive acoustic model using the following methods: collecting target speech sample data of the target object; converting the target speech sample data into target text; extracting the target voiceprint vector and target acoustic features from the target speech sample data; converting the target text into a target phoneme sequence, and aligning the target speech sample data and the target text to obtain a target duration sequence; adaptively training the basic acoustic model based on the target phoneme sequence, the target duration sequence, the target acoustic features, and the target voiceprint vector, updating the parameters of the conditional normalization layer of the decoder in the basic acoustic model until a preset requirement is met; wherein, the target voiceprint vector is obtained by extracting voiceprint features from the target speech sample data using a pre-trained voiceprint recognition model; during the adaptive training of the basic acoustic model, only the parameters of the conditional normalization layer of the decoder in the basic acoustic model are updated; The speech synthesis module is used to synthesize the target synthesized audio data of the target object by using a vocoder to synthesize the acoustic features to be synthesized.

7. A voice cloning device, comprising a processor and a memory, characterized in that, The memory stores computer instructions, and the processor executes the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the method as described in any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Scene classification model training method and device, electronic equipment and computer readable storage medium

    CN114863903A