A voice cloning method, device, terminal equipment and storage medium

By segmenting registered speech into multiple speech segments, extracting and matching prosodic features for speech cloning, the problem of balancing the duration of registered speech with cloning effect is solved, achieving natural and rich emotional generation of long speech.

CN123182679APending Publication Date: 2026-11-27GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510693586.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In the process of voice cloning, existing technologies struggle to balance the duration of the registered voice with the cloning effect, resulting in longer voice delays and unstable quality, while shorter voices exhibit a monotonous style and lack emotional richness.

Method used

The registered speech is divided into multiple speech segments with independent semantic meanings. The prosodic features of each segment are extracted and matched with the prosodic features of the text to be synthesized. The most similar segment is selected for speech cloning.

Benefits of technology

It supports registration voice recordings of up to tens of minutes in length, generating synthesized voice with natural rhythm and rich emotion, solving the balance problem between registration voice recording duration and cloning effect, and improving the effect of voice cloning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182679A_ABST
    Figure CN123182679A_ABST
Patent Text Reader

Abstract

The application provides a voice cloning method and device, a terminal equipment and a storage medium. After the registered voice is divided into multiple voice segments based on semantics, the first prosody features of each voice segment are extracted, the second prosody features of the text to be synthesized are predicted, and the voice segment with the highest similarity between the first prosody features and the second prosody features is subjected to voice cloning with the text to be synthesized. The voice is divided into multiple voice segments, the voice segment with the most similar prosody features is selected for voice cloning with the text to be synthesized, the registered voice can be up to several tens of minutes, and after voice cloning, the generated voice is more natural in prosody and richer in emotion. The application solves the technical problem that the length of the registered voice and the cloning effect are difficult to balance in the prior art voice cloning process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio processing, and more particularly to a voice cloning method, apparatus, terminal device, and storage medium. Background Technology

[0002] Voice cloning is a technique for replicating a specific human voice, aiming to generate synthesized speech that is highly similar to the target speaker. Currently, generative speech models based on the Large Language Model (LLM) approach are gradually becoming the mainstream of voice cloning technology. Generative speech models have significantly improved prosodic naturalness and human-like speech compared to speech synthesis models based on traditional techniques.

[0003] When cloning speech using generative speech models, due to the limitations of these models themselves and the real-time requirements of applications, current technology can only support registered speech samples ranging from a few seconds to tens of seconds in length. However, excessively long registered speech samples result in high latency during the cloning process and poor consistency in the quality of the cloned speech, while shorter samples lead to a lack of variation in the style of the cloned speech. Summary of the Invention

[0004] This invention provides a voice cloning method, apparatus, terminal device, and storage medium, which solves the technical problem of difficulty in balancing the registered voice duration and cloning effect in the existing voice cloning process.

[0005] In a first aspect, embodiments of the present invention provide a voice cloning method, the method comprising:

[0006] The registered speech and the text to be synthesized are obtained, and the registered speech is divided into multiple speech segments, each of which has an independent semantic meaning.

[0007] Extract the first prosodic feature of each speech segment and predict the second prosodic feature of the text to be synthesized; the first prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment, and the second prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment corresponding to the text to be synthesized.

[0008] Determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and determine the speech segment with the highest similarity;

[0009] Based on the most similar speech segment, the text to be synthesized is cloned.

[0010] The above-mentioned method, by segmenting the registered speech into multiple speech segments and selecting the speech segments with the most similar prosodic features to the text to be synthesized for speech cloning, can support registered speech segments up to tens of minutes long. At the same time, after speech cloning, it can generate speech with more natural rhythm and richer emotion, thus solving the technical problem of difficulty in balancing the registered speech duration and cloning effect in the existing speech cloning process.

[0011] The step of dividing the registered voice into multiple voice segments includes:

[0012] Extract the text content corresponding to the registered voice to obtain the registration text;

[0013] The registered text is segmented into sentences based on semantic meaning to obtain multiple first sentences;

[0014] Based on the first statement, the registered speech is divided into multiple speech segments.

[0015] The above method, by segmenting the registered speech into multiple speech segments with independent semantic meanings, allows each speech segment to retain rich prosody and emotional samples, thereby meeting the speech expressiveness requirements of most application scenarios and improving the subsequent speech cloning effect.

[0016] The first prosodic feature includes a first fundamental frequency feature, a first energy feature, a first speech rate feature, and a first latent vector feature. Extracting the first prosodic feature for each speech segment includes:

[0017] Extract the first fundamental frequency feature, the first energy feature, and the first latent vector feature of each speech segment;

[0018] Remove the silent characters from the first statement of each sentence to obtain the second statement corresponding to the first statement of each sentence;

[0019] Determine the number of characters in each sentence of the second statement and the duration of pronunciation for each character;

[0020] A first speech rate feature for each speech segment is determined based on the number of characters in the second statement belonging to each speech segment and the pronunciation duration of each character.

[0021] The above-mentioned method, which integrates multiple dimensions of features such as fundamental frequency features, energy features, speech rate features and latent vector features as prosodic features of audio segments, can simulate real pronunciation dynamics, significantly improve the naturalness and expressiveness of cloned speech, and optimize adaptability to complex scenarios.

[0022] The step of determining the first speech rate feature of each speech segment based on the number of characters in the second utterance belonging to each speech segment and the pronunciation duration of each character includes:

[0023] Based on the number of characters in each sentence of the second statement and the pronunciation duration of each character, determine the mean pronunciation duration and standard deviation of the character pronunciation duration in each sentence of the second statement;

[0024] Based on the mean character pronunciation duration and standard deviation of character pronunciation duration for each of the second statements belonging to each of the speech segments, a first speech rate feature for each of the speech segments is obtained.

[0025] The above-mentioned method, which uses the mean and standard deviation of character pronunciation duration as speech rate features, can capture dynamic changes in rhythm, adapt to the prosodic characteristics of different languages, and avoid the complexity of phoneme-level modeling.

[0026] The prediction of the second prosodic features of the text to be synthesized includes:

[0027] The text to be synthesized is input into a pre-trained text encoder to extract the text token sequence corresponding to the text to be synthesized;

[0028] The text token sequence is input into a pre-trained prosody extraction model so that the prosody extraction model obtains an initial noise vector and then performs reverse inference. During the reverse inference process, the noise residual is predicted based on the current noise vector, the preset time step, the text token sequence, and the preset speech feature vector. The noise residual is then gradually denoised and the noise vector is updated until the noise vector is completely denoised to obtain the second prosody feature.

