A method, device, equipment and medium for switching tone

By obtaining and mixing the target speaker and original speaker data in the TTS system, and generating and calling the corresponding TTS system according to the degree of timbre change, the obvious problem of user perception is solved and the user experience is improved.

CN114822496BActive Publication Date: 2024-09-20MIDEA GRP (SHANGHAI) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110962055.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-20
Publication Date
2024-09-20
Estimated Expiration
2041-08-20

AI Technical Summary

Technical Problem

When the existing TTS system changes the speaker, the user perception is more obvious, resulting in poor user experience.

Method used

By obtaining the target speaker data and the original speaker data, mixing based on the degree of timbre change in the timbre change stage, generating speaker data for each timbre change stage, and obtaining and calling the corresponding TTS system based on these data to achieve timbre switching.

Benefits of technology

This reduces user perception when switching speakers and improves the user experience of the TTS system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114822496B
    Figure CN114822496B
Patent Text Reader

Abstract

The present application discloses a timbre switching method, device, equipment and medium, which are applied to the field of speech synthesis technology to solve the problems of obvious user perception and poor user experience when switching speakers of TTS systems in the prior art. Specifically, the target speaker data and the original speaker data are obtained; based on the degree of timbre change in each timbre change stage, the target speaker data and the original speaker data are mixed to obtain speaker data in each timbre change stage; based on the speaker data in each timbre change stage, the TTS system in each timbre change stage is obtained; based on the calling sequence characterized by the degree of timbre change in each timbre change stage, the TTS system in each timbre change stage is called, so as to achieve a smooth switch from the original speaker's timbre to the target speaker's timbre, thereby reducing the user perception when the TTS system switches speakers and improving the user experience of the TTS system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech synthesis technology, and in particular to a timbre switching method, device, equipment and medium. Background Art

[0002] The Text to Speech (TTS) system converts text into synthesized speech that is as close to the timbre of a specific speaker as possible according to the pronunciation specifications of the speaker. It is widely used in scenarios such as voice assistants, smart homes, and map navigation.

[0003] At present, in the TTS system, the speaker may be replaced due to supplier upgrades, replacements, or technology upgrades. Most TTS systems directly switch the speaker when the user uses the TTS function. Since different speakers usually have different timbres, the user's perception is more obvious when the speaker is switched directly. Summary of the invention

[0004] The embodiments of the present application provide a method, device, equipment and medium for switching timbre, which are used to solve the problems of obvious user perception and poor TTS function experience in the timbre switching method in the prior art.

[0005] The technical solutions provided by the embodiments of this application are as follows:

[0006] On the one hand, an embodiment of the present application provides a method for switching tone colors, including:

[0007] Obtaining target speaker data and original speaker data;

[0008] Based on the timbre change degree corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage; wherein the timbre change degree represents the degree of change from the timbre of the original speaker to the timbre of the target speaker;

[0009] Based on the speaker data corresponding to each timbre change stage, a TTS system corresponding to each timbre change stage is obtained;

[0010] Based on the calling order of the timbre change degree representations corresponding to each timbre change stage, the TTS system corresponding to each timbre change stage is called to perform timbre switching.

[0011] On the other hand, an embodiment of the present application provides a timbre switching device, comprising:

[0012] A data acquisition unit, used to acquire target speaker data and original speaker data;

[0013] A data mixing unit, for mixing the target speaker data and the original speaker data based on the timbre change degree corresponding to each timbre change stage, to obtain the speaker data corresponding to each timbre change stage; wherein the timbre change degree represents the degree of change from the timbre of the original speaker to the timbre of the target speaker;

[0014] A system acquisition unit, for acquiring the TTS system corresponding to each timbre change stage based on the speaker data corresponding to each timbre change stage;

[0015] The system calling unit is used to call the TTS system corresponding to each timbre change stage to switch the timbre based on the calling sequence represented by the timbre change degree corresponding to each timbre change stage.

[0016] On the other hand, an embodiment of the present application provides a timbre switching device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the timbre switching method provided in the embodiment of the present application is implemented.

[0017] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the tone switching method provided in the embodiment of the present application is implemented.

[0018] The beneficial effects of the embodiments of the present application are as follows:

[0019] In the embodiments of the present application, by utilizing the degree of timbre change corresponding to each timbre change stage and mixing the original speaker data and the target speaker data, the speaker data corresponding to each timbre change stage can be obtained, thereby obtaining the TTS system corresponding to each timbre change stage based on the speaker data corresponding to each timbre change stage, and then according to the degree of timbre change corresponding to each timbre change stage, when calling the TTS system corresponding to each timbre change stage, smooth switching from the original speaker's timbre to the target speaker's timbre can be achieved, thereby reducing the user perception when the speaker switches and improving the user experience of the TTS system.

