Multi-mode quantization method and system for pitch period vector based on vocal tract information clustering

Through the hierarchical clustering method of vocal tract information clustering and KL divergence, a line spectrum frequency parameter classification codebook for pitch period parameter classification vector quantization is constructed, which solves the problem of unused correlation between line spectrum frequency parameters and pitch period parameters in traditional technology. This problem improves the quantization efficiency of pitch period parameters and the quality of synthesized speech.

CN114974203BActive Publication Date: 2024-08-23SHANDONG INST OF SCI & TECH DEV STRATEGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210528121.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-16
Publication Date
2024-08-23
Estimated Expiration
2042-05-16

AI Technical Summary

Technical Problem

In traditional low-rate speech compression coding technology, the correlation between line spectrum frequency parameters and pitch period parameters is not fully utilized, which affects quantization efficiency and synthesized speech quality.

Method used

A pitch period vector multi-mode quantization method based on vocal tract information clustering is adopted. By constructing a line spectrum frequency parameter quantization codebook and a pitch period parameter quantification initial codebook, the codebook is updated using probability distribution to improve the quantization efficiency of the pitch period parameters. Combined with The KL divergence values ​​are hierarchically clustered to construct a line spectrum frequency parameter classification codebook for vector quantization of pitch period parameter classification.

Benefits of technology

It improves the quantification efficiency of pitch period parameters, improves the quality of synthesized speech, and achieves more targeted quantification by using line spectrum frequency parameters to classify pitch period parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114974203B
    Figure CN114974203B
Patent Text Reader

Abstract

The present invention discloses a multi-mode quantization method and system of pitch period vector based on vocal tract information clustering, comprising: constructing a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization initial codebook and a line spectrum frequency parameter classification initial codebook; quantizing the line spectrum frequency vector and the pitch period vector to obtain a quantization index of the line spectrum frequency parameter; obtaining the pitch period parameter corresponding to the line spectrum frequency parameter under each quantization index and its probability distribution; updating the line spectrum frequency parameter classification initial codebook according to the probability distribution to obtain a line spectrum frequency parameter classification codebook, and obtaining a pitch period parameter quantization codebook under each classification mode according to the line spectrum frequency parameter classification codebook; quantizing the line spectrum frequency vector and the pitch period vector of a speech signal according to the finally obtained line spectrum frequency parameter classification codebook, the pitch period parameter quantization codebook and the line spectrum frequency parameter quantization codebook to realize speech synthesis. The quantization efficiency of the pitch period parameter is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of speech signal processing, and in particular to a multi-mode quantization method and system for pitch period vector based on vocal tract information clustering. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Low-rate vocoder technology has a wide range of application needs in satellite communications, shortwave communications, underwater acoustic communications, and confidential communications. For example, in extremely harsh mountain communication environments, ultra-shortwave radio stations must ensure 24-hour communications around the clock, and the vocoder encoding rate is often required to be lower than 600bps.

[0004] In ultra-low rate speech compression coding technology, the hybrid excitation linear prediction coding algorithm is widely used because of its superior performance. The hybrid excitation linear prediction coding algorithm extracts the line spectrum frequency parameters representing the vocal tract information, as well as the energy parameters, pitch period parameters, and bandpass voicing parameters representing the excitation signal at the encoding end, quantizes and encodes the above parameters through vector quantization technology and transmits them. At the decoding end, the above parameters are obtained through inverse quantization and sent to the decoder to obtain synthesized speech.

[0005] However, the line spectrum frequency parameters and the fundamental pitch period parameters still have a certain correlation. In the traditional low-rate speech compression coding algorithm, the line spectrum frequency parameters and the fundamental pitch period parameters are vector quantized separately, and the correlation between the two is not fully utilized, which affects the quantization efficiency and the quality of the synthesized speech. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes a multi-mode quantization method and system for pitch period vector based on vocal tract information clustering, which utilizes the correlation between pitch period parameters and line spectrum frequency parameters to improve the quantization efficiency of pitch period parameters.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] In a first aspect, the present invention provides a multi-mode quantization method for a pitch period vector based on vocal tract information clustering, comprising:

[0009] According to the training speech set, a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization initial codebook and a line spectrum frequency parameter classification initial codebook are respectively constructed;

[0010] The line spectrum frequency vector and the pitch period vector of the training speech set are quantized using a line spectrum frequency parameter quantization codebook and a pitch period parameter quantization initial codebook respectively, and the quantized line spectrum frequency parameter is classified according to the line spectrum frequency parameter initial codebook to obtain a quantization index of the line spectrum frequency parameter;

[0011] Obtaining the pitch period parameter corresponding to the line spectrum frequency parameter under each quantization index, and determining the probability distribution of the corresponding pitch period parameter on the pitch period parameter quantization initial codebook;

[0012] An initial codebook for line spectrum frequency parameter classification is updated according to the probability distribution until the size of the updated codebook is no greater than the set classification threshold, thereby obtaining a line spectrum frequency parameter classification codebook, and a pitch period parameter quantization codebook under each classification mode is obtained according to the line spectrum frequency parameter classification codebook;

[0013] The line spectrum frequency vector and the fundamental frequency period vector are extracted from the sampled speech signal sample points, the line spectrum frequency vector is quantized using a line spectrum frequency parameter quantization codebook, and the quantized line spectrum frequency parameters are quantized again using a line spectrum frequency parameter classification codebook to obtain a quantization index, the fundamental frequency period parameter quantization codebook is selected according to the quantization index, and the fundamental frequency period vector is quantized for realizing speech synthesis.

[0014] As an optional implementation, the process of updating the initial codebook for line spectrum frequency vector classification according to the probability distribution is: calculating the KL divergence value of the probability distribution of the fundamental period parameters corresponding to a pair of line spectrum frequency parameters, determining a pair of line spectrum frequency parameters with the smallest KL divergence value, and merging the pair of line spectrum frequency parameters to obtain a new line spectrum frequency parameter classification codebook, and the codebook size is reduced by one, and the new line spectrum frequency parameter classification codebook is used for re-quantization until the codebook size is no greater than the set classification threshold, and the loop ends.

[0015] As an optional implementation, the probability distribution is the ratio of the number of occurrences of each pitch period parameter to the total number of occurrences of all pitch period parameters.

[0016] As an optional implementation, the size of the line spectrum frequency parameter classification initial codebook is larger than the set classification threshold, and the updated line spectrum frequency vector classification codebook is not larger than the set classification threshold.

[0017] As an optional implementation, extract the line spectrum frequency vector and the fundamental frequency period vector from the sampled speech signal sample points, use the line spectrum frequency parameter quantization codebook to quantize the line spectrum frequency vector, and obtain the quantization index index_lsf and the quantized line spectrum frequency parameter;

[0018] The quantized line spectrum frequency parameter is quantized again using the line spectrum frequency parameter classification codebook to obtain a quantization index index_lsf_pitch;

[0019] Selecting a pitch period parameter quantization codebook according to the quantization index index_lsf_pitch to perform vector quantization on the pitch period vector to obtain a quantization index index_pitch;

[0020] The quantization index index_lsf and the quantization index index_pitch are encoded and transmitted to the decoding end so as to perform speech synthesis at the decoding end.

[0021] As an optional implementation, the process of performing speech synthesis at the decoding end includes:

[0022] Obtain the inverse quantized value of the line spectrum frequency parameter according to the quantization index index_lsf;

[0023] The dequantized value is quantized again using the line spectrum frequency parameter classification codebook to obtain a quantization index of the dequantized value;

[0024] Selecting a quantization codebook of a pitch period vector according to a quantization index of an inverse quantization value;

[0025] Obtain the inverse quantized value of the pitch period parameter according to the quantization index index_pitch;

[0026] A decoder is used to synthesize speech based on the above data.

[0027] As an optional implementation, after the sampled speech signal points are framed in time sequence, the line spectrum frequency parameters and fundamental frequency period parameters are extracted for each frame of speech, and the line spectrum frequency parameters and fundamental frequency period parameters of all frames of speech form a line spectrum frequency vector and a fundamental frequency period vector.

[0028] In a second aspect, the present invention provides a multi-mode quantization system for pitch period vector based on vocal tract information clustering, comprising:

[0029] An initial module is configured to construct a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization initial codebook and a line spectrum frequency parameter classification initial codebook according to a training speech set;

[0030] The initial quantization module is configured to quantize the line spectrum frequency vector and the pitch period vector of the training speech set using the line spectrum frequency parameter quantization codebook and the pitch period parameter quantization initial codebook respectively, and obtain the quantization index of the line spectrum frequency parameter according to the line spectrum frequency parameter classification initial codebook for the quantized line spectrum frequency parameter;

[0031] A probability distribution determination module is configured to obtain a pitch period parameter corresponding to a line spectrum frequency parameter under each quantization index, and determine a probability distribution of the corresponding pitch period parameter on an initial codebook for quantization of the pitch period parameter;

[0032] A codebook updating module is configured to update an initial codebook for line spectrum frequency parameter classification according to a probability distribution until a size of the updated codebook is no greater than a set classification threshold, thereby obtaining a line spectrum frequency parameter classification codebook, and obtaining a pitch period parameter quantization codebook under each classification mode according to the line spectrum frequency parameter classification codebook;

[0033] The quantization module is configured to extract the line spectrum frequency vector and the fundamental frequency period vector from the sampled speech signal sample points, quantize the line spectrum frequency vector using the line spectrum frequency parameter quantization codebook, and re-quantize the quantized line spectrum frequency parameters using the line spectrum frequency parameter classification codebook to obtain a quantization index, select the fundamental frequency period parameter quantization codebook according to the quantization index, and quantize the fundamental frequency period vector for realizing speech synthesis.

[0034] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method described in the first aspect is performed.

[0035] In a fourth aspect, the present invention provides a computer-readable storage medium for storing computer instructions, wherein when the computer instructions are executed by a processor, the method described in the first aspect is performed.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The present invention proposes a multi-mode quantization method and system for pitch period vector based on vocal tract information clustering, which utilizes the correlation between pitch period parameters and line spectrum frequency parameters to improve the quantization efficiency of pitch period parameters. Multi-mode vector quantization is performed on the pitch period vector by constructing a line spectrum frequency parameter classification codebook for classifying and vector quantizing the pitch period vector. The codebook is different from the line spectrum frequency parameter quantization codebook, which is mainly used for the classification of pitch period parameter quantization. Therefore, the line spectrum frequency parameters in the line spectrum frequency parameter classification codebook have a good classification effect on the pitch period parameters, that is, the probability distribution of the pitch period parameters under different line spectrum frequency parameters should be as different as possible, so that the pitch period parameters can be quantized more specifically, the quantization efficiency can be improved, and the quality of synthesized speech can be effectively improved.

[0038] The present invention proposes a multi-mode quantization method and system for pitch period vector based on vocal tract information clustering, adopts a hierarchical clustering method based on KL divergence, constructs a line spectrum frequency parameter classification codebook for pitch period parameter classification vector quantization, and because a hierarchical clustering method based on KL divergence of pitch period distribution is adopted, the line spectrum frequency vector in the codebook has a good classification effect on the pitch period, and there is a large difference in the probability distribution of the pitch period parameters corresponding to different line spectrum frequency parameters, so that the pitch period parameters can be quantized more specifically.

[0039] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0041] Figure 1 It is a flow chart of the traditional pitch period parameter vector quantization method;

[0042] Figure 2 A schematic diagram of a multi-mode quantization method for pitch period vector based on vocal tract information clustering provided in Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0043] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0044] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0045] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0046] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0047] Example 1

[0048] like Figure 1 The conventional fundamental pitch period parameter vector quantization flow chart is shown as follows:

[0049] (1) The transmitter divides the input speech signal samples into frames in time sequence;

[0050] (2) extracting pitch period parameters by frame, wherein the pitch period parameters of multiple speech frames form a pitch period vector of a super frame;

[0051] (3) Using the pitch period quantization codebook obtained through offline training, the current pitch period vector is quantized to obtain a quantization index for encoding and transmission;

[0052] (4) The receiving end searches the quantization codebook for the pitch period vector of the current super frame according to the received pitch period parameter quantization index;