[0029] As described above, by gradually denoising during the reverse reasoning process through the prosody extraction model, subtle changes in prosodic features can be captured, generating outputs that are closer to the real pronunciation rules. Furthermore, the iterative correction mechanism of the prosody extraction model can effectively avoid the mechanical or disjointed problems common in traditional models, significantly improving the naturalness of synthesized speech.

[0030] The prosody extraction model predicts noise residuals based on the current noise vector, a preset time step, the text token sequence, and a preset speech feature vector, including:

[0031] The prosody extraction model extracts features from the current noise vector to obtain a first feature vector;

[0032] The prosody extraction model fuses a preset time step with the first feature vector to obtain a first fused vector;

[0033] The prosody extraction model extracts features from the first fusion vector to obtain a second feature vector;

[0034] The prosody extraction model fuses the preset speech feature vector and the second feature vector to obtain the second fused vector;

[0035] The prosody extraction model extracts features from the second fusion vector to obtain a third feature vector;

[0036] The prosody extraction model fuses the text token sequence and the third feature vector to obtain a third fused vector;

[0037] The prosody extraction model extracts features from the third fusion vector to obtain the predicted noise residual.

[0038] The above-mentioned method of multi-dimensional input collaborative prediction of noise residuals enables the text token sequence to guide the intonation profile during the noise residual prediction stage, and the speech feature vector to preserve the pronunciation style. The joint embedding of the two avoids single-modal bias and improves the naturalness and recognizability of cloned speech. In addition, the noise weight can be dynamically adjusted by the time step to improve the generation efficiency and accuracy.

[0039] Wherein, the first prosodic feature includes a first fundamental frequency feature, a first energy feature, a first speech rate feature, and a first latent vector feature; the second prosodic feature includes a second fundamental frequency feature, a second energy feature, a second speech rate feature, and a second latent vector feature; determining the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized includes:

[0040] Determine a first distance between a first fundamental frequency feature of each speech segment and a second fundamental frequency feature of the text to be synthesized;

[0041] Determine a second distance between a first energy feature of each speech segment and a second energy feature of the text to be synthesized;

[0042] Determine a third distance between a first speech rate feature of each speech segment and a second speech rate feature of the text to be synthesized;

[0043] Determine a fourth distance between the first latent vector feature of each speech segment and the second latent vector feature of the text to be synthesized;

[0044] The first distance, second distance, third distance, and fourth distance corresponding to each speech segment are weighted and summed to obtain the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized.

[0045] The above approach, by independently calculating the distance to features such as fundamental frequency, energy, speech rate, and latent vectors and then performing a weighted summation, allows explicit acoustic features like fundamental frequency and energy to complement the deep representation of latent vectors. This preserves the interpretability of physical quantities while capturing nonlinear prosodic styles, avoiding the interference of a single feature's anomaly in subsequent similarity assessments. Furthermore, by adjusting the weights of each feature, it can be flexibly adapted to different scenarios.

[0046] Secondly, embodiments of the present invention provide a voice cloning device, the voice cloning device comprising:

[0047] The speech segmentation module is used to acquire the registered speech and the text to be synthesized, and to divide the registered speech into multiple speech segments, each of which has an independent semantic meaning.

[0048] The prosodic feature extraction module is used to extract the first prosodic feature of each speech segment and predict the second prosodic feature of the text to be synthesized; the first prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment, and the second prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment corresponding to the text to be synthesized.

[0049] A similarity determination module is used to determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and to determine the speech segment with the highest similarity.

[0050] The speech cloning module is used to perform speech cloning on the text to be synthesized based on the speech segment with the highest similarity.

[0051] Thirdly, embodiments of the present invention provide a terminal device, the terminal device including a processor and a memory;

[0052] The memory is used to store computer programs and to transfer the computer programs to the processor;

[0053] The processor is configured to execute a voice cloning method as described in the first aspect, according to instructions in the computer program.

[0054] Fourthly, embodiments of the present invention provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to perform a voice cloning method as described in the first aspect.

[0055] The beneficial effects of the aforementioned voice cloning device, terminal equipment, and storage medium can be referenced in relation to the beneficial effects of the voice cloning method. Attached Figure Description

[0056] Figure 1 A flowchart of a voice cloning method provided in an embodiment of the present invention.

[0057] Figure 2 This is a schematic diagram illustrating the determination of the similarity between a first prosodic feature of a speech segment and a second prosodic feature of the text to be synthesized, as provided in an embodiment of the present invention.

[0058] Figure 3 This is a flowchart illustrating another voice cloning method provided in an embodiment of the present invention.

[0059] Figure 4 This is a schematic diagram of the structure of a noise residual prediction network provided in an embodiment of the present invention.

[0060] Figure 5 This is a schematic diagram of a voice cloning device provided in an embodiment of the present invention.

[0061] Figure 6 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. Detailed Implementation

[0062] The following description and accompanying drawings fully illustrate specific embodiments of this application to enable those skilled in the art to practice them. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of embodiments of this application includes the entire scope of the claims and all available equivalents of the claims. In this document, each embodiment may be referred to individually or collectively by the term "invention," which is merely for convenience and is not intended to automatically limit the scope of the application to any single invention or inventive concept if more than one invention is disclosed. Relational terms such as "first" and "second" are used herein merely to distinguish one entity or operation from another, without requiring or implying any actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed. The various embodiments in this document are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the structures, products, etc., disclosed in the embodiments, since they correspond to the disclosed parts, the descriptions are relatively simple; relevant details can be found in the method section.

[0063] Voice cloning is a technique for replicating a specific human voice, aiming to generate synthesized speech that is highly similar to the target speaker. Currently, generative speech models based on the Large Language Model (LLM) approach are gradually becoming the mainstream of voice cloning technology. Generative speech models have significantly improved prosodic naturalness and human-like speech compared to speech synthesis models based on traditional techniques.

[0064] When cloning speech using a generative speech model, due to the limitations of the generative speech model itself and the real-time requirements of the application, it can currently only support registered speech with a duration of a few seconds to a dozen seconds. This leads to the following two serious application limitations: (1) Longer registered speech results in higher latency for the generative speech model during inference, and also causes more pronunciation errors and speech quality problems such as inconsistent timbre / prosody. (2) Shorter registered speech cannot cover rich prosodic and emotional samples, resulting in a single speech style after cloning and problems such as emotional and semantic mismatch.

