A method and device for generating speech

By obtaining the target speech features and using the target vocoder and speech generation neural network to generate initial and final speech signals, the problem of large resource occupation and low efficiency in the existing technology is solved, and efficient speech signal generation is achieved.

CN111862931BActive Publication Date: 2024-09-24BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010390332.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-08
Publication Date
2024-09-24
Estimated Expiration
2040-05-08

AI Technical Summary

Technical Problem

On the premise of ensuring the quality of the speech signal, the existing speech synthesis technology takes up a lot of resources, has a high amount of calculation, is low in efficiency, and is difficult to meet the hardware requirements.

Method used

By obtaining the target speech characteristics, the target vocoder is used to generate the initial speech signal, and combined with the pre-trained speech generation neural network, the final speech signal is generated based on the initial speech signal and the target speech characteristics, reducing the amount of calculation and improving the generation efficiency.

Benefits of technology

It effectively reduces the amount of calculation required for speech generation, reduces resource occupation, and improves the quality and generation efficiency of speech signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111862931B
    Figure CN111862931B
Patent Text Reader

Abstract

The present application provides a speech generation method and device, the method firstly acquires the target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features; then, the target speech features are processed by a target vocoder to generate an initial speech signal of the speech to be generated; finally, the speech signal of the speech to be generated is generated according to the initial speech signal and the target speech features. The present application can generate a linear initial speech signal in the speech signal according to the target speech features including basic frequency features, spectrum envelope features and non-periodic exponential features, and then generate a speech signal according to the initial speech signal and the target speech features, effectively reducing the amount of calculation, improving the efficiency of generating speech signals, and improving the quality of speech signals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In recent years, text-to-speech (TTS) technology has made important progress and has been widely used in the industry, such as intelligent voice broadcasting, navigation, smart speakers, voice assistants, etc. Speech synthesis is a technology that produces artificial speech through mechanical and electronic methods. TTS technology (also known as text-to-speech technology) belongs to speech synthesis. It is a technology that converts text information generated by the computer itself or input externally into understandable and fluent Chinese spoken output. In the process of speech synthesis, there is usually a huge amount of calculation, and powerful floating-point computing capabilities are required to achieve a good speech synthesis effect. It occupies more resources, has low efficiency, and has high hardware requirements. Therefore, how to reduce resource usage while ensuring the quality of voice signals has become an urgent problem to be solved. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a speech generation method and device, which can effectively reduce the amount of calculation required to generate a speech signal, thereby reducing resource usage and improving the efficiency of generating a speech signal.

[0004] The present application provides a method for generating speech, the method comprising:

[0005] Acquire target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features;

[0006] Processing the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated;

[0007] A speech signal of the speech to be generated is generated according to the initial speech signal and the target speech feature.

[0008] In a possible implementation, the processing of the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated includes:

[0009] Using the target vocoder, according to the mapping relationship between the speech feature and the speech signal, a speech signal corresponding to the target speech feature of each frame of the speech to be generated is screened out from a plurality of candidate speech signals;

[0010] An initial speech signal of the speech to be generated is generated according to the speech signal corresponding to the target speech feature of each frame of the speech to be generated obtained by screening.

[0011] In a possible implementation, generating the speech signal of the speech to be generated according to the initial speech signal and the target speech feature includes:

[0012] For each frame of target speech features, convolution and full connection processing are performed on the target speech features of the frame to obtain a feature vector of the frame;

[0013] The speech signal of the speech to be generated is generated according to the feature vector of each frame and the initial speech signal by using a pre-trained speech generation neural network.

[0014] In a possible implementation, for each frame of target speech features, performing convolution and full connection processing on the target speech features of the frame to obtain a feature vector of the frame includes:

[0015] For each frame of target speech features, the target speech features of the frame are convolved twice to obtain convolution features;

[0016] Add the target speech feature of the frame to its corresponding convolution feature to obtain the intermediate feature;

[0017] The intermediate features of the frame are fully connected twice to obtain the feature vector of the frame.

[0018] In a possible implementation, the using of a pre-trained speech generation neural network to generate the speech signal of the speech to be generated according to the feature vector of each frame and the initial speech signal includes:

[0019] For each frame feature vector, using the speech generation neural network, according to the feature vector of the frame and the initial speech signal of the frame, predicting the residual value between the initial speech signal and the standard speech signal of the speech to be generated at the initial moment of the frame;

[0020] Generating, according to the residual value and the initial speech signal, a speech signal of the speech to be generated at the initial moment of the frame;

[0021] For each moment in the frame except the initial moment, using the speech generation neural network, according to the speech signal at the moment before the moment, the residual value corresponding to the speech signal at the moment before the moment, the feature vector of the frame and the initial speech signal of the frame, generate the speech signal of the speech to be generated at the moment;

[0022] The speech signal of the speech to be generated at each moment in each frame is combined in time sequence to generate the speech signal of the speech to be generated.

