Audio signal coding method and apparatus, and audio signal decoding method and apparatus

By suppressing and inverting the low-frequency residual signal of the audio signal, combining the high-frequency residual signal, encoded data is generated, which solves the problems of missing high-frequency signals and low energy, and improves the quality of the audio signal.

WO2024094006A9PCT designated stage expired Publication Date: 2024-11-21DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/128523
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-01
Filing Date
2023-10-31
Publication Date
2024-11-21

AI Technical Summary

Technical Problem

In the existing audio signal processing technology, the spectrum of high-frequency signals generally folds the low-frequency signals, resulting in the recovered high-frequency signals lacking harmonic components and low energy, and the overall audio frame hearing is poor.

Method used

By acquiring the high-frequency residual signal and low-frequency residual signal of the audio frame, suppressing the frequency components within the target frequency range in the low-frequency residual signal, performing spectrum inversion, obtaining the high-frequency energy gain, and generating encoded data based on these signals, Ensure the integrity and energy recovery of high-frequency signals.

Benefits of technology

It effectively avoids the problem of lack of harmonic components and low energy during encoding and decoding of high-frequency signals, and improves the quality and user experience of audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023128523_21112024_PF_FP_ABST
    Figure CN2023128523_21112024_PF_FP_ABST
Patent Text Reader

Abstract

An audio signal coding method and apparatus, and an audio signal decoding method and apparatus. The audio signal coding method comprises: acquiring a high-frequency residual signal and a low-frequency residual signal of a target audio frame (S101); suppressing a frequency component within a target frequency range in the low-frequency residual signal, so as to acquire a coding suppression signal (S102), wherein the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal; performing spectral inversion on the coding suppression signal, so as to acquire a spectral inversion signal (S103); acquiring a high-frequency energy gain of a target audio signal according to the spectral inversion signal and the high-frequency residual signal (S104); and generating coded data of the target audio frame according to the high-frequency energy gain (S105).
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for encoding and decoding audio signals

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 1, 2022, with application number 202211357728.0 and invention name “A coding, coding method and device for audio signals”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of data processing technology, and in particular to a method and device for encoding and decoding an audio signal. Background Art

[0003] When processing audio signals, bandwidth extension algorithms can use most of the bit rate to encode low-frequency signals, to which the human ear is more sensitive, within the bit rate limit. High-frequency signals, to which the human ear pays less attention, are transmitted using a lower bit rate, or the decoding end can simply restore the high-frequency signal based on the decoded low-frequency signal, thereby improving the overall quality of the encoded speech at a fixed bit rate.

[0004] In the prior art, when processing audio signals, the spectrum of the high-frequency signal is generally generated by folding the spectrum of the low-frequency signal. Therefore, the recovered audio frame signal will lack some harmonic components. In order to suppress the fundamental frequency component folded to the high frequency, the high-frequency energy is attenuated when restoring the high-frequency signal energy at the decoding end, resulting in low high-frequency energy after recovery and poor listening quality of the overall audio frame.

[0005] Summary of the Invention

[0006] In view of this, embodiments of the present application provide an audio signal encoding and decoding method and apparatus for improving the audio quality after audio signal processing.

[0007] In order to achieve the above objectives, the embodiments of the present application provide the following technical solutions:

[0008] In a first aspect, an embodiment of the present application provides a method for encoding an audio signal, comprising:

[0009] Obtaining a high-frequency residual signal and a low-frequency residual signal of a target audio frame;

[0010] Suppressing frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppressed signal, wherein the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal;

[0011] performing spectrum inversion on the coded suppression signal to obtain a spectrum inverted signal;

[0012] Obtaining a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal;

[0013] Encoded data of the target audio frame is generated according to the high frequency energy gain.

[0014] As an optional implementation of the embodiment of the present application, suppressing frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppression signal includes:

[0015] Pre-emphasis processing is performed on the low-frequency residual signal based on a high-pass filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a coded suppression signal.

[0016] As an optional implementation of the embodiment of the present application, suppressing frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppression signal includes:

[0017] The low-frequency residual signal is filtered based on a shelving filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a coded suppression signal.

[0018] As an optional implementation of the embodiment of the present application, suppressing frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppression signal includes:

[0019] Performing notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a coded notch signal;

[0020] Whitening is performed on the coded notch signal to obtain the coded suppression signal.

[0021] As an optional implementation of the embodiment of the present application, performing spectrum inversion on the coding suppression signal to obtain a spectrum inversion signal includes:

[0022] The amplitudes of sampling points with odd indexes in the coding suppression signal are modified to opposite values ​​to obtain a spectrum inversion signal.

[0023] As an optional implementation of the embodiment of the present application, obtaining the high-frequency residual signal and the low-frequency residual signal of the target audio signal includes:

[0024] Dividing the target audio frame into a low-frequency signal and a high-frequency signal;

[0025] Performing linear prediction analysis on the high frequency signal to obtain a first linear prediction LPC coefficient;

[0026] Converting the first linear prediction coefficients into line spectrum pair (LSP) coefficients;

[0027] Restoring the line spectrum pair coefficients into second linear prediction coefficients;

[0028] Dividing the high-frequency signal into a preset number of sub-signals on average;

[0029] performing filtering processing on each sub-signal based on the second linear prediction coefficient to obtain a residual signal of each sub-signal to obtain the high-frequency residual signal;

[0030] The low-frequency signal is encoded to obtain low-frequency encoding information and the low-frequency residual signal.

[0031] As an optional implementation of the embodiment of the present application, generating the encoded data of the target audio frame according to the high-frequency energy gain includes:

[0032] The low-frequency coding information, the line spectrum pair coefficients, and the high-frequency energy gain are encoded to generate encoded data of the target audio frame.

[0033] In a second aspect, an embodiment of the present application provides a method for decoding an audio signal, comprising:

[0034] Parse the encoded data of the target audio frame to obtain low-frequency encoding information;

[0035] Decoding the low-frequency coded information to obtain a low-frequency signal and a low-frequency residual signal;

[0036] Suppressing frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal, wherein the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal;

[0037] Performing spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal;

[0038] Reconstructing a signal according to the low-frequency excitation signal to obtain a high-frequency signal;

[0039] An audio signal of the target audio frame is generated according to the low-frequency signal and the high-frequency signal.

[0040] As an optional implementation of the embodiment of the present application, suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppression signal includes:

[0041] performing pre-emphasis processing on the low-frequency residual signal based on a high-pass filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a decoded suppressed signal;

[0042] As an optional implementation of the embodiment of the present application, suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppression signal includes:

[0043] The low-frequency residual signal is filtered based on a shelving filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a decoded suppression signal.

[0044] As an optional implementation of the embodiment of the present application, suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppression signal includes:

[0045] Performing notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a decoded notch signal;

[0046] Whitening is performed on the decoded notch signal to obtain the decoded suppression signal.

[0047] As an optional implementation of the embodiment of the present application, performing spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal includes:

[0048] The amplitudes of sampling points with odd indexes in the decoded suppression signal are modified to opposite values ​​to obtain a spectrum inversion signal.

[0049] As an optional implementation of the embodiment of the present application, the encoded data of the target audio frame further includes: LSP coefficients and high-frequency energy gains;

[0050] Reconstructing a signal according to the low-frequency excitation signal to obtain a high-frequency signal includes:

[0051] Signal reconstruction is performed according to the low-frequency excitation signal, the LSP coefficient, and the high-frequency energy gain to obtain the high-frequency signal.

[0052] As an optional implementation of the embodiment of the present application, reconstructing the signal according to the low-frequency excitation signal, the LSP coefficient, and the high-frequency energy gain to obtain a high-frequency signal includes:

[0053] Obtaining energy gains corresponding to each sub-signal in the high-frequency energy gain;

[0054] Obtaining a residual signal of each sub-signal according to the low-frequency excitation signal and the energy gain of each sub-signal;

[0055] Restoring the LSP coefficients to LPC coefficients;

[0056] Obtaining each prediction sub-signal according to the LPC coefficient;

[0057] Generate each sub-signal according to each predicted sub-signal and a residual signal of each sub-signal;

[0058] The high-frequency signal is generated according to each sub-signal.

[0059] In a third aspect, an embodiment of the present application provides an audio signal encoding device, including:

[0060] an acquisition unit, configured to acquire a high-frequency residual signal and a low-frequency residual signal of a target audio frame;

[0061] a suppression unit, configured to suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppression signal; wherein the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal;

[0062] an inversion unit, configured to perform spectrum inversion on the coding suppression signal to obtain a spectrum inversion signal;

[0063] a processing unit, configured to obtain a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal;

[0064] A generating unit is configured to generate encoded data of the target audio frame according to the high-frequency energy gain.

[0065] As an optional implementation of the embodiment of the present application, the suppression unit is specifically used to perform pre-emphasis processing on the low-frequency residual signal based on a high-pass filter to suppress the frequency components within the target frequency range in the low-frequency residual signal to obtain a coded suppression signal.

[0066] As an optional implementation of the embodiment of the present application, the suppression unit is specifically used to filter the low-frequency residual signal based on a slope filter to suppress the frequency components within the target frequency range in the low-frequency residual signal to obtain a coded suppression signal.

[0067] As an optional implementation of an embodiment of the present application, the suppression unit is specifically used to perform notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a coded notch signal, and to perform whitening processing on the coded notch signal to obtain the coded suppression signal.

[0068] As an optional implementation of the embodiment of the present application, the inversion unit is specifically configured to modify the amplitudes of the sampling points with odd indexes in the coding suppression signal to opposite numbers to obtain a spectrum inversion signal.

[0069] As an optional implementation of the embodiment of the present application, the acquisition unit is specifically configured to:

[0070] Dividing the target audio frame into a low-frequency signal and a high-frequency signal;

[0071] Performing linear prediction analysis on the high frequency signal to obtain a first linear prediction LPC coefficient;

[0072] Converting the first linear prediction coefficients into line spectrum pair (LSP) coefficients;

[0073] Restoring the line spectrum pair coefficients into second linear prediction coefficients;

[0074] Dividing the high-frequency signal into a preset number of sub-signals on average;

[0075] performing filtering processing on each sub-signal based on the second linear prediction coefficient to obtain a residual signal of each sub-signal to obtain the high-frequency residual signal;

[0076] The low-frequency signal is encoded to obtain low-frequency encoding information and the low-frequency residual signal.

[0077] As an optional implementation of the embodiment of the present application, the generation unit is specifically used to encode the low-frequency coding information, the line spectrum pair coefficients and the high-frequency energy gain to generate the encoded data of the target audio frame.

[0078] In a fourth aspect, an embodiment of the present application provides an audio signal decoding device, including:

[0079] An acquisition unit, parsing the coded data of the target audio frame to obtain low-frequency coding information;

[0080] a decoding unit, decoding the low-frequency coded information to obtain a low-frequency signal and a low-frequency residual signal;

[0081] a suppression unit, which suppresses frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppression signal; the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal;

[0082] an inversion unit, performing spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal;

[0083] A reconstruction unit, configured to reconstruct a signal according to the low-frequency excitation signal to obtain a high-frequency signal;

[0084] A generating unit generates an audio signal of the target audio frame according to the low-frequency signal and the high-frequency signal.

[0085] As an optional implementation of the embodiment of the present application, the suppression unit is specifically used to: perform pre-emphasis processing on the low-frequency residual signal based on a high-pass filter to suppress the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppression signal.

[0086] As an optional implementation of the embodiment of the present application, the suppression unit is specifically used to filter the low-frequency residual signal based on a slope filter to suppress the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppression signal.

[0087] As an optional implementation of an embodiment of the present application, the suppression unit is specifically used to perform notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a decoded notch signal, and to perform whitening processing on the decoded notch signal to obtain the decoded suppression signal.

[0088] As an optional implementation of the embodiment of the present application, the inversion unit is specifically configured to modify the amplitudes of the sampling points with odd indexes in the decoded suppression signal to opposite numbers to obtain a low-frequency excitation signal.

[0089] As an optional implementation of an embodiment of the present application, the encoded data of the target audio frame also includes: LSP coefficients and high-frequency energy gains, and the reconstruction unit is specifically used to reconstruct the signal based on the low-frequency excitation signal, the LSP coefficients and the high-frequency energy gain to obtain the high-frequency signal.

[0090] As an optional implementation of an embodiment of the present application, the reconstruction unit is specifically used to obtain the energy gain corresponding to each sub-signal in the high-frequency energy gain; obtain the residual signal of each sub-signal based on the energy gain of the low-frequency excitation signal and each sub-signal; restore the LSP coefficient to the LPC coefficient; obtain each predicted sub-signal based on the LPC coefficient; generate each sub-signal based on each predicted sub-signal and the residual signal of each sub-signal; and generate the high-frequency signal based on each sub-signal.

[0091] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the audio signal encoding method or the audio signal decoding method described in any of the above embodiments when executing the computer program.

[0092] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which, when the computer program is executed by a computing device, enables the computing device to implement the audio signal encoding method or audio signal decoding method described in any of the above embodiments.

[0093] In a seventh aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to implement the audio signal encoding method or audio signal decoding method described in any one of the above embodiments.

[0094] The audio signal encoding method provided in the embodiment of the present application obtains the high-frequency residual signal and the low-frequency residual signal of the target audio frame, and then suppresses the frequency components within the target frequency range in the low-frequency residual signal to obtain a coding suppression signal; performs spectrum inversion on the coding suppression signal to obtain a spectrum inversion signal; then, obtains the high-frequency energy gain of the target audio signal based on the spectrum inversion signal and the high-frequency residual signal; and finally generates the coding data of the target audio frame based on the high-frequency energy gain. The embodiment of the present application suppresses and inverts the frequency components of the obtained low-frequency residual signal, and then combines the high-frequency residual signal and the high-frequency energy gain to obtain the coding data of the target audio frame, thereby ensuring that the reconstructed high-frequency signal does not lack harmonic components and has low energy. In this way, the problem of poor audio quality when obtaining the code stream data of the target audio frame can be avoided, thereby improving the user experience. Therefore, the embodiment of the present application can improve the quality of audio during the encoding and decoding process. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0096] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0097] FIG1 is a flowchart of a method for encoding an audio signal according to an embodiment of the present application;