[0065] Based on this, in order to solve the above-mentioned technical problems, the present invention provides a voice cloning method. The present invention divides the registered voice into multiple voice segments, selects the voice segment with the most similar prosodic features and performs voice cloning with the text to be synthesized. In this way, registered voices up to tens of minutes long can be supported. At the same time, after voice cloning, voices with more natural rhythm and richer emotions can be generated. The present invention solves the technical problem in the prior art that it is difficult to balance the registered voice duration and the cloning effect during the voice cloning process.

[0066] like Figure 1 As shown, Figure 1 This is a flowchart illustrating a voice cloning method provided in an embodiment of the present invention. The voice cloning method provided in this embodiment can be executed by a terminal device, which can be implemented through software and / or hardware. The terminal device can consist of two or more physical entities, or it can consist of a single physical entity. For example, the terminal device can be a computer, a host computer, or a mobile phone. The voice cloning method provided in this embodiment includes the following steps:

[0067] Step 101: Obtain the registered speech and the text to be synthesized, and divide the registered speech into multiple speech segments, each of which has an independent semantic meaning.

[0068] In this embodiment, the first step is to acquire the registered voice and the text to be synthesized. The registered voice is the original audio segment of the target speaker, which is obtained by recording the target speaker speaking. In this embodiment, the duration of the registered voice can range from tens of seconds to tens of minutes. Longer registered voices cover richer rhythmic and emotional samples, meeting the voice performance requirements of most application scenarios. For example, the registered voice could be the voice of a customer service representative in a complete phone call, the voice of a teacher in a recorded course, or the voice of a parent telling a complete story to a child. The specific registered voice can be selected according to actual needs, and this embodiment does not impose any limitations. The text to be synthesized is the original text input that needs to be converted into cloned voice, containing semantic information and pronunciation instructions. For example, if the text content to be synthesized is "Welcome," the terminal device needs to convert this text content into the voice of the target speaker based on the registered voice. The registered voice and the text to be synthesized can be input by the user into the terminal device for direct local acquisition, or they can be uploaded by the user to a cloud server, and the terminal device obtains the registered voice and the text to be synthesized by accessing the server.

[0069] After acquiring the registered speech, the terminal device needs to further segment the speech into multiple speech segments based on semantics, ensuring that each segment has an independent semantic meaning. In one embodiment, the terminal device can extract the text content corresponding to the registered speech, determine sentences with independent semantic meanings based on the text content, and segment the registered speech based on these sentences. Alternatively, it can use semantic analysis techniques based on Natural Language Processing (NLP) to segment speech segments through syntactic parsing and semantic boundary detection. For example, the long sentence "Today the weather is sunny, suitable for going for a walk" can be segmented into two speech segments with independent semantic meanings: "Today the weather is sunny" and "suitable for going for a walk".

[0070] Step 102: Extract the first prosodic feature of each speech segment and predict the second prosodic feature of the text to be synthesized. The first prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment, and the second prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment corresponding to the text to be synthesized.

[0071] After dividing the registered speech into multiple speech segments, the terminal device needs to further extract the first prosodic feature of each speech segment. The first prosodic feature is a feature of suprasegmental speech phenomena in the speech segment. Suprasegmental speech phenomena refer to speech features that do not depend on phonological features (such as vowels and consonants), including fundamental frequency, energy, and speech rate. These speech features play a role in distinguishing semantics and expressing emotion in language. Simultaneously with extracting the first prosodic feature, the terminal device needs to predict the second prosodic feature of the text to be synthesized. The second prosodic feature is a feature of suprasegmental speech phenomena in the speech segment corresponding to the text to be synthesized. The feature types included in the second prosodic feature are the same as those included in the first prosodic feature, and will not be elaborated further in this embodiment. In one embodiment, prediction can be performed using a pre-trained prosodic prediction model. After inputting the text to be synthesized into the prosodic prediction model, the model can output the corresponding second prosodic feature. The prosodic prediction model is trained based on a neural network. Specifically, when training the prosody prediction model, each training data set contains a text token sequence, speaker features, and prosodic features. The text token sequence is encoded into phoneme features and then concatenated with speaker features to form a multimodal input. During training, the prosodic feature prediction and speaker independence constraints are simultaneously optimized based on the Transformer architecture. Personalized adaptation is achieved by fine-tuning the speaker features until the neural network can accurately output the corresponding prosodic features, thus obtaining the trained prosody prediction model.

[0072] Step 103: Determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and determine the speech segment with the highest similarity.

[0073] After determining the first and second prosodic features, the terminal device needs to determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized. Specifically, the terminal device sequentially traverses each speech segment, and for the currently traversed target speech segment, it needs to determine the similarity between the first prosodic feature of the target speech segment and the second prosodic feature of the text to be synthesized. The traversal order of the speech segments can be determined based on timestamps. The similarity between the first and second prosodic features can be determined by calculating the distance between them, which can be cosine distance, Manhattan distance, or Euclidean distance, etc. After calculating the similarity, the terminal device needs to determine the speech segment with the highest similarity and match it with the text to be synthesized; that is, the speech segment with the smallest distance is taken as the speech segment that matches the text to be synthesized. It should be noted that in this embodiment, the speech segment with the most similar prosodic features is selected and matched with the text to be synthesized. The higher the similarity of prosodic features, the closer the parameters of the synthesized speech, such as the fundamental frequency trajectory and syllable duration, are to the natural speech of the target speaker. This can eliminate mechanical pauses and unnatural intonation abrupt changes (such as the accurate reproduction of the rising intonation at the end of an interrogative sentence) during subsequent speech cloning, achieving consistent emotional expression across speakers and improving the effectiveness of speech cloning. In one embodiment, such as... Figure 2 As shown, Figure 2 This is a schematic diagram illustrating the method for determining the similarity between a first prosodic feature of a speech segment and a second prosodic feature of the text to be synthesized, as provided in an embodiment of the present invention. After extracting the first prosodic features of speech segments Y1, Y2, and Y3 using a prosodic feature extractor, and predicting the second prosodic feature Y4 of the text to be synthesized using a prosodic prediction model, the distance Di, i = 1, 2, 3, between each first prosodic feature and the second prosodic feature is determined one by one, so as to determine the speech segment that matches the text to be synthesized based on the distance Di.

[0074] Step 104: Based on the most similar speech segment, perform speech cloning on the text to be synthesized.

[0075] After traversing all the speech segments, the terminal device can input the text to be synthesized and the speech segment with the highest similarity into the generative speech model for speech cloning. The specific cloning process can be referred to the existing technology, and will not be described in detail in this embodiment.

