Audio coding method and apparatus, and electronic device and storage medium
By dividing and grouping the frequency bands of the channel signals, using the target transformation matrix for decorrelation processing, and generating coding information, the problem of data waste in the multi-channel audio transmission process in the existing technology is solved, and efficient compression and compression of audio signals are achieved. Cost reduction.
Patent Information
- Application Number
- PCT/CN2024/087626
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-14
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-17
AI Technical Summary
Existing two-dimensional audio algorithms increase transmission costs during multi-channel audio transmission, resulting in a waste of data.
By dividing and grouping the frequency bands of the channel signals, the frequency domain coefficients are obtained, and based on the target transformation matrix, the frequency domain coefficients within the channel group are decorrelated to generate coding information, and finally a coded stream is generated for decoding.
It realizes the compression of multi-channel audio signals, reduces the redundancy between multi-channels, and reduces the burden of the encoder and the cost of transmission and storage.
Smart Images

Figure CN2024087626_17102024_PF_FP_ABST
Abstract
Description
Audio encoding method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 202310403661.8 filed in China on April 14, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of audio processing technology, and in particular to an audio encoding method and an audio decoding method, and apparatuses, electronic devices, storage media, computer program products, and computer programs thereof. Background Art
[0004] With the development of multimedia technology, the requirements for audio signals are becoming increasingly higher. Although existing two-dimensional mid-side audio algorithms (2D M / S) can effectively reduce data redundancy between multiple channels, they increase transmission costs and cause data waste in a variety of different audio scenarios.
[0005] Summary of the Invention
[0006] The present disclosure provides an audio encoding method and an audio decoding method, apparatus thereof, electronic device, computer-readable storage medium, computer program product, and computer program, to address issues such as waste of transmission and storage media during multi-channel audio transmission. The technical solutions disclosed are as follows:
[0007] In a first aspect, an embodiment of the present disclosure provides an audio encoding method, which is executed by an encoder, the method comprising: grouping a channel sequence to obtain multiple channel groups, each channel group including a plurality of consecutive channels in the channel sequence, and one or more identical channels existing between adjacent channel groups; performing frequency domain conversion on the audio signal of each channel in the channel sequence on a frame-by-frame basis to obtain a frequency domain coefficient of each channel per frame; determining, from a transformation matrix set, a target transformation matrix for each frequency band in a frequency band set corresponding to the channel group; performing same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group based on the target transformation matrix for each frequency band to obtain encoding information of the channel group; obtaining an encoded bitstream based on the encoding information of the channel group, and sending the encoded bitstream to a decoder for decoding.
[0008] In a second aspect, an embodiment of the present disclosure provides an audio decoding method, which is executed by a decoder, the method comprising: receiving an encoded bitstream sent by an encoder, the encoded bitstream including encoding information of multiple channel groups, the channel groups being obtained by sequentially grouping a channel sequence, each channel group including a number of consecutive channels in the channel sequence, and one or more identical channels existing between adjacent channel groups; decoding the multiple channel groups in sequence, and for a current decoded channel group, determining, based on the encoding information of the current channel group, a target decoding matrix for each frequency band in a frequency band set corresponding to the current channel group; obtaining, based on the target decoding matrix of the current channel group in each frequency band, a decoded frequency domain coefficient of the current channel group for the encoding information of the current channel group; and obtaining, based on the decoded frequency domain coefficients of the multiple channel groups, a decoded audio signal for each channel in the channel sequence.
[0009] In a third aspect, an embodiment of the present disclosure provides an audio encoding device, comprising: a channel grouping module, configured to group the channel sequence to obtain multiple channel groups, each channel group including several consecutive channels in the channel sequence, and one or more identical channels existing between adjacent channel groups; a frequency domain processing module, configured to perform frequency domain conversion on the audio signal of each channel in the channel sequence on a frame-by-frame basis to obtain frequency domain coefficients of each channel per frame; a matrix determination module, configured to determine, from a transformation matrix set, a target transformation matrix for each frequency band in a frequency band set corresponding to the channel group based on the frequency domain coefficients of each channel; an encoding module, configured to perform same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group based on the target transformation matrix for each frequency band to obtain encoding information of the channel group; and a sending module, configured to obtain an encoded code stream based on the encoding information of the channel group, and send the encoded code stream to a decoder for decoding.
[0010] In a fourth aspect, an embodiment of the present disclosure provides an audio decoding device, comprising a receiving module configured to receive an encoded bitstream sent by an encoder, the encoded bitstream including encoding information of multiple channel groups, the channel groups being obtained by sequentially grouping a channel sequence, each of the channel groups including a plurality of consecutive channels in the channel sequence, and one or more identical channels existing between adjacent channel groups; a matrix determination module configured to sequentially decode the multiple channel groups, and for a current decoded channel group, determine, based on the encoding information of the current channel group, a target decoding matrix for each frequency band in a frequency band set corresponding to the current channel group; and a decoding module configured to execute, based on the target decoding matrix of the current channel group in each frequency band, the encoding information of the current channel group to obtain a decoded frequency domain coefficient of the current channel group, and obtain a decoded audio signal for each channel in the channel sequence based on the decoded frequency domain coefficients of the multiple channel groups.
[0011] In a fifth aspect, an embodiment of the present disclosure provides an encoder comprising a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method described in the first aspect of the embodiment of the present disclosure.
[0012] In a sixth aspect, an embodiment of the present disclosure provides a decoder comprising a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method described in the second aspect of the embodiment of the present disclosure.
[0013] In a seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method described in the first aspect of the embodiment of the present disclosure.
[0014] In an eighth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method described in the second aspect of the embodiment of the present disclosure.
[0015] In a ninth aspect, an embodiment of the present disclosure provides an encoder, which includes a processor and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processor, and the processor is used to run the code instructions to enable the device to execute the method described in the first aspect above.
[0016] In a tenth aspect, an embodiment of the present disclosure provides a decoder, which includes a processor and an interface circuit. The interface circuit is used to receive code instructions and transmit them to the processor. The processor is used to run the code instructions to enable the device to execute the method described in the second aspect above.
[0017] In the eleventh aspect, an embodiment of the present disclosure provides a coding and decoding system, which includes the encoding device described in the third aspect and the decoding device described in the fourth aspect, or the system includes the encoder described in the fifth aspect and the decoder described in the sixth aspect, or the system includes the encoder described in the seventh aspect and the encoding device described in the eighth aspect, or the system includes the encoder described in the ninth aspect and the decoder described in the tenth aspect.
[0018] In a twelfth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing instructions for the above-mentioned encoder, and when the instructions are executed, the encoder executes the method described in the first aspect.
[0019] In a thirteenth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing instructions for the above-mentioned decoder, and when the instructions are executed, the decoder executes the method described in the second aspect.
[0020] In a fourteenth aspect, an embodiment of the present disclosure further provides a computer program product comprising a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.
[0021] In a fifteenth aspect, an embodiment of the present disclosure further provides a computer program product comprising a computer program, which, when executed on a computer, enables the computer to execute the method described in the second aspect above.
[0022] In a sixteenth aspect, an embodiment of the present disclosure provides a chip system comprising at least one processor and an interface for supporting a network device in implementing the functions described in the first aspect, such as determining or processing at least one of the data and information described in the above method. In one possible design, the chip system further comprises a memory for storing computer programs and data necessary for the network device. The chip system may consist of a chip alone or may include a chip and other discrete components.
[0023] In a seventeenth aspect, an embodiment of the present disclosure provides a chip system, which includes at least one processor and an interface, and is used to support a terminal device in implementing the functions involved in the second aspect, for example, determining or processing at least one of the data and information involved in the above method. In one possible design, the chip system also includes a memory, which is used to store computer programs and data necessary for the terminal device. The chip system can be composed of a chip or can include a chip and other discrete devices.
[0024] In an eighteenth aspect, an embodiment of the present disclosure provides a computer program, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.
[0025] In a nineteenth aspect, an embodiment of the present disclosure provides a computer program, which, when executed on a computer, enables the computer to execute the method described in the second aspect above.
[0026] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the encoder obtains frequency domain coefficients by dividing and grouping the channel signals into frequency bands, and the target transformation matrix of each frequency band corresponding to the channel group can be determined based on the frequency domain coefficients of each channel. The frequency domain coefficients of the channel are further decorrelated according to the target transformation matrix to obtain the coding information of the channel group, and the coded bit stream is obtained based on the coding information and then sent to the decoder for decoding. In the embodiments of the present disclosure, the frequency domain coefficients on each frequency band in the channel group are encoded by the target transformation matrix, thereby achieving compression of audio signals of multiple channels, reducing redundancy between multiple channels, reducing the burden on the encoder, and reducing transmission and storage costs.
[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the application.
[0029] Fig. 1 is a flowchart showing an audio encoding method according to an exemplary embodiment.
[0030] Fig. 2 is a flowchart showing an audio encoding method according to another exemplary embodiment.
[0031] Fig. 3 is a schematic diagram of a cross-correlation matrix according to an exemplary embodiment.
[0032] Fig. 4 is a flowchart showing an audio encoding method according to another exemplary embodiment.
[0033] Fig. 5 is a flowchart showing an audio encoding method according to another exemplary embodiment.
[0034] Fig. 6 is a schematic diagram showing an audio encoding method according to an exemplary embodiment.
[0035] Fig. 7 is a flowchart showing an audio decoding method according to an exemplary embodiment.
[0036] Fig. 8 is a flowchart showing an audio decoding method according to another exemplary embodiment.
[0037] Fig. 9 is a schematic diagram showing an audio decoding method according to an exemplary embodiment.
[0038] Fig. 10 is a flowchart showing an audio encoding method according to another exemplary embodiment.
[0039] Fig. 11 is a block diagram showing an audio encoding device according to an exemplary embodiment.
[0040] Fig. 12 is a block diagram showing an audio decoding device according to an exemplary embodiment.
[0041] Fig. 13 is a block diagram showing an audio processing apparatus according to an exemplary embodiment.
[0042] Fig. 14 is a block diagram of another audio processing chip according to an exemplary embodiment. DETAILED DESCRIPTION
[0043] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0044] The terms used in the embodiments of the present disclosure are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present disclosure. The singular forms "a," "an," and "the" used in the embodiments of the present disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0045] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0046] Depending on the context, the term "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining". For the purpose of brevity and ease of understanding, the terms "greater than" or "less than", "higher than" or "lower than" are used herein to characterize magnitude relationships. However, those skilled in the art will understand that the term "greater than" also encompasses the meaning of "greater than or equal to", and "less than" also encompasses the meaning of "less than or equal to", the term "higher than" encompasses the meaning of "higher than or equal to", and "lower than" also encompasses the meaning of "lower than or equal to".
[0047] The audio encoding / decoding method disclosed in the embodiments of the present disclosure can be applied to various communication systems, such as the third generation (3G) universal mobile telecommunications system (UMTS) long term evolution (LTE) system, the fifth generation (5G) mobile communication system, the 5G new radio (NR) system, the sixth generation (6G) mobile communication system, or other future new mobile communication systems. The audio encoding / decoding method disclosed in the embodiments of the present disclosure can also be applied to streaming media transmission systems and OTT (Over The Top) media transmission systems.
[0048] FIG1 is a flow chart of an audio encoding method provided by an embodiment of the present disclosure. The audio encoding method may be performed by an encoder. As shown in FIG1 , the method may include but is not limited to steps S101 to S105.
[0049] S101 : Grouping a channel sequence to obtain a plurality of channel groups. Each channel group includes a plurality of consecutive channels in the channel sequence. Adjacent channel groups may have one or more identical channels.
[0050] In one embodiment, the encoder may group the M channels in the channel sequence to obtain multiple channel groups. In one embodiment, each channel group includes a number of continuous channels in the channel sequence, for example, it may include 3 continuous channels. In the embodiment of the present disclosure, there are one or more identical channels between adjacent channel groups. It can be understood that the adjacent channel groups are the first channel group and the second channel group. The first channel group and the second channel group respectively include three continuous channels in the channel sequence, and the first channel group and the second channel group include two identical channels. For example, the 5 channels in the channel sequence are divided into channel group 1, channel group 2 and channel group 3. Channel group 1 includes channel 1, channel 2 and channel 3; channel group 2 includes channel 2, channel 3 and channel 4; channel group 3 includes channel 3, channel 4 and channel 5.
[0051] S102 , performing frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain a frequency domain coefficient of each frame of each channel.
[0052] In the disclosed embodiment, the encoder divides the audio signal of each channel in the channel sequence into multiple frames of fixed length and performs a modified discrete cosine transform (MDCT) on each frame to obtain a frequency domain representation of each frame. Based on the frequency domain representation of each frame, the MDCT coefficients of each frame can be extracted from the frequency domain representation as the frequency domain coefficients of each frame.
[0053] In one implementation, the channel sequence in the embodiment of the present disclosure includes M channels.
[0054] In one embodiment, each frame of audio data of each channel may include 2N sampling points, and the sampling rate is f s Each frame after MDCT transformation can include N frequency points. Correspondingly, the spectrum distribution range of MDCT coefficients is (0, f s / 2), the frequency resolution is f s / 2N.
[0055] S103 , determining, from the transformation matrix set according to the frequency domain coefficients of each channel, a target transformation matrix for each frequency band in the frequency band set corresponding to the channel group.
[0056] In one embodiment, the frequency bands may be pre-divided according to a psychoacoustic frequency band division method to obtain a frequency band set, where the frequency band set may include multiple divided frequency bands. For example, the frequency band set may include b divided frequency bands, where b is an integer greater than or equal to 1. Each frequency band in the frequency band set has a different frequency range, and the frequency ranges of adjacent frequency bands are continuous.
[0057] In one embodiment, after performing MDCT transformation on each frame of the sound channel, the sampling point sequence of each frequency domain coefficient is multiplied by the frequency resolution to determine the frequency value of each frequency domain coefficient.
[0058] In one embodiment, the calculation formula for the frequency value of any frequency domain coefficient is as follows: f=n*f s / 2N (1)
[0059] Where n represents the nth sampling point corresponding to any frequency domain coefficient, and the value of n ranges from 1 to N, where N is the number of sampling points. The frequency value f corresponding to the frequency domain coefficient can be obtained by formula (1).
[0060] In one embodiment, the frequency value of the frequency domain coefficient is compared with the frequency range of each frequency band to obtain the frequency range where the frequency domain coefficient is located, so as to determine the frequency domain coefficient in each frequency band.
[0061] In one embodiment, the cross-correlation coefficients between different channels in the same frequency band are calculated based on the frequency domain coefficients between the channels in the same frequency band. In other words, for each frequency band in the frequency band set, the cross-correlation coefficients between any two channels corresponding to that frequency band can be obtained based on the frequency domain coefficients between the channels in the same frequency band.
[0062] In one embodiment, for any frequency band b in the frequency band set, the cross-correlation coefficients between any two channels within the channel group in frequency band b can be determined based on the channels included in the channel group and from the cross-correlation coefficients between any two channels corresponding to frequency band b. In another embodiment, based on the cross-correlation coefficients between any two channels within the channel group in frequency band b, a target transformation matrix for the channel group in frequency band b is determined from a transformation matrix set. It will be appreciated that the frequency band set includes B frequency bands, and the target transformation matrix for each frequency band of the channel group can be obtained.
[0063] S104 , performing same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group based on the target transformation matrix of each frequency band, to obtain coding information of the channel group.
[0064] In one embodiment, the transformation matrix set includes multiple transformation matrices, each of which may correspond to a decorrelation mode. In one embodiment, the transformation matrix set may include M0, M1, M2, M3, and M4. The specific values of the transformation matrices are as follows:
[0065] In one embodiment, the decorrelation pattern of the channel group in each frequency band can be determined based on the target transformation matrix of the channel group in each frequency band. When the target transformation matrices corresponding to different frequency bands are different, the decorrelation patterns corresponding to the different frequency bands are also different. When the target transformation matrices corresponding to different frequency bands are the same, the decorrelation patterns corresponding to the different frequency bands are also the same. For example, if the target transformation matrix for frequency band 1 is M1, the target transformation matrix for frequency band 2 is M2, and the target transformation matrix for frequency band 3 is M1, then the decorrelation patterns for frequency bands 1 and 3 are the same, but the decorrelation patterns for frequency bands 1 and 3, and band 2, are different.
[0066] In one embodiment, the frequency domain coefficients of the channels within the channel group are differentiated by frequency bands to obtain the frequency domain coefficients on each frequency band. Based on the target transformation matrix corresponding to the same frequency band, the frequency domain coefficients on the same frequency band of the channels within the channel group are decorrelated to obtain the channel group coding information.
[0067] For example, a channel group includes three consecutive channels, which can be labeled as channel L, channel C, and channel R. For any frequency band b in the frequency band set, a target transform matrix M4 for the channel group in frequency band b can be determined. A frequency domain coefficient matrix can be formed from the frequency domain coefficients of channels L, C, and R in frequency band b. A matrix operation is performed between the frequency domain coefficient matrix of the channel group in frequency band b and the target transform matrix M4 corresponding to frequency band b to obtain first coded information for the channel group in frequency band b. In other words, the frequency domain coefficients of channels L, C, and R in frequency band b within the channel group are decorrelated using the target transform matrix M4 corresponding to frequency band b to obtain coded information for the channel group in frequency band b. Intra-frequency decorrelation can be performed on channels L, C, and R within the channel group to reduce intra-frequency interference, redundancy, and transmission costs.
[0068] It will be appreciated that the frequency domain coefficients of the channel group in each frequency band can be decorrelated using the target transformation matrix corresponding to each frequency band to obtain the coding information of the channel group in each frequency band. After obtaining the coding information corresponding to each frequency band, the coding information of the channel group across all frequency bands can be obtained based on the coding information for each frequency band. It will be appreciated that the coding information of the channel group includes the coding information of the channel group in all frequency bands.
[0069] S105: Obtain a coded stream based on the coding information of the channel group, and send the coded stream to a decoder for decoding.
[0070] In one embodiment, the coding information for each channel group can be encoded in binary format to generate a binary coded stream. Specifically, the coding information for each channel is converted into binary code, and the binary codes for all channel groups are concatenated to form a coded stream. In one embodiment, the coded stream is sent to a decoder for decoding to restore the original channel signal.
[0071] It should be noted that in order for the decoder to perform decoding, the target transformation matrix for each channel group in each frequency band must also be sent. In one embodiment, the target transformation matrix for each frequency band can be written into the coded bitstream and sent together with the channel coding information, or it can be sent separately to the decoder synchronously with the coded bitstream.
[0072] In the audio encoding method provided in the embodiments of the present disclosure, the encoder obtains frequency domain coefficients by dividing and grouping the channel signals into frequency bands. Based on the frequency domain coefficients of each channel, the target transformation matrix of each frequency band corresponding to the channel group can be determined. The frequency domain coefficients of the channel are further decorrelated according to the target transformation matrix to obtain the coding information of the channel group. Based on the coding information, the coded bit stream is obtained and sent to the decoder for decoding. In the embodiments of the present disclosure, the frequency domain coefficients on each frequency band in the channel group are encoded using the target transformation matrix, thereby achieving compression of audio signals of multiple channels, reducing redundancy between multiple channels, reducing the burden on the encoder, and reducing transmission and storage costs.
[0073] FIG2 is a flow chart of an audio encoding method provided by an embodiment of the present disclosure. The audio encoding method can be performed by an encoder. As shown in FIG2 , the method may include but is not limited to steps S201 to S207.
[0074] S201 : Grouping a channel sequence to obtain a plurality of channel groups. Each channel group includes a plurality of consecutive channels in the channel sequence. Adjacent channel groups may have one or more identical channels.
[0075] In the embodiment of the present disclosure, the implementation of S201 can be implemented by any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0076] S202 , performing frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain a frequency domain coefficient of each frame of each channel.
[0077] In the embodiment of the present disclosure, the implementation method of S202 can be implemented by using any method in each embodiment of the present disclosure, which is not limited here and will not be repeated.
[0078] S203 : Determine a first mutual correlation matrix between the channels corresponding to each frequency band according to the frequency domain coefficients of each channel.
[0079] In one embodiment, the energy value of any channel in each frequency band is determined based on the frequency domain coefficient of any channel, and the first cross-correlation matrix corresponding to each frequency band is determined based on the energy value of each channel in each frequency band.
[0080] In one embodiment, the root mean square energy (RMS) of a channel can be calculated based on the frequency domain coefficients of any channel to determine the energy value of any channel in each frequency band. The RMS calculation formula is as follows:
[0081] Among them, c represents the channel index value, which ranges from 1 to M, where M is the number of input channels; b is the frequency band index value; X iis the frequency domain coefficient of the corresponding channel; N c,b is the number of frequencies within the frequency band of the channel.
[0082] It should be noted that the number of frequency points can be calculated based on the width of the frequency band and the frequency resolution corresponding to the frequency band.
[0083] Normally, the data length of each channel is the same. Then, according to the same frequency band division method, the data lengths in the same frequency band between different channels are also the same. Therefore, the number of frequency points in the same frequency band is the same, that is, N c,b =N b .
[0084] In one embodiment, after obtaining the energy value of each channel in each frequency band, the energy ratio of each pair of channels in the channel sequence in any frequency band b is obtained. In one embodiment, the mutual correlation coefficient between each pair of channels in any frequency band b is determined based on the energy ratio between the channels in any frequency band b.
[0085] In one embodiment, the energy ratio Q of each pair of channels in the channel sequence in any frequency band b is obtained, wherein the formula for calculating the energy ratio Q is as follows:
[0086] Among them, c represents the channel index value, which ranges from 1 to M, where M is the number of input channels; b is the number of frequency band divisions; c1 can be the same as or different from c2, and similarly b1 can be the same as or different from b2.
[0087] In one embodiment, energy discrimination can be performed using the energy ratio Q. Based on the energy discrimination result, the cross-correlation coefficient between the channels in any frequency band b is determined. If the energy ratio in any frequency band b is less than or equal to a first predetermined threshold, the cross-correlation coefficient between the two channels in any frequency band b is determined to be zero. If the energy ratio in any frequency band b is greater than or equal to a second predetermined threshold, the cross-correlation coefficient between the two channels in any frequency band b is determined to be zero. The first predetermined threshold is less than the second predetermined threshold.
[0088] If the energy ratio on any frequency band b is between the first set threshold and the second set threshold, that is, the energy ratio is greater than the first set threshold and less than the second set threshold, the mutual correlation coefficient between the two channels in any frequency band b is determined based on the frequency domain coefficients of the two channels in any frequency band b.
[0089] That is to say, if the energy ratio Q of the two channels in any frequency band b is too large or too small, the cross-correlation coefficient of the two channels is 0; if the energy ratio Q of the two channels in any frequency band b is between (0.5, 2), the cross-correlation coefficient of the two channels is further calculated.
[0090] In one embodiment, the cross-correlation coefficient may be determined according to the size of Q. The formula for calculating the cross-correlation coefficient is as follows:
[0091] Where [x,y] represents the channel index value; b represents the frequency band index value; N b The number of frequencies within the channel band.
[0092] In one embodiment, based on the mutual correlation coefficients between two channels in any frequency band b, a first mutual correlation matrix corresponding to any frequency band b can be obtained. For example, if the channel sequence includes M channels, the first mutual correlation matrix can be obtained as follows:
[0093] The first row and column of the first cross-correlation matrix correspond to channel 1, the second row and column correspond to channel 2, and so on, the Mth row and column correspond to channel M.
[0094] It should be noted that, for each frequency band in the frequency band set, a corresponding first mutual correlation matrix can be determined in the above manner. If the frequency band set includes b frequency bands, there are b first mutual correlation matrices.
[0095] S204 , determining a second mutual correlation matrix of each channel group from the first mutual correlation matrix of each frequency band, wherein the second correlation matrix includes mutual correlation coefficients between channels in the channel group.
[0096] In one embodiment, based on the M*M first correlation matrix shown above, a second correlation matrix corresponding to the channel group can be extracted from the first correlation matrix based on the channels within the channel group. In one embodiment, the channel indexes of the channels within the channel group are determined, and the second correlation matrix for the channel group is extracted from the first correlation matrix based on the channel indexes. In one embodiment, the channel group includes three channels, and the second correlation matrix corresponding to the channel group can be determined from the first correlation matrix based on the correlation coefficients between each pair of channels within the channel group. The second correlation matrix is a 3*3 matrix.
[0097] As an example, the channel sequence includes 5 channels, and the channels are arranged in order as channel 1, channel 2, channel 3, channel 4 and channel 5. The three channels included in the channel group, channel group 1 can include channel 1, channel 2 and channel 3, channel group 2 can include channel 2, channel 3 and channel 4; channel group 3 includes channel 3, channel 4 and channel 5. The first mutual correlation matrix is a 5*5 matrix, which can be shown in Figure 3. For channel group 2, the matrix elements of the intersection of rows 2 to 4 and columns 2 to 4 can be intercepted from the first mutual correlation matrix as the second mutual correlation matrix of channel group 2. For example, the second mutual correlation matrix of channel group 2 can be the part within the dotted box in the first mutual correlation matrix as shown in Figure 3, that is, the second mutual correlation matrix of channel group 2 is as follows:
[0098] It should be noted that the channel group has a second cross-correlation matrix in each frequency band.
[0099] S205 : Determine a target transformation matrix of the channel group in each frequency band from the transformation matrix set based on the second mutual correlation matrix of the channel group in each frequency band.
[0100] In one embodiment, for any frequency band b, if the cross-correlation coefficients between any two channels included in the second cross-correlation matrix on any frequency band b meet the condition of selecting a specified transformation matrix in the transformation matrix set, then the specified transformation matrix is selected as the target transformation matrix for any frequency band b;
[0101] If the mutual correlation coefficients between the two channels included in the second mutual correlation matrix on any frequency band b do not meet the conditions, then based on the maximum mutual correlation coefficient between the two channels, a transformation matrix other than the specified transformation matrix is selected from the transformation matrix set as the target transformation matrix for any frequency band b.
[0102] In one embodiment, a cross-correlation coefficient threshold can be set, and a target transformation matrix for the channel group can be determined from a transformation matrix set based on the cross-correlation coefficient threshold. The second cross-correlation matrix for the channel group in each frequency band includes the cross-correlation coefficients between each pair of channels within the channel group. If the cross-correlation coefficients between each pair of channels are greater than the set threshold, a specified transformation matrix is selected as the target transformation matrix for any frequency band b. If the cross-correlation coefficients between each pair of channels are not all greater than the threshold, a transformation matrix other than the specified transformation matrix is selected from the transformation matrix set based on the maximum cross-correlation coefficient between each pair of channels as the target transformation matrix for any frequency band b.
[0103] For example, the transformation matrix set may include M0, M1, M2, M3, and M4. The designated transformation matrix may be M4. If the cross-correlation coefficients of the three channels are all greater than a threshold, the target transformation matrix is determined to be M4. If the maximum cross-correlation coefficient among the three channels is greater than the threshold, the target transformation matrix is determined based on the maximum value.
[0104] S206 , performing same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group based on the target transformation matrix of each frequency band, to obtain coding information of the channel group.
[0105] In the embodiment of the present disclosure, the implementation of S206 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0106] S207: Obtain a coded stream based on the coding information of the channel group, and send the coded stream to a decoder for decoding.
[0107] In the embodiment of the present disclosure, the implementation of S207 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0108] In the disclosed embodiment, the frequency domain coefficients on each frequency band in the channel group are encoded through the target transformation matrix, thereby achieving compression of audio signals of multiple channels, reducing redundancy between multiple channels, reducing the burden on the encoder, and reducing transmission and storage costs.
[0109] FIG4 is a flow chart of an audio encoding method provided by an embodiment of the present disclosure. The audio encoding method may be performed by an encoder. As shown in FIG4 , the method may include but is not limited to steps S401 to S408.
[0110] S401 : Grouping the channel sequence to obtain multiple channel groups. Each channel group includes a plurality of consecutive channels in the channel sequence. Adjacent channel groups may have one or more identical channels.
[0111] In the embodiment of the present disclosure, the implementation of S401 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0112] S402 , performing frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain a frequency domain coefficient of each frame of each channel.
[0113] In the embodiment of the present disclosure, the implementation of S402 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0114] S403 : Determine a first mutual correlation matrix between the channels corresponding to each frequency band according to the frequency domain coefficients of each channel.
[0115] In the embodiment of the present disclosure, the implementation of S403 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0116] S404 , normalizing the first mutual correlation matrix of each frequency band, and extracting the second mutual correlation matrix of each frequency band corresponding to the channel group from the normalized first mutual correlation matrix of each frequency band according to the channels included in the channel group.
[0117] In one embodiment, the first mutual correlation matrix of each frequency band between channels is normalized to obtain a normalized first mutual correlation matrix for each frequency band. A second mutual correlation matrix for each frequency band corresponding to the channel group is then extracted from the normalized first mutual correlation matrix for each frequency band. It should be understood that the second mutual correlation matrix is a normalized matrix.
[0118] In one embodiment, the channel identifier associated with any matrix element in the first cross-correlation matrix is determined. In one embodiment, the normalized matrix element corresponding to any matrix element can be determined based on the associated channel identifier. Where any matrix element is a cross-correlation coefficient between two channels, the channel identifier corresponding to the row of any matrix element can be one channel identifier associated with the matrix element, and the channel identifier corresponding to the row of any matrix element can be another channel identifier associated with the matrix element.
[0119] For example, any matrix element Corr in the first correlation matrix corresponding to frequency band b is used. [2,3],b As an example, any matrix element Corr [2,3],b The associated channels are identified as 2 and 3, that is, any matrix element Corr [2,3],b The associated channels are channel 2 and channel 3.
[0120] Any matrix element Corr [2,3],b The associated channels are channel 2 and channel 3, and any matrix element Corr can be determined [2,3],b The normalized matrix element of Corr [2,2],b and Corr [3,3],b .
[0121] In one embodiment, a normalized result of any matrix element is obtained based on any matrix element and a normalized matrix element. In one embodiment, the normalization formula corresponding to any matrix element is as follows:
[0122] Wherein, b represents the frequency band index value; represents any matrix element; Represents the normalized matrix elements.
[0123] It should be noted that since the values of the cross-correlation coefficient matrix are equal along the diagonal, it is not necessary to calculate the cross-correlation coefficients at the lower left corner of the diagonal. Instead, the elements at the upper right corner of the cross-correlation matrix diagonal are used for normalization. During the above calculation, if the denominator is greater than 0, the normalization calculation is continued. If the denominator is less than 0, the cross-correlation coefficient at the corresponding position is set to 0. The diagonal is the line from the upper left corner to the lower right corner.
[0124] S405 : Determine the cross-correlation coefficients between any two channels in the channel group in any frequency band b based on the second cross-correlation matrix in any frequency band b.
[0125] In one embodiment, since the elements in the second correlation matrix are the correlation coefficients between any two channels in the channel group at any frequency band b, the correlation coefficients between any two channels in the channel group at any frequency band b can be determined based on the second correlation matrix.
[0126] S406 , determining a target transformation matrix of the channel group in any frequency band b from the transformation matrix set based on the mutual correlation coefficients between any two channels in the channel group in any frequency band b.
[0127] In one embodiment, a threshold of the cross-correlation coefficient between any two channels in a channel group in any frequency band b may be set as Thr, and a target transformation matrix may be determined according to preset conditions by comparing the cross-correlation coefficient between any two channels in the channel group with the threshold.
[0128] In one embodiment, if the mutual correlation coefficient between each pair of channels satisfies the condition for selecting a specified transformation matrix in the transformation matrix set, that is, the values of the mutual correlation coefficient between each pair of channels in the channel group are all greater than Thr, then the specified transformation matrix M4 is selected as the target transformation matrix for any frequency band b.
[0129] For example, [L, C, R] are the three channels in the channel group. If the cross-correlation coefficient between channels L and C, the cross-correlation coefficient between channels L and R, and the cross-correlation coefficient between channels C and R are all greater than Thr, then the specified transformation matrix M4 is selected as the target transformation matrix for any frequency band b.
[0130] In one embodiment, if the mutual correlation coefficient between any two channels in any frequency band b does not meet the conditions, a transformation matrix other than the specified transformation matrix is selected as the target transformation matrix for any frequency band b based on the maximum mutual correlation coefficient between any two channels.
[0131] That is, the maximum cross-correlation coefficient is selected from the three cross-correlation coefficients: the cross-correlation coefficient between channels L and C, the cross-correlation coefficient between channels L and R, and the cross-correlation coefficient between channels C and R. If the maximum cross-correlation coefficient is greater than Thr, a target transform matrix for any frequency band b is selected from transform matrices other than the specified transform matrix. For example, if the specified transform matrix is M4, a target transform matrix is selected from M0 to M3 based on the maximum cross-correlation coefficient.
[0132] In one embodiment, when the maximum cross-correlation coefficient is greater than Thr, the target transformation matrix is selected according to formula (6):
[0133] For example, if the maximum mutual correlation coefficient between two channels in a channel group on any frequency band b is the mutual correlation coefficient between channel L and channel C, then M1 is selected as the target transformation matrix; if the maximum mutual correlation coefficient between two channels in a channel group on any frequency band b is the mutual correlation coefficient between channel L and channel R, then M2 is selected as the target transformation matrix; if the maximum mutual correlation coefficient between two channels in a channel group on any frequency band b is the mutual correlation coefficient between channel C and channel R, then M3 is selected as the target transformation matrix.
[0134] S407 , performing same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group based on the target transformation matrix of each frequency band, to obtain coding information of the channel group.
[0135] In the embodiment of the present disclosure, the implementation of S407 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0136] S408: Obtain a coded stream based on the coding information of the channel group, and send the coded stream to a decoder for decoding.
[0137] In the embodiment of the present disclosure, the implementation method of S408 can be implemented by using any method in each embodiment of the present disclosure, which is not limited here and will not be repeated.
[0138] In the disclosed embodiment, the frequency domain coefficients on each frequency band in the channel group are encoded through the target transformation matrix, thereby achieving compression of audio signals of multiple channels, reducing redundancy between multiple channels, reducing the burden on the encoder, and reducing transmission and storage costs.
[0139] FIG5 is a flow chart of an audio encoding method provided by an embodiment of the present disclosure. The audio encoding method may be performed by an encoder. As shown in FIG5 , the method may include but is not limited to steps S501 to S507.
[0140] S501 : Grouping a channel sequence to obtain a plurality of channel groups. Each channel group includes a plurality of consecutive channels in the channel sequence. One or more overlapping channels exist between adjacent channel groups.
[0141] In the embodiment of the present disclosure, the implementation of S501 can be implemented by any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0142] S502 : Perform frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain a frequency domain coefficient of each frame of each channel.
[0143] In the embodiment of the present disclosure, the implementation of S502 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0144] S503 : Determine, from the transformation matrix set, a target transformation matrix for each frequency band in the frequency band set corresponding to the channel group according to the frequency domain coefficients of each channel.
[0145] In the embodiment of the present disclosure, the implementation of S503 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0146] S504 : Obtain frequency domain coefficients of the channels in the channel group in any frequency band b, and obtain first coding information of the channel group in any frequency band b based on the frequency domain coefficients in any frequency band b and a target transformation matrix corresponding to any frequency band b.
[0147] In one embodiment, for the first channel group, the first channel group includes channel 1, channel 2, and channel 3. Based on the frequency domain coefficients of the channels in the first channel group on any frequency band b, and according to the frequency domain coefficients on any frequency band b and the target transformation matrix corresponding to any frequency band b, the first encoding information of the first channel group on any frequency band b is obtained. The first encoding information includes the center information M1, side information S1, and first information T1 of the first channel group.
[0148] It should be noted that, for each remaining channel group except the first channel group, based on the frequency domain coefficients of the channels in the remaining channel group in any frequency band b, and according to the frequency domain coefficients in any frequency band b and the target transformation matrix corresponding to any frequency band b, the first coding information of the remaining channel group in any frequency band b is obtained. The first coding information includes the first information T of the remaining channel group. i .
[0149] It can be understood that the first coded information of the first channel group completely includes the center information, the side information and the first information, and the first coded information of the remaining channel groups may only include the first information.
[0150] The formula for calculating channel coding information is as follows: [LCR]*M=[MST] (7)
[0151] Among them, [L, C, R] are the three channels in the channel group; M is the target transformation matrix determined according to the frequency domain coefficients; and [MST] is the coding information of the channel group.
[0152] It should be noted that, when performing decorrelation calculation, the first decorrelation coding unit completely outputs the coding information [MST], and the remaining coding units only output the first information [T].
[0153] S505 : Obtain second coded information of the channel group according to the first coded information on each frequency band of the channel group.
[0154] In one embodiment, a target transformation matrix of the channel group may be determined according to the first coding information of the channel group in each frequency band, and a decorrelation pattern of the channel group in each frequency band, that is, the second coding information of the channel group, may be determined based on the target transformation matrix.
[0155] It is understandable that when the target transformation matrices corresponding to different frequency bands are different, the decorrelation patterns corresponding to the different frequency bands are also different. When the target transformation matrices corresponding to different frequency bands are the same, the decorrelation patterns corresponding to the different frequency bands are also the same.
[0156] S506 : Obtain coding information of the channel group based on the second coding information and the target transformation matrix corresponding to each frequency band.
[0157] In one embodiment, decorrelation processing can be performed on the frequency domain coefficients of the channel group in each frequency band based on the target transformation matrix corresponding to each frequency band and the second coding information to obtain coding information for the channel group in each frequency band. After obtaining the coding information corresponding to each frequency band, coding information for the channel group across all frequency bands can be obtained based on the coding information for each frequency band. It should be understood that the coding information for the channel group includes coding information for all frequency bands of the channel group.
[0158] S507: Obtain a coded stream based on the coding information of the channel group, and send the coded stream to a decoder for decoding.
[0159] In the embodiment of the present disclosure, the implementation of S507 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.
[0160] In the disclosed embodiment, the frequency domain coefficients on each frequency band in the channel group are encoded through the target transformation matrix, thereby achieving compression of audio signals of multiple channels, reducing redundancy between multiple channels, reducing the burden on the encoder, and reducing transmission and storage costs.
[0161] FIG6 shows a possible encoding flow chart of an embodiment of the present disclosure. An MDCT transform is performed on the audio signal in each channel to obtain MDCT coefficients (frequency domain coefficients) for each channel frame. The channel signal is then input into a band splitting processing unit for frequency band division to obtain frequency domain coefficients for each band. Energy calculations are then performed to calculate the energy values of the channels in each band. These energy values are then input into a cross-correlation calculation unit to obtain cross-correlation coefficients between the channels in each band, thereby obtaining a first cross-correlation matrix between the channels in each band. It is understood that each channel group corresponds to a decorrelation unit. The frequency domain coefficients of the three channels within the channel group and the first cross-correlation matrix for each band are input into the decorrelation unit, which then performs co-frequency decorrelation processing on the channel group to obtain the encoding information for that channel. As shown in FIG6 , the band division results of the frequency domain coefficients of channels 1, 2, and 3 in the first channel group and the first cross-correlation matrix of each frequency band are input into a decorrelation unit 1. The decorrelation unit 1 performs same-frequency decorrelation processing and outputs the coded information of channel group 1. The coded information of channel group 1 includes center information M1, side information S1, and first information T1. The band division results of the frequency domain coefficients of channels 2, 3, and 4 in channel group 2 and the first cross-correlation matrix of each frequency band are input into a decorrelation unit 2. The decorrelation unit 2 performs same-frequency decorrelation processing and outputs the coded information of channel group 2. The coded information of channel group 2 includes the first information T1. The band division results of the frequency domain coefficients of channels 3, 4 and 5 in channel group 3 and the first mutual correlation matrix of each frequency band are input into the decorrelation unit 3, which performs same-frequency decorrelation processing and outputs the coding information of channel group 3. The coding information of channel group 3 includes T3. Similarly, for the last channel group M-2, the band division results of the frequency domain coefficients of channels M-2, M-1 and M in channel group M-2 and the first mutual correlation matrix of each frequency band are input into the decorrelation unit M-2, which performs same-frequency decorrelation processing and outputs the coding information of channel group M-2. The coding information of channel group M-2 includes T M-2 .
[0162] In the disclosed embodiment, the frequency domain coefficients on each frequency band in the channel group are encoded through the target transformation matrix, thereby achieving compression of audio signals of multiple channels, reducing redundancy between multiple channels, reducing the burden on the encoder, and reducing transmission and storage costs.
[0163] FIG7 is a flow chart of an audio decoding method provided by an embodiment of the present disclosure. The audio decoding method can be performed by a decoder. As shown in FIG7 , the method may include but is not limited to steps S701 to S704.
[0164] S701: Receive an encoded bitstream sent by an encoder, where the encoded bitstream includes encoding information of multiple channel groups.
[0165] In the embodiment of the present disclosure, the channel groups are obtained by grouping the channel sequence in sequence. Each channel group includes a number of consecutive channels in the channel sequence. One or more identical channels exist between adjacent channel groups.
[0166] In the embodiment of the present disclosure, the decoder receives the encoded code stream sent by the encoder, reads the encoding information of multiple channel groups from the encoded code stream, and performs inverse transformation on the input channel signal to obtain the original channel signal.
[0167] As described in the above embodiment, the encoder can group the M channels in the channel sequence into multiple channel groups. Each channel group contains three consecutive channels in the channel sequence, and adjacent channel groups may share one or more identical channels. The encoder's encoding process for channel groups is detailed in the above embodiment and will not be further described here.
[0168] S702 , sequentially decode multiple channel groups, and for a current channel group decoded, determine a target decoding matrix for each frequency band in a frequency band set corresponding to the current channel group according to encoding information of the current channel group.
[0169] In one embodiment, second encoding information for the channel group across all frequency bands can be obtained from the encoding information. This second encoding information includes the first encoding information for each frequency band and the target transformation matrix corresponding to each frequency band. For any frequency band b in the frequency band set, the target decoding matrix for the current channel group for any frequency band b is obtained by querying the correspondence between the transformation matrix and the decoding matrix based on the target transformation matrix for that frequency band b.
[0170] It should be noted that the transformation matrix corresponds one-to-one to the decoding matrix. In one embodiment, the decoding matrix may include the following matrix:
[0171] For example, transformation matrix M0 corresponds to decoding matrix J0, transformation matrix M1 corresponds to decoding matrix J1, transformation matrix M2 corresponds to decoding matrix J2, transformation matrix M3 corresponds to decoding matrix J3, and transformation matrix M4 corresponds to decoding matrix J4. If the target transformation matrix for the current channel group is M4, then the target decoding matrix for the current channel group in any frequency band b is J4.
[0172] S703 : Based on the target decoding matrix of the current channel group in each frequency band, obtain the decoded frequency domain coefficients of the current channel group for the coded information of the current channel group.
[0173] In one embodiment, the encoding information of the current channel group includes second encoding information of the channel group in the entire frequency band, and the second encoding information includes first encoding information of the channel group in each frequency band.
[0174] For any frequency band b in the frequency band set, the first encoded information for the frequency band b is decoded based on the target decoding matrix corresponding to the frequency band b to obtain the first decoded frequency domain coefficients for the current channel group in the frequency band b. In one embodiment, the decoded frequency domain coefficients for the channel group across the entire frequency band can be obtained based on the first decoded frequency domain coefficients for each frequency band.
[0175] S704 : Obtain a decoded audio signal of each channel in the channel sequence according to the decoded frequency domain coefficients of the multiple channel groups.
[0176] In one embodiment, the frequency domain to time domain conversion can be performed on the signals of the channel groups based on the decoded frequency domain coefficients of the multiple channel groups. In one embodiment, an inverse MDCT transform can be used to convert the frequency domain signals of the channels into time domain signals based on the decoded frequency domain coefficients, thereby obtaining the decoded audio signals of each channel.
[0177] In the audio decoding method provided in the embodiment of the present disclosure, the decoder receives the encoded code stream sent by the encoder and obtains the encoding information of each channel group therefrom. The encoded information is decoded by a decoding unit in the order of multiple channel groups to obtain the decoded frequency domain coefficients of each channel group, and the decoded frequency domain coefficients of each channel group are converted from the frequency domain to the time domain to obtain the decoded audio signal of each channel. During the decoding process, the decoder uses frequency division decoding similar to that on the encoder side to realize the recovery of the multi-channel audio signal. Since the encoder performs compression, the multi-channel signal is easier to transmit, saving transmission space.
[0178] FIG8 is a flow chart of an audio decoding method provided by an embodiment of the present disclosure. The audio decoding method can be performed by a decoder. As shown in FIG8 , the method may include but is not limited to steps S801 to S809.
[0179] S801 : Obtain first coded information of the first channel group in any frequency band b from coded information of the first channel group.
[0180] In one embodiment, each channel group includes three consecutive channels, wherein the first channel group includes channel 1, channel 2, and channel 3. In one embodiment, coding information of the first channel group can be obtained from the coded bitstream. The coding information of the first channel group includes first coding information of the first channel group in each frequency band. The first coding information includes at least center information M1, side information S1, and first information T1 of the first channel group.
[0181] S802 : Decode first coded information of the first channel group in each frequency band based on the target decoding matrix of the first channel group in each frequency band to obtain first decoded frequency domain coefficients of the first channel group in any frequency band b.
[0182] S803 : Obtain second decoded frequency domain coefficients of the first channel group according to the first decoded frequency domain coefficients of the first channel group in each frequency band, wherein the second decoded frequency domain coefficients are output in three channels.
[0183] In one embodiment, the decoder can obtain the target transformation matrix for the first channel group in any frequency band b from the encoded information corresponding to the first channel group. In one embodiment, a correspondence between the transformation matrix and the decoding matrix is pre-established. In one embodiment, the target decoding matrix for the first channel group in any frequency band b can be determined based on the target transformation matrix in any frequency band b.
[0184] Based on the target decoding matrix in any frequency band b, the first coded information in any frequency band b is inversely transformed to obtain first decoded frequency domain coefficients of the first channel group in any frequency band b.
[0185] In one embodiment, for any frequency band b in the frequency band set, based on the target decoding matrix corresponding to the any frequency band b, the first coded information of the any frequency band b is decoded to obtain the first decoded frequency domain coefficient of the first channel group on the any frequency band b. It can be understood that the first coded information of the first channel group includes M1 S1 T1, and after decoding, the first decoded frequency domain coefficient on the any frequency band b includes three outputs, and the first decoded frequency domain coefficient may include
[0186] In one embodiment, based on the first decoded frequency domain coefficients on each frequency band, the decoded frequency domain coefficients of the first channel group on the full frequency band can be obtained, wherein the decoded frequency domain coefficients of the first channel group on the full frequency band include three outputs:
[0187] In one embodiment, the decoding formula for the first channel group is as follows:
[0188] Where [M1 S1 T1] represents the second coding information of the first channel group; J is the target decoding matrix, Represents the three-way decoded frequency domain coefficients of the first channel group.
[0189] S804: Determine a number of decoded channel groups that are adjacent to and continuous with the current channel group as upmix channel groups corresponding to the current channel group.
[0190] In one embodiment, when the current channel group is a channel group other than the first channel group among the multiple channel groups, several decoded channel groups adjacent to and consecutive to the current channel group may be determined and used as upmix channel groups corresponding to the current channel group for decoding operations. In one embodiment, the several decoded channel groups include two channel groups.
[0191] For example, if the current channel group is channel group 2, the corresponding upmix channel group includes the decoded frequency domain coefficients of the last two outputs of channel group 1; if the current channel group is channel group 3, the corresponding upmix channel group includes the decoded frequency domain coefficients of the last output of channel group 1 and one decoded frequency domain coefficient output by channel group 2; if the current channel group is channel group 4, the corresponding upmix channel group includes one decoded frequency domain coefficient output by channel group 2 and one decoded frequency domain coefficient output by channel group 3.
[0192] S805: Obtain first coding information of the current channel group in any frequency band b from the coding information.
[0193] Based on the encoding process on the encoder side, it can be seen that the output of each channel group starting from channel group 2 is one output. The decoder can obtain the first encoding information of the current channel group in any frequency band b from the encoding information of the current channel group. The first encoding information is the first information T of the previous channel group in any frequency band b. i .
[0194] S806: Obtain decoded frequency domain coefficients of the upmix channel group in each frequency band.
[0195] In one embodiment, a target transform matrix for the current upmix channel group in each frequency band can be determined from the encoded information received by the decoder. A target decoding matrix for the upmix channel group is determined based on the target transform matrix. The decoder performs an inverse transform on the target decoding matrix to obtain decoded frequency-domain coefficients for the upmix channel group in each frequency band.
[0196] S807 : Decode the first coded information on any frequency band b according to the target decoding matrix corresponding to any frequency band b and the decoded frequency domain coefficients on any frequency band b to obtain the first decoded frequency domain coefficients on any frequency band b.
[0197] In one embodiment, the decoder obtains the target transformation matrix of the current channel group in each frequency band from the encoded information, and then determines the target decoding matrix of the current channel group in each frequency band based on the target transformation matrix.
[0198] For any frequency band b in the frequency band set, based on the target decoding matrix of any frequency band b, the first coded information T on any frequency band b is decoded. iThe first decoded frequency domain coefficient of the upmixed channel group in any frequency band b is decoded to obtain the first decoded frequency domain coefficient of the current channel group in any frequency band b.
[0199] It can be understood that the first encoding information of the current channel group includes the first information T i After decoding, the first decoded frequency domain coefficient on any frequency band b includes one output, and the first decoded frequency domain coefficient may include
[0200] S808 : Obtain decoded frequency domain coefficients of the current channel group according to the first decoded frequency domain coefficients of each frequency band of the current channel group, wherein the decoded frequency domain coefficients of the current channel group are output as one channel.
[0201] In one embodiment, based on the first decoded frequency domain coefficients on each frequency band, the decoded frequency domain coefficients of the first channel group on the full frequency band can be obtained, wherein the decoded frequency domain coefficients of the first channel group on the full frequency band include three outputs:
[0202] In one embodiment, the decoding formula for the current channel group i is as follows:
[0203] in, Indicates the decoded frequency domain coefficients of the output corresponding to the i-2th channel group (upmix channel group), is the decoded frequency domain coefficient of the output corresponding to the i-2th channel group (upmix channel group), T i is the first coded information of the current channel group i, J is the target decoding matrix, Indicates the decoded frequency domain coefficients of the current channel group.
[0204] It should be noted that, since the current channel group uses different coding modes and the decoding unit only outputs one channel of decoded frequency domain coefficients, only T i The value of , so the value of the decoding matrix J is also different. The specific values are as follows:
[0205] Among them, * represents no meaning.
[0206] S809 : Obtain a decoded audio signal of each channel in the channel sequence according to the decoded frequency domain coefficients of the multiple channel groups.
[0207] In the embodiment of the present disclosure, the implementation method of S809 can be implemented by using any method in each embodiment of the present disclosure, which is not limited here and will not be repeated.
[0208] As shown in the decoding flowchart of Figure 9, the decoding end needs to decode in sequence according to the decoding units. The upmix decoding unit 1 is the first upmix decoding unit. The first coding information [M1 S1 T1] is input to the first upmix decoding unit, and the output three-way decoding frequency domain coefficients are The first coding information T2, the decoded frequency domain coefficient output by the first upmix decoding unit Input to the second upmix decoding unit, the output decoded frequency domain coefficient is The first coding information T3, the decoded frequency domain coefficient output by the first upmix decoding unit and the decoded frequency domain coefficients output by the second upmix decoding unit Input to the third upmix decoding unit, the output decoded frequency domain coefficient is The first coded information T i , the decoded frequency domain coefficients output by the i-2th upmix decoding unit and the decoded frequency domain coefficients output by the i-1th upmix decoding unit Input to the i-th upmix decoding unit, the output decoded frequency domain coefficient is By analogy, the first coded information T M-2 , the decoded frequency domain coefficients output by the M-4th upmix decoding unit and the decoded frequency domain coefficients output by the M-3 upmix decoding unit Input to the M-2th upmix decoding unit, the output decoded frequency domain coefficient is
[0209] In the embodiment of the present disclosure, the decoder uses frequency division decoding similar to that on the encoder side during the decoding process to restore the multi-channel audio signal. Since the encoder performs compression, the multi-channel signal is easier to transmit, saving transmission space.
[0210] Figure 10 is a flow chart of an audio coding method provided by an embodiment of the present disclosure. As shown in Figure 10 , the method may include but is not limited to steps S1001 to S1015.
[0211] S1001: Group a channel sequence to obtain multiple channel groups. Each channel group includes a plurality of consecutive channels in the channel sequence. One or more overlapping channels exist between adjacent channel groups.
[0212] S1002 , performing frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain candidate frequency domain coefficients of each frame of each channel.
[0213] S1003 : Determine a first inter-channel correlation matrix corresponding to each frequency band according to the frequency domain coefficient of each channel.
[0214] S1004 , determining a second mutual correlation matrix of the channel group from the first mutual correlation matrix of each frequency band, wherein the second correlation matrix includes mutual correlation coefficients between channels in the channel group.
[0215] S1005 : Determine a target transformation matrix of the channel group in each frequency band from a transformation matrix set based on the second mutual correlation matrix of the channel group in each frequency band.
[0216] S1006 , obtaining frequency domain coefficients of the channels in the channel group in any frequency band b, and obtaining first coding information of the channel group in any frequency band b based on the frequency domain coefficients in any frequency band b and a target transformation matrix corresponding to any frequency band b.
[0217] S1007 : Obtain second coded information of the channel group according to the first coded information on each frequency band of the channel group.
[0218] S1008 : Obtain coding information of the channel group based on the second coding information and the target transformation matrix corresponding to each frequency band.
[0219] S1009: Obtain a coded stream based on the coding information of the channel group, and send the coded stream to a decoder for decoding.
[0220] S1010: Receive an encoded bitstream sent by an encoder.
[0221] S1011 , sequentially decode multiple channel groups, targeting a current decoded channel group.
[0222] S1012: Obtain a target transformation matrix for each frequency band from the coding information.
[0223] S1013 , according to the target transformation matrix of any frequency band b, query the mapping relationship between the transformation matrix and the decoding matrix to obtain the target decoding matrix of the current channel group in any frequency band b.
[0224] S1014 , based on the target decoding matrix of the current channel group in each frequency band, obtain decoded frequency domain coefficients of the current channel group for the coded information of the current channel group.
[0225] S1015 : Obtain a decoded audio signal of each channel in the channel sequence according to the decoded frequency domain coefficients of the multiple channel groups.
[0226] In the disclosed embodiments, the target transform matrix is used to encode the frequency domain coefficients of each frequency band within a channel group, thereby compressing multi-channel audio signals. This reduces redundancy between channels, reduces the burden on the encoder, and reduces transmission and storage costs. During the decoding process, the decoder uses frequency division decoding similar to that used by the encoder to recover the multi-channel audio signal.
[0227] FIG11 is a block diagram of an audio encoding device according to an exemplary embodiment. Referring to FIG11 , the audio encoding device 1100 of the present disclosure includes: a channel grouping module 1101 , a frequency domain conversion module 1102 , a matrix determination module 1103 , an encoding module 1104 and a sending module 1105 .
[0228] The channel grouping module 1101 is configured to group the channel sequence to obtain multiple channel groups, each of which includes a number of consecutive channels in the channel sequence, and one or more identical channels exist between adjacent channel groups.
[0229] The frequency domain processing module 1102 is configured to perform frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain a frequency domain coefficient of each frame of each channel.
[0230] The matrix determination module 1103 is configured to determine, from the transformation matrix set, a target transformation matrix for each frequency band in the frequency band set corresponding to the channel group according to the frequency domain coefficients of each channel.
[0231] The encoding module 1104 is configured to execute a target transformation matrix based on each frequency band, perform same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group, and obtain encoding information of the channel group.
[0232] The sending module 1105 is configured to execute encoding information based on the channel group to obtain an encoded bitstream, and send the encoded bitstream to the decoder for decoding.
[0233] In one embodiment of the present disclosure, the matrix determination module 1103 is further configured to perform the following: determining a first mutual correlation matrix between channels corresponding to each frequency band based on frequency domain coefficients of each channel; determining a second mutual correlation matrix of the channel group from the first mutual correlation matrix of each frequency band, the second correlation matrix including mutual correlation coefficients between channels within the channel group; and determining a target transformation matrix of the channel group in each frequency band from a transformation matrix set based on the second mutual correlation matrix of the channel group in each frequency band.
[0234] In one embodiment of the present disclosure, the encoding module 1104 is further configured to perform the following steps: obtaining frequency domain coefficients of a channel in a channel group on any frequency band b, and obtaining first encoding information of the channel group on any frequency band b based on the frequency domain coefficients on any frequency band b and a target transformation matrix corresponding to any frequency band b; obtaining second encoding information of the channel group based on the first encoding information on each frequency band of the channel group; and obtaining encoding information of the channel group based on the second encoding information and the target transformation matrix corresponding to each frequency band.
[0235] In one embodiment of the present disclosure, the matrix determination module 1103 is further configured to perform: determining the mutual correlation coefficient between any two channels in the channel group on any frequency band b based on the second mutual correlation matrix on any frequency band b; and determining the target transformation matrix of the channel group on any frequency band b from the transformation matrix set based on the mutual correlation coefficient between any two channels in the channel group on any frequency band b.
[0236] In one embodiment of the present disclosure, the matrix determination module 1103 is further configured to execute: if the mutual correlation coefficient between the two channels meets the condition of selecting a specified transformation matrix in the transformation matrix set, then the specified transformation matrix is selected as the target transformation matrix for any frequency band b; if the mutual correlation coefficient between the two channels does not meet the condition, then according to the maximum mutual correlation coefficient between the two channels, a transformation matrix other than the specified transformation matrix is selected from the transformation matrix set as the target transformation matrix for any frequency band b.
[0237] In one embodiment of the present disclosure, the matrix determination module 1103 is further configured to perform: determining the energy value of any channel in each frequency band based on the frequency domain coefficient of any channel; and determining the first cross-correlation matrix corresponding to each frequency band based on the energy value of each channel in each frequency band.
[0238] In one embodiment of the present disclosure, the matrix determination module 1103 is further configured to execute: obtaining an energy ratio of two channels in a channel sequence in any frequency band b; if the energy ratio in any frequency band b is less than or equal to a first set threshold, or if the energy ratio in any frequency band b is greater than or equal to a second set threshold, determining that the mutual correlation coefficient between the two channels in any frequency band b is zero; wherein the first set threshold is less than the second set threshold, and if the energy ratio is between the first set threshold and the second set threshold, determining the mutual correlation coefficient between the two channels in any frequency band b according to the frequency domain coefficients of the two channels in any frequency band b; and obtaining a first mutual correlation matrix corresponding to any frequency band b based on the mutual correlation coefficient between the two channels in any frequency band b.
[0239] In one embodiment of the present disclosure, the matrix determination module 1103 is further configured to perform: normalizing the first mutual correlation matrix of each frequency band, and extracting the second mutual correlation matrix of each frequency band corresponding to the channel group from the normalized first mutual correlation matrix of each frequency band based on the channels included in the channel group.
[0240] In one embodiment of the present disclosure, the matrix determination module 1103 is further configured to perform the following operations: determining a channel identifier associated with any matrix element in the first mutual correlation matrix; determining a normalized matrix element corresponding to any matrix element based on the associated channel identifier; and obtaining a normalized result of any matrix element based on any matrix element and the normalized matrix element.
[0241] In one embodiment of the present disclosure, the encoding module 1104 is further configured to perform: for a first channel group, based on the frequency domain coefficients of the channels in the first channel group in any frequency band b, and according to the frequency domain coefficients in any frequency band b and the target transformation matrix corresponding to any frequency band b, obtain first encoding information of the first channel group in any frequency band b, wherein the first encoding information includes the center information, side information and first information of the first channel group; for each remaining channel group except the first channel group, based on the frequency domain coefficients of the channels in the remaining channel group in any frequency band b, and according to the frequency domain coefficients in any frequency band b and the target transformation matrix corresponding to any frequency band b, obtain first encoding information of the remaining channel groups in any frequency band b, wherein the first encoding information includes the first information of the remaining channel groups.
[0242] In one embodiment of the present disclosure, the channel grouping module 1101 is further configured to perform: determining that adjacent channel groups include a first channel group and a second channel group, wherein the first channel group and the second channel group respectively include three consecutive channels in a channel sequence, and the first channel group and the second channel group include two identical channels.
[0243] In the disclosed embodiment, the frequency domain coefficients on each frequency band in the channel group are encoded through the target transformation matrix, thereby achieving compression of audio signals of multiple channels, reducing redundancy between multiple channels, reducing the burden on the encoder, and reducing transmission and storage costs.
[0244] FIG12 is a block diagram of an audio decoding apparatus according to an exemplary embodiment. Referring to FIG12 , an audio decoding apparatus 1200 according to an embodiment of the present disclosure includes: a receiving module 1201 , a matrix determining module 1202 , and a decoding module 1203 .
[0245] The receiving module 1201 is configured to receive an encoded bitstream sent by an encoder. The encoded bitstream includes encoding information of multiple channel groups. The channel groups are obtained by grouping the channel sequence in sequence. Each channel group includes several consecutive channels in the channel sequence. One or more identical channels exist between adjacent channel groups.
[0246] The matrix determination module 1202 is configured to perform sequential decoding on multiple channel groups, and determine, for a current channel group decoded, a target decoding matrix for each frequency band in a frequency band set corresponding to the current channel group according to encoding information of the current channel group.
[0247] The decoding module 1203 is configured to perform a target decoding matrix based on the current channel group in each frequency band, obtain the decoded frequency domain coefficients of the current channel group for the encoded information of the current channel group, and obtain the decoded audio signal of each channel in the channel sequence based on the decoded frequency domain coefficients of multiple channel groups.
[0248] In one embodiment of the present disclosure, the matrix determination module 1202 is further configured to perform the following steps: obtaining a target transformation matrix for each frequency band from the encoded information; and querying a mapping relationship between the transformation matrix and the decoding matrix based on the target transformation matrix for any frequency band b, to obtain a target decoding matrix for the current channel group on any frequency band b.
[0249] In one embodiment of the present disclosure, the decoding module 1203 is further configured to perform the following steps: obtaining first encoded information of the first channel group in any frequency band b from the encoded information of the first channel group; decoding the first encoded information of the first channel group in any frequency band b based on a target decoding matrix of the first channel group in any frequency band b to obtain first decoded frequency domain coefficients of the first channel group in any frequency band b; and obtaining decoded frequency domain coefficients of the first channel group based on the first decoded frequency domain coefficients of the first channel group in each frequency band, wherein the first decoded frequency domain coefficients of the first channel group and the decoded frequency domain coefficients include three outputs.
[0250] In one embodiment of the present disclosure, the decoding module 1203 is further configured to execute: first encoding information of the first channel group in any frequency band b at least includes center information, side information and first information in any frequency band b.
[0251] In one embodiment of the present disclosure, the decoding module 1203 is further configured to perform the following steps: determining a number of decoded channel groups adjacent to and continuous with the current channel group as the upmix channel group corresponding to the current channel group; obtaining first encoding information of the current channel group on any frequency band b from the encoding information; obtaining decoded frequency domain coefficients of the upmix channel group on each frequency band; decoding the first encoding information on any frequency band b according to the target decoding matrix corresponding to any frequency band b and the decoded frequency domain coefficients on any frequency band b to obtain the first decoded frequency domain coefficients on any frequency band b; obtaining the decoded frequency domain coefficients of the current channel group according to the first decoded frequency domain coefficients on each frequency band of the current channel group, wherein the decoded frequency domain coefficients of the current channel group include one output.
[0252] In one embodiment of the present disclosure, the decoding module 1203 is further configured to execute: the first encoded information of the current channel group in any frequency band b includes the first information of the current channel group in the any frequency band b.
[0253] In the embodiment of the present disclosure, during the decoding process, the decoder uses frequency division decoding similar to that on the encoder side to restore the multi-channel audio signal. Since the encoder performs compression, the multi-channel signal is easier to transmit, saving transmission space.
[0254] Figure 13 is a schematic diagram of the structure of another audio processing device 1300 provided in an embodiment of the present disclosure. Audio processing device 1300 can be an encoder or a decoder, or a chip, chip system, or processor that supports an encoder in implementing the above-mentioned method, or a chip, chip system, or processor that supports a decoder in implementing the above-mentioned method. This device can be used to implement the method described in the above-mentioned method embodiment. For details, please refer to the description of the above-mentioned method embodiment.
[0255] The audio processing device 1300 may include one or more processors 1301. The processor 1301 may be a general-purpose processor or a dedicated processor. For example, it may be a baseband processor or a central processing unit (CPU). The baseband processor may be used to process communication protocols and communication data, while the CPU may be used to control the audio processing device (e.g., a base station, a baseband chip, a decoder, a decoder chip, a DU or CU, etc.), execute computer programs, and process computer program data.
[0256] In some embodiments, the audio processing device 1300 may further include one or more memories 1302, on which a computer program 1304 may be stored. The processor 1301 executes the computer program 1304 to cause the audio processing device 1300 to perform the method described in the above method embodiments. In some embodiments, the memory 1302 may also store data. The audio processing device 1300 and the memory 1302 may be provided separately or integrated together.
[0257] In some embodiments, the audio processing device 1300 may further include a transceiver 1305 and an antenna 1306. The transceiver 1305 may be referred to as a transceiver unit, a transceiver, or a transceiver circuit, and is configured to implement transceiver functions. The transceiver 1305 may include a receiver and a transmitter. The receiver may be referred to as a receiver or a receiving circuit, and is configured to implement a receiving function; the transmitter may be referred to as a transmitter or a transmitting circuit, and is configured to implement a transmitting function.
[0258] In some embodiments, the audio processing device 1300 may further include one or more interface circuits 1307. The interface circuit 1307 is configured to receive code instructions and transmit the code instructions to the processor 1301. The processor 1301 executes the code instructions to enable the audio processing device 1300 to perform the method described in the above method embodiment.
[0259] In one implementation, processor 1301 may include a transceiver for implementing receiving and transmitting functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing the receiving and transmitting functions may be separate or integrated. The transceiver circuit, interface, or interface circuit may be used for reading and writing code / data, or may be used for transmitting or delivering signals.
[0260] In one implementation, processor 1301 may store a computer program 1303. Computer program 1303, when executed on processor 1301, enables audio processing device 1300 to perform the method described in the above method embodiment. Computer program 1303 may be embedded in processor 1301, in which case processor 1301 may be implemented by hardware.
[0261] In one implementation, the audio processing device 1300 may include a circuit that can implement the functions of sending, receiving, or communicating in the aforementioned method embodiments. The processor and transceiver described in the present disclosure can be implemented on 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 channel metal oxide semiconductor, PMOS), bipolar junction transistor (bipolar junction transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
[0262] The audio processing device described in the above embodiments may be an encoder or a decoder, but the scope of the audio processing device described in the present disclosure is not limited thereto, and the structure of the audio processing device may not be limited to FIG13 . The audio processing device may be an independent device or may be part of a larger device. For example, the audio processing device may be:
[0263] (1) An independent integrated circuit (IC), or chip, or chip system or subsystem;
[0264] (2) a collection of one or more ICs, which in some embodiments may also include a storage component for storing data and computer programs;
[0265] (3) ASIC, such as modem;
[0266] (4) Modules that can be embedded in other devices;
[0267] (5) Receivers, decoders, smart decoders, cellular phones, wireless devices, handheld devices, mobile units, vehicle-mounted devices, encoders, cloud devices, artificial intelligence devices, etc.;
[0268] (6)Others, etc.
[0269] If the audio processing device can be a chip or a chip system, please refer to the schematic diagram of the chip structure shown in Figure 14. The chip shown in Figure 14 includes a processor 1401 and an interface 1402. The number of processors 1401 can be one or more, and the number of interfaces 1402 can be multiple.
[0270] In some embodiments, the chip further includes a memory 1403 , which is used to store necessary computer programs and data.
[0271] In some implementations, the chip can be used to implement the functions of the decoder in the above-mentioned embodiments of the present disclosure.
[0272] In some implementations, the chip can be used to implement the functions of the encoder in the above-mentioned embodiments of the present disclosure.
[0273] Those skilled in the art will also appreciate 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 both. Whether such functionality is 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 described functionality for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of the present disclosure.
[0274] An embodiment of the present disclosure also provides an audio processing system, which includes the audio processing device as an encoder and the audio processing device as a decoder in the embodiment of Figure 13, or the system includes the audio processing device as an encoder and the audio processing device as an encoder in the embodiment of Figure 14.
[0275] The embodiments of the present disclosure further provide a readable storage medium having instructions stored thereon, which implement the functions of any of the above method embodiments when executed by a computer.
[0276] The embodiments of the present disclosure further provide a computer program product including a computer program, which implements the functions of any of the above method embodiments when executed by a computer.
[0277] The embodiments of the present disclosure also provide a computer program, which, when executed on a computer, enables the computer to perform the functions of any of the above-mentioned method embodiments.
[0278] It should be noted that the above explanations of the method and device embodiments are also applicable to the electronic device, computer-readable storage medium, computer program product and computer program of the above embodiments, and will not be repeated here.
[0279] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, all or part of the embodiments can be implemented 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, all or part of the processes or functions described in the embodiments of the present disclosure are generated. 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 one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. 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)).
[0280] Those skilled in the art will understand that the various numerical numbers such as first and second involved in the present disclosure are only for the 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.
[0281] The at least one in the present disclosure can also be described as one or more, and the multiple can 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", and there is no order of precedence or size between the technical features described by "first", "second", "third", "A", "B", "C" and "D".
[0282] The correspondences shown in the tables of the present disclosure can be configured or predefined. The values of the information in the tables are only examples and can be configured to other values, which are not limited by the present disclosure. When configuring the correspondences between information and parameters, it is not necessarily required to configure all the correspondences shown in the tables. For example, in the tables of the present disclosure, the correspondences shown in certain rows may not be configured. For another example, appropriate deformation adjustments can be made based on the above tables, such as splitting, merging, etc. The names of the parameters shown in the titles of the above tables may also use other names that can be understood by the audio processing device, and the values or representations of the parameters may also use other values or representations that can be understood by the audio processing device. When implementing the above tables, other data structures may also be used, such as arrays, queues, containers, stacks, linear lists, pointers, linked lists, trees, graphs, structures, classes, heaps, hash tables or hash tables, etc.
[0283] The predefined in the present disclosure may be understood as defined, predefined, stored, pre-stored, pre-negotiated, pre-configured, solidified, or pre-burned.
[0284] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this disclosure.
[0285] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0286] The above description is merely a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
[0287] All embodiments of the present disclosure may be implemented individually or in combination with other embodiments, and are all considered to be within the scope of protection claimed by the present disclosure.
Claims
1. An audio encoding method, characterized in that: Executed by an encoder, the method comprises: Grouping the channel sequence to obtain a plurality of channel groups, each of the channel groups including a plurality of continuous channels in the channel sequence, and one or more identical channels exist between adjacent channel groups; Performing frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain a frequency domain coefficient of each frame of each channel; Determining, from a transformation matrix set, a target transformation matrix for each frequency band in a frequency band set corresponding to the channel group according to the frequency domain coefficients of each channel; Based on the target transformation matrix of each frequency band, performing same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group to obtain coding information of the channel group; A coded bitstream is obtained based on the coded information of the channel group, and the coded bitstream is sent to a decoder for decoding.
2. The method according to claim 1, characterized in that The step of determining, from a transformation matrix set according to the frequency domain coefficients of each channel, a target transformation matrix for each frequency band corresponding to the channel group comprises: Determine a first cross-correlation matrix between channels corresponding to each frequency band according to the frequency domain coefficients of each channel; Determine a second cross-correlation matrix of the channel group from the first cross-correlation matrix of each frequency band, the second cross-correlation matrix including cross-correlation coefficients between channels in the channel group; Based on the second cross-correlation matrix of the channel group in each frequency band, a target transformation matrix of the channel group in each frequency band is determined from the transformation matrix set.
3. The method according to claim 1 or 2, characterized in that: The step of performing same-band decorrelation processing on frequency domain coefficients of channels in the channel group based on the target transformation matrix of each frequency band to obtain coding information of the channel group includes: Acquire frequency domain coefficients of the channels in the channel group on any frequency band b, and obtain first encoding information of the channel group on any frequency band b according to the frequency domain coefficients on any frequency band b and the target transformation matrix corresponding to the any frequency band b; Obtaining second encoding information of the channel group according to the first encoding information on each frequency band of the channel group; The encoding information of the channel group is obtained based on the second encoding information and the target transformation matrix corresponding to each frequency band.
4. The method according to claim 2, characterized in that: The determining, based on the second cross-correlation matrix of the channel group in each frequency band, from the transformation matrix set, a target transformation matrix of the channel group in each frequency band comprises: Determine the mutual correlation coefficients between any two channels in the channel group in any frequency band based on the second mutual correlation matrix in any frequency band b; According to the mutual correlation coefficients between any two channels in the channel group in the any frequency band b, a target transformation matrix of the channel group in the any frequency band b is determined from the transformation matrix set.
5. The method according to claim 4, characterized in that The step of determining a target transformation matrix of the channel group in any frequency band from the transformation matrix set according to the mutual correlation coefficients between two channels in the channel group in any frequency band b comprises: If the mutual correlation coefficients between the two channels meet the condition of selecting a specified transformation matrix in the transformation matrix set, then selecting the specified transformation matrix as the target transformation matrix for any frequency band b; If the mutual correlation coefficient between the two channels does not meet the condition, then according to the maximum mutual correlation coefficient between the two channels, a transformation matrix other than the specified transformation matrix is selected from the transformation matrix set as the target transformation matrix for any frequency band b.
6. The method according to claim 2, characterized in that The step of determining a first mutual correlation matrix between channels corresponding to each frequency band according to the frequency domain coefficients of each channel comprises: Determining the energy value of any channel in each frequency band according to the frequency domain coefficient of any channel; The first mutual correlation matrix corresponding to each frequency band is determined according to the energy value of each channel in each frequency band.
7. The method according to claim 6, characterized in that The determining, according to the energy value of each channel in each frequency band, the first cross-correlation matrix corresponding to each frequency band comprises: Obtaining energy ratios of two channels in the channel sequence in any frequency band b; If the energy ratio on any frequency band b is less than or equal to a first set threshold, or the energy ratio on any frequency band b is greater than or equal to a second set threshold, it is determined that the mutual correlation coefficient between the two channels on any frequency band b is zero, wherein the first set threshold is less than the second set threshold; If the energy ratio on any frequency band b is between the first set threshold and the second set threshold, determining the mutual correlation coefficient of the pairwise channels in the any frequency band b according to the frequency domain coefficients of the pairwise channels in the any frequency band b; Based on the mutual correlation coefficients of the two channels in the any frequency band b, the first mutual correlation matrix corresponding to the any frequency band b is obtained.
8. The method according to claim 2, characterized in that: The determining the second mutual correlation matrix of the channel group from the first mutual correlation matrix of each frequency band respectively further includes: The first mutual correlation matrix of each frequency band is normalized, and the second mutual correlation matrix of each frequency band corresponding to the channel group is extracted from the normalized first mutual correlation matrix of each frequency band according to the channels included in the channel group.
9. The method according to claim 7, characterized in that: The normalizing the first mutual correlation matrix includes: Determining a channel identifier associated with any matrix element in the first mutual correlation matrix; Determining a normalized matrix element corresponding to any matrix element according to the associated channel identifier; A normalization result of the any matrix element is obtained according to the any matrix element and the normalized matrix element.
10. The method according to any one of claims 3 to 9, characterized in that The method further comprises: For a first channel group, based on frequency domain coefficients of channels in the first channel group in the any frequency band b, and according to the frequency domain coefficients in the any frequency band b and the target transformation matrix corresponding to the any frequency band b, obtaining first encoding information of the first channel group in the any frequency band b, wherein the first encoding information includes center information, side information and first information of the first channel group; For each remaining channel group except the first channel group, based on the frequency domain coefficients of the channels in the remaining channel group in the any frequency band b, and according to the frequency domain coefficients in the any frequency band b and the target transformation matrix corresponding to the any frequency band b, first encoding information of the remaining channel group in the any frequency band b is obtained, wherein the first encoding information includes first information of the remaining channel group.
11. The method according to any one of claims 1 to 9, characterized in that There are one or more overlapping channels between the adjacent channel groups, including: It is determined that the adjacent channel groups include a first channel group and a second channel group, wherein the first channel group and the second channel group respectively include three consecutive channels in the channel sequence, and the first channel group and the second channel group include two identical channels.
12. An audio decoding method, characterized in that: Executed by a decoder, the method comprises: receiving an encoded bitstream sent by an encoder, wherein the encoded bitstream includes encoding information of a plurality of channel groups, wherein the channel groups are obtained by grouping a channel sequence in sequence, each of the channel groups includes a plurality of continuous channels in the channel sequence, and one or more identical channels exist between adjacent channel groups; Decoding the plurality of channel groups in sequence, and determining, for a current channel group obtained by decoding, a target decoding matrix for each frequency band in a frequency band set corresponding to the current channel group according to encoding information of the current channel group; Based on the target decoding matrix of the current channel group in each frequency band, obtaining the decoded frequency domain coefficients of the current channel group for the encoded information of the current channel group; A decoded audio signal of each channel in the channel sequence is obtained according to the decoded frequency domain coefficients of the multiple channel groups.
13. The method according to claim 12, characterized in that The step of determining, according to the encoding information of the current channel group, a target decoding matrix for each frequency band in a frequency band set corresponding to the current channel group comprises: Acquire a target transformation matrix for each frequency band from the coding information; According to the target transformation matrix of any frequency band b, a mapping relationship between a transformation matrix and a decoding matrix is queried to obtain a target decoding matrix of the current channel group on the any frequency band b.
14. The method according to claim 12 or 13, characterized in that When the current channel is the first channel group among the multiple channel groups, the step of obtaining the decoded frequency domain coefficients of the current channel group based on the target decoding matrix of the current channel group in each frequency band for the encoded information of the current channel group includes: Acquire, from the encoding information of the first channel group, first encoding information of the first channel group in any frequency band b; Based on the target decoding matrix of the first channel group in the any frequency band b, decoding the first coded information of the first channel group in the any frequency band b, to obtain the first decoded frequency domain coefficient of the first channel group in the any frequency band b; The decoded frequency domain coefficients of the first channel group are obtained according to the first decoded frequency domain coefficients of the first channel group in each frequency band, and the first decoded frequency domain coefficients of the first channel group and the decoded frequency domain coefficients include three outputs.
15. The method according to claim 14, characterized in that The first encoded information of the first channel group in any frequency band b at least includes the center information, the side information and the first information in the any frequency band.
16. The method according to claim 12 or 13, characterized in that: When the current channel is a channel group other than the first channel group among the multiple channel groups, the step of obtaining decoded frequency domain coefficients of the current channel group based on the target decoding matrix of the current channel group in each frequency band for the encoding information of the current channel group includes: Determine a plurality of decoded channel groups that are adjacent and continuous to the current channel group as upmix channel groups corresponding to the current channel group; Acquire first encoding information of the current channel group in any frequency band b from the encoding information; Obtaining decoded frequency domain coefficients of the upmix channel group in each frequency band; Decoding the first coded information on any frequency band b according to the target decoding matrix corresponding to any frequency band b and the decoded frequency domain coefficients on any frequency band b to obtain the first decoded frequency domain coefficients on any frequency band b; The decoded frequency domain coefficients of the current channel group are obtained according to the first decoded frequency domain coefficients on each frequency band of the current channel group, and the decoded frequency domain coefficients of the current channel group are output as one channel.
17. The method according to claim 16, characterized in that The first encoding information of the current channel group in any frequency band b includes first information of the current channel group in any frequency band b.
18. An audio encoding device, characterized in that: include: a channel grouping module configured to group the channel sequence to obtain a plurality of channel groups, each of the channel groups comprising a plurality of continuous channels in the channel sequence, and one or more identical channels exist between adjacent channel groups; A frequency domain processing module is configured to perform frequency domain conversion on the audio signal of each channel in the channel sequence frame by frame to obtain a frequency domain coefficient of each frame of each channel; a matrix determination module configured to determine, according to the frequency domain coefficients of each channel, a target transformation matrix for each frequency band in the frequency band set corresponding to the channel group from a transformation matrix set; an encoding module, configured to execute the target transformation matrix based on each frequency band, perform same-band decorrelation processing on the frequency domain coefficients of the channels in the channel group, and obtain encoding information of the channel group; The sending module is configured to obtain a coded stream based on the coding information of the channel group, and send the coded stream to a decoder for decoding.
19. An audio decoding device, characterized in that: include: a receiving module configured to receive a coded stream sent by an encoder, wherein the coded stream includes coding information of a plurality of channel groups, wherein the channel groups are obtained by grouping channel sequences in sequence, each of the channel groups includes a plurality of continuous channels in the channel sequence, and there are one or more identical channels between adjacent channel groups; a matrix determination module configured to perform sequential decoding of the plurality of channel groups, and determine, for a current channel group decoded, a target decoding matrix for each frequency band in a frequency band set corresponding to the current channel group according to encoding information of the current channel group; A decoding module is configured to perform a target decoding matrix of the current channel group in each frequency band, obtain a decoded frequency domain coefficient of the current channel group based on the encoding information of the current channel group, and A decoded audio signal of each channel in the channel sequence is obtained according to the decoded frequency domain coefficients of the multiple channel groups.
20. An encoder, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 11.
21. A decoder, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 12 to 17.
22. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.
23. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 12 to 17 are implemented.
24. A computer program product comprising a computer program which, when run on a computer, causes the computer to perform the audio encoding method according to any one of claims 1 to 11.
25. A computer program product comprising a computer program, which, when run on a computer, causes the computer to perform the audio decoding method according to any one of claims 12 to 17.
26. A computer program, characterized in that When the audio coding method is executed on a computer, the audio coding method enables the computer to execute the audio coding method according to any one of claims 1 to 11.
27. A computer program, characterized in that When the method is executed on a computer, the computer is enabled to execute the audio decoding method according to any one of claims 12 to 17.
Citation Information
Patent Citations
Coupling track coding-decoding processing method, audio coding device and decoding device
CN101071570A
Multi-channel audio signal compressing method based on tensor decomposition
CN102982805A
Encoding and decoding method and system for multi-channel three-dimensional voice frequency
CN103400582A
Three-dimensional audio multichannel grouping and clustering coding method and three-dimensional audio multichannel grouping and clustering coding system
CN104240712A
Multi-channel audio signal coding and decoding methods and devices
CN113948095A
