A stereo audio signal processing method, device, encoding device, decoding device and storage medium

By calculating and decorrelation of the stereo audio signal mutual correlation coefficient and decorrelation processing, the problem of low encoding compression rate of the biased inverting signal in the prior art is solved, and a more efficient encoding and decoding process is realized.

CN114258568BActive Publication Date: 2024-12-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202180004116.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-12-03
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

When the prior art decorrelation process of stereo audio signals, it is impossible to effectively improve the encoding compression rate of the inverted phase signal, resulting in a low encoding compression rate.

Method used

By calculating the first mutual correlation coefficient of the current frame of the stereo audio signal, if it is less than the first threshold (the value range is (-1, 0), the first decorrelation processing method is adopted to decorrelate the stereo audio signal and calculate If the second mutual correlation coefficient after decorrelation processing is smaller than the first mutual correlation coefficient, the flag bit is determined and written to the encoded code stream to ensure the correct processing of the inverted signal.

Benefits of technology

The encoding compression rate of the inverted phase signal is improved, ensuring the effective encoding and decoding process of stereo audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114258568B_ABST
    Figure CN114258568B_ABST
Patent Text Reader

Abstract

The present disclosure proposes a stereo audio signal processing method, device, encoding device, decoding device and storage medium, which belongs to the field of communication technology. The method includes: determining a first mutual correlation coefficient of a left channel signal and a right channel signal of a current frame of a stereo audio signal; in response to the first mutual correlation coefficient being less than a first threshold, adopting a first decorrelation processing method to decorrelate the current frame of the stereo audio signal to obtain two-channel signals after decorrelation processing, calculating a second mutual correlation coefficient of the two-channel signals after decorrelation processing, in response to the first mutual correlation coefficient being less than the second mutual correlation coefficient, determining a flag bit to be a first value, and obtaining a coded code stream based on the two-channel signals after decorrelation processing and writing the flag bit into the coded code stream, and the value range of the first threshold is (-1, 0). The method provided by the present disclosure can greatly improve the coding compression rate of the inverted signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a stereo audio signal processing method, device, encoding device, decoding device and storage medium. Background Art

[0002] Since lossless coding can meet the requirements of high-quality audio playback and lossless storage, it is widely used. Usually, when performing lossless coding on stereo audio signals, it is necessary to first perform decorrelation processing on the stereo audio signals to improve the coding compression rate.

[0003] In the related art, the main method of decorrelation processing is: setting a threshold value, which is between 0 and 1, and calculating the correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal. When the correlation coefficient is greater than the threshold, it means that the left channel signal and the right channel signal of the current frame are correlated, that is, the current frame is a correlated signal, and the left channel signal and the right channel signal of the current frame are decorrelated; when the correlation coefficient is less than or equal to the threshold, the system believes that the left and right channel signals of the current frame are uncorrelated, and they are processed as uncorrelated signals, that is, the current frame of the stereo audio signal is directly determined as a two-channel signal after decorrelation processing.

[0004] However, in the related art, when the current frame is a correlation signal, there are two specific correlation forms, namely, a positive phase signal and a negative phase signal. In order to achieve the purpose of improving the compression rate, different correlation forms use different decorrelation processing, and the decorrelation processing in the related art can only improve the coding compression rate of the positive phase signal, but cannot improve the coding compression rate of the negative phase signal. Summary of the invention

[0005] The present disclosure proposes a stereo audio signal processing method, device, user equipment, network side equipment and storage medium to solve the technical problem of low encoding compression rate of decorrelation processing methods in related technologies.

[0006] A stereo audio signal processing method provided in an embodiment of the present disclosure is applied to an encoding device, including:

[0007] Determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal;

[0008] In response to the first cross-correlation coefficient being less than a first threshold, a first decorrelation processing mode is used to perform decorrelation processing on the current frame of the stereo audio signal to obtain a two-channel signal after decorrelation processing, and a second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated. In response to the first cross-correlation coefficient being less than a second cross-correlation coefficient, a flag is determined to be a first value, and a coded bitstream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded bitstream, wherein the value range of the first threshold is (-1, 0).

[0009] Another aspect of the present disclosure provides a stereo audio signal processing method, which is applied to a decoding device and includes:

[0010] Get the encoded code stream sent by the encoding device;

[0011] Determine the two-channel signals and the flag bit after decorrelation processing based on the coded bit stream;

[0012] In response to the flag bit being a first value, a first decorrelation reconstruction mode is used to decorrelate and reconstruct the decorrelation-processed two-channel signals, and the decorrelation-reconstructed audio signals are output.

[0013] A stereo audio signal processing device provided in another aspect of the present disclosure includes:

[0014] A determination module, used to determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal;

[0015] A processing module is used for, in response to the first cross-correlation coefficient being less than a first threshold, performing decorrelation processing on the current frame of the stereo audio signal in a first decorrelation processing manner to obtain a two-channel signal after decorrelation processing, calculating a second cross-correlation coefficient of the two-channel signal after decorrelation processing, in response to the first cross-correlation coefficient being less than a second cross-correlation coefficient, determining that a flag is a first value, and obtaining a coded bitstream based on the two-channel signal after decorrelation processing and writing the flag into the coded bitstream, wherein the value range of the first threshold is (-1, 0).

[0016] A stereo audio signal processing device provided in another aspect of the present disclosure includes:

[0017] An acquisition module, used to acquire the encoded bitstream sent by the encoding device;

[0018] A determination module, used for determining the two-channel signals and the flag bit after decorrelation processing based on the coded bit stream;

[0019] The processing module is used for, in response to the flag bit being a first value, adopting a first decorrelation reconstruction method to decorrelate and reconstruct the two-channel signals after decorrelation processing, and outputting the decorrelation and reconstructed audio signals.

[0020] Another aspect of the present disclosure provides a communication device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program stored in the memory so that the device performs the method provided in the above aspect.

[0021] Another aspect of the present disclosure provides a communication device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program stored in the memory so that the device performs the method provided in the other aspect of the embodiment above.

[0022] A communication device provided in another aspect of the present disclosure includes: a processor and an interface circuit;

[0023] The interface circuit is used to receive code instructions and transmit them to the processor;

[0024] The processor is used to run the code instructions to execute the method proposed in an embodiment of one aspect.

[0025] A communication device provided in another aspect of the present disclosure includes: a processor and an interface circuit;

[0026] The interface circuit is used to receive code instructions and transmit them to the processor;

[0027] The processor is used to run the code instructions to execute the method proposed in another embodiment.

[0028] A computer-readable storage medium provided in yet another aspect of the present disclosure is used to store instructions, and when the instructions are executed, the method provided in the embodiment of the first aspect is implemented.

[0029] A computer-readable storage medium provided in yet another aspect of the present disclosure is used to store instructions, and when the instructions are executed, the method provided in yet another aspect of the present disclosure is implemented.

[0030] In summary, in the stereo audio signal processing method, apparatus, encoding device, decoding device and storage medium provided in the embodiments of the present disclosure, a first cross-correlation coefficient of a left channel signal and a right channel signal of a current frame of a stereo audio signal is first determined, and, in response to the first cross-correlation coefficient being less than a first threshold, a first decorrelation processing method is used to perform decorrelation processing on the current frame of the stereo audio signal to obtain a two-channel signal after decorrelation processing, and then, a second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, a flag is determined to be a first value, and a coded stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded stream. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0). Therefore, in response to the first correlation coefficient being less than the first threshold, it indicates that the current frame of the stereo audio signal is a partially inverted signal. At this time, the first decorrelation processing method will be used correspondingly for the partially inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and decorrelation processing method for the partially inverted signal, which greatly improves the coding compression rate of the partially inverted signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0032] Figure 1a A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0033] Figure 1b A flowchart of obtaining a coded bit stream based on decorrelation processing of two-channel signals provided by an embodiment of the present disclosure;

[0034] Figure 2 A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0035] Figure 3a A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0036] Figure 3b A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0037] Figure 3c A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0038] Figure 4a A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0039] Figure 4b A flowchart of determining a decorrelation-processed two-channel signal based on a coded bit stream provided by an embodiment of the present disclosure;

[0040] Figure 5 A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0041] Figure 6 A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure;

