Multilingual speech synthesis method, system, device and storage medium
Through multi-text encoding groups, process texts in different languages, generate target language vectors and perform Mel spectral decoding, the problem of multilingual speech synthesis model in the prior art relying on speakers' multilingual ability and large amount of training data, and improve multilingual speech The accuracy of the conversion.
Patent Information
- Application Number
- CN202111131972.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-09-26
AI Technical Summary
The existing multilingual speech synthesis model relies too much on speakers' multilingual ability during training and requires a large amount of training data, making it difficult to effectively handle speech synthesis between multiple languages.
Multi-text encoding groups are used to process texts in different languages, and target language vectors are generated through language encoding models and text encoding models, and Mel spectral decoding is performed to realize multilingual speech synthesis.
There is no need to rely on a person's multilingual ability and large amount of training data, which improves the accuracy of multilingual speech conversion results.
Smart Images

Figure CN113870834B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a multilingual speech synthesis method, system, device and storage medium. Background Art
[0002] End-to-end speech synthesis can already generate natural-sounding human-like speech in real time. When these end-to-end speech synthesis models are extended to apply to multiple languages, the extended speech synthesis models cannot perform multi-language speech synthesis well. For example, when the training between multiple languages is unbalanced, the speech synthesis model cannot convert the language with less training into speech. In the related art, multi-language speech synthesis mainly adopts three ideas: transfer learning, knowledge sharing, and speech cloning. Transfer learning is to train the speech synthesis model corresponding to low-quality data resources by migrating the synthesis model obtained by high-quality data language training. Knowledge sharing considers the use of multi-language data to jointly train a single shared synthesis model. Speech cloning requires the same speaker to record speech in multiple languages, that is, cross-language speech cloning. However, the above three multi-language speech synthesis methods only support 2-3 languages at the same time, or require a large amount of training data. Summary of the invention
[0003] The purpose of the present invention is to solve one of the technical problems existing in the prior art to at least a certain extent.
[0004] To this end, the embodiments of the present invention provide a multilingual speech synthesis method, system, device and storage medium, which can improve the accuracy of multilingual speech conversion results without requiring a large amount of training data.
[0005] On the one hand, an embodiment of the present invention provides a multilingual speech synthesis method, comprising the following steps:
[0006] Acquire multiple types of language texts and language numbers, each of the language texts corresponding to one of the language numbers;
[0007] Inputting the language codes of multiple types into a language encoding model to generate parameter vectors corresponding to the language text;
[0008] Inputting the language texts of multiple types into a text encoding model to extract the parameter vectors corresponding to the language texts, wherein the text encoding model includes multiple text encoding groups;
[0009] Each of the text encoding groups encodes the language text according to the parameter vector to obtain an output vector of the language text;
[0010] Concatenating the pre-acquired speech synthesis parameter information with the output vector to obtain a target language vector;
[0011] Performing mel-spectrogram decoding on the target language vector to obtain a mel-spectrogram;
[0012] The mel-spectrogram is converted into a target speech.
[0013] On the other hand, an embodiment of the present invention provides a multilingual speech synthesis system, including:
[0014] An acquisition module, used for acquiring multiple types of language texts and language numbers, each of the language texts corresponding to one language number;
[0015] A first input module, used for inputting the language codes of multiple types into a language encoding model to generate a parameter vector corresponding to the language text;
[0016] A second input module, used for inputting the language texts of various types into a text encoding model to extract the parameter vectors corresponding to the language texts, wherein the text encoding model includes a plurality of text encoding groups;
[0017] An encoding module, configured for each of the text encoding groups to encode the language text according to the parameter vector to obtain an output vector of the language text;
[0018] A concatenation module, used for concatenating the pre-acquired speech synthesis parameter information and the output vector to obtain a target language vector;
[0019] A decoding module, used for performing mel-spectrogram decoding on the target language vector to obtain a mel-spectrogram;
[0020] The conversion module is used to convert the mel-spectrogram into a target speech.
[0021] On the other hand, an embodiment of the present invention provides a multilingual speech synthesis device, including:
[0022] at least one memory for storing a program;
[0023] At least one processor is used to load the program to execute the multilingual speech synthesis method of the previous embodiment.
[0024] On the other hand, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the multilingual speech synthesis method of the previous embodiment.
[0025] The beneficial effects of the embodiments of the present invention include: the embodiment obtains language text and language number with corresponding relationship, inputs the language number into the language coding model, and controls the language coding model to generate the parameter vector of the language text corresponding to the language number, then inputs multiple types of language text into the text coding model, controls multiple text coding groups in the text coding model to extract the parameter vector corresponding to the language text from the language coding model, and controls each text coding group to encode the language text according to the parameter vector to obtain the output vector corresponding to the language text, then concatenates the pre-acquired speech synthesis parameter information and the output vector to obtain the target language vector, performs mel-spectrogram decoding on the target language vector to obtain the mel-spectrogram, and converts the mel-spectrogram into the target speech. The embodiment processes different language texts respectively through multiple text coding groups, so that there is no need to rely on one person's ability of multiple languages, and no need for a large amount of training data, that is, the accuracy of multi-language speech conversion results can be improved.
[0026] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0028] Figure 1 A flowchart of a multilingual speech synthesis method according to an embodiment of the present invention;
[0029] Figure 2 A schematic diagram of the structure of a multilingual speech synthesis model according to an embodiment of the present invention;
[0030] Figure 3 A schematic diagram of modules of a multilingual speech synthesis system according to an embodiment of the present invention;
[0031] Figure 4 A schematic diagram of a module of a multilingual speech synthesis device according to an embodiment of the present invention;
[0032] Figure 5 The figure is a schematic diagram of the structure of a multilingual speech synthesis device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0034] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0035] Speech synthesis, also known as text-to-speech technology, refers to the real-time conversion of any text information into standard and fluent speech. In the process of speech synthesis, the language synthesis model needs to be trained first. At present, the training process of the multi-speech synthesis model mainly depends on the speaker's ability to speak multiple types of languages. For example, for the multi-language synthesis model A, when it is necessary to train Chinese speech synthesis, English speech synthesis, and French speech synthesis, the speaker needs to be able to record Chinese speech, English speech, and French speech at the same time. Specifically, during the training process, the model establishes a connection between the Chinese text, English text, and French text and the speaker's speech, and trains to learn this association, such as learning the connection between Chinese text and Chinese speech, Chinese text and English speech, English text and English speech, and English text and Chinese. This connection depends on the speech of these voices coming from the same speaker, so that the multi-language model is too dependent on the speaker's language ability.
[0036] Based on this, the embodiments of the present invention provide a multilingual speech synthesis method, system, device and storage medium. The method of this embodiment sets multiple text encoding groups in a text encoding model to process different language texts through multiple text encoding groups respectively, thereby not relying on a person's ability to speak multiple languages, and not requiring a large amount of training data, and can improve the accuracy of multilingual speech conversion results.
[0037] Specifically, Figure 1 As shown, the embodiment of the present invention provides a multilingual speech synthesis method, which can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0038] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0039] In some optional embodiments, Figure 1 The method shown can be applied to a server, which can be an independent server 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, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0040] Specifically, Figure 1 The method shown comprises the following steps:
[0041] S11. Acquire multiple types of language texts and language numbers, wherein each language text corresponds to a language number.
[0042] In the embodiment of the present application, multiple types of language texts can be automatically retrieved from the service webpage or obtained from the user terminal. Taking the acquisition from the user terminal as an example, multiple types of language texts can include Chinese text "I like singing", English text "I like singing", Russian text "Ялюблюпеть", and each language text corresponds to a language number, and the language number corresponds to hidden parameters of the language text, such as the tone of each word in the language text.
[0043] S12. Inputting multiple types of language numbers into a language encoding model to generate a parameter vector corresponding to the language text.
[0044] In an embodiment of the present application, the language coding model includes an embedding layer, a fully connected layer and an activation layer. Among them, the activation layer of this embodiment serves as a second activation layer. Specifically, when the language number is input into the language coding model, the embedding layer in the language coding model converts the language number into a form that can be called by the fully connected layer, for example, into an embedding vector. The embedded vector is then classified by the fully connected layer, for example, the embedded vector is classified into a vector of Chinese text, a vector of English text, and the like. In this embodiment, in order to solve the problem of gradient disappearance during output processing in the language coding model, an activation layer is added after the fully connected layer. For example, a Softsign function is added as an activation layer to increase the nonlinear characteristics of the embedded vector through the Softsign function, thereby solving the problem of gradient disappearance in the classification process of the embedded vector by the fully connected layer, and increasing the learning ability of the fully connected layer, so that the output vector of the entire language coding model can be shared between different types of language parameters.
[0045] S13. Inputting various types of language texts into a text encoding model to extract the parameter vectors corresponding to the language texts, encoding the language texts according to the parameter vectors, and obtaining output vectors of the language texts, wherein the text encoding model includes multiple text encoding groups.
[0046] In an embodiment of the present application, each text encoding group includes a grouped convolution layer and a bidirectional gated loop layer, wherein the grouped convolution layer is used to extract local information of the language text, and the bidirectional gated loop layer is used to extract contextual information of the language text. Specifically, the grouped convolution layer has fewer parameters than normal convolution, so the capacity requirement for the server is lower. In addition, due to the small number of parameters of the grouped convolution, the amount of training samples required for the training process is even smaller. The bidirectional gated loop layer includes a bidirectional GRU, which is an improved model of a recurrent neural network (RNN, Recurrent Neural Network), and the bidirectional GRU can solve the problem of gradient disappearance in the RNN network. In the bidirectional GRU, an update gate and a reset gate are used, and these two gate vectors determine which information can be used as the output of the bidirectional GRU. Specifically, the update gate is used to control how to combine new input information with the previous memory; the update gate is used to control the amount of the previous memory saved to the current time step. Therefore, the combined action of the update gate and the reset gate can save information in the long-term sequence, and will not be cleared over time or deleted because it is not relevant to the prediction.
[0047] In this embodiment, a batch normalization layer, a first activation layer and a screening layer are also provided between the grouped convolution and the bidirectional gated circulation layer. Among them, the input end of the batch normalization layer is connected to the output layer of the grouped convolution layer, the output end of the batch normalization layer is connected to the input end of the first activation layer, the output end of the first activation layer is connected to the input end of the screening layer, and the output end of the screening layer is connected to the input end of the bidirectional gated circulation layer. In the data processing process, the batch normalization layer is used to input the local information output by the grouped convolution layer into the sensitive area of the first activation layer, the first activation layer is used to add nonlinear features to the local information, and the screening layer is used to determine the currently working neurons. Specifically, the batch normalization layer can adopt the BatchNorm layer, and the BatchNorm layer is a method of feature normalization, which can input the local information output by the grouped convolution layer into the sensitive area of the first activation layer, thereby accelerating the convergence speed of the text encoding model in the training process. The first activation layer can adopt the Softsign function to increase the nonlinear features in the grouped convolution training process through the Softsign function, thereby increasing the learning ability of the text encoding group. The screening layer can use the Dropout layer. The Dropout layer means that during the model training process of the text encoding group, a part of the neural network units are temporarily discarded from the network according to a certain probability. This is equivalent to finding a thinner network from the original network, thereby speeding up the model training process.
[0048] In this embodiment, when multiple types of language texts are input into the text coding model, the corresponding text coding group in the text coding model can extract the corresponding parameter vector from the language coding model. For example, when the text coding group B in the text coding model receives Chinese text, the text coding group B determines that the text is Chinese text and extracts the parameter vector corresponding to the Chinese text from the language coding model. For another example, when the text coding group C in the text coding model receives English text, the text coding group C determines that the text is English text and extracts the parameter vector corresponding to the English text from the language coding model. When the text coding group obtains the language text and the corresponding parameter vector, the language text is encoded according to the hidden information in the parameter vector, for example, the language text is encoded according to the tone information in the parameter vector, so that the output vector of the text coding group can carry the tone information of the text information, so that the correct pronunciation can be obtained when it is subsequently converted into speech.
[0049] S14: Concatenate the pre-acquired speech synthesis parameter information and the output vector to obtain a target language vector.
[0050] In the embodiment of the present application, the speech synthesis parameter information carries the speaker's pronunciation feature information, for example, the speaking speed, intonation, timbre and other feature information, and these speech synthesis parameter information are pre-stored in the speech database. In the present embodiment, when the speech synthesis parameter information is needed, it is called from the speech data, and the subsequent steps can be effectively executed. In the present embodiment, the speech synthesis parameter information is spliced at the end of the output vector, that is, the speech synthesis parameter information is set at the end of the output vector, so that the target language vector carries the text information of the output vector and the speech speed, intonation and timbre corresponding to the speech synthesis parameter information. In the present embodiment, in order to improve the accuracy of the subsequent recognition process, the speech synthesis parameter information can be spliced behind the output vector, so that the receiver of the target language vector can determine the timbre, speech speed and intonation of the speech corresponding to the output vector according to the speech synthesis parameter information at the end. In addition, the speech synthesis parameter information can also be spliced in front of the output vector, and the specific position can be adjusted according to the actual design requirements.
[0051] S15. After performing Mel-spectrogram decoding on the target language vector, a Mel-spectrogram is obtained, and the Mel-spectrogram is converted into the target speech.
[0052] In the embodiment of the present application, since the time length of the phoneme sequence corresponding to the target language vector is not corresponding to the spectrum sequence, and during the speech playback process, it is necessary to perform the playback process at a specified speech speed according to the length of the spectrum sequence, therefore, before performing Mel-spectrogram decoding on the target language vector, this embodiment needs to predict the pronunciation duration of each phoneme in the target language vector, and then decode the target language vector according to the pronunciation duration of each phoneme, so that the decoded Mel-spectrogram is distributed in order on the spectrum sequence, so that the played speech is close to the actual pronunciation effect of a person.
[0053] In some embodiments, the above method embodiments are applied to Figure 2 The multilingual speech synthesis model shown in Figure 1. Figure 2 The multilingual speech synthesis model shown includes a language encoding model, a text encoding model, a splicer, a difference adaptation model, and a mel-spectrogram decoding model. The language encoding model includes an embedding layer, two fully connected layers, and an activation layer; the text encoding model includes several text encoding groups, each of which includes a grouped convolutional layer, a BatchNorm layer, a Softsign function, a Dropout layer, and a bidirectional GRU; the splicer is represented by “⊕”.
[0054] Specifically, in Figure 2In the model shown, it is unrealistic to use an independent text encoding model with FFT (FastFourier Transform) for each type of language, because this involves a process of batch training through multiple text encoding modules in sequence, which is equivalent to the balance between multiple languages. Therefore, the text encoding model of this embodiment adopts a grouped convolution layer. Among them, the grouped convolution has a smaller amount of calculation than the general convolution, and can also extract more abundant local information on the language text. The grouped convolution and sampling of this embodiment are 3*1, and the number of grouped convolutions is equal to the number of types of language text. Each grouped convolution layer is followed by a BatchNorm layer, an activation layer, a Dropout layer and a bidirectional GRU layer. The BatchNorm layer is used to input the information processed by the grouped convolution into the sensitive area of the activation layer, so that the activation layer can add nonlinear features to the received information through the sensitive area, thereby improving the model's learning ability for language text encoding. The Dropout layer is used to select the currently working neurons of the grouped convolution, thereby accelerating the learning speed of the model. After obtaining the local feature information of the language text, the context information of the language text is extracted through the bidirectional GRU layer, so that the encoded vector can better express the essential content of the language text.
[0055] Figure 2 The language encoding model shown in the model is used to provide additional language-related information to the text encoding model, such as the pronunciation notes of each word in the language text. The language number can be represented by one-hot encoding, for example, "0, 0, 0, 0, 0, 0, 0, 0, 1" is used to represent the number of the Chinese language text, and "0, 0, 0, 0, 0, 0, 0, 1, 0" is used to represent the number of the English language text. The embedding layer Embedding is used to convert the language label into an embedding vector. The dimension of the embedding vector can be set to 10, and the dimension of the embedding layer can be set to 16 dimensions. Then, two 16-dimensional fully connected layers are used to generate the parameters corresponding to the language text, that is, the language-related information, according to the embedding vector. Finally, the Softsign activation function in the activation layer is used to increase the nonlinear characteristics of processing information on the fully connected layer.
[0056] After obtaining the output vector of the text encoding model, the output vector is spliced with the speech synthesis parameter information on the splicer to provide information about the speaker, such as the speaker's voice timbre, speech speed, and the speaker's language type, during the decoding process of the Mel spectrum decoding model. When multiple text encoding groups are provided in the language encoding model, and the multiple text encoding groups respectively obtain output vectors corresponding to various types of processed text, the splicer can splice a speech synthesis parameter information on each output vector, so that the Mel spectrum decoding model can decode and obtain Mel spectrograms of multiple language types when decoding. In some embodiments, the output vector of the text encoding model can be spliced with different types of speech synthesis parameter information, so that the Mel spectrum decoder can obtain Mel spectrograms of different types from the language text. For example, if the language text is a Chinese language text, when the splicer performs splicing, the vector of the Chinese speaker can be spliced, and the vector of the English speaker can also be spliced. When the spliced speech synthesis parameter information is Chinese, the mel-spectrogram corresponding to the Chinese speech is obtained by decoding by the mel-spectrogram decoder; when the spliced speech synthesis parameter information is English, the mel-spectrogram corresponding to the English speech is obtained by decoding by the mel-spectrogram decoder. That is, the multilingual synthesis model of this embodiment can realize cross-language speech processing while performing multilingual text synchronization.
[0057] exist Figure 2 Before the Mel-spectrogram decoding model of the model shown decodes, the vector spliced by the splicer is input to the difference adapter to provide the time difference information of the vector through the difference adapter, that is, the time difference between the phoneme sequence corresponding to the vector and the spectrum sequence on the Mel-spectrogram, and the time difference is sent to the Mel-spectrogram decoding model. The Mel-spectrogram decoding model decodes the vector spliced by the splicer according to the time difference to obtain the Mel-spectrogram corresponding to the language text. The Mel-spectrogram is a logarithmic spectrum used to represent the relationship between the sensitivity of human hearing and the sound spectrum. When the Mel-spectrogram of the speech corresponding to the language text is obtained, the content of the language text can be expressed in the form of sound.
[0058] In some embodiments, the actual application process Figure 1 The method described is explained:
[0059] The language text to be speech synthesized and the language number corresponding to the language text are obtained, for example, "My hometown is beautiful", and the corresponding language number is "0, 0, 0, 0, 0, 0, 0, 0, 1". The voice number is input into the language coding model. The language coding model encodes the language number and outputs a coding vector associated with the language number, wherein the coding vector carries hidden information of the language text, such as pronunciation information of the language type corresponding to the language text. The language text is delivered to the text coding model. The text coding model obtains the corresponding coding vector from the language coding model according to the language text, and encodes the language text according to the coding vector, for example, according to the local feature information and context information of the language text, and then outputs the output vector corresponding to the language text, and splices a speech synthesis parameter information at the end of the output vector, and the speech synthesis parameter information is used to point to the target speech type corresponding to the language text. When the output vector and the speech synthesis parameter information are spliced, the mel-spectrogram decoding model can decode the spliced vector to obtain a mel-spectrogram, and according to the mel-spectrogram, the content of the language text can be expressed in the form of sound.
[0060] Reference Figure 3 , an embodiment of the present invention provides a multilingual speech synthesis system, comprising:
[0061] An acquisition module 310 is used to acquire multiple types of language texts and language numbers, each language text corresponds to one of the language numbers;
[0062] A first input module 320, for inputting various types of language numbers into a language encoding model to generate a parameter vector corresponding to a language text;
[0063] A second input module 330 is used to input the language texts of various types into a text encoding model to extract the parameter vectors corresponding to the language texts, wherein the text encoding model includes a plurality of text encoding groups;
[0064] An encoding module 340, configured for each text encoding group to encode the language text according to the parameter vector to obtain an output vector of the language text;
[0065] A concatenation module 350 is used to concatenate the pre-acquired speech synthesis parameter information and the output vector to obtain a target language vector;
[0066] A decoding module 360 is used to perform mel-spectrogram decoding on the target language vector to obtain a mel-spectrogram;
[0067] The conversion module 370 is used to convert the mel-spectrogram into the target speech.
[0068] The contents of the method embodiments of the present invention are all applicable to the system embodiments. The functions specifically implemented by the system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method, which will not be repeated here.
[0069] Reference Figure 4 The embodiment of the present invention provides a multi-language speech synthesis device, comprising:
[0070] at least one memory for storing a program;
[0071] At least one processor for loading programs to execute Figure 1 The multilingual speech synthesis method shown.
[0072] The contents of the method embodiments of the present invention are all applicable to the device embodiments. The functions specifically implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method, which will not be repeated here.
[0073] In some optional embodiments, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory optionally includes a memory remotely arranged relative to the processor, and these remote memories can be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0074] The non-transient software program and instructions required to implement the multilingual speech synthesis method of the above embodiment are stored in the memory. When executed by the processor, the multilingual speech synthesis method of the above embodiment is executed, for example, the above described multilingual speech synthesis method is executed. Figure 1 Method steps S11 to S15 in.
[0075] In some optional embodiments, the processing device may be a computer device, which may be a server or a user terminal. This embodiment takes the computer device being a user terminal as an example, and the details are as follows:
[0076] like Figure 5As shown, the computer device may include an RF (Radio Frequency) circuit 510, a memory 520 including one or more computer-readable storage media, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a short-range wireless transmission module 570, a processor 580 including one or more processing cores, and a power supply 590 and other components.
[0077] The RF circuit 510 can be used for sending and receiving information, receiving and sending signals. Specifically, after receiving the downlink information of the base station, it is handed over to one or more processors 580 for processing; in addition, the data related to the uplink is sent to the base station. Generally, the RF circuit 510 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a user identity module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. In addition, the RF circuit 510 can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
[0078] The memory 520 can be used to store software programs and modules. The processor 580 executes various functional applications and data processing by running the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound recording function, an image viewing function, etc.), etc.; the data storage area may store data created according to the use of the device (such as audio data, text, etc.), etc. In addition, the memory 520 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. Accordingly, the memory 520 may also include a memory controller to provide the processor 580 and the input unit 530 with access to the memory 520.
[0079] The input unit 530 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 530 may include a touch-sensitive surface 531 and other input devices 532. The touch-sensitive surface 531, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 531), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 531 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch-sensitive surface 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 531, the input unit 530 may further include other input devices 532. Specifically, the other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0080] The display unit 540 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the control, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 540 may include a display panel 541. Optionally, the display panel 541 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 531 may be covered on the display panel 541. When the touch-sensitive surface 531 detects a touch operation on or near it, it is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event.
[0081] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0082] An embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions for executing Figure 1 For example, the information processing method in the above embodiment is executed, for example, the multilingual speech synthesis method described above is executed. Figure 1 Method steps S11 to S15 in.
[0083] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0084] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A multilingual speech synthesis method, characterized in that: The following steps are involved: Acquire multiple types of language texts and language numbers, each of the language texts corresponding to one of the language numbers; Inputting the plurality of types of the language numbers into a language encoding model to generate parameter vectors corresponding to the language text; Inputting the language texts of multiple types into a text encoding model to extract parameter vectors corresponding to the language texts, wherein the text encoding model includes multiple text encoding groups; Each of the text encoding groups encodes the language text according to the parameter vector to obtain an output vector of the language text; Concatenating the pre-acquired speech synthesis parameter information with the output vector to obtain a target language vector; Performing mel-spectrogram decoding on the target language vector to obtain a mel-spectrogram; Converting the mel-spectrogram into target speech; Wherein, the language encoding model includes an embedding layer, a fully connected layer and a second activation layer; The embedding layer is used to convert the language number into an embedding vector; The fully connected layer is used to classify the embedded vector; The second activation layer is used to add nonlinear features to the embedding vector.
2. A multilingual speech synthesis method according to claim 1, characterized in that: Each of the text encoding groups includes a grouped convolutional layer and a bidirectional gated recurrent layer, wherein the grouped convolutional layer is used to extract local information of the language text, and the bidirectional gated recurrent layer is used to extract contextual information of the language text.
3. A multilingual speech synthesis method according to claim 2, characterized in that: Each of the text encoding groups further includes a batch normalization layer, a first activation layer and a screening layer, wherein the input end of the batch normalization layer is connected to the output layer of the grouped convolutional layer, the output end of the batch normalization layer is connected to the input end of the first activation layer, the output end of the first activation layer is connected to the input end of the screening layer, and the output end of the screening layer is connected to the input end of the bidirectional gated recurrent layer; The batch normalization layer is used to input the local information output by the grouped convolution layer into the sensitive area of the first activation layer; The first activation layer is used to add nonlinear characteristics to the local information; The screening layer is used to determine the currently working neuron.
4. A multilingual speech synthesis method according to claim 1, characterized in that: The step of concatenating the pre-acquired speech synthesis parameter information and the output vector to obtain the target language vector includes: The preset speech synthesis parameter information is connected to the end of the output vector to obtain the target language vector.
5. A multilingual speech synthesis method according to claim 1, characterized in that: The step of performing Mel-spectrogram decoding on the target language vector to obtain a Mel-spectrogram includes: Predicting the pronunciation duration of each phoneme in the target language vector; The target language vector is mel-spectrogram decoded according to the pronunciation duration to obtain a mel-spectrogram.
6. A multilingual speech synthesis system, characterized in that: include: An acquisition module, used for acquiring multiple types of language texts and language numbers, each of the language texts corresponding to one language number; A first input module, used for inputting the language codes of multiple types into a language encoding model to generate a parameter vector corresponding to the language text; A second input module, used for inputting the language texts of various types into a text encoding model to extract parameter vectors corresponding to the language texts, wherein the text encoding model includes a plurality of text encoding groups; An encoding module, configured for each of the text encoding groups to encode the language text according to the parameter vector to obtain an output vector of the language text; A concatenation module, used for concatenating the pre-acquired speech synthesis parameter information and the output vector to obtain a target language vector; A decoding module, used for performing mel-spectrogram decoding on the target language vector to obtain a mel-spectrogram; A conversion module, used for converting the mel-spectrogram into a target speech; Wherein, the language encoding model includes an embedding layer, a fully connected layer and a second activation layer; The embedding layer is used to convert the language number into an embedding vector; The fully connected layer is used to classify the embedded vector; The second activation layer is used to add nonlinear features to the embedding vector.
7. A multilingual speech synthesis device, characterized in that: include: at least one memory for storing a program; At least one processor is used to load the program to execute the multilingual speech synthesis method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the multilingual speech synthesis method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Multi-language text voice synthesizing method, device, equipment and storage medium
CN111247581A
Multilingual text-to-speech synthesis method
CN111566655A
