Sound cloning method and system based on data generation

By combining model fine-tuning and zero-shot technology, a small amount of user voice data is used to generate more tone data, and combined to fine-tune voice synthesis model, the problems of long recording time and high deployment cost in the existing technology are solved, and high efficiency and low Cost personalized voice clones.

CN118887941APending Publication Date: 2024-11-01PACHIRA TIMES (ZHUHAI HENGQIN) INFORMATION TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411101673.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing sound cloning technology relies on a large amount of user voice data, which is long and time-consuming to record, which increases user cost and fatigue, and has high deployment costs, especially based on the zero-shot method, which is more costly.

Method used

Combining the sound cloning technology based on model fine-tuning and zero-shot, a small amount of user voice data is collected, and more tone data is generated using zero-shot to generate and merge it with real data. It is used to fine-tune the voice synthesis model, reducing recording time and deployment cost.

Benefits of technology

It significantly reduces the recording time of users, improves the sound cloning efficiency and user experience, reduces hardware resource dependence, reduces deployment costs, and improves the naturalness and quality of voice output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887941A_ABST
    Figure CN118887941A_ABST
Patent Text Reader

Abstract

The invention provides a sound cloning method and system based on data generation, and the method comprises the steps: recording and collecting a small amount of voice data of a user, and enabling the voice data to be used for capturing the basic tone characteristics of the user; obtaining annotated text data corresponding to the voice data; a small amount of user voice data and corresponding labels are used, and voice data of more user timbres are generated based on a zero-shot voice cloning system; combining the voice data really recorded by the user with the user tone voice data generated by the cloning system; using the merged voice data to finely adjust a voice synthesis model to obtain a voice synthesis model of the user tone; and deploying the voice synthesis model of the user timbre into a voice synthesis system to synthesize voice data of any content of the target timbre. According to the method, enough data can be generated for model training and fine tuning only by providing a small number of user voice samples, so that the recording time is shortened, the sound cloning efficiency is improved, the user experience is optimized, the hardware resource deployment cost is reduced, and the expandability and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of speech synthesis; in particular, to a sound cloning method and system based on data generation. Background Art

[0002] Speech synthesis is a technology that converts text information into fluent, natural-sounding speech. Speech synthesis is widely used in many fields such as voice assistants, automatic readers, and voice notification systems. Speech synthesis technology usually consists of two main parts: Text-to-Speech (TTS) and speech synthesis model. Among them, the TTS part converts text into a phoneme sequence, and the speech synthesis model generates a speech waveform based on the phoneme sequence.

[0003] In recent years, speech synthesis technology has made significant progress, from voices that sound like robots to voices that are almost indistinguishable from human speakers. This progress is due to the application of large language models (LLMs) in speech synthesis model systems, which generate voices with higher naturalness and have the ability to synthesize voices with zero-shot. These LLM-based speech synthesis models convert speech signals into token sequences and then use deep learning models based on self-attention mechanisms to train speech synthesis large language models. The speech synthesis large language model uses text as a condition to simulate these token sequences, and then uses a token vocoder to reconstruct these tokenized speech into the original waveform.

[0004] Voice cloning is a special type of speech synthesis technology that focuses on imitating the voice of a specific individual. Voice cloning is widely used in games, movie dubbing, and personalized voice assistants. Voice cloning usually requires recording individual voice data to train the model so that the model can learn the unique characteristics of the individual's voice. There are currently two ways to implement voice cloning: one is voice cloning technology based on model fine-tuning, and the other is voice cloning technology based on zero-shot.

[0005] Among them, the sound cloning technology based on model fine-tuning is a commonly used sound cloning method, such as Figure 1As shown, the method first collects the user's voice data and the corresponding annotated text, and then uses these voice data and annotated text data to fine-tune the pre-trained speech synthesis model on the cloud server. The fine-tuned model can generate voices similar to the user's timbre. However, this method requires a lot of user timbre voice data to train the model so that the model can learn and imitate the unique characteristics of the user's voice. The effect of this method depends largely on the scale and quality of the user's voice data. The more data, the better the effect. In order to obtain high-quality cloned voices, users must provide more voice samples. Since the user's voice data needs to be collected, the user often needs to spend a long time recording. Collecting a large amount of voice data will take up more time for the user, increase the user's participation cost and time cost of using the voice cloning system, and affect the user experience. In addition, the recording process is very time-consuming and cumbersome. The long recording process will also cause the user to feel tired, affecting the recording quality, and thus affecting the effect of voice cloning.