[0020] Other features and advantages of the present application will be described in the subsequent description, and in part, will become apparent from the description, or will be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 Schematic diagram of the overall framework of the timbre switching method in the embodiment of the present application;

[0023] Figure 2 Schematic diagram of the general flow of the method for switching the tone color in the embodiment of the present application;

[0024] Figure 3 This is a schematic diagram of a specific process of the tone switching method in an embodiment of the present application;

[0025] Figure 4 This is a functional structure diagram of the tone switching device in the embodiment of the present application;

[0026] Figure 5 Schematic diagram of the hardware structure of the tone switching device in the embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and beneficial effects of this application clearer, the technical solution in the embodiment of this application will be clearly and completely described below in conjunction with the drawings in the embodiment of this application. Obviously, the described embodiment is only a part of the embodiment of this application, not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] In order to facilitate those skilled in the art to better understand the present application, the technical terms involved in the present application are briefly introduced below.

[0029] 1. A TTS system is a system that converts input text into synthesized speech that is close to the speaker's real voice. In the embodiment of the present application, the TTS system can be a client such as an application software, or a lightweight application such as a mini-program.

[0030] 2. Timbre is a parameter that characterizes the quality of sound, also known as timbre, which is the characteristic of sound perceived by the sense of hearing. In actual applications, the timbre of different speakers is different.

[0031] 3. The timbre change stage refers to the various stages of change from the timbre of the original speaker to the timbre of the target speaker. In the embodiment of the present application, the number of timbre change stages can be a fixed value or a variable value flexibly set according to the difference between the timbre of the original speaker and the timbre of the target speaker.

[0032] 4. The degree of timbre change represents the degree of change from the timbre of the original speaker to the timbre of the target speaker. In the embodiment of the present application, one timbre change stage corresponds to one degree of timbre change.

[0033] For example, assuming that the number of timbre change stages is 4, the timbre change degree corresponding to the first timbre change stage may be 25%, the timbre change degree corresponding to the second timbre change stage may be 50%, the timbre change degree corresponding to the third timbre change stage may be 75%, and the timbre change degree corresponding to the fourth timbre change stage may be 100%, that is, the fourth timbre change stage represents the final stage of the complete change to the target speaker's timbre.

[0034] 5. The calling order is determined in the order from small to large degree of timbre change, which represents the order in which the TTS system is called.

[0035] For example: assuming that the number of timbre change stages is 4, the timbre change degree corresponding to the first timbre change stage is 25%, the timbre change degree corresponding to the second timbre change stage is 50%, the timbre change degree corresponding to the third timbre change stage is 75%, and the timbre change degree corresponding to the fourth timbre change stage is 100%. Then, the calling order of the timbre change degree representation corresponding to the first timbre change stage may be before the TTS system corresponding to the second timbre change stage, the calling order of the timbre change degree representation corresponding to the second timbre change stage may be before the TTS system corresponding to the third timbre change stage, the calling order of the timbre change degree representation corresponding to the third timbre change stage may be before the TTS system corresponding to the fourth timbre change stage, and the calling order of the timbre change degree representation corresponding to the fourth timbre change stage may be the last one. That is, in the embodiment of the present application, when calling the TTS systems corresponding to each timbre change stage based on the calling order of the timbre change degree representation corresponding to each timbre change stage, it is sufficient to meet the requirement of "the TTS system with a small degree of timbre change is called first, and the TTS system with a large degree of timbre change is called later".

[0036] It should be noted that the terms "first", "second", etc. mentioned in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.

[0037] After introducing the technical terms involved in this application, the application scenarios and design concepts of the embodiments of this application are briefly introduced.

[0038] In order to solve the problem that when a user uses a TTS system, the original speaker is directly switched to the target speaker, which results in obvious user perception and poor user experience, in the embodiments of the present application, Figure 1 As shown, a timbre switching device with a TTS function such as a mobile phone, a tablet computer, or a computer can obtain the target speaker data and the original speaker data, and then mix the target speaker data and the original speaker data based on the timbre change degree corresponding to each timbre change stage to obtain the speaker data corresponding to each timbre change stage, and obtain the TTS system corresponding to each timbre change stage based on the speaker data corresponding to each timbre change stage, and call the TTS system corresponding to each timbre change stage to perform timbre switching based on the calling sequence characterized by the timbre change degree corresponding to each timbre change stage. In this way, by dividing each timbre change stage and obtaining the TTS system corresponding to each timbre change stage, the TTS system corresponding to each timbre change stage can be called according to the timbre change degree corresponding to each timbre change stage, so as to achieve smooth timbre switching from the original speaker timbre to the target speaker timbre, thereby reducing the user perception when the TTS system switches speakers, and improving the user experience of the TTS system.