[0042] Figure 7 A schematic diagram of the structure of a stereo audio signal processing device provided by an embodiment of the present disclosure;

[0043] Figure 8 A schematic diagram of the structure of a stereo audio signal processing device provided by an embodiment of the present disclosure;

[0044] Fig. 9 is a block diagram of a user equipment provided by an embodiment of the present disclosure;

[0045] Fig.10 A block diagram of a network side device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present disclosure as detailed in the appended claims.

[0047] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments and are not intended to limit the disclosed embodiments. The singular forms of "a", "an" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0048] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at" or "when" or "in response to determination".

[0049] The following describes in detail the stereo audio signal processing method, apparatus, encoding device, decoding device and storage medium provided by the embodiments of the present disclosure with reference to the accompanying drawings.

[0050] Figure 1a A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by an encoding device, such as Figure 1a As shown, the stereo audio signal processing method may include the following steps:

[0051] Step 101: Determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal.

[0052] In one embodiment of the present disclosure, in response to the encoding device receiving an input stereo audio signal, a cross-correlation analysis may be performed on a current frame of the stereo audio signal to obtain a first cross-correlation coefficient of a left channel signal and a right channel signal of the current frame.

[0053] And, in one embodiment of the present disclosure, the method for determining the first correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal may include:

[0054] The first correlation coefficient between the left channel signal and the right channel signal is determined based on Formula 3; Formula 3 is:

[0055]

[0056] Among them, η (LR) is the correlation coefficient between the left channel signal and the right channel signal of the current frame, L(n) is the nth sample point of the left channel signal of the current frame, is the average value of all samples of the left channel signal of the current frame, R(n) is the nth sample of the right channel signal of the current frame, is the average value of all samples of the right channel signal of the current frame, N is the total number of samples of the left channel signal or the right channel signal of the current frame, that is, the frame length of the current frame.

[0057] Step 102: In response to the first cross-correlation coefficient being less than the first threshold, a first decorrelation processing mode is used to perform decorrelation processing on the current frame of the stereo audio signal to obtain a two-channel signal after the decorrelation processing, a second cross-correlation coefficient of the two-channel signal after the decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, a flag is determined to be a first value, and a coded bitstream is obtained based on the two-channel signal after the decorrelation processing and the flag is written into the coded bitstream.

[0058] In one embodiment of the present disclosure, the first threshold may be pre-set, and the value range of the first threshold is (-1, 0). For example, in one embodiment of the present disclosure, the first threshold may be between [-0.5, -0.1]. Specifically, in one embodiment of the present disclosure, the first threshold may be -0.3.

[0059] And, in one embodiment of the present disclosure, in response to the first correlation coefficient being less than the first threshold, it means that the left channel signal and the right channel signal of the current frame are negatively correlated, that is, the current frame is a partially inverted signal. At this time, the first decorrelation processing method can be used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signals after decorrelation processing. Among them, in one embodiment of the present disclosure, the first decorrelation processing method can be a first sum and difference downmixing process. Specifically, the first sum and difference downmixing process can include: processing the left channel signal and the right channel signal based on formula one to obtain a main channel signal and a secondary channel signal; formula one is:

[0060]

[0061] Among them, Mid(n) is the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the secondary channel signal in the two-channel signal after decorrelation processing, L(n) is the left channel signal, and R(n) is the right channel signal.

[0062] It can be seen from this that the embodiment of the present disclosure will determine whether the current frame of the stereo audio signal is a partially inverted signal, and, in response to determining that the current frame of the stereo audio signal is a partially inverted signal, adopt the first decorrelation processing method corresponding to the partially inverted signal to decorrelate the current frame of the stereo audio signal to obtain a two-channel signal after decorrelation processing, thereby greatly improving the encoding compression rate of the partially inverted signal.

[0063] Furthermore, it should be noted that in a communication system, there may be a situation where "the correlation of the two-channel signals after decorrelation processing obtained after decorrelation processing of the audio signal is greater than or equal to the correlation of the two-channel signals before decorrelation processing", that is, the decorrelation processing does not achieve the purpose of "decorrelation". Therefore, in one embodiment of the present disclosure, after performing the first decorrelation processing on the current frame to obtain the two-channel signals after decorrelation processing, the second cross-correlation coefficient of the two-channel signals after decorrelation processing can be further calculated, and by determining the size relationship between the second cross-correlation coefficient (i.e., the cross-correlation coefficient after decorrelation processing) and the first cross-correlation coefficient (i.e., the cross-correlation coefficient before decorrelation processing), it is determined whether the first decorrelation processing achieves the purpose of "decorrelation".

[0064] Among them, in one embodiment of the present disclosure, the method of calculating the second cross-correlation coefficient of the two-channel signals after decorrelation processing may include:

[0065] The second correlation coefficient is determined based on Formula 4; Formula 4 may be:

[0066]

[0067] Among them, η (MS) is the second cross-correlation coefficient, Mid(n) is the nth sample point of the main channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the nth sample of the secondary channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the sub-channel signal in the two-channel signal after decorrelation processing, N is the total number of samples of the left channel signal or the right channel signal in the current frame, that is, the frame length of the current frame.

[0068] And, in one embodiment of the present disclosure, in response to the first cross-correlation coefficient being smaller than the second cross-correlation coefficient, it is considered that the first decorrelation processing method has achieved the purpose of “decorrelation”.

[0069] Specifically, it should be recognized that the magnitude of the correlation between signals is positively correlated with the absolute value of the correlation coefficient, and that for a partially inverted signal with a negative correlation coefficient, the smaller the correlation coefficient value and the larger the absolute value of the correlation coefficient, the better the negative correlation.

[0070] Based on this, in one embodiment of the present disclosure, since the current frame of the stereo audio signal is a partially inverted signal, at this time, if the first correlation coefficient is less than the second correlation coefficient, it means that the negative correlation of the two channel signals before executing the first decorrelation processing method is higher than the negative correlation of the two channel signals after executing the first decorrelation processing method, so it can be determined that the first decorrelation processing method has achieved the purpose of "decorrelation".

[0071] And, in one embodiment of the present disclosure, in response to determining that the first decorrelation processing method achieves the purpose of "decorrelation", a coded bit stream can be obtained based on the two-channel signal after decorrelation processing. Figure 1b A flowchart of obtaining a coded bit stream based on two-channel signals after decorrelation processing provided by an embodiment of the present disclosure is shown in FIG. Figure 1b As shown, the method for obtaining the coded bit stream based on the two-channel signal after decorrelation processing can be:

[0072] The two-channel signals after decorrelation processing are divided into bands by integer lifting wavelet decomposition to obtain each sub-band signal, and the LPC (Linear Prediction Coefficient) parameters of the two-channel signals after decorrelation processing are calculated and quantized to obtain quantized LPC parameters, and then the linear predictor is used to predict each sub-band signal based on the quantized LPC parameters to generate a prediction residual signal, and the prediction residual signal is normalized by the preprocessor to generate a normalized output signal, an LSB (Least Significant Bit) signal and a signal sign bit. The normalized output signal corresponding to each sub-band signal is entropy encoded by an entropy encoder to generate a coded bit stream, and then the coded bit stream, LSB signal, signal sign bit, quantized LPC parameters and wavelet edge information are multiplexed to obtain a coded bit stream.

[0073] Furthermore, in one embodiment of the present disclosure, in response to determining the encoded code stream, a flag bit can be determined to be a first value (for example, it can be 0), and the first value can be used to indicate that the decorrelation processing adopted by the encoding device is a first decorrelation processing method, and the flag bit can be written into the encoded code stream and sent to the decoding device, so that the decoding device can adopt the corresponding decorrelation reconstruction method to perform decorrelation reconstruction based on the flag bit.

[0074] In addition, it should be noted that, in an embodiment of the present disclosure, different frames of the stereo audio signal may correspond to different first thresholds. In response to the different first thresholds corresponding to different frames, the first correlation coefficient between the left channel signal and the right channel signal of the current frame is specifically compared with the first threshold corresponding to the current frame.