[0006] Zero-shot based sound cloning technology is a relatively new sound cloning method. Figure 2 As shown in the figure, the advantage of this method is that it does not require fine-tuning of the speech synthesis model. Instead, it directly uses the user's voice data and the corresponding annotated text as prompt words to generate a voice similar to the user's timbre. The main advantage of this method is that it reduces the time it takes for users to record. However, since this method relies on a powerful speech synthesis AI large model, high-quality voice cloning technology often requires powerful computing resources. These large AI models usually have a large number of parameters and require the deployment of GPU machines to accelerate reasoning in order to ensure latency. In addition, the operation and maintenance of GPU machines also require high costs, which increases the deployment cost.

[0007] Therefore, there is an urgent need to develop and design a more efficient and accurate voice cloning method to solve the difficulties and shortcomings of existing voice cloning technology, such as excessive dependence on the scale of user voice data, long recording time, and high deployment cost. Summary of the invention

[0008] In view of this, the purpose of the present invention is to propose a voice cloning method and system based on data generation, combining the advantages of the voice cloning technology based on model fine-tuning and the voice cloning technology based on zero-shot, collecting a small amount of user voice data and corresponding annotated text, using the zero-shot based voice cloning technology to generate more user timbre voice data, merging these user timbre voice data with the user's real recorded voice data, and using them to fine-tune the speech synthesis model, thereby achieving accurate cloning of the user's timbre, and effectively reducing the user's recording time, improving the efficiency of voice cloning and user experience, and reducing deployment costs.

[0009] The present invention provides a sound cloning method based on data generation, comprising the following steps: S1. Record and collect a small amount of user voice data to capture the user's basic timbre characteristics; and obtain annotated text data corresponding to the voice data; for example, a 3 to 6 second user recording; S2, using the small amount of user voice data recorded and collected in step S1, generating more voice data of user timbre based on the zero-shot voice cloning system; S3, merging the user voice data recorded in step S1 and the user timbre voice data generated in step S2 based on the zero-shot sound cloning system; The method for merging the recorded voice data with the user timbre voice data generated based on zero-shot is to take the union of the two, and the calculation expression is: (1) In formula (1), Indicates the user's real recording data in step S1, represents the user timbre speech data generated based on the zero-shot system in step S2; For example: In step S1, the user recorded a 3 to 6 second audio, and the storage file is 1.wav. ; In step S2, 1.wav is used to clone three sentences based on the zero-shot sound cloning system, and the storage files are 2.wav3.wav4.wav. ; Then the combined set is ; S4, using the voice data obtained by merging in step S3, fine-tuning the speech synthesis model to obtain a speech synthesis model of the user's timbre; S5. Deploy the speech synthesis model of the user's timbre obtained after fine-tuning in step S4 into a speech synthesis system (speech synthesis engine), so that the speech synthesis system can synthesize speech data of any content of the target timbre.

[0010] Furthermore, the method for generating more voice data of user timbre based on the zero-shot voice cloning system in step S2 comprises the following steps: S21. Prepare a pre-trained speech synthesis model (zero-shot voice cloning system is usually based on a pre-trained speech synthesis model), train it on a large amount of speech data from different speakers, and learn general speech generation rules; S22, extracting key audio acoustic features from a small number of recorded user audio samples; obtaining text discrete units corresponding to the audio samples; S23, preparing a text file of user timbre and voice data to be synthesized, and converting the text file of user timbre and voice data to be synthesized into discrete units of text to be synthesized; S24. The extracted audio acoustic features and their corresponding text discrete units, as well as the text discrete units to be synthesized, are input as input conditions into a pre-trained speech synthesis model; the speech synthesis model generates new speech data based on these input conditions, and the new speech data is similar in timbre to the user's original recording, and the content corresponding to the audio is consistent with the text file of the user's timbre speech data.

