Voice generation method and device, equipment and storage medium

By using an iterative process of upsampling networks and residual stacks in the speech synthesis model, the problems of large parameter quantities and slow inference speed caused by the multi-view fusion module are solved, and efficient speech synthesis is achieved.

CN118609537APending Publication Date: 2024-09-06JINGDONG CITY BEIJING DIGITS TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410804757.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In existing speech synthesis technology, the multi-view fusion module results in a large number of model generator parameters, complex network structure, slow inference speed, and difficulty in achieving high-quality speech synthesis.

Method used

Using the vocoder in the trained speech synthesis model, the iterative process is performed sequentially through multiple upsampling blocks, and the upsampling network and residual stack are used to generate the target speech, reducing the number of model parameters and simplifying the network structure, improving reasoning speed.

Benefits of technology

It effectively improves the inference speed and speech quality of the speech synthesis model, reduces the waste of computing resources, and improves the modeling capability of the model and the efficiency of the generator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609537A
    Figure CN118609537A
Patent Text Reader

Abstract

The embodiment of the invention provides a voice generation method and device, equipment and a storage medium. The method comprises the following steps: acquiring acoustic features to be synthesized; and sequentially executing a first preset number of first iteration processes by using a first preset number of up-sampling blocks in a vocoder in the trained speech synthesis model until target speech output by the last up-sampling block is generated, wherein in a first iteration process, the following operations are executed: generating a second feature based on a first feature output by a previous up-sampling block by using an up-sampling network of a current up-sampling block; and utilizing the residual stack of the current up-sampling block to generate a feature to be output to the next up-sampling block based on the second feature, the feature input to the first up-sampling block being an acoustic feature, and the last up-sampling block outputting a target voice. The network structure of the trained speech synthesis model is simpler, and the reasoning speed can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to speech generation methods, devices, apparatuses, and computer-readable storage media. Background Art

[0002] With the rapid development of speech synthesis, the demand for high-quality speech synthesis based on vocoders is increasing. Continuously improving the synthesis quality of vocoders and making it infinitely close to the real recording quality is an important direction of vocoder research. Summary of the invention

[0003] In the first aspect of the present disclosure, a method for speech generation is provided. The method comprises: obtaining acoustic features to be synthesized; and using a first predetermined number of upsampling blocks in a vocoder in a trained speech synthesis model, sequentially performing a first predetermined number of first iterations until a target speech output by the last upsampling block is generated, wherein the upsampling block comprises an upsampling network and a residual stack; wherein in a first iteration, the following operations are performed: using an upsampling network of a current upsampling block, a second feature is generated based on a first feature output by a previous upsampling block; and using a residual stack of the current upsampling block, based on the second feature, a feature to be output to a next upsampling block is generated, wherein the feature input to the first upsampling block is an acoustic feature, and the output of the last upsampling block is a target speech.

[0004] In a second aspect of the present disclosure, a device for speech generation is provided. The device includes: an acquisition module configured to acquire acoustic features to be synthesized; and a generation module configured to use a first predetermined number of upsampling blocks in a vocoder in a trained speech synthesis model to sequentially perform a first predetermined number of first iterations until a target speech output by the last upsampling block is generated, wherein the upsampling block includes an upsampling network and a residual stack; wherein in a first iteration, the following operations are performed: using the upsampling network of the current upsampling block, a second feature is generated based on the first feature output by the previous upsampling block; and using the residual stack of the current upsampling block, based on the second feature, a feature to be output to the next upsampling block is generated, wherein the feature input to the first upsampling block is an acoustic feature, and the output of the last upsampling block is the target speech.