[0053] (5) The pitch period parameter vector and other related parameters obtained in step (4) are sent to the decoder to synthesize the speech of the current super frame.

[0054] However, the traditional pitch period parameter vector quantization process does not fully utilize the correlation between the line spectrum frequency parameters and the pitch period parameters. If the prior information provided by the line spectrum frequency parameters is fully considered during the pitch period quantization, the quantization efficiency can be effectively improved, thereby improving the quality of synthesized speech.

[0055] Therefore, this embodiment provides a multi-mode quantization method for pitch period vector based on vocal tract information clustering, including:

[0056] According to the training speech set, a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization initial codebook and a line spectrum frequency parameter classification initial codebook are respectively constructed;

[0057] The line spectrum frequency vector and the pitch period vector of the training speech set are quantized using a line spectrum frequency parameter quantization codebook and a pitch period parameter quantization initial codebook respectively, and the quantized line spectrum frequency parameter is classified according to the line spectrum frequency parameter initial codebook to obtain a quantization index of the line spectrum frequency parameter;

[0058] Obtaining the pitch period parameter corresponding to the line spectrum frequency parameter under each quantization index, and determining the probability distribution of the corresponding pitch period parameter on the pitch period parameter quantization initial codebook;

[0059] An initial codebook for line spectrum frequency parameter classification is updated according to the probability distribution until the size of the updated codebook is no greater than the set classification threshold, thereby obtaining a line spectrum frequency parameter classification codebook, and a pitch period parameter quantization codebook under each classification mode is obtained according to the line spectrum frequency parameter classification codebook;

[0060] The line spectrum frequency vector and the fundamental frequency period vector are extracted from the sampled speech signal sample points, the line spectrum frequency vector is quantized using a line spectrum frequency parameter quantization codebook, and the quantized line spectrum frequency parameters are quantized again using a line spectrum frequency parameter classification codebook to obtain a quantization index, the fundamental frequency period parameter quantization codebook is selected according to the quantization index, and the fundamental frequency period vector is quantized for realizing speech synthesis.

[0061] In this embodiment, the pitch period vector multi-mode quantization method based on vocal tract information clustering includes two parts, such as Figure 2 As shown, the first is to construct a codebook, and the second is to process the input speech signal according to the constructed codebook. The two parts of the pitch period vector multi-mode quantization method based on channel information clustering are described in detail below.

[0062] In this embodiment, constructing a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization codebook and a line spectrum frequency parameter classification codebook specifically includes the following steps:

[0063] (1) Preset codebook size; specifically, according to the number of quantization bits of the pitch period parameter and the line spectrum frequency parameter allocated by the vocoder, determine the size S_P of the pitch period parameter quantization codebook, the size S_L of the line spectrum frequency parameter quantization codebook, and the size N_C of the line spectrum frequency parameter classification codebook, and set the number N_P of pitch period vector classification modes; wherein N_C is much larger than N_P.

[0064] As an optional implementation, the line spectrum frequency parameters and the fundamental frequency period parameters are extracted according to a mixed excitation linear prediction (MELP) speech coding algorithm, but not limited thereto.

[0065] (2) According to the training speech set, construct the line spectrum frequency parameter quantization codebook C with size S_L lsf_q , the pitch period parameter quantization initial codebook C of size N_P pitch_q , and the line spectrum frequency parameter classification initial codebook of size N_C At this time, let i=0.

[0066] As an optional implementation, each codebook is obtained by using the LBG method according to the training speech set, but the present invention is not limited thereto.

[0067] (3) Each frame of speech signal in the training speech set includes a line spectrum frequency parameter and a pitch period parameter, and the line spectrum frequency parameters and pitch period parameters of all frames constitute a line spectrum frequency vector and a pitch period vector;

[0068] Traverse the training speech set and use the line spectrum frequency parameter to quantize the codebook C lsf_q Quantize the current line spectrum frequency vector lsf to obtain the quantized line spectrum frequency parameters The line spectrum frequency parameters are classified by the initial codebook to quantize the line spectrum frequency parameters. Perform re-quantization to obtain the quantization index of the line spectrum frequency parameter;

[0069] The initial codebook C is quantized using the pitch period parameter pitch_q quantizing the pitch period vector to obtain a quantized pitch period parameter;