[0023] In a possible implementation manner, the target vocoder is a WORLD vocoder.

[0024] In a possible implementation, the spectrum envelope feature includes Mel-frequency cepstral coefficients.

[0025] In a possible implementation, the method further comprises the step of training the speech generation neural network:

[0026] Acquire a target training sample, wherein the target training sample includes a plurality of speech feature training samples and a standard speech signal corresponding to each speech feature training sample;

[0027] Using the target vocoder to process each of the speech feature training samples to generate an initial speech signal training sample corresponding to each of the speech feature training samples;

[0028] The speech generation neural network is trained using the speech feature training samples, the initial speech signal training samples corresponding to each speech feature training sample, and the standard speech signal corresponding to each speech feature training sample.

[0029] In a possible implementation, the type of the speech generation neural network is a recurrent neural network.

[0030] The present application also provides a speech generation device, the device comprising:

[0031] An acquisition module, used to acquire target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features;

[0032] A first generating module, used for processing the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated;

[0033] The second generating module is used to generate the speech signal of the speech to be generated according to the initial speech signal and the target speech feature.

[0034] In a possible implementation manner, the first generating module is specifically configured to:

[0035] Using the target vocoder, according to the mapping relationship between the speech feature and the speech signal, a speech signal corresponding to the target speech feature of each frame of the speech to be generated is screened out from a plurality of candidate speech signals;

[0036] An initial speech signal of the speech to be generated is generated according to the speech signal corresponding to the target speech feature of each frame of the speech to be generated obtained by screening.

[0037] In a possible implementation manner, the second generating module is specifically configured to:

[0038] For each frame of target speech features, convolution and full connection processing are performed on the target speech features of the frame to obtain a feature vector of the frame;

[0039] The speech signal of the speech to be generated is generated according to the feature vector of each frame and the initial speech signal by using a pre-trained speech generation neural network.

[0040] In a possible implementation manner, when the second generation module performs convolution and full connection processing on the target speech feature of each frame to obtain the feature vector of the frame, the second generation module is specifically used to:

[0041] For each frame of target speech features, the target speech features of the frame are convolved twice to obtain convolution features;

[0042] Add the target speech feature of the frame to its corresponding convolution feature to obtain the intermediate feature;

[0043] The intermediate features of the frame are fully connected twice to obtain the feature vector of the frame.

[0044] In a possible implementation manner, when the second generation module uses a pre-trained speech generation neural network to generate the speech signal of the speech to be generated according to the feature vector of each frame and the initial speech signal, it is specifically used to:

[0045] For each frame feature vector, using the speech generation neural network, according to the feature vector of the frame and the initial speech signal of the frame, predicting the residual value between the initial speech signal and the standard speech signal of the speech to be generated at the initial moment of the frame;

[0046] Generating, according to the residual value and the initial speech signal, a speech signal of the speech to be generated at the initial moment of the frame;

[0047] For each moment in the frame except the initial moment, using the speech generation neural network, according to the speech signal at the moment before the moment, the residual value corresponding to the speech signal at the moment before the moment, the feature vector of the frame and the initial speech signal of the frame, generate the speech signal of the speech to be generated at the moment;

[0048] The speech signal of the speech to be generated at each moment in each frame is combined in time sequence to generate the speech signal of the speech to be generated.

[0049] In a possible implementation manner, the target vocoder is a WORLD vocoder.

[0050] In a possible implementation, the spectrum envelope feature includes Mel-frequency cepstral coefficients.

[0051] In a possible implementation, the device further includes a model training module, and the model training module is used to:

[0052] Acquire a target training sample, wherein the target training sample includes a plurality of speech feature training samples and a standard speech signal corresponding to each speech feature training sample;

[0053] Using the target vocoder to process each of the speech feature training samples to generate an initial speech signal training sample corresponding to each of the speech feature training samples;

[0054] The speech generation neural network is trained using the speech feature training samples, the initial speech signal training samples corresponding to each speech feature training sample, and the standard speech signal corresponding to each speech feature training sample.

[0055] In a possible implementation, the type of the speech generation neural network is a recurrent neural network.

[0056] The embodiment of the present application also provides an electronic device, which may include one or more storage media, one or more processors communicating with the storage media, and a bus. The one or more storage media store machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform one or more of the following operations:

[0057] Acquire target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features;

[0058] Processing the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated;

[0059] A speech signal of the speech to be generated is generated according to the initial speech signal and the target speech feature.

[0060] In a possible implementation, when the processor executes the machine-readable instruction, one or more of the following operations may be performed:

[0061] Using the target vocoder, according to the mapping relationship between the speech feature and the speech signal, a speech signal corresponding to the target speech feature of each frame of the speech to be generated is screened out from a plurality of candidate speech signals;

[0062] An initial speech signal of the speech to be generated is generated according to the speech signal corresponding to the target speech feature of each frame of the speech to be generated obtained by screening.