[0098] FIG2 is a second flowchart of the audio signal encoding method provided in an embodiment of the present application;

[0099] FIG3 is a third flowchart of the audio signal encoding method provided in an embodiment of the present application;

[0100] FIG4 is a fourth flowchart of the audio signal encoding method provided in an embodiment of the present application;

[0101] FIG5 is a hardware block diagram of an audio signal encoding device provided in an embodiment of the present application;

[0102] FIG6 is a flowchart of a method for decoding an audio signal according to an embodiment of the present application;

[0103] FIG7 is a second flowchart of the audio signal decoding method provided in an embodiment of the present application;

[0104] FIG8 is a third flowchart of the audio signal decoding method provided in an embodiment of the present application;

[0105] FIG9 is a fourth flowchart of the audio signal decoding method provided in an embodiment of the present application;

[0106] FIG10 is a hardware block diagram of an audio signal decoding device provided in an embodiment of the present application;

[0107] FIG11 is a schematic structural diagram of an audio signal encoding device provided in an embodiment of the present application;

[0108] FIG12 is a schematic structural diagram of an audio signal decoding device provided in an embodiment of the present application;

[0109] FIG13 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0110] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.

[0111] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application can also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present application, not all of the embodiments.

[0112] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way. In addition, in the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more.

[0113] An embodiment of the present application provides a method for encoding an audio signal. Referring to FIG1 , the method for encoding an audio signal includes the following steps:

[0114] S101: Acquire a high-frequency residual signal and a low-frequency residual signal of a target audio frame.

[0115] The high-frequency residual signal refers to the difference between the value of each sample point of the high-frequency signal of the audio signal and the corresponding prediction value, and the prediction value corresponding to each sample point is the product of the linear prediction coefficient (LPC) and the low-frequency signal of the historical audio signal; the low-frequency residual signal refers to the difference between the value of each sample point of the low-frequency signal of the audio signal and the corresponding prediction value, and the prediction value corresponding to each sample point is the product of the linear prediction coefficient and the low-frequency signal of the historical audio signal. The linear prediction coefficient means that the sample value of the audio signal can be approximated by a linear combination of the sample value of the historical audio data multiplied by the coefficient and the sum of the products. For example, if the LPC order is 10, there are 10 coefficients. Using these 10 coefficients to multiply the 10 sample values ​​of the historical audio data respectively and summing the products can approximate the current sample value, and these coefficients are the linear prediction coefficients.

[0116] The method for obtaining the high-frequency residual signal and the low-frequency residual signal can be the same as that in the prior art. The embodiment of the present application does not limit the implementation method of obtaining the high-frequency residual signal and the low-frequency residual signal of the target audio frame, and the main focus is on being able to obtain the high-frequency residual signal and the low-frequency residual signal of the target audio frame.

[0117] S102: Suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppressed signal.

[0118] The center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal.

[0119] Fundamental frequency, also known as baseband, refers to the frequency of the fundamental tone in a complex sound. Among the multiple tones that make up a complex sound, the fundamental tone has the lowest frequency and the highest intensity. The pitch of a sound is determined by the fundamental frequency.

[0120] For example, when the center frequency of the target frequency range is 20 kilohertz (Khz), the target frequency range may be: {10Khz, 30Khz}; when the center frequency of the target frequency range is 40Khz, the target frequency range may be: {20Khz, 60Khz}.

[0121] S103: Perform spectrum inversion on the coding suppression signal to obtain a spectrum inversion signal.

[0122] The sampled baseband spectrum (center frequency is near 0 Hz) obtained according to the formula of the bandpass sampling theorem is exactly opposite to the shape of the positive and negative spectra of the original signal. Therefore, in the embodiment of the present application, the spectrum of the coding suppression signal is inverted, that is, the spectrum inversion signal is made to have the opposite shape to the positive and negative spectra of the coding suppression signal.

[0123] S104: Obtain a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal.

[0124] The high-frequency energy gain refers to the energy gain of the high-frequency residual signal, specifically the ratio of the energy of the high-frequency residual signal to the energy of the low-frequency residual signal. The gain value refers to the energy offset between the high-frequency signal and the low-frequency signal.

[0125] In some embodiments, an implementation method of obtaining the high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal may include:

[0126] The energy value of the spectrum inversion signal and the energy value of the high-frequency residual signal are obtained, and the ratio of the energy value of the spectrum inversion signal to the energy value of the high-frequency residual signal is calculated to obtain the high-frequency energy gain of the target audio signal.

[0127] S105: Generate encoded data of the target audio frame according to the high-frequency energy gain.

[0128] The audio signal encoding method provided in the embodiment of the present application obtains the high-frequency residual signal and the low-frequency residual signal of the target audio frame, and then suppresses the frequency components within the target frequency range in the low-frequency residual signal to obtain a coding suppression signal; inverts the frequency components that meet the preset conditions in the coding suppression signal to obtain a spectrum inversion signal; then, according to the spectrum inversion signal and the high-frequency residual signal, obtains the high-frequency energy gain of the target audio signal; and finally generates the encoding data of the target audio frame according to the high-frequency energy gain. The embodiment of the present application suppresses and inverts the frequency components of the obtained low-frequency residual signal, thereby ensuring that the reconstructed high-frequency signal does not have the problem of lacking harmonic components and low energy. In this way, the problem of poor audio quality when obtaining the code stream data of the target audio frame can be avoided, thereby improving the user experience. Therefore, the embodiment of the present application can improve the audio quality during the encoding process.

[0129] As an extension and refinement of the above embodiment, the embodiment of the present application provides another method for encoding an audio signal. As shown in FIG2 , the method for encoding an audio signal includes the following steps:

[0130] S201: Divide the target audio frame into a low-frequency signal and a high-frequency signal.

[0131] In some embodiments, the target audio frame may be divided into a low-frequency signal and a high-frequency signal by using a quadrature mirror filter (QMF), wherein the frequency range of the low-frequency signal may be [0 kHz-4 kHz], and the frequency range of the high-frequency signal may be [4 kHz-8 kHz].

[0132] S202: Perform linear prediction analysis on the high-frequency signal to obtain a first linear prediction coefficient.

[0133] In some embodiments, a linear prediction analysis may be performed on the high frequency signal using a Burg algorithm to obtain a first linear prediction coefficient. The Burg algorithm is a recursive algorithm that directly calculates a power spectrum estimate from a known time signal sequence.

[0134] S203: Convert the first linear prediction coefficients into line spectrum pair (LSP) coefficients.