[0076] The above-described embodiments of the present invention provide a speech cloning method. After dividing a registered speech into multiple speech segments based on semantics, the present invention extracts a first prosodic feature and predicts a second prosodic feature for the text to be synthesized from each speech segment. The speech segment with the highest similarity between the first and second prosodic features is then used for speech cloning with the text to be synthesized. By dividing the registered speech into multiple speech segments and selecting the speech segment with the most similar prosodic features for speech cloning with the text to be synthesized, the present invention can support registered speech segments up to tens of minutes long. Furthermore, after speech cloning, it can generate speech with more natural rhythm and richer emotion. The present invention solves the technical problem in the prior art where it is difficult to balance the length of the registered speech with the cloning effect during the speech cloning process.

[0077] This invention also provides another voice cloning method, such as... Figure 3 As shown, Figure 3 This is a flowchart illustrating another voice cloning method provided in an embodiment of the present invention. Figure 3 The voice cloning method shown is a specific embodiment of the above-mentioned voice cloning method. The voice cloning method further provided in this embodiment includes:

[0078] Step 201: Obtain the registered voice and the text to be synthesized.

[0079] Step 202: Extract the text content corresponding to the registered voice to obtain the registration text.

[0080] In this embodiment, after acquiring the registered speech, the terminal device first repairs the speech, restoring it to high-definition quality by removing noise, reverberation, or other defects. Then, it extracts the text content of the registered speech using a speech recognition model to obtain the registered text. After obtaining the registered text, the terminal device also needs to mark the timestamps (start and end times of pronunciation) of each character (or word) in the speech within the registered text to facilitate subsequent segmentation of the registered speech.

[0081] Step 203: Segment the registered text based on semantic meaning to obtain multiple first sentences.

[0082] For the registration text, the terminal device needs to segment the registration text into sentences at the semantic level to obtain the first sentence, where the first sentence is a sentence with independent semantic meaning. For example, the terminal device can use NLP (Natural Language Processing) for semantic sentence segmentation. First, it identifies punctuation marks (periods, exclamation marks, question marks, etc.) in the registration text, performs preliminary segmentation based on punctuation, and identifies the logical structure of complex sentences (such as conjunctions and relative clauses) through dependency parsing. Then, it applies a preset rule base to filter out missegments and merges phrase semantic units (such as fragmented sentences of less than 5 characters). Finally, it combines word vectors to calculate the semantic coherence score of the segmented sentences and predicts the reasonableness of the segmentation based on a statistical model, outputting the first sentence of the segmented multi-sentence structure. It is understood that the specific process of segmenting the registration text based on semantic meaning can use existing technologies, and will not be elaborated upon in this embodiment.

[0083] Step 204: Based on the first statement, divide the registered speech into multiple speech segments, each of which has an independent semantic meaning.

[0084] After receiving multiple first statements, the terminal device can divide the registered voice into multiple voice segments based on these first statements. Specifically, the terminal device can segment the registered voice according to the timestamp corresponding to each first statement, thereby dividing the registered voice into multiple voice segments with a duration of 5 to 15 seconds.

[0085] As described above, the embodiments of the present invention segment the registered speech into multiple speech segments with independent semantic meanings, so that each speech segment can retain rich prosody and emotional samples, thereby meeting the speech expressiveness requirements of most application scenarios and improving the subsequent speech cloning effect.

[0086] Step 205: Extract the first prosodic feature of each speech segment.

[0087] After segmenting the registered speech into multiple speech segments, the terminal device needs to further extract the first prosodic feature of each speech segment. In this embodiment, the first prosodic feature includes a first fundamental frequency feature, a first energy feature, a first speech rate feature, and a first latent vector feature. Among them, the first fundamental frequency feature is used to characterize the fundamental frequency change of vocal cord vibration, reflecting the speaker's physiological attributes such as gender and age (e.g., male fundamental frequency range 135-185Hz, female 260-350Hz); the first energy feature is used to characterize the intensity dynamics of the speech signal, quantified by short-time energy, capturing the pronunciation intensity through short-time energy changes, and distinguishing emotional states (e.g., drastic energy fluctuations when angry); the first speech rate feature is used to characterize the number of syllables / words pronounced per unit time, reflecting the speaking rhythm (e.g., faster speech rate when expressing rapidly) and emotional state (increased speech rate fluctuations when nervous); the first latent vector feature is a high-order abstract representation extracted by a deep learning model (e.g., LSTM / Transformer), used to encode global prosodic patterns (e.g., nonlinear combination of tone intensity and speech rate), enhancing the ability to transfer prosodic patterns across languages.

[0088] Specifically, step 205 extracts the first prosodic feature of each speech segment, including:

[0089] Step 2051: Extract the first fundamental frequency feature, the first energy feature, and the first latent vector feature of each speech segment.

[0090] In this embodiment, the terminal device needs to extract the first fundamental frequency feature, the first energy feature, and the first latent vector feature for each speech segment. The first fundamental frequency feature includes the fundamental frequency mean and the fundamental frequency standard deviation, and the first energy feature includes the energy mean and the energy standard deviation. The extraction methods for the first fundamental frequency feature and the first energy feature can employ existing mainstream methods, which will not be elaborated upon in this embodiment. The extraction method for the first latent vector feature can employ methods such as GST (Global Style Tokens) and ProsoSpeech, which can extract a fixed-length vector representing the prosodic features of the speech from the registered speech.

[0091] Step 2052: Remove the silent characters from the first sentence of each sentence to obtain the second sentence corresponding to the first sentence of each sentence.

[0092] When extracting the first speech rate feature, the terminal device needs to remove non-pronounced characters from the first sentence of each sentence, such as punctuation marks and spaces, and only retain the pronounced characters to obtain the second sentence corresponding to each first sentence.

[0093] Step 2053: Determine the number of characters in the second sentence of each sentence and the duration of pronunciation for each character.

[0094] Next, the terminal device needs to determine the number of characters in each second sentence, and determine the pronunciation duration of each character in the second sentence based on the timestamp of the registered voice.

[0095] Step 2054: Determine the first speech rate feature of each speech segment based on the number of characters in the second sentence belonging to each speech segment and the pronunciation duration of each character.