[0063] In a possible implementation, when the processor executes the machine-readable instruction, one or more of the following operations may be performed:

[0064] For each frame of target speech features, convolution and full connection processing are performed on the target speech features of the frame to obtain a feature vector of the frame;

[0065] The speech signal of the speech to be generated is generated according to the feature vector of each frame and the initial speech signal by using a pre-trained speech generation neural network.

[0066] In a possible implementation, when the processor executes the machine-readable instruction, one or more of the following operations may be performed:

[0067] For each frame of target speech features, the target speech features of the frame are convolved twice to obtain convolution features;

[0068] Add the target speech feature of the frame to its corresponding convolution feature to obtain the intermediate feature;

[0069] The intermediate features of the frame are fully connected twice to obtain the feature vector of the frame.

[0070] In a possible implementation, when the processor executes the machine-readable instruction, one or more of the following operations may be performed:

[0071] For each frame feature vector, using the speech generation neural network, according to the feature vector of the frame and the initial speech signal of the frame, predicting the residual value between the initial speech signal and the standard speech signal of the speech to be generated at the initial moment of the frame;

[0072] Generating, according to the residual value and the initial speech signal, a speech signal of the speech to be generated at the initial moment of the frame;

[0073] For each moment in the frame except the initial moment, using the speech generation neural network, according to the speech signal at the moment before the moment, the residual value corresponding to the speech signal at the moment before the moment, the feature vector of the frame and the initial speech signal of the frame, generate the speech signal of the speech to be generated at the moment;

[0074] The speech signal of the speech to be generated at each moment in each frame is combined in time sequence to generate the speech signal of the speech to be generated.

[0075] In a possible implementation manner, the target vocoder is a WORLD vocoder.

[0076] In a possible implementation, the spectrum envelope feature includes Mel-frequency cepstral coefficients.

[0077] In a possible implementation, when the processor executes the machine-readable instruction, one or more of the following operations may be performed:

[0078] Acquire a target training sample, wherein the target training sample includes a plurality of speech feature training samples and a standard speech signal corresponding to each speech feature training sample;

[0079] Using the target vocoder to process each of the speech feature training samples to generate an initial speech signal training sample corresponding to each of the speech feature training samples;

[0080] The speech generation neural network is trained using the speech feature training samples, the initial speech signal training samples corresponding to each speech feature training sample, and the standard speech signal corresponding to each speech feature training sample.

[0081] In a possible implementation, the type of the speech generation neural network is a recurrent neural network.

[0082] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the speech generation method as described above are executed.

[0083] The speech generation method and device provided in the embodiment of the present application first obtain the target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features; then, the target speech features are processed by a target vocoder to generate an initial speech signal of the speech to be generated; finally, the speech signal of the speech to be generated is generated according to the initial speech signal and the target speech features. The present application can generate a linear initial speech signal in the speech signal according to the target speech features including basic frequency features, spectrum envelope features and non-periodic exponential features, and then generate a speech signal according to the initial speech signal and the target speech features, thereby effectively reducing the amount of calculation, improving the efficiency of generating speech signals, and improving the quality of speech signals.

[0084] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments 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.

[0086] Figure 1 A flow chart of a speech generation method provided in an embodiment of the present application is shown;

[0087] Figure 2 A flowchart of another speech generation method provided in an embodiment of the present application is shown;

[0088] Figure 3 A schematic diagram of the structure of a speech generating device provided in an embodiment of the present application is shown;

[0089] Figure 4 A schematic diagram showing the structure of another speech generating device provided in an embodiment of the present application is shown;

[0090] Figure 5 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0091] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0092] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all 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 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.

[0093] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0094] According to research, existing speech synthesis methods usually use two methods: digital signal processing and neural network processing. In the method of digital signal processing, the speed of synthesizing speech is faster and can be implemented on general processors, but the speech quality is not ideal; while in the method of neural network processing, the quality of synthesized speech is significantly higher than that of digital signal processing, but because a large amount of calculations are required, high-intensity floating-point computing capabilities are required, which depends on the performance of the processor, and the generation speed is slow, so it cannot be implemented on general processors.

[0095] Based on this, an embodiment of the present application provides a speech generation method, which can first generate a linear initial speech signal in a speech signal according to target speech features including basic frequency features, spectral envelope features, and non-periodic exponential features, and then generate a speech signal based on the initial speech signal and the target speech features, thereby effectively reducing the amount of calculation, improving the efficiency of generating speech signals, and improving the quality of speech signals.

[0096] See also Figure 1 , Figure 1 This is a flow chart of a speech generation method provided in an embodiment of the present application. Figure 1 As shown in , the speech generation method provided in the embodiment of the present application includes:

[0097] S101, obtaining target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features.

[0098] Before this step, the target text corresponding to the speech to be generated can be obtained first, and then the target text can be converted into a phoneme sequence through language processing and acoustic processing, and the start and end time, frequency change and other information of each phoneme can be marked to generate the target speech features of the speech to be generated.