[0070] Calculate the line spectrum frequency parameter classification codebook. Under each quantization index, the pitch period parameter corresponding to the line spectrum frequency parameter is in C pitch_q The probability distribution P of each codebook vector j , j = 1...N_C; P j The probability distribution of the pitch period parameter corresponding to each line spectrum frequency parameter in the line spectrum frequency parameter classification codebook is specifically calculated as the ratio of the number of occurrences of each pitch period to the total number of occurrences of all pitch periods under the classification mode.

[0071] As an optional implementation, in the quantization process, the line spectrum frequency adopts the weighted Euclidean distance, the weight coefficient is calculated with reference to the G.729 speech coding standard, and the fundamental pitch period adopts the Euclidean distance.

[0072] (4) Calculate the KL divergence value of the probability distribution of the pitch period parameter corresponding to each pair of line spectrum frequency parameter quantization indexes

[0073] The KL divergence value is:

[0074]

[0075] Among them, p and q are the probability distributions of the fundamental frequency period parameters corresponding to a pair of line spectrum frequencies.

[0076] (5) Merge a pair of line spectrum frequencies with the smallest KL divergence in the initial line spectrum frequency parameter classification codebook to generate a new line spectrum frequency parameter classification codebook, and at this time the codebook size N_C = N_C-1;

[0077] If the updated codebook size N_C>N_P, set i=i+1 and return to step (3); otherwise, proceed to step (6).

[0078] (6) Until the updated codebook size is no larger than N_P, the final line spectrum frequency parameter classification codebook is obtained. Named C t_lsf ; At the same time, the training speech set is used to obtain the pitch period parameter quantization codebook under each classification mode

[0079] At this point, the construction of the line spectrum frequency parameter quantization codebook, the pitch period parameter quantization codebook and the line spectrum frequency parameter classification codebook is completed.

[0080] In this embodiment, based on the obtained various codebooks, the steps of multi-mode quantization of the pitch period vector are as follows:

[0081] (1) The sampled speech signal samples are divided into frames in time sequence.

[0082] In this embodiment, the speech signal is sampled at a frequency of 8 kHz, and the power frequency interference is removed by high-pass filtering to obtain speech signal samples, which are then divided into frames in time sequence.

[0083] As an optional implementation, every 20 ms, that is, 160 speech signal samples constitute a frame, but the present invention is not limited thereto.

[0084] (2) Line spectrum frequency parameters and pitch period parameters are extracted for each frame of speech. The line spectrum frequency parameters and pitch period parameters of multiple frames of speech form a line spectrum frequency vector lsf and a pitch period vector pitch.

[0085] (3) Using the line spectrum frequency parameter to quantize the codebook C lsf_q Quantize the line spectrum frequency vector lsf, obtain its quantization index index_lsf and the quantized line spectrum frequency parameters

[0086] (4) Classification of codebook C using line spectrum frequency parameters t_lsf Quantification Get its quantization index index_lsf_pitch.

[0087] (5) Select the pitch period parameter quantization codebook according to the quantization index index_lsf_pitch Perform vector quantization on the pitch period vector pitch to obtain its quantization index index_pitch;

[0088] The quantization index index_lsf of the line spectrum frequency parameter and the quantization index index_pitch of the pitch period parameter are encoded and sent to the receiving end for decoding at the receiving end.

[0089] (6) During decoding, similar to the encoding process, the receiving end searches the corresponding quantization codebook according to the quantization index index_lsf of the received line spectrum frequency parameter to obtain the inverse quantization value of the line spectrum frequency parameter.

[0090] (7) Use the line spectrum frequency parameter classification codebook to quantize the dequantized value again Get its quantization index index_lsf_pitch.

[0091] (8) Select the quantization codebook of the pitch period vector according to the quantization index index_lsf_pitch in step (7) The inverse quantization value of the pitch period parameter is obtained according to the received quantization index index_pitch of the pitch period parameter The above data are fed together into a decoder to synthesize speech.

[0092] As an optional implementation, the decoder adopts a mixed excitation linear prediction (MELP) speech synthesis method, but is not limited thereto.

[0093] Example 2