[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.

[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.

[0007] In a fifth aspect of the present disclosure, a computer program product is provided, which includes computer executable instructions, and when the computer executable instructions are executed by a processor, the method of the first aspect is implemented.

[0008] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;

[0011] Figure 2 A flowchart showing a process of speech generation according to some embodiments of the present disclosure is shown;

[0012] Figure 3 A schematic diagram of the structure of a vocoder according to some embodiments of the present disclosure is shown;

[0013] Figure 4A A schematic diagram of the structure of a multi-scale discriminator according to some embodiments of the present disclosure is shown;

[0014] Figure 4B A schematic diagram showing the structure of a multi-cycle discriminator according to some embodiments of the present disclosure is shown.

[0015] Figure 5A A convolution diagram of HiFiGAN according to some embodiments of the present disclosure is shown;

[0016] Figure 5B A convolution diagram of a vocoder according to some embodiments of the present disclosure is shown;

[0017] Figure 6 A schematic structural block diagram of a device for speech generation according to some embodiments of the present disclosure is shown;

[0018] Figure 7 A block diagram of an electronic device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this article, and any type of embodiment may be included under any section / subsection. In addition, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or different sections / subsections.

[0021] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.

[0022] The embodiments of the present disclosure may involve user data, data acquisition and / or use, etc. These aspects are subject to the corresponding laws, regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user knows and confirms. Accordingly, when implementing each embodiment of the present disclosure, the type, scope of use, usage scenario, etc. of the data or information that may be involved should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with the relevant laws and regulations. The specific notification and / or authorization method can vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.

[0023] In this specification and the embodiments, if personal information processing is involved, it will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or it is necessary to perform a contract, etc.), and will only be processed within the scope of regulations or agreements. If a user refuses to process personal information other than the necessary information for basic functions, it will not affect the user's use of basic functions.

[0024] Example Environment

[0025] Figure 1 1 is a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, the example environment 100 may include an electronic device 110. The electronic device 110 is configured to synthesize a target speech based on the acquired acoustic features to be synthesized.

[0026] In the example environment 100, the electronic device can synthesize the target speech based on the acoustic features using the vocoder in the trained speech synthesis model 120. The trained speech synthesis model 120 can be a model deployed on the electronic device 110 or a model deployed on other devices, which will not be described in detail here.

[0027] The electronic device 110 can be any type of mobile terminal, fixed terminal or portable terminal, etc., including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, handheld computers, portable game terminals, VR / AR devices, personal communication systems (PCS) devices, personal navigation devices, personal digital assistants (PDA), audio / video players, digital cameras / camcorders, positioning devices, television receivers, radio broadcast receivers, e-book devices, game devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for the user (such as "wearable" circuits, etc.).

[0028] The electronic device 110 may also be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. The electronic device 110 may include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like.

[0029] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.

[0030] At present, the mainstream speech synthesis (TextToSpeech, TTS) vocoder technology all adopts the vocoder technology based on the Generative Adversarial Networks (GAN) network structure, which can achieve high-fidelity speech reconstruction and can convert the input acoustic features into the final audio data through multiple upsampling modules. Among them, the vocoders based on the GAN network structure mainly include MelGAN, HiFiGAN, BigVGAN, ParallelWaveGAN, etc., and most of them are variants of the MelGAN network. Taking HiFiGAN as an example, the multi-view fusion module in the vocoder can fuse features of different view ranges, features of granularity, and features of small view ranges. It is more about fusing the periodic signal features of speech, features of large view ranges, and features between characters and words in speech, similar to harmonic and rhythmic features. It can fully fuse features of different scales to improve the representation and modeling capabilities of the model.

[0031] However, this multi-view fusion module has a relatively large convolution kernel, which ultimately leads to a large number of model generator parameters and network parameters. In addition, the multi-view fusion module corresponds to a relatively complex and loose network structure, which is not conducive to model reasoning and leads to a slow reasoning speed.

[0032] The embodiment of the present disclosure proposes a speech generation scheme, which obtains acoustic features to be synthesized; and uses a first predetermined number of upsampling blocks in a vocoder in a trained speech synthesis model to sequentially perform a first predetermined number of first iterations until a target speech output by the last upsampling block is generated, wherein the upsampling block includes an upsampling network and a residual stack; wherein in a first iteration, the following operations are performed: using the upsampling network of the current upsampling block, a second feature is generated based on the first feature output by the previous upsampling block; and using the residual stack of the current upsampling block, based on the second feature, features to be output to the next upsampling block are generated, wherein the features input to the first upsampling block are acoustic features, and the output of the last upsampling block is the target speech.

[0033] According to an embodiment of the present disclosure, the vocoder for generating the target speech includes a residual block. Compared with the multi-scale view fusion module, the residual block has fewer parameters and a more streamlined network structure, which can effectively improve the inference speed.

[0034] Example Process

[0035] Figure 2 FIG. 2 is a flowchart of a process 200 for speech generation according to some embodiments of the present disclosure. The process 200 may be implemented at the electronic device 110. Figure 1 Process 200 is described.

[0036] In block 210 , the electronic device 110 may acquire acoustic features to be synthesized.

[0037] In some embodiments, the speech generation process of the present disclosure is mainly applied to generate high-quality speech based on the spectrum (acoustic features) generated by the acoustic model.

[0038] In some embodiments, the acoustic feature may be a Mel-spectrogram feature, or any other suitable type of feature that can generate high-quality speech. In some embodiments, the Mel-spectrogram feature may be an auditory feature based on the human ear, by converting the frequency axis of a low-quality sound signal into a Mel-frequency axis, and then extracting parameters reflecting signal characteristics through a series of filters and transformations.

[0039] In box 220, the electronic device 110 can use a first predetermined number of upsampling blocks in the vocoder in the trained speech synthesis model to perform a first predetermined number of first iterations in sequence until the target speech output by the last upsampling block is generated, wherein the upsampling block includes an upsampling network and a residual stack; wherein in one first iteration, the following operations are performed: using the upsampling network of the current upsampling block, a second feature is generated based on the first feature output by the previous upsampling block; and using the residual stack of the current upsampling block, based on the second feature, features to be output to the next upsampling block are generated, wherein the features input to the first upsampling block are acoustic features, and the output of the last upsampling block is the target speech.

[0040] In some embodiments, the first predetermined number of up-sampling blocks in the vocoder can be in any appropriate relationship, such as a serial relationship, a parallel relationship, etc. As an example, the first predetermined number of up-sampling blocks can be in a serial relationship. The electronic device 110 can use the first predetermined number of up-sampling blocks in the vocoder in the trained speech synthesis model to perform the first predetermined number of first iterations until the target speech output by the last up-sampling block is generated. Each up-sampling block performs the first iteration once. The first predetermined number can be any appropriate number, such as 2 times, 3 times, etc., which will not be described in detail here.

[0041] Figure 3 A structural schematic diagram of a vocoder in a speech synthesis model is shown.

[0042] by Figure 3As an example, the vocoder may include two types of upsampling blocks, namely, an upsampling block 310 and an upsampling block 320, wherein the upsampling block 310 includes an 8-fold upsampling network 311 and a residual block 312, and the upsampling block 320 includes a 2-fold upsampling network 321 and a residual block 322. The vocoder includes two upsampling blocks 310 and two upsampling blocks 320, and the four upsampling blocks are in a serial relationship. Specifically, the output of one upsampling block 310 can be used as the input of another upsampling block 310, the output of another upsampling block can be used as the input of an upsampling block 320, and the output of this upsampling block 320 can be used as the input of another upsampling block 320. The electronic device 110 can use the four upsampling blocks in the vocoder in the trained speech synthesis model to sequentially perform four first iterations, wherein each upsampling block performs one first iteration.

[0043] In some embodiments, for a first predetermined number of upsampling blocks, the upsampling block may include an upsampling network and a residual stack, and the residual stack may include a target number of residual blocks. The target number may be any appropriate number, such as 6, 7, etc., which will not be described in detail here. For the residual stacks included in different upsampling blocks, the corresponding target numbers may be the same or different. In some embodiments, the upsampling multiples applied by the upsampling networks corresponding to the first predetermined number of upsampling blocks are different. Figure 3 As an example, the upsampling multiple corresponding to the upsampling network 311 in the upsampling block 310 may be 8, and the upsampling multiple corresponding to the upsampling network 321 in the upsampling block 320 may be 2.

[0044] In some embodiments, during a first iteration, the following operations are performed: the electronic device 110 can generate a second feature based on the first feature output by the previous upsampling block using the upsampling network of the current upsampling block. The electronic device 110 can generate a feature to be output to the next upsampling block based on the second feature using the residual stack of the current upsampling block. In some embodiments, the feature input to the first upsampling block is an acoustic feature, and can also be a target feature obtained by performing a convolution operation on the acoustic feature based on a predetermined convolutional network. In some embodiments, the feature output by the last upsampling block is the target speech.

[0045] by Figure 3As an example, the electronic device 110 may perform a convolution operation on the acoustic feature based on the convolution network 301 to obtain feature A. The electronic device 110 may use the upsampling network 311 of the first upsampling block 310 and feature A to generate feature B to be input into the residual block 312 of the first upsampling block 310. The electronic device 110 may use the residual block 312 of the first upsampling 310 to generate feature C to be input into the upsampling block 320 based on feature B.

[0046] The following describes the processing of the residual stack.

[0047] In some embodiments, the electronic device 110 may use the residual stack of the current upsampling block to perform a second predetermined number of second iterations until a feature to be output to the next upsampling block is generated. The second predetermined number of times may be any appropriate number, such as 6 times, 7 times, etc., which will not be described in detail here. In some embodiments, the residual stack has a second predetermined number of residual blocks, and one of the residual blocks performs the second iteration once. Figure 3 As an example, the residual block 312 in the upsampling block 310 includes 6 residual stacks 313 .

[0048] In some embodiments, for each residual block in the residual stack, the residual block may include a dilated convolution block. In some embodiments, the dilated convolution blocks corresponding to the second predetermined number of second iterations may have the same or different holes. In some embodiments, the dilated convolution blocks corresponding to the second predetermined number of second iterations may have exponentially increasing holes to continuously increase the field of view. As an example, the dilated convolution blocks corresponding to the i+1th second iteration may have 3 holes. i , i = 0, 1, 2, 3, 4, 5, etc. Any appropriate integer. The holes corresponding to the hole convolution blocks corresponding to each second iteration process increase exponentially, which can effectively increase the field of view, fully integrate the features of different field of view, and thus improve the accuracy of the speech synthesis model and the quality of the synthesized speech of the speech synthesis model.

[0049] In some embodiments, during a second iteration, the following operations are performed.

[0050] The electronic device 110 may use the dilated convolution block in this iteration process to generate a fourth feature based on the third feature obtained in the previous iteration operation. In some embodiments, the electronic device may use the dilated convolution block to perform a dilated convolution operation on the third feature to generate a fourth feature.

[0051] The electronic device 110 may obtain the output feature of the current iteration based on the third feature and the fourth feature, wherein the output feature is the input feature of the next iteration. In some embodiments, the electronic device 110 may determine the sum feature corresponding to the third feature and the fourth feature as the output feature of the current iteration.

[0052] The electronic device 110 can generate a fifth feature based on the output features obtained in each iteration process using the feature fusion layer in the current upsampling block. In some embodiments, the electronic device 110 can generate a sixth feature corresponding to each iteration process by inputting the output features obtained in each iteration process into the first convolution layer of the current upsampling block. The electronic device 110 can generate a fifth feature based on the sixth feature corresponding to each iteration process. In some embodiments, the electronic device 110 can fuse the output features obtained in each iteration process based on a skip-connection network structure to obtain the fifth feature, wherein the skip-connection network structure is used to fuse the features of all granularities and all visual ranges of each residual block, which can further enhance the modeling capability of the model, and can also help gradient backpropagation, prevent gradient disappearance, improve the model convergence speed, and help the speech synthesis model improve the quality of speech synthesis.

[0053] The electronic device 110 may use the output convolution layer in the current upsampling block to generate features to be output to the next upsampling block based on the fifth feature. In some embodiments, the output convolution layer may include multiple convolution networks and multiple activation networks. The electronic device 110 may perform multiple activation-convolution operations on the fifth feature to generate features to be output to the next upsampling block. The activation function may be any appropriate type of activation function.

[0054] by Figure 3 As an example, the residual stack 312 may include 6 residual blocks 313. For ease of description, the 6 residual blocks are referred to as a first residual block, a second residual block, a third residual block, a fourth residual block, a fifth residual block, and a sixth residual block. The electronic device 110 may utilize the dilated convolution block in the first iteration process, i.e., the dilated convolution block in the first residual block, to generate feature 2 based on feature 1, wherein feature 1 is a feature output by the upsampling network 311. The electronic device 110 may determine the sum of feature 1 and feature 2 to determine feature 3.

[0055] The electronic device 110 may use the dilated convolution block in the second iteration process, that is, the dilated convolution block in the second residual block, to generate feature 4 based on feature 3. The electronic device 110 may determine the sum of feature 3 and feature 4 to determine feature 5.

[0056] The electronic device 110 may use the dilated convolution block in the third iteration process, that is, the dilated convolution block in the third residual block, to generate feature 6 based on feature 5. The electronic device 110 may determine the sum of feature 5 and feature 6 to determine feature 7.

[0057] The electronic device 110 may use the dilated convolution block in the fourth iteration process, that is, the dilated convolution block in the fourth residual block, to generate feature 8 based on feature 7. The electronic device 110 may determine the sum of feature 7 and feature 8 to determine feature 9.

[0058] The electronic device 110 may use the dilated convolution block in the fifth iteration, that is, the dilated convolution block in the fifth residual block, to generate feature 10 based on feature 9. The electronic device 110 may determine the sum of feature 9 and feature 10 to determine feature 11.

[0059] The electronic device 110 may use the dilated convolution block in the sixth iteration, that is, the dilated convolution block in the sixth residual block, to generate feature 12 based on feature 11. The electronic device 110 may determine the sum of feature 11 and feature 12 to determine feature 13.

[0060] The electronic device 110 can input feature 3, feature 5, feature 7, feature 9, feature 11, and feature 13 into the 1×1 convolution layer 314 respectively to obtain feature 3 ~ 、Feature 5 ~ 、Feature 7 ~ 、Feature 9 ~ 、Feature 11 ~ 、Feature 13 ~ .

[0061] The electronic device 110 may be based on feature 3 ~ 、Feature 5 ~ 、Feature 7 ~ 、Feature 9 ~ 、Feature 11 ~ 、Feature 13 ~ And the skip-connection network structure 315, feature 14 is obtained.

[0062] The electronic device 110 may perform an activation operation based on feature 14 and the ReLU function to obtain feature 15. The electronic device 110 may perform a convolution operation based on feature 15 and the 1×1 convolution layer 316 to obtain feature 16. The electronic device 110 may perform an activation operation based on feature 16 and the ReLU function to obtain feature 17. The electronic device 110 may perform a convolution operation based on feature 17 and the 1×1 convolution layer 317 to obtain feature 18.

[0063] The electronic device 110 may use the features 18 as input to the upsampling network 320 .

[0064] After obtaining the target feature of the last upsampling block in the serial multiple upsampling blocks, the electronic device can obtain the target speech using the target feature and a predetermined convolutional network. Figure 3 As an example, the electronic device can input feature 18 into the convolutional network 318 to obtain the target speech.

[0065] In order to ensure the quality of speech synthesis, in some embodiments, a discriminator can also be set in the speech synthesis model, and the discriminator is used to identify speech. In some embodiments, the discriminator can be a multi-scale discriminator (MSD) and a multi-period discriminator (MPD), which can identify speech based on different angles to improve the quality of the generator. The multi-scale discriminator can discriminate the generated audio at different audio resolutions, i.e., the original resolution, the audio with a resolution reduced by 2 times, and the audio with a resolution reduced by 4 times. The multi-period discriminator can fold the audio sampling points according to different periods, and discriminate the audio generated by the generator on different periodic signals, where the periods are 1, 3, 5, 7, and 11 respectively.

[0066] Figure 4A shows a schematic diagram of the structure of a multi-scale discriminator according to some embodiments of the present disclosure, Figure 4B The structure diagram of the multi-cycle discriminator according to some embodiments of the present disclosure is shown. Figure 4A and Figure 4B Provide explanation.

[0067] by Figure 4A As an example, the multi-scale discriminator mainly averages the target speech and successively halves the length of the target speech, then applies several layers of convolution at different scales of the speech, and finally flattens it as the output of the multi-scale discriminator.

[0068] by Figure 4B As an example, the multi-cycle discriminator is mainly achieved by folding the one-dimensional target speech into a two-dimensional plane with different sequence lengths, applying k×1 convolution on the two-dimensional plane, and finally flattening it as the output of the multi-cycle discriminator.

[0069] In some embodiments, the discriminator is mainly used in the stage of training the speech synthesis model to determine whether the speech synthesis model has been trained. In some embodiments, in the process of training the speech synthesis model, the electronic device 110 can also determine the loss value based on a predetermined loss function, and then adjust the parameters of the speech synthesis model based on the loss value, and when the training completion condition is met, the trained speech synthesis model is obtained. An example of a predetermined loss function can be a multi-resolution short-time Fourier transform (STFT) loss of a ParallelWaveGAN network, etc., which will not be described in detail here.

[0070] The following describes the beneficial effects that the vocoder of the present disclosure can bring compared with the HiFiGAN network.

[0071] On the one hand, compared with the vocoder of the HiFiGAN network, the vocoder of the present invention has a wider field of view than that of the HiFiGAN network.

[0072] In some embodiments, each multi-scale field of view fusion module in the HiFiGAN network may include three parallel modules, and these three parallel modules respectively use convolutions with convolution kernels of 3, 7, and 11 to extract features of different field of view ranges, wherein each multi-scale field of view fusion module uses a given convolution kernel and uses a dilated convolution for convolution operation, and then performs multi-layer convolution operations to improve the field of view as much as possible and extract features of a larger field of view range. Generally speaking, the maximum field of view of the multi-field of view fusion module is mainly determined by the module with the largest field of view, because in order to determine the field of view, it is only necessary to determine the visual range corresponding to the module with a convolution kernel of 11.

[0073] In some embodiments, the field of view calculation formula corresponding to each module is as follows:

[0074] Y=[∑ i=1,2,3 2*((K-1) / 2*d i )]+1,

[0075] Where Y is the field of view corresponding to the module, K is the size of the convolution kernel corresponding to the module, and d i is the hole of the i-th atrous convolution in the module.

[0076] Under the premise that the module corresponding to the convolution kernel 11 performs 3 layers of dilated convolution operations, and the dilated holes corresponding to each layer are 1, 3, and 5 respectively, the electronic device 110 can determine the maximum field of view that can be obtained by the multi-scale field of view fusion module in HiFiGAN.

[0077] In the present disclosure, a 6-layer hole convolution block is used, and the convolution kernel of the residual stack is 3, and the hole of the i-1th layer is 3. i , i=0,1,2,3,4,5 as an example, the electronic device 110 can determine the field of view of the residual stack as

[0078] Compared with the multi-scale field of view fusion module of HiFiGAN with a field of view of 91, the field of view of the residual stack disclosed in the present invention is 729, which greatly improves the field of view.

[0079] On the other hand, compared with the vocoder of the HiFiGAN network, the vocoder of the present invention does not have the situation of cross convolution operation, that is, there is no repeated waste of calculation.

[0080] Regarding the use of multi-scale fusion, when the convolution kernel size is larger than the hole, and multiple layers of hole convolutions are stacked together, the convolutions of the lower layers will overlap. That is, since the hole in the lower layer becomes smaller and the hole is twice larger than the hole in the previous layer, the convolution operations at some positions in the bottom layer will be crossed and repeated, resulting in a waste of computing resources and parameters, affecting the quality of the model.

[0081] Figure 5A A convolution schematic diagram of HiFiGAN according to some embodiments of the present disclosure is shown.

[0082] The hole number of the first-layer dilated convolution block 510 is 5, and the hole number of the second-layer dilated convolution block 520 is 3. However, when the second-layer dilated convolution block 530 performs convolution operation on the third-layer dilated convolution block 530, a convolution crossover problem may occur. Figure 5A As an example, the black dots in the third-layer hole convolution block are crossed, which results in a waste of computing resources and model parameters.

[0083] The residual stack disclosed in this invention adopts 6 layers of dilated convolution, the convolution kernel of the residual stack is 3, and the dilation corresponding to the i-1th layer is 3. i , taking i=0,1,2,3,4,5 as an example, the embodiment of the present disclosure will not have the situation of cross convolution operation, that is, there will be no repetitive calculation waste, which can help the residual block obtain more features in different field of view, improve the overall field of view, and improve the model quality.

[0084] Figure 5B A convolution diagram of a vocoder according to some embodiments of the present disclosure is shown.

[0085] by Figure 5BAs an example, the hole of the first-layer dilated convolution block 540 is 9, the hole of the second-layer dilated convolution block 550 is 3, and the hole of the third-layer dilated convolution block 560 is 1. For each point in the first-layer dilated convolution block 540, the point is covered exactly once.

[0086] On the other hand, the generator network of HiFiGAN has 12M parameters, while the vocoder structure proposed in the present disclosure has only 6M parameters. It can be seen that the network structure is relatively simpler, and the parallel computing capability of the graphics processing unit (GPU) can be fully utilized to obtain a fast reasoning speed.

[0087] According to an embodiment of the present disclosure, the vocoder for generating the target speech includes a residual block. Compared with the multi-scale view fusion module, the residual block has fewer parameters and a more streamlined network structure, which can effectively improve the inference speed.

[0088] Example devices and equipment

[0089] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 6 : A schematic structural block diagram of an apparatus 600 for speech generation according to some embodiments of the present disclosure is shown. The apparatus 600 may be implemented as or included in the electronic device 110 as discussed above. Each module / component in the apparatus 600 may be implemented by hardware, software, firmware, or any combination thereof.

[0090] like Figure 6 As shown, the device 600 includes an acquisition module, which is configured to acquire acoustic features to be synthesized; and a generation module, which is configured to use a first predetermined number of upsampling blocks in a vocoder in a trained speech synthesis model to sequentially perform a first predetermined number of first iterations until a target speech output by a last upsampling block is generated, wherein the upsampling block includes an upsampling network and a residual stack; wherein in a first iteration, the following operations are performed: using the upsampling network of the current upsampling block, a second feature is generated based on the first feature output by the previous upsampling block; and using the residual stack of the current upsampling block, based on the second feature, a feature to be output to the next upsampling block is generated, wherein the feature input to the first upsampling block is the acoustic feature, and the output of the last upsampling block is the target speech.

[0091] In some embodiments, the generation module 620 is specifically configured to use a first predetermined number of upsampling blocks in the vocoder in the trained speech synthesis model to sequentially perform a first predetermined number of first iterations until a first target feature output by the last upsampling block is generated; wherein in one first iteration, the following operations are performed: using the upsampling network of the current upsampling block to generate a second feature based on the first feature output by the previous upsampling block; and using the residual stack of the current upsampling block to generate features to be output to the next upsampling block based on the second feature, wherein the features input to the first upsampling block are acoustic features, and the output of the last upsampling block is the target speech.

[0092] In some embodiments, the generation module 620 is specifically configured to use the residual stack of the current upsampling block to perform a second predetermined number of second iteration processes until features to be output to the next upsampling block are generated, wherein in one second iteration process, the following operations are performed: using the hole convolution block in the iteration process, a fourth feature is generated based on the third feature obtained in the previous iteration operation; based on the third feature and the fourth feature, the output feature of the current iteration is obtained, and the output feature is the input feature of the next iteration; using the feature fusion layer in the current upsampling block, a fifth feature is generated based on the output feature obtained in each iteration process; and using the output convolution layer in the current upsampling block, based on the fifth feature, features to be output to the next upsampling block are generated.

[0093] In some embodiments, the generation module 620 is specifically configured to generate a sixth feature corresponding to each iteration process by inputting the output features obtained in each iteration process into the first convolution layer of the current upsampling block respectively; and generate a fifth feature based on the sixth feature corresponding to each iteration process.

[0094] In some embodiments, the holes corresponding to the hole convolution blocks corresponding to the second iterative process of the second predetermined number of times increase exponentially.

[0095] In some embodiments, the upsampling multiples applied by the upsampling networks corresponding to the first predetermined number of upsampling blocks are different.

[0096] The units included in the device 600 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units in the device 600 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0097] Figure 7 1 shows a block diagram of an electronic device 700 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 7 The electronic device 700 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 7 The electronic device 700 shown can be used to implement Figure 1 An electronic device 110 is shown.