[0099] Among them, the target speech feature can be the feature of the speech to be generated on the speech signal, which can be determined by the correspondence between the feature and the text. Specifically, the target speech features include basic frequency features, spectrum envelope features and non-periodic index features. The time for the vocal cords to open and close each time is the fundamental frequency period, and its reciprocal is the basic frequency feature, which can represent the height of the speech foundation. The spectrum envelope feature is a curve formed by connecting the highest amplitude points of different frequencies, which contains a variety of frequency sets of speech and can represent the tone. The non-periodic index feature can show the influence of vocal cord vibration or noise mixing.

[0100] Here, the target speech features are collected in frames, and each frame of speech to be recognized corresponds to a target speech feature. Each target speech feature may include multiple dimensions and store a variety of feature data.

[0101] Exemplarily, a target speech feature may include 66 dimensions, including 60-dimensional Mel-cephalometric coefficient features (spectral envelope features), 5-dimensional non-periodic features, and 1-dimensional basic frequency features.

[0102] S102: Process the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated.

[0103] In this step, the target speech features can be input into the target vocoder, and the target vocoder processes the basic frequency features, spectrum envelope features and non-periodic exponential features in the target speech features to generate an initial speech signal of each frame of the speech to be generated.

[0104] Here, the target vocoder can be a vocoder based on digital signal processing, such as the WORLD vocoder, which can be used to extract the voice features of the voice, or according to the way of extracting the voice features, reversely generate the voice signal according to the input voice feature information. Since the voice quality generated by the vocoder based on digital signal processing is not ideal and there is still a certain gap with the real voice, but the generated initial voice signal conforms to a certain linear law and is relatively similar to the real voice, therefore, the target vocoder can be used to generate the initial voice signal first, and then the initial voice signal can be processed to obtain a voice signal with higher quality.

[0105] S103: Generate a speech signal of the speech to be generated according to the initial speech signal and the target speech feature.

[0106] In this step, after generating the initial speech signal, the initial speech signal can be processed according to the initial speech signal and the target speech features to determine the nonlinear speech signal, and the linear initial speech signal and the nonlinear speech signal can be synthesized to generate a speech signal that conforms to the real speech.

[0107] Specifically, a neural network model can be used to learn the relationship between the initial speech signal, speech features and the real speech signal. For example, the residual value between the real speech signal and the initial speech signal can be determined first, and then the neural network model can be used to learn the relationship between the residual value and the target speech feature.

[0108] In this way, instead of directly learning the relationship between speech features and real speech signals, the relationship between residual values ​​and speech features is learned. There is no need to model the complete speech, but only the residual value part with relatively small changes needs to be modeled. This can greatly reduce the amount of calculation of the neural network model and can be achieved with fewer neurons, thereby improving the efficiency of generating speech signals and reducing resource usage. Since the target speech signal includes non-periodic exponential features, the generated speech signal can be more consistent with the real speech signal, thereby improving the quality of the generated speech signal.

[0109] The speech generation method provided in the embodiment of the present application first obtains the target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features; then, the target speech features are processed by a target vocoder to generate an initial speech signal of the speech to be generated; finally, the speech signal of the speech to be generated is generated according to the initial speech signal and the target speech features. The present application can generate a linear initial speech signal in the speech signal according to the target speech features including basic frequency features, spectrum envelope features and non-periodic exponential features, and then generate a speech signal according to the initial speech signal and the target speech features, thereby effectively reducing the amount of calculation, improving the efficiency of generating speech signals, and improving the quality of speech signals.

[0110] See also Figure 2 , Figure 2 This is a flow chart of a speech generation method provided by another embodiment of the present application. Figure 2 As shown in , the speech generation method provided in the embodiment of the present application includes:

[0111] S201, obtaining target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features.

[0112] S202: Process the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated.

[0113] S203 . For each frame of target speech features, perform convolution and full connection processing on the target speech features of the frame to obtain a feature vector of the frame.

[0114] In this step, since the target speech feature is extracted in units of frame numbers, and speech generation is performed in units of sampling points, a frame usually contains multiple sampling points, such as 160 sampling points. Therefore, a neural network can be used to provide a feature vector for the speech generation neural network in step S204. The value of the feature vector is different in different frames, and the value of the feature vector can be determined by performing convolution and full connection operations on the target speech feature corresponding to each frame. In the speech generation neural network, the feature vector can play the role of a conditional vector.

[0115] S204: using a pre-trained speech generation neural network, generating a speech signal of the speech to be generated according to the feature vector of each frame and the initial speech signal.

[0116] In this step, since the speech generation neural network has learned the relationship between the residual value between the real speech signal and the initial speech signal and the target speech feature, for each frame, the speech signal of the speech to be generated at each moment in the frame can be predicted by the feature vector corresponding to the target speech feature and the initial speech signal in the frame corresponding to the feature vector. In this process, the feature vector remains constant during the duration of the corresponding frame and changes when entering the next frame. Similarly, the initial speech signal of a frame also remains constant during the duration of the frame.