[0094] This embodiment provides a multi-mode quantization system for pitch period vector based on vocal tract information clustering, including:

[0095] An initial module is configured to construct a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization initial codebook and a line spectrum frequency parameter classification initial codebook according to a training speech set;

[0096] The initial quantization module is configured to quantize the line spectrum frequency vector and the pitch period vector of the training speech set using the line spectrum frequency parameter quantization codebook and the pitch period parameter quantization initial codebook respectively, and obtain the quantization index of the line spectrum frequency parameter according to the line spectrum frequency parameter classification initial codebook for the quantized line spectrum frequency parameter;

[0097] A probability distribution determination module is configured to obtain a pitch period parameter corresponding to a line spectrum frequency parameter under each quantization index, and determine a probability distribution of the corresponding pitch period parameter on an initial codebook for quantization of the pitch period parameter;

[0098] A codebook updating module is configured to update an initial codebook for line spectrum frequency parameter classification according to a probability distribution until a size of the updated codebook is no greater than a set classification threshold, thereby obtaining a line spectrum frequency parameter classification codebook, and obtaining a pitch period parameter quantization codebook under each classification mode according to the line spectrum frequency parameter classification codebook;

[0099] The quantization module is configured to extract the line spectrum frequency vector and the fundamental frequency period vector from the sampled speech signal sample points, quantize the line spectrum frequency vector using the line spectrum frequency parameter quantization codebook, and re-quantize the quantized line spectrum frequency parameters using the line spectrum frequency parameter classification codebook to obtain a quantization index, select the fundamental frequency period parameter quantization codebook according to the quantization index, and quantize the fundamental frequency period vector for realizing speech synthesis.

[0100] It should be noted that the above modules correspond to the steps described in Example 1, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above Example 1. It should be noted that the above modules, as part of the system, can be executed in a computer system such as a set of computer executable instructions.

[0101] In further embodiments, there is also provided:

[0102] An electronic device includes a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method described in Embodiment 1 is performed. For the sake of brevity, it will not be described in detail here.

[0103] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0104] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0105] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the method described in Example 1 is completed.

[0106] The method in Example 1 can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it is not described in detail here.

[0107] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in conjunction with this embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0108] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A multi-mode quantization method for pitch period vector based on vocal tract information clustering, characterized in that: include: According to the training speech set, a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization initial codebook and a line spectrum frequency parameter classification initial codebook are respectively constructed; The line spectrum frequency vector and the pitch period vector of the training speech set are quantized using a line spectrum frequency parameter quantization codebook and a pitch period parameter quantization initial codebook respectively, and the quantized line spectrum frequency parameter is classified according to the line spectrum frequency parameter initial codebook to obtain a quantization index of the line spectrum frequency parameter; Obtaining the pitch period parameter corresponding to the line spectrum frequency parameter under each quantization index, and determining the probability distribution of the corresponding pitch period parameter on the pitch period parameter quantization initial codebook; An initial codebook for line spectrum frequency parameter classification is updated according to the probability distribution until the size of the updated codebook is no greater than the set classification threshold, thereby obtaining a line spectrum frequency parameter classification codebook, and a pitch period parameter quantization codebook under each classification mode is obtained according to the line spectrum frequency parameter classification codebook; Extracting a line spectrum frequency vector and a pitch period vector from the sampled speech signal sample points, quantizing the line spectrum frequency vector using a line spectrum frequency parameter quantization codebook, and re-quantizing the quantized line spectrum frequency parameters using a line spectrum frequency parameter classification codebook, and obtaining a quantization index, selecting a pitch period parameter quantization codebook according to the quantization index, and quantizing the pitch period vector for realizing speech synthesis; The process of updating the initial codebook for line spectrum frequency vector classification according to the probability distribution is as follows: calculating the KL divergence value of the probability distribution of the fundamental frequency period parameter corresponding to a pair of line spectrum frequency parameters, determining a pair of line spectrum frequency parameters with the smallest KL divergence value, and merging the pair of line spectrum frequency parameters to obtain a new line spectrum frequency parameter classification codebook, and the codebook size is reduced by one, and the new line spectrum frequency parameter classification codebook is used for re-quantization until the codebook size is no greater than the set classification threshold, and the cycle ends; The probability distribution is the ratio of the number of occurrences of each pitch period parameter to the total number of occurrences of all pitch period parameters.