[0039] After introducing the application scenarios and design concepts of the embodiments of the present application, the technical solutions provided by the embodiments of the present application are described in detail below.

[0040] The present application embodiment provides a method for switching tone colors, which is applied to Figure 1 The tone switching device shown is shown in Figure 2 As shown, the general process of the tone switching method provided in the embodiment of the present application is as follows:

[0041] Step 201: Obtain target speaker data and original speaker data.

[0042] In specific implementation, the voice switching device can collect the high-fidelity target speaker voice of the target speaker and the first text corresponding to the target speaker voice, and obtain the target speaker data based on the collected target speaker voice and the first text corresponding to the target speaker voice.

[0043] In actual applications, if the original speaker's voice and the second text corresponding to the original speaker's voice exist, the timbre switching device can directly obtain the original speaker data based on the original speaker's voice and the second text corresponding to the original speaker's voice; if the original speaker's voice and the second text corresponding to the original speaker's voice do not exist, the timbre switching device can input the target speaker's first text into the original speaker TTS system, obtain the original speaker's voice of the first text, and then obtain the original speaker data based on the first text and the original speaker's voice of the first text.

[0044] Step 202: Based on the timbre change degree corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage; wherein the timbre change degree represents the degree of change from the timbre of the original speaker to the timbre of the target speaker.

[0045] In specific implementation, the timbre switching device may use, but is not limited to, the following methods to mix the target speaker data and the original speaker data based on the timbre change degrees corresponding to each timbre change stage:

[0046] First, the timbre switching device determines the amount of target speaker data and original speaker data corresponding to each timbre change stage based on the degree of timbre change corresponding to each timbre change stage; wherein the amount of target speaker data is directly proportional to the degree of timbre change, and the amount of original speaker data is inversely proportional to the degree of timbre change.

[0047] Then, the timbre switching device mixes the target speaker data and the original speaker data according to the target speaker data amount and the original speaker data amount corresponding to each timbre change stage, and obtains the speaker data corresponding to each timbre change stage. Specifically, the timbre switching device can adopt but is not limited to the following methods:

[0048] First, the timbre switching device extracts i*X / N target speaker data from the target speaker data as the target speaker data to be mixed; wherein N represents the total number of timbre change stages, i represents the i-th timbre change stage, and X represents the total number of speaker data corresponding to the i-th timbre change stage.

[0049] Then, the voice switching device extracts (Ni)*X / N original speaker data from the original speaker data as the original speaker data to be mixed.

[0050] Finally, the timbre switching device obtains the speaker data corresponding to the i-th timbre change stage based on the target speaker data to be mixed and the original speaker data to be mixed.

[0051] Step 203: Based on the speaker data corresponding to each timbre change stage, obtain the TTS system corresponding to each timbre change stage.

[0052] In a specific implementation, in one embodiment, the timbre switching device can train the initial TTS system for each timbre change stage based on the speaker data corresponding to the timbre change stage to obtain the TTS system corresponding to the timbre change stage. Specifically, the timbre switching device can adopt but is not limited to the following methods:

[0053] First, the timbre switching device inputs each text in the speaker data corresponding to the timbre change stage into the initial TTS system to obtain the predicted speech of each text.

[0054] Then, the voice switching device uses a cross entropy loss function based on the predicted speech and the annotated speech of each text to obtain a cross entropy loss value.

[0055] Finally, the timbre switching device adjusts the system parameters of the initial TTS system based on the cross entropy loss value to obtain the TTS system corresponding to the timbre change stage.

[0056] In another embodiment, the timbre switching device can also adjust the initial TTS system for each timbre change stage based on the speaker data corresponding to the timbre change stage to obtain the TTS system corresponding to the timbre change stage. Specifically, the timbre switching device can adopt but is not limited to the following methods:

[0057] First, the timbre switching device inputs the speaker data corresponding to the timbre change stage into the initial TTS system to obtain the target value of the timbre control parameter of the initial TTS system.