[0117] Specifically, the residual value between the real speech signal and the initial speech signal of each frame can be predicted based on the feature vector corresponding to the target speech feature and the initial speech signal in the frame corresponding to the feature vector, and then the predicted residual value can be combined with the corresponding initial speech signal to generate the speech signal of the speech to be generated in each frame.

[0118] The speech signal of the speech to be generated is the final speech signal.

[0119] Among them, the description of S201 to S202 can refer to the description of S101 to S102, and can achieve the same technical effect, which is not repeated here.

[0120] In a possible implementation, the processing of the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated includes:

[0121] Using the target vocoder, according to the mapping relationship between the speech feature and the speech signal, a speech signal corresponding to the target speech feature of each frame of the speech to be generated is screened out from a plurality of candidate speech signals;

[0122] An initial speech signal of the speech to be generated is generated according to the speech signal corresponding to the target speech feature of each frame of the speech to be generated obtained by screening.

[0123] In this step, the target vocoder can extract the speech features of each frame from the speech sample and store them. After the target vocoder receives the target speech features, it can screen out the speech signals corresponding to the target speech features of each frame of the speech to be generated from multiple candidate speech signals in the database according to the mapping relationship between the speech features and the speech signals, and then arrange or combine the speech signals corresponding to the target speech features of each frame in time sequence to obtain the initial speech signal of the speech to be generated.

[0124] For example, taking the WORLD vocoder as an example, the WORLD vocoder can use the DIO algorithm to estimate the basic frequency characteristics of the sample speech signal, and based on the basic frequency characteristics and the sample speech signal, use the cheap trick algorithm to estimate the spectrum envelope characteristics of the sample speech signal, and finally determine the non-periodic exponential characteristics based on the basic frequency characteristics, the spectrum envelope characteristics and the sample speech signal.

[0125] For basic frequency features, the WORLD vocoder can use low-pass filters of different frequency bands for parameter acquisition, calculate the reliability of each possible basic frequency feature, and select the basic frequency feature with the highest confidence.

[0126] For the spectrum envelope characteristics, the WORLD vocoder can use the cheap trick algorithm to perform spectrum analysis. First, the spectral energy under the window waveform is calculated, and the total energy under the window is stabilized in the time domain. Then, the power spectrum obtained after time domain stabilization is smoothed to obtain a single cycle energy. Finally, the cepstrum of the power spectrum is calculated and cepstrum lifting is performed to generate the spectrum envelope characteristics.

[0127] For the non-periodic exponential feature, the WORLD vocoder can first add a window function to the waveform and calculate its spectrum, then divide the obtained spectrum by the minimum phase spectrum, and perform inverse Fourier transform on the result to obtain the non-periodic exponential feature.

[0128] The principle of generating the initial speech signal according to the target speech feature can be inferred from the principle of extracting the target speech feature.

[0129] In a possible implementation, for each frame of target speech features, performing convolution and full connection processing on the target speech features of the frame to obtain a feature vector of the frame includes:

[0130] For each frame of target speech features, the target speech features of the frame are convolved twice to obtain convolution features;

[0131] Add the target speech feature of the frame to its corresponding convolution feature to obtain the intermediate feature;

[0132] The intermediate features of the frame are fully connected twice to obtain the feature vector of the frame.

[0133] This step can be implemented through a neural network, which can include two convolutional layers, one connection layer and two fully connected layers. Specifically, the target speech features of each frame can be input into the neural network, and the neural network performs two convolution operations on the target speech features of each frame through two convolutional layers, and then adds the target speech features of each frame to the corresponding convolution features to obtain intermediate features. Then, the intermediate features of each frame are fully connected through two fully connected layers to obtain the feature vector of each frame.

[0134] Specifically, the size of the two convolutional layers can be 3 (converted 3×1). After the convolution operation, a receptive field of 5 frames (the first two frames, the next two frames and the current frame) can be generated, which can stabilize the speech generation neural network.

[0135] Exemplarily, the target speech feature with the dimension of 66 can be used to obtain a 128-dimensional feature vector through a neural network.

[0136] In a possible implementation, the using of a pre-trained speech generation neural network to generate the speech signal of the speech to be generated according to the feature vector of each frame and the initial speech signal includes:

[0137] For each frame feature vector, using the speech generation neural network, according to the feature vector of the frame and the initial speech signal of the frame, predicting the residual value between the initial speech signal and the standard speech signal of the speech to be generated at the initial moment of the frame;

[0138] Generating, according to the residual value and the initial speech signal, a speech signal of the speech to be generated at the initial moment of the frame;