[0011] Furthermore, the method for fine-tuning the speech synthesis model in step S4 comprises the following steps: S41, preparing target timbre voice data, and preprocessing the target timbre voice data, the preprocessing including: audio interception and standardization; S42, extracting sound features of the target timbre according to the preprocessed target timbre speech data, the sound features including: pitch, formant, and Mel spectrum; S43, fine-tuning the speech synthesis model using the acoustic features of the target timbre speaker, fine-tuning the model parameters using a small amount of new speech data while maintaining the original model parameters, and migrating the target timbre to the fine-tuned speech synthesis model; the speech synthesis model includes: an acoustic model, a vocoder (and other models with parameters in the speech synthesis system); S44. Verify the fine-tuned speech synthesis model, check the quality of the generated speech, and adjust the hyperparameters of the learning rate and number of training rounds based on the verification results.

[0012] Furthermore, the speech synthesis model of step S4 adopts a speech synthesis method based on a parameter method, and the speech synthesis method based on a parameter method includes: a front end and a back end, the front end includes functions such as text regularization, word segmentation, polyphone prediction, text-to-phoneme and rhythm prediction, the front end parses the input text to obtain linguistic features such as phonemes, tones, pauses and positions; the back end includes an acoustic model and a vocoder, and the back end converts linguistic features into speech, wherein the acoustic model predicts acoustic features and duration information of each modeling unit (for example: phoneme) based on linguistic features and duration information, and the vocoder converts acoustic features into corresponding speech waveforms.

[0013] Furthermore, the audio acoustic features of step S22 include: Mel-frequency cepstral coefficients (MFCCs), pitch, volume, speech tokens; The text discrete units include: phoneme sequence and text token.

[0014] The present invention also provides a data-generated sound cloning system, which executes the data-generated sound cloning method as described above, comprising: Voice data collection module: used to record and collect a small amount of user voice data and obtain the annotated text data corresponding to the voice data; Generate more user timbre voice data module: used to generate more user timbre voice data based on the zero-shot sound cloning system using a small amount of user voice data recorded and collected in step S1; Voice data merging module: used to merge the user voice data recorded in step S1 and the user timbre voice data generated by the zero-shot sound cloning system in step S2; Fine-tuning speech synthesis model module: used to fine-tune the speech synthesis model using the speech data merged in step S3 to obtain a speech synthesis model with the user's timbre; Speech synthesis model deployment module: used to deploy the speech synthesis model of the user's timbre obtained after fine-tuning in step S4 into the speech synthesis system, so that the speech synthesis system can synthesize speech data of any content of the target timbre.

[0015] Furthermore, the module for generating more user timbre voice data includes: Preparing pre-trained model unit: used to prepare pre-trained speech synthesis model, train on a large amount of speech data from different speakers, and learn general speech generation rules; Feature extraction unit: used to extract key audio acoustic features from a small number of recorded user audio samples; obtain text discrete units corresponding to the audio samples; A unit for preparing a text file of user timbre and voice data to be synthesized: used for preparing a text file of user timbre and voice data to be synthesized, and converting the text file of user timbre and voice data to be synthesized into discrete units of text to be synthesized; Timbre audio generation unit: used to input the extracted audio acoustic features and their corresponding text discrete units, as well as the text discrete units to be synthesized, as input conditions into the pre-trained speech synthesis model; the speech synthesis model generates new speech data based on these input conditions, and the new speech data is similar in timbre to the user's original recording, and the content corresponding to the audio is consistent with the text file of the user's timbre speech data.

[0016] Furthermore, the fine-tuning speech synthesis model module includes: Target timbre voice data preprocessing unit: used to prepare target timbre voice data and preprocess the target timbre voice data, the preprocessing includes: audio interception and standardization; Acoustic feature extraction unit: used to extract the sound features of the target timbre according to the pre-processed target timbre speech data, the sound features include: pitch, formant, and Mel spectrum; The target timbre is transferred to the model unit: it is used to fine-tune the speech synthesis model using the acoustic characteristics of the target timbre speaker, and fine-tune the model parameters through a small amount of new speech data while maintaining the original model parameters, and transfer the target timbre to the fine-tuned speech synthesis model; the speech synthesis model includes: an acoustic model and a vocoder; Verification and adjustment unit: used to verify the fine-tuned speech synthesis model, check the quality of the generated speech, and adjust the hyperparameters of the learning rate and number of training rounds based on the verification results.

[0017] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of the sound cloning method based on data generation as described above are implemented.

[0018] The present invention also provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the sound cloning method based on data generation as described above are implemented.