[0075] It should also be noted that the above content of this embodiment describes the processing of the stereo audio signal based on the mutual correlation between the left channel signal and the right channel signal of the current frame of the stereo audio signal. In another embodiment of the present disclosure, the stereo audio signal can also be processed based on the phase between the left channel signal and the right channel signal of the current frame of the stereo audio signal. Specifically, the first phase between the left channel signal and the right channel signal of the current frame can be determined first. If the first phase between the left channel signal and the right channel signal of the current frame is between the first interval, it is determined that the current frame of the stereo audio signal is a phase-inverted signal, and the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and the second phase of the two-channel signal after decorrelation processing is calculated. In response to the first phase being greater than the second phase, it is indicated that the first decorrelation processing method achieves the purpose of "decorrelation", and the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Wherein, the first interval can be [135°, 180°].

[0076] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and when the first cross-correlation coefficient is less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, when the first cross-correlation coefficient is less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so when the first cross-correlation coefficient is less than the first threshold, it means that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0077] Figure 2 A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by an encoding device, such as Figure 2 As shown, the stereo audio signal processing method may include the following steps:

[0078] Step 201: Determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal.

[0079] For the relevant introduction of step 201, please refer to the above embodiment description, and the embodiment of the present disclosure will not be described in detail here.

[0080] Step 202: In response to the first cross-correlation coefficient being greater than the second threshold, a second cross-correlation processing mode is used to perform a cross-correlation processing on the current frame of the stereo audio signal to obtain a two-channel signal after the cross-correlation processing, a third cross-correlation coefficient of the two-channel signal after the cross-correlation processing is calculated, and in response to the first cross-correlation coefficient being greater than the third cross-correlation coefficient, a flag is determined to be a second value, and a coded bitstream is obtained based on the two-channel signal after the cross-correlation processing and the flag is written into the coded bitstream.

[0081] In one embodiment of the present disclosure, the second threshold may be pre-set, and the value range of the second threshold may be (0, 1). For example, in one embodiment of the present disclosure, the second threshold may be between [0.1, 0.5]. Specifically, in one embodiment of the present disclosure, the second threshold may be 0.3.

[0082] And, in one embodiment of the present disclosure, in response to the second correlation coefficient being greater than the first threshold, it indicates that there is a positive correlation between the left channel signal and the right channel signal of the current frame, that is, the current frame is a biased positive phase signal. At this time, a second decorrelation processing method can be used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signals after decorrelation processing. Among them, in one embodiment of the present disclosure, the second decorrelation processing method can be a second sum-difference downmixing process. Specifically, the second sum-difference downmixing process can include: processing the left channel signal and the right channel signal based on formula two to obtain a main channel signal and a secondary channel signal; formula two is:

[0083]

[0084] Among them, Mid(n) is the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the secondary channel signal in the two-channel signal after decorrelation processing, L(n) is the left channel signal, and R(n) is the right channel signal.

[0085] It can be seen that the embodiment of the present disclosure will determine whether the current frame of the stereo audio signal is a positive phase signal, and in response to determining that the current frame of the stereo audio signal is a positive phase signal, the second decorrelation processing method corresponding to the positive phase signal is used to decorrelate the current frame of the stereo audio signal to obtain a two-channel signal after decorrelation processing, thereby greatly improving the encoding compression rate of the positive phase signal.

[0086] Furthermore, it should be noted that in a communication system, there may be a situation where "the correlation of the two-channel signals after decorrelation processing obtained after decorrelation processing of the audio signal is greater than or equal to the correlation before decorrelation processing", that is, the decorrelation processing does not achieve the purpose of "decorrelation". Therefore, in one embodiment of the present disclosure, after performing the second decorrelation processing on the current frame to obtain the two-channel signals after decorrelation processing, the third cross-correlation coefficient of the two-channel signals after decorrelation processing can be further calculated, and by determining the size relationship between the third cross-correlation coefficient (i.e., the cross-correlation coefficient after decorrelation processing) and the first cross-correlation coefficient (i.e., the cross-correlation coefficient before decorrelation processing), it is determined whether the second decorrelation processing achieves the purpose of "decorrelation".

[0087] Among them, in one embodiment of the present disclosure, the method of calculating the third cross-correlation coefficient of the two-channel signals after decorrelation processing may include:

[0088] The third correlation coefficient is determined based on Formula 4; Formula 4 may be:

[0089]

[0090] Among them, η (MS) is the third cross-correlation coefficient, Mid(n) is the nth sample point of the main channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the nth sample of the secondary channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the sub-channel signal in the two-channel signal after decorrelation processing, N is the total number of samples of the left channel signal or the right channel signal in the current frame, that is, the frame length of the current frame.

[0091] And, in one embodiment of the present disclosure, in response to the first cross-correlation coefficient being greater than the third cross-correlation coefficient, it is considered that the second decorrelation processing method has achieved the purpose of “decorrelation”.

[0092] Specifically, it should be recognized that the magnitude of the correlation between signals is positively correlated with the absolute value of the correlation coefficient, and that for a positive-phase signal with a positive correlation coefficient, the smaller the correlation coefficient value and the smaller the absolute value of the correlation coefficient, the worse the positive correlation.

[0093] Based on this, since the current frame of the stereo audio signal is a positive phase signal, at this time, if the first cross-correlation coefficient is greater than the third cross-correlation coefficient, it means that the positive correlation of the two channel signals before the second decorrelation processing method is executed is higher than the positive correlation of the two channel signals after the second decorrelation processing method is executed, so it can be determined that the second decorrelation processing method has achieved the purpose of "decorrelation".

[0094] Furthermore, in one embodiment of the present disclosure, in response to determining that the second decorrelation processing method has achieved the purpose of "decorrelation", a coded bitstream can be obtained based on the two-channel signals after decorrelation processing, and a flag bit is determined to be a second value (for example, it can be 1). The second value can be used to indicate that the decorrelation processing adopted by the encoding end is the second decorrelation processing method, and the flag bit can be written into the coded bitstream and sent to the decoding device, so that the decoding device can adopt the corresponding decorrelation reconstruction method based on the flag bit to perform decorrelation reconstruction.

[0095] Among them, the specific method of the above-mentioned "obtaining the encoded bit stream based on the two-channel signals after decorrelation processing" can be referred to the description of the aforementioned embodiment, and the embodiment of the present disclosure will not be repeated here.

[0096] In addition, it should be noted that, in one embodiment of the present disclosure, the second thresholds corresponding to different frames of the stereo audio signal may be different. In response to the different second thresholds corresponding to different frames, the first correlation coefficient between the left channel signal and the right channel signal of the current frame may be compared with the second threshold corresponding to the current frame.

[0097] It should also be noted that the above content of this embodiment describes the processing of the stereo audio signal based on the cross-correlation between the left channel signal and the right channel signal of the current frame of the stereo audio signal. In another embodiment of the present disclosure, the stereo audio signal can also be processed based on the phase between the left channel signal and the right channel signal of the current frame of the stereo audio signal. Specifically, the first phase between the left channel signal and the right channel signal of the current frame can be determined first. If the first phase between the left channel signal and the right channel signal of the current frame is between the second interval, it is determined that the current frame of the stereo audio signal is a positive phase signal, and the second decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after the decorrelation processing, and the third phase of the two-channel signal after the decorrelation processing is calculated. In response to the first phase being greater than the third phase, it is indicated that the second decorrelation processing method achieves the purpose of "decorrelation", and the flag is determined to be the second value, and the coded code stream is obtained based on the two-channel signal after the decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Wherein, the second interval can be [0°, 45°].

[0098] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and when the first cross-correlation coefficient is less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, when the first cross-correlation coefficient is less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so when the first cross-correlation coefficient is less than the first threshold, it means that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0099] Figure 3a A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by an encoding device, such as Figure 3a As shown, the stereo audio signal processing method may include the following steps:

[0100] Step 301a: Determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal.

[0101] For the relevant introduction of step 301a, please refer to the above embodiment description, and the embodiment of the present disclosure will not be described in detail here.

[0102] Step 302a, in response to the first cross-correlation coefficient being greater than or equal to the first threshold and less than or equal to the second threshold, directly determining the current frame of the stereo audio signal as a two-channel signal after decorrelation processing, determining the flag bit to be a third value, and obtaining a coded bitstream based on the two-channel signal after decorrelation processing and writing the flag bit into the coded bitstream.