[0058] Then, the timbre switching device obtains a TTS system corresponding to the timbre change stage based on the target value of the timbre control parameter of the initial TTS system.

[0059] It is worth mentioning that in the above two implementations, if the TTS system used when training the original speaker's TTS system exists, the initial TTS system is the TTS system used when training the original speaker's TTS system; if the TTS system used when training the original speaker's TTS system does not exist, the initial TTS system is the TTS system used when training the target speaker's TTS system this time.

[0060] Step 204: Based on the calling order of the timbre change degree representations corresponding to the timbre change stages, call the TTS systems corresponding to the timbre change stages to perform timbre switching.

[0061] In a specific implementation, in one implementation, the timbre switching device can sort the TTS systems corresponding to each timbre change stage in order from small to large according to the degree of timbre change corresponding to each timbre change stage, and obtain a TTS system sequence. When each TTS system call request is received, the next TTS system adjacent to the last called TTS system is selected from the TTS system sequence for calling.

[0062] In another implementation, the timbre switching device may sort the TTS systems corresponding to each timbre change stage in order from small to large according to the degree of timbre change corresponding to each timbre change stage, and after obtaining the TTS system sequence, upon receiving each TTS system call request, determine the time interval between the current time and the time when the TTS system was last called, and based on the time interval, select a TTS system to call from each TTS system included in the TTS system sequence with the last called TTS system as the starting point.

[0063] Specifically, when the timbre switching device determines that the time interval does not exceed the first threshold, the TTS system last called can be directly selected from each TTS system included in the TTS system sequence and starting from the TTS system last called for calling. In practical applications, considering that the user has a deep memory of the speaker's timbre in a short period of time, when the timbre switching device determines that the time interval does not exceed the first threshold, it can also first determine whether the TTS system usage frequency within the set time range is less than the frequency threshold, for example, first determine whether the TTS system usage frequency of the day is less than 1, if so, it is determined to be the first use of the day, in this case, the next TTS system of the TTS system last called can be selected from each TTS system included in the TTS system sequence and starting from the TTS system last called for calling, if not, it is determined to be a non-first use of the day, in this case, the TTS system last called can be selected from each TTS system included in the TTS system sequence and starting from the TTS system last called for calling.

[0064] When the timbre switching device determines that the time interval exceeds the first threshold, the next TTS system of the last called TTS system can be directly selected from each TTS system included in the TTS system sequence and starting from the last called TTS system for calling. In practical applications, considering that the user's memory of the speaker's timbre is relatively vague for a long time, when the timbre switching device determines that the time interval exceeds the first threshold, it can also first determine whether the time interval exceeds the second threshold (the second threshold is greater than the first threshold). If not, the next TTS system of the last called TTS system can be selected from each TTS system included in the TTS system sequence and starting from the last called TTS system for calling. If so, a TTS system can be selected from each TTS system included in the TTS system sequence after the last called TTS system based on the set selection rule for calling, wherein the set selection rule can be flexibly set according to the actual situation. For example, the set selection rule can be the second TTS system included in the TTS system sequence after the last called TTS system, or the last TTS system included in the TTS system sequence.

[0065] The following uses a specific application scenario to further describe the tone switching method provided in the embodiment of the present application. Figure 3 As shown, the specific process of the tone switching method provided in the embodiment of the present application is as follows:

[0066] Step 301: The timbre switching device collects a target speaker's voice and a first text corresponding to the target speaker's voice of a target speaker, and obtains target speaker data based on the target speaker's voice and the first text corresponding to the target speaker's voice.

[0067] Step 302: The voice switching device inputs the first text of the target speaker into the original speaker TTS system, obtains the original speaker voice of the first text, and then obtains the original speaker data based on the first text and the original speaker voice of the first text.

[0068] Step 303: The timbre switching device determines the target speaker data volume and the original speaker data volume corresponding to each timbre change stage based on the timbre change degree corresponding to each timbre change stage; wherein the target speaker data volume is proportional to the timbre change degree, and the original speaker data volume is inversely proportional to the timbre change degree.

[0069] Step 304: The timbre switching device mixes the target speaker data and the original speaker data according to the target speaker data amount and the original speaker data amount corresponding to each timbre change stage, to obtain the speaker data corresponding to each timbre change stage.

[0070] Step 305: For each timbre change stage, the timbre switching device inputs each text in the speaker data corresponding to the timbre change stage into the initial TTS system to obtain the predicted speech of each text, and adopts the cross entropy loss function based on the predicted speech and annotated speech of each text to obtain the cross entropy loss value, and adjusts the system parameters of the initial TTS system based on the cross entropy loss value to obtain the TTS system corresponding to the timbre change stage.

