Speech synthesis method, device, equipment and storage medium
The high sampling rate audio signal is analyzed and processed through the spatial fast fuzzy network model and the flow generation network model, which solves the problem of distortion of speech synthesis results and improves the sound quality effect.
Patent Information
- Application Number
- CN202110593375.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-05-28
Smart Images

Figure CN113327573B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a speech synthesis method, apparatus, device and storage medium. Background Art
[0002] In speech synthesis technology, in order to ensure the high fidelity of synthesized speech, it is necessary to sample at twice the frequency of the audio that the human ear can hear. The twice frequency of the audio that the human ear can hear is usually above 40KHz. The audio collected at such a high sampling rate has a wide frequency band and long waveform points, so the synthesized speech cannot better convey meaning and emotions, affecting the sound quality of the speech. Summary of the invention
[0003] The present application provides a speech synthesis method, apparatus, device and storage medium, which can solve the problem of speech synthesis result distortion caused by high sampling rate and improve the sound quality of speech generation.
[0004] In a first aspect, the present application provides a speech synthesis method, the method comprising:
[0005] The high-sampled audio signal is analyzed using a spatial fast fuzzy network model to obtain the first Mel spectrum;
[0006] Dividing the frequency band of the first Mel spectrum into a plurality of frequency bands, and determining a second Mel spectrum of each divided frequency band;
[0007] Inputting each of the second Mel-spectrums into the spatial fast fuzzy network model for recognition to generate a third Mel-spectrum;
[0008] Inputting each of the third mel-spectrograms into a speech generation model for analysis to obtain a first audio waveform;
[0009] The first audio waveform is divided into a plurality of second audio waveforms of different lengths, and each of the second audio waveforms is input into the speech generation model for recognition to obtain a speech synthesis signal.
[0010] In a second aspect, the present application further provides a speech synthesis device, comprising:
[0011] A first obtaining module is used to analyze the high-sampled audio signal using a spatial fast fuzzy network model to obtain a first Mel spectrum;
[0012] A determination module, configured to divide the frequency band of the first Mel spectrum into a plurality of frequency bands, and respectively determine a second Mel spectrum of each divided frequency band;
[0013] A generating module, used for inputting each of the second Mel-spectrums into the spatial fast fuzzy network model for recognition, and generating a third Mel-spectrum;
[0014] A second obtaining module is used to input each of the third Mel-spectrograms into a speech generation model for analysis to obtain a first audio waveform;
[0015] The third obtaining module is used to divide the first audio waveform into a plurality of second audio waveforms of different lengths, and input each of the second audio waveforms into the speech generation model for recognition to obtain a speech synthesis signal.
[0016] In a third aspect, the present application further provides a speech synthesis device, comprising:
[0017] Memory and processor;
[0018] The memory is used to store computer programs;
[0019] The processor is used to execute the computer program and implement the steps of the speech synthesis method described in the first aspect when executing the computer program.
[0020] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the steps of the speech synthesis method as described in the first aspect above.
[0021] The present application discloses a speech synthesis method, device, equipment and storage medium. First, a high-sampled audio signal is analyzed through a spatial fast fuzzy network model to obtain a first Mel spectrum. Then, the frequency band of the first Mel spectrum is divided into several frequency bands, and the second Mel spectrum of each frequency band after the division is determined respectively; then, each of the second Mel spectrums is input into the spatial fast fuzzy network model for identification to generate a third Mel spectrum; then, each of the third Mel spectrums is input into a speech generation model for analysis to obtain a first audio waveform; finally, the first audio waveform is divided into several second audio waveforms of different lengths, and each of the second audio waveforms is input into the speech generation model for identification to obtain a speech synthesis signal. The problem of distortion of speech synthesis results caused by high sampling rate can be solved, and the sound quality effect of speech generation can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 is a flow chart of an implementation of a speech synthesis method provided in an embodiment of the present application;
[0024] Figure 2 is a structural schematic diagram of a speech synthesis device provided in an embodiment of the present application;
[0025] Figure 3 It is a schematic block diagram of the structure of the speech synthesis device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0028] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0029] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] The embodiments of the present application provide a speech synthesis method, device, equipment and storage medium. The speech synthesis method provided in the embodiments of the present application can first analyze the high-sampled audio signal through the spatial fast fuzzy network model, and after obtaining the first Mel spectrum, divide the frequency band of the first Mel spectrum into several frequency bands, and respectively determine the second Mel spectrum of each frequency band after the division; then, each of the second Mel spectrums is respectively input into the spatial fast fuzzy network model for identification, and a third Mel spectrum is generated; then, each of the third Mel spectrums is respectively input into the speech generation model for analysis to obtain a first audio waveform; finally, the first audio waveform is divided into several second audio waveforms of different lengths, and each of the second audio waveforms is respectively input into the speech generation model for identification to obtain a speech synthesis signal. It can solve the problem of distortion of speech synthesis results caused by high sampling rate and improve the sound quality effect of speech generation.
[0031] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0032] See also Figure 1 , Figure 1 1 is a schematic flow chart of a speech synthesis method provided in an embodiment of the present application. The speech synthesis method can be implemented by a server or a terminal, and the server can be a single server or a server cluster. The terminal can be a handheld terminal, a laptop computer, a wearable device, a robot, etc.
[0033] like Figure 1 As shown, Figure 1 This is a flow chart of the implementation of the speech synthesis method provided in one embodiment of the present application. Specifically, it includes: Step S101 to Step S105. The details are as follows:
[0034] S101, using a spatial fast fuzzy network model to analyze a high-sampled audio signal to obtain a first Mel spectrum.
[0035] The spatial fast fuzzy network model includes a feedforward network, a time predictor and a length regulator; exemplarily, the feedforward network includes an attention mechanism T and a 1D convolutional network structure. Specifically, the feedforward network stacks multiple Fourier blocks for the conversion of phonemes to Mel spectrum, wherein several Fourier blocks are located on the phoneme side and several Fourier blocks are located on the Mel spectrum side; in the process of high-sampling audio signal analysis by the feedforward network, there is a length regulator to bridge the length gap between the phoneme length and the Mel spectrum sequence.
[0036] In addition, each Fourier block contains a self-attention mechanism and a 1D convolutional network. The self-attention mechanism consists of multiple attentions to extract information at cross positions. Unlike the 2-layer dense network in the ordinary attention mechanism, the attention mechanism in this embodiment is a 2-layer 1D convolutional network with ReLU activation function, which is used to more closely correlate adjacent hidden states in the order of speech tasks in characters / phonemes and spectrograms.
[0037] In one embodiment, a time predictor is used to make phoneme duration predictions, which are important for the length regulator. Exemplarily, the time predictor consists of 2 layers of 1D convolutional networks with ReLU activation functions, each followed by a normalization layer and a drop layer, and an additional linear layer to output a scalar.
[0038] Furthermore, the temporal predictor can be stacked on top of the Fourier block on the phoneme side and trained together with the spatial fast fuzzy network model to predict the length of the Mel-spectrogram of each phoneme with mean squared error (MSE) loss.
[0039] Among them, the length regulator is used to solve the length mismatch problem between the phoneme length and the Mel spectrum sequence in the feedforward network, as well as to control the speech speed and partial rhythm. The length of a phoneme sequence is usually smaller than the length of the Mel spectrum sequence, and each phoneme corresponds to several Mel spectrums. Among them, the length of the Mel spectrum corresponding to the phoneme is called the phoneme duration. Based on the phoneme duration d, the length regulator expands the hidden state of the phoneme sequence by d times, and then the total length of the hidden state is equal to the length of the Mel spectrum. The hidden state of the phoneme sequence is represented as Hpho=[h1, h2,…, hn], where n is the length of the sequence. The phoneme duration sequence is represented as D=[d1, d2,…, dn], where ∑ni=1di=m, m is the length of the Mel spectrum sequence.
[0040] Exemplarily, the use of a spatial fast fuzzy network model to analyze a high-sampled audio signal to obtain a first Mel-spectrogram may include: predicting a phoneme spectrum sequence of the high-sampled audio signal based on the attention mechanism of the feedforward network, predicting a phoneme duration of the high-sampled audio signal based on the time predictor, and adjusting the length of the predicted phoneme spectrum sequence and the length of the predicted phoneme duration based on the length adjuster to obtain the first Mel-spectrogram.
[0041] S102: Divide the frequency band of the first Mel spectrum into a plurality of frequency bands, and determine a second Mel spectrum for each divided frequency band.
[0042] Specifically, the frequency band of the first Mel spectrum may be divided by any preset frequency band length to obtain second Mel spectrums corresponding to a plurality of frequency bands. It is understandable that the first Mel spectrum may be formed by connecting the second Mel spectrums in the first order.
[0043] S103: Input each of the second mel-spectrums into the spatial fast fuzzy network model for recognition to generate a third mel-spectrum.
[0044] The spatial fast fuzzy network model further includes a plurality of first adversarial networks; the step of inputting each of the second mel spectrums into the spatial fast fuzzy network model for identification to generate a third mel spectrum includes:
[0045] Inputting each of the second mel-spectrums into the spatial fast fuzzy network model respectively, and assigning a first adversarial network corresponding to each of the second mel-spectrums in the spatial fast fuzzy network model respectively;
[0046] Based on each of the first adversarial networks, each of the second mel-spectrums is identified respectively to generate a third mel-spectrum.
[0047] Exemplarily, the first adversarial network includes a first generator and a first discriminator;
[0048] The method of identifying each of the second Mel-spectrums based on each of the first adversarial networks to generate a third Mel-spectrum includes: for any of the first adversarial networks, fitting the second Mel-spectrum input into the first adversarial network based on the first generator of the first adversarial network, identifying the fitted second Mel-spectrum based on the first discriminator of the first adversarial network, and if the identification result is true, determining that the fitted second Mel-spectrum is the third Mel-spectrum generated by the current first adversarial network.
[0049] S104: Input each of the third mel-spectrograms into a speech generation model for analysis to obtain a first audio waveform.
[0050] The speech generation model is a stream-based generative network model. The stream-based generative network model can generate high-quality speech based on Mel spectrum. Specifically, the stream-based generative network model can be called WaveGlow because it combines the ideas of Glow and WaveNet. WaveGlow is easy to implement and uses a single network for training, and the model obtained by training using a likelihood loss function. Speech can be synthesized at a frequency of more than 500kHz: more than 25 times faster than real time.
[0051] In one embodiment, WaveGlow includes several radiation coupling layers and reversible convolution layers. Specifically, each radiation coupling layer can make the entire WaveGlow network retain reversibility, and the Melton spectrum is nonlinearly activated through gating on each radiation coupling layer, and each reversible convolution layer is respectively arranged before the radiation coupling layer to mix the information obtained after each radiation coupling layer analyzes the Melton spectrum to obtain an audio signal output. In this embodiment, the obtained audio signal is a first audio waveform.
[0052] Exemplarily, the step of inputting each of the third Mel spectra into a speech generation model for analysis to obtain a first audio waveform includes: inputting each of the third Mel spectra into a stream-based generation network model, analyzing the distribution of audio samples conditioned on the third Mel spectra in the stream-based generation network model; and performing audio sampling according to the distribution of audio samples conditioned on the third Mel spectra to obtain the first audio waveform.
[0053] S105, dividing the first audio waveform into a plurality of second audio waveforms of different lengths, and inputting each of the second audio waveforms into the speech generation model for recognition to obtain a speech synthesis signal.
[0054] The speech generation model further includes a plurality of second adversarial networks; and the step of inputting each of the second audio waveforms into the speech generation model for recognition to obtain a speech synthesis signal includes:
[0055] Inputting each of the second audio waveforms into the speech generation model respectively, and assigning a second adversarial network corresponding to each of the second audio waveforms in the speech generation model respectively;
[0056] Based on each of the second adversarial networks, each of the second audio waveforms is recognized respectively to obtain the speech synthesis signal.
[0057] In one embodiment, the second adversarial network includes a second generator and a second discriminator;
[0058] The method of identifying each of the second audio waveforms based on each of the second adversarial networks to obtain the speech synthesis signal includes: for any second adversarial network, fitting the second audio waveform input into the second adversarial network based on the second generator of the second adversarial network, and identifying the fitted second audio waveform based on the second discriminator of the second adversarial network; if the recognition result is true, determining that the speech signal corresponding to the fitted second audio waveform is the speech synthesis signal generated by the current second adversarial network.
[0059] Through the above analysis, it can be known that the speech synthesis method provided in this embodiment, first, analyzes the high-sampled audio signal through the spatial fast fuzzy network model, obtains the first Mel spectrum, divides the frequency band of the first Mel spectrum into several frequency bands, and respectively determines the second Mel spectrum of each frequency band after the division; then, each of the second Mel spectrums is respectively input into the spatial fast fuzzy network model for identification to generate a third Mel spectrum; then, each of the third Mel spectrums is respectively input into the speech generation model for analysis to obtain a first audio waveform; finally, the first audio waveform is divided into several second audio waveforms of different lengths, and each of the second audio waveforms is respectively input into the speech generation model for identification to obtain a speech synthesis signal. It can solve the problem of distortion of speech synthesis results caused by high sampling rate and improve the sound quality effect of speech generation.
[0060] See also Figure 2 , Figure 2 is a schematic diagram of the structure of a speech synthesis device provided in an embodiment of the present application. The speech synthesis device is used to perform Figure 1 The steps of the speech synthesis method shown in the embodiment. The speech synthesis device can be a single server or a server cluster, or the speech synthesis device can be a terminal, which can be a handheld terminal, a notebook computer, a wearable device or a robot.
[0061] like Figure 2 As shown, the speech synthesis device 200 includes:
[0062] A first obtaining module 201 is used to analyze the high-sampled audio signal using a spatial fast fuzzy network model to obtain a first Mel spectrum;
[0063] A determination module 202 is used to divide the frequency band of the first Mel spectrum into a plurality of frequency bands, and respectively determine a second Mel spectrum of each divided frequency band;
[0064] A generating module 203, configured to input each of the second mel-spectrums into the spatial fast fuzzy network model for identification, and generate a third mel-spectrum;
[0065] A second obtaining module 204 is used to input each of the third mel-spectrograms into a speech generation model for analysis to obtain a first audio waveform;
[0066] The third obtaining module 205 is used to divide the first audio waveform into a plurality of second audio waveforms of different lengths, and input each of the second audio waveforms into the speech generation model for recognition to obtain a speech synthesis signal.
[0067] In one embodiment, the spatial fast fuzzy network model includes a plurality of first adversarial networks; the generation module 203 includes:
[0068] A first allocation unit is used to input each of the second mel-spectra into the spatial fast fuzzy network model, and allocate a first adversarial network corresponding to each of the second mel-spectra in the spatial fast fuzzy network model;
[0069] The first generating unit is configured to identify each of the second mel-spectrums based on each of the first adversarial networks, and generate a third mel-spectrum.
[0070] In one embodiment, the spatial fast fuzzy network model further includes a feedforward network, a time predictor and a length regulator; the first obtaining module 201 is specifically used for:
[0071] The first Mel-spectrogram sequence is predicted for the high-sampled audio signal based on the attention mechanism of the feedforward network, the phoneme duration is predicted for the high-sampled audio signal based on the time predictor, and the length of the predicted phoneme spectrogram sequence and the predicted phoneme duration are respectively adjusted based on the length adjuster to obtain the first Mel-spectrogram sequence.
[0072] In one embodiment, the first adversarial network includes a first generator and a first discriminator;
[0073] The generating unit is specifically used for:
[0074] For any of the first adversarial networks, the second Mel spectrum input into the first adversarial network is fitted based on the first generator of the first adversarial network, and the fitted second Mel spectrum is identified based on the first discriminator of the first adversarial network. If the identification result is true, the fitted second Mel spectrum is determined to be the third Mel spectrum generated by the current first adversarial network.
[0075] In one embodiment, the speech generation model is a flow-based generation network model, and the second obtaining module 204 includes:
[0076] An analyzing unit, configured to input each of the third Mel-spectrums into a stream-based generative network model, and analyze the distribution of audio samples conditioned by the third Mel-spectrums in the stream-based generative network model;
[0077] The first obtaining unit is used to perform audio sampling according to the distribution of audio samples based on the third Mel spectrum condition to obtain the first audio waveform.
[0078] In one embodiment, the speech generation model includes a plurality of second adversarial networks; the third obtaining module 205 includes:
[0079] A second allocation unit, configured to input each of the second audio waveforms into the speech generation model, and allocate a second adversarial network corresponding to each of the second audio waveforms in the speech generation model;
[0080] The second obtaining unit is used to recognize each of the second audio waveforms based on each of the second adversarial networks to obtain the speech synthesis signal.
[0081] In one embodiment, the second adversarial network includes a second generator and a second discriminator;
[0082] The second obtaining unit is specifically used for:
[0083] For any of the second adversarial networks, the second generator based on the second adversarial network fits the second audio waveform input into the second adversarial network, and the second discriminator based on the second adversarial network recognizes the fitted second audio waveform. If the recognition result is true, it is determined that the speech signal corresponding to the fitted second audio waveform is the speech synthesis signal generated by the current second adversarial network.
[0084] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the speech synthesis device and each module described above can refer to Figure 1 The corresponding process in the speech synthesis method embodiment described in the embodiment will not be repeated here.
[0085] The above-mentioned speech synthesis method can be implemented in the form of a computer program. Figure 2 Run on the device shown.
[0086] See also Figure 3 , Figure 3 1 is a schematic block diagram of the structure of a speech synthesis device provided in an embodiment of the present application. The speech synthesis device includes a processor, a memory and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0087] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any speech synthesis method.
[0088] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0089] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any speech synthesis method.
[0090] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal to which the scheme of the present application is applied. The specific terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0091] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0092] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:
[0093] The high-sampled audio signal is analyzed using a spatial fast fuzzy network model to obtain the first Mel spectrum;
[0094] Dividing the frequency band of the first Mel spectrum into a plurality of frequency bands, and determining a second Mel spectrum of each divided frequency band;
[0095] Inputting each of the second Mel-spectrums into the spatial fast fuzzy network model for recognition to generate a third Mel-spectrum;
[0096] Inputting each of the third mel-spectrograms into a speech generation model for analysis to obtain a first audio waveform;
[0097] The first audio waveform is divided into a plurality of second audio waveforms of different lengths, and each of the second audio waveforms is input into the speech generation model for recognition to obtain a speech synthesis signal.
[0098] In one embodiment, the spatial fast fuzzy network model includes a plurality of first adversarial networks; and the step of inputting each of the second mel spectrums into the spatial fast fuzzy network model for identification to generate a third mel spectrum includes:
[0099] Inputting each of the second mel-spectrums into the spatial fast fuzzy network model respectively, and assigning a first adversarial network corresponding to each of the second mel-spectrums in the spatial fast fuzzy network model respectively;
[0100] Based on each of the first adversarial networks, each of the second mel-spectrums is identified respectively to generate a third mel-spectrum.
[0101] In one embodiment, the spatial fast fuzzy network model further includes a feedforward network, a time predictor, and a length regulator; the method of analyzing the high-sampled audio signal using the spatial fast fuzzy network model to obtain a first Mel spectrum includes:
[0102] The first Mel-spectrogram sequence is predicted for the high-sampled audio signal based on the attention mechanism of the feedforward network, the phoneme duration is predicted for the high-sampled audio signal based on the time predictor, and the length of the predicted phoneme spectrogram sequence and the predicted phoneme duration are respectively adjusted based on the length adjuster to obtain the first Mel-spectrogram sequence.
[0103] In one embodiment, the first adversarial network includes a first generator and a first discriminator;
[0104] The step of identifying each of the second Mel-spectrums based on each of the first adversarial networks to generate a third Mel-spectrum includes:
[0105] For any of the first adversarial networks, the second Mel spectrum input into the first adversarial network is fitted based on the first generator of the first adversarial network, and the fitted second Mel spectrum is identified based on the first discriminator of the first adversarial network. If the identification result is true, the fitted second Mel spectrum is determined to be the third Mel spectrum generated by the current first adversarial network.
[0106] In one embodiment, the speech generation model is a stream-based generation network model, and the step of inputting each of the third mel-spectrum spectra into the speech generation model for analysis to obtain the first audio waveform includes:
[0107] Inputting each of the third Mel-spectrums into a flow-based generative network model, and analyzing the distribution of audio samples conditioned on the third Mel-spectrums in the flow-based generative network model;
[0108] Audio sampling is performed according to the distribution of audio samples conditioned on the third Mel-spectrogram to obtain the first audio waveform.
[0109] In one embodiment, the speech generation model includes a plurality of second adversarial networks; and the step of inputting each of the second audio waveforms into the speech generation model for recognition to obtain a speech synthesis signal includes:
[0110] Inputting each of the second audio waveforms into the speech generation model respectively, and assigning a second adversarial network corresponding to each of the second audio waveforms in the speech generation model respectively;
[0111] Based on each of the second adversarial networks, each of the second audio waveforms is recognized respectively to obtain the speech synthesis signal.
[0112] In one embodiment, the second adversarial network includes a second generator and a second discriminator;
[0113] The step of recognizing each of the second audio waveforms based on each of the second adversarial networks to obtain the speech synthesis signal includes:
[0114] For any of the second adversarial networks, the second generator based on the second adversarial network fits the second audio waveform input into the second adversarial network, and the second discriminator based on the second adversarial network recognizes the fitted second audio waveform. If the recognition result is true, it is determined that the speech signal corresponding to the fitted second audio waveform is the speech synthesis signal generated by the current second adversarial network.
[0115] In an embodiment of the present application, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement the present application. Figure 1 The steps of the speech synthesis method provided in the embodiment.
[0116] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0117] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A speech synthesis method, characterized in that: The method comprises: The high-sampled audio signal is analyzed using the feedforward network, time predictor and length regulator in the spatial fast fuzzy network model to obtain the first Mel spectrum; Dividing the frequency band of the first Mel spectrum into a plurality of frequency bands, and determining a second Mel spectrum of each divided frequency band; Inputting each of the second Mel-spectrums into the first adversarial network in the spatial fast fuzzy network model for recognition, and generating a third Mel-spectrum; Inputting each of the third mel-spectrograms into a speech generation model for analysis to obtain a first audio waveform; Dividing the first audio waveform into a plurality of second audio waveforms of different lengths, and inputting each of the second audio waveforms into the speech generation model for recognition, thereby obtaining a speech synthesis signal; The step of inputting each of the second audio waveforms into the speech generation model for recognition to obtain a speech synthesis signal includes: Inputting each of the second audio waveforms into the speech generation model, respectively, and assigning a second adversarial network corresponding to each of the second audio waveforms in the speech generation model, wherein the second adversarial network includes a second generator and a second discriminator; For any of the second adversarial networks, the second generator of the current second adversarial network is used to fit the second audio waveform input into the current second adversarial network, and the fitted second audio waveform is recognized based on the second discriminator of the current second adversarial network. If the recognition result is true, it is determined that the speech signal corresponding to the fitted second audio waveform is the speech synthesis signal generated by the current second adversarial network.
2. The speech synthesis method according to claim 1, characterized in that: The step of inputting each of the second Mel-spectrums into the first adversarial network in the spatial fast fuzzy network model for recognition to generate a third Mel-spectrum comprises: Inputting each of the second mel-spectrums into the spatial fast fuzzy network model respectively, and assigning a first adversarial network corresponding to each of the second mel-spectrums in the spatial fast fuzzy network model respectively; Based on each of the first adversarial networks, each of the second mel-spectrums is identified respectively to generate a third mel-spectrum.
3. The speech synthesis method according to claim 2, characterized in that: The method of analyzing the high-sampled audio signal by using the feedforward network, the time predictor and the length regulator in the spatial fast fuzzy network model to obtain the first Mel spectrum includes: The first Mel-spectrogram sequence is predicted for the high-sampled audio signal based on the attention mechanism of the feedforward network, the phoneme duration is predicted for the high-sampled audio signal based on the time predictor, and the length of the predicted phoneme spectrogram sequence and the predicted phoneme duration are respectively adjusted based on the length adjuster to obtain the first Mel-spectrogram sequence.
4. The speech synthesis method according to claim 2, characterized in that: The first adversarial network includes a first generator and a first discriminator; The step of identifying each of the second Mel-spectrums based on each of the first adversarial networks to generate a third Mel-spectrum includes: For any of the first adversarial networks, the second Mel spectrum input into the first adversarial network is fitted based on the first generator of the first adversarial network, and the fitted second Mel spectrum is identified based on the first discriminator of the first adversarial network. If the identification result is true, the fitted second Mel spectrum is determined to be the third Mel spectrum generated by the current first adversarial network.
5. The speech synthesis method according to any one of claims 1 to 4, characterized in that: The speech generation model is a stream-based generation network model, and the step of inputting each of the third mel-spectrum spectra into the speech generation model for analysis to obtain a first audio waveform includes: Inputting each of the third Mel-spectrums into a flow-based generative network model, and analyzing the distribution of audio samples conditioned on the third Mel-spectrums in the flow-based generative network model; Audio sampling is performed according to the distribution of audio samples conditioned on the third Mel-spectrogram to obtain the first audio waveform.
6. A speech synthesis device, characterized in that: include: A first obtaining module is used to analyze the high-sampled audio signal by using a feedforward network, a time predictor and a length regulator in a spatial fast fuzzy network model to obtain a first Mel spectrum; A determination module, configured to divide the frequency band of the first Mel spectrum into a plurality of frequency bands, and respectively determine a second Mel spectrum of each divided frequency band; A generating module, configured to input each of the second Mel-spectrums into a first adversarial network in the spatial fast fuzzy network model for recognition, and generate a third Mel-spectrum; A second obtaining module is used to input each of the third Mel-spectrograms into a speech generation model for analysis to obtain a first audio waveform; A third obtaining module is used to divide the first audio waveform into a plurality of second audio waveforms of different lengths, and input each of the second audio waveforms into the speech generation model for recognition to obtain a speech synthesis signal; Wherein, the third obtaining module includes: A second allocation unit, configured to input each of the second audio waveforms into the speech generation model, and allocate a second adversarial network corresponding to each of the second audio waveforms in the speech generation model, wherein the second adversarial network includes a second generator and a second discriminator; The second obtaining unit is used to fit the second audio waveform input into the current second adversarial network based on the second generator of the current second adversarial network for any second adversarial network, and to recognize the fitted second audio waveform based on the second discriminator of the current second adversarial network. If the recognition result is true, it is determined that the speech signal corresponding to the fitted second audio waveform is the speech synthesis signal generated by the current second adversarial network.
7. A speech synthesis device, characterized in that: include: Memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the speech synthesis method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to implement the steps of the speech synthesis method according to any one of claims 1 to 5.