[0139] For each moment in the frame except the initial moment, using the speech generation neural network, according to the speech signal at the moment before the moment, the residual value corresponding to the speech signal at the moment before the moment, the feature vector of the frame and the initial speech signal of the frame, generate the speech signal of the speech to be generated at the moment;

[0140] The speech signal of the speech to be generated at each moment in each frame is combined in time sequence to generate the speech signal of the speech to be generated.

[0141] Among them, the speech generation neural network may include a connection layer for connecting the speech signal at the previous moment in a frame, the residual value corresponding to the speech signal at the previous moment, the feature vector of the frame and the initial speech signal of the frame; the speech generation neural network may include two GRU (Gate Recurrent Unit) layers, GRU is a variant of the recurrent neural network, and its function is to make the vector obtained by the connection layer repeatedly pass through the filter; the speech generation neural network also includes a double-layer fully connected layer and a logistic regression layer.

[0142] By utilizing the above-mentioned multiple neural network layers, the residual value between the initial speech signal at a moment in a frame and the standard speech signal of the speech to be generated can be obtained. By combining the residual value at that moment with the corresponding initial speech signal, the speech signal at that moment can be obtained. Then, by utilizing the speech signal at that moment, the residual value corresponding to that moment, the feature vector of the frame, and the initial speech signal of the frame at one moment after that moment, the speech signal at one moment after that moment can be obtained. In this way, the entire speech signal of the speech to be generated can be obtained.

[0143] In a possible implementation manner, the target vocoder is a WORLD vocoder.

[0144] In a possible implementation, the spectrum envelope feature includes Mel-frequency cepstral coefficients.

[0145] In a possible implementation, the method further comprises the step of training the speech generation neural network:

[0146] Acquire a target training sample, wherein the target training sample includes a plurality of speech feature training samples and a standard speech signal corresponding to each speech feature training sample;

[0147] Using the target vocoder to process each of the speech feature training samples to generate an initial speech signal training sample corresponding to each of the speech feature training samples;

[0148] The speech generation neural network is trained using the speech feature training samples, the initial speech signal training samples corresponding to each speech feature training sample, and the standard speech signal corresponding to each speech feature training sample.

[0149] In a possible implementation, the type of the speech generation neural network is a recurrent neural network.

[0150] The speech generation method provided in the embodiment of the present application first obtains the target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features; then, the target speech features are processed by the target vocoder to generate the initial speech signal of the speech to be generated; secondly, for the target speech features of each frame, the target speech features of the frame are convolved and fully connected to obtain the feature vector of the frame; finally, the speech signal of the speech to be generated is generated according to the feature vector of each frame and the initial speech signal using a pre-trained speech generation neural network. The present application can generate a linear initial speech signal in the speech signal according to the target speech features including basic frequency features, spectrum envelope features and non-periodic exponential features, and then generate a speech signal according to the initial speech signal and the target speech features, effectively reducing the amount of calculation, improving the efficiency of generating speech signals, and improving the quality of speech signals.

[0151] See also Figure 3 , Figure 4 , Figure 3 A schematic diagram of the structure of a speech generating device provided in an embodiment of the present application is shown in FIG. Figure 4 This is a schematic diagram of the structure of another speech generating device provided in an embodiment of the present application. Figure 3 As shown in , the speech generating device 300 comprises:

[0152] The acquisition module 310 is used to acquire the target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic index features;

[0153] A first generating module 320 is used to process the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated;

[0154] The second generating module 330 is used to generate the speech signal of the speech to be generated according to the initial speech signal and the target speech feature.

[0155] In a possible implementation manner, the first generating module 320 is specifically configured to:

[0156] Using the target vocoder, according to the mapping relationship between the speech feature and the speech signal, a speech signal corresponding to the target speech feature of each frame of the speech to be generated is screened out from a plurality of candidate speech signals;

[0157] An initial speech signal of the speech to be generated is generated according to the speech signal corresponding to the target speech feature of each frame of the speech to be generated obtained by screening.

[0158] In a possible implementation manner, the second generating module 330 is specifically configured to:

[0159] For each frame of target speech features, convolution and full connection processing are performed on the target speech features of the frame to obtain a feature vector of the frame;

[0160] The speech signal of the speech to be generated is generated according to the feature vector of each frame and the initial speech signal by using a pre-trained speech generation neural network.

[0161] In a possible implementation manner, when the second generation module 330 performs convolution and full connection processing on the target speech feature of each frame to obtain the feature vector of the frame, it is specifically used to:

[0162] For each frame of target speech features, the target speech features of the frame are convolved twice to obtain convolution features;

[0163] Add the target speech feature of the frame to its corresponding convolution feature to obtain the intermediate feature;

[0164] The intermediate features of the frame are fully connected twice to obtain the feature vector of the frame.

[0165] In a possible implementation manner, when the second generation module 330 uses a pre-trained speech generation neural network to generate the speech signal of the speech to be generated according to the feature vector of each frame and the initial speech signal, it is specifically used to:

[0166] For each frame feature vector, using the speech generation neural network, according to the feature vector of the frame and the initial speech signal of the frame, predicting the residual value between the initial speech signal and the standard speech signal of the speech to be generated at the initial moment of the frame;

[0167] Generating, according to the residual value and the initial speech signal, a speech signal of the speech to be generated at the initial moment of the frame;

[0168] For each moment in the frame except the initial moment, using the speech generation neural network, according to the speech signal at the moment before the moment, the residual value corresponding to the speech signal at the moment before the moment, the feature vector of the frame and the initial speech signal of the frame, generate the speech signal of the speech to be generated at the moment;

[0169] The speech signal of the speech to be generated at each moment in each frame is combined in time sequence to generate the speech signal of the speech to be generated.

[0170] In a possible implementation manner, the target vocoder is a WORLD vocoder.

[0171] In a possible implementation, the spectrum envelope feature includes Mel-frequency cepstral coefficients.

[0172] In a possible implementation, Figure 4 As shown, the speech generation device 400 includes an acquisition module 410, a first generation module 420, a second generation module 430 and a model training module 440, and the model training module 440 is used to:

[0173] Acquire a target training sample, wherein the target training sample includes a plurality of speech feature training samples and a standard speech signal corresponding to each speech feature training sample;

[0174] Using the target vocoder to process each of the speech feature training samples to generate an initial speech signal training sample corresponding to each of the speech feature training samples;

[0175] The speech generation neural network is trained using the speech feature training samples, the initial speech signal training samples corresponding to each speech feature training sample, and the standard speech signal corresponding to each speech feature training sample.

[0176] In a possible implementation, the type of the speech generation neural network is a recurrent neural network.

[0177] The speech generation device provided in the embodiment of the present application first obtains the target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features; then, the target speech features are processed by a target vocoder to generate an initial speech signal of the speech to be generated; finally, the speech signal of the speech to be generated is generated according to the initial speech signal and the target speech features. The present application can generate a linear initial speech signal in the speech signal according to the target speech features including basic frequency features, spectrum envelope features and non-periodic exponential features, and then generate a speech signal according to the initial speech signal and the target speech features, thereby effectively reducing the amount of calculation, improving the efficiency of generating speech signals, and improving the quality of speech signals.

[0178] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown in , the electronic device 500 includes a processor 510 , a memory 520 and a bus 530 .

[0179] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 via the bus 530. When the machine-readable instructions are executed by the processor 510, one or more of the following operations may be performed:

[0180] Acquire target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic exponential features;

[0181] Processing the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated;

[0182] A speech signal of the speech to be generated is generated according to the initial speech signal and the target speech feature.

[0183] In a possible implementation, when the processor 510 executes the machine-readable instruction, one or more of the following operations may be performed:

[0184] Using the target vocoder, according to the mapping relationship between the speech feature and the speech signal, a speech signal corresponding to the target speech feature of each frame of the speech to be generated is screened out from a plurality of candidate speech signals;

[0185] An initial speech signal of the speech to be generated is generated according to the speech signal corresponding to the target speech feature of each frame of the speech to be generated obtained by screening.

[0186] In a possible implementation, when the processor 510 executes the machine-readable instruction, one or more of the following operations may be performed:

[0187] For each frame of target speech features, convolution and full connection processing are performed on the target speech features of the frame to obtain a feature vector of the frame;

[0188] The speech signal of the speech to be generated is generated according to the feature vector of each frame and the initial speech signal by using a pre-trained speech generation neural network.

[0189] In a possible implementation, when the processor 510 executes the machine-readable instruction, one or more of the following operations may be performed:

[0190] For each frame of target speech features, the target speech features of the frame are convolved twice to obtain convolution features;

[0191] Add the target speech feature of the frame to its corresponding convolution feature to obtain the intermediate feature;

[0192] The intermediate features of the frame are fully connected twice to obtain the feature vector of the frame.

[0193] In a possible implementation, when the processor 510 executes the machine-readable instruction, one or more of the following operations may be performed:

[0194] For each frame feature vector, using the speech generation neural network, according to the feature vector of the frame and the initial speech signal of the frame, predicting the residual value between the initial speech signal and the standard speech signal of the speech to be generated at the initial moment of the frame;

[0195] Generating, according to the residual value and the initial speech signal, a speech signal of the speech to be generated at the initial moment of the frame;

[0196] For each moment in the frame except the initial moment, using the speech generation neural network, according to the speech signal at the moment before the moment, the residual value corresponding to the speech signal at the moment before the moment, the feature vector of the frame and the initial speech signal of the frame, generate the speech signal of the speech to be generated at the moment;

[0197] The speech signal of the speech to be generated at each moment in each frame is combined in time sequence to generate the speech signal of the speech to be generated.

[0198] In a possible implementation manner, the target vocoder is a WORLD vocoder.