[0096] After determining the number of characters and their corresponding pronunciation durations for the second statement, the first speech rate feature for each speech segment can be determined. In this embodiment, the first speech rate feature includes the mean pronunciation duration of each character and the standard deviation of the pronunciation duration of each character. Specifically, the terminal device needs to determine the mean pronunciation duration and standard deviation of the pronunciation duration of each character in each second statement based on the number of characters and the pronunciation duration of each character. Based on the mean pronunciation duration and standard deviation of the pronunciation duration of each second statement belonging to each speech segment, the first speech rate feature for each speech segment is obtained, where the second statement belongs to a speech segment because the first statement from which the second statement originates belongs to the speech segment. The mean pronunciation duration of each character is the mean of the pronunciation duration of the characters in the second statement, while the standard deviation of the pronunciation duration of each character is the standard deviation of the pronunciation duration of the characters in the second statement. Since the mean character pronunciation duration reflects the overall speech rate and the standard deviation of character pronunciation duration can quantify the dispersion of pronunciation duration, the present invention uses the mean character pronunciation duration and the standard deviation of character pronunciation duration as speech rate features of speech segments. This method can capture dynamic changes in rhythm, adapt to the prosodic characteristics of different languages, and avoid the complexity of phoneme-level modeling.

[0097] In this embodiment, the specific structure of the first prosodic feature is shown in Table 1:

[0098] Table 1

[0099] <![CDATA[μ1]]> Fundamental frequency mean <![CDATA[σ1]]> Fundamental frequency standard deviation <![CDATA[μ2]]> Energy mean <![CDATA[σ2]]> Energy Standard Deviation <![CDATA[μ3]]> Average duration of character pronunciation <![CDATA[σ3]]> Standard deviation of character pronunciation duration LPV Prosodic Feature Latent Vector

[0100] The above describes the process of extracting the first prosodic feature in this embodiment. This embodiment of the invention comprehensively uses multiple dimensions of features, including fundamental frequency features, energy features, speech rate features, and latent vector features, as the prosodic features of audio segments. This approach can simulate realistic pronunciation dynamics, significantly improve the naturalness and expressiveness of cloned speech, and optimize adaptability to complex scenarios.

[0101] Step 206: Input the text to be synthesized into a pre-trained text encoder and extract the text token sequence corresponding to the text to be synthesized.

[0102] When predicting the second prosodic features of the text to be synthesized, the terminal device first needs to input the text to be synthesized into a pre-trained text encoder so that the text encoder can extract the text token sequence corresponding to the text to be synthesized. The text encoder is a neural network component used to convert natural language text into a structured vector representation. Its core goal is to capture the semantic, syntactic and contextual information of the text through mathematical modeling to form digital features that can be processed by computers. The text token sequence is a structured sequence composed of discrete symbol units and their corresponding semantic vectors. Its generation process achieves semantic representation through multi-level feature extraction.

[0103] Step 207: Input the text token sequence into the pre-trained prosody extraction model so that the prosody extraction model can obtain the initial noise vector and then perform reverse inference. During the reverse inference process, the noise residual is predicted based on the current noise vector, the preset time step, the text token sequence and the preset speech feature vector. The noise residual is then gradually denoised and the noise vector is updated until the noise vector is completely denoised to obtain the second prosody feature.

[0104] For the extracted text token sequence, the terminal device needs to invoke a pre-trained prosodic extraction model to predict the second prosodic feature corresponding to the text token sequence. In one embodiment, the prosodic extraction model can be trained based on a conditional diffusion model, wherein the forward process q(x) of the conditional diffusion model... 1:T |x0,c,e) is a parameterized Markov chain, which can be represented as:

[0105]

[0106] The transition probability q(x1,...,x) at each step T |x0,c,e) is defined as a Gaussian distribution.

[0107]