[0135] The implementation method of converting the first linear prediction coefficient into the line spectrum pair coefficient can be the same as the implementation method of converting the LPC coefficient into the LSP coefficient in the prior art, and the embodiment of the present application is not limited to this.

[0136] S204: Restore the line-spectral pair coefficients to second linear prediction coefficients.

[0137] Similarly, the implementation method of restoring the line spectrum pair coefficients to the second linear prediction coefficients may be the same as the implementation method of restoring the LSP coefficients to the LPC coefficients in the prior art, and the embodiments of the present application do not limit this.

[0138] S205: Divide the high-frequency signal into a preset number of sub-signals on average.

[0139] In the embodiment of the present application, there is no limit on the preset number. In the actual encoding process, the high-frequency signal can be evenly divided into any number of sub-signals as needed. For example, the high-frequency signal can be divided into 4 sub-signals of equal length, or for another example, the high-frequency signal can be divided into 8 sub-signals of equal length.

[0140] S206 : Perform filtering processing on each sub-signal based on the second linear prediction coefficient to obtain a residual signal of each sub-signal, thereby obtaining the high-frequency residual signal.

[0141] Specifically, the transfer function of the linear prediction filter that performs filtering processing on each sub-signal based on the second linear prediction coefficient may be:

[0142] The residual signal of the sub-signal obtained by this transfer function is:

[0143] Where i is the index of the sub-signal, x hb represents the original sub-signal, a i is the linear prediction coefficient of the sub-signal with index i, res hb is the residual signal of the sub-signal with index i.

[0144] S207: Encode the low-frequency signal to obtain low-frequency coding information and the low-frequency residual signal.

[0145] In some embodiments, the low-frequency signal may be encoded by a SILK encoder to obtain the low-frequency coding information and the low-frequency residual signal.

[0146] S208 : Perform pre-emphasis processing on the low-frequency residual signal based on a high-pass filter to suppress frequency components within a target frequency range in the low-frequency residual signal, and obtain a coded suppression signal.

[0147] Specifically, since pre-emphasis processing is also a filtering process, a high-pass filter is used to perform pre-emphasis processing on each sub-signal based on the second linear prediction coefficient. The high-pass filter is used to suppress the prominent frequency components near the fundamental frequency, and the transfer function of the high-pass filter is: H(z)=1-μz -1 , μ is the preset filter coefficient.

[0148] Expressed using the difference equation:

[0149] in Represents the processed low-frequency residual signal, μ is the pre-filtering coefficient, where μ determines the degree of suppression of lower-frequency components in the low-frequency residual signal and the degree of emphasis on higher-frequency components. The larger the μ value, the higher the degree of suppression of lower-frequency components and the higher the degree of emphasis on higher-frequency components.

[0150] S209 : Modify the amplitudes of the sampling points with odd indexes in the coding suppression signal to opposite values ​​to obtain a spectrum inversion signal.

[0151] Since the spectrum of the high-frequency signal obtained after the audio signal of the target audio frame is divided by the orthogonal mirror filter is inverted, in order to ensure that the spectrum of the spectrum-inverted signal corresponds to the spectrum of the original high-frequency signal, the coding suppression signal needs to be spectrally inverted.

[0152] The sampling points with odd indexes in the coding suppression signal are negated to obtain a spectrum inversion signal. Specifically, the spectrum inversion signal can be obtained by using the following formula and the coding suppression signal: res lb (i) = res lb (i)*(-1) i

[0153] Where i is the index of the sampling point in the coding suppression signal. For example, when the index of the sampling point in the coding suppression signal is 1, that is, i=1, the formula is recorded as:lb (1) = res lb (1)*(-1) 1 , get res lb (1)=-res lb (1) indicates that when i=1, the index of the spectrum inversion signal corresponding to the sampling point of index 1 is the opposite number of the sampling point of the coding suppression signal index 1; when the index of the sampling point in the coding suppression signal is 2, that is, when i=2, the formula is recorded as: lb (2) = res lb (2)*(-1) 2 , get res lb (2) = res lb (2) indicates that when i=2, the obtained spectrum inversion signal corresponding to the index 2 sampling point is equal to the coded suppression signal index 2 sampling point.

[0154] For example, if the coding inhibition signal is: {a1, a2, a3, ... a 64}, then the spectrum inversion signal obtained by the above formula is: {-a1, a2, -a3, ... a 64}.

[0155] S210 : Obtain a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal.

[0156] The high-frequency energy gain includes the energy gain of each sub-signal.

[0157] In some embodiments, the energy gain value of the sub-signal with index i is:

[0158] Among them, N is the length of the sub-signal, gain i is the energy gain value of the sub-signal with index i, is the energy of the spectrum inverted signal, is the energy of the sub-signal with index i.

[0159] S211 . Encode the low-frequency coding information, the LSP coefficient, and the high-frequency energy gain to generate coded data of the target audio frame.

[0160] That is, the low-frequency coding information, the LSP coefficient, and the high-frequency energy gain are encapsulated into an audio signal packet to obtain the coding data of the target audio frame.

[0161] In some embodiments, before generating the encoded data of the target audio frame based on the low-frequency coding information, the LSP coefficient and the high-frequency energy gain, the audio signal encoding method provided by the embodiment of the present invention further includes: performing double codebook quantization on the LSP coefficient.

[0162] For example, the LSP coefficients are first quantized using dual codebooks, and then the corresponding codebook index is encoded into the main stream using 12 bits.

[0163] Among them, dual codebook quantization is to obtain the LSP coefficient through two different codebooks to retrieve the coefficient to obtain the LSP coefficient and the subscript code of the corresponding codebook, and synthesize the new LSP coefficient subscript code through the two codebook retrieval.

[0164] The corresponding relationship between the dual codebook encoding subscript and the LSP coefficient can be shown in the following table 1:

[0165] Table 1

[0166] When the correspondence between the dual codebook encoding subscript and the LSP coefficient is shown in Table 1 above, when the LSP coefficient is {1111, 1112, 1113, 1115, 1117, 1118, 1119}, after dual codebook quantization, the corresponding codebook subscript code {C1, C2, C3, C4, C5, C6, C7, C8} is obtained.

[0167] By performing double codebook quantization on the LSP coefficients, the data volume of the LSP coefficients can be reduced, thereby improving the efficiency of audio signal transmission.

[0168] In some embodiments, before generating the encoding data of the target audio frame based on the low-frequency coding information, the LSP coefficient and the high-frequency energy gain, the audio signal encoding method provided by the embodiment of the present invention further includes: performing codebook quantization on the high-frequency energy gain.

[0169] For example, the high-frequency energy gain may be quantized and the corresponding subscript may be encoded into the main stream using 5 bits. When four sub-signals are included, the encoding data of the high-frequency energy gain consumes a total of 20 bits.

[0170] The corresponding relationship between the coding subscript and the high-frequency energy gain can be shown in Table 2 below:

[0171] Table 2

[0172] By performing codebook quantization on the high-frequency energy gain, the data volume of the high-frequency energy gain can be reduced, thereby improving the efficiency of audio signal transmission.