[0019] Compared with the prior art, the present invention has the following beneficial effects: The data-generated voice cloning method and system provided by the present invention reduce the user recording time. Only a small amount of user voice samples are needed to generate sufficient data for model training and fine-tuning, which significantly reduces the recording time and the burden of user participation. By combining the zero-shot-based and model-based fine-tuning-based voice cloning technologies, the voice cloning process is made more efficient, and the user can obtain personalized cloned voices more quickly, while enjoying more natural and realistic voice output, thereby improving the voice cloning efficiency. By optimizing the algorithm and data processing flow, the system can run on existing hardware resources, reducing the dependence on high-performance hardware resources, reducing additional hardware investment, and reducing the overall deployment cost of the system. By reducing the recording time and improving the naturalness of voice cloning, the user experience is optimized and improved, and the user can more easily obtain high-quality personalized voice services, thereby improving the overall satisfaction and acceptance of the system. By reducing the dependence on large AI models, the utilization of computing resources is optimized, the hardware resource deployment cost is reduced, and the scalability and flexibility of the system are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.

[0021] In the attached picture: Figure 1 A schematic diagram of the basic architecture of the existing model-based fine-tuning sound cloning technology; Figure 2 A schematic diagram of the basic architecture of the zero-shot sound cloning technology in the prior art; Figure 3 A schematic diagram of the basic framework of a sound cloning method based on data generation according to an embodiment of the present invention; Figure 4 A schematic diagram of the basic architecture of a speech synthesis system based on a parameter method according to an embodiment of the present invention; Figure 5 A flow chart of a sound cloning method based on data generation according to the present invention; Figure 6 A flow chart of a method for generating voice data of more user timbres based on a zero-shot voice cloning system of the present invention; Figure 7 A flow chart of a method for fine-tuning a speech synthesis model according to the present invention; Figure 8 The figure is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] 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 products consistent with some aspects of the present disclosure as detailed in the appended claims.

[0023] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0024] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0025] The embodiments of the present invention are described in further detail below.

[0026] The embodiment of the present invention provides a sound cloning method based on data generation, see Figure 5 As shown, the following steps are included: S1. Record and collect a small amount of user voice data to capture the user's basic timbre characteristics; and obtain annotated text data corresponding to the voice data; in this embodiment, a 3-6 second user recording is recorded; S2, using the small amount of user voice data recorded and collected in step S1, generating more voice data of user timbre based on the zero-shot voice cloning system; Method for generating voice data with more user timbre based on zero-shot voice cloning system, see Figure 6 As shown, the following steps are included: S21. Prepare a pre-trained speech synthesis model, train it on a large amount of speech data from different speakers, and learn general speech generation rules; S22, extracting key audio acoustic features from a small number of recorded user audio samples; obtaining text discrete units corresponding to the audio samples; Audio acoustic features include: Mel-frequency cepstral coefficients (MFCCs), pitch, volume, speech tokens; text discrete units include: phoneme sequence, text token.

[0027] S23, preparing a text file of user timbre and voice data to be synthesized, and converting the text file of user timbre and voice data to be synthesized into discrete units of text to be synthesized; S24. The extracted audio acoustic features and their corresponding text discrete units, as well as the text discrete units to be synthesized, are input as input conditions into a pre-trained speech synthesis model; the speech synthesis model generates new speech data based on these input conditions, and the new speech data is similar in timbre to the user's original recording, and the content corresponding to the audio is consistent with the text file of the user's timbre speech data.

[0028] S3, merging the user voice data recorded in step S1 and the user timbre voice data generated in step S2 based on the zero-shot sound cloning system; The method for merging the recorded voice data with the user timbre voice data generated based on zero-shot is to take the union of the two, and the calculation expression is: (1) In formula (1), Indicates the user's real recording data in step S1, represents the user timbre speech data generated based on the zero-shot system in step S2; In this embodiment, in step S1, the user records a 3 to 6 second audio, and the storage file is 1.wav. ; In step S2, 1.wav was used to clone three sentences based on the zero-shot sound cloning system, and the stored files are 2.wav, 3.wav, and 4.wav. ; The combined set is ; S4, using the voice data obtained by merging in step S3, fine-tuning the speech synthesis model to obtain a speech synthesis model of the user's timbre; For methods to fine-tune the speech synthesis model, see Figure 7 As shown, the following steps are included: S41, preparing target timbre voice data, and preprocessing the target timbre voice data, the preprocessing including: audio interception and standardization; S42, extracting sound features of the target timbre according to the preprocessed target timbre speech data, the sound features including: pitch, formant, and Mel spectrum; S43, fine-tuning the speech synthesis model using the acoustic features of the target timbre speaker, fine-tuning the model parameters using a small amount of new speech data while maintaining the original model parameters, and migrating the target timbre to the fine-tuned speech synthesis model; the speech synthesis model includes: an acoustic model and a vocoder; S44. Verify the fine-tuned speech synthesis model, check the quality of the generated speech, and adjust the hyperparameters of the learning rate and number of training rounds based on the verification results.

