Method and apparatus for speech style transfer and synthesis, electronic device, and storage medium
Through the speech style transfer synthesis model, the prosody predictor is used to generate target speech audio, which solves the problems of uncontrollable and low efficiency of speech style transfer in the existing technology, achieves high-quality speech style transfer and reduces recording costs.
Patent Information
- Application Number
- PCT/CN2024/075793
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-07
- Filing Date
- 2024-02-04
- Publication Date
- 2024-10-03
AI Technical Summary
In the existing speech synthesis technology, the speech style migration process is uncontrollable, resulting in poor synthetic speech audio effects, and the inability to freely migrate to the speech style of any speaker, resulting in low efficiency.
By obtaining the phoneme sequence of the speech text to be synthesized and the object speech embedding vector of the target timbre, input it into the speech style transfer synthesis model to generate the target speech audio, and use the prosody predictor to predict the phoneme pronunciation duration, pitch and energy characteristics to achieve the target speech Style control.
It achieves controllability and efficient migration of voice styles, reduces audio recording costs, and improves the authenticity and quality of synthesized speech.
Smart Images

Figure CN2024075793_03102024_PF_FP_ABST
Abstract
Description
Speech style transfer synthesis method and device, electronic device, and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] The present disclosure claims priority to Chinese patent application number 202310134171.2 filed on February 7, 2023, entitled “Speech Style Transfer Synthesis Method and Device, Electronic Device, and Storage Medium,” the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of speech synthesis technology, and in particular to a speech style transfer synthesis method, a speech style transfer synthesis device, an electronic device, and a computer-readable storage medium. Background Art
[0004] With the advancement of science and technology, speech synthesis (Speech Synthesis) technology is becoming increasingly popular. Speech synthesis refers to the technology of generating artificial speech through mechanical or electronic methods. Style transfer in speech synthesis involves modifying the target speaker's speaking style while preserving their timbre, adapting the synthesized speech style to that of the target speaker.
[0005] Currently, in related speech synthesis style transfer schemes, either the speech style of the speech synthesis process is uncontrollable, resulting in poor quality of the synthesized speech audio after style transfer, or the style can only be transferred to the style of the recorded speech and cannot be transferred to the speech style of any speaker, resulting in poor efficiency of speech synthesis style transfer.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field.
[0007] Summary of the Invention
[0008] According to a first aspect of an embodiment of the present disclosure, a speech style transfer synthesis method is provided, comprising:
[0009] Obtaining a speech text to be synthesized, and determining a phoneme sequence corresponding to the speech text to be synthesized;
[0010] determining a subject speech embedding vector having a target timbre;
[0011] Inputting the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate target speech audio;
[0012] The speech style transfer synthesis model is used to predict the prosodic features of the target speech style, and the speech style transfer synthesis model includes a prosodic predictor for generating the prosodic features. The target speech audio conforms to the target timbre and target speech style when played.
[0013] In some example embodiments of the present disclosure, based on the aforementioned solution, the speech style transfer synthesis model includes an encoder and a decoder;
[0014] The step of inputting the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate target speech audio includes:
[0015] Inputting the phoneme sequence into the encoder to obtain a phoneme sequence embedding vector;
[0016] Inputting the phoneme sequence embedding vector and the target speech embedding vector into the prosody predictor, and determining the prosodic features corresponding to the phoneme sequence embedding vector, wherein the prosodic features include phoneme pronunciation duration, phoneme pitch, and phoneme energy;
[0017] The prosodic features are input into the decoder to generate target speech audio.
[0018] In some exemplary embodiments of the present disclosure, based on the aforementioned solution, the prosody predictor includes a phoneme pronunciation duration predictor, a phoneme pitch predictor, and a phoneme energy predictor;
[0019] Inputting the phoneme sequence embedding vector and the object speech embedding vector into the prosody predictor and determining the prosodic features corresponding to the phoneme sequence embedding vector comprises:
[0020] Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme pronunciation duration predictor to determine the phoneme pronunciation duration;
[0021] Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme pitch predictor to determine the phoneme pitch;
[0022] Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme energy predictor to determine the phoneme energy;
[0023] Expanding the phoneme pronunciation duration to a frame-level phoneme pronunciation duration based on the prosody predictor;
[0024] The prosodic feature corresponding to the phoneme sequence embedding vector is determined according to the phoneme pronunciation duration, the phoneme pitch, and the phoneme energy at the frame level.
[0025] In some example embodiments of the present disclosure, based on the aforementioned solution, the method further includes:
[0026] Gaussian normalization is performed on the phoneme pitch and the phoneme energy.
[0027] In some example embodiments of the present disclosure, based on the aforementioned solution, the speech style transfer synthesis model is obtained through a style transfer training process, and the style transfer training process includes:
[0028] Obtaining a pre-trained speech synthesis model, wherein the speech synthesis model is used to generate a first speech audio having a first timbre and a first speech style;
[0029] Acquire style transfer training data, the style transfer training data including training speech audio having a second timbre and a second voice style, and training speech text corresponding to the training speech audio;
[0030] Determining a training phoneme sequence corresponding to the training speech text, and determining training acoustic features and training prosodic features corresponding to the training speech audio;
[0031] performing style transfer training on the speech synthesis model according to the training phoneme sequence, the training acoustic features, and the training prosodic features to obtain a trained speech style transfer synthesis model;
[0032] The speech style transfer synthesis model is used to generate a second speech audio with a first timbre and a second speech style.
[0033] In some example embodiments of the present disclosure, based on the aforementioned solution, the speech style transfer synthesis model includes an encoder, a decoder, and a prosody predictor. The performing style transfer training on the speech synthesis model based on the training phoneme sequence, the training acoustic features, and the training prosody features includes:
[0034] Inputting the training phoneme sequence into the encoder to obtain a training phoneme embedding vector;
[0035] Inputting the training phoneme embedding vector and the object speech embedding vector corresponding to the first speech audio into the prosody predictor, and predicting the predicted prosody feature corresponding to the training phoneme embedding vector;
[0036] Inputting the predicted prosodic features and the training acoustic features into the decoder to obtain predicted speech audio;
[0037] The loss between the predicted prosody feature and the trained prosody feature is determined, parameters of the encoder, the decoder, and the target speech embedding vector are fixed, and parameters of the prosody predictor are updated according to the loss.
[0038] In some example embodiments of the present disclosure, based on the aforementioned scheme, the encoder and the decoder are both multi-layer feedforward neural networks based on a self-attention mechanism.
[0039] According to a second aspect of an embodiment of the present disclosure, a speech style transfer synthesis apparatus is provided, comprising:
[0040] A phoneme sequence determination module is configured to obtain a speech text to be synthesized and determine a phoneme sequence corresponding to the speech text to be synthesized;
[0041] a target timbre determination module configured to determine an object speech embedding vector having a target timbre;
[0042] A speech audio generation module is configured to input the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate target speech audio;
[0043] The speech style transfer synthesis model is configured to predict the prosodic features of the target speech style, and the speech style transfer synthesis model includes a prosodic predictor configured to generate the prosodic features, and the target speech audio conforms to the target timbre and target speech style when played.
[0044] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, any one of the above-mentioned speech style transfer synthesis methods is implemented.
[0045] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the speech style transfer synthesis method according to any one of the above items is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] FIG1 schematically shows a schematic diagram of a speech style transfer synthesis method according to some embodiments of the present disclosure;
[0047] FIG2 schematically shows a flow chart of generating target speech audio according to some embodiments of the present disclosure;
[0048] FIG3 schematically shows a diagram of phoneme energy according to some embodiments of the present disclosure;
[0049] FIG4 schematically illustrates a diagram of phoneme pitch according to some embodiments of the present disclosure;
[0050] FIG5 schematically shows a flowchart of determining prosodic features according to some embodiments of the present disclosure;
[0051] FIG6 schematically shows a flow chart of style transfer training according to some embodiments of the present disclosure;
[0052] FIG7 schematically illustrates a flow chart of performing style transfer training on a speech synthesis model according to some embodiments of the present disclosure;
[0053] FIG8 schematically shows a schematic diagram of the principles of a speech style transfer synthesis model according to some embodiments of the present disclosure;
[0054] FIG9 schematically shows a structural diagram of a prosody predictor according to some embodiments of the present disclosure;
[0055] FIG10 schematically shows a schematic structural diagram of a phoneme pronunciation duration predictor, a phoneme pitch predictor, or a phoneme energy predictor according to some embodiments of the present disclosure;
[0056] FIG11 schematically shows a schematic diagram of a speech style transfer synthesis device according to some embodiments of the present disclosure;
[0057] FIG12 schematically shows a structural diagram of a computer system of an electronic device according to some embodiments of the present disclosure;
[0058] FIG13 schematically illustrates a diagram of a computer-readable storage medium according to some embodiments of the present disclosure.
[0059] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts. DETAILED DESCRIPTION
[0060] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art.
[0061] In addition, the described features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known methods, devices, implementations or operations are not shown or described in detail to avoid blurring various aspects of the present disclosure.
[0062] Furthermore, the drawings are schematic illustrations only and are not necessarily drawn to scale. The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically separate entities. In other words, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0063] A related solution is to transfer the speech synthesis style based on multi-style recording data of a single speaker. This usually requires parallel training corpus. That is, for the same speech text, it is necessary to record speech audio with different speech styles, or to record recording data with different speech styles based on different speech texts. In this way, for the same speaker, there will be recording data of different styles. Then, the speech style-related embedding vector (Embedding) can be used to control the speech style to be used in the final synthesis, thereby achieving style transfer.
[0064] However, this solution requires recording different styles of speech for the same speaker, which is costly. Moreover, since it is difficult for the same speaker to perform in a realistic and natural style, the recorded style data is usually not natural and realistic enough. Moreover, this method is limited by the limited style data recorded by the speaker and can only perform style conversion (migration) of a few styles that have already been recorded, and cannot freely migrate to the style of other speakers.
[0065] Another related approach involves style transfer using sentence references based on GST. The speech synthesis backbone network is an end-to-end, sequence-to-sequence speech synthesis system. This system incorporates an audio encoder to obtain a global prosodic representation of the audio. This prosodic representation vector is added to the text sequence representation vector obtained by the text encoder in the speech synthesis system backbone network to produce a text representation containing global prosodic information. The decoder then uses this text representation, containing global prosodic features, to predict the acoustic features of the final audio through an attention mechanism. During training, the audio encoder input is the audio corresponding to the current input text. During inference, the audio encoder input can be replaced with speech of the target prosodic style.
[0066] However, this solution obtains a global prosodic feature, which has little impact on the final synthesized prosodic effect and can only play a certain role, and cannot achieve fine-grained style control; the style transfer result of this solution will be close to the speech style to be transferred to a certain extent, but the quality of the synthesized speech is poor, and this solution requires a large amount of data of different styles to train the model so that the model can learn effective prosodic representation. When the amount of data is small, the model performance will be very poor.
[0067] Another related approach proposes a style transfer scheme using single-speaker, single-style data. This scheme employs a sequence-to-sequence-based end-to-end speech synthesis neural network as the backbone neural network. Based on this, the scheme combines speech style embeddings with the text representation obtained by the backbone network to predict prosodic features using a phoneme-level prosody predictor. The predicted prosodic features are then passed through a multi-scale prosody encoder to obtain prosodic representations at different scales. These phoneme-level prosodic representations are then added to the backbone network's text representation, resulting in a text representation that includes phoneme-level prosodic representations. Finally, the backbone network uses an attention mechanism to predict the final acoustic features. The prosody predictor and the backbone network are trained together, predicting features such as pitch, energy, and phoneme pronunciation duration.
[0068] However, since this solution uses a sequence-to-sequence network structure, the synthesis process is uncontrollable and prone to problems such as missed sounds and repeated pronunciations caused by the attention mechanism. After the rhythmic feature passes through the multi-scale encoder, its physical meaning cannot be explicitly controlled, resulting in inflexible network.
[0069] Another related solution introduces prosodic bottleneck features into a Sequence-to-Sequence backbone network, and uses a speech style embedding to control the bottleneck features derived from the prosodic information of different speech styles. During inference, this solution first obtains the bottleneck features of the target style using the target style, the speaker ID corresponding to that style, and the text. It then uses the target speaker ID, style, and text to obtain a text representation, and then combines the obtained bottleneck features with the target style to perform style transfer.
[0070] However, this solution requires single-speaker multi-style training prediction. Although it also supports single-speaker single-style data, the model needs to be pre-trained with single-speaker multi-style data first. At the same time, the process of style conversion in this solution is relatively cumbersome. The encoder needs to run twice, and the results generated in the middle of the neural network need to be spliced, which is very inflexible. Moreover, because the neural network has a combination of text features, speaker IDs and voice style IDs that have not been seen during training during inference, it will lead to inconsistencies between inference and training, which is ultimately the reason for the poor style transfer effect.
[0071] Based on one or more problems in the related art, in this example embodiment, a speech style transfer synthesis method is first provided. The speech style transfer synthesis method can be applied to terminal devices, such as mobile phones, computers and other electronic devices, and can also be applied to servers. This embodiment does not specifically limit this. The following is an example of the server executing the method. Figure 1 schematically shows a schematic diagram of the speech style transfer synthesis method process according to some embodiments of the present disclosure. Referring to Figure 1, the speech style transfer synthesis method may include the following steps:
[0072] Step S110, obtaining a speech text to be synthesized, and determining a phoneme sequence corresponding to the speech text to be synthesized;
[0073] Step S120, determining an embedding vector of the target speech with the target timbre;
[0074] Step S130, inputting the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate target speech audio;
[0075] The speech style transfer synthesis model is used to predict the prosodic features of the target speech style, and the speech style transfer synthesis model includes a prosodic predictor for generating the prosodic features. The target speech audio conforms to the target timbre and target speech style when played.
[0076] According to the speech style transfer synthesis method in this example embodiment, on the one hand, through the speech style transfer synthesis model including a prosody predictor, the input speech text to be synthesized can be converted into a target speech audio with a target timbre and a target speech style, thereby realizing the migration of any speech style to any timbre, making the speech style in the speech style transfer scheme controllable, effectively improving the style transfer efficiency of speech synthesis, eliminating the need to record speech audio with different speech styles for the same speaker, and reducing the audio recording cost; on the other hand, through the prosody predictor, the effective features of the speech style can be effectively learned, making the speech style simulated by the synthesized speech data more realistic, and effectively improving the quality of the target speech audio after style transfer synthesis.
[0077] The following further describes the speech style transfer synthesis method in this exemplary embodiment.
[0078] In step S110 , a speech text to be synthesized is obtained, and a phoneme sequence corresponding to the speech text to be synthesized is determined.
[0079] In an exemplary embodiment of the present disclosure, the text to be synthesized into speech refers to text data that matches the speech content simulated by adding features such as timbre and speech style. For example, the text to be synthesized into speech can be "Hello everyone, thank you for your support". Based on the phonemes of the text to be synthesized into speech and the timbre and speech style of the target speaker, etc., the speech audio of the target speaker reading the text to be synthesized into speech can be obtained.
[0080] A phoneme is the smallest speech unit divided according to the natural attributes of speech. Phonemes can be analyzed based on the pronunciation actions in a syllable, and one action constitutes one phoneme. For example, phonemes can be divided into two major categories: vowels and consonants, or they can be divided into the finals and initials of Chinese pinyin. For example, the Chinese syllable "啊(ā)" has only one phoneme, "爱(ài)" has two phonemes, and "代(dài)" has three phonemes, etc.
[0081] A phoneme sequence refers to the sequence obtained by performing phoneme analysis on the text to be synthesized into speech. For example, if the text to be synthesized into speech is "大家好", the corresponding phoneme sequence can be {d, a, j, i, a, h, ao}. Of course, this is only an illustrative example, and the present exemplary embodiment is not limited thereto.
[0082] In step S120, an object speech embedding vector with the target timbre is determined.
[0083] In an exemplary embodiment of the present disclosure, timbre refers to characteristic data that represents different sounds in terms of waveform or vibration. For example, the timbre of a person can be a shrill timbre, a deep timbre, a thick timbre, etc. The target timbre can be the timbre of a certain speaker customarily set during the speech synthesis process or a mechanical timbre artificially adjusted. The present exemplary embodiment does not specifically limit the type of the target timbre.
[0084] An object speech embedding vector refers to an embedding vector that represents the target timbre. Each object speech embedding vector can correspond to a speaker ID. During the training process, multiple object speech embedding vectors with different timbres can be generated. During the speech synthesis process, different object speech embedding vectors can be selected to make the synthesized speech audio have the target timbre.
[0085] Based on the user's selection, an object speech embedding vector with the target timbre can be determined. For example, if the user selects to synthesize speech data with the timbre of "Speaker A", then an object speech embedding vector with the timbre of "Speaker A" can be determined.
[0086] In step S130, the phoneme sequence and the object speech embedding vector are input into a speech style transfer synthesis model to generate the target speech audio.
[0087] In an exemplary embodiment of the present disclosure, a speech style transfer synthesis model refers to a pre-trained deep learning model that can be used to predict the prosodic features of the target speech style. For example, the speech style transfer synthesis model can be an end-to-end network architecture based on an encoder-decoder network structure. Of course, other types of deep learning models are also possible, and this exemplary embodiment does not specifically limit this. The speech style transfer synthesis model can include a prosodic predictor for generating prosodic features.
[0088] Target speech audio refers to audio data that conforms to the target timbre and target speech style when played. The target timbre can be added to the speech text to be synthesized through the object speech embedding vector. The target speech style can be added to the speech text to be synthesized through the speech style transfer synthesis model with a prosody predictor, so that the target speech audio has the target timbre and target speech style, but the target timbre and target speech style belong to different speakers respectively, realizing the free combination of any type of timbre and any type of speech style, making the speech style in the speech style transfer scheme controllable, effectively improving the style transfer efficiency of speech synthesis, and eliminating the need to record speech audio with different speech styles for the same speaker, thereby reducing the cost of audio recording; at the same time, the prosody predictor can also effectively learn the effective features of the speech style, making the speech style simulated by the synthesized speech data more realistic, and effectively improving the quality of the target speech audio after style transfer synthesis.
[0089] Next, steps S110 to S130 will be described in detail.
[0090] In an exemplary embodiment of the present disclosure, the speech style transfer synthesis model may further include an encoder and a decoder; both the encoder and the decoder may be a network structure of a multi-layer feedforward neural network (FFN) based on a self-attention mechanism, or, of course, a network structure based on a recurrent neural network (RNN), but this exemplary embodiment is not limited thereto.
[0091] Specifically, the steps in FIG2 may be used to input the phoneme sequence and the target speech embedding vector into the speech style transfer synthesis model to generate the target speech audio. Referring to FIG2 , the steps may include:
[0092] Step S210, inputting the phoneme sequence into the encoder to obtain a phoneme sequence embedding vector;
[0093] Step S220: inputting the phoneme sequence embedding vector and the target speech embedding vector into the prosody predictor to determine the prosody features corresponding to the phoneme sequence embedding vector, wherein the prosody features include phoneme pronunciation duration, phoneme pitch, and phoneme energy;
[0094] Step S230: input the prosodic features into the decoder to generate target speech audio.
[0095] The phoneme duration refers to the duration of each phoneme in the speech audio to be output.
[0096] Phoneme pitch refers to various sounds of different pitches, that is, the height of the pronunciation of the phoneme. It is one of the basic characteristics of sound. When the speed of sound is constant, the pitch of the sound is determined by the frequency and wavelength of the mechanical wave. For example, when the frequency is high and the wavelength is short, the sound is "high". Conversely, when the frequency is low and the wavelength is long, the sound is "low".
[0097] Phoneme energy refers to the energy characteristics contained in the sound during the propagation process. Phoneme energy can be determined through audio waveform graph, audio feature graph, and superimposed feature graph of audio waveform graph and audio feature graph.
[0098] Figure 3 schematically shows a schematic diagram of phoneme energy according to some embodiments of the present disclosure, and Figure 4 schematically shows a schematic diagram of phoneme pitch according to some embodiments of the present disclosure. Referring to Figures 3 and 4, the characteristics of phoneme energy may include an audio waveform graph 310, an audio feature graph 320, and a superimposed feature graph 330 of the audio waveform graph 310 and the audio feature graph 320. The phoneme energy can be determined through the audio waveform graph 310, the audio feature graph 320, and the superimposed feature graph 330; the phoneme pitch can include a Mel-spectrogram 410, and the phoneme pitch can be determined through the Mel-spectrogram 410.
[0099] Specifically, the prosody predictor may include a phoneme pronunciation duration predictor, a phoneme pitch predictor, and a phoneme energy predictor.
[0100] Referring to the steps in FIG. 5 , the phoneme sequence embedding vector and the target speech embedding vector may be input into the prosody predictor to determine the prosodic features corresponding to the phoneme sequence embedding vector. Referring to FIG. 5 , the steps may specifically include:
[0101] Step S510, inputting the phoneme sequence embedding vector and the target speech embedding vector into the phoneme pronunciation duration predictor to determine the phoneme pronunciation duration;
[0102] Step S520, inputting the phoneme sequence embedding vector and the target speech embedding vector into the phoneme pitch predictor to determine the phoneme pitch;
[0103] Step S530, inputting the phoneme sequence embedding vector and the target speech embedding vector into the phoneme energy predictor to determine the phoneme energy;
[0104] Step S540, expanding the phoneme pronunciation duration to a frame-level phoneme pronunciation duration based on the prosody predictor;
[0105] Step S550 : determining the prosodic feature corresponding to the phoneme sequence embedding vector according to the phoneme pronunciation duration, the phoneme pitch, and the phoneme energy at the frame level.
[0106] Among them, the phoneme pronunciation duration predictor refers to a network structure used to characterize the learning phoneme pronunciation duration characteristics, the phoneme pitch predictor refers to a network structure used to characterize the learning phoneme pitch characteristics, and the phoneme energy predictor refers to a network structure used to characterize the learning phoneme energy characteristics.
[0107] Optionally, the phoneme pronunciation duration predictor, the phoneme pitch predictor, and the phoneme energy predictor can be predictors of the same structure. For example, the phoneme pronunciation duration predictor, the phoneme pitch predictor, and the phoneme energy predictor can all be prediction network structures based on convolutional neural networks (CNNs); of course, different network structures can also be designed based on the different characteristic change characteristics of phoneme pronunciation duration, phoneme pitch, and phoneme energy, and this example embodiment does not specifically limit this.
[0108] In an exemplary embodiment of the present disclosure, the speech style transfer synthesis model may be obtained through a style transfer training process. The style transfer training process may be represented by the steps in FIG6 . Referring to FIG6 , the process may specifically include:
[0109] Step S610: obtaining a pre-trained speech synthesis model, wherein the speech synthesis model is used to generate a first speech audio having a first timbre and a first voice style;
[0110] Step S620: Acquire style transfer training data, where the style transfer training data includes training speech audio with a second timbre and a second voice style, and training speech text corresponding to the training speech audio;
[0111] Step S630, determining a training phoneme sequence corresponding to the training speech text, and determining training acoustic features and training prosodic features corresponding to the training speech audio;
[0112] Step S640, performing style transfer training on the speech synthesis model based on the training phoneme sequence, the training acoustic features, and the training prosodic features to obtain a trained speech style transfer synthesis model;
[0113] The trained speech style transfer synthesis model can be used to generate a second speech audio with a first timbre and a second speech style.
[0114] The first timbre refers to the timbre of the speaker corresponding to the training data used when training the speech synthesis model, and the first voice style refers to the speaking voice style corresponding to the training data used when training the speech synthesis model. For example, the first timbre and the first voice style can be the sound characteristics corresponding to speaker A; the second timbre and the second voice style can be the timbre and voice style of speaker B who has different voice characteristics from speaker A.
[0115] It is understandable that the “first” and “second” in this exemplary embodiment are only used to distinguish different voice timbres and voice styles, and do not have any special meanings and should not impose any special limitations on this exemplary embodiment.
[0116] The speech synthesis model and the speech style transfer synthesis model are essentially the same model, but they are in different stages. Specifically, in the first stage, the speech synthesis model can only generate speech audio that conforms to the timbre and speech style of speaker A in the training data. In the second stage, the speech synthesis model can be further trained using speaker B's training data to transfer speaker B's speech style to the timbre of speaker A, thereby obtaining a speech style transfer synthesis model. The trained speech style transfer synthesis model can synthesize speech data with the timbre of speaker A and the speech style of speaker B based on the speech text.
[0117] Specifically, the speech synthesis model or the speech style transfer synthesis model may include an encoder, a decoder, and a prosody predictor. The steps in FIG7 may be used to implement style transfer training for the speech synthesis model based on the training phoneme sequence, the training acoustic features, and the training prosody features. Referring to FIG7 , the steps may include:
[0118] Step S710, inputting the training phoneme sequence into the encoder to obtain a training phoneme embedding vector;
[0119] Step S720: Input the training phoneme embedding vector and the target speech embedding vector corresponding to the first speech audio into the prosody predictor to predict the predicted prosody features corresponding to the training phoneme embedding vector;
[0120] Step S730, inputting the predicted prosodic features and the trained acoustic features into the decoder to obtain predicted speech audio;
[0121] Step S740 , determining the loss between the predicted prosodic features and the trained prosodic features, fixing the parameters of the encoder, the decoder, and the target speech embedding vector, and updating the parameters of the prosody predictor according to the loss.
[0122] Among them, when performing the second speech style transfer on the first timbre, the parameters of the encoder, decoder and object speech embedding vector representing the speaker's timbre in the speech synthesis model or the speech style transfer synthesis model need to be fixed and not updated to ensure that the first timbre does not change. When performing style transfer, only the parameters in the prosody predictor responsible for predicting prosody features are updated, such as the parameters of the phoneme pronunciation duration predictor, the phoneme pitch predictor and the phoneme energy predictor.
[0123] By using data from the second voice style to disguise the current first voice, the prosody predictor actually uses the object speech embedding vector of the first voice when optimizing the prosody predictor. The prosody predictor then combines the text and the object speech embedding vector of the first voice to learn the prosodic features of the second-style data. During inference, the prosodic features of the second voice style are predicted using the text representation and the object speech embedding vector of the first voice. Finally, the prosodic features of the second voice style are combined to synthesize the first voice after style transfer. Since the object speech embedding vector of the first voice does not change during the style transfer process, and the encoder and decoder parameters do not change, the final synthesized sound still has the first voice. This means that the trained voice style transfer synthesis model can produce audio with both the first and second voice styles.
[0124] Optionally, the speech style transfer synthesis model can be a single-timbre speech synthesis system (Text To Speech, TTS). In this case, the speech style transfer synthesis model does not need to add the object speech embedding vector, and only the prosody predictor needs to be updated during training. The speech style transfer synthesis model can also be set as a multi-timbre speech synthesis system. In this case, speaker information is required, so the object speech embedding vector of the target timbre can be used to update the prosody predictor.
[0125] Optionally, during training, phoneme pitch and phoneme energy can be Gaussian normalized. This process eliminates any speaker-specific information from the phoneme pitch and energy corresponding to the training data. Therefore, Gaussian normalization eliminates any speaker information from the phoneme pitch and energy features, allowing them to represent only the overall prosodic performance. This effectively improves the accuracy of the target speech audio generated by the trained speech style transfer synthesis model, enhancing the audio quality of the synthesized speech.
[0126] Since speech synthesis systems implemented using the speech style transfer synthesis model rely on three factors that influence speech prosody: pitch, energy, and phoneme duration. Furthermore, extracting these three prosodic features doesn't require strict use of clean studio recordings; relatively accurate prosodic features can also be extracted from noisy real-world recordings found on the internet. While the extraction of pitch and energy features may be affected by noise, this has a minimal impact on feature extraction, and Gaussian normalization can be used to reduce the impact of noise on features. Furthermore, phoneme duration is obtained through forced alignment, a robust algorithm for noisy data. Based on these robust prosodic features, style transfer can be performed using noisy data from the internet for style feature extraction and transfer, ensuring the quality of the synthesized speech audio while reducing the cost of training data acquisition.
[0127] FIG8 schematically shows a principle diagram of a speech style transfer synthesis model according to some embodiments of the present disclosure.
[0128] As shown in Figure 8, before using the speech style transfer synthesis model, the speech text 801 to be synthesized can be preprocessed to obtain a phoneme sequence 802 corresponding to the speech text 801 to be synthesized; the object speech embedding vector 804 can be determined based on the speaking object ID 803 selected by the user; then the phoneme sequence 802 can be word embedded to obtain a phoneme sequence embedding vector 805, and the phoneme sequence embedding vector 805 is position-encoded by a position encoding unit 806. Position encoding allows the network to perceive the sequential position of the input sequence; the position-encoded phoneme sequence embedding vector is then input into an encoder 807, and the encoded phoneme sequence embedding vector and the object speech embedding vector 804 are jointly input into a prosody predictor 807 to determine the prosody features, and the prosody features are position-encoded by a position encoding unit 809, and the position-encoded prosody features are input into a decoder 810 to obtain the target speech audio 811.
[0129] FIG9 schematically shows a structural diagram of a prosody predictor according to some embodiments of the present disclosure.
[0130] 9 , the prosody predictor 910 may include a phoneme pronunciation duration predictor 920, a phoneme pitch predictor 930, a phoneme energy predictor 940, and a length adjuster 950. Specifically, the phoneme sequence embedding vector and the object voice embedding vector may be input into the phoneme pronunciation duration predictor 920 to determine the phoneme pronunciation duration; the phoneme sequence embedding vector and the object voice embedding vector may be input into the phoneme pitch predictor 930 to determine the phoneme pitch; the phoneme sequence embedding vector and the object voice embedding vector may be input into the phoneme energy predictor 940 to determine the phoneme energy; the phoneme pronunciation duration may be expanded to the phoneme pronunciation duration at the frame level based on the length adjuster 950; finally, the prosody predictor 910 may determine the prosodic features corresponding to the phoneme sequence embedding vector based on the phoneme pronunciation duration, phoneme pitch, and phoneme energy at the frame level.
[0131] FIG10 schematically shows a structural diagram of a phoneme pronunciation duration predictor, a phoneme pitch predictor, or a phoneme energy predictor according to some embodiments of the present disclosure.
[0132] As shown in reference figure 10, the network structures of the phoneme pronunciation duration predictor, the phoneme pitch predictor or the phoneme energy predictor can be the same. For example, the network structures of the phoneme pronunciation duration predictor, the phoneme pitch predictor or the phoneme energy predictor can all be network structure 1010, which may include a network layer 1020 consisting of a convolutional network ConvID and an activation function ReLU side, a network layer 1030 consisting of a normalization layer Layer Norm and a dropout layer Dropout, a network layer 1040 consisting of a convolutional network ConvID and an activation function ReLU side, a network layer 1050 consisting of a normalization layer Layer Norm and a dropout layer Dropout, and a linear layer Linear Layer 1060.
[0133] The target voice style is disguised as the target timbre, and the disguised voice data is used to train a prosody predictor, such as a prosody predictor for phoneme pronunciation duration, phoneme pitch, and phoneme energy, to achieve the style transfer of the target timbre. Through this data disguise method, this solution can transfer the style of the target timbre to any target voice style without changing the timbre at all, achieving a good style transfer effect while retaining the required original timbre. The parameters of the scheme are simple, easy to operate, and retain the network's very strong controllability.
[0134] The style transfer proposed in this solution can use noisy data from the internet, reducing the requirements for data quality. Unlike other solutions, style transfer no longer requires the use of clean laboratory recordings. Because this solution only needs to use the target style data to update the prosody predictor related to the speech style by disguising the target timbre, the prosodic features (pitch, energy, phoneme duration, etc.) extracted from this data are high-quality prosodic features even with noisy data from the internet, and will not affect the quality of the final synthesized speech audio, effectively ensuring the quality of the synthesized target speech audio.
[0135] It should be noted that although the steps of the method disclosed herein are depicted in a particular order in the accompanying drawings, this does not require or imply that the steps must be performed in that particular order, or that all steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one, and / or one step may be decomposed into multiple steps.
[0136] In addition, in this exemplary embodiment, a speech style transfer synthesis device is also provided. Referring to FIG11 , the speech style transfer synthesis device 1100 includes: a phoneme sequence determination module 1110, a target timbre determination module 1120, and a speech audio generation module 1130.
[0137] The phoneme sequence determination module 1110 is configured to obtain a speech text to be synthesized and determine a phoneme sequence corresponding to the speech text to be synthesized;
[0138] The target timbre determination module 1120 is configured to determine an embedding vector of the object speech having a target timbre;
[0139] The speech audio generation module 1130 is configured to input the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate target speech audio;
[0140] The speech style transfer synthesis model is configured to predict the prosodic features of the target speech style, and the speech style transfer synthesis model includes a prosodic predictor configured to generate the prosodic features, and the target speech audio conforms to the target timbre and target speech style when played.
[0141] In an exemplary embodiment of the present disclosure, based on the aforementioned solution, the speech style transfer synthesis model includes an encoder and a decoder; the speech audio generation module 1130 may include:
[0142] A phoneme sequence encoding unit may be configured to input the phoneme sequence into the encoder to obtain a phoneme sequence embedding vector;
[0143] A prosodic feature prediction unit may be configured to input the phoneme sequence embedding vector and the target speech embedding vector into the prosodic predictor, and determine the prosodic features corresponding to the phoneme sequence embedding vector, wherein the prosodic features include phoneme pronunciation duration, phoneme pitch, and phoneme energy;
[0144] The speech audio generation unit may be configured to input the prosodic features into the decoder to generate target speech audio.
[0145] In an exemplary embodiment of the present disclosure, based on the aforementioned solution, the prosody predictor includes a phoneme pronunciation duration predictor, a phoneme pitch predictor, and a phoneme energy predictor; the prosody feature prediction unit may be configured as follows:
[0146] Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme pronunciation duration predictor to determine the phoneme pronunciation duration;
[0147] Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme pitch predictor to determine the phoneme pitch;
[0148] Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme energy predictor to determine the phoneme energy;
[0149] Expanding the phoneme pronunciation duration to a frame-level phoneme pronunciation duration based on the prosody predictor;
[0150] The prosodic feature corresponding to the phoneme sequence embedding vector is determined according to the phoneme pronunciation duration, the phoneme pitch, and the phoneme energy at the frame level.
[0151] In an exemplary embodiment of the present disclosure, based on the above solution, the speech style transfer synthesis apparatus 1100 may further include a normalization module, which may be configured to:
[0152] Gaussian normalization is performed on the phoneme pitch and the phoneme energy.
[0153] In an exemplary embodiment of the present disclosure, based on the aforementioned solution, the speech style transfer synthesis model may be obtained through a style transfer training process. The speech style transfer synthesis apparatus 1100 may further include a style transfer training module. The style transfer training module may be configured to:
[0154] Obtaining a pre-trained speech synthesis model, wherein the speech synthesis model is configured to generate a first speech audio having a first timbre and a first speech style;
[0155] Acquire style transfer training data, the style transfer training data including training speech audio having a second timbre and a second voice style, and training speech text corresponding to the training speech audio;
[0156] Determining a training phoneme sequence corresponding to the training speech text, and determining training acoustic features and training prosodic features corresponding to the training speech audio;
[0157] performing style transfer training on the speech synthesis model according to the training phoneme sequence, the training acoustic features, and the training prosodic features to obtain a trained speech style transfer synthesis model;
[0158] The speech style transfer synthesis model is configured to generate a second speech audio having a first timbre and a second speech style.
[0159] In an exemplary embodiment of the present disclosure, based on the aforementioned solution, a speech style transfer synthesis model may include an encoder, a decoder, and a prosody predictor, and the style transfer training module may be configured as follows:
[0160] Inputting the training phoneme sequence into the encoder to obtain a training phoneme embedding vector;
[0161] Inputting the training phoneme embedding vector and the object speech embedding vector corresponding to the first speech audio into the prosody predictor, and predicting the predicted prosody feature corresponding to the training phoneme embedding vector;
[0162] Inputting the predicted prosodic features and the training acoustic features into the decoder to obtain predicted speech audio;
[0163] The loss between the predicted prosody feature and the trained prosody feature is determined, parameters of the encoder, the decoder, and the target speech embedding vector are fixed, and parameters of the prosody predictor are updated according to the loss.
[0164] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the encoder and the decoder can both be multi-layer feedforward neural networks based on the self-attention mechanism.
[0165] The specific details of each module of the above-mentioned speech style transfer synthesis device have been described in detail in the corresponding speech style transfer synthesis method, and therefore will not be repeated here.
[0166] It should be noted that although several modules or units of the speech style transfer synthesis device are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in a single module or unit. Conversely, the features and functions of a single module or unit described above can be further divided and embodied by multiple modules or units.
[0167] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-mentioned speech style transfer synthesis method is also provided.
[0168] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods, or program products. Therefore, various aspects of the present disclosure may be implemented in the following forms: a complete hardware embodiment, a complete software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, which may be collectively referred to herein as a "circuit," "module," or "system."
[0169] The electronic device 1200 according to this embodiment of the present disclosure is described below with reference to Figure 12. The electronic device 1200 shown in Figure 12 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0170] As shown in FIG12 , electronic device 1200 is implemented as a general-purpose computing device. Components of electronic device 1200 may include, but are not limited to, the aforementioned at least one processing unit 1210, the aforementioned at least one storage unit 1220, a bus 1230 connecting various system components (including storage unit 1220 and processing unit 1210), and a display unit 1240.
[0171] The storage unit stores a program code, and the program code can be executed by the processing unit 1210, so that the processing unit 1210 performs the steps described in the "Exemplary Method" section of the present specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 1210 can execute step S110 as shown in Figure 1, obtain the speech text to be synthesized, and determine the phoneme sequence corresponding to the speech text to be synthesized; step S120, determine the object speech embedding vector with the target timbre; step S130, input the phoneme sequence and the object speech embedding vector into the speech style transfer synthesis model to generate the target speech audio; wherein the speech style transfer synthesis model is used to predict the prosodic features of the target speech style, and the speech style transfer synthesis model includes a prosodic predictor for generating the prosodic features, and the target speech audio conforms to the target timbre and target speech style when played.
[0172] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1221 and / or a cache memory unit 1222 , and may further include a read-only memory unit (ROM) 1223 .
[0173] The storage unit 1220 may also include a program / utility 1224 having a set (at least one) of program modules 1225, such program modules 1225 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0174] The bus 1230 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0175] The electronic device 1200 can also communicate with one or more external devices 1270 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1200, and / or any device that enables the electronic device 1200 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication can occur via an input / output (I / O) interface 1250. Furthermore, the electronic device 1200 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 1260. As shown, the network adapter 1260 communicates with other modules of the electronic device 1200 via a bus 1230. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 1200, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0176] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0177] In exemplary embodiments of the present disclosure, a computer-readable storage medium is also provided, on which is stored a program product capable of implementing the aforementioned methods of this specification. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product comprising program code. When the program product is executed on a terminal device, the program code is configured to cause the terminal device to execute the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present disclosure.
[0178] Referring to FIG. 13 , a program product 1300 for implementing the above-described speech style transfer synthesis method according to an embodiment of the present disclosure is described. The program product 1300 may be a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0179] The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0180] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0181] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0182] The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0183] Furthermore, the above-mentioned figures are merely illustrative of the processes included in the methods according to exemplary embodiments of the present disclosure and are not intended to be limiting. It is readily understood that the processes illustrated in the above-mentioned figures do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0184] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0185] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow from the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the claims.
[0186] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A speech style transfer synthesis method, wherein: include: Acquire a speech text to be synthesized, and determine a phoneme sequence corresponding to the speech text to be synthesized; Determining a subject speech embedding vector having a target timbre; Inputting the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate target speech audio; Among them, the speech style transfer synthesis model is used to predict the prosodic features of the target speech style, the speech style transfer synthesis model includes a prosodic predictor for generating the prosodic features, and the target speech audio conforms to the target timbre and target speech style when played.
2. The speech style transfer synthesis method according to claim 1, wherein: The speech style transfer synthesis model includes an encoder and a decoder; The step of inputting the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate target speech audio comprises: Inputting the phoneme sequence into the encoder to obtain a phoneme sequence embedding vector; Inputting the phoneme sequence embedding vector and the object speech embedding vector into the prosody predictor, determining the prosody features corresponding to the phoneme sequence embedding vector, wherein the prosody features include phoneme pronunciation duration, phoneme pitch, and phoneme energy; The prosodic features are input into the decoder to generate target speech audio.
3. The speech style transfer synthesis method according to claim 2, wherein: The prosody predictor includes a phoneme pronunciation duration predictor, a phoneme pitch predictor and a phoneme energy predictor; The step of inputting the phoneme sequence embedding vector and the object speech embedding vector into the prosody predictor to determine the prosody feature corresponding to the phoneme sequence embedding vector comprises: Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme pronunciation duration predictor to determine the phoneme pronunciation duration; Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme pitch predictor to determine the phoneme pitch; Inputting the phoneme sequence embedding vector and the object speech embedding vector into the phoneme energy predictor to determine the phoneme energy; Expanding the phoneme pronunciation duration to a phoneme pronunciation duration at a frame level based on the prosody predictor; The prosodic feature corresponding to the phoneme sequence embedding vector is determined according to the phoneme pronunciation duration, the phoneme pitch and the phoneme energy at the frame level.
4. The speech style transfer synthesis method according to claim 2 or 3, wherein: The method further comprises: Gaussian normalization is performed on the phoneme pitch and the phoneme energy.
5. The speech style transfer synthesis method according to claim 1, wherein: The speech style transfer synthesis model is obtained through a style transfer training process, and the style transfer training process includes: Obtaining a pre-trained speech synthesis model, wherein the speech synthesis model is used to generate a first speech audio having a first timbre and a first speech style; Acquire style transfer training data, wherein the style transfer training data includes training speech audio with a second timbre and a second voice style, and training speech text corresponding to the training speech audio; Determining a training phoneme sequence corresponding to the training speech text, and determining a training acoustic feature and a training prosodic feature corresponding to the training speech audio; Performing style transfer training on the speech synthesis model according to the training phoneme sequence, the training acoustic features, and the training prosodic features to obtain a trained speech style transfer synthesis model; The speech style transfer synthesis model is used to generate a second speech with a first timbre and a second speech style. Audio.
6. The speech style transfer synthesis method according to claim 5, wherein: The speech style transfer synthesis model includes an encoder, a decoder and a prosody predictor, and performing style transfer training on the speech synthesis model according to the training phoneme sequence, the training acoustic features and the training prosody features, including: Inputting the training phoneme sequence into the encoder to obtain a training phoneme embedding vector; Inputting the training phoneme embedding vector and the object speech embedding vector corresponding to the first speech audio into the prosody predictor to predict the predicted prosody feature corresponding to the training phoneme embedding vector; Inputting the predicted prosodic features and the trained acoustic features into the decoder to obtain predicted speech audio; The loss between the predicted prosody feature and the trained prosody feature is determined, parameters of the encoder, the decoder and the object speech embedding vector are fixed, and parameters of the prosody predictor are updated according to the loss.
7. The speech style transfer synthesis method according to claim 2 or 6, wherein: The encoder and the decoder are both multi-layer feedforward neural networks based on a self-attention mechanism.
8. A speech style transfer synthesis device, wherein: include: A phoneme sequence determination module is configured to obtain a speech text to be synthesized and determine a phoneme sequence corresponding to the speech text to be synthesized; A target timbre determination module is configured to determine an object speech embedding vector having a target timbre; A speech audio generation module is configured to input the phoneme sequence and the target speech embedding vector into a speech style transfer synthesis model to generate a target speech audio; Among them, the speech style transfer synthesis model is configured to predict the prosodic features of the target speech style, the speech style transfer synthesis model includes a prosodic predictor configured to generate the prosodic features, and the target speech audio conforms to the target timbre and target speech style when played.
9. An electronic device, comprising: processor; as well as A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the speech style transfer synthesis method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the speech style transfer synthesis method according to any one of claims 1 to 7 is implemented.