[0103] Wherein, in one embodiment of the present disclosure, the first threshold may be pre-set, and the value range of the first threshold is (-1, 0). By way of example, in one embodiment of the present disclosure, the first threshold may be between [-0.5, -0.1]. Specifically, in one embodiment of the present disclosure, the first threshold may be -0.3. And, in one embodiment of the present disclosure, the second threshold may be pre-set, and the value range of the second threshold may be (0, 1). By way of example, in one embodiment of the present disclosure, the second threshold may be between [0.1, 0.5]. Specifically, in one embodiment of the present disclosure, the second threshold may be 0.3.

[0104] Further, in an embodiment of the present disclosure, when the first correlation coefficient is greater than or equal to the first threshold value and less than or equal to the second threshold value, it indicates that there is no correlation between the left channel signal and the right channel signal of the current frame. At this time, there is no need to perform decorrelation processing on the current frame of the stereo audio signal, and the current frame of the stereo audio signal is directly determined as a two-channel signal after decorrelation processing, and a coded bit stream is obtained based on the two-channel signal after decorrelation processing, and the flag is determined to be a third value (for example, it can be 2), and the third value can be used to indicate that the encoding end does not adopt decorrelation processing, and the flag can be written into the coded bit stream and sent to the decoding device, so that the decoding device can perform corresponding decorrelation reconstruction based on the flag.

[0105] Among them, the specific method of the above-mentioned "obtaining the encoded bit stream based on the two-channel signals after decorrelation processing" can be referred to the description of the aforementioned embodiment, and the embodiment of the present disclosure will not be repeated here.

[0106] It should also be noted that the above content of this embodiment describes the processing of the stereo audio signal based on the mutual correlation between the left channel signal and the right channel signal of the current frame of the stereo audio signal. In another embodiment of the present disclosure, the stereo audio signal can also be processed based on the phase between the left channel signal and the right channel signal of the current frame of the stereo audio signal. Specifically, the first phase between the left channel signal and the right channel signal of the current frame can be determined first. If the first phase between the left channel signal and the right channel signal of the current frame is between the third interval, it is determined that the current frame of the stereo audio signal is an unrelated signal, and the current frame of the stereo audio signal is directly determined as a two-channel signal after decorrelation processing, and the flag is determined to be the third value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Wherein, the third interval can be (45°, 135°).

[0107] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and in response to the first cross-correlation coefficient being less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0108] Figure 3b A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by an encoding device, such as Figure 3b As shown, the stereo audio signal processing method may include the following steps:

[0109] Step 301b: determine a first correlation coefficient between the left channel signal and the right channel signal of the current frame of the stereo audio signal.

[0110] For the relevant introduction of step 301b, please refer to the above embodiment description, and the embodiment of the present disclosure will not be described in detail here.

[0111] Step 302b: in response to the first cross-correlation coefficient being less than the first threshold, performing decorrelation processing on the current frame of the stereo audio signal using the first decorrelation processing mode to obtain a two-channel signal after decorrelation processing, calculating a second cross-correlation coefficient of the two-channel signal after decorrelation processing, in response to the first cross-correlation coefficient being greater than or equal to the second cross-correlation coefficient, directly determining the current frame of the stereo audio signal as the two-channel signal after decorrelation processing, determining the flag bit to be a third value, and obtaining a coded bitstream based on the two-channel signal after decorrelation processing and writing the flag bit into the coded bitstream.

[0112] For a detailed introduction to the first threshold, the first decorrelation processing method, the first correlation coefficient and the second correlation coefficient, reference may be made to the above-mentioned embodiment description, which will not be elaborated in detail in the embodiment of the present disclosure.

[0113] And, in an embodiment of the present disclosure, in response to the first cross-correlation coefficient being less than the first threshold and the first cross-correlation coefficient being greater than or equal to the second cross-correlation coefficient, it is considered that the first decorrelation processing manner has not achieved the purpose of "decorrelation".

[0114] Specifically, referring to the above content, it can be known that, in response to the first cross-correlation coefficient being less than the first threshold value, it indicates that the current frame of the stereo audio signal is a partial anti-phase signal (i.e., the smaller the correlation coefficient, the higher the negative correlation). At this time, if the first cross-correlation coefficient (i.e., the cross-correlation coefficient before decorrelation processing) is greater than or equal to the second cross-correlation coefficient (i.e., the cross-correlation coefficient after decorrelation processing), it indicates that the negative correlation of the two-channel signals before executing the first decorrelation processing mode is lower than the negative correlation of the two-channel signals after executing the first decorrelation processing mode, so it can be determined that the first decorrelation processing mode does not achieve the purpose of "decorrelation".

[0115] Based on this, in one embodiment of the present disclosure, in response to determining that the first decorrelation processing method has not achieved the purpose of "decorrelation", if the encoding operation is continued based on the decorrelation processing of the two-channel signal obtained by the first decorrelation processing method, the encoding compression rate will be greatly reduced. Therefore, in the embodiment of the present disclosure, the current frame of the stereo audio signal can be directly determined as the two-channel signal after decorrelation processing, and the flag bit is determined to be a third value (for example, it can be 2), and the encoded code stream is obtained based on the two-channel signal after decorrelation processing and the flag bit is written into the encoded code stream and sent to the decoding device to ensure the subsequent encoding compression rate. Among them, the relevant introduction of this part of the content can refer to the description of the aforementioned embodiment, and the embodiment of the present disclosure will not be repeated here.

[0116] It should also be noted that the above content of this embodiment describes the processing of the stereo audio signal based on the cross-correlation between the left channel signal and the right channel signal of the current frame of the stereo audio signal. In another embodiment of the present disclosure, the stereo audio signal can also be processed based on the phase between the left channel signal and the right channel signal of the current frame of the stereo audio signal. Specifically, the first phase between the left channel signal and the right channel signal of the current frame can be determined first. If the first phase between the left channel signal and the right channel signal of the current frame is between the first interval, it is determined that the current frame of the stereo audio signal is a phase-inverted signal, and the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and the second phase of the two-channel signal after decorrelation processing is calculated. In response to the first phase being less than or equal to the second phase, it is indicated that the first decorrelation processing method has not achieved the purpose of "decorrelation", then the current frame of the stereo audio signal is directly determined as the two-channel signal after decorrelation processing, and the flag is determined to be a third value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. The first interval may be [135°, 180°].

[0117] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and when the first cross-correlation coefficient is less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0118] Figure 3c A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by an encoding device, such as Figure 3c As shown, the stereo audio signal processing method may include the following steps:

[0119] Step 301c: determine a first correlation coefficient between the left channel signal and the right channel signal of the current frame of the stereo audio signal.

[0120] For the relevant introduction of step 301c, please refer to the description of the above embodiment, and the embodiment of the present disclosure will not be described in detail here.

[0121] Step 302c: in response to the first cross-correlation coefficient being greater than the second threshold, performing decorrelation processing on the current frame of the stereo audio signal using the second decorrelation processing mode to obtain a two-channel signal after the decorrelation processing, calculating a third cross-correlation coefficient of the two-channel signal after the decorrelation processing, in response to the first cross-correlation coefficient being less than or equal to the third cross-correlation coefficient, directly determining the current frame of the stereo audio signal as the two-channel signal after the decorrelation processing, determining the flag bit to be the third value, and obtaining a coded bitstream based on the two-channel signal after the decorrelation processing and writing the flag bit into the coded bitstream.

[0122] For detailed descriptions of the second threshold, the second decorrelation processing method, the first correlation coefficient and the third correlation coefficient, reference may be made to the above-mentioned embodiment description, which will not be elaborated in detail in the embodiment of the present disclosure.

[0123] And, in an embodiment of the present disclosure, in response to the first correlation coefficient being greater than the second threshold and the first correlation coefficient being less than or equal to the third correlation coefficient, it is considered that the first decorrelation processing manner has not achieved the purpose of "decorrelation".

[0124] Specifically, referring to the above content, it can be known that, in response to the first cross-correlation coefficient being greater than the second threshold value, it indicates that the current frame of the stereo audio signal is a positive phase signal (i.e., the larger the correlation coefficient, the higher the positive correlation). At this time, if the first cross-correlation coefficient (i.e., the cross-correlation coefficient before decorrelation processing) is less than or equal to the third cross-correlation coefficient (i.e., the cross-correlation coefficient after decorrelation processing), it indicates that the positive correlation of the two-channel signals before the second decorrelation processing is performed is less than or equal to the positive correlation of the two-channel signals after the second decorrelation processing is performed, so it can be determined that the second decorrelation processing method does not achieve the purpose of "decorrelation".