[0029] The speech synthesis model adopts a speech synthesis method based on parameter method, such as Figure 4As shown, the speech synthesis method based on the parameter method includes: a front end and a back end, the front end includes functions such as text regularization, word segmentation, polyphone prediction, text-to-phoneme and rhythm prediction, the front end parses the input text to obtain linguistic features such as phonemes, tones, pauses and positions; the back end includes an acoustic model and a vocoder, the back end converts linguistic features into speech, wherein the acoustic model predicts acoustic features and duration information of each modeling unit (including: phonemes) based on linguistic features and duration information, and the vocoder converts acoustic features into corresponding speech waveforms.

[0030] S5. Deploy the speech synthesis model of the user's timbre obtained after fine-tuning in step S4 into a speech synthesis system (speech synthesis engine), so that the speech synthesis system can synthesize speech data of any content of the target timbre.

[0031] Figure 3 The basic framework of the sound cloning method based on data generation in this embodiment is shown.

[0032] The embodiment of the present invention further provides a sound cloning system based on data generation, which executes the sound cloning method based on data generation as described above, including: Voice data collection module: used to record and collect a small amount of user voice data and obtain the annotated text data corresponding to the voice data; Generate more user timbre voice data module: used to generate more user timbre voice data based on the zero-shot sound cloning system using a small amount of user voice data recorded and collected in step S1; Voice data merging module: used to merge the user voice data recorded in step S1 and the user timbre voice data generated by the zero-shot sound cloning system in step S2; Fine-tuning speech synthesis model module: used to fine-tune the speech synthesis model using the speech data merged in step S3 to obtain a speech synthesis model with the user's timbre; Speech synthesis model deployment module: used to deploy the speech synthesis model of the user's timbre obtained after fine-tuning in step S4 into the speech synthesis system, so that the speech synthesis system can synthesize speech data of any content of the target timbre.

[0033] The modules for generating more user voice data include: Preparing pre-trained model unit: used to prepare pre-trained speech synthesis model, train on a large amount of speech data from different speakers, and learn general speech generation rules; Feature extraction unit: used to extract key audio acoustic features from a small number of recorded user audio samples; obtain text discrete units corresponding to the audio samples; A unit for preparing a text file of user timbre and voice data to be synthesized: used for preparing a text file of user timbre and voice data to be synthesized, and converting the text file of user timbre and voice data to be synthesized into discrete units of text to be synthesized; Timbre audio generation unit: used to input the extracted audio acoustic features and their corresponding text discrete units, as well as the text discrete units to be synthesized, as input conditions into the pre-trained speech synthesis model; the speech synthesis model generates new speech data based on these input conditions, and the new speech data is similar in timbre to the user's original recording, and the content corresponding to the audio is consistent with the text file of the user's timbre speech data.

[0034] The fine-tuning speech synthesis model module includes: Target timbre voice data preprocessing unit: used to prepare target timbre voice data and preprocess the target timbre voice data, the preprocessing includes: audio interception and standardization; Acoustic feature extraction unit: used to extract the sound features of the target timbre according to the pre-processed target timbre speech data, the sound features include: pitch, formant, and Mel spectrum; The target timbre is transferred to the model unit: it is used to fine-tune the speech synthesis model using the acoustic characteristics of the target timbre speaker, and fine-tune the model parameters through a small amount of new speech data while maintaining the original model parameters, and transfer the target timbre to the fine-tuned speech synthesis model; the speech synthesis model includes: an acoustic model and a vocoder; Verification and adjustment unit: used to verify the fine-tuned speech synthesis model, check the quality of the generated speech, and adjust the hyperparameters of the learning rate and number of training rounds based on the verification results.