[0071] Step 306: The timbre switching device sorts the TTS systems corresponding to each timbre change stage in order from small to large according to the timbre change degrees corresponding to each timbre change stage, to obtain a TTS system sequence.

[0072] Step 307: Every time the voice switching device receives a TTS system call request, it determines whether the time interval between the current time and the time when the TTS system was last called exceeds the first threshold. If not, execute step 308; if yes, execute step 309.

[0073] Step 308: The tone switching device determines whether it is the first use of the day, if so, execute step 310; if not, execute step 311.

[0074] Step 309: The voice switching device determines whether the time interval between the current time and the time when the TTS system was last called exceeds the second threshold. If not, execute step 310; if yes, execute step 312.

[0075] Step 310: The voice switching device selects the next TTS system of the last called TTS system from the TTS system sequence for calling.

[0076] Step 311: The voice switching device selects the last called TTS system from the TTS system sequence and calls it.

[0077] Step 312: The voice switching device selects a TTS system to call from each TTS system included in the TTS system sequence after the TTS system called last time.

[0078] Based on the above embodiments, the present application provides a timbre switching device, which is applied to Figure 1 The tone switching device shown is shown in Figure 4 As shown, the timbre switching device 400 provided in the embodiment of the present application at least includes:

[0079] The data acquisition unit 401 is used to acquire the target speaker data and the original speaker data;

[0080] The data mixing unit 402 is used to mix the target speaker data and the original speaker data based on the timbre change degree corresponding to each timbre change stage, so as to obtain the speaker data corresponding to each timbre change stage; wherein the timbre change degree represents the degree of change from the timbre of the original speaker to the timbre of the target speaker;

[0081] The system acquisition unit 403 is used to obtain the TTS system corresponding to each timbre change stage based on the speaker data corresponding to each timbre change stage;

[0082] The system calling unit 404 is used to call the TTS system corresponding to each timbre change stage to perform timbre switching based on the calling sequence of the timbre change degree representations corresponding to each timbre change stage.

[0083] In a possible implementation, when acquiring the target speaker data and the original speaker data, the data acquisition unit 401 is specifically used to:

[0084] Obtaining target speaker data based on the first text of the target speaker and the target speaker's speech of the first text;

[0085] The original speaker data is obtained based on the second text of the original speaker and the original speaker's voice of the second text.

[0086] In a possible implementation, when acquiring the target speaker data and the original speaker data, the data acquisition unit 401 is specifically used to:

[0087] Obtaining target speaker data based on the first text of the target speaker and the target speaker's speech of the first text;

[0088] The first text is input into the original speaker TTS system to obtain the original speaker's voice of the first text, and the original speaker data is obtained based on the first text and the original speaker's voice of the first text.

[0089] In a possible implementation, based on the timbre change degrees corresponding to the timbre change stages, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to the timbre change stages, and the data mixing unit 402 is specifically used to:

[0090] Based on the timbre change degree corresponding to each timbre change stage, determine the target speaker data volume and the original speaker data volume corresponding to each timbre change stage; wherein the target speaker data volume is proportional to the timbre change degree, and the original speaker data volume is inversely proportional to the timbre change degree;

[0091] According to the target speaker data amount and the original speaker data amount corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage.

[0092] In a possible implementation, according to the target speaker data amount and the original speaker data amount corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage, and the data mixing unit 402 is specifically used to:

[0093] Extract i*X / N target speaker data from the target speaker data as the target speaker data to be mixed; wherein N represents the total number of timbre change stages, i represents the i-th timbre change stage, and X represents the total number of speaker data corresponding to the i-th timbre change stage;

[0094] Extract (Ni)*X / N original speaker data from the original speaker data as the original speaker data to be mixed;

[0095] Based on the target speaker data to be mixed and the original speaker data to be mixed, the speaker data corresponding to the i-th timbre change stage is obtained.

[0096] In a possible implementation, when obtaining the TTS systems corresponding to the respective timbre change stages based on the speaker data corresponding to the respective timbre change stages, the system acquisition unit 403 is specifically used to:

[0097] For each timbre change stage, the initial TTS system is trained based on the speaker data corresponding to the timbre change stage to obtain a TTS system corresponding to the timbre change stage.

[0098] In a possible implementation, when the initial TTS system is trained based on the speaker data corresponding to the timbre change stage to obtain the TTS system corresponding to the timbre change stage, the system acquisition unit 403 is specifically used to:

[0099] Input each text in the speaker data corresponding to the timbre change stage into the initial TTS system to obtain the predicted speech of each text;

[0100] Based on the predicted speech and annotated speech of each text, a cross entropy loss function is used to obtain a cross entropy loss value;

[0101] Based on the cross entropy loss value, the system parameters of the initial TTS system are adjusted to obtain the TTS system corresponding to the timbre change stage.

[0102] In a possible implementation, when obtaining the TTS systems corresponding to the respective timbre change stages based on the speaker data corresponding to the respective timbre change stages, the system acquisition unit 403 is specifically used to:

[0103] For each timbre change stage, the initial TTS system is adjusted based on the speaker data corresponding to the timbre change stage to obtain a TTS system corresponding to the timbre change stage.

[0104] In a possible implementation, when the initial TTS system is adjusted based on the speaker data corresponding to the timbre change stage to obtain the TTS system corresponding to the timbre change stage, the system acquisition unit 403 is specifically used to:

[0105] Inputting speaker data corresponding to the timbre change stage into the initial TTS system to obtain a target value of a timbre control parameter of the initial TTS system;

[0106] Based on the target values ​​of the timbre control parameters of the initial TTS system, a TTS system corresponding to the timbre change stage is obtained.

[0107] In a possible implementation, based on the calling order of the timbre change degree representations corresponding to the timbre change stages, when calling the TTS systems corresponding to the timbre change stages, the system calling unit 404 is specifically used to:

[0108] According to the order of the timbre change degree corresponding to each timbre change stage from small to large, the TTS systems corresponding to each timbre change stage are sorted to obtain a TTS system sequence;

[0109] Each time a TTS system call request is received, the next TTS system adjacent to the last called TTS system is selected from the TTS system sequence for calling.

[0110] In a possible implementation, based on the calling order of the timbre change degree representations corresponding to the timbre change stages, when calling the TTS systems corresponding to the timbre change stages, the system calling unit 404 is specifically used to:

[0111] According to the order of the timbre change degree corresponding to each timbre change stage from small to large, the TTS systems corresponding to each timbre change stage are sorted to obtain a TTS system sequence;

[0112] Each time a TTS system call request is received, the time interval between the current time and the time when the TTS system was last called is determined, and based on the time interval, a TTS system is selected for calling from each TTS system included in the TTS system sequence starting from the TTS system last called.

[0113] In a possible implementation, based on the time interval, when selecting a TTS system to call from each TTS system included in the TTS system sequence starting from the last called TTS system, the system calling unit 404 is specifically configured to:

[0114] If it is determined that the time interval does not exceed the first threshold, when it is determined that the usage frequency of the TTS system within the set time range is less than the frequency threshold, the TTS system that was called last is selected from each TTS system included in the TTS system sequence and starting from the TTS system that was called last, and when it is determined that the usage frequency of the TTS system within the set time range is not less than the frequency threshold, the next TTS system of the TTS system that was called last is selected from each TTS system included in the TTS system sequence and starting from the TTS system that was called last, to be called.

[0115] If it is determined that the time interval exceeds the first threshold, when it is determined that the time interval does not exceed the second threshold, the next TTS system of the last called TTS system is selected for calling from each TTS system included in the TTS system sequence with the last called TTS system as the starting point; when it is determined that the time interval exceeds the second threshold, based on the set selection rule, a TTS system is selected for calling from each TTS system included in the TTS system sequence after the last called TTS system.

[0116] It should be noted that the principle of solving the technical problem by the timbre switching device 400 provided in the embodiment of the present application is similar to the timbre switching method provided in the embodiment of the present application. Therefore, the implementation of the timbre switching device 400 provided in the embodiment of the present application can refer to the implementation of the timbre switching method provided in the embodiment of the present application, and the repeated parts will not be repeated.

[0117] After introducing the timbre switching method and apparatus provided in the embodiments of the present application, the timbre switching device provided in the embodiments of the present application is briefly introduced next.

[0118] See also Figure 5 As shown, the timbre switching device 500 provided in the embodiment of the present application includes at least: a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program, the timbre switching method provided in the embodiment of the present application is implemented.

[0119] The timbre switching device 500 provided in the embodiment of the present application may further include a bus 503 connecting different components (including the processor 501 and the memory 502). The bus 503 represents one or more of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and the like.

[0120] The memory 502 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 5021 and / or a cache memory 5022 , and may further include a read-only memory (ROM) 5023 .