[0125] Based on this, in one embodiment of the present disclosure, in response to determining that the second decorrelation processing method has not achieved the purpose of "decorrelation", if the encoding operation is continued based on the decorrelation processing two-channel signal obtained by the second decorrelation processing method, the encoding compression rate will be greatly reduced. Therefore, in the embodiment of the present disclosure, the current frame of the stereo audio signal can be directly determined as the two-channel signal after decorrelation processing, the flag bit is determined to be a third value (for example, it can be 2), and the encoded code stream is obtained based on the two-channel signal after decorrelation processing and the flag bit is written into the encoded code stream and sent to the decoding device. Among them, the relevant introduction of this part of the content can refer to the description of the aforementioned embodiment, and the embodiment of the present disclosure will not be repeated here.

[0126] It should also be noted that the above content of this embodiment describes the processing of the stereo audio signal based on the cross-correlation between the left channel signal and the right channel signal of the current frame of the stereo audio signal. In another embodiment of the present disclosure, the stereo audio signal can also be processed based on the phase between the left channel signal and the right channel signal of the current frame of the stereo audio signal. Specifically, the first phase between the left channel signal and the right channel signal of the current frame can be determined first. If the first phase between the left channel signal and the right channel signal of the current frame is between the second interval, it is determined that the current frame of the stereo audio signal is a positive phase signal, and the second decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after the decorrelation processing, and the third phase of the two-channel signal after the decorrelation processing is calculated. In response to the first phase being less than or equal to the third phase, it is indicated that the second decorrelation processing method has not achieved the purpose of "decorrelation", and the current frame of the stereo audio signal is directly determined as the two-channel signal after the decorrelation processing, and the flag is determined to be the third value, and the coded code stream is obtained based on the two-channel signal after the decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. The first interval may be [0°, 45°].

[0127] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and in response to the first cross-correlation coefficient being less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that, in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate, and the embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0128] Figure 4a A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by a decoding device, such as Figure 4a As shown, the stereo audio signal processing method may include the following steps:

[0129] Step 401: Obtain the encoded bitstream sent by the encoding device.

[0130] Step 402: Determine the decorrelation-processed two-channel signals and the flag bit based on the coded bit stream.

[0131] in, Figure 4b A flowchart of determining a decorrelation-processed two-channel signal based on a coded bit stream provided by an embodiment of the present disclosure is shown in FIG. Figure 4b As shown, the method for determining the decorrelation-processed two-channel signals based on the coded bit stream may be:

[0132] After obtaining the coded bitstream, the coded bitstream is first parsed to obtain the coded bitstream, flag bit, LSB signal, sign bit signal, quantized LPC parameters and wavelet edge information, and then the coded bitstream is entropy decoded by an entropy decoder to obtain a decoded signal, and then the decoded signal is processed by a post-processor based on the LSB signal and the sign bit signal to generate a prediction residual. After that, the prediction residual is reconstructed by a linear predictor according to the quantized LPC parameters to generate each sub-band signal, and then the integer lifting wavelet is used to reconstruct each sub-band signal based on the wavelet edge information to obtain the two-channel signal after decorrelation processing.

[0133] Step 403: In response to the flag bit being the first value, a first decorrelation reconstruction method is used to decorrelate and reconstruct the two-channel signals after decorrelation processing, and the decorrelation and reconstructed audio signals are output.

[0134] In one embodiment of the present disclosure, in response to the flag being a first value (e.g., 0), it indicates that the encoding device is decorrelating the stereo audio signal using a first decorrelation processing method. Based on this, a first decorrelation reconstruction method corresponding to the first decorrelation processing method can be used to decorrelate and reconstruct the two-channel signal after decorrelation processing, and output the decorrelation reconstructed audio signal.

[0135] In one embodiment of the present disclosure, the two-channel signal after decorrelation processing may include a primary channel signal and a secondary channel signal. And, the first decorrelation reconstruction method may include: decorrelation reconstruction of the two-channel signal after decorrelation processing based on Formula 5; Formula 5 is:

[0136]

[0137] Among them, Mid(n) is the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the secondary channel signal in the two-channel signal after decorrelation processing, L(n) is the left channel signal, and R(n) is the right channel signal.

[0138] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and in response to the first cross-correlation coefficient being less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0139] Figure 5 A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by a decoding device, such as Figure 5 As shown, the stereo audio signal processing method may include the following steps:

[0140] Step 501: Obtain the encoded bitstream sent by the encoding device.

[0141] Step 502: Determine the two-channel signals and the flag after decorrelation processing based on the encoded bit stream.

[0142] Among them, the relevant introduction of steps 501-502 can be referred to the description of the above embodiment, and the embodiment of the present disclosure will not be repeated here.

[0143] Step 503: In response to the flag bit being a second value, a second decorrelation reconstruction method is used to decorrelate and reconstruct the two-channel signals after decorrelation processing, and the decorrelation and reconstructed audio signals are output.

[0144] In one embodiment of the present disclosure, in response to the flag bit being a second value (e.g., 1), it indicates that the encoding device is decorrelating the stereo audio signal using a second decorrelation processing method. Based on this, a second decorrelation reconstruction method corresponding to the second decorrelation processing method can be used to decorrelate and reconstruct the two-channel signal after decorrelation processing, and output the decorrelation reconstructed audio signal.

[0145] In one embodiment of the present disclosure, the two-channel signal after decorrelation processing may include a primary channel signal and a secondary channel signal. And, the second decorrelation reconstruction method may include: decorrelation reconstruction of the two-channel signal after decorrelation processing based on formula 6; formula 6 is:

[0146]

[0147] Among them, Mid(n) is the main channel signal of the two-channel signal after decorrelation processing, Sid(n) is the sub-channel signal of the two-channel signal after decorrelation processing, L(n) is the left channel signal, and R(n) is the right channel signal.

[0148] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and in response to the first cross-correlation coefficient being less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0149] Figure 6 A schematic flow chart of a stereo audio signal processing method provided by an embodiment of the present disclosure, the method is executed by a decoding device, such as Figure 6 As shown, the stereo audio signal processing method may include the following steps:

[0150] Step 601: Obtain the encoded bitstream sent by the encoding device.

[0151] Step 602: Determine the two-channel signals and the flag after decorrelation processing based on the encoded bit stream.

[0152] Among them, the relevant introduction of steps 601-602 can be referred to the description of the above embodiment, and the embodiment of the present disclosure will not be repeated here.

[0153] Step 603: In response to the flag bit being the third value, directly determine the decorrelation-processed two-channel signal as the decorrelation-reconstructed audio signal.

[0154] In one embodiment of the present disclosure, in response to the flag bit being the third value (eg, 2), it indicates that the encoding device has not performed decorrelation processing. Based on this, the two-channel signal after decorrelation processing can be directly determined as the decorrelation reconstructed audio signal.

[0155] In summary, in the stereo audio signal processing method provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and in response to the first cross-correlation coefficient being less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0156] Figure 7 A schematic diagram of the structure of a stereo audio signal processing device provided by an embodiment of the present disclosure, which is applied to an encoding end, such as Figure 7 As shown, the apparatus 700 may include:

[0157] A determination module 701, configured to determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal;

[0158] The processing module 702 is configured to, in response to the first cross-correlation coefficient being less than a first threshold, perform a decorrelation process on the current frame of the stereo audio signal using a first decorrelation processing mode to obtain a two-channel signal after the decorrelation process, calculate a second cross-correlation coefficient of the two-channel signal after the decorrelation process, determine a flag bit to be a first value in response to the first cross-correlation coefficient being less than a second cross-correlation coefficient, and obtain a coded bitstream based on the two-channel signal after the decorrelation process and write the flag bit into the coded bitstream and send it to a decoding device, wherein the value range of the first threshold is (-1, 0).

[0159] In summary, in the stereo audio signal processing device provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and in response to the first cross-correlation coefficient being less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0160] Optionally, in an embodiment of the present disclosure, the first decorrelation processing method includes a first sum and difference downmixing process.

[0161] Optionally, in an embodiment of the present disclosure, the first sum and difference downmixing process includes:

[0162] The left channel signal and the right channel signal are processed based on formula one to obtain a main channel signal and a secondary channel signal; the formula one is:

[0163]

[0164] Among them, Mid(n) is the main channel signal, Sid(n) is the secondary channel signal, L(n) is the left channel signal, and R(n) is the right channel signal.

[0165] Optionally, in one embodiment of the present disclosure, the device is further used for:

[0166] In response to the first cross-correlation coefficient being greater than a second threshold, a second cross-correlation processing mode is used to perform a cross-correlation processing on the current frame of the stereo audio signal to obtain a two-channel signal after the cross-correlation processing, and a third cross-correlation coefficient of the two-channel signal after the cross-correlation processing is calculated. In response to the first cross-correlation coefficient being greater than the third cross-correlation coefficient, a flag is determined to be a second value, and a coded bitstream is obtained based on the two-channel signal after the cross-correlation processing and the flag is written into the coded bitstream. The value range of the second threshold is (0, 1).

[0167] Optionally, in an embodiment of the present disclosure, the second decorrelation processing method includes a second sum-and-difference downmixing process.

[0168] Optionally, in an embodiment of the present disclosure, the second sum and difference downmixing process includes:

[0169] The left channel signal and the right channel signal are processed based on Formula 2 to obtain a main channel signal; Formula 2 is:

[0170]

[0171] Among them, Mid(n) is the main channel signal, Sid(n) is the secondary channel signal, L(n) is the left channel signal, and R(n) is the right channel signal.

[0172] Optionally, in one embodiment of the present disclosure, the device is further used for:

[0173] In response to the first cross-correlation coefficient being greater than or equal to the first threshold and less than or equal to the second threshold, or the first cross-correlation coefficient being less than the first threshold and the first cross-correlation coefficient being greater than or equal to the second cross-correlation coefficient, or the first cross-correlation coefficient being greater than the second threshold and the first cross-correlation coefficient being less than or equal to the third cross-correlation coefficient, directly determining the current frame of the stereo audio signal as a two-channel signal after decorrelation processing, determining a flag bit to be a third value, and obtaining a coded bitstream based on the two-channel signal after decorrelation processing and writing the flag bit into the coded bitstream.

[0174] Optionally, in an embodiment of the present disclosure, the determining module is further configured to:

[0175] The first correlation coefficient of the left channel signal and the right channel signal is determined based on Formula 3; the Formula 3 is:

[0176]

[0177] Among them, η (LR) is the correlation coefficient between the left channel signal and the right channel signal of the current frame, L(n) is the nth sample point of the left channel signal of the current frame, is the average value of all samples of the left channel signal of the current frame, R(n) is the nth sample of the right channel signal of the current frame, is the average value of all samples of the right channel signal of the current frame, N is the total number of samples of the left channel signal or the right channel signal of the current frame, that is, the frame length of the current frame.

[0178] Optionally, in an embodiment of the present disclosure, the two-channel signal after decorrelation processing includes a primary channel signal and a secondary channel signal;

[0179] The device is also used for:

[0180] The second correlation coefficient and the third correlation coefficient are determined based on Formula 4; the Formula 4 is:

[0181]

[0182] Among them, η (MS) is the second cross-correlation coefficient or the third cross-correlation coefficient, Mid(n) is the nth sample point of the main channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the nth sample of the secondary channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the sub-channel signal in the two-channel signal after decorrelation processing, N is the total number of samples of the left channel signal or the right channel signal in the current frame, that is, the frame length of the current frame.

[0183] In summary, in the stereo audio signal processing device provided by the embodiment of the present disclosure, the first cross-correlation coefficient of the left channel signal and the right channel signal of the current frame of the stereo audio signal is first determined, and in response to the first cross-correlation coefficient being less than the first threshold, the first decorrelation processing method is used to decorrelate the current frame of the stereo audio signal to obtain the two-channel signal after decorrelation processing, and then the second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, and in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, the flag is determined to be the first value, and the coded code stream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded code stream and sent to the decoding device. Among them, in the embodiment of the present disclosure, the value range of the first threshold is (-1, 0), so that in response to the first cross-correlation coefficient being less than the first threshold, it is indicated that the current frame of the stereo audio signal is a partial inverted signal. At this time, the first decorrelation processing method will be used for the partial inverted signal to ensure the subsequent compression rate. The embodiment of the present disclosure provides a determination method and a decorrelation processing method for the partial inverted signal, which greatly improves the coding compression rate of the partial inverted signal.

[0184] Figure 8 A schematic diagram of the structure of a stereo audio signal processing device provided by an embodiment of the present disclosure, which is applied to a decoding end such as Figure 8 As shown, the apparatus 800 may include:

[0185] The acquisition module 801 is used to acquire the encoding bit stream sent by the encoding device;

[0186] A determination module 802, configured to determine the two-channel signals and the flag after decorrelation processing based on the coded bit stream;

[0187] The processing module 803 is configured to, in response to the flag bit being a first value, perform decorrelation reconstruction on the decorrelation-processed two-channel signals by adopting a first decorrelation reconstruction method, and output the decorrelation-reconstructed audio signals.

[0188] Optionally, in an embodiment of the present disclosure, the first decorrelation reconstruction method includes:

[0189] The decorrelation reconstruction is performed on the two-channel signals after the decorrelation processing based on Formula 5; the Formula 5 is:

[0190]

[0191] Among them, Mid(n) is the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the secondary channel signal in the two-channel signal after decorrelation processing, L(n) is the left channel signal, and R(n) is the right channel signal.

[0192] Optionally, in one embodiment of the present disclosure, the device is further used for:

[0193] In response to the flag bit being a second value, a second decorrelation reconstruction method is used to decorrelate and reconstruct the decorrelation-processed two-channel signals, and the decorrelation-reconstructed audio signals are output.

[0194] Optionally, in an embodiment of the present disclosure, the second decorrelation reconstruction method includes:

[0195] The decorrelation reconstruction is performed on the two-channel signals after the decorrelation processing based on Formula 6; the Formula 6 is:

[0196]

[0197] Among them, Mid(n) is the main channel signal of the two-channel signal after decorrelation processing, Sid(n) is the sub-channel signal of the two-channel signal after decorrelation processing, L(n) is the left channel signal, and R(n) is the right channel signal.

[0198] Optionally, in one embodiment of the present disclosure, the device is further used for:

[0199] In response to the flag bit being a third value, the decorrelation-processed two-channel signal is directly determined as a decorrelation-reconstructed audio signal.

[0200] Fig. 9 1 is a block diagram of a user equipment UE900 provided by an embodiment of the present disclosure. For example, UE900 may be a mobile phone, a computer, a digital broadcast terminal device, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0201] Reference Fig. 9 UE 900 may include at least one of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 913 , and a communication component 916 .

[0202] The processing component 902 generally controls the overall operation of the UE 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include at least one processor 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include at least one module to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.

[0203] The memory 904 is configured to store various types of data to support the operation of the UE 900. Examples of such data include instructions for any application or method operating on the UE 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0204] The power component 906 provides power to various components of the UE 900. The power component 906 may include a power management system, at least one power supply, and other components associated with generating, managing, and distributing power for the UE 900.

[0205] The multimedia component 908 includes a screen that provides an output interface between the UE900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes at least one touch sensor to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the wake-up time and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the UE900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0206] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the UE 900 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0207] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0208] The sensor component 913 includes at least one sensor for providing various aspects of status assessment for the UE 900. For example, the sensor component 913 can detect the open / closed state of the device 900, the relative positioning of the components, such as the display and keypad of the UE 900, and the sensor component 913 can also detect the position change of the UE 900 or a component of the UE 900, the presence or absence of contact between the user and the UE 900, the orientation or acceleration / deceleration of the UE 900, and the temperature change of the UE 900. The sensor component 913 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 913 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 913 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0209] The communication component 916 is configured to facilitate wired or wireless communication between the UE 900 and other devices. The UE 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0210] In an exemplary embodiment, UE900 may be implemented by at least one application-specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component to perform the above method.

[0211] Fig.10 1 is a block diagram of a network side device 1000 provided in an embodiment of the present disclosure. For example, the network side device 1000 may be provided as a network side device. Fig.10 The network side device 1000 includes a processing component 1011, which further includes at least one processor, and a memory resource represented by a memory 1032, for storing instructions executable by the processing component 1022, such as an application. The application stored in the memory 1032 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1010 is configured to execute instructions to perform the above-mentioned method. For example, the method shown in Figure 1 is applied to any method of the network side device.

