Voice conversion method, device and equipment and storage medium thereof
Through the pre-trained feature decoupling and fusion model, speech features are extracted and fused, which solves the complex problem of speech conversion in the existing technology, achieves fast and high-quality speech conversion, and is suitable for financial customer service services.
Patent Information
- Application Number
- CN202410866879.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing voice conversion technology cannot quickly achieve voice conversion, or the voice conversion is relatively complex, resulting in poor synthesis results.
Using the pre-trained feature decoupling model and feature fusion model, by obtaining the speech to be converted and the reference speech of the target pronunciation user, text features and acoustic features are extracted and fused respectively, and speech decoding is performed to achieve speech conversion.
It achieves fast and high-quality voice conversion, is suitable for the financial customer service industry, and provides high-quality and pleasant sound quality services.
Smart Images

Figure CN118737170A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech synthesis technology, and is applied to sound conversion scenarios, and in particular to a speech conversion method, device, equipment and storage medium thereof. Background Art
[0002] With the rapid development of the Internet, especially the rapid development of the self-media industry and the financial industry, traditional speech synthesis is increasingly moving towards AI intelligent speech synthesis, which often requires the use of speech conversion technology, that is, outputting a specified speech with the pronunciation of another person object.
[0003] There are several mainstream approaches to existing speech conversion tasks. The first approach uses instance standardization to decouple and extract the content and timbre information of the input speech information. The second approach splits the speech into multiple features such as content, rhythm, pitch, timbre, etc., and then uses supervised technology and random sampling methods to extract the corresponding features. However, the first instance standardization scheme cannot achieve true feature decoupling, and the synthesis effect on the speech conversion task is not good; the second scheme increases the complexity of model training, and it is easy to cause a large amount of partial duplication in feature selection, which also leads to a more complicated processing process in the subsequent speech conversion task. Therefore, the existing technology still has the problem of being unable to quickly achieve speech conversion or the speech conversion is more complicated in speech conversion. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a voice conversion method, device, equipment and storage medium thereof to solve the problem that the prior art still has the inability to quickly achieve voice conversion or the voice conversion is relatively complicated.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a voice conversion method, which adopts the following technical solution:
[0006] A voice conversion method comprises the following steps:
[0007] Acquire first voice data and second voice data, wherein the first voice data includes voice to be converted into pronunciation, and the second voice data includes reference voice of a target pronunciation user;
[0008] Inputting the first voice data and the second voice data into a pre-trained feature decoupling model to obtain decoupled features of the first voice data and the second voice data, respectively, wherein the decoupled features include text features and acoustic features;
[0009] Inputting the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into a pre-trained feature fusion model to perform feature fusion and obtain a feature fusion result;
[0010] The feature fusion result is input into a preset speech decoder, and the speech with completed pronunciation conversion is obtained by decoding.
[0011] Furthermore, before executing the step of inputting the first voice data and the second voice data into the pre-trained feature decoupling model, the method further includes:
[0012] Acquire a speech training set, wherein the speech training set contains a batch of speech data to be feature decoupled with labeled feature classifications;
[0013] Inputting the speech training set into a pre-built feature decoupling model to perform feature decoupling model training to obtain a trained feature decoupling model; and
[0014] The text features and acoustic features of the decoupled output of the trained feature decoupling model are obtained.
[0015] Furthermore, the pre-built feature decoupling model includes a feature extraction layer, a pooling layer, and a fully connected layer. The step of inputting the speech training set into the pre-built feature decoupling model, training the feature decoupling model, and obtaining the trained feature decoupling model specifically includes:
[0016] Step 301, performing feature extraction on the batches of speech data to be feature decoupled in the speech training set through the feature extraction layer to obtain corresponding feature extraction sequences;
[0017] Step 302, using the pooling layer to perform a pooling operation on the feature extraction sequence, and performing feature classification prediction on the pooling operation result through the fully connected layer to obtain a feature classification prediction result;
[0018] Step 303, comparing the feature classification prediction result with the pre-labeled feature classification result, and calculating the classification accuracy and recall rate of the feature classification prediction result compared with the pre-labeled feature classification result according to the comparison result;
[0019] Step 304: if either the classification accuracy or the recall rate does not meet the preset threshold, the parameters of the feature decoupling model are continuously adjusted by a back propagation algorithm, and steps 301 to 303 are repeatedly performed until both the classification accuracy and the recall rate meet the preset threshold.
[0020] Step 305: If the classification accuracy and recall rate both meet the preset requirement thresholds, a trained feature decoupling model is obtained.
[0021] Furthermore, after executing the step of obtaining the text features and acoustic features decoupled output by the trained feature decoupling model, the method further includes:
[0022] According to different speech data entries, the text features and acoustic features are marked respectively. Specifically, the marking operation includes: marking the text features and acoustic features corresponding to the speech data of the same entry with the same identifier, and marking the text features and acoustic features corresponding to the speech data of different entries with different identifiers.
[0023] Furthermore, before executing the step of inputting the text features corresponding to the first voice data and the acoustic features corresponding to the second voice data into the pre-trained feature fusion model, the method further includes:
[0024] Obtaining text features and acoustic features to be fused, wherein the text features and acoustic features to be fused include text features and acoustic features decoupled and output by the trained feature decoupling model;
[0025] The text features and acoustic features to be fused are input into a pre-built feature fusion model, and the feature fusion model is trained to obtain a trained feature fusion model.
[0026] Furthermore, the feature fusion model includes a streaming text feature latent state vector extraction component and a posterior encoding-based acoustic feature latent state vector extraction component, and the steps of inputting the text features and acoustic features to be feature fused into a pre-built feature fusion model, training the feature fusion model, and obtaining the trained feature fusion model specifically include:
[0027] Step 401, extracting the latent state vector representation result of the text feature through the streaming-based text feature latent state vector extraction component;
[0028] Step 402, extracting the latent state vector representation result of the acoustic feature through the acoustic feature latent state vector extraction component based on posterior coding;
[0029] Step 403, fusing the latent state vector representation results corresponding to the text features and acoustic features of the same identifier to obtain a feature fusion result;
[0030] Step 404, using a preset speech decoder to decode the feature fusion result to obtain output speech;
[0031] Step 405, calculating the loss value of the output speech compared to the batch speech data in the speech training set according to a preset loss function;
[0032] Step 406: if the loss value does not meet the preset loss threshold, the model is tuned by adjusting the parameters of the feature fusion model, and steps 401 to 405 are repeatedly executed until the loss value meets the preset loss threshold;
[0033] Step 407: If the loss value meets the preset loss threshold, a trained feature fusion model is obtained.
[0034] Furthermore, the step of inputting the text features corresponding to the first voice data and the acoustic features corresponding to the second voice data into the pre-trained feature fusion model to perform feature fusion to obtain the feature fusion result specifically includes:
[0035] Extracting the hidden state vector representation result of the text feature corresponding to the first speech data through the streaming text feature hidden state vector extraction component of the trained feature fusion model;
[0036] Extracting the latent state vector representation result of the acoustic feature corresponding to the second speech data through the acoustic feature latent state vector extraction component based on posterior coding of the trained feature fusion model;
[0037] The feature fusion result is obtained by fusing the latent state vector representation result of the text feature corresponding to the first speech data and the latent state vector representation result of the acoustic feature corresponding to the second speech data.
[0038] In order to solve the above technical problems, the embodiment of the present application also provides a voice conversion device, which adopts the following technical solution:
[0039] A speech conversion device, comprising:
[0040] A voice data acquisition module, used to acquire first voice data and second voice data, wherein the first voice data includes voice to be converted into pronunciation, and the second voice data includes a reference voice of a target pronunciation user;
[0041] A speech feature decoupling module, used for inputting the first speech data and the second speech data into a pre-trained feature decoupling model to obtain decoupled features of the first speech data and the second speech data, respectively, wherein the decoupled features include text features and acoustic features;
[0042] A speech feature fusion module, used to input the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into a pre-trained feature fusion model to perform feature fusion and obtain a feature fusion result;
[0043] The speech feature decoding module is used to input the feature fusion result into a preset speech decoder, and decode to obtain the speech with completed pronunciation conversion.
[0044] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0045] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned voice conversion method when executing the computer-readable instructions.
[0046] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0047] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the voice conversion method as described above.
[0048] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0049] The speech conversion method described in the embodiment of the present application obtains the speech to be converted in pronunciation and the reference speech of the target pronunciation user, inputs the pre-trained feature decoupling model, and obtains the decoupled features of the speech to be converted in pronunciation and the reference speech of the target pronunciation user respectively; the text features of the speech to be converted in pronunciation and the acoustic features of the reference speech of the target pronunciation user are input into the pre-trained feature fusion model, feature fusion is performed, feature fusion results are obtained, and the speech after pronunciation conversion is obtained by decoding. Through the feature decoupling model and the feature fusion model, speech conversion can be quickly realized, and the speech conversion method can be applied to the financial customer service industry, which can provide customers with better quality and pleasant sound quality service functions. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1is an exemplary system architecture diagram to which the present application may be applied;
[0052] Figure 2 is a flow chart of an embodiment of a voice conversion method according to the present application;
[0053] Figure 3 is a flowchart of a specific embodiment of training the feature decoupling model in the speech conversion method described in the present application;
[0054] Figure 4 is a flowchart of a specific embodiment of training the feature fusion model in the speech conversion method described in the present application;
[0055] Figure 5 yes Figure 2 A flowchart of a specific embodiment of step 203 is shown;
[0056] Figure 6 is a structural schematic diagram of an embodiment of a speech conversion device according to the present application;
[0057] Figure 7 is a structural diagram of a specific embodiment of the feature decoupling training module 605;
[0058] Figure 8 is a structural diagram of a specific embodiment of the feature fusion training module 606;
[0059] Fig. 9 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0060] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0061] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0062] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0063] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0064] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0065] The terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0066] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0067] It should be noted that the voice conversion method provided in the embodiment of the present application is generally executed by a terminal device, and accordingly, the voice conversion device is generally arranged in the terminal device.
[0068] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0069] Continue to refer Figure 2 , shows a flow chart of an embodiment of a voice conversion method according to the present application. The voice conversion method comprises the following steps:
[0070] Step 201: Acquire first voice data and second voice data, wherein the first voice data includes voice to be converted into pronunciation, and the second voice data includes reference voice of a target pronunciation user.
[0071] Specifically, the first voice data and the second voice data, for example, a voice actor recites Su Shi's "Shui Tiao Ge Tou" in his voice, the first voice data is actually the voice and text content in "Shui Tiao Ge Tou", and the second voice data is actually the reference voice of the voice actor; for another example, for example, character A recites a section of Su Shi's "Shui Tiao Ge Tou" and intends to convert the completed part into a recitation using the voice of character B, then the first voice data is actually the voice part recited by character A, and the second voice data is the reference voice of character B. The application scenarios of this application are mostly in sound beautification, or outputting a section of existing voice data using the voice of another character target.
[0072] The speech conversion task described in the present application is mostly used in AI intelligent speech synthesis scenarios, for example: input a piece of text or record a piece of speech, output the text or the recorded speech with the reference voice of the target person, or, applied to the customer service industry in the financial field, provide the text content of the speech or the speech pronunciation content in advance, combine the reference voice of the target person or the designated person, and output the text content of the speech or the speech pronunciation content to ensure that customers are provided with better quality and more pleasant sound quality service functions.
[0073] Step 202: input the first voice data and the second voice data into a pre-trained feature decoupling model to obtain decoupled features of the first voice data and the second voice data, respectively, wherein the decoupled features include text features and acoustic features.
[0074] In this embodiment, before executing the step of inputting the first speech data and the second speech data into a pre-trained feature decoupling model, the method also includes: obtaining a speech training set, wherein the speech training set contains a batch of speech data with labeled feature classifications to be feature decoupled; inputting the speech training set into a pre-built feature decoupling model, performing feature decoupling model training, obtaining a trained feature decoupling model, and obtaining text features and acoustic features of the decoupled output of the trained feature decoupling model.
[0075] By using batches of speech data to be feature decoupled that have been labeled with features, it is convenient to verify the feature decoupling model when training the feature decoupling model. The feature decoupling model is trained using a supervised learning method, thereby ensuring the availability of the feature decoupling model.
[0076] In this embodiment, the pre-built feature decoupling model includes a speech feature decoupling model based on the Xi-Vector framework. The pre-built feature decoupling model includes a feature extraction layer, a pooling layer, and a fully connected layer. The feature extraction layer can adopt a convolutional neural network CNN, and the pooling layer can adopt a locally connected or fully connected Pooling layer. The fully connected layer mainly performs classification prediction on the features after the pooling operation. Accordingly, a classification prediction component can be introduced in the fully connected layer.
[0077] Continue to refer Figure 3 , Figure 3 is a flowchart of a specific embodiment of training the feature decoupling model in the speech conversion method of the present application, including:
[0078] Step 301, performing feature extraction on the batches of speech data to be feature decoupled in the speech training set through the feature extraction layer to obtain corresponding feature extraction sequences;
[0079] Step 302, using the pooling layer to perform a pooling operation on the feature extraction sequence, and performing feature classification prediction on the pooling operation result through the fully connected layer to obtain a feature classification prediction result;
[0080] Step 303, comparing the feature classification prediction result with the pre-labeled feature classification result, and calculating the classification accuracy and recall rate of the feature classification prediction result compared with the pre-labeled feature classification result according to the comparison result;
[0081] Step 304: if either the classification accuracy or the recall rate does not meet the preset threshold, the parameters of the feature decoupling model are continuously adjusted by a back propagation algorithm, and steps 301 to 303 are repeatedly performed until both the classification accuracy and the recall rate meet the preset threshold.
[0082] Step 305: If the classification accuracy and recall rate both meet the preset requirement thresholds, a trained feature decoupling model is obtained.
[0083] By adopting a supervised learning method to train the feature decoupling model, the availability of the feature decoupling model in subsequent actual speech conversion scenarios is guaranteed.
[0084] In this embodiment, after executing the step of obtaining the text features and acoustic features of the decoupled output of the trained feature decoupling model, the method also includes: marking the text features and acoustic features respectively according to different speech data items. Specifically, the marking operation includes: marking the text features and acoustic features corresponding to the speech data of the same item with the same identifier, and marking the text features and acoustic features corresponding to the speech data of different items with different identifiers.
[0085] According to the different speech data items, the text features and acoustic features are marked respectively, so that when the feature fusion model is trained later, the text features and acoustic features corresponding to the speech data of the same item can be fused according to the same identifier, which plays a role in reconstructing the speech data in the speech training set.
[0086] Step 203: Input the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into the pre-trained feature fusion model to perform feature fusion and obtain a feature fusion result.
[0087] In this embodiment, before executing the step of inputting the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into the pre-trained feature fusion model, the method also includes: obtaining text features and acoustic features to be fused, wherein the text features and acoustic features to be fused include the text features and acoustic features decoupled output by the trained feature decoupling model; inputting the text features and acoustic features to be fused into the pre-built feature fusion model, performing feature fusion model training, and obtaining the trained feature fusion model.
[0088] By directly using the text features and acoustic features decoupled and output by the trained feature decoupling model as the text features and acoustic features to be fused, there is no need to collect or prepare training data again. The speech training set acquired once is simultaneously applied to the training of the feature decoupling model and the feature fusion model, which reduces the time consumption for collecting training data to a certain extent.
[0089] In this embodiment, the feature fusion model includes a streaming-based text feature latent state vector extraction component and a posteriori coding-based acoustic feature latent state vector extraction component.
[0090] Specifically, the streaming-based text feature hidden state vector extraction component can, after obtaining the language information (text features), first obtain the corresponding continuous speech text content through a linear projection layer, and then use the k-means algorithm to obtain discrete speech text content, and use streaming transmission to obtain the hidden state vector representations corresponding to all speech text contents one by one from the discrete speech text content, that is, to obtain the hidden state vector representation of the text feature.
[0091] Specifically, the acoustic feature hidden state vector extraction component based on posterior coding can be implemented using a pre-built posterior encoder, wherein the posterior encoder is constructed using the WaveGlow acoustic prosody generation component and the WaveNet residual block in the Glow-TTS text-to-speech generation model, and the WaveNet residual block contains multiple layers of dilated convolutions and gated activation units, as well as jump connections. The final linear projection layer of these modules generates the mean and variance of the standard posterior distribution. For the case of multiple speakers, global conditions are used on the residual block to increase the speaker's text features and acoustic feature hidden state vector representation embedding.
[0092] The WaveGlow acoustic prosody generation component is a network that relies on streaming to synthesize high-quality speech from Mel-maps, generating fast, good, and high-quality acoustic prosody without the need for automatic regression. Only a single network is required for implementation, and only a single cost function is used for training to maximize the possibility of training data, making the training process of the feature fusion model simple and stable. Glow-TTS is an efficient text-to-speech generation model. Based on the WaveGlow acoustic prosody generation component, it combines the WaveNet residual block of the Glow-TTS text-to-speech generation model to ensure that the training process of the feature fusion model is simple and stable, and can use global conditions on the residual block to increase the speaker's text features and acoustic features The latent state vector representation embedding makes the trained feature fusion model more intelligent.
[0093] Continue to refer Figure 4 , Figure 4 is a flowchart of a specific embodiment of training the feature fusion model in the speech conversion method of the present application, including:
[0094] Step 401, extracting the latent state vector representation result of the text feature through the streaming-based text feature latent state vector extraction component;
[0095] Step 402, extracting the latent state vector representation result of the acoustic feature through the acoustic feature latent state vector extraction component based on posterior coding;
[0096] Step 403, fusing the latent state vector representation results corresponding to the text features and acoustic features of the same identifier to obtain a feature fusion result;
[0097] Step 404, using a preset speech decoder to decode the feature fusion result to obtain output speech;
[0098] Step 405, calculating the loss value of the output speech compared to the batch speech data in the speech training set according to a preset loss function;
[0099] Step 406: if the loss value does not meet the preset loss threshold, the model is tuned by adjusting the parameters of the feature fusion model, and steps 401 to 405 are repeatedly executed until the loss value meets the preset loss threshold;
[0100] Step 407: If the loss value meets the preset loss threshold, a trained feature fusion model is obtained.
[0101] In this embodiment, the preset loss function includes a cross entropy loss function, a reconstruction loss function, an adversarial loss function, and a comprehensive loss function composed of the cross entropy loss function, the reconstruction loss function, and the adversarial loss function. Here, the training operator can freely set it according to the model training requirements and actual conditions. For example: the cross entropy loss function can calculate the loss value when extracting speech features, that is, text features and acoustic features. The reconstruction loss function can calculate the loss value of the output speech compared to the speech training set after the aforementioned feature decoupling and feature fusion again; the feature decoupling model and the feature fusion model can also be used together as the generator of the adversarial neural network, and the adversarial loss function is used to calculate the loss value of the output speech compared to the speech training set after feature fusion.
[0102] By training the feature fusion model, the credibility of the feature fusion results in subsequent actual use is guaranteed. In addition, the feature fusion model also adopts streaming processing of text features and a posteriori encoding method to process acoustic features, ensuring that more latent state vector representation results participate in the final speech synthesis coding operation, making the trained feature fusion model more in line with high fusion requirements and making the final output speech data more credible in actual use.
[0103] Continue to refer Figure 5 , Figure 5 yes Figure 2 The flowchart of a specific embodiment of step 203 shown includes:
[0104] Step 501, extracting the latent state vector representation result of the text feature corresponding to the first speech data through the streaming-based text feature latent state vector extraction component of the trained feature fusion model;
[0105] Step 502, extracting the latent state vector representation result of the acoustic feature corresponding to the second speech data through the acoustic feature latent state vector extraction component based on posterior coding of the trained feature fusion model;
[0106] Step 503: fuse the latent state vector representation result of the text feature corresponding to the first speech data and the latent state vector representation result of the acoustic feature corresponding to the second speech data to obtain the feature fusion result.
[0107] Step 204, input the feature fusion result to a preset speech decoder, and decode to obtain speech with completed pronunciation conversion.
[0108] This application obtains the speech to be converted into pronunciation and the reference speech of the target pronunciation user, inputs the pre-trained feature decoupling model, and obtains the decoupling features of the speech to be converted into pronunciation and the reference speech of the target pronunciation user respectively; the text features of the speech to be converted into pronunciation and the acoustic features of the reference speech of the target pronunciation user are input into the pre-trained feature fusion model, feature fusion is performed, feature fusion results are obtained, and the speech after pronunciation conversion is obtained by decoding. Through the feature decoupling model and the feature fusion model, speech conversion is quickly realized, and the speech conversion method is applied to the financial customer service industry, which can provide customers with better quality and pleasant sound quality service functions.
[0109] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0110] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0111] In an embodiment of the present application, by obtaining the speech to be converted into pronunciation and the reference speech of the target pronunciation user, a pre-trained feature decoupling model is input to obtain the decoupling features of the speech to be converted into pronunciation and the reference speech of the target pronunciation user respectively; the text features of the speech to be converted into pronunciation and the acoustic features of the reference speech of the target pronunciation user are input into the pre-trained feature fusion model together, feature fusion is performed, feature fusion results are obtained, and the speech after pronunciation conversion is obtained by decoding. Through the feature decoupling model and the feature fusion model, speech conversion is quickly realized, and the speech conversion method is applied to the financial customer service industry, which can provide customers with better quality and pleasant sound quality service functions.
[0112] Further references Figure 6 , as a response to the above Figure 2 The present application provides an embodiment of a speech conversion device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0113] like Figure 6 As shown, the speech conversion device 600 described in this embodiment includes: a speech data acquisition module 601, a speech feature decoupling module 602, a speech feature fusion module 603 and a speech feature decoding module 604. Among them:
[0114] The voice data acquisition module 601 is used to acquire first voice data and second voice data, wherein the first voice data includes the voice to be converted into pronunciation, and the second voice data includes the reference voice of the target pronunciation user;
[0115] A speech feature decoupling module 602 is used to input the first speech data and the second speech data into a pre-trained feature decoupling model to obtain decoupled features of the first speech data and the second speech data, respectively, wherein the decoupled features include text features and acoustic features;
[0116] A speech feature fusion module 603 is used to input the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into a pre-trained feature fusion model to perform feature fusion and obtain a feature fusion result;
[0117] The speech feature decoding module 604 is used to input the feature fusion result into a preset speech decoder to decode and obtain the speech with completed pronunciation conversion.
[0118] In some specific implementations of the present application, the speech conversion device 600 further includes: a feature decoupling training module 605, continue to refer to Figure 7 , Figure 76 is a structural diagram of a specific embodiment of the feature decoupling training module 605. The feature decoupling training module 605 includes a feature extraction submodule 701, a feature classification prediction submodule 702, a comparison calculation submodule 703, a first tuning submodule 704 and a first training completion submodule 705. Among them:
[0119] A feature extraction submodule 701 is used to extract features from the batch of speech data to be feature decoupled in the speech training set through the feature extraction layer to obtain a corresponding feature extraction sequence;
[0120] The feature classification prediction submodule 702 is used to perform a pooling operation on the feature extraction sequence using the pooling layer, and perform feature classification prediction on the pooling operation result through the fully connected layer to obtain a feature classification prediction result;
[0121] A comparison calculation submodule 703 is used to compare the feature classification prediction result with the pre-labeled feature classification result, and calculate the classification accuracy and recall rate of the feature classification prediction result compared with the pre-labeled feature classification result according to the comparison result;
[0122] The first tuning submodule 704 is used to continuously adjust the parameters of the feature decoupling model through a back propagation algorithm and repeatedly execute steps 301 to 303 if any one of the classification accuracy and the recall rate does not meet a preset requirement threshold;
[0123] The first training completion submodule 705 is used to obtain a trained feature decoupling model until the classification accuracy and recall rate both meet preset requirement thresholds.
[0124] In some specific implementations of the present application, the speech conversion device 600 further includes: a feature fusion training module 606, which is further referred to Figure 8 , Figure 8 80 is a structural diagram of a specific embodiment of the feature fusion training module 606. The feature fusion training module 606 includes a first hidden state vector extraction submodule 801, a second hidden state vector extraction submodule 802, a feature fusion submodule 803, a decoding output submodule 804, a loss value calculation submodule 805, a second tuning submodule 806, and a second training completion submodule 807. Among them:
[0125] A hidden state vector first extraction submodule 801 is used to extract the hidden state vector representation result of the text feature through the streaming-based text feature hidden state vector extraction component;
[0126] A second hidden state vector extraction submodule 802 is used to extract the hidden state vector representation result of the acoustic feature through the acoustic feature hidden state vector extraction component based on posterior coding;
[0127] The feature fusion submodule 803 is used to fuse the latent state vector representation results corresponding to the text features and acoustic features of the same identifier to obtain a feature fusion result;
[0128] The decoding output submodule 804 is used to decode the feature fusion result using a preset speech decoder to obtain output speech;
[0129] The loss value calculation submodule 805 is used to calculate the loss value of the output speech compared with the batch speech data in the speech training set according to a preset loss function;
[0130] A second tuning submodule 806 is used to perform model tuning by adjusting parameters of the feature fusion model if the loss value does not meet a preset loss threshold, and repeat steps 401 to 405;
[0131] The second training completion submodule 807 is used to obtain a trained feature fusion model until the loss value meets a preset loss threshold.
[0132] This application obtains the speech to be converted into pronunciation and the reference speech of the target pronunciation user, inputs the pre-trained feature decoupling model, and obtains the decoupling features of the speech to be converted into pronunciation and the reference speech of the target pronunciation user respectively; the text features of the speech to be converted into pronunciation and the acoustic features of the reference speech of the target pronunciation user are input into the pre-trained feature fusion model, feature fusion is performed, feature fusion results are obtained, and the speech after pronunciation conversion is obtained by decoding. Through the feature decoupling model and the feature fusion model, speech conversion is quickly realized, and the speech conversion method is applied to the financial customer service industry, which can provide customers with better quality and pleasant sound quality service functions.
[0133] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0134] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0135] To solve the above technical problems, the present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.
[0136] The computer device 9 includes a memory 9a, a processor 9b, and a network interface 9c that are interconnected through a system bus. It should be noted that the figure only shows a computer device 9 having components 9a-9c, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital processors (DSPs), embedded devices, etc.
[0137] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0138] The memory 9a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 9a can be an internal storage unit of the computer device 9, such as a hard disk or memory of the computer device 9. In other embodiments, the memory 9a can also be an external storage device of the computer device 9, such as a plug-in hard disk equipped on the computer device 9, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 9a can also include both the internal storage unit of the computer device 9 and its external storage device. In this embodiment, the memory 9a is generally used to store the operating system and various application software installed on the computer device 9, such as a computer-readable instruction of a voice conversion method, etc. In addition, the memory 9a can also be used to temporarily store various types of data that have been output or are to be output.
[0139] The processor 9b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 9b is generally used to control the overall operation of the computer device 9. In this embodiment, the processor 9b is used to run the computer-readable instructions or process data stored in the memory 9a, such as computer-readable instructions for running the speech conversion method.
[0140] The network interface 9c may include a wireless network interface or a wired network interface. The network interface 9c is generally used to establish a communication connection between the computer device 9 and other electronic devices.
[0141] The computer device proposed in this embodiment belongs to the field of speech synthesis technology and is applied to sound conversion scenarios. This application obtains the speech to be converted in pronunciation and the reference speech of the target pronunciation user, inputs the pre-trained feature decoupling model, and obtains the decoupling features of the speech to be converted in pronunciation and the reference speech of the target pronunciation user respectively; the text features of the speech to be converted in pronunciation and the acoustic features of the reference speech of the target pronunciation user are input into the pre-trained feature fusion model together, feature fusion is performed, feature fusion results are obtained, and the speech after pronunciation conversion is obtained by decoding. Through the feature decoupling model and the feature fusion model, speech conversion can be quickly realized, and the speech conversion method can be applied to the financial customer service industry, which can provide customers with better quality and pleasant sound quality service functions.
[0142] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the voice conversion method as described above.
[0143] The computer-readable storage medium proposed in this embodiment belongs to the field of speech synthesis technology and is applied to sound conversion scenarios. This application obtains the speech to be converted in pronunciation and the reference speech of the target pronunciation user, inputs the pre-trained feature decoupling model, and obtains the decoupling features of the speech to be converted in pronunciation and the reference speech of the target pronunciation user respectively; the text features of the speech to be converted in pronunciation and the acoustic features of the reference speech of the target pronunciation user are input into the pre-trained feature fusion model together, feature fusion is performed, feature fusion results are obtained, and the speech after pronunciation conversion is obtained by decoding. Through the feature decoupling model and the feature fusion model, speech conversion can be quickly realized, and the speech conversion method can be applied to the financial customer service industry, which can provide customers with better quality and pleasant sound quality service functions.
[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0145] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A speech conversion method, characterized in that: The steps include: Acquire first voice data and second voice data, wherein the first voice data includes voice to be converted into pronunciation, and the second voice data includes reference voice of a target pronunciation user; Inputting the first voice data and the second voice data into a pre-trained feature decoupling model to obtain decoupled features of the first voice data and the second voice data, respectively, wherein the decoupled features include text features and acoustic features; Inputting the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into a pre-trained feature fusion model to perform feature fusion and obtain a feature fusion result; The feature fusion result is input into a preset speech decoder, and the speech with completed pronunciation conversion is obtained by decoding.
2. The voice conversion method according to claim 1, characterized in that: Before executing the step of inputting the first voice data and the second voice data into the pre-trained feature decoupling model, the method further includes: Acquire a speech training set, wherein the speech training set contains a batch of speech data to be feature decoupled with labeled feature classifications; Inputting the speech training set into a pre-built feature decoupling model to perform feature decoupling model training to obtain a trained feature decoupling model; and The text features and acoustic features of the decoupled output of the trained feature decoupling model are obtained.
3. The voice conversion method according to claim 2, characterized in that: The pre-built feature decoupling model includes a feature extraction layer, a pooling layer, and a fully connected layer. The step of inputting the speech training set into the pre-built feature decoupling model, training the feature decoupling model, and obtaining the trained feature decoupling model specifically includes: Step 301, performing feature extraction on the batches of speech data to be feature decoupled in the speech training set through the feature extraction layer to obtain corresponding feature extraction sequences; Step 302, using the pooling layer to perform a pooling operation on the feature extraction sequence, and performing feature classification prediction on the pooling operation result through the fully connected layer to obtain a feature classification prediction result; Step 303, comparing the feature classification prediction result with the pre-labeled feature classification result, and calculating the classification accuracy and recall rate of the feature classification prediction result compared with the pre-labeled feature classification result according to the comparison result; Step 304: if either the classification accuracy or the recall rate does not meet the preset threshold, the parameters of the feature decoupling model are continuously adjusted by a back propagation algorithm, and steps 301 to 303 are repeatedly performed until both the classification accuracy and the recall rate meet the preset threshold. Step 305: If the classification accuracy and recall rate both meet the preset requirement thresholds, a trained feature decoupling model is obtained.
4. The voice conversion method according to claim 2, characterized in that: After executing the step of obtaining the text features and acoustic features decoupled output by the trained feature decoupling model, the method further includes: According to different speech data entries, the text features and acoustic features are marked respectively. Specifically, the marking operation includes: marking the text features and acoustic features corresponding to the speech data of the same entry with the same identifier, and marking the text features and acoustic features corresponding to the speech data of different entries with different identifiers.
5. The voice conversion method according to claim 4, characterized in that: Before executing the step of inputting the text features corresponding to the first voice data and the acoustic features corresponding to the second voice data into the pre-trained feature fusion model, the method further includes: Obtaining text features and acoustic features to be fused, wherein the text features and acoustic features to be fused include text features and acoustic features decoupled and output by the trained feature decoupling model; The text features and acoustic features to be fused are input into a pre-built feature fusion model, and the feature fusion model is trained to obtain a trained feature fusion model.
6. The method for voice conversion according to claim 5, characterized in that: The feature fusion model includes a streaming text feature latent state vector extraction component and a posterior coding-based acoustic feature latent state vector extraction component. The steps of inputting the text features and acoustic features to be feature fused into a pre-built feature fusion model, training the feature fusion model, and obtaining the trained feature fusion model specifically include: Step 401, extracting the latent state vector representation result of the text feature through the streaming-based text feature latent state vector extraction component; Step 402, extracting the latent state vector representation result of the acoustic feature through the acoustic feature latent state vector extraction component based on posterior coding; Step 403, fusing the latent state vector representation results corresponding to the text features and acoustic features of the same identifier to obtain a feature fusion result; Step 404, using a preset speech decoder to decode the feature fusion result to obtain output speech; Step 405, calculating the loss value of the output speech compared to the batch speech data in the speech training set according to a preset loss function; Step 406: if the loss value does not meet the preset loss threshold, the model is tuned by adjusting the parameters of the feature fusion model, and steps 401 to 405 are repeatedly executed until the loss value meets the preset loss threshold; Step 407: If the loss value meets the preset loss threshold, a trained feature fusion model is obtained.
7. The voice conversion method according to claim 1, characterized in that: The step of inputting the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into the pre-trained feature fusion model to perform feature fusion to obtain the feature fusion result specifically includes: Extracting the hidden state vector representation result of the text feature corresponding to the first speech data through the streaming text feature hidden state vector extraction component of the trained feature fusion model; Extracting the latent state vector representation result of the acoustic feature corresponding to the second speech data through the acoustic feature latent state vector extraction component based on posterior coding of the trained feature fusion model; The feature fusion result is obtained by fusing the latent state vector representation result of the text feature corresponding to the first speech data and the latent state vector representation result of the acoustic feature corresponding to the second speech data.
8. A speech conversion device, characterized in that: include: A voice data acquisition module, used to acquire first voice data and second voice data, wherein the first voice data includes voice to be converted into pronunciation, and the second voice data includes a reference voice of a target pronunciation user; A speech feature decoupling module, used for inputting the first speech data and the second speech data into a pre-trained feature decoupling model to obtain decoupled features of the first speech data and the second speech data, respectively, wherein the decoupled features include text features and acoustic features; A speech feature fusion module, used to input the text features corresponding to the first speech data and the acoustic features corresponding to the second speech data into a pre-trained feature fusion model to perform feature fusion and obtain a feature fusion result; The speech feature decoding module is used to input the feature fusion result into a preset speech decoder, and decode to obtain the speech with completed pronunciation conversion.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the speech conversion method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the speech conversion method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Voice conversion method, voice conversion model generation method and device
CN114360558A
Pitch-based voice conversion model training method and voice conversion system
CN117765959A
Audio processing method and apparatus based on artificial intelligence, device, storage medium, and computer program product
US20230230571A1
Speech synthesis method and apparatus, device, and storage medium
WO2022141678A1