[0173] An embodiment of the present application provides another method for encoding an audio signal. As shown in FIG3 , the method for encoding an audio signal includes the following steps:

[0174] S301: Divide the target audio frame into a low-frequency signal and a high-frequency signal.

[0175] S302: Perform linear prediction analysis on the high-frequency signal to obtain a first linear prediction coefficient.

[0176] S303: Convert the first linear prediction coefficients into line-spectral pair coefficients.

[0177] S304: Restore the line-spectral pair coefficients to second linear prediction coefficients.

[0178] S305: Divide the high-frequency signal into a preset number of sub-signals on average.

[0179] S306 : Perform filtering processing on each sub-signal based on the second linear prediction coefficient to obtain a residual signal of each sub-signal, thereby obtaining the high-frequency residual signal.

[0180] S307: Encode the low-frequency signal to obtain low-frequency coding information and the low-frequency residual signal.

[0181] The implementation of the above steps S301 to S307 may be the same as the implementation of steps S201 to S207 in the embodiment shown in FIG. 2 , and will not be described in detail here to avoid redundancy.

[0182] S308 : Perform filtering processing on the low-frequency residual signal based on a shelving filter to suppress frequency components within a target frequency range in the low-frequency residual signal, and obtain a coded suppression signal.

[0183] That is, the low-frequency residual signal is filtered by a shelving filter, thereby suppressing frequency components within a target frequency range whose center frequency is the fundamental frequency of the low-frequency residual signal.

[0184] In some embodiments, the shelving filter transfer function may be as follows:

[0185] Expressed using the difference equation:

[0186] Among them, f cIndicates the frequency that needs to be adjusted, G=1+B0 represents the gain value at the corresponding frequency. According to the degree of spectral tilt, the filter suppression frequency range and suppression degree can be specified to reduce the spectral tilt of the low-frequency residual.

[0187] S309: Invert the frequency components that meet preset conditions in the coding suppression signal to obtain a spectrum inversion signal.

[0188] Similarly, after the audio signal is divided by the quadrature mirror filter, the spectrum of the resulting high-frequency signal is inverted. To ensure that the spectrum-inverted signal corresponds to the original high-frequency spectrum, the low-frequency residual signal needs to be spectrally inverted. The implementation method for spectrally inverting the coding suppression signal is the same as described in step S209 above and will not be repeated here.

[0189] S310 : Obtain a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal.

[0190] The implementation of the above step S310 can be the same as the implementation of step S210 in the embodiment shown in FIG. 2 , and will not be described in detail here to avoid redundancy.

[0191] S311 . Encode the low-frequency coding information, the LSP coefficient, and the high-frequency energy gain to generate coded data of the target audio frame.

[0192] An embodiment of the present application provides another method for encoding an audio signal. As shown in FIG4 , the method for encoding an audio signal includes the following steps:

[0193] S401: Divide the target audio frame into a low-frequency signal and a high-frequency signal.

[0194] S402: Perform linear prediction analysis on the high-frequency signal to obtain a first linear prediction coefficient.

[0195] S403: Convert the first linear prediction coefficients into line-spectral pair coefficients.

[0196] S404: Restore the line-spectral pair coefficients to second linear prediction coefficients.

[0197] S405: Divide the high-frequency signal into a preset number of sub-signals on average.

[0198] S406 : Perform filtering processing on each sub-signal based on the second linear prediction coefficient to obtain a residual signal of each sub-signal, thereby obtaining the high-frequency residual signal.

[0199] S407: Encode the low-frequency signal to obtain low-frequency coding information and the low-frequency residual signal.

[0200] The implementation of the above steps S401 to S407 may be the same as the implementation of steps S201 to S207 in the embodiment shown in FIG. 2 , and will not be described in detail here to avoid redundancy.

[0201] S408: Perform notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a coded notch signal.

[0202] That is, the gene frequency of the low-frequency residual signal is first obtained, and then the target frequency range is determined according to the gene frequency of the low-frequency residual signal, and a second-order notch filter is used to perform notch processing on the frequency components within the target frequency range to obtain a coded notch signal.

[0203] Since the spectrum inversion signal mainly has higher frequency components near the fundamental frequency (within the target frequency range), the spectrum inversion signal is passed through a second-order notch filter to perform notch processing on the frequency components within the target frequency range.

[0204] In some embodiments, the transfer function of the second-order notch filter is as follows:

[0205] Expressed using the difference equation:

[0206] in,

[0207] γ=G*tanf(bw / 2)

[0208] in, Represents the low-frequency residual signal after second-order notch processing, bw represents the notch bandwidth of the filter, Ω0 represents the center frequency point of the notch filter, and G represents the notch gain value at the specified frequency.

[0209] S409: Perform whitening processing on the coded notch signal to obtain the coded suppression signal.

[0210] That is, after the low-frequency residual signal is notched, the processing result is further whitened.

[0211] In some embodiments, the whitening process of the coded notch signal is implemented by:

[0212] First, the LPC coefficients of the low-frequency residual signal are obtained through the Berg algorithm.

[0213] Secondly, the LPC coefficient is used to perform high-order LPC filtering on the coding notch signal obtained in the above steps to obtain a coding suppression signal.

[0214] For example, if the high-order LPC filter is 8th order, it can be calculated by the following formula:

[0215] S410: Modify the amplitudes of sampling points with odd indexes in the coding suppression signal to opposite values ​​to obtain a spectrum inversion signal.

[0216] S411 : Obtain a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal.

[0217] S412: Encode the low-frequency coding information, the line spectrum pair coefficients, and the high-frequency energy gain to generate coded data of the target audio frame.

[0218] 5 , which is a hardware block diagram of an audio signal encoding device provided in an embodiment of the present application, includes an orthogonal mirror filter 501, an encoder 502, a suppression module 503, an inversion module 504, a splitting module 505, a linear prediction analyzer 506, a parameter quantizer 507, a restoration module 508, a high-frequency residual generator 509, a gain calculator 510, and a packager 511.

[0219] The quadrature mirror filter 501 is used to divide a single frame of audio signal into a low-band (LB) signal and a high-band (HB) signal.

[0220] The encoder 502 is configured to encode the low-frequency signal to generate low-frequency coding information and a low-frequency residual signal.

[0221] The suppression module 503 is configured to suppress frequency components within a target frequency range whose center frequency is the fundamental frequency of the low-frequency residual signal, so as to obtain a coded suppression signal.

[0222] The inversion module 504 is configured to perform spectrum inversion on the coding suppression signal to obtain a spectrum inverted signal.

[0223] The splitting module 505 is used to evenly divide the high-frequency signal of a single frame into a preset number of sub-signals.

[0224] The linear prediction analyzer 506 is configured to perform linear prediction analysis on the high frequency signal to obtain a first LPC coefficient of the high frequency signal.

[0225] The parameter quantizer 507 is used to convert the first linear prediction coefficient into an LSP coefficient.

[0226] The restoration module 508 is configured to restore the LSP coefficients to second linear prediction coefficients.