[0035] An embodiment of the present invention further provides a computer device, Figure 8 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention; see the accompanying drawings Figure 8 As shown, the computer device includes: an input device 23, an output device 24, a memory 22 and a processor 21; the memory 22 is used to store one or more programs; when the one or more programs are executed by the one or more processors 21, the one or more processors 21 implement the sound cloning method based on data generation as provided in the above embodiment; wherein the input device 23, the output device 24, the memory 22 and the processor 21 can be connected by a bus or other means, Figure 8 The example of connecting through bus is taken in the following.

[0036] The memory 22 is a readable and writable storage medium of a computing device, which can be used to store software programs and computer executable programs, such as program instructions corresponding to the sound cloning method based on data generation described in the embodiment of the present invention; the memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; the data storage area can store data created according to the use of the device, etc.; in addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device; in some instances, the memory 22 can further include a memory remotely arranged relative to the processor 21, and these remote memories can be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0037] The input device 23 may be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the device; the output device 24 may include a display device such as a display screen.

[0038] The processor 21 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 22, that is, implements the above-mentioned sound cloning method based on data generation.

[0039] The computer device provided above can be used to execute the sound cloning method based on data generation provided in the above embodiment, and has corresponding functions and beneficial effects.

[0040] The embodiment of the present invention also provides a storage medium containing computer executable instructions, which are used to execute the sound cloning method based on data generation as provided in the above embodiment when executed by a computer processor. The storage medium is any of various types of memory devices or storage devices, and the storage medium includes: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc.; the storage medium may also include other types of memory or a combination thereof; in addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet); the second computer system may provide program instructions to the first computer for execution. The storage medium includes two or more storage media that may reside in different locations (for example, in different computer systems connected via a network). The storage medium may store program instructions (for example, specifically implemented as a computer program) that can be executed by one or more processors.

[0041] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided in an embodiment of the present invention are not limited to the sound cloning method based on data generation described in the above embodiment, and can also execute related operations in the sound cloning method based on data generation provided in any embodiment of the present invention.

[0042] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0043] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A sound cloning method based on data generation, characterized in that: The following steps are involved: S1. Record and collect a small amount of voice data of the user to capture the basic timbre characteristics of the user; and obtain annotated text data corresponding to the voice data; S2, using the small amount of user voice data recorded and collected in step S1, generating more voice data of user timbre based on the zero-shot voice cloning system; S3, merging the user voice data recorded in step S1 and the user timbre voice data generated in step S2 based on the zero-shot sound cloning system; The method for merging the recorded voice data with the user timbre voice data generated based on zero-shot is to take the union of the two, and the calculation expression is: (1) In formula (1), Indicates the user's real recording data in step S1, represents the user timbre speech data generated based on the zero-shot system in step S2; S4, using the voice data obtained by merging in step S3, fine-tuning the speech synthesis model to obtain a speech synthesis model of the user's timbre; S5. Deploy the speech synthesis model of the user's timbre obtained after fine-tuning in step S4 into a speech synthesis system, so that the speech synthesis system can synthesize speech data of any content of the target timbre.

2. The sound cloning method based on data generation according to claim 1, characterized in that: The method for generating more voice data of user timbre based on the zero-shot voice cloning system in step S2 comprises the following steps: S21. Prepare a pre-trained speech synthesis model, train it on a large amount of speech data from different speakers, and learn general speech generation rules; S22, extracting key audio acoustic features from a small number of recorded user audio samples; obtaining text discrete units corresponding to the audio samples; S23, preparing a text file of user timbre and voice data to be synthesized, and converting the text file of user timbre and voice data to be synthesized into discrete units of text to be synthesized; S24. The extracted audio acoustic features and their corresponding text discrete units, as well as the text discrete units to be synthesized, are input as input conditions into a pre-trained speech synthesis model; the speech synthesis model generates new speech data based on these input conditions, and the new speech data is similar in timbre to the user's original recording, and the content corresponding to the audio is consistent with the text file of the user's timbre speech data.

3. The sound cloning method based on data generation according to claim 1, characterized in that: The method for fine-tuning the speech synthesis model in step S4 comprises the following steps: S41, preparing target timbre voice data, and preprocessing the target timbre voice data, the preprocessing including: audio interception and standardization; S42, extracting sound features of the target timbre according to the preprocessed target timbre speech data, the sound features including: pitch, formant, and Mel spectrum; S43, fine-tuning the speech synthesis model using the acoustic features of the target timbre speaker, fine-tuning the model parameters using a small amount of new speech data while maintaining the original model parameters, and migrating the target timbre to the fine-tuned speech synthesis model; the speech synthesis model includes: an acoustic model and a vocoder; S44. Verify the fine-tuned speech synthesis model, check the quality of the generated speech, and adjust the hyperparameters of the learning rate and number of training rounds based on the verification results.