[0108] Where x0 is the second prosodic feature, x t Here, c is the noise vector at time step t, e is the speech feature vector (i.e., the target speaker's speech vector), N(x; μ, Σ) is the multivariate normal probability density function, and β... t Let x be the variance of the noise vector added at time step t, where I is the identity matrix, T represents the total number of time steps in the diffusion process (i.e., the maximum number of iterations for noise addition), and x T This is the initial noise vector.

[0109] Among them, backward reasoning p(x) 0:T-1 |x T(c,e) is a parameterized Markov chain, which can be represented as:

[0110]

[0111] Where, p θ (x t-1 |x t ,c,e)=N(x t-1 μ θ (x t ,t,c,e),σ θ (x t ,t) 2 Ι).

[0112] μ θ The mean prediction function is derived from reverse reasoning.

[0113] σ θ The variance prediction function for backward inference.

[0114] Where, α t =1-β t , (t>1), ε θ (x t ,t,c,e) represents the noise residual, and N represents the Gaussian probability density function.

[0115] In reverse reasoning, through ε θ (x t (t,c,e) Predict the noise residual, and gradually denoise based on the noise residual to correct x. t The noise vector in the model is then updated. It is understood that the training process of the prosody extraction model can refer to existing standard conditional diffusion models, which will not be elaborated here.

[0116] Specifically, the terminal device needs to acquire a preset speech feature vector, which is a vector containing the speech features of the target speaker, such as the speaker's voiceprint feature vector. The terminal device inputs the text token sequence and the preset speech feature vector (e.g., the speaker's voiceprint feature vector) into the prosody extraction model, which then performs reverse reasoning. At the beginning of the reverse reasoning phase (t=T), the prosody extraction model samples a noise vector (noisy prosody feature vector) from a standard Gaussian distribution with the same dimension as the second prosody feature as the initial noise vector, denoted as x. t (at the initial time x) TIn each step of the reverse reasoning, the prosody extraction model needs to predict the noise residual ε based on the current noise vector, the preset time step, the text token sequence, and the preset speech feature vector. θ The predicted noise residuals and inverse difference equations are used to progressively denoise and update x. t For x t-1 This process continues until the final second prosodic feature x0 is generated. It is understood that in this embodiment, the prosodic extraction model does not necessarily have to be a conditional diffusion model; the prosodic extraction model can also be obtained by training other neural networks, as long as it can predict the second prosodic feature.

[0117] The embodiments of the present invention use a prosody extraction model to gradually denoise during the reverse reasoning process, which can capture subtle changes in prosodic features and generate outputs that are closer to the real pronunciation rules. Furthermore, the iterative correction mechanism of the prosody extraction model can effectively avoid the mechanical or disjointed problems common in traditional models, and significantly improve the naturalness of synthesized speech.

[0118] Based on the above embodiments, the prosody extraction model predicts the noise residual based on the current noise vector, a preset time step, a text token sequence, and a preset speech feature vector, including:

[0119] Step 2071: The prosody extraction model extracts features from the current noise vector to obtain the first feature vector.

[0120] Step 2072: The prosody extraction model fuses the preset time step and the first feature vector to obtain the first fused vector.

[0121] Step 2073: The prosody extraction model extracts features from the first fusion vector to obtain the second feature vector.

[0122] Step 2074: The prosody extraction model fuses the preset speech feature vector and the second feature vector to obtain the second fused vector.

[0123] Step 2075: The prosody extraction model extracts features from the second fusion vector to obtain the third feature vector.

[0124] Step 2076: The prosody extraction model fuses the text token sequence and the third feature vector to obtain the third fused vector.

[0125] Step 2077: The prosody extraction model extracts features from the third fusion vector to obtain the predicted noise residual.

[0126] In one embodiment, ε θ (x t (t,c,e) is a noisy residual prediction network, and its structure is as follows: Figure 4As shown, Figure 4 This is a schematic diagram of a noise residual prediction network provided in an embodiment of the present invention. Specifically, when predicting the noise residual, the current noise vector x is first... t The first feature vector is obtained by extracting features from the input Conv1D one-dimensional convolutional neural network. Then, a preset time step t is converted into features of the same dimension as the first feature vector through a time-step embedding layer and fused with the first feature vector to obtain a first fused vector. This first fused vector is then input into a Resblock residual network for feature extraction to obtain a second feature vector. A preset speech feature vector e is then converted into features of the same dimension as the second feature vector and fused with it to obtain a second fused vector. This second fused vector is then input into a Resblock residual network for feature extraction to obtain a third feature vector. The third feature vector is then fused with the text token sequence c. Specifically, the text token sequence c is first input into a text embedding layer to convert the discrete text token sequence c into a continuous vector representation. Then, the vector sequence output from the text embedding layer is input into a text encoder to perform deep semantic modeling on the vector sequence, extracting high-order features, and obtaining a context-aware vector sequence after multi-layer encoding, with the same dimension as the input text token sequence c. The context-aware vector sequence is then input into a pooling layer, which outputs a global vector with the same dimension as the third feature vector. This global vector is then fused with the third feature vector to obtain a third fused vector. This third fused vector is further input into a Resblock residual network, and the output of the Resblock residual network is used as the input to a Conv1D one-dimensional convolutional neural network. The final output of the Conv1D one-dimensional convolutional neural network is the predicted noise residual.

[0127] As described above, the embodiments of the present invention use a multi-dimensional input collaborative prediction of noise residuals, which enables the text token sequence to guide the intonation profile during the noise residual prediction stage, and the speech feature vector to preserve the pronunciation style. The joint embedding of the two avoids single-modal bias and improves the naturalness and recognizability of cloned speech. In addition, the noise weight can be dynamically adjusted by the time step to improve the generation efficiency and accuracy.

[0128] Step 208: Determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and determine the speech segment with the highest similarity.

[0129] After predicting the second prosodic features of the text to be synthesized, the speech segments and the text to be synthesized need to be matched. Specifically, the second prosodic features include the second fundamental frequency feature, the second energy feature, the second speech rate feature, and the second latent vector feature. The specific structure of the second prosodic features can be referred to Table 1, and will not be repeated in this embodiment.

[0130] Step 208 determines the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, including:

[0131] Step 2081: Determine the first distance between the first fundamental frequency feature of each speech segment and the second fundamental frequency feature of the text to be synthesized.

[0132] Step 2082: Determine the second distance between the first energy feature of each speech segment and the second energy feature of the text to be synthesized.

[0133] Step 2083: Determine the third distance between the first speech rate feature of each speech segment and the second speech rate feature of the text to be synthesized.

[0134] Step 2084: Determine the fourth distance between the first latent vector feature of each speech segment and the second latent vector feature of the text to be synthesized.

[0135] Step 2085: Perform a weighted summation of the first distance, second distance, third distance, and fourth distance corresponding to each speech segment to obtain the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized.

[0136] In this embodiment, for the currently traversed target speech segments, the terminal device needs to determine the first distance between the first fundamental frequency feature of each speech segment and the second fundamental frequency feature of the text to be synthesized, the second distance between the first energy feature of each speech segment and the second energy feature of the text to be synthesized, the third distance between the first speech rate feature of each speech segment and the second speech rate feature of the text to be synthesized, and the fourth distance between the first latent vector feature of each speech segment and the second latent vector feature of the text to be synthesized. Then, the first, second, third, and fourth distances corresponding to each speech segment and the text to be synthesized are weighted and summed to determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized. For example, the first prosodic feature vector can be represented as:

[0137] pv a =(μ 1a ,σ 1a ,μ 2a ,σ 2a ,μ 3a ,σ 3a ,lpva )

[0138] The second prosodic feature can be represented as:

[0139] pv b =(μ 1b ,σ 1b ,μ 2b ,σ 2b ,μ 3b ,σ 3b ,lpv b )

[0140] The distance D(pv) between the first prosodic feature and the second prosodic feature a ,pv b This can be represented as:

[0141]

[0142] Where KL represents the KL divergence, MAE represents the mean absolute error, and λ1, λ2, λ3, and λ4 are weights.

[0143] As described above, the embodiments of the present invention calculate the distance independently for features such as fundamental frequency, energy, speech rate, and latent vectors, and then perform a weighted summation. This allows explicit acoustic features such as fundamental frequency and energy to complement the deep representation of latent vectors, preserving the interpretability of physical quantities while capturing nonlinear prosodic styles and avoiding the interference of a single feature's abnormality in subsequent similarity assessments. Furthermore, by adjusting the weights of each feature, it can be flexibly adapted to different scenarios.

[0144] Step 209: Based on the most similar speech segment, perform speech cloning on the text to be synthesized.

[0145] As described above, this embodiment of the invention segments the registered speech into multiple speech segments, selects the speech segment with the most similar prosodic features, and performs speech cloning with the text to be synthesized. This method can support registered speech segments up to tens of minutes long, and after speech cloning, it can generate speech with more natural rhythm and richer emotion, solving the technical problem of difficulty in balancing the length of the registered speech and the cloning effect in the existing technology. In addition, this embodiment of the invention uses a multi-dimensional input collaborative prediction of noise residuals, so that the text token sequence can guide the intonation profile in the noise residual prediction stage, and the speech feature vector can preserve the pronunciation style. The joint embedding of the two avoids single-modal bias and improves the naturalness and recognizability of the cloned speech. Furthermore, by independently calculating the distance of features such as fundamental frequency, energy, speech rate, and latent vectors and performing weighted summation, the explicit acoustic features such as fundamental frequency and energy are synergistically complementary with the deep representation of latent vectors. This preserves the interpretability of physical quantities and captures nonlinear prosodic style, avoiding the interference of single feature anomalies on the subsequent similarity evaluation.

[0146] This invention also provides a voice cloning device, such as... Figure 5 As shown, Figure 5 This is a schematic diagram of a voice cloning device provided in an embodiment of the present invention. The voice cloning device provided in this embodiment of the present invention includes:

[0147] The speech segmentation module 301 is used to acquire the registered speech and the text to be synthesized, and to divide the registered speech into multiple speech segments, each of which has an independent semantic meaning.

[0148] The prosodic feature extraction module 302 is used to extract the first prosodic feature of each speech segment and predict the second prosodic feature of the text to be synthesized; the first prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment, and the second prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment corresponding to the text to be synthesized.

[0149] The similarity determination module 303 is used to determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and to determine the speech segment with the highest similarity.

[0150] The speech cloning module 304 is used to perform speech cloning on the text to be synthesized based on the speech segment with the highest similarity.

[0151] The speech segmentation module 301 includes:

[0152] The text conversion submodule is used to extract the text content corresponding to the registered voice and obtain the registered text;

[0153] The text segmentation module is used to segment registered text into sentences based on semantic meaning, resulting in multiple first sentences;

[0154] The speech segmentation submodule is used to divide the registered speech into multiple speech segments based on the first statement.

[0155] The first prosodic feature includes a first fundamental frequency feature, a first energy feature, a first speech rate feature, and a first latent vector feature. The prosodic feature extraction module 302 includes:

[0156] The first feature extraction submodule is used to extract the first fundamental frequency feature, the first energy feature, and the first latent vector feature of each speech segment;

[0157] The character removal submodule is used to remove silent characters from the first statement of each sentence, so as to obtain the second statement corresponding to the first statement of each sentence;

[0158] The character pronunciation determination submodule is used to determine the number of characters in the second statement of each sentence and the pronunciation duration of each character;

[0159] The speech rate feature extraction submodule is used to determine the first speech rate feature of each speech segment based on the number of characters in the second utterance belonging to each speech segment and the pronunciation duration of each character.

[0160] Specifically, the speech rate feature extraction submodule is used to determine the mean and standard deviation of the character pronunciation duration of each second sentence based on the number of characters in each second sentence and the pronunciation duration of each character; and to obtain the first speech rate feature of each speech segment based on the mean and standard deviation of the character pronunciation duration of each second sentence belonging to each speech segment.

[0161] The prosodic feature extraction module 302 includes:

[0162] The text sequence extraction submodule is used to input the text to be synthesized into a pre-trained text encoder and extract the text token sequence corresponding to the text to be synthesized.

[0163] The prosodic feature extraction submodule is used to input the text token sequence into the pre-trained prosodic extraction model so that the prosodic extraction model can obtain the initial noise vector and then perform inverse reasoning. During the inverse reasoning process, the noise residual is predicted based on the current noise vector, the preset time step, the text token sequence, and the preset speech feature vector. The noise residual is then gradually denoised and the noise vector is updated until the noise vector is completely denoised to obtain the second prosodic feature.

[0164] The prosody extraction model predicts noise residuals based on the current noise vector, a preset time step, a text token sequence, and a preset speech feature vector, including:

[0165] The prosody extraction model extracts features from the current noise vector to obtain the first feature vector;

[0166] The prosody extraction model fuses a preset time step with the first feature vector to obtain a first fused vector;

[0167] The prosody extraction model extracts features from the first fusion vector to obtain the second feature vector;

[0168] The prosody extraction model fuses the preset speech feature vector and the second feature vector to obtain the second fused vector;

[0169] The prosody extraction model extracts features from the second fusion vector to obtain a third feature vector;

[0170] The prosody extraction model fuses the text token sequence and the third feature vector to obtain the third fused vector;

[0171] The prosody extraction model extracts features from the third fusion vector to obtain the predicted noise residual.

[0172] The first prosodic feature includes a first fundamental frequency feature, a first energy feature, a first speech rate feature, and a first latent vector feature; the second prosodic feature includes a second fundamental frequency feature, a second energy feature, a second speech rate feature, and a second latent vector feature; and the text matching module 303 includes:

[0173] The first distance determination submodule is used to determine the first distance between the first fundamental frequency feature of each speech segment and the second fundamental frequency feature of the text to be synthesized.

[0174] The second distance determination submodule is used to determine the second distance between the first energy feature of each speech segment and the second energy feature of the text to be synthesized.

[0175] The third distance determination submodule is used to determine the third distance between the first speech rate feature of each speech segment and the second speech rate feature of the text to be synthesized.

[0176] The fourth distance determination submodule is used to determine the fourth distance between the first latent vector features of each speech segment and the second latent vector features of the text to be synthesized.

[0177] The weighted summation submodule is used to perform weighted summation on the first distance, second distance, third distance and fourth distance corresponding to each speech segment to obtain the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized.

[0178] The voice cloning device provided in this embodiment of the invention is included in a terminal device and can be used to execute the voice cloning method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0179] It is worth noting that in the embodiments of the above-mentioned voice cloning device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.

[0180] This embodiment also provides a terminal device, such as Figure 6 As shown, Figure 6 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. The terminal device 40 includes a processor 400 and a memory 401.

[0181] Memory 401 is used to store computer program 402 and transfer computer program 402 to processor 400;

[0182] The processor 400 is used to execute the steps in one of the above-described embodiments of the voice cloning method according to the instructions in the computer program 402.

[0183] For example, computer program 402 may be divided into one or more modules / units, one or more of which are stored in memory 401 and executed by processor 400 to complete this application. One or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 402 in terminal device 40.

[0184] Terminal device 40 can be a computing device such as a desktop computer, laptop, handheld computer, or cloud server. Terminal device 40 may include, but is not limited to, processor 400 and memory 401. Those skilled in the art will understand that... Figure 6 This is merely an example of terminal device 40 and does not constitute a limitation on terminal device 40. It may include more or fewer components than shown, or combine certain components, or different components. For example, terminal device 40 may also include input / output devices, network access devices, buses, etc.

[0185] The processor 400 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0186] The memory 401 can be an internal storage unit of the terminal device 40, such as a hard disk or RAM of the terminal device 40. The memory 401 can also be an external storage device of the terminal device 40, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the terminal device 40. Furthermore, the memory 401 can include both internal and external storage units of the terminal device 40. The memory 401 is used to store computer programs and other programs and data required by the terminal device 40. The memory 401 can also be used to temporarily store data that has been output or will be output.