[0227] The high-frequency residual generator 509 generates a residual signal of each sub-signal according to the second linear prediction coefficient and each sub-signal to obtain a high-frequency residual signal.

[0228] The gain calculator 510 calculates a high energy gain value according to the spectrum inverted signal and the high frequency residual signal.

[0229] The encapsulator 511 is configured to encapsulate the low-frequency coding information, the LSP coefficients, and the high-frequency energy gain to generate coding data of the audio signal.

[0230] Another embodiment of the present application provides a method for decoding an audio signal. As shown in FIG6 , the method for decoding an audio signal includes the following steps:

[0231] S601: Parse the coded data of the target audio frame to obtain low-frequency coding information.

[0232] That is, the coded data of the received audio frame is decapsulated to obtain the low-frequency coding information carried in the coded data.

[0233] S602: Decode the low-frequency coding information to obtain a low-frequency signal and a low-frequency residual signal.

[0234] In some embodiments, a decoder may be used to decode the low-frequency coding information to obtain the low-frequency signal and the low-frequency residual signal.

[0235] S603: Suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal.

[0236] The center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal.

[0237] S604: Perform spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal.

[0238] S605: Reconstruct the signal according to the low-frequency excitation signal to obtain a high-frequency signal.

[0239] S606: Generate an audio signal of the target audio frame according to the low-frequency signal and the high-frequency signal.

[0240] The audio signal decoding method provided in the embodiment of the present application obtains low-frequency coding information by parsing the coded data of the target audio frame, then decodes the low-frequency coding information to obtain a low-frequency signal and a low-frequency residual signal, then suppresses the frequency components within the target frequency range in the low-frequency residual signal, then performs spectrum inversion on the obtained decoded suppression signal to obtain a low-frequency excitation signal, and reconstructs the signal based on the low-frequency excitation signal to obtain a high-frequency signal. Finally, the audio signal of the target audio frame is generated based on the low-frequency signal and the high-frequency signal. Because the embodiment of the present application suppresses the spectrum of the low-frequency excitation signal without attenuating the high-frequency signal, the problem of low high-frequency signal energy is avoided. Because the embodiment of the present application also inverts the spectrum values ​​of the sampling points that meet the preset conditions when reconstructing the high-frequency signal, the problem of lack of harmonic components in the high-frequency signal is avoided. In summary, the embodiment of the present application can avoid low high-frequency energy and missing high-frequency harmonics when reconstructing the high-frequency signal at the decoding end. Therefore, the embodiment of the present application can improve audio quality.

[0241] An embodiment of the present application provides another method for decoding an audio signal. As shown in FIG7 , the method for decoding an audio signal includes the following steps:

[0242] S701: parse the coded data of the target audio frame to obtain low-frequency coding information, LSP coefficients, and high-frequency energy gain.

[0243] S702: Decode the low-frequency coding information to obtain a low-frequency signal and a low-frequency residual signal.

[0244] S703 : Perform pre-emphasis processing on the low-frequency residual signal based on a high-pass filter to suppress frequency components within a target frequency range in the low-frequency residual signal, and obtain a coded suppression signal.

[0245] S704: Modify the amplitudes of the sampling points with odd indexes in the decoded suppression signal to opposite numbers to obtain a low-frequency excitation signal.

[0246] S705 : Reconstruct a signal according to the low-frequency excitation signal, the LSP coefficient, and the high-frequency energy gain to obtain the high-frequency signal.

[0247] The step of reconstructing a signal according to the low-frequency excitation signal, the LSP coefficient, and the high-frequency energy gain to obtain a high-frequency signal includes the following steps 1 to 6:

[0248] Step 1: Obtain the energy gain corresponding to each sub-signal in the high-frequency energy gain.

[0249] Step 2: Obtain a residual signal of each sub-signal according to the low-frequency excitation signal and the energy gain of each sub-signal.

[0250] Step 3: Restore the LSP coefficients to LPC coefficients.

[0251] Step 4: Obtain each prediction sub-signal according to the LPC coefficient.

[0252] Step 5: Generate each sub-signal according to each predicted sub-signal and its residual signal.

[0253] Step 6: Generate the high-frequency signal according to each sub-signal.

[0254] S706: Generate an audio signal of the target audio frame according to the low-frequency signal and the high-frequency signal.

[0255] In some embodiments, the low-frequency signal and the high-frequency signal may be synthesized by using an orthogonal mirror filter to generate the audio signal of the target audio frame.

[0256] An embodiment of the present application provides another method for decoding an audio signal. As shown in FIG8 , the method suppresses frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal. The method for decoding an audio signal includes the following steps:

[0257] S801: parse the coded data of the target audio frame to obtain low-frequency coding information, LSP coefficients, and high-frequency energy gain.

[0258] S802: Decode the low-frequency coding information to obtain a low-frequency signal and a low-frequency residual signal.

[0259] S803 : Perform filtering processing on the low-frequency residual signal based on a shelving filter to suppress frequency components within a target frequency range in the low-frequency residual signal, and obtain a decoded suppression signal.

[0260] S804: Modify the amplitudes of the sampling points with odd indexes in the decoded suppression signal to opposite numbers to obtain a low-frequency excitation signal.

[0261] S805 . Reconstruct a signal according to the low-frequency excitation signal, the LSP coefficient, and the high-frequency energy gain to obtain the high-frequency signal.

[0262] S806: Generate an audio signal of the target audio frame according to the low-frequency signal and the high-frequency signal.

[0263] An embodiment of the present application provides another method for decoding an audio signal. As shown in FIG9 , the method suppresses frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal. The method for decoding an audio signal includes the following steps:

[0264] S901: Parse the coded data of the target audio frame to obtain low-frequency coding information, LSP coefficients, and high-frequency energy gain.

[0265] S902: Decode the low-frequency coding information to obtain a low-frequency signal and a low-frequency residual signal.

[0266] S903 : Perform notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a decoded notch signal.

[0267] S904: Perform whitening processing on the decoded notch signal to obtain the decoded suppression signal.

[0268] S905 : Modify the amplitudes of the sampling points with odd indexes in the decoded suppression signal to opposite values ​​to obtain a low-frequency excitation signal.

[0269] S906 , reconstructing a signal according to the low-frequency excitation signal, the LSP coefficient, and the high-frequency energy gain to obtain the high-frequency signal.

[0270] S907 : Generate an audio signal of the target audio frame according to the low-frequency signal and the high-frequency signal.

[0271] In combination with the above embodiments, referring to FIG10 , FIG10 is a hardware block diagram of an audio signal decoding device provided in an embodiment of the present application. The decoding device includes: a decapsulator 101, a decoder 102, a suppression module 103, an inversion module 104, a residual generator 105, a restoration module 106, a prediction module 107, a reconstruction module 108, a splicing module 109, and an orthogonal mirror filter 1010.

[0272] The decapsulator 101 is used to parse and obtain low-frequency coding information, LSP coefficients, and high-frequency energy gains.

[0273] The decoder 102 is configured to decode the low-frequency coded information to obtain a low-frequency signal and a low-frequency residual signal.