[0098] like Figure 7 As shown, the electronic device 700 is in the form of a general electronic device. The components of the electronic device 700 may include, but are not limited to, one or more processors or processing units 710, a memory 720, a storage device 730, one or more communication units 740, one or more input devices 750, and one or more output devices 760. The processing unit 710 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 720. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 700.

[0099] The electronic device 700 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 700, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 720 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 730 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the electronic device 700.

[0100] The electronic device 700 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 7 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 720 may include a computer program product 725 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.

[0101] The communication unit 740 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 700 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 700 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0102] The input device 750 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 760 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 700 may also communicate with one or more external devices (not shown) through the communication unit 740 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 700, or communicate with any device that allows the electronic device 700 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0103] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0104] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0105] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0106] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0107] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0108] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.

Claims

1. A speech generation method, comprising: Acquiring acoustic features to be synthesized; as well as Using a first predetermined number of upsampling blocks in a vocoder in a trained speech synthesis model, sequentially performing the first predetermined number of first iterations until a target speech output by a last upsampling block is generated, wherein the upsampling block includes an upsampling network and a residual stack; wherein in one first iteration, performing the following operations: Using an upsampling network of a current upsampling block, generating a second feature based on a first feature output by a previous upsampling block; and Using the residual stack of the current upsampling block, based on the second feature, a feature to be output to the next upsampling block is generated, The feature input to the first upsampling block is the acoustic feature, and the output of the last upsampling block is the target speech.