[0187] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0188] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.

[0189] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0190] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0191] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing computer programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0192] This invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a voice cloning method, the method comprising the following steps:

[0193] The system acquires the registered speech and the text to be synthesized, and divides the registered speech into multiple speech segments, each of which has an independent semantic meaning.

[0194] Extract the first prosodic feature of each speech segment and predict the second prosodic feature of the text to be synthesized; the first prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment, and the second prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment corresponding to the text to be synthesized.

[0195] Determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and identify the speech segment with the highest similarity.

[0196] Based on the most similar speech segments, speech cloning is performed on the text to be synthesized.

[0197] Note that the above are merely preferred embodiments and the technical principles applied in this invention. Those skilled in the art will understand that the embodiments of this invention are not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the protection scope of this invention. Therefore, although the embodiments of this invention have been described in detail above, the embodiments of this invention are not limited to the above embodiments. More other equivalent embodiments may be included without departing from the concept of the embodiments of this invention, and the scope of the embodiments of this invention is determined by the scope of the appended claims.

Claims

1. A voice cloning method, characterized in that, The method includes: The registered speech and the text to be synthesized are obtained, and the registered speech is divided into multiple speech segments, each of which has an independent semantic meaning. Extract the first prosodic feature of each speech segment and predict the second prosodic feature of the text to be synthesized; the first prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment, and the second prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment corresponding to the text to be synthesized. Determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and determine the speech segment with the highest similarity; Based on the most similar speech segment, the text to be synthesized is cloned.