[0274] The suppression module 103 is configured to suppress frequency components within a target frequency range whose center frequency is the fundamental frequency of the low-frequency residual signal, so as to obtain a decoded suppression signal.

[0275] The inversion module 104 is configured to perform spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal.

[0276] The residual generator 105 is configured to obtain a residual signal of each sub-signal according to the low-frequency excitation signal and the energy gain corresponding to each sub-signal in the high-frequency energy gain.

[0277] The restoration module 106 is configured to restore the LSP coefficients to LPC coefficients.

[0278] The prediction module 107 is used to obtain each high frequency sub-signal according to the LPC coefficient.

[0279] The reconstruction module 108 is configured to generate each sub-signal according to each predicted sub-signal and a residual signal of each sub-signal.

[0280] The splicing module 109 is used to splice the sub-signals into a high-frequency signal.

[0281] The quadrature mirror filter 1010 is used to synthesize the high-frequency signal and the low-frequency signal into an audio signal.

[0282] Based on the same inventive concept, as an implementation of the above-mentioned method, the embodiment of the present application further provides an audio signal encoding device and an audio signal decoding device. This embodiment corresponds to the above-mentioned method embodiment. For ease of reading, the embodiment of the present application no longer repeats the details of the above-mentioned method embodiment one by one, but it should be clear that the audio signal decoding device and the audio signal decoding device in the embodiment of the present application can correspond to and implement all the contents of the above-mentioned method embodiment.

[0283] Based on the same concept, an embodiment of the present application provides an audio signal encoding device. FIG11 is a schematic structural diagram of the audio signal encoding device. As shown in FIG11 , the audio signal encoding device 1100 includes:

[0284] The acquisition unit 1101 is configured to acquire a high-frequency residual signal and a low-frequency residual signal of a target audio frame.

[0285] The suppression unit 1102 is configured to suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppression signal; the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal.

[0286] The inversion unit 1103 is configured to perform spectrum inversion on the coding suppression signal to obtain a spectrum inverted signal.

[0287] The processing unit 1104 is configured to obtain a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal.

[0288] The generating unit 1105 is configured to generate the encoded data of the target audio frame according to the high frequency energy gain.

[0289] As an optional implementation of the embodiment of the present application, the suppression unit 1102 is specifically configured to:

[0290] Pre-emphasis processing is performed on the low-frequency residual signal based on a high-pass filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a coded suppression signal.

[0291] As an optional implementation of the embodiment of the present application, the suppression unit 1102 is specifically used to filter the low-frequency residual signal based on a slope filter to suppress the frequency components within the target frequency range in the low-frequency residual signal to obtain a coded suppression signal.

[0292] As an optional implementation of an embodiment of the present application, the suppression unit 1102 is specifically used to perform notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a coded notch signal, and to perform whitening processing on the coded notch signal to obtain the coded suppression signal.

[0293] As an optional implementation of the embodiment of the present application, the inversion unit 1103 is specifically configured to modify the amplitudes of the sampling points with odd indexes in the coding suppression signal to opposite numbers to obtain a spectrum inversion signal.

[0294] As an optional implementation of an embodiment of the present application, the processing unit 1104 is specifically used to divide the target audio frame into a low-frequency signal and a high-frequency signal; perform linear prediction analysis on the high-frequency signal to obtain a first linear prediction LPC coefficient; convert the first linear prediction coefficient into a line spectrum pair LSP coefficient; restore the line spectrum pair coefficient to a second linear prediction coefficient; divide the high-frequency signal into a preset number of sub-signals on average; perform filtering processing on each sub-signal based on the second linear prediction coefficient to obtain a residual signal of each sub-signal to obtain the high-frequency residual signal; encode the low-frequency signal to obtain low-frequency coding information and the low-frequency residual signal.

[0295] As an optional implementation of the embodiment of the present application, the generating unit 1105 is specifically configured to encode the low-frequency coding information, the line spectrum pair coefficients, and the high-frequency energy gain to generate the coded data of the target audio frame.

[0296] The audio signal encoding device provided in the embodiment of the present application can execute the audio signal encoding method provided in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0297] Based on the same concept, an embodiment of the present application provides an audio signal decoding device. FIG12 is a schematic structural diagram of the audio signal decoding device. As shown in FIG12 , the audio signal decoding device 1200 includes:

[0298] The acquisition unit 1201 is used to parse the coded data of the target audio frame and obtain low-frequency coding information;

[0299] The decoding unit 1202 is configured to decode the low-frequency coding information to obtain a low-frequency signal and a low-frequency residual signal.

[0300] The suppression unit 1203 is configured to suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppression signal.

[0301] The center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal.

[0302] The inversion unit 1204 is configured to perform spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal.

[0303] The reconstruction unit 1205 is configured to reconstruct a signal according to the low-frequency excitation signal to obtain a high-frequency signal.

[0304] The generating unit 1206 is configured to generate the audio signal of the target audio frame according to the low-frequency signal and the high-frequency signal.

[0305] As an optional implementation of the embodiment of the present application, the suppression unit 1203 is specifically used to perform pre-emphasis processing on the low-frequency residual signal based on a high-pass filter to suppress the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppression signal.

[0306] As an optional implementation of the embodiment of the present application, the suppression unit 1203 is specifically used to filter the low-frequency residual signal based on a slope filter to suppress the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppression signal.

[0307] As an optional implementation of an embodiment of the present application, the suppression unit 1203 is specifically used to perform notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a decoded notch signal, and to perform whitening processing on the decoded notch signal to obtain the decoded suppression signal.

[0308] As an optional implementation of the embodiment of the present application, the inversion unit 1204 is specifically configured to modify the amplitudes of the sampling points with odd indexes in the decoded suppression signal to opposite numbers to obtain a low-frequency excitation signal.

[0309] As an optional implementation of an embodiment of the present application, the encoded data of the target audio frame also includes: LSP coefficients and high-frequency energy gains. The reconstruction unit 1205 is specifically used to reconstruct the signal based on the low-frequency excitation signal, the LSP coefficients and the high-frequency energy gain to obtain the high-frequency signal.

[0310] As an optional implementation of an embodiment of the present application, the reconstruction unit 1205 is specifically used to obtain the energy gain corresponding to each sub-signal in the high-frequency energy gain; obtain the residual signal of each sub-signal based on the low-frequency excitation signal and the energy gain of each sub-signal; restore the LSP coefficient to an LPC coefficient; obtain each predicted sub-signal based on the LPC coefficient; generate each sub-signal based on each predicted sub-signal and the residual signal of each sub-signal; and generate the high-frequency signal based on each sub-signal.

[0311] The audio signal decoding device provided in the embodiment of the present application can execute the audio signal decoding method provided in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0312] Based on the same inventive concept, an embodiment of the present application further provides an electronic device. FIG13 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Referring to FIG13 , the electronic device provided in an embodiment of the present application includes: a memory 131 and a processor 132. The memory 131 is used to store a computer program; the processor 132 is used to execute the audio signal encoding method or audio signal decoding method provided in the above embodiments when executing the computer program.