[0212] The network side device 1000 may also include a power supply component 1026 configured to perform power management of the network side device 1000, a wired or wireless network interface 1050 configured to connect the network side device 1000 to a network, and an input / output (I / O) interface 1058. The network side device 1000 may operate based on an operating system stored in the memory 1032, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM or the like.

[0213] In the above embodiments provided by the present disclosure, the methods provided by the embodiments of the present disclosure are introduced from the perspectives of the network side device and the UE. In order to implement the functions in the methods provided by the above embodiments of the present disclosure, the network side device and the UE may include a hardware structure and a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. One of the above functions may be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.

[0214] In the above embodiments provided by the present disclosure, the methods provided by the embodiments of the present disclosure are introduced from the perspectives of the network side device and the UE. In order to implement the functions in the methods provided by the above embodiments of the present disclosure, the network side device and the UE may include a hardware structure and a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. One of the above functions may be executed in the form of a hardware structure, a software module, or a hardware structure plus a software module.

[0215] The present disclosure provides a communication device. The communication device may include a transceiver module and a processing module. The transceiver module may include a sending module and / or a receiving module, the sending module is used to implement a sending function, the receiving module is used to implement a receiving function, and the transceiver module may implement a sending function and / or a receiving function.

[0216] The communication device may be a terminal device (such as the terminal device in the aforementioned method embodiment), or a device in the terminal device, or a device that can be used in conjunction with the terminal device. Alternatively, the communication device may be a network device, or a device in the network device, or a device that can be used in conjunction with the network device.

[0217] Another communication device provided in an embodiment of the present disclosure. The communication device may be a network device, or a terminal device (such as the terminal device in the aforementioned method embodiment), or a chip, a chip system, or a processor that supports the network device to implement the aforementioned method, or a chip, a chip system, or a processor that supports the terminal device to implement the aforementioned method. The device may be used to implement the method described in the aforementioned method embodiment, and the details may refer to the description in the aforementioned method embodiment.

[0218] The communication device may include one or more processors. The processor may be a general-purpose processor or a dedicated processor, etc. For example, it may be a baseband processor or a central processing unit. The baseband processor may be used to process the communication protocol and communication data, and the central processing unit may be used to control the communication device (such as a network side device, a baseband chip, a terminal device, a terminal device chip, a DU or a CU, etc.), execute a computer program, and process the data of the computer program.

[0219] Optionally, the communication device may further include one or more memories, on which a computer program may be stored, and the processor executes the computer program so that the communication device performs the method described in the above method embodiment. Optionally, data may also be stored in the memory. The communication device and the memory may be provided separately or integrated together.

[0220] Optionally, the communication device may further include a transceiver and an antenna. The transceiver may be referred to as a transceiver unit, a transceiver, or a transceiver circuit, etc., and is used to implement the transceiver function. The transceiver may include a receiver and a transmitter, the receiver may be referred to as a receiver or a receiving circuit, etc., and is used to implement the receiving function; the transmitter may be referred to as a transmitter or a transmitting circuit, etc., and is used to implement the transmitting function.

[0221] Optionally, the communication device may further include one or more interface circuits. The interface circuit is used to receive code instructions and transmit them to the processor. The processor runs the code instructions to enable the communication device to execute the method described in the above method embodiment.

[0222] The communication device is a terminal device (such as the terminal device in the aforementioned method embodiment): the processor is used to execute FIG. 1- Figure 4a Any of the methods shown.

[0223] The communication device is a network device: the transceiver is used to perform Figure 5-Figure 7 Any of the methods shown.

[0224] In one implementation, the processor may include a transceiver for implementing receiving and sending functions. For example, the transceiver may be a transceiver circuit, or an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing the receiving and sending functions may be separate or integrated. The above-mentioned transceiver circuit, interface, or interface circuit may be used for reading and writing code / data, or the above-mentioned transceiver circuit, interface, or interface circuit may be used for transmitting or delivering signals.

[0225] In one implementation, the processor may store a computer program, which runs on the processor and enables the communication device to perform the method described in the above method embodiment. The computer program may be fixed in the processor, in which case the processor may be implemented by hardware.

[0226] In one implementation, the communication device may include a circuit that can implement the functions of sending or receiving or communicating in the aforementioned method embodiments. The processor and transceiver described in the present disclosure can be implemented in an integrated circuit (IC), an analog IC, a radio frequency integrated circuit RFIC, a mixed signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (nMetal-oxide-semiconductor, NMOS), P-type metal oxide semiconductor (positive channelmetal oxide semiconductor, PMOS), bipolar junction transistor (bipolar junction transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (Gas), etc.

[0227] The communication device described in the above embodiments may be a network device or a terminal device (such as the terminal device in the aforementioned method embodiment), but the scope of the communication device described in the present disclosure is not limited thereto, and the structure of the communication device may not be limited thereto. The communication device may be an independent device or may be part of a larger device. For example, the communication device may be:

[0228] (1) Independent integrated circuit IC, or chip, or chip system or subsystem;

[0229] (2) having a set of one or more ICs, and optionally, the IC set may also include a storage component for storing data and computer programs;

[0230] (3) ASIC, such as modem;

[0231] (4) Modules that can be embedded in other devices;

[0232] (5) Receivers, terminal devices, intelligent terminal devices, cellular phones, wireless devices, handheld devices, mobile units, vehicle-mounted devices, network devices, cloud devices, artificial intelligence devices, etc.;

[0233] (6)Others

[0234] In the case where the communication device may be a chip or a chip system, the chip includes a processor and an interface, wherein the number of the processors may be one or more, and the number of the interfaces may be multiple.

[0235] Optionally, the chip also includes a memory for storing necessary computer programs and data.

[0236] Those skilled in the art may also understand that the various illustrative logical blocks and steps listed in the embodiments of the present disclosure may be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the functions described for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present disclosure.

[0237] An embodiment of the present disclosure also provides a system for determining the duration of a side link, the system comprising a communication device as a terminal device in the aforementioned embodiment (such as the first terminal device in the aforementioned method embodiment) and a communication device as a network device, or the system comprising a communication device as a terminal device in the aforementioned embodiment (such as the first terminal device in the aforementioned method embodiment) and a communication device as a network device.

[0238] The present disclosure also provides a readable storage medium having instructions stored thereon, which implement the functions of any of the above method embodiments when executed by a computer.

[0239] The present disclosure also provides a computer program product, which implements the functions of any of the above method embodiments when executed by a computer.

[0240] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. When the computer program is loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer program can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0241] Those skilled in the art can understand that the various numerical numbers such as first and second involved in the present disclosure are only used for distinction for convenience of description and are not used to limit the scope of the embodiments of the present disclosure, and also indicate the order of precedence.

[0242] At least one in the present disclosure may also be described as one or more, and a plurality may be two, three, four or more, which is not limited in the present disclosure. In the embodiments of the present disclosure, for a technical feature, the technical features in the technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D", etc., and there is no order of precedence or size between the technical features described by the "first", "second", "third", "A", "B", "C" and "D".

[0243] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0244] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for processing a stereo audio signal, It is characterized in that Applicable to encoding equipment, including: Determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal; In response to the first cross-correlation coefficient being less than a first threshold, a first decorrelation processing mode is used to perform decorrelation processing on the current frame of the stereo audio signal to obtain a two-channel signal after decorrelation processing, a second cross-correlation coefficient of the two-channel signal after decorrelation processing is calculated, in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, a flag is determined to be a first value, and a coded bitstream is obtained based on the two-channel signal after decorrelation processing and the flag is written into the coded bitstream, wherein the value range of the first threshold is (-1, 0).

2. The method according to claim 1, It is characterized in that The first decorrelation processing manner includes a first sum-and-difference downmixing process.

3. The method according to claim 2, It is characterized in that The first sum and difference downmixing process comprises: The left channel signal and the right channel signal are processed based on formula one to obtain a main channel signal and a secondary channel signal; the formula one is: Among them, Mid(n) is the main channel signal, Sid(n) is the secondary channel signal, L(n) is the left channel signal, and R(n) is the right channel signal.

