Vocoder parameter error concealment method and system based on taboo transfer matrix
By constructing the tabu transfer matrix of vocoder parameters and bit inversion technology, the problem of low-rate vocoder error concealment is solved, and the effect of improving speech quality without increasing error detection bits is achieved.
Patent Information
- Application Number
- CN202210616043.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-01
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-06-01
AI Technical Summary
When a low-rate vocoder makes bit errors in a harsh environment, existing error detection codes and recent historical frame parameter replacement technologies require additional bit streams or cause voice quality to degrade, and cannot effectively cover up bit errors.
A tabu transfer matrix based on the inter-frame correlation of vocoder parameters is constructed. Through error detection and bit inversion technology, the vector with the largest transition probability is found from the quantized codebook for parameter replacement to achieve error concealment.
Without adding error detection bits, the voice quality after the error channel is improved, the bit errors are effectively covered up, and the quality of the synthesized voice is improved.
Smart Images

Figure CN114913862B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of speech signal processing, and in particular relates to a method and system for concealing vocoder parameter errors based on a taboo transfer matrix. 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 coding rate of the vocoder is often lower than 600bps. The lower the coding rate of the vocoder, the worse the robustness to channel errors. When errors occur, the voice quality will be severely degraded. In practical applications, error correction codes or error detection codes are often used to improve the transmission quality of the vocoder in error channels. In the technology of using error detection codes, if errors are found in channel transmission at the receiving end, resulting in errors in the vocoder parameters, the same parameters of the previous nearest neighbor frame are often used instead to cover up the errors.
[0004] The inventors have discovered that the error concealment technique of using error detection codes and the most recent historical frame parameters to replace similar parameters of the current frame requires, on the one hand, the addition of additional bit streams for error detection, but in many situations where low-rate vocoders are used, there are often no extra bits available; on the other hand, replacing the current frame parameters with parameters of past historical frames will produce large parameter errors, which will still have a significant impact on the quality of synthesized speech. Summary of the invention
[0005] In order to solve at least one technical problem existing in the above-mentioned background technology, the present invention provides a method and system for concealing error of vocoder parameters based on taboo transfer matrix, which makes full use of the inter-frame correlation of vocoder parameters without adding additional error detection bits, constructs the taboo transfer matrix of relevant parameters, and the taboo transfer matrix mainly represents the transition probability between different modes of vocoder parameters, thereby improving the quality of synthesized speech after the vocoder passes through the error channel.
[0006] In order to achieve the above object, the present invention adopts the following technical solution:
[0007] A first aspect of the present invention provides a method for concealing vocoder parameter errors based on a taboo transfer matrix, comprising the following steps:
[0008] Based on the inter-frame correlation of each parameter of the vocoder, the taboo transfer matrix of each parameter of the vocoder is constructed;
[0009] The taboo transfer matrix is used for error detection. The parameters of the current frame of the vocoder are combined with the similar parameters of the previous frame to form transfer pairs. The transfer pair pattern is found from the taboo transfer matrix. If the pattern is a taboo transfer pattern, the pattern with the highest transfer probability is found from the taboo transfer matrix. The corresponding current frame index is used as the correct index to find the correct parameters. Otherwise, the synthesized speech is decoded normally.
[0010] A second aspect of the present invention provides a vocoder parameter error concealment system based on a taboo transfer matrix, comprising:
[0011] The taboo transfer matrix construction module is configured to: construct a taboo transfer matrix of each parameter of the vocoder based on the inter-frame correlation of each parameter of the vocoder;
[0012] The error concealment module is configured to: use the taboo transfer matrix to perform error detection, combine the parameters of the current frame of the vocoder with the similar parameters of the previous frame to form a transfer pair, and search the transfer pair pattern from the taboo transfer matrix. If the pattern is a taboo transfer pattern, then search the pattern with the highest transfer probability from the taboo transfer matrix, and use the current frame index corresponding to it as the correct index to find the correct parameters, otherwise decode the synthesized speech normally.
[0013] A third aspect of the present invention provides a computer-readable storage medium.
[0014] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the above-mentioned method for concealing vocoder parameters errors based on taboo transfer matrix.
[0015] A fourth aspect of the present invention provides a computer device.
[0016] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the above-mentioned method for concealing vocoder parameters errors based on taboo transfer matrix are implemented.
[0017] Compared with the prior art, the present invention has the following beneficial effects:
[0018] The present invention makes full use of the inter-frame correlation of vocoder parameters without adding additional error detection bits, constructs a taboo transfer matrix of vocoder related parameters, uses the taboo transfer matrix to perform error detection at the receiving end, and when a taboo mode is found and it is determined that a parameter has an error, uses the bit reversal technology to find a vector with the largest transfer probability from a quantization code book to replace the error parameter, thereby effectively concealing the error.
[0019] 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
[0020] 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.
[0021] Figure 1 It is a flow chart of the traditional error concealment technique of vocoder parameters based on error detection code;
[0022] Figure 2 It is a flow chart of the vocoder parameter error concealment technology based on the taboo transfer matrix of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0024] It should be noted that the following detailed descriptions are all illustrative and 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.
[0025] 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 when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0026] Terminology explanation:
[0027] Vocoder: An ultra-low rate speech compression coding technology based on parameter coding, such as hybrid excitation linear prediction coding technology. This type of speech compression coding technology is also called a vocoder.
[0028] Embodiment 1
[0029] Traditional error concealment methods for vocoder parameters based on error detection codes are as follows: Figure 1 As shown, the following steps are included:
[0030] Step 1: The transmitter divides the input speech signal samples into frames in time sequence;
[0031] Step 2: Based on a speech signal generation model (such as a hybrid excitation linear prediction coding model, but not limited to this), extract parameters from each frame of speech, and then quantize and encode the parameters of each frame (or a super frame consisting of multiple speech frames);
[0032] Step 3: The bit stream after parameter encoding is corrected using additional bits and then sent;
[0033] Step 4: The receiving end performs error detection on the received bit stream; if there is no error, the parameters of each frame (or super frame composed of multiple speech frames) are obtained by inverse quantization; if there is an error, the relevant parameters of the previous nearest neighbor frame (or super frame) are used for replacement;
[0034] Step 5: According to the current frame (or super frame) parameters obtained in step 4, based on the speech signal generation model, the current frame (or super frame) speech is synthesized.
[0035] The above-mentioned traditional method uses error concealment technology by using error detection code and the parameters of the most recent historical frame to replace the same parameters of the current frame. The problems are: on the one hand, additional bit streams need to be added for error detection, but in many cases where low-rate vocoders are used, there are often no extra bits available; on the other hand, replacing the current frame parameters with the parameters of the past historical frames will produce large parameter errors, which still have a great impact on the quality of the synthesized speech.
[0036] Therefore, the main purpose of the present invention is to make full use of the inter-frame correlation of the vocoder parameters without adding extra error detection bits, and construct the taboo transfer matrix of the relevant parameters. The taboo transfer matrix mainly represents the transition probability between different modes of the vocoder parameters. Since the adjacent frame parameters of the vocoder have a strong correlation, the transition probability between the inter-frame parameters often presents a sparse distribution, and many mode transitions rarely occur or cannot occur, so the taboo transfer matrix is often a sparse matrix. At the receiving end, the taboo transfer matrix is used to perform error detection. When the taboo transfer mode is found to occur, it is determined that the parameter has an error. Then, the bit reversal technology is used to find the maximum likelihood replacement vector of the current frame parameter from the quantization code book of the changed parameter, so as to effectively cover the error and effectively improve the quality of the synthesized speech when the error occurs.
[0037] like Figure 2 As shown, this embodiment provides a method for concealing vocoder parameter errors based on a taboo transfer matrix, comprising the following steps:
[0038] Based on the inter-frame correlation of each parameter of the vocoder, the taboo transfer matrix of each parameter of the vocoder is constructed;
[0039] The taboo transfer matrix is used for error detection. The parameters of the current frame of the vocoder are combined with the similar parameters of the previous frame to form transfer pairs. The transfer pair pattern is found from the taboo transfer matrix. If the pattern is a taboo transfer pattern, the pattern with the highest transfer probability is found from the taboo transfer matrix. The corresponding current frame index is used as the correct index to find the correct parameters. Otherwise, the synthesized speech is decoded normally.
[0040] As one or more embodiments, constructing a taboo transfer matrix of each parameter of the vocoder based on the inter-frame correlation of each parameter of the vocoder includes:
[0041] Generating a quantization codebook for each parameter according to the quantization bit allocation of each parameter of the vocoder;
[0042] Based on the quantization codebook of each parameter, the taboo transfer matrix of each parameter is generated using the training speech set.
[0043] The parameters of the vocoder include line spectrum frequency, fundamental pitch period, energy, bandpass voicing, etc.
[0044] In order to more clearly understand the technical solution of the present invention, this embodiment is described in detail by taking the pitch period parameter vector as an example:
[0045] Take the pitch period parameter vector as an example for detailed description:
[0046] S101: using a training speech set, generating a quantization codebook for each parameter according to the quantization bit allocation of each parameter;
[0047] Taking the pitch period parameter as an example, the pitch period parameter of multiple frames of speech is extracted according to the method described in the standard of the mixed excitation linear prediction (MELP) speech coding algorithm, and the pitch period parameter of multiple frames of speech is formed into a vector. Assuming that the number of quantization bits of the pitch period vector is 8, the quantization codebook size K = 256, where the codebook is obtained based on all training vector sets. The method of obtaining the codebook based on the training vector set can refer to the LBG method described in "Digital Processing of Speech Signals" by Yang Xingjun et al., P92-95;
[0048] S102: using the quantization codebook of each parameter obtained in step S101 and the training speech set, generating the taboo transfer matrix of each parameter, and storing it at the decoder receiving end;
[0049] Taking the pitch period parameter vector as an example (but not limited to this, applicable to line spectrum frequency parameters, energy parameters, bandpass voicing parameters, etc.), using the training speech set, a taboo transfer matrix of the pitch period parameter vector is constructed:
[0050]
[0051] Among them, N is the number of columns of the transfer matrix, M is the number of columns of the transfer matrix, pti,j represents the probability that the quantization index of the pitch period parameter in the previous frame of the training set is i and the quantization index of the pitch period parameter in the current frame is j. If p_t i,j < T, then set p_t i,j = 0, where T is an empirically statistical value. Thus, a tabu transition matrix for the pitch period parameter is constructed;
[0052] For example, in this embodiment, the matrix size can be 256 * 256.
[0053] S103: The sending end frames the input speech signal samples in chronological order;
[0054] In the process of framing the input speech signal samples in chronological order, the speech samples are sampled at a frequency of 8 kHz and have been high-pass filtered to remove power frequency interference. Every 20 ms, that is, 160 speech samples form a frame, but it is not limited to this.
[0055] S104: Based on the speech signal generation model, extract the parameters of each frame of speech, then quantize and encode the parameters of each frame (or superframe composed of multiple speech frames), and send the encoded bitstream to the receiving end;
[0056] Still taking the pitch period parameter as an example, it is extracted according to the method described in the standard of the Mixed Excitation Linear Prediction (MELP) speech coding algorithm, quantized and encoded using the quantization codebook obtained in step S101. Assume its quantization index is Index_Cur_Enc, and the quantization index is converted into a bitstream by binary coding;
[0057] S105: The receiving end performs inverse quantization on the parameters using the received bitstream;
[0058] Assume that after the decoding end parses the bitstream, the quantization index of the pitch period parameter vector of the current frame is Index_Cur_Dec;
[0059] S106: For each parameter of the current frame of the vocoder, form a transfer pair with the same type of parameter of the previous frame (superframe), and check whether this pattern is a tabu transfer pattern from the tabu transfer matrix;
[0060] Form a transfer pattern (Index_Last_Dec, Index_Cur_Dec) by combining the quantization index Index_Cur_Dec obtained in S105 with the quantization index Index_Last_Dec of the previous frame, and check the value of p_t Index_Last_Dec,Index_Cur_Dec from the tabu transfer matrix of the pitch period parameter;
[0061] S107: If it is a taboo transfer mode, the quantization index of the current frame parameter is bit-inverted to form a candidate index set, and the candidate index set is formed with the same parameters of the previous frame (superframe) to form a transfer pair, and the mode with the highest transfer probability is found from the taboo transfer matrix, and the current frame index corresponding to the mode is used as the correct index, and the correct parameters are obtained after inverse quantization, and sent to the decoder for synthesizing speech;
[0062] If pt Index_Last_Dec,Index_Cur_Dec = 0, it means that the current transfer mode is the taboo mode, and the 8 quantization bits of Index_Cur_Dec are inverted one by one to form a candidate index set C = {Index_Cur_Dec_C 1 ,...,Index_Cur_Dec_C 8}, find pt from the taboo transfer matrix of the pitch period parameter vector Index_Last_Dec,Index_Cur_Dec_Ci The value of the transition mode with the highest transition probability is MAX As the correct quantization index of the pitch period parameter vector of the current frame, the correct pitch period parameter vector is obtained after dequantization, and sent to the decoding end, and speech synthesis is performed according to the mixed excitation linear prediction (MELP) speech coding algorithm standard;
[0063] At the same time, let Index_Last_Dec = Index_Cur_Dec_C MAX ;
[0064] S108: If it is not a taboo transfer mode, directly send it to the decoding end for synthesized speech.
[0065] If pt Index_Last_Dec,Index_Cur_Dec >0, the pitch period parameter obtained after inverse quantization is sent to the decoder, and speech synthesis is performed according to the mixed excitation linear prediction (MELP) speech coding algorithm standard; at the same time, Index_Last_Dec = Index_Cur_Dec;
[0066] S109: Go to step S103 and repeat the above steps until the speech signal processing is completed.
[0067] The advantage of the above scheme is that it makes full use of the inter-frame correlation of the vocoder parameters, constructs the taboo transfer matrix of the vocoder related parameters, and uses the taboo transfer matrix for error detection at the receiving end. When the taboo mode is found and it is judged that the parameter has an error, the bit reversal technology is used to find the vector with the largest transfer probability from the quantization code book to replace the error parameter, thereby effectively concealing the error.
[0068] Embodiment 2
[0069] The present invention provides a vocoder parameter error concealment system based on a taboo transfer matrix, including:
[0070] The taboo transfer matrix construction module is configured to: construct a taboo transfer matrix of each parameter of the vocoder based on the inter-frame correlation of each parameter of the vocoder;
[0071] The error concealment module is configured to: use the taboo transfer matrix to perform error detection, combine the parameters of the current frame of the vocoder with the similar parameters of the previous frame to form a transfer pair, and search the transfer pair pattern from the taboo transfer matrix. If the pattern is a taboo transfer pattern, then search the pattern with the highest transfer probability from the taboo transfer matrix, and use the current frame index corresponding to it as the correct index to find the correct parameters, otherwise decode the synthesized speech normally.
[0072] Embodiment 3
[0073] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the above-mentioned method for vocoder parameter error concealment based on taboo transfer matrix are implemented.
[0074] Embodiment 4
[0075] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the above-mentioned method for vocoder parameter error concealment based on taboo transfer matrix are implemented.
[0076] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0077] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0080] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0081] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. Vocoder parameter error concealment method based on taboo transfer matrix, It is characterized in that The steps include: Based on the inter-frame correlation of each parameter of the vocoder, the taboo transfer matrix of each parameter of the vocoder is constructed; The taboo transfer matrix is used for error detection. The parameters of the current frame of the vocoder are combined with the similar parameters of the previous frame to form transfer pairs. The transfer pair pattern is found from the taboo transfer matrix. If the pattern is a taboo transfer pattern, the pattern with the highest transfer probability is found from the taboo transfer matrix. The corresponding current frame index is used as the correct index to find the correct parameters. Otherwise, the synthesized speech is decoded normally.
2. The method for concealing vocoder parameter errors based on taboo transfer matrix according to claim 1, It is characterized in that The step of constructing a taboo transfer matrix of each parameter of the vocoder based on the inter-frame correlation of each parameter of the vocoder comprises: Generating a quantization codebook for each parameter according to the quantization bit allocation of each parameter of the vocoder; Based on the quantization codebook of each parameter, the taboo transfer matrix of each parameter is generated using the training speech set.
3. The method for concealing vocoder parameter errors based on taboo transfer matrix according to claim 2, wherein the taboo transfer matrix of each parameter is generated based on the quantization codebook of each parameter and the training speech set. include: The probability pt that the previous frame parameter quantization index in the transfer matrix is i and the current frame parameter quantization index is j i,j Compared with the empirical statistical value, if pt i,j If it is less than the empirical statistical value, let pt i,j =0.
4. The method for concealing vocoder parameter errors based on taboo transfer matrix according to claim 1, It is characterized in that Before using the taboo transfer matrix for error detection, it includes: Divide the speech signal samples into frames in time sequence to obtain speech frames or superframes; Based on the speech signal generation model, parameters of the speech frame or superframe are extracted, and the parameters are quantized and encoded according to the quantization codebook.
5. The method for concealing vocoder parameter errors based on taboo transfer matrix according to claim 4, It is characterized in that After the parameters are quantized and encoded according to the quantization codebook, the parameters are dequantized using the encoded bit stream to obtain the quantization index of the current frame parameter.
6. The method for concealing vocoder parameter errors based on taboo transfer matrix according to claim 1, It is characterized in that The expression of the taboo transfer matrix is: Where N is the number of columns in the transfer matrix, M is the number of columns in the transfer matrix, pt i,j Represents the probability that the parameter quantization index of the previous frame in the training set is i and the parameter quantization index of the current frame is j.
7. The method for concealing vocoder parameter errors based on taboo transfer matrix according to claim 1, It is characterized in that The vocoder parameters include line spectrum frequency, pitch period, energy and bandpass voicing.
8. Vocoder parameter error concealment system based on taboo transfer matrix, It is characterized in that include: The taboo transfer matrix construction module is configured to: construct a taboo transfer matrix of each parameter of the vocoder based on the inter-frame correlation of each parameter of the vocoder; The error concealment module is configured to: use the taboo transfer matrix to perform error detection, combine the parameters of the current frame of the vocoder with the similar parameters of the previous frame to form a transfer pair, and search the transfer pair pattern from the taboo transfer matrix. If the pattern is a taboo transfer pattern, then search the pattern with the highest transfer probability from the taboo transfer matrix, and use the current frame index corresponding to it as the correct index to find the correct parameters, otherwise decode the synthesized speech normally.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the method for concealing vocoder parameters errors based on a taboo transfer matrix as described in any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps in the method for vocoder parameter error concealment based on taboo transfer matrix according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Surround sound error code repairing method in mobile network environment
CN110534120A
Vocoder sub-band unvoiced and voiced sound judgment method and system
CN110580920A
Voice conversion method and system adopting cyclic frame unit selection
CN114203192A
High performance error control coding in channel encoders and decoders
US5666370A
KR20190019460A