2. The multi-mode quantization method for pitch period vector based on vocal tract information clustering according to claim 1, characterized in that: The size of the initial codebook for line spectrum frequency parameter classification is larger than the set classification threshold, and the updated line spectrum frequency vector classification codebook is not larger than the set classification threshold.

3. The multi-mode quantization method of pitch period vector based on vocal tract information clustering according to claim 1, characterized in that: Extract the line spectrum frequency vector and pitch period vector from the sampled speech signal sample points, use the line spectrum frequency parameter quantization codebook to quantize the line spectrum frequency vector, and obtain the quantization index and quantized line spectrum frequency parameters; The quantized line spectrum frequency parameters are quantized again using the line spectrum frequency parameter classification codebook to obtain the quantization index ; According to the quantitative index Select the pitch period parameter quantization codebook to perform vector quantization on the pitch period vector to obtain the quantization index ; Quantize the index and quantitative index The data is encoded and transmitted to the decoding end for speech synthesis at the decoding end.

4. The multi-mode quantization method for pitch period vector based on vocal tract information clustering as claimed in claim 3, characterized in that: The process of speech synthesis at the decoding end includes: According to the quantitative index Obtain the inverse quantized value of the line spectrum frequency parameter; The dequantized value is quantized again using the line spectrum frequency parameter classification codebook to obtain a quantization index of the dequantized value; Selecting a quantization codebook of a pitch period vector according to a quantization index of an inverse quantization value; According to the quantitative index Obtaining the inverse quantized value of the pitch period parameter; A decoder is used to synthesize speech based on the above data.

5. The multi-mode quantization method of pitch period vector based on vocal tract information clustering according to claim 1, characterized in that: After dividing the sampled speech signal into frames in time sequence, the line spectrum frequency parameters and pitch period parameters are extracted for each frame of speech. The line spectrum frequency parameters and pitch period parameters of all frames of speech form a line spectrum frequency vector and a pitch period vector.

6. A multi-mode quantization system of pitch period vector based on vocal tract information clustering, characterized in that: The method for multi-mode quantization of pitch period vector based on vocal tract information clustering according to any one of claims 1 to 5 comprises: An initial module is configured to construct a line spectrum frequency parameter quantization codebook, a pitch period parameter quantization initial codebook and a line spectrum frequency parameter classification initial codebook according to a training speech set; The initial quantization module is configured to quantize the line spectrum frequency vector and the pitch period vector of the training speech set using the line spectrum frequency parameter quantization codebook and the pitch period parameter quantization initial codebook respectively, and obtain the quantization index of the line spectrum frequency parameter according to the line spectrum frequency parameter classification initial codebook for the quantized line spectrum frequency parameter; A probability distribution determination module is configured to obtain a pitch period parameter corresponding to a line spectrum frequency parameter under each quantization index, and determine a probability distribution of the corresponding pitch period parameter on an initial codebook for quantization of the pitch period parameter; A codebook updating module is configured to update an initial codebook for line spectrum frequency parameter classification according to a probability distribution until a size of the updated codebook is no greater than a set classification threshold, thereby obtaining a line spectrum frequency parameter classification codebook, and obtaining a pitch period parameter quantization codebook under each classification mode according to the line spectrum frequency parameter classification codebook; The quantization module is configured to extract the line spectrum frequency vector and the fundamental frequency period vector from the sampled speech signal sample points, quantize the line spectrum frequency vector using the line spectrum frequency parameter quantization codebook, and re-quantize the quantized line spectrum frequency parameters using the line spectrum frequency parameter classification codebook to obtain a quantization index, select the fundamental frequency period parameter quantization codebook according to the quantization index, and quantize the fundamental frequency period vector for realizing speech synthesis.

7. An electronic device, characterized in that: The method comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method according to any one of claims 1 to 5 is completed.

8. A computer-readable storage medium, characterized in that: Used to store computer instructions, which, when executed by a processor, complete the method described in any one of claims 1 to 5.