4. The method according to claim 1, It is characterized in that The method further comprises: In response to the first cross-correlation coefficient being greater than a second threshold, a second cross-correlation processing mode is used to perform a cross-correlation processing on the current frame of the stereo audio signal to obtain a two-channel signal after the cross-correlation processing, and a third cross-correlation coefficient of the two-channel signal after the cross-correlation processing is calculated. In response to the first cross-correlation coefficient being greater than the third cross-correlation coefficient, a flag is determined to be a second value, and a coded bitstream is obtained based on the two-channel signal after the cross-correlation processing and the flag is written into the coded bitstream. The value range of the second threshold is (0, 1).

5. The method according to claim 4, It is characterized in that The second decorrelation processing manner includes a second sum-and-difference downmixing process.

6. The method according to claim 5, It is characterized in that The second sum and difference downmixing process comprises: The left channel signal and the right channel signal are processed based on Formula 2 to obtain a main channel signal; Formula 2 is: Among them, Mid(n) is the main channel signal, Sid(n) is the secondary channel signal, L(n) is the left channel signal, and R(n) is the right channel signal.

7. The method according to claim 4, It is characterized in that The method further comprises: In response to the first cross-correlation coefficient being greater than or equal to the first threshold and less than or equal to the second threshold, or the first cross-correlation coefficient being less than the first threshold and the first cross-correlation coefficient being greater than or equal to the second cross-correlation coefficient, or the first cross-correlation coefficient being greater than the second threshold and the first cross-correlation coefficient being less than or equal to the third cross-correlation coefficient, directly determining the current frame of the stereo audio signal as a two-channel signal after decorrelation processing, determining a flag bit to be a third value, and obtaining a coded bitstream based on the two-channel signal after decorrelation processing and writing the flag bit into the coded bitstream.

8. The method according to claim 1, It is characterized in that The determining of a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal comprises: The first correlation coefficient of the left channel signal and the right channel signal is determined based on Formula 3; the Formula 3 is: Among them, η( LR ) is the correlation coefficient between the left channel signal and the right channel signal of the current frame, L(n) is the nth sample point of the left channel signal of the current frame, is the average value of all samples of the left channel signal of the current frame, R(n) is the nth sample of the right channel signal of the current frame, is the average value of all samples of the right channel signal of the current frame, N is the total number of samples of the left channel signal or the right channel signal of the current frame, that is, the frame length of the current frame.

9. The method according to claim 4, It is characterized in that The two-channel signals after decorrelation processing include a primary channel signal and a secondary channel signal; Calculating the second cross-correlation coefficient and the third cross-correlation coefficient of the two-channel signals after the decorrelation process comprises: The second correlation coefficient and the third correlation coefficient are determined based on Formula 4; the Formula 4 is: Among them, η (MS) is the second cross-correlation coefficient or the third cross-correlation coefficient, Mid(n) is the nth sample point of the main channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the nth sample of the secondary channel signal in the two-channel signal after decorrelation processing, is the average value of all samples of the sub-channel signal in the two-channel signal after decorrelation processing, N is the total number of samples of the left channel signal or the right channel signal in the current frame, that is, the frame length of the current frame.

10. A method for processing a stereo audio signal, It is characterized in that Applicable to decoding equipment, including: Acquire a coded bitstream sent by a coding device; wherein the coded bitstream is determined based on two-channel signals after decorrelation processing when the first cross-correlation coefficient is less than the second cross-correlation coefficient; the two-channel signals after decorrelation processing are obtained after decorrelation processing is performed on a current frame of a stereo audio signal using a first decorrelation processing method when the first cross-correlation coefficient is less than a first threshold, the first cross-correlation coefficient is a cross-correlation coefficient between a left channel signal and a right channel signal of the current frame of the stereo audio signal, and the second cross-correlation coefficient is a cross-correlation coefficient between the two-channel signals after the decorrelation processing; Determine the two-channel signals and the flag bit after decorrelation processing based on the coded bit stream; In response to the flag bit being a first value, a first decorrelation reconstruction mode is used to decorrelate and reconstruct the decorrelation-processed two-channel signals, and the decorrelation-reconstructed audio signals are output.

11. The method according to claim 10, It is characterized in that The first decorrelation reconstruction method includes: The decorrelation reconstruction is performed on the two-channel signals after the decorrelation processing based on Formula 5; the Formula 5 is: Among them, Mid(n) is the main channel signal in the two-channel signal after decorrelation processing, Sid(n) is the secondary channel signal in the two-channel signal after decorrelation processing, L(n) is the left channel signal, and R(n) is the right channel signal.

12. The method according to claim 10, It is characterized in that The method further comprises: In response to the flag bit being a second value, a second decorrelation reconstruction method is used to decorrelate and reconstruct the decorrelation-processed two-channel signals, and the decorrelation-reconstructed audio signals are output.

13. The method according to claim 12, It is characterized in that The second decorrelation reconstruction method includes: The decorrelation reconstruction is performed on the two-channel signals after the decorrelation processing based on Formula 6; the Formula 6 is: Among them, Mid(n) is the main channel signal of the two-channel signal after decorrelation processing, Sid(n) is the sub-channel signal of the two-channel signal after decorrelation processing, L(n) is the left channel signal, and r(n) is the right channel signal.

14. The method according to claim 10, It is characterized in that The method further comprises: In response to the flag bit being a third value, the decorrelation-processed two-channel signal is directly determined as a decorrelation-reconstructed audio signal.

15. A stereo audio signal processing device, It is characterized in that include: A determination module, used to determine a first correlation coefficient between a left channel signal and a right channel signal of a current frame of a stereo audio signal; A processing module is used for, in response to the first cross-correlation coefficient being less than a first threshold, performing decorrelation processing on the current frame of the stereo audio signal by adopting a first decorrelation processing mode to obtain a two-channel signal after decorrelation processing, calculating a second cross-correlation coefficient of the two-channel signal after decorrelation processing, in response to the first cross-correlation coefficient being less than the second cross-correlation coefficient, determining that a flag is a first value, and obtaining a coded stream based on the two-channel signal after decorrelation processing and writing the flag into the coded stream, wherein the value range of the first threshold is (-1, 0).

16. A stereo audio signal processing device, It is characterized in that include: an acquisition module, configured to acquire an encoded bitstream sent by an encoding device; wherein the encoded bitstream is determined based on two-channel signals after decorrelation processing when the first cross-correlation coefficient is less than the second cross-correlation coefficient; the two-channel signals after decorrelation processing are obtained by decorrelation processing a current frame of a stereo audio signal using a first decorrelation processing method when the first cross-correlation coefficient is less than a first threshold, the first cross-correlation coefficient is a cross-correlation coefficient between a left channel signal and a right channel signal of the current frame of the stereo audio signal, and the second cross-correlation coefficient is a cross-correlation coefficient between the two-channel signals after the decorrelation processing; A determination module, used for determining the two-channel signals and the flag bit after decorrelation processing based on the coded bit stream; The processing module is used for, in response to the flag bit being a first value, adopting a first decorrelation reconstruction method to decorrelate and reconstruct the two-channel signals after decorrelation processing, and outputting the decorrelation and reconstructed audio signals.

17. A communication device, It is characterized in that The device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor executes the computer program stored in the memory so that the device performs the method according to any one of claims 1 to 9.

18. A communication device, It is characterized in that The device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor executes the computer program stored in the memory so that the device performs the method according to any one of claims 10 to 14.

19. A communication device, It is characterized in that include: processor and interface circuits; The interface circuit is used to receive code instructions and transmit them to the processor; The processor is configured to run the code instructions to perform the method according to any one of claims 1 to 9.

20. A communication device, It is characterized in that include: processor and interface circuits; The interface circuit is used to receive code instructions and transmit them to the processor; The processor is configured to run the code instructions to execute the method according to any one of claims 10 to 14.

21. A computer-readable storage medium storing instructions, wherein when the instructions are executed, the method according to any one of claims 1 to 9 is implemented.

22. A computer-readable storage medium storing instructions, wherein when the instructions are executed, the method according to any one of claims 10 to 14 is implemented.

Citation Information

Patent Citations

  • Backward block adaptive Golomb-Rice coding and decoding method and apparatus thereof

    CN102368385A