[0121] The memory 502 may also include a program tool 5025 having a set (at least one) of program modules 5024, wherein the program modules 5024 include but are not limited to: an operating subsystem, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.

[0122] The voice switching device 500 may also communicate with one or more external devices 504 (e.g., keyboards, remote controls, etc.), and may also communicate with one or more devices that enable a user to interact with the voice switching device 500 (e.g., mobile phones, computers, etc.), and / or communicate with any device that enables the voice switching device 500 to communicate with one or more other voice switching devices 500 (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 505. Furthermore, the voice switching device 500 may also 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) through a network adapter 506. Figure 5 As shown, the network adapter 506 communicates with other modules of the voice switching device 500 via the bus 503. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with the tone switching device 500, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) subsystems, tape drives, and data backup storage subsystems.

[0123] It should be noted that Figure 5 The timbre switching device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0124] The computer-readable storage medium provided in the embodiment of the present application is introduced below. The computer-readable storage medium provided in the embodiment of the present application stores computer instructions, and when the computer instructions are executed by the processor, the timbre switching method provided in the embodiment of the present application is implemented. Specifically, the computer instructions can be built-in or installed in the timbre switching device 500, so that the timbre switching device 500 can implement the timbre switching method provided in the embodiment of the present application by executing the built-in or installed computer instructions.

[0125] In addition, the timbre switching method provided in the embodiment of the present application can also be implemented as a program product, which includes a program code. When the program product can be run on the timbre switching device 500, the program code is used to enable the timbre switching device 500 to execute the timbre switching method provided in the embodiment of the present application.

[0126] The program product provided in the embodiments of the present application may adopt any combination of one or more readable media, wherein the readable medium may be a readable signal medium or a readable storage medium, and the readable storage medium may be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. Specifically, more specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, RAM, ROM, Erasable Programmable Read Only Memory (EPROM), optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0127] The program product provided in the embodiment of the present application may adopt a CD-ROM and include program code, and may also be run on a computing device. However, the program product provided in the embodiment of the present application is not limited thereto. In the embodiment of the present application, the readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.

[0128] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0129] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0130] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0131] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A timbre switching method, characterized in that: include: Obtaining target speaker data and original speaker data; Based on the timbre change degree corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage; wherein the timbre change degree represents the degree of change from the timbre of the original speaker to the timbre of the target speaker; Based on the speaker data corresponding to each of the timbre change stages, obtaining the TTS system corresponding to each of the timbre change stages; Based on the calling order of the timbre change degree representations corresponding to the timbre change stages, the TTS systems corresponding to the timbre change stages are called to perform timbre switching.

2. The timbre switching method according to claim 1, wherein: Obtain the target speaker data and the original speaker data, including: Based on a first text of a target speaker and the speech of the target speaker of the first text, obtaining the target speaker data; The original speaker data is obtained based on the second text of the original speaker and the original speaker's voice of the second text.

3. The timbre switching method according to claim 1, wherein: Get the target speaker data and the original speaker data, including: Based on a first text of a target speaker and the speech of the target speaker of the first text, obtaining the target speaker data; The first text is input into the original speaker TTS system to obtain the original speaker's voice of the first text, and the original speaker data is obtained based on the first text and the original speaker's voice of the first text.

4. The timbre switching method according to claim 1, wherein: Based on the timbre change degree corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage, including: Based on the timbre change degree corresponding to each timbre change stage, determine the target speaker data amount and the original speaker data amount corresponding to each timbre change stage; wherein the target speaker data amount is proportional to the timbre change degree, and the original speaker data amount is inversely proportional to the timbre change degree; According to the target speaker data amount and the original speaker data amount corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage.

5. The timbre switching method according to claim 4, characterized in that: According to the target speaker data amount and the original speaker data amount corresponding to each timbre change stage, the target speaker data and the original speaker data are mixed to obtain the speaker data corresponding to each timbre change stage, including: Extracting i*X / N target speaker data from the target speaker data as the target speaker data to be mixed; wherein N represents the total number of timbre change stages, i represents the i-th timbre change stage, and X represents the total number of speaker data corresponding to the i-th timbre change stage; Extracting (Ni)*X / N pieces of original speaker data from the original speaker data as the original speaker data to be mixed; Based on the target speaker data to be mixed and the original speaker data to be mixed, speaker data corresponding to the i-th timbre change stage is obtained.

6. The timbre switching method according to any one of claims 1 to 5, characterized in that: Based on the speaker data corresponding to each of the timbre change stages, obtaining the TTS system corresponding to each of the timbre change stages, including: For each timbre change stage, the initial TTS system is trained based on the speaker data corresponding to the timbre change stage to obtain the TTS system corresponding to the timbre change stage.