[0199] In a possible implementation, the spectrum envelope feature includes Mel-frequency cepstral coefficients.

[0200] In a possible implementation, when the processor 510 executes the machine-readable instruction, one or more of the following operations may be performed:

[0201] Acquire a target training sample, wherein the target training sample includes a plurality of speech feature training samples and a standard speech signal corresponding to each speech feature training sample;

[0202] Using the target vocoder to process each of the speech feature training samples to generate an initial speech signal training sample corresponding to each of the speech feature training samples;

[0203] The speech generation neural network is trained using the speech feature training samples, the initial speech signal training samples corresponding to each speech feature training sample, and the standard speech signal corresponding to each speech feature training sample.

[0204] In a possible implementation, the type of the speech generation neural network is a recurrent neural network.

[0205] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 as well as Figure 2 The steps of the speech generation method in the method embodiment shown and the specific implementation method thereof can be found in the method embodiment, which will not be described in detail here.

[0206] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0207] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0208] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0209] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0210] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0211] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and 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 generation method, characterized in that: The method comprises: Acquire target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic index features, and the non-periodic index features show the influence of vocal cord vibration or noise mixing; Processing the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated; According to the initial speech signal and the target speech feature, a speech signal of the speech to be generated is generated, which includes: determining a nonlinear speech signal according to the initial speech signal and the target speech feature, and synthesizing the linear initial speech signal with the nonlinear speech signal to generate a speech signal that conforms to the real speech.

2. The method according to claim 1, characterized in that: The step of processing the target speech feature by using the target vocoder to generate the initial speech signal of the speech to be generated includes: Using the target vocoder, according to the mapping relationship between the speech feature and the speech signal, a speech signal corresponding to the target speech feature of each frame of the speech to be generated is screened out from a plurality of candidate speech signals; An initial speech signal of the speech to be generated is generated according to the speech signal corresponding to the target speech feature of each frame of the speech to be generated obtained by screening.

3. The method according to claim 1, characterized in that: The step of generating the speech signal of the speech to be generated according to the initial speech signal and the target speech feature comprises: For each frame of target speech features, convolution and full connection processing are performed on the target speech features of the frame to obtain a feature vector of the frame; Using a pre-trained speech generation neural network, according to the feature vector of each frame and the initial speech signal, generating the speech signal of the speech to be generated, including predicting the residual value between the initial speech signal and the standard speech signal of the speech to be generated at the initial moment of the frame using the speech generation neural network according to the feature vector of each frame and the initial speech signal of the frame; Generating, according to the residual value and the initial speech signal, a speech signal of the speech to be generated at the initial moment of the frame; For each moment in the frame except the initial moment, using the speech generation neural network, according to the speech signal at the moment before the moment, the residual value corresponding to the speech signal at the moment before the moment, the feature vector of the frame and the initial speech signal of the frame, generate the speech signal of the speech to be generated at the moment; The speech signal of the speech to be generated at each moment in each frame is combined in time sequence to generate the speech signal of the speech to be generated.

4. The method according to claim 3, characterized in that The target speech feature of each frame is convolved and fully connected to obtain a feature vector of the frame, including: For each frame of target speech features, the target speech features of the frame are convolved twice to obtain convolution features; Add the target speech feature of the frame to its corresponding convolution feature to obtain the intermediate feature; The intermediate features of the frame are fully connected twice to obtain the feature vector of the frame.

5. The method according to claim 1, characterized in that The target vocoder is the WORLD vocoder.

6. The method according to claim 1, characterized in that The spectrum envelope features include Mel-cepstral coefficients.

7. The method according to claim 3, characterized in that The method further comprises the step of training the speech generating neural network: Acquire a target training sample, wherein the target training sample includes a plurality of speech feature training samples and a standard speech signal corresponding to each speech feature training sample; Using the target vocoder to process each of the speech feature training samples to generate an initial speech signal training sample corresponding to each of the speech feature training samples; The speech generation neural network is trained using the speech feature training samples, the initial speech signal training samples corresponding to each speech feature training sample, and the standard speech signal corresponding to each speech feature training sample.

8. The method according to claim 3, characterized in that The type of the speech generation neural network is a recurrent neural network.

9. A speech generating device, characterized in that: The device comprises: An acquisition module, used to acquire target speech features corresponding to the speech to be generated; the target speech features include basic frequency features, spectrum envelope features and non-periodic index features, and the non-periodic index features show the influence of vocal cord vibration or noise mixing; A first generating module, used for processing the target speech feature by using a target vocoder to generate an initial speech signal of the speech to be generated; The second generating module is used to generate the speech signal of the speech to be generated according to the initial speech signal and the target speech feature, which includes: determining a nonlinear speech signal according to the initial speech signal and the target speech feature, and synthesizing the linear initial speech signal with the nonlinear speech signal to generate a speech signal that conforms to the real speech.

10. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the speech generation method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the speech generation method according to any one of claims 1 to 8 are executed.