4. The sound cloning method based on data generation according to claim 1, characterized in that: The speech synthesis model of step S4 adopts a speech synthesis method based on a parameter method, and the speech synthesis method based on a parameter method includes: a front end and a back end, wherein the front end includes functions of text regularization, word segmentation, polyphone prediction, text-to-phoneme and prosody prediction, and the front end parses the input text to obtain linguistic features of phonemes, tones, pauses and positions; the back end includes an acoustic model and a vocoder, and the back end converts linguistic features into speech, wherein the acoustic model predicts acoustic features and duration information of each modeling unit based on linguistic features and duration information, and the vocoder converts acoustic features into corresponding speech waveforms.

5. The sound cloning method based on data generation according to claim 2, characterized in that: The audio acoustic features of step S22 include: Mel frequency cepstral coefficients MFCCs, pitch, volume, speech tokens; The text discrete units include: phoneme sequence and text token.

6. A data-generated sound cloning system, which executes the data-generated sound cloning method according to any one of claims 1 to 5, characterized in that: include: Voice data collection module: used to record and collect a small amount of user voice data to capture the user's basic timbre characteristics; and obtaining annotated text data corresponding to the voice data; Generate more user timbre voice data module: used to generate more user timbre voice data based on the zero-shot sound cloning system using a small amount of user voice data recorded and collected in step S1; Voice data merging module: used to merge the user voice data recorded in step S1 and the user timbre voice data generated by the zero-shot sound cloning system in step S2; Fine-tuning speech synthesis model module: used to fine-tune the speech synthesis model using the speech data merged in step S3 to obtain a speech synthesis model with the user's timbre; Speech synthesis model deployment module: used to deploy the speech synthesis model of the user's timbre obtained after fine-tuning in step S4 into the speech synthesis system, so that the speech synthesis system can synthesize speech data of any content of the target timbre.

7. The data-generated sound cloning system according to claim 6, characterized in that: The module for generating more user timbre voice data comprises: Preparing pre-trained model unit: used to prepare pre-trained speech synthesis model, train on a large amount of speech data from different speakers, and learn general speech generation rules; Feature extraction unit: used to extract key audio acoustic features from a small number of recorded user audio samples; obtain text discrete units corresponding to the audio samples; A unit for preparing a text file of user timbre and voice data to be synthesized: used for preparing a text file of user timbre and voice data to be synthesized, and converting the text file of user timbre and voice data to be synthesized into discrete units of text to be synthesized; Timbre audio generation unit: used to input the extracted audio acoustic features and their corresponding text discrete units, as well as the text discrete units to be synthesized, as input conditions into the pre-trained speech synthesis model; the speech synthesis model generates new speech data based on these input conditions, and the new speech data is similar in timbre to the user's original recording, and the content corresponding to the audio is consistent with the text file of the user's timbre speech data.

8. The data-generated sound cloning system according to claim 6, characterized in that: The fine-tuning speech synthesis model module comprises: Target timbre voice data preprocessing unit: used to prepare target timbre voice data and preprocess the target timbre voice data, the preprocessing includes: audio interception and standardization; Acoustic feature extraction unit: used to extract the sound features of the target timbre according to the pre-processed target timbre speech data, the sound features include: pitch, formant, and Mel spectrum; The target timbre is transferred to the model unit: it is used to fine-tune the speech synthesis model using the acoustic characteristics of the target timbre speaker, and fine-tune the model parameters through a small amount of new speech data while maintaining the original model parameters, and transfer the target timbre to the fine-tuned speech synthesis model; the speech synthesis model includes: an acoustic model and a vocoder; Verification and adjustment unit: used to verify the fine-tuned speech synthesis model, check the quality of the generated speech, and adjust the hyperparameters of the learning rate and number of training rounds based on the verification results.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the sound cloning method based on data generation according to any one of claims 1 to 5 are implemented.

10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the sound cloning method based on data generation as described in any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Voice cloning method and device for emotion expression, equipment and medium

    CN120783724A

  • Emotional expression speech cloning method, device, equipment and medium

    CN120783724B