7. The timbre switching method according to claim 6, wherein: Based on the speaker data corresponding to the timbre change stage, the initial TTS system is trained to obtain the TTS system corresponding to the timbre change stage, including: Inputting each text in the speaker data corresponding to the timbre change stage into the initial TTS system to obtain the predicted speech of each text; Based on the predicted speech and the annotated speech of each text, a cross entropy loss function is used to obtain a cross entropy loss value; Based on the cross entropy loss value, the system parameters of the initial TTS system are adjusted to obtain the TTS system corresponding to the timbre change stage.

8. The timbre switching method according to any one of claims 1 to 5, characterized in that: Based on the speaker data corresponding to each of the timbre change stages, obtaining the TTS system corresponding to each of the timbre change stages, including: For each timbre change stage, the initial TTS system is adjusted based on the speaker data corresponding to the timbre change stage to obtain the TTS system corresponding to the timbre change stage.

9. The timbre switching method according to claim 8, wherein: Based on the speaker data corresponding to the timbre change stage, the initial TTS system is adjusted to obtain the TTS system corresponding to the timbre change stage, including: Inputting the speaker data corresponding to the timbre change stage into the initial TTS system to obtain the target value of the timbre control parameter of the initial TTS system; Based on the target value of the timbre control parameter of the initial TTS system, a TTS system corresponding to the timbre change stage is obtained.

10. The timbre switching method according to any one of claims 1 to 5, characterized in that: Based on the calling order of the timbre change degree representations corresponding to the timbre change stages, calling the TTS systems corresponding to the timbre change stages respectively includes: According to the order of the timbre change degrees corresponding to the timbre change stages from small to large, the TTS systems corresponding to the timbre change stages are sorted to obtain a TTS system sequence; Each time a TTS system call request is received, the next TTS system adjacent to the last called TTS system is selected from the TTS system sequence for calling.

11. The timbre switching method according to any one of claims 1 to 3, characterized in that: Based on the calling order of the timbre change degree representations corresponding to the timbre change stages, calling the TTS systems corresponding to the timbre change stages respectively includes: According to the order of the timbre change degrees corresponding to the timbre change stages from small to large, the TTS systems corresponding to the timbre change stages are sorted to obtain a TTS system sequence; Each time a TTS system call request is received, the time interval between the current time and the time when the TTS system was last called is determined, and based on the time interval, a TTS system is selected for calling from each TTS system included in the TTS system sequence starting from the TTS system last called.

12. The timbre switching method according to claim 11, wherein: Based on the time interval, selecting a TTS system to call from each TTS system included in the TTS system sequence and starting from the TTS system called last time, includes: If it is determined that the time interval does not exceed the first threshold, when it is determined that the usage frequency of the TTS system within the set time range is less than the frequency threshold, the TTS system that was last called is selected from each TTS system included in the TTS system sequence and starting from the TTS system that was last called to call, and when it is determined that the usage frequency of the TTS system within the set time range is not less than the frequency threshold, the next TTS system of the TTS system that was last called is selected from each TTS system included in the TTS system sequence and starting from the TTS system that was last called to call; If it is determined that the time interval exceeds the first threshold, when it is determined that the time interval does not exceed the second threshold, the next TTS system of the last called TTS system is selected for calling from each TTS system included in the TTS system sequence and taking the last called TTS system as the starting point; when it is determined that the time interval exceeds the second threshold, based on the set selection rule, a TTS system is selected for calling from each TTS system included in the TTS system sequence and after the last called TTS system.

13. A timbre switching device, characterized in that: include: A data acquisition unit, used to acquire target speaker data and original speaker data; A data mixing unit, for mixing the target speaker data and the original speaker data based on the timbre change degree corresponding to each timbre change stage, to obtain the speaker data corresponding to each timbre change stage; wherein the timbre change degree represents the degree of change from the timbre of the original speaker to the timbre of the target speaker; A system acquisition unit, configured to obtain the TTS system corresponding to each timbre change stage based on the speaker data corresponding to each timbre change stage; The system calling unit is used to call the TTS systems corresponding to each timbre change stage to perform timbre switching based on the calling order of the timbre change degree representations corresponding to each timbre change stage.

14. A timbre switching device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the timbre switching method as described in any one of claims 1 to 12 when executing the computer program.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the timbre switching method according to any one of claims 1 to 12 is implemented.