[0313] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computing device implements the audio signal encoding method or audio signal decoding method provided in the above embodiment.

[0314] Based on the same inventive concept, an embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computing device implements the audio signal encoding method or audio signal decoding method provided in the above embodiments.

[0315] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0316] The processor may be a central processing unit (CPU), other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0317] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0318] Computer-readable media includes both permanent and non-permanent, removable and non-removable storage media. Storage media can implement any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

[0319] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for encoding an audio signal, characterized in that: include: Obtaining a high-frequency residual signal and a low-frequency residual signal of a target audio frame; Suppressing frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppressed signal; the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal; Performing spectrum inversion on the coded suppression signal to obtain a spectrum inversion signal; Acquire a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal; Encoded data of the target audio frame is generated according to the high frequency energy gain.

2. The method according to claim 1, characterized in that The step of suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a coded suppression signal includes: The low-frequency residual signal is pre-emphasized based on a high-pass filter to suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a coding suppression signal.

3. The method according to claim 1, characterized in that The step of suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a coded suppression signal includes: The low-frequency residual signal is filtered based on a shelving filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a coding suppression signal.

4. The method according to claim 1, characterized in that The step of suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a coded suppression signal includes: Performing notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a coded notch signal; The coding notch signal is subjected to whitening processing to obtain the coding suppression signal.

5. The method according to claim 1, characterized in that The performing spectrum inversion on the coding suppression signal to obtain a spectrum inversion signal includes: The amplitudes of sampling points with odd indexes in the coding suppression signal are modified to opposite numbers to obtain a spectrum inversion signal.

6. The method according to any one of claims 1 to 5, characterized in that: The obtaining of a high-frequency residual signal and a low-frequency residual signal of a target audio signal comprises: Dividing the target audio frame into a low-frequency signal and a high-frequency signal; Performing linear prediction analysis on the high frequency signal to obtain a first linear prediction LPC coefficient; Converting the first linear prediction coefficients into line spectrum pair (LSP) coefficients; Restoring the line spectrum pair coefficients to second linear prediction coefficients; Dividing the high-frequency signal into a preset number of sub-signals on average; Performing filtering processing on each sub-signal based on the second linear prediction coefficient to obtain a residual signal of each sub-signal to obtain the high-frequency residual signal; The low-frequency signal is encoded to obtain low-frequency encoding information and the low-frequency residual signal.

7. The method according to claim 6, characterized in that The step of generating the encoded data of the target audio frame according to the high frequency energy gain comprises: The low-frequency coding information, the line spectrum pair coefficients, and the high-frequency energy gain are encoded to generate encoded data of the target audio frame.

8. A method for decoding an audio signal, characterized in that: include: Parse the encoded data of the target audio frame to obtain low-frequency encoding information; Decoding the low-frequency coded information to obtain a low-frequency signal and a low-frequency residual signal; Suppressing frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal; the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal; Performing spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal; Reconstructing the signal according to the low-frequency excitation signal to obtain a high-frequency signal; An audio signal of the target audio frame is generated according to the low-frequency signal and the high-frequency signal.

9. The method according to claim 8, characterized in that The step of suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal includes: The low-frequency residual signal is pre-emphasized based on a high-pass filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a decoded suppressed signal.

10. The method according to claim 8, characterized in that The step of suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal includes: The low-frequency residual signal is filtered based on a shelving filter to suppress frequency components within a target frequency range in the low-frequency residual signal, thereby obtaining a decoded suppressed signal.

11. The method according to claim 8, characterized in that The step of suppressing the frequency components within the target frequency range in the low-frequency residual signal to obtain a decoded suppressed signal includes: Performing notch processing on the frequency components within the target frequency range based on a second-order notch filter to obtain a decoded notch signal; The decoded notch signal is whitened to obtain the decoded suppression signal.

12. The method according to claim 8, characterized in that The step of inverting the spectrum values ​​of the sampling points in the decoded suppression signal that meet the preset conditions to obtain a spectrum inversion signal includes: The amplitudes of sampling points with odd indexes in the decoded suppression signal are modified to opposite numbers to obtain a low-frequency excitation signal.

13. The method according to any one of claims 8 to 12, characterized in that: The encoding data of the target audio frame also includes: LSP coefficients and high-frequency energy gains; The reconstructing the signal according to the low-frequency excitation signal to obtain the high-frequency signal includes: A signal is reconstructed according to the low-frequency excitation signal, the LSP coefficient and the high-frequency energy gain to obtain the high-frequency signal.

14. The method according to claim 13, characterized in that The reconstructing the signal according to the low-frequency excitation signal, the LSP coefficient and the high-frequency energy gain to obtain the high-frequency signal includes: Obtaining energy gains corresponding to each sub-signal in the high-frequency energy gain; Acquire a residual signal of each sub-signal according to the low-frequency excitation signal and the energy gain of each sub-signal; Restoring the LSP coefficients to LPC coefficients; Acquire each prediction sub-signal according to the LPC coefficient; Generate each sub-signal according to each predicted sub-signal and a residual signal of each sub-signal; The high-frequency signal is generated according to each sub-signal.

15. An audio signal encoding device, characterized in that: include: An acquisition unit, used to acquire a high-frequency residual signal and a low-frequency residual signal of a target audio frame; A suppression unit, configured to suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a coded suppression signal; the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal; an inversion unit, configured to perform spectrum inversion on the coding suppression signal to obtain a spectrum inversion signal; A processing unit, configured to obtain a high-frequency energy gain of the target audio signal according to the spectrum inversion signal and the high-frequency residual signal; A generating unit is used to generate the encoding data of the target audio frame according to the high-frequency energy gain.

16. A decoding device for an audio signal, characterized in that: include: An acquisition unit, used for parsing the coded data of the target audio frame and acquiring low-frequency coding information; A decoding unit, used to decode the low-frequency coded information to obtain a low-frequency signal and a low-frequency residual signal; A suppression unit, configured to suppress frequency components within a target frequency range in the low-frequency residual signal to obtain a decoded suppression signal; the center frequency of the target frequency range is the fundamental frequency of the low-frequency residual signal; an inversion unit, performing spectrum inversion on the decoded suppression signal to obtain a low-frequency excitation signal; A reconstruction unit, used to reconstruct a signal according to the low-frequency excitation signal to obtain a high-frequency signal; A generating unit is used to generate an audio signal of the target audio frame according to the low-frequency signal and the high-frequency signal.

17. An electronic device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to enable the electronic device to implement the audio signal encoding method described in any one of claims 1 to 7 or the audio signal decoding method described in any one of claims 8 to 14 when executing the computer program.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device implements the audio signal encoding method according to any one of claims 1 to 7 or the audio signal decoding method according to any one of claims 8 to 14.

19. A computer program product, characterized in that When the computer program product runs on a computer, the computer is enabled to implement the audio signal encoding method according to any one of claims 1 to 7 or the audio signal decoding method according to any one of claims 8 to 14.