2. The method according to claim 1, wherein generating a feature to be output to a next upsampling block based on the second feature using the residual stack of the current upsampling block comprises: Using the residual stack of the current upsampling block, performing a second iterative process for a second predetermined number of times until a feature to be output to a next upsampling block is generated, wherein in one second iterative process, the following operations are performed: Using the dilated convolution block in this iteration, a fourth feature is generated based on the third feature obtained in the previous iteration. Based on the third feature and the fourth feature, obtaining an output feature of a current iteration, wherein the output feature is an input feature of a next iteration; Generate a fifth feature based on the output features obtained in each iterative process using the feature fusion layer in the current upsampling block; as well as The output convolution layer in the current upsampling block is used to generate features to be output to a next upsampling block based on the fifth feature.

3. The method according to claim 2, wherein generating the fifth feature based on the output features obtained in each iterative process using the feature fusion layer in the current upsampling block comprises: Generating a sixth feature corresponding to each iteration process by inputting the output features obtained in each iteration process into the first convolution layer of the current upsampling block respectively; as well as The fifth feature is generated based on the sixth feature corresponding to each iteration process.

4. The method according to claim 2, wherein the holes corresponding to the hole convolution blocks corresponding to the second iterative process of the second predetermined number of times increase exponentially. 5 . The method according to claim 1 , wherein the upsampling multiples applied by the upsampling networks corresponding to the first predetermined number of upsampling blocks are different.

6. A device for speech generation, comprising: An acquisition module, configured to acquire acoustic features to be synthesized; and a generation module, configured to use a first predetermined number of upsampling blocks in a vocoder in a trained speech synthesis model, and sequentially perform the first predetermined number of first iterations until a target speech output by a last upsampling block is generated, wherein the upsampling block includes an upsampling network and a residual stack; wherein in one first iteration, the following operations are performed: Using an upsampling network of a current upsampling block, generating a second feature based on a first feature output by a previous upsampling block; and Using the residual stack of the current upsampling block, based on the second feature, a feature to be output to the next upsampling block is generated, The feature input to the first upsampling block is the acoustic feature, and the output of the last upsampling block is the target speech.

7. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, cause the electronic device to perform the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 5 when executed by a processor.

9. A computer program product comprising computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 5.

Citation Information

Cited By

  • Speech synthesis method, device and equipment and readable storage medium

    CN121708947A