2. The voice cloning method according to claim 1, characterized in that, The step of dividing the registered speech into multiple speech segments includes: Extract the text content corresponding to the registered voice to obtain the registration text; The registered text is segmented into sentences based on semantic meaning to obtain multiple first sentences; Based on the first statement, the registered speech is divided into multiple speech segments.

3. The voice cloning method according to claim 2, characterized in that, The first prosodic feature includes a first fundamental frequency feature, a first energy feature, a first speech rate feature, and a first latent vector feature. Extracting the first prosodic feature for each speech segment includes: Extract the first fundamental frequency feature, the first energy feature, and the first latent vector feature of each speech segment; Remove the silent characters from the first statement of each sentence to obtain the second statement corresponding to the first statement of each sentence; Determine the number of characters in each sentence of the second statement and the duration of pronunciation for each character; A first speech rate feature for each speech segment is determined based on the number of characters in the second statement belonging to each speech segment and the pronunciation duration of each character.

4. The voice cloning method according to claim 3, characterized in that, The determination of the first speech rate feature for each speech segment based on the number of characters in the second utterance belonging to each speech segment and the pronunciation duration of each character includes: Based on the number of characters in each sentence of the second statement and the pronunciation duration of each character, determine the mean pronunciation duration and standard deviation of the character pronunciation duration in each sentence of the second statement; Based on the mean character pronunciation duration and standard deviation of character pronunciation duration for each of the second statements belonging to each of the speech segments, a first speech rate feature for each of the speech segments is obtained.

5. The voice cloning method according to claim 1, characterized in that, The prediction of the second prosodic feature of the text to be synthesized includes: The text to be synthesized is input into a pre-trained text encoder to extract the text token sequence corresponding to the text to be synthesized; The text token sequence is input into a pre-trained prosody extraction model so that the prosody extraction model obtains an initial noise vector and then performs reverse inference. During the reverse inference process, the noise residual is predicted based on the current noise vector, the preset time step, the text token sequence, and the preset speech feature vector. The noise residual is then gradually denoised and the noise vector is updated until the noise vector is completely denoised to obtain the second prosody feature.

6. The voice cloning method according to claim 5, characterized in that, The prosody extraction model predicts noise residuals based on the current noise vector, a preset time step, the text token sequence, and a preset speech feature vector, including: The prosody extraction model extracts features from the current noise vector to obtain a first feature vector; The prosody extraction model fuses a preset time step with the first feature vector to obtain a first fused vector; The prosody extraction model extracts features from the first fusion vector to obtain a second feature vector; The prosody extraction model fuses the preset speech feature vector and the second feature vector to obtain the second fused vector; The prosody extraction model extracts features from the second fusion vector to obtain a third feature vector; The prosody extraction model fuses the text token sequence and the third feature vector to obtain a third fused vector; The prosody extraction model extracts features from the third fusion vector to obtain the predicted noise residual.

7. The voice cloning method according to claim 1, characterized in that, The first prosodic feature includes a first fundamental frequency feature, a first energy feature, a first speech rate feature, and a first latent vector feature; the second prosodic feature includes a second fundamental frequency feature, a second energy feature, a second speech rate feature, and a second latent vector feature; determining the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized includes: Determine a first distance between a first fundamental frequency feature of each speech segment and a second fundamental frequency feature of the text to be synthesized; Determine a second distance between a first energy feature of each speech segment and a second energy feature of the text to be synthesized; Determine a third distance between a first speech rate feature of each speech segment and a second speech rate feature of the text to be synthesized; Determine a fourth distance between the first latent vector feature of each speech segment and the second latent vector feature of the text to be synthesized; The first distance, second distance, third distance, and fourth distance corresponding to each speech segment are weighted and summed to obtain the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized.

8. A voice cloning device, characterized in that, The device includes: The speech segmentation module is used to acquire the registered speech and the text to be synthesized, and to divide the registered speech into multiple speech segments, each of which has an independent semantic meaning. The prosodic feature extraction module is used to extract the first prosodic feature of each speech segment and predict the second prosodic feature of the text to be synthesized; the first prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment, and the second prosodic feature is the feature of suprasegmental speech phenomenon of the speech segment corresponding to the text to be synthesized. A similarity determination module is used to determine the similarity between the first prosodic feature of each speech segment and the second prosodic feature of the text to be synthesized, and to determine the speech segment with the highest similarity. The speech cloning module is used to perform speech cloning on the text to be synthesized based on the speech segment with the highest similarity.

9. A terminal device, characterized in that, The terminal device includes a processor and a memory; The memory is used to store computer programs and to transfer the computer programs to the processor; The processor is configured to execute a voice cloning method as described in any one of claims 1-7 according to instructions in the computer program.

10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform a voice cloning method as described in any one of claims 1-7.