Speech synthesis method and device and electronic equipment
Through the personalized acoustic model and voiceprint migration processing technology, the appropriate voiceprint migration method is selected according to the speech synthesis needs, which solves the problem of poor speech synthesis effect caused by poor recording data quality, and achieves the optimization and improvement of speech synthesis effect.
Patent Information
- Application Number
- CN202310325946.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-15
AI Technical Summary
Existing speech synthesis technology has poor speech synthesis effect when the quality of recording data is poor, making it difficult to achieve high-quality speech synthesis.
A personalized acoustic model is used to encode the text to be synthesized, and through voiceprint transfer processing technology, the speech coding information is transferred based on the voiceprint information of the target selection object, and the appropriate speech synthesis direction is selected to optimize the speech synthesis effect.
It achieves controllable migration and optimization of the direction of speech synthesis, improves the effect and quality of speech synthesis, can select appropriate voiceprint migration methods for different speech synthesis needs, and improves the sound quality and rhythm of speech synthesis.
Smart Images

Figure CN118782017A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speech synthesis technology, and more specifically, to a method, device and electronic device for speech synthesis. Background Art
[0002] In some speech synthesis scenarios, model training is usually performed based on the recording data of the recorder to obtain a trained acoustic model in order to learn the recorder's language style and timbre. Then, speech synthesis can be performed on the text to be synthesized based on the trained acoustic model to obtain synthesized speech.
[0003] However, due to the poor quality of recorded data and other reasons, the speech synthesis effect using this method is usually poor. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, an apparatus and an electronic device for speech synthesis, so as to improve the speech synthesis effect when performing speech synthesis.
[0005] On the one hand, a method for speech synthesis is provided, comprising:
[0006] A personalized acoustic model is used to encode the text to be synthesized to obtain speech coding information; the personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object;
[0007] Based on the basic acoustic model, voiceprint information of the target selection object is obtained; the basic acoustic model is obtained by model training based on voice sample data of multiple audio providing objects; the target selection object is selected from the multiple audio providing objects;
[0008] Based on the voiceprint information of the target selected object, the voiceprint migration method corresponding to the selected target speech synthesis direction is adopted to perform voiceprint migration processing on the speech coding information to obtain migration processing information; the target speech synthesis direction is selected from multiple speech synthesis directions;
[0009] Speech synthesis is performed based on the migration processing information to obtain the target synthesized speech.
[0010] In one aspect, a speech synthesis device is provided, comprising:
[0011] The encoding unit is used to encode the text to be synthesized by using a personalized acoustic model to obtain speech coding information; the personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object;
[0012] An obtaining unit, configured to obtain voiceprint information of a target selection object based on a basic acoustic model; the basic acoustic model is obtained by model training based on speech sample data of multiple audio providing objects; the target selection object is selected from the multiple audio providing objects;
[0013] A migration unit is used to perform voiceprint migration processing on the speech coding information based on the voiceprint information of the target selected object and adopt the voiceprint migration method set corresponding to the selected target speech synthesis direction to obtain migration processing information; the target speech synthesis direction is selected from multiple speech synthesis directions;
[0014] The synthesis unit is used to perform speech synthesis based on the migration processing information to obtain the target synthesized speech.
[0015] On the one hand, an electronic device is provided, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the method provided in any of the various optional implementations of speech synthesis described above are executed.
[0016] On the one hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in any of the various optional implementations of speech synthesis described above are executed.
[0017] On the one hand, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the steps of the method provided in any of the various optional implementations of speech synthesis described above.
[0018] In the speech synthesis method, device and electronic device provided in the embodiment of the present application, a personalized acoustic model is used to encode the text to be synthesized to obtain speech coding information; the personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object; based on the basic acoustic model, the voiceprint information of the target selection object is obtained; the basic acoustic model is obtained by model training based on the speech sample data of multiple audio providing objects; the target selection object is selected from multiple audio providing objects; based on the voiceprint information of the target selection object, the voiceprint migration method corresponding to the selected target speech synthesis direction is used to perform voiceprint migration processing on the speech coding information to obtain migration processing information; the target speech synthesis direction is selected from multiple speech synthesis directions; speech synthesis is performed based on the migration processing information to obtain the target synthesized speech. In this way, different voiceprint migration methods can be selected for speech synthesis according to different speech synthesis requirements, which realizes controllable migration optimization of the speech synthesis direction and improves the effect of speech synthesis.
[0019] Other features and advantages of the present application will be described in the subsequent description, and partly become apparent from the description, or 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
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A flowchart of a method for speech synthesis provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of the architecture of a speech synthesis system provided in an embodiment of the present application;
[0023] Figure 3 A flow chart of a method for voiceprint migration processing provided in an embodiment of the present application;
[0024] Figure 4 A flowchart of another method for voiceprint migration processing provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of a speech synthesis device provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0028] First, some terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0029] Terminal device: can be a mobile terminal, a fixed terminal or a portable terminal, such as a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communication system device, a personal navigation device, a personal digital assistant, an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. It is also foreseeable that the terminal device can support any type of interface for an audio provider (such as a wearable device), etc.
[0030] Server: It can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms.
[0031] In some speech synthesis scenarios, model training is usually performed based on the recording data of the recorder to obtain a trained acoustic model to learn the recorder's style and timbre, and then speech synthesis can be performed based on the acoustic model to obtain synthesized speech.
[0032] However, the recorder may have low-quality equipment when recording. Faced with the uncontrollable recording quality of the audio provider, the trained acoustic model can usually only learn the style and timbre of the recorder, and the speech quality of the synthesized speech will basically not exceed the original recording. Therefore, when the recording quality is poor, the speech synthesis effect is poor.
[0033] Considering that speech synthesis can be achieved by data migration to improve the effect of speech synthesis, and different voiceprint migration methods can be selected according to different speech synthesis requirements to achieve controllable migration optimization of the speech synthesis direction, the embodiments of the present application provide a method, device and electronic device for speech synthesis.
[0034] In the embodiment of the present application, it is applied to an electronic device, and the electronic device can be a server or a terminal device.
[0035] In an application scenario, a user inputs a text to be synthesized (e.g., a navigation text) and a target synthesis object (e.g., a target speaker) through a client of a user terminal (which can be a terminal device), selects a target selection object (e.g., selects speaker 2) from multiple audio providing objects (e.g., speaker 1, speaker 2, speaker 3, etc.), and selects a target speech synthesis direction (e.g., selects the first speech synthesis direction) from multiple speech synthesis directions (e.g., a first speech synthesis direction and a second speech synthesis direction), and sends a speech synthesis instruction to a server based on the text to be synthesized, the target synthesis object, the target selection object, and the target speech synthesis direction. The server determines the text to be synthesized, the target synthesis object, the target selection object, and the target speech synthesis direction based on the received speech synthesis instruction, and uses a personalized acoustic model corresponding to the target synthesis object, and performs speech encoding, voiceprint migration (i.e., voiceprint replacement), and speech synthesis on the text to be synthesized based on the voiceprint information of the target selection object according to the voiceprint migration mode set corresponding to the target speech synthesis direction, obtains the target synthesized speech, and returns the target synthesized speech to the client. The user can play the target synthesized speech through the client.
[0036] Combine the following Figure 1 The method of speech synthesis is described in detail. Figure 1 FIG. 1 is a flowchart of a method for speech synthesis provided in an embodiment of the present application. The specific implementation process of the method is as follows:
[0037] Step 100: Use a personalized acoustic model to encode the text to be synthesized to obtain speech coding information.
[0038] Specifically, the personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object. The basic acoustic model is obtained by model training based on the speech sample data of multiple audio providing objects. The speech coding information includes the voiceprint information of the target synthesis object.
[0039] In one implementation, speech sample data of multiple audio providers are obtained, and a speaker voice library is formed based on the speech sample data of each audio provider, and a basic acoustic initial model is trained based on the speech sample data of each audio provider in the speaker voice library to obtain a trained basic acoustic model. Furthermore, based on the speech sample data of the target synthesis object, the trained basic acoustic model is fine-tuned to obtain a trained personalized acoustic model.
[0040] As an example, a few-shot learning approach can be adopted to use a small amount of speech sample data of the target synthesis object to fine-tune the basic acoustic model to obtain a trained personalized acoustic model.
[0041] It should be noted that the construction principles of the basic acoustic model and the personalized acoustic model are the same.
[0042] In one implementation, the basic acoustic initial model, the basic acoustic model, and the personalized acoustic model may all be constructed using a codec (Encoder-Decoder) architecture, which includes an encoder (Encoder) and a decoder (Decoder).
[0043] Among them, Encoder: is used to encode the input information and obtain the speech coding information. The input information includes the text to be synthesized and may also include the phoneme information of the text to be synthesized. It should be noted that the Encoder can also encode the voiceprint information of each speaker (such as the voiceprint information of the target synthesis object) into an embedding vector (embedding), and store the embedding in association with the speaker, so that the speaker's embedding can be directly called during encoding.
[0044] As an example, during model training, the Encoder can extract the voiceprint information of each speaker's speech sample data, encode it into an embedding, and associate the speaker with the embedding and store it in a voiceprint table, so that when voice synthesis calls the voiceprint information, the speaker's embedding can be directly called by "lookup table" and other methods.
[0045] In the embodiment of the present application, an embedding layer of the speaker is added, so that the voiceprint information of the target selection object can be introduced through the embedding layer, so that in the subsequent steps, the voiceprint replacement for the target synthesis object can be achieved based on the embedding layer, and then the controllable migration of the rhythm and sound quality of the synthesized speech can be achieved.
[0046] Step 101: Based on the basic acoustic model, obtain the voiceprint information of the target selection object.
[0047] Specifically, the implementation process of step 101 may adopt the following steps:
[0048] S1011: Determine a target selection object to be selected from various audio providing objects according to the speech synthesis instruction.
[0049] The target selection object is selected from a plurality of audio providing objects.
[0050] Furthermore, an audio providing object may be randomly selected from various audio providing objects as the target selection object.
[0051] S1012: Input the user identification of the target selection object into the basic acoustic model to obtain the voiceprint information of the target selection object.
[0052] In one implementation, user identification information of the target selection object is input into a basic acoustic model, and voiceprint information of the target selection object is generated based on the voiceprint of the target selection object through the basic acoustic model.
[0053] In this way, the voiceprint information of the specified audio providing object (ie, the target selection object) can be generated.
[0054] Step 102: Based on the voiceprint information of the target selected object, the voiceprint migration method corresponding to the selected target speech synthesis direction is adopted to perform voiceprint migration processing on the speech coding information to obtain migration processing information.
[0055] Specifically, the target speech synthesis direction is a speech synthesis direction selected from a plurality of speech synthesis directions. The speech synthesis direction may include a first speech synthesis direction and a second speech synthesis direction. Then, according to the speech synthesis instruction, the target speech synthesis direction may be selected, and the voiceprint migration method corresponding to the selected target speech synthesis direction may be adopted to perform voiceprint migration processing on the speech coding information based on the voiceprint information of the target selected object to obtain migration processing information.
[0056] In one implementation, the implementation process of step 102 may be implemented in any of the following ways:
[0057] Method 1: If the target speech synthesis direction is determined to be the first speech synthesis direction, the voiceprint migration method corresponding to the first speech synthesis direction is adopted, and the speech coding information is subjected to voiceprint migration processing based on the voiceprint information of the target selection object to obtain migration processing information.
[0058] Method 2: If the target speech synthesis direction is determined to be the second speech synthesis direction, the voiceprint migration method corresponding to the second speech synthesis direction is adopted to perform voiceprint migration processing on the speech coding information based on the voiceprint information of the target selection object to obtain migration processing information.
[0059] Combine the following Figure 2 The speech synthesis system in the present invention describes the above-mentioned voiceprint migration method. Figure 2 The figure shows a schematic diagram of the architecture of a speech synthesis system. The speech synthesis system includes: a personalized acoustic model, a basic acoustic model and a voiceprint migration module. The personalized acoustic model is obtained by fine-tuning the basic acoustic model. The personalized acoustic model includes: an encoder, a variance predictor, a duration predictor and a decoder. Optionally, the speech synthesis system may also include a speech synthesis module.
[0060] Among them, the variance predictor can describe the information of the synthesized speech in more dimensions, making the expression of the final target synthesized speech richer. The duration predictor can predict the pronunciation duration information of the corresponding speaker's phoneme based on the speaker information carried by the input information. The decoder can decode the input information into Mel spectrogram.
[0061] Among them, the voiceprint migration module is used to obtain the voiceprint information of the target selected object based on the basic acoustic model, and select the voiceprint information of the target selected object to be input into the variance predictor or the duration predictor according to the target speech synthesis direction. Specifically, if the target speech synthesis direction is the first speech synthesis direction, the voiceprint information of the target selected object is input into the variance predictor; if the target speech synthesis direction is the second speech synthesis direction, the voiceprint information of the target selected object is input into the duration predictor.
[0062] Speech synthesis module: The decoded Mel spectrum can be input to the vocoder, and the Vocoder synthesizes an audio waveform file (i.e., the target synthesized speech) based on the input information, thereby completing the final process of speech synthesis. It should be noted that if the personalized acoustic model is an end-to-end model, the Vocoder is not required, and the audio waveform file can be directly synthesized based on the decoded Mel spectrum.
[0063] In an embodiment of the present application, the voiceprint information of the target selected object is obtained through the voiceprint migration module, and the voiceprint information of the target selected object is output to the variance predictor or the duration predictor according to the target speech synthesis direction selected according to the speech synthesis requirement. Then, the voiceprint information of the target selected object can replace the voiceprint information of the target synthesis object in the speech coding information, thereby obtaining a migration effect (i.e., a speech synthesis effect) that meets the actual speech synthesis requirement, thereby realizing controllable migration optimization of the speech synthesis effect.
[0064] Combine the following Figure 2 and Figure 3 The above method 1 is described in detail. Figure 3 FIG. 1 is a flow chart of a method for voiceprint migration processing. The implementation process of method 1 may include the following steps:
[0065] S301: Using a variance predictor, based on the voiceprint information and speech coding information of a target selection object, obtain first variance prediction information.
[0066] In one implementation, the implementation process of S301 may include:
[0067] S3011: Replace the voiceprint information of the target synthetic object in the speech coding information with the voiceprint information of the target selected object to obtain synthetic coding information. S3012: Use a variance predictor to perform variance calculation based on the synthetic coding information to obtain first variance prediction information.
[0068] In this way, the voiceprint information of the target selection object can be used to replace the voiceprint information of the target synthesis object in the speech coding information, and then the subsequent variance prediction can be performed.
[0069] S302: Obtain migration processing information based on the first variance prediction information.
[0070] In one implementation, the implementation process of S302 may include:
[0071] S3021: Using a duration predictor, performing duration calculation based on the first variance prediction information and the synthesized coding information, and obtaining first duration prediction information. In this way, the duration predictor can be used to perform duration prediction based on the first variance prediction information and the synthesized coding information, and obtain first duration prediction information. S3022: Using a decoder, performing decoding processing based on the first variance prediction information and the first duration prediction information, and obtaining migration processing information.
[0072] In this way, the decoder can perform decoding based on the first variance prediction information and the first duration prediction information to obtain the migration processing information.
[0073] In the embodiment of the present application, if the target speech synthesis direction is the first speech synthesis direction, the voiceprint information of the target selected object can be obtained through the voiceprint migration module, and the voiceprint information of the target selected object can be output to the variance predictor, and the voiceprint information of the target selected object can be replaced by the variance predictor with the voiceprint information of the target synthesis object in the speech coding information, and the variance operation is performed on the obtained synthesis coding information. Since the sound quality of the speech sample data of the target synthesis object is usually not as good as the sound quality of the speech sample data of the target selected object during model training, therefore, using voiceprint replacement during variance operation can enable the decoder to output a Mel spectrum with richer expressiveness and improve the sound quality of speech synthesis, which is equivalent to a sound beauty effect. While improving the sound quality, the timbre similarity of the target synthesis object is slightly reduced. Further, the output of the variance predictor and the synthesis coding information are input into the duration predictor, and the duration predictor can generate the duration information of the pronunciation factor according to the rhythmic style of the target selected object, thereby changing the pronunciation duration of the phonemes of the target synthesis object, and then revising the rhythm or speech style of the synthesized speech (for example, it can be more broadcasting, more colloquial, etc.).
[0074] Combine the following Figure 4 and Figure 2 , the above method 2 is described in detail. Figure 4 FIG. 2 is a flowchart of another method for voiceprint migration processing. The implementation process of the second method may include the following steps:
[0075] S401: Using a variance predictor to perform variance calculation based on speech coding information to obtain second variance prediction information.
[0076] In one implementation, the speech coding information is input into a variance predictor to obtain second variance prediction information.
[0077] S402: Using a duration predictor, based on the second variance prediction information, speech coding information and voiceprint information of the target selection object, obtain migration processing information.
[0078] In one implementation, the implementation process of S402 may include:
[0079] S4021: Replace the voiceprint information of the target synthetic object in the speech coding information with the voiceprint information of the target selected object to obtain the synthetic coding information. S4022: Use the duration predictor to perform duration calculation based on the second variance prediction information and the synthetic coding information to obtain the second duration prediction information. S4023: Use the decoder to perform decoding processing based on the second variance prediction information and the second duration prediction information to obtain the migration processing information.
[0080] In this way, if the target speech synthesis direction is determined to be the second speech synthesis direction, the voiceprint information of the target selected object can be obtained through the voiceprint migration module, and the voiceprint information of the target selected object can be output to the duration predictor, and the voiceprint information of the target selected object can be replaced by the duration predictor with the voiceprint information of the target synthesis object in the speech coding information to obtain the synthesis coding information, and the duration operation is performed based on the second variance prediction information and the synthesis coding information to obtain the second duration prediction information, so that the timbre information of the target synthesis object can be retained, and the duration information of the pronunciation factors is generated according to the rhythmic style of the target selected object through the duration predictor, thereby changing the pronunciation duration of the phonemes of the target synthesis object, and then revising the rhythm or speech style of the synthesized speech.
[0081] Step 103: Perform speech synthesis based on the migration processing information to obtain target synthesized speech.
[0082] In one implementation, a vocoder is used to perform speech synthesis processing on the migration processing information output by the decoder to generate an audio waveform file (ie, target synthesized speech).
[0083] In the embodiment of the present application, during the model training process, the model training is performed in advance based on the speech sample data of multiple audio providing objects, a basic acoustic model is obtained, and the voiceprint information of each audio providing object is stored (for example, the embedding generated based on the voiceprint information of each audio providing object can be stored), and the few-shot technical route is adopted to fine-tune the trained basic acoustic model based on the speech sample data of the target synthesized audio providing object to obtain a personalized acoustic model, and the voiceprint information of the target synthesized object is stored. Also, during the speech synthesis process, the text to be synthesized is input into the personalized acoustic model, and the voiceprint information of the target selected object is obtained through the voiceprint migration module, and according to the selected target speech synthesis direction, the voiceprint is replaced in the variance predictor or the duration predictor to introduce the voiceprint information of the target selected object, so as to realize the controllable migration optimization of the rhythm and sound quality of the synthesized speech of the target synthesized object.
[0084] In this way, the high-quality speech data of each audio provider in the basic acoustic model can be directly used, and through the synthesis with the speech information of the selected audio provider in the basic acoustic model, the target synthesized speech can achieve a certain degree of controllability in the direction and degree of speaking style, rhythm characteristics and sound quality beautification. Furthermore, in the process of controllable migration optimization of speech synthesis, there is no need to train the model for controllable migration optimization, and the speech of many different speaking styles of the target synthesis object can be efficiently synthesized, realizing the optimization of rhythm characteristics and sound quality. Furthermore, it can be applied to any acoustic model built on the basis of Encoder-Decoder, does not depend on a specific model structure, and has a wide range of applications.
[0085] It should be noted that, in this specification and the embodiments, if the scheme involves the processing of personal information, it will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or it is necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. The refusal of the audio provider to process personal information other than the necessary information for basic functions will not affect the audio provider's use of basic functions.
[0086] Based on the same inventive concept, a speech synthesis device is also provided in the embodiment of the present application. Since the principle of solving the problem by the above-mentioned device and equipment is similar to that of a speech synthesis method, the implementation of the above-mentioned device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0087] like Figure 5 As shown, it is a structural schematic diagram of a speech synthesis device provided in an embodiment of the present application, including:
[0088] The encoding unit 501 is used to encode the text to be synthesized using a personalized acoustic model to obtain speech coding information; the personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object;
[0089] The obtaining unit 502 is used to obtain the voiceprint information of the target selection object based on the basic acoustic model; the basic acoustic model is obtained by model training based on the speech sample data of multiple audio providing objects; the target selection object is selected from the multiple audio providing objects;
[0090] A migration unit 503 is used to perform voiceprint migration processing on the speech coding information based on the voiceprint information of the target selected object and adopt the voiceprint migration method set corresponding to the selected target speech synthesis direction to obtain migration processing information; the target speech synthesis direction is selected from multiple speech synthesis directions;
[0091] The synthesis unit 504 is used to perform speech synthesis based on the migration processing information to obtain the target synthesized speech.
[0092] In one implementation, the migration unit 503 is used to:
[0093] If the target speech synthesis direction is determined to be the first speech synthesis direction, a variance predictor is used to obtain first variance prediction information based on the voiceprint information and speech coding information of the target selection object, and migration processing information is obtained based on the first variance prediction information;
[0094] If the target speech synthesis direction is determined to be the second speech synthesis direction, a variance predictor is used to perform variance calculation based on the speech coding information to obtain second variance prediction information, and a duration predictor is used to obtain migration processing information based on the second variance prediction information, speech coding information and voiceprint information of the target selection object.
[0095] In one implementation, the migration unit 503 is used to:
[0096] The voiceprint information of the target selected object is used to replace the voiceprint information of the target synthetic object in the speech coding information to obtain synthetic coding information;
[0097] A variance predictor is used to perform variance calculation based on the synthesized coding information to obtain first variance prediction information.
[0098] In one implementation, the migration unit 503 is used to:
[0099] Using a duration predictor, performing duration calculation based on the first variance prediction information and the synthesized coding information to obtain first duration prediction information;
[0100] A decoder is used to perform decoding processing based on the first variance prediction information and the first duration prediction information to obtain migration processing information.
[0101] In one implementation, the migration unit 503 is used to:
[0102] The voiceprint information of the target selected object is used to replace the voiceprint information of the target synthetic object in the speech coding information to obtain synthetic coding information;
[0103] Using a duration predictor, performing duration calculation based on the second variance prediction information and the synthesized coding information to obtain second duration prediction information;
[0104] A decoder is used to perform decoding processing based on the second variance prediction information and the second duration prediction information to obtain migration processing information.
[0105] In the speech synthesis method, device and electronic device provided in the embodiment of the present application, a personalized acoustic model is used to encode the text to be synthesized to obtain speech coding information; the personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object; based on the basic acoustic model, the voiceprint information of the target selection object is obtained; the basic acoustic model is obtained by model training based on the speech sample data of multiple audio providing objects; the target selection object is selected from multiple audio providing objects; based on the voiceprint information of the target selection object, the voiceprint migration method corresponding to the selected target speech synthesis direction is used to perform voiceprint migration processing on the speech coding information to obtain migration processing information; the target speech synthesis direction is selected from multiple speech synthesis directions; speech synthesis is performed based on the migration processing information to obtain the target synthesized speech. In this way, different voiceprint migration methods can be selected for speech synthesis according to different speech synthesis requirements, which realizes controllable migration optimization of the speech synthesis direction and improves the effect of speech synthesis.
[0106] Figure 6 FIG. 6 is a schematic diagram showing the structure of an electronic device 6000. Figure 6 As shown, the electronic device 6000 includes: a processor 6010 and a memory 6020, and optionally, may also include a power supply 6030, a display unit 6040, and an input unit 6050.
[0107] The processor 6010 is the control center of the electronic device 6000. It connects various components using various interfaces and lines, and performs various functions of the electronic device 6000 by running or executing software programs and / or data stored in the memory 6020, thereby monitoring the electronic device 6000 as a whole.
[0108] In the embodiment of the present application, the processor 6010 executes the various steps in the above embodiment when calling the computer program stored in the memory 6020.
[0109] Optionally, the processor 6010 may include one or more processing units; preferably, the processor 6010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, an audio provider object interface and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 6010. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips.
[0110] The memory 6020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, various applications, etc.; the data storage area may store data created according to the use of the electronic device 6000, etc. In addition, the memory 6020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices, etc.
[0111] The electronic device 6000 also includes a power source 6030 (such as a battery) for supplying power to various components. The power source can be logically connected to the processor 6010 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0112] The display unit 6040 may be used to display information input by or provided to the audio provider, various menus of the electronic device 6000, and in the embodiment of the present invention, is mainly used to display the display interface of each application in the electronic device 6000 and objects such as text and pictures displayed in the display interface. The display unit 6040 may include a display panel 6041. The display panel 6041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), and the like.
[0113] The input unit 6050 may be used to receive information such as numbers or characters input by the audio provider. The input unit 6050 may include a touch panel 6051 and other input devices 6052. The touch panel 6051, also known as a touch screen, may collect touch operations on or near the audio provider (such as operations on or near the touch panel 6051 by the audio provider using any suitable object or accessory such as a finger, a touch pen, etc.).
[0114] Specifically, the touch panel 6051 can detect the touch operation of the audio providing object, detect the signal brought by the touch operation, convert these signals into touch point coordinates, send them to the processor 6010, and receive and execute the command sent by the processor 6010. In addition, the touch panel 6051 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. Other input devices 6052 can include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.
[0115] Of course, the touch panel 6051 can cover the display panel 6041. When the touch panel 6051 detects a touch operation on or near it, it is transmitted to the processor 6010 to determine the type of touch event. Then the processor 6010 provides corresponding visual output on the display panel 6041 according to the type of touch event. Figure 6 In the embodiment, the touch panel 6051 and the display panel 6041 are used as two independent components to realize the input and output functions of the electronic device 6000, but in some embodiments, the touch panel 6051 and the display panel 6041 can be integrated to realize the input and output functions of the electronic device 6000.
[0116] The electronic device 6000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, according to the needs of specific applications, the electronic device 6000 may also include other components such as a camera. Since these components are not the key components used in the embodiments of the present application, Figure 6 It is not shown and will not be described in detail.
[0117] Those skilled in the art will understand that Figure 6 The electronic device is merely an example and does not limit the electronic device, and may include more or less components than those shown in the figure, or may combine certain components, or may include different components.
[0118] In an embodiment of the present application, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a communication device can perform each step in the above embodiment.
[0119] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0124] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional 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.
[0125] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations 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 method for speech synthesis, It is characterized in that include: A personalized acoustic model is used to encode the synthesized text to obtain speech coding information; The personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object; Based on the basic acoustic model, obtaining the voiceprint information of the target selected object; The basic acoustic model is obtained by model training based on speech sample data of multiple audio providing objects; The target selection object is selected from the plurality of audio providing objects; Based on the voiceprint information of the target selected object, the voiceprint migration method corresponding to the selected target speech synthesis direction is adopted to perform voiceprint migration processing on the speech coding information to obtain migration processing information; the target speech synthesis direction is selected from multiple speech synthesis directions; Speech synthesis is performed based on the migration processing information to obtain target synthesized speech.
2. The method according to claim 1, It is characterized in that Based on the voiceprint information of the target selected object, the voiceprint migration method corresponding to the selected target speech synthesis direction is adopted to perform voiceprint migration processing on the speech coding information to obtain migration processing information, including: If it is determined that the target speech synthesis direction is the first speech synthesis direction, a variance predictor is used to obtain first variance prediction information based on the voiceprint information of the target selection object and the speech coding information, and the migration processing information is obtained based on the first variance prediction information; If it is determined that the target speech synthesis direction is the second speech synthesis direction, a variance predictor is used to perform variance calculation based on the speech coding information to obtain second variance prediction information, and a duration predictor is used to obtain the migration processing information based on the second variance prediction information, the speech coding information and the voiceprint information of the target selection object.
3. The method according to claim 2, It is characterized in that The adopting a variance predictor to obtain first variance prediction information based on the voiceprint information of the target selection object and the speech coding information includes: Replace the voiceprint information of the target synthetic object in the speech coding information with the voiceprint information of the target selected object to obtain synthetic coding information; A variance predictor is used to perform variance calculation based on the synthesized coding information to obtain the first variance prediction information.
4. The method according to claim 3, It is characterized in that The obtaining the migration processing information based on the first variance prediction information includes: Using the duration predictor, performing duration calculation based on the first variance prediction information and the synthesized coding information to obtain first duration prediction information; A decoder is used to perform decoding processing based on the first variance prediction information and the first duration prediction information to obtain the migration processing information.
5. The method according to any one of claims 2 to 4, It is characterized in that The adopting time length predictor, based on the second variance prediction information, the speech coding information and the voiceprint information of the target selection object, obtains the migration processing information, including: Replace the voiceprint information of the target synthetic object in the speech coding information with the voiceprint information of the target selected object to obtain synthetic coding information; Using the duration predictor, performing duration calculation based on the second variance prediction information and the synthesized coding information to obtain second duration prediction information; A decoder is used to perform decoding processing based on the second variance prediction information and the second duration prediction information to obtain migration processing information.
6. A speech synthesis device, It is characterized in that include: An encoding unit, used for encoding the text to be synthesized by adopting a personalized acoustic model to obtain speech encoding information; The personalized acoustic model is obtained by fine-tuning the basic acoustic model based on the speech sample data of the target synthesis object; An obtaining unit, configured to obtain voiceprint information of a target selected object based on the basic acoustic model; The basic acoustic model is obtained by model training based on speech sample data of multiple audio providing objects; The target selection object is selected from the plurality of audio providing objects; a migration unit, configured to perform voiceprint migration processing on the speech coding information based on the voiceprint information of the target selected object and adopt a voiceprint migration method corresponding to the selected target speech synthesis direction to obtain migration processing information; the target speech synthesis direction is selected from multiple speech synthesis directions; The synthesis unit is used to perform speech synthesis based on the migration processing information to obtain target synthesized speech.
7. The device according to claim 6, It is characterized in that The migration unit is used for: If it is determined that the target speech synthesis direction is the first speech synthesis direction, a variance predictor is used to obtain first variance prediction information based on the voiceprint information of the target selection object and the speech coding information, and the migration processing information is obtained based on the first variance prediction information; If it is determined that the target speech synthesis direction is the second speech synthesis direction, a variance predictor is used to perform variance calculation based on the speech coding information to obtain second variance prediction information, and a duration predictor is used to obtain the migration processing information based on the second variance prediction information, the speech coding information and the voiceprint information of the target selection object.
8. The device according to claim 7, It is characterized in that The migration unit is used for: Replace the voiceprint information of the target synthetic object in the speech coding information with the voiceprint information of the target selected object to obtain synthetic coding information; A variance predictor is used to perform variance calculation based on the synthesized coding information to obtain the first variance prediction information.
9. The device as claimed in claim 8, It is characterized in that The migration unit is used for: Using the duration predictor, performing duration calculation based on the first variance prediction information and the synthesized coding information to obtain first duration prediction information; A decoder is used to perform decoding processing based on the first variance prediction information and the first duration prediction information to obtain the migration processing information.
10. The device according to any one of claims 7 to 9, It is characterized in that The migration unit is used for: Replace the voiceprint information of the target synthetic object in the speech coding information with the voiceprint information of the target selected object to obtain synthetic coding information; Using the duration predictor, performing duration calculation based on the second variance prediction information and the synthesized coding information to obtain second duration prediction information; A decoder is used to perform decoding processing based on the second variance prediction information and the second duration prediction information to obtain migration processing information.
11. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 5 is executed.
