WO2019029724A1 - 时域立体声编解码方法和相关产品 - Google Patents
时域立体声编解码方法和相关产品 Download PDFInfo
- Publication number
- WO2019029724A1 WO2019029724A1 PCT/CN2018/100060 CN2018100060W WO2019029724A1 WO 2019029724 A1 WO2019029724 A1 WO 2019029724A1 CN 2018100060 W CN2018100060 W CN 2018100060W WO 2019029724 A1 WO2019029724 A1 WO 2019029724A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current frame
- channel
- signal
- channel combination
- combination scheme
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 182
- 238000012545 processing Methods 0.000 claims abstract description 295
- 230000000875 corresponding effect Effects 0.000 claims description 513
- 230000002596 correlated effect Effects 0.000 claims description 120
- 238000003672 processing method Methods 0.000 claims description 64
- 239000011159 matrix material Substances 0.000 claims description 53
- 230000008569 process Effects 0.000 claims description 45
- 108700021638 Neuro-Oncological Ventral Antigen Proteins 0.000 claims description 22
- 230000007704 transition Effects 0.000 claims description 16
- 238000012937 correction Methods 0.000 description 44
- 238000013507 mapping Methods 0.000 description 26
- 238000013139 quantization Methods 0.000 description 23
- 238000009499 grossing Methods 0.000 description 17
- 230000007774 longterm Effects 0.000 description 16
- 230000011218 segmentation Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 12
- 230000009286 beneficial effect Effects 0.000 description 9
- 230000000694 effects Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 9
- 238000004458 analytical method Methods 0.000 description 7
- 238000001514 detection method Methods 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 6
- 230000001052 transient effect Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000006872 improvement Effects 0.000 description 4
- 238000012805 post-processing Methods 0.000 description 4
- 238000007781 pre-processing Methods 0.000 description 4
- 230000003044 adaptive effect Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005314 correlation function Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/008—Multichannel audio signal coding or decoding using interchannel correlation to reduce redundancy, e.g. joint-stereo, intensity-coding or matrixing
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
- G10L19/16—Vocoder architecture
- G10L19/18—Vocoders using multiple modes
- G10L19/20—Vocoders using multiple modes using sound class specific coding, hybrid encoders or object based coding
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
- G10L19/16—Vocoder architecture
- G10L19/18—Vocoders using multiple modes
- G10L19/22—Mode decision, i.e. based on audio signal content versus external parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S1/00—Two-channel systems
- H04S1/007—Two-channel systems in which the audio signals are in digital form
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S3/00—Systems employing more than two channels, e.g. quadraphonic
- H04S3/008—Systems employing more than two channels, e.g. quadraphonic in which the audio signals are in digital form, i.e. employing more than two discrete digital channels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04S—STEREOPHONIC SYSTEMS
- H04S2400/00—Details of stereophonic systems covered by H04S but not provided for in its groups
- H04S2400/03—Aspects of down-mixing multi-channel audio to configurations with lower numbers of playback channels, e.g. 7.1 -> 5.1
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to the field of audio codec technology, and in particular, to a time domain stereo codec method and related products.
- stereo audio has the sense of orientation and distribution of each sound source, which can improve the clarity, intelligibility and presence of information, and is therefore favored by people.
- Parametric stereo codec technology is a common stereo codec technology by converting stereo signals into mono signals and spatial sensing parameters to compress multi-channel signals.
- the parametric stereo codec technology usually needs to extract spatial sensing parameters in the frequency domain, time-frequency transform is required, so that the delay of the entire codec is relatively large. Therefore, in the case of strict delay requirements, time domain stereo coding technology is a better choice.
- the traditional time domain stereo coding technology is to downmix the signal into two mono signals in the time domain.
- the MS coding technique first downmixes the left and right channel signals into a center channel signal and a side channel signal.
- L represents the left channel signal
- R represents the right channel signal
- the Mid channel signal is 0.5*(L+R)
- the Mid channel signal represents the related information between the left and right channels
- the Side channel signal is 0.5*.
- the Side channel signal characterizes the difference between the left and right channels.
- the Mid channel signal and the Side channel signal are respectively encoded by a mono coding method, and for a Mid channel signal, a relatively large number of bits are usually used for encoding; for a Side channel signal, a relatively small number of bits is usually used for encoding.
- the traditional time domain stereo coding technology sometimes has a phenomenon that the main signal energy is particularly small or even lack of energy, which leads to a decrease in the final coding quality.
- Embodiments of the present application provide a time domain stereo coding method and related products.
- an embodiment of the present application provides a time domain stereo coding method, which may include: determining an encoding mode of a current frame.
- the time domain downmix processing mode corresponding to the non-correlation signal coding mode is used to perform time on the left and right channel signals of the current frame.
- the domain downmix process is performed to obtain primary and secondary channel signals (i.e., primary channel signals and secondary channel signals) of the current frame.
- the time domain downmix processing mode corresponding to the non-correlation signal coding mode is a time domain downmix processing mode corresponding to the non-correlated signal channel combination scheme, and the non-correlated signal channel combination scheme is a class inversion.
- the obtained primary and secondary channel signals of the current frame are encoded.
- the stereo signal of the current frame is composed, for example, of left and right channel signals of the current frame.
- the encoding mode of the current frame may be one of a plurality of encoding modes.
- the coding mode of the current frame may be one of the following coding modes: a correlation signal coding mode, a non-correlation signal coding mode, a correlation to a non-correlation signal coding mode, and a non-correlation to correlation signal coding mode.
- the coding mode of the current frame needs to be determined in the above solution, which means that there are multiple possibilities for the coding mode of the current frame, which is different from the traditional coding scheme with only one coding mode, and multiple possible coding modes and A variety of possible scenarios help to achieve a better compatible match. Moreover, since a channel combining scheme corresponding to the inverted signal of the class is introduced, this makes a relatively more targeted channel combining scheme and encoding mode for the case where the stereo signal of the current frame is an inverted signal. Conducive to improve the quality of the code.
- the method may further include: when determining that the coding mode of the current frame is a correlation signal coding mode, adopting a time domain downmix processing manner corresponding to the correlation signal coding mode, Performing time domain downmix processing on the left and right channel signals of the current frame to obtain primary and secondary channel signals of the current frame, and the time domain downmix processing mode corresponding to the correlation signal encoding mode is a correlation signal channel
- the time domain downmix processing mode corresponding to the combination scheme, the correlation signal channel combination scheme is a channel combination scheme corresponding to the normal phase signal.
- the method may further include: when determining that the coding mode of the current frame is a correlation to a non-correlation signal coding mode, adopting the correlation to the non-correlation signal coding mode a time domain downmix processing method, performing time domain downmix processing on left and right channel signals of the current frame to obtain primary and secondary channel signals of the current frame, the correlation to a non-correlation signal coding mode corresponding to The time domain downmix processing mode is a time domain downmix processing method corresponding to the correlation signal channel combination scheme to the non-correlated signal channel combination scheme.
- the method may further include: when determining that the coding mode of the current frame is a non-correlation to correlation signal coding mode, adopting the non-correlation to correlation signal coding mode corresponding to a time domain downmix processing method, performing time domain downmix processing on the left and right channel signals of the current frame to obtain primary and secondary channel signals of the current frame, the non-correlation to correlation signal coding mode corresponding to The time domain downmix processing mode is a time domain downmix processing method corresponding to the non-correlated signal channel combination scheme to the correlation signal channel combination scheme.
- time domain downmix processing methods corresponding to different coding modes are usually different.
- each encoding mode may also correspond to one or more time domain downmix processing methods.
- time-domain downmix processing of the left and right channel signals of the current frame is performed by using a time domain downmix processing manner corresponding to the non-correlation signal coding mode to obtain a
- the primary and secondary channel signals of the current frame may include: performing time domain downmix processing on the left and right channel signals of the current frame according to a channel combination scale factor of the non-correlation signal channel combination scheme of the current frame And obtaining a primary and secondary channel signals of the current frame; or a left and right channel signals of the current frame according to a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and a previous frame; Time domain downmix processing is performed to obtain primary and secondary channel signals of the current frame.
- the channel combination scale factor of the channel combination scheme of the audio frame may be preset. Fixed value. It is of course also possible to determine the channel combination scale factor of this audio frame based on the channel combination scheme of the audio frame.
- a corresponding downmix matrix may be constructed based on a channel combination scale factor of the audio frame, and the left and right channel signals of the current frame are time-domain downmixed by using a downmix matrix corresponding to the channel combination scheme. Processing to obtain the primary and secondary channel signals of the current frame.
- the left and right channel signals of the current frame are subjected to time domain downmix processing according to a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- the delay_com represents coding delay compensation.
- the left and right channel signals of the current frame are subjected to time domain downmix processing according to a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- fade_in(n) represents a fade-in factor.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- Fade_out(n) represents the fade factor.
- fade_out(n) can also be a fade factor based on other functional relationships of n.
- NOVA_1 represents the length of the transition process.
- the value of NOVA_1 can be set according to the specific scene. NOVA_1 may, for example, be equal to 3/N or NOVA_1 may be other values less than N.
- the left and right channel signals of the current frame are subjected to time domain downmix processing to obtain the primary and secondary sounds of the current frame.
- the left and right channel signals of the current frame are subjected to time domain downmix processing to obtain the primary and secondary sounds of the current frame.
- a signal In the case of a signal,
- the X L (n) represents the left channel signal of the current frame.
- the X R (n) represents a right channel signal of the current frame.
- the Y(n) represents a primary channel signal of the current frame obtained by time domain downmix processing; the X(n) represents a secondary sound of the current frame obtained by time domain downmix processing Signal.
- delay_com represents coding delay compensation
- M 11 represents a downmix matrix corresponding to the correlation signal channel combination scheme of the previous frame, and M 11 is constructed based on a channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame.
- the M 12 represents a downmix matrix corresponding to the non-correlated signal channel combination scheme of the previous frame, and the M 12 is based on a channel combination ratio corresponding to the non-correlation signal channel combination scheme of the previous frame. Factor construction.
- the M 22 represents a downmix matrix corresponding to the non-correlation signal channel combination scheme of the current frame, and the M 22 is constructed based on a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame. .
- the M 21 represents a downmix matrix corresponding to the correlation signal channel combination scheme of the current frame, and the M 21 is constructed based on a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the M 21 may exist in various forms, for example:
- the ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the M 22 may exist in various forms, for example:
- ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the M 12 may exist in various forms, for example:
- ⁇ 1_pre tdm_last_ratio_SM
- ⁇ 2_pre 1-tdm_last_ratio_SM
- tdm_last_ratio_SM represents the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame.
- the left and right channel signals of the current frame may specifically be the original left and right channel signals of the current frame (the original left and right channel signals are left and right channel signals that are not preprocessed in the time domain, for example, the left and right channel signals may be sampled. Or, may be the time-domain preprocessed left and right channel signals of the current frame; or may be the left and right channel signals of the current frame that are subjected to the delay alignment processing.
- x L (n) represents an original left channel signal of the current frame
- the x R (n) represents an original right channel signal of the current frame
- the x L_HP (n) represents the a time-domain preprocessed left channel signal of a current frame
- the x R_HP (n) representing a time domain preprocessed right channel signal of the current frame
- the x' L (n) representing the current The left channel signal of the processed frame is time-delayed
- the x' R (n) represents the right channel signal of the time frame of the current frame.
- the embodiment of the present application further provides a time domain stereo decoding method, which may include:
- the code stream is decoded to obtain a primary and secondary channel decoding signal of the current frame. Determining a decoding mode of the current frame. And determining, in a case where the decoding mode of the current frame is a non-correlation signal decoding mode, performing a time domain upmix processing manner corresponding to the non-correlation signal decoding mode, and performing a primary and secondary channel decoding signals of the current frame.
- the time domain upmix processing is performed to obtain the left and right channel reconstruction signals of the current frame, and the time domain upmix processing method corresponding to the non-correlation signal decoding mode is a time domain upmix processing corresponding to the non-correlated signal channel combination scheme
- the non-correlated signal channel combination scheme is a channel combination scheme corresponding to the inverted signal.
- the decoding mode of the current frame may be one of a plurality of decoding modes.
- the decoding mode of the current frame may be one of the following decoding modes: a correlation signal decoding mode, a non-correlation signal decoding mode, a correlation to a non-correlation signal decoding mode, and a non-correlation to correlation signal decoding mode.
- the decoding mode of the current frame needs to be determined in the above solution, which means that there are multiple possibilities for the decoding mode of the current frame, which is different from the conventional scheme with only one decoding mode, and multiple possible decoding modes and A variety of possible scenarios help to achieve a better compatible match. Moreover, since a channel combining scheme corresponding to the inverted signal of the class is introduced, this makes a relatively more targeted channel combining scheme and decoding mode for the case where the stereo signal of the current frame is an inverted signal. Conducive to improve the quality of decoding.
- the method may further include:
- the time domain upmix processing mode corresponding to the correlation signal decoding mode when the primary and secondary channel decoding signals of the current frame are performed Domain upmixing to obtain a left and right channel reconstruction signal of the current frame, and the time domain upmix processing method corresponding to the correlation signal decoding mode is a time domain upmix processing method corresponding to the correlation signal channel combination scheme,
- the correlation signal channel combination scheme is a channel combination scheme corresponding to the normal phase signal.
- the method may further include: when determining that the decoding mode of the current frame is a correlation to a non-correlation signal decoding mode, adopting the correlation to the non-correlation signal decoding mode a time domain upmix processing method, performing time domain upmix processing on the primary and secondary channel decoded signals of the current frame to obtain a left and right channel reconstruction signal of the current frame, the correlation to a non-correlated signal decoding mode
- the corresponding time domain upmix processing mode is a time domain upmix processing method corresponding to the correlation signal channel combination scheme and the non-correlation signal channel combination scheme.
- the method may further include: when determining that the decoding mode of the current frame is a non-correlation to correlation signal decoding mode, adopting the non-correlation to correlation signal decoding mode corresponding to a time domain upmix processing method, performing time domain upmix processing on the primary and secondary channel decoded signals of the current frame to obtain a left and right channel reconstruction signal of the current frame, the non-correlation to correlation signal decoding mode
- the corresponding time domain upmix processing mode is a time domain upmix processing method corresponding to the non-correlation signal channel combination scheme to the correlation signal channel combination scheme.
- each decoding mode may also correspond to one or more time domain upmix processing methods.
- performing time domain upmix processing on the primary and secondary channel decoding signals of the current frame by using a time domain upmix processing manner corresponding to the non-correlation signal decoding mode including:
- a corresponding upmix matrix may be constructed based on a channel combination scale factor of the audio frame, and the primary and secondary channel decoding signals of the current frame are performed by using an upmix matrix corresponding to the channel combination scheme.
- the domain is upmixed to obtain the left and right channel reconstruction signals of the current frame.
- the time domain upmixing process is performed on the primary and secondary channel decoding signals of the current frame according to the channel combination scaling factor of the non-correlation signal channel combination scheme of the current frame and the previous frame.
- the left and right channel reconstruction signals of the current frame are obtained.
- the delay_com represents coding delay compensation.
- the time domain upmixing process is performed on the primary and secondary channel decoding signals of the current frame according to the channel combination scaling factor of the non-correlation signal channel combination scheme of the current frame and the previous frame.
- the left and right channel reconstruction signals of the current frame are obtained.
- the NOVA_1 represents the length of the transition process.
- fade_in(n) represents a fade-in factor.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- fade_out(n) represents a fade factor.
- fade_out(n) can also be a fade factor based on other functional relationships of n.
- NOVA_1 represents the length of the transition process.
- the value of NOVA_1 can be set according to the specific scene. NOVA_1 may, for example, be equal to 3/N or NOVA_1 may be other values less than N.
- a channel combination scaling factor of the correlation signal channel combination scheme of the current frame to obtain the current frame.
- the upmixing_delay indicates decoding delay compensation
- An upmix matrix corresponding to the correlation signal channel combination scheme of the previous frame, The channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame is constructed.
- the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame is constructed.
- the channel combination scale factor corresponding to the non-correlated signal channel combination scheme of the previous frame is constructed.
- the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame is constructed.
- ⁇ 1 ratio_SM
- ⁇ 2 1 - ratio_SM
- the ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- ⁇ 1_pre tdm_last_ratio_SM
- ⁇ 2_pre 1-tdm_last_ratio_SM.
- tdm_last_ratio_SM represents the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame.
- the ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the embodiment of the present application further provides a time domain stereo coding device, which may include: a processor and a memory coupled to each other. Wherein, the processor is operative to perform some or all of the steps of any one of the stereo coding methods of the first aspect.
- the embodiment of the present application further provides a time domain stereo decoding device, which may include: a processor and a memory coupled to each other. Wherein, the processor is operative to perform some or all of the steps of any one of the second aspects.
- an embodiment of the present application provides a time domain stereo coding apparatus, including several functional units for implementing any one of the first aspects.
- an embodiment of the present application provides a time domain stereo decoding apparatus, including a plurality of functional units for implementing any one of the methods of the second aspect.
- the embodiment of the present application provides a computer readable storage medium, where the program code stores program code, where the program code includes a part for performing any one of the methods of the first aspect or Instructions for all steps.
- the embodiment of the present application provides a computer readable storage medium, where the program code stores program code, where the program code includes a part for performing any one of the methods of the second aspect or Instructions for all steps.
- the embodiment of the present application provides a computer program product, when the computer program product is run on a computer, causing the computer to perform some or all of the steps of any one of the first aspects.
- the embodiment of the present application provides a computer program product, when the computer program product is run on a computer, causing the computer to perform some or all of the steps of any one of the second aspects.
- FIG. 1 is a schematic diagram of an inverted signal according to an embodiment of the present application.
- FIG. 2 is a schematic flowchart of an audio encoding method according to an embodiment of the present application.
- FIG. 3 is a schematic flowchart of a method for determining an audio decoding mode according to an embodiment of the present application
- FIG. 4 is a schematic flowchart diagram of another audio encoding method according to an embodiment of the present disclosure.
- FIG. 5 is a schematic flowchart of an audio decoding method according to an embodiment of the present disclosure.
- FIG. 6 is a schematic flowchart diagram of another audio encoding method according to an embodiment of the present disclosure.
- FIG. 7 is a schematic flowchart diagram of another audio decoding method according to an embodiment of the present disclosure.
- FIG. 8 is a schematic flowchart diagram of a method for determining a time domain stereo parameter according to an embodiment of the present disclosure
- 9-A is a schematic flowchart of another audio encoding method provided by an embodiment of the present application.
- 9-B is a schematic flowchart of a method for calculating and encoding a channel combination scale factor corresponding to a current frame non-correlation signal channel combination scheme according to an embodiment of the present application;
- 9-C is a schematic flowchart of a method for calculating a difference correlation parameter between left and right channels of a current frame according to an embodiment of the present application
- 9-D is a schematic flowchart of a method for converting an amplitude correlation difference parameter between left and right channels of a current frame into a channel combination scale factor according to an embodiment of the present application;
- FIG. 10 is a schematic flowchart diagram of another audio decoding method according to an embodiment of the present disclosure.
- 11-A is a schematic diagram of an apparatus provided by an embodiment of the present application.
- 11-B is a schematic diagram of another apparatus provided by an embodiment of the present application.
- 11-C is a schematic diagram of another apparatus provided by an embodiment of the present application.
- 12-A is a schematic diagram of another apparatus provided by an embodiment of the present application.
- 12-B is a schematic diagram of another apparatus provided by an embodiment of the present application.
- 12-C is a schematic diagram of another apparatus provided by an embodiment of the present application.
- the time domain signal may be referred to as “signal” for simplicity of description.
- the left channel time domain signal may be referred to simply as "left channel signal.”
- the right channel time domain signal may be referred to simply as a "right channel signal.”
- a mono time domain signal may be referred to simply as a "mono signal.”
- the reference channel time domain signal may be referred to simply as a "reference channel signal.”
- the main channel time domain signal may be referred to as "main channel signal”.
- the secondary channel time domain signal may be referred to as a "secondary channel signal”.
- a Mid channel time domain signal may be referred to as a "central channel signal”.
- the side channel time domain signal may be referred to as a “side channel signal”.
- Other situations can be deduced by analogy.
- the left channel time domain signal and the right channel time domain signal may be collectively referred to as “left and right channel time domain signals” or may be collectively referred to as “left and right channel signals”. That is, the left and right channel time domain signals include a left channel time domain signal and a right channel time domain signal.
- the left and right channel time domain signals of the current frame subjected to the delay alignment processing include a left channel time domain signal of the current frame subjected to the delay alignment processing and a right channel time domain signal of the current frame subjected to the delay alignment processing.
- the primary channel signal and the secondary channel signal can be collectively referred to as "primary and secondary channel signals.” That is, the primary and secondary channel signals include a primary channel signal and a secondary channel signal.
- the primary and secondary channel decoding signals include a primary channel decoding signal and a secondary channel decoding signal.
- the left and right channel reconstruction signals include a left channel reconstruction signal and a right channel reconstruction signal. And so on.
- the conventional MS coding technique first downmixes the left and right channel signals into a center channel signal and a side channel signal.
- L represents the left channel signal
- R represents the right channel signal
- the Mid channel signal is 0.5*(L+R).
- the Mid channel signal characterizes the related information between the left and right channels.
- the Side channel signal is 0.5*(L-R), and the Side channel signal characterizes the difference between the left and right channels.
- the Mid channel signal and the Side channel signal are respectively encoded by a mono coding method.
- the Mid channel signal it is usually encoded with a relatively large number of bits
- for the Side channel signal it is usually encoded with a relatively small number of bits.
- some schemes extract time domain stereo parameters for indicating the proportion of the left and right channels in the time domain downmix processing by analyzing the time domain signals of the left and right channels.
- the purpose of this method is to improve the energy of the main channel in the time domain downmix signal and reduce the energy of the secondary channel when the energy difference between the stereo left and right channel signals is relatively large.
- L represents the left channel signal
- R represents the right channel signal.
- Alpha and beta are real numbers from 0 to 1.
- Figure 1 shows the amplitude variation of a left channel signal and a right channel signal.
- the absolute values of the amplitudes between the corresponding samples of the left channel signal and the right channel signal are substantially the same, but the signs are opposite, which is a typical class-inverted signal.
- Figure 1 only shows a typical example of a class-inverted signal.
- the inverted signal of the class refers to a stereo signal whose phase difference between the left and right channel signals is close to 180 degrees.
- a stereo signal having a phase difference between left and right channel signals belonging to [180- ⁇ , 180+ ⁇ ] may be referred to as an inversion-like signal, wherein ⁇ may take any angle between 0° and 90°, for example, ⁇ Equal to 0°, 5°, 15°, 17°, 20°, 30°, 40° and other angles.
- a normal-like phase signal is a stereo signal in which the phase difference between the left and right channel signals is close to 0 degrees.
- a stereo signal in which the phase difference between the left and right channel signals belongs to [- ⁇ , ⁇ ] can be referred to as a normal-like signal.
- ⁇ can take any angle between 0° and 90°, for example, ⁇ can be equal to angles of 0°, 5°, 15°, 17°, 20°, 30°, 40°.
- the energy of the main channel signal generated by the time domain downmix processing is often significantly greater than the energy of the secondary channel signal. If the main channel signal is encoded with a larger number of bits and the secondary channel signal is encoded with a smaller number of bits, it is advantageous to obtain a better encoding effect. However, when the left and right channel signals are inverted signals, if the same time domain downmix processing method is used, the generated main channel signal energy may be particularly small or even missing, resulting in a degradation of the final encoding quality.
- the encoding device and the decoding device mentioned in the embodiments of the present application may be devices having functions of collecting, storing, and transmitting voice signals to the outside.
- the encoding device and the decoding device may be, for example, a mobile phone, a server, a tablet, a personal computer, or Laptops and more.
- the left and right channel signals refer to left and right channel signals of the stereo signal.
- the stereo signal may be an original stereo signal, or a stereo signal composed of two signals included in the multi-channel signal, or a stereo composed of two signals jointly generated by the multi-channel signals included in the multi-channel signal. signal.
- the stereo coding method may also be a stereo coding method used in multi-channel coding.
- the stereo encoding device may also be a stereo encoding device used in a multi-channel encoding device.
- the stereo decoding method can also be a stereo decoding method used in multi-channel decoding.
- the stereo decoding device may be a stereo decoding device used in a multi-channel decoding device.
- the audio encoding method in the embodiment of the present application is, for example, directed to a stereo encoding scenario
- the audio decoding method in the embodiment of the present application is, for example, directed to a stereo decoding scenario.
- an audio encoding mode determining method may include: determining a channel combining scheme of a current frame, and determining an encoding mode of the current frame based on a channel combining scheme of a previous frame and a current frame.
- FIG. 2 is a schematic flowchart of an audio encoding method according to an embodiment of the present application.
- a related step of an audio encoding method may be implemented by an encoding device, for example, may include the following steps:
- the channel combination scheme of the current frame is one of a plurality of channel combination schemes.
- the plurality of channel combination schemes include an anticorrelated signal channel combination scheme and a correlated signal channel combination scheme.
- the correlation signal channel combination scheme is a channel combination scheme corresponding to the normal phase-like signal.
- the non-correlation signal channel combination scheme is a channel combination scheme corresponding to the inversion-like signal. It can be understood that the channel combination scheme corresponding to the normal phase-like signal is applicable to the normal phase-like signal, and the channel combination scheme corresponding to the inverted signal is applicable to the inverted signal.
- the encoding mode of the current frame may be determined based on the channel combining scheme of the current frame. Alternatively, a default encoding mode may be used as the encoding mode of the current frame.
- the coding mode of the current frame is one of multiple coding modes.
- the multiple coding modes may include: a correlation-to-anticorrelated signal coding switching mode, and an uncorrelated-to-correlated signal coding (anticorrelated-to-correlated signal coding). Switching mode), correlated signal coding mode, and anticorrelated signal coding mode.
- the time domain downmix mode corresponding to the correlation signal to the non-correlation signal coding mode may be referred to as a "correlated-to-anticorrelated signal downmix switching mode".
- the time domain downmix mode corresponding to the non-correlation signal to the correlation signal coding mode may be referred to as an "anticorrelated-to-correlated signal downmix switching mode".
- the time domain downmix mode corresponding to the correlation signal coding mode may be referred to as a "correlated signal downmix mode", for example.
- the time domain downmix mode corresponding to the non-correlation signal coding mode may be referred to as an "anticorrelated signal downmix mode", for example.
- the time-domain downmix processing of the left and right channel signals of the current frame can obtain the primary and secondary channel signals of the current frame, and further encode the primary and secondary channel signals to obtain a code stream.
- the channel combination scheme identifier of the current frame (the channel combination scheme identifier of the current frame is used to indicate the channel combination scheme of the current frame) may be further written into the code stream, so that the decoding apparatus is based on the sound of the current frame included in the code stream.
- the channel combination scheme identifies the channel combination scheme of the current frame.
- the specific implementation manner of determining the coding mode of the current frame according to the channel combination scheme of the previous frame and the channel combination scheme of the current frame may be various.
- determining an encoding mode of the current frame according to a channel combining scheme of a previous frame and a channel combining scheme of the current frame may include:
- the channel combining scheme of the previous frame is a correlation signal channel combining scheme
- the channel combining scheme of the current frame is a non-correlated signal channel combining scheme
- determining the encoding mode of the current frame as correlation Signal to non-correlation signal coding mode, wherein the correlation signal to non-correlation signal coding mode adopts a downmix processing method corresponding to a transition from a correlation signal channel combination scheme to a non-correlated signal channel combination scheme in time domain Mixed processing.
- the channel combining scheme of the previous frame is a non-correlated signal channel combining scheme
- the channel combining scheme of the current frame is a non-correlated signal channel combining scheme
- determining the current frame The coding mode is a non-correlation signal coding mode, and the non-correlation signal coding mode performs time domain downmix processing by using a downmix processing method corresponding to the non-correlated signal channel combination scheme.
- the channel combining scheme of the previous frame is a non-correlated signal channel combining scheme
- the channel combining scheme of the current frame is a correlation signal channel combining scheme
- the time domain downmix processing mode corresponding to the non-correlation signal to the correlation signal coding mode may be a segment time domain downmix mode, and may be specifically configured according to the channel combination scheme of the current frame and the previous frame.
- the left and right channel signals of the current frame are subjected to segmentation time domain downmix processing.
- the channel combination scheme of the current frame is a correlation signal channel combination scheme
- the channel combination scheme of the current frame is a correlation signal channel combination scheme
- determining that the coding mode of the current frame is a correlation signal coding mode The correlation signal coding mode performs time domain downmix processing by using a downmix processing method corresponding to the correlation signal channel combination scheme.
- time domain downmix processing methods corresponding to different coding modes are usually different.
- each encoding mode may also correspond to one or more time domain downmix processing methods.
- the current frame in a case where determining that an encoding mode of the current frame is a correlation signal encoding mode, using a time domain downmix processing manner corresponding to the correlation signal encoding mode, the current frame is used.
- the left and right channel signals are subjected to time domain downmix processing to obtain primary and secondary channel signals of the current frame, and the time domain downmix processing method corresponding to the correlation signal encoding mode is when the correlation signal channel combination scheme corresponds Domain downmix processing.
- an encoding mode of the current frame is an uncorrelated signal encoding mode
- adopting a time domain downmix processing manner corresponding to the non-correlation signal encoding mode The left and right channel signals of the current frame are subjected to time domain downmix processing to obtain primary and secondary channel signals of the current frame.
- the time domain downmix processing mode corresponding to the non-correlation signal coding mode is a time domain downmix processing mode corresponding to the non-correlated signal channel combination scheme.
- time domain downmix processing corresponding to the correlation to the non-correlation signal coding mode is adopted.
- the method performs time domain downmix processing on the left and right channel signals of the current frame to obtain primary and secondary channel signals of the current frame, and the correlation to the time domain downmix processing mode corresponding to the non-correlation signal coding mode.
- the time domain downmix processing method corresponding to the correlation signal channel combining scheme to the non-correlated signal channel combining scheme.
- the time domain downmix processing mode corresponding to the correlation signal to the non-correlation signal coding mode may be a segment time domain downmix mode, and may be specifically configured according to the channel combination scheme of the current frame and the previous frame.
- the left and right channel signals of the current frame are subjected to segmentation time domain downmix processing.
- an encoding mode of the current frame is a non-correlation to correlation signal encoding mode
- adopting the non-correlation to correlation signal encoding mode corresponding to a time domain a mixed processing manner performing time domain downmix processing on the left and right channel signals of the current frame to obtain primary and secondary channel signals of the current frame, and the non-correlation to time domain downmix corresponding to the correlation signal coding mode
- the processing manner is a time domain downmix processing method corresponding to the transition from the non-correlated signal channel combination scheme to the correlation signal channel combination scheme.
- time domain downmix processing methods corresponding to different coding modes are usually different.
- each encoding mode may also correspond to one or more time domain downmix processing methods.
- time-domain downmix processing of the left and right channel signals of the current frame is performed by using a time domain downmix processing manner corresponding to the non-correlation signal coding mode to obtain a
- the primary and secondary channel signals of the current frame may include: performing time domain downmix processing on the left and right channel signals of the current frame according to a channel combination scale factor of the non-correlation signal channel combination scheme of the current frame And obtaining a primary and secondary channel signals of the current frame; or a left and right channel signals of the current frame according to a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and a previous frame; Time domain downmix processing is performed to obtain primary and secondary channel signals of the current frame.
- the channel combination scheme of the current frame needs to be determined, which means that there are multiple possibilities for the channel combination scheme of the current frame, which is more than the traditional scheme with only one channel combination scheme.
- a possible channel combination scheme and a plurality of possible scenes are advantageous for obtaining a better compatible matching effect.
- the coding mode of the current frame needs to be determined based on the channel combination scheme of the previous frame and the channel combination scheme of the current frame, and the coding mode of the current frame has multiple possibilities, and this is relative to only one type.
- the traditional scheme of coding mode a variety of possible coding modes and multiple possible scenarios are beneficial to obtain a better compatible matching effect.
- the coding mode of the current frame may be, for example, a correlation signal to a non-correlation signal coding mode, or an uncorrelated signal to The correlation signal coding mode
- the segmentation time domain downmix processing may be performed on the left and right channel signals of the current frame according to the channel combination scheme of the current frame and the previous frame.
- the segmentation time domain downmix processing mechanism Since the mechanism for performing segmentation time domain downmix processing on the left and right channel signals of the current frame is introduced in a case where the channel combination scheme of the current frame and the previous frame is different, the segmentation time domain downmix processing mechanism It is beneficial to achieve smooth transition of the channel combination scheme, thereby facilitating the improvement of the encoding quality.
- an audio decoding mode determining method is also provided.
- the related steps of the audio decoding mode determining method may be implemented by a decoding device.
- the method may specifically include:
- the decoding mode of the current frame is one of multiple decoding modes.
- the multiple decoding modes may include: a correlated-to-anticorrelated signal decoding switching mode, and an uncorrelated-to-correlated signal decoding (anticorrelated-to-correlated signal decoding). Switching mode), correlated signal decoding mode, and anticorrelated signal decoding mode.
- the time domain upmix mode corresponding to the correlation signal to the non-correlation signal decoding mode may be referred to as a "correlated-to-anticorrelated signal upmix switching mode".
- the time domain upmix mode corresponding to the non-correlation signal to the correlation signal decoding mode may be referred to as an "anticorrelated-to-correlated signal upmix switching mode".
- the time domain upmix mode corresponding to the correlation signal decoding mode may be referred to as a "correlated signal upmix mode", for example.
- the time domain upmix mode corresponding to the non-correlation signal decoding mode may be referred to as an "anticorrelated signal upmix mode", for example.
- determining a decoding mode of the current frame according to a channel combining scheme of a previous frame and a channel combining scheme of the current frame including:
- the channel combining scheme of the previous frame is a correlation signal channel combining scheme
- the channel combining scheme of the current frame is a non-correlated signal channel combining scheme
- determining a decoding mode of the current frame as a correlation Signal to non-correlation signal decoding mode, wherein the correlation signal to non-correlation signal decoding mode adopts an upmix processing method corresponding to a transition from a correlation signal channel combining scheme to a non-correlated signal channel combining scheme for time domain Mixed processing.
- the non-correlation signal decoding mode performs time domain upmix processing by using an upmix processing method corresponding to the non-correlated signal channel combination scheme.
- the channel combining scheme of the previous frame is a non-correlated signal channel combining scheme
- the channel combining scheme of the current frame is a correlation signal channel combining scheme
- the channel combination scheme of the current frame is a correlation signal channel combination scheme
- the channel combination scheme of the current frame is a correlation signal channel combination scheme
- it is determined that the decoding mode of the current frame is a correlation signal decoding mode.
- the correlation signal decoding mode performs time domain upmix processing by using an upmix processing method corresponding to the correlation signal channel combination scheme.
- the decoding device determines that the decoding mode of the current frame is the non-correlation signal decoding mode
- the time-domain upmix processing mode corresponding to the non-correlation signal decoding mode is used, and the primary and secondary sounds of the current frame are used.
- the channel decoding signal performs time domain upmix processing to obtain left and right channel reconstruction signals of the current frame.
- the left and right channel reconstruction signals may be left and right channel decoding signals, or the left and right channel decoding signals may be subjected to delay adjustment processing and/or time domain post processing to obtain left and right channel decoding signals.
- the time domain upmix processing mode corresponding to the non-correlation signal decoding mode is a time domain upmix processing mode corresponding to the non-correlated signal channel combination scheme, and the non-correlated signal channel combination scheme is a class inversion.
- the channel combination scheme corresponding to the signal is a time domain upmix processing mode corresponding to the signal.
- the decoding mode of the current frame may be one of a plurality of decoding modes.
- the decoding mode of the current frame may be one of the following decoding modes: a correlation signal decoding mode, a non-correlation signal decoding mode, a correlation to a non-correlation signal decoding mode, and a non-correlation to correlation signal decoding mode.
- the decoding mode of the current frame needs to be determined in the above solution, which means that there are multiple possibilities for the decoding mode of the current frame, which is different from the conventional scheme with only one decoding mode, and multiple possible decoding modes and A variety of possible scenarios help to achieve a better compatible match. Moreover, since a channel combination scheme corresponding to the inverted signal of the class is introduced, this makes a relatively more targeted channel combination scheme and decoding mode for the case where the stereo signal of the current frame is an inverted signal. In turn, it is beneficial to improve the decoding quality.
- the decoding apparatus determines that the decoding mode of the current frame is the correlation signal decoding mode
- the time domain upmix processing mode corresponding to the correlation signal decoding mode is used, and the primary and secondary sounds of the current frame are used.
- the channel decoding signal is subjected to time domain upmix processing to obtain a left and right channel reconstruction signal of the current frame, and the time domain upmix processing method corresponding to the correlation signal decoding mode is in a time domain corresponding to the correlation signal channel combination scheme.
- the correlation signal channel combination scheme is a channel combination scheme corresponding to the normal phase signal.
- the time domain upmix processing method corresponding to the correlation to the non-correlation signal decoding mode is adopted,
- the primary and secondary channel decoding signals of the current frame are subjected to time domain upmix processing to obtain left and right channel reconstruction signals of the current frame, and the time domain upmix processing method corresponding to the correlation to the non-correlation signal decoding mode is From the correlation signal channel combination scheme to the time domain upmix processing method corresponding to the non-correlated signal channel combination scheme.
- the decoding apparatus determines that the decoding mode of the current frame is a non-correlation to correlation signal decoding mode
- the time domain upmix processing corresponding to the non-correlation to correlation signal decoding mode is adopted
- the primary and secondary channel decoding signals of the current frame are subjected to time domain upmix processing to obtain left and right channel reconstruction signals of the current frame
- the time domain upmix processing method corresponding to the non-correlation to correlation signal decoding mode is From the non-correlated signal channel combination scheme to the time domain upmix processing corresponding to the correlation signal channel combination scheme.
- each decoding mode may also correspond to one or more time domain upmix processing methods.
- the channel combination scheme of the current frame needs to be determined, which means that there are multiple possibilities for the channel combination scheme of the current frame, which is more than the traditional scheme with only one channel combination scheme.
- a possible channel combination scheme and a plurality of possible scenes are advantageous for obtaining a better compatible matching effect.
- the decoding mode of the current frame needs to be determined based on the channel combination scheme of the previous frame and the channel combination scheme of the current frame, and the decoding mode of the current frame has multiple possibilities, and this is relative to only one type.
- the traditional scheme of decoding mode a variety of possible decoding modes and multiple possible scenarios are beneficial to obtain a better compatible matching effect.
- the decoding apparatus performs time domain upmix processing on the primary and secondary channel decoding signals of the current frame based on the time domain upmix processing corresponding to the decoding mode of the current frame to obtain a left and right channel reconstruction signal of the current frame.
- the encoding device determines some specific implementations of the channel combination scheme of the current frame.
- the specific implementation of the channel combining scheme for the encoding device to determine the current frame is varied.
- determining a channel combination scheme of the current frame may include determining a channel combination scheme of the current frame by performing at least one channel combination scheme decision on the current frame.
- the determining a channel combination scheme of the current frame includes: performing a channel combination scheme initial decision on the current frame to determine an initial channel combination scheme of the current frame. And performing a channel combination scheme correction decision on the current frame based on an initial channel combination scheme of the current frame to determine a channel combination scheme of the current frame.
- the initial channel combination scheme of the current frame may be directly used as the channel combination scheme of the current frame, that is, the channel combination scheme of the current frame may be: performing channel combination on the current frame. The initial channel combination scheme of the current frame determined by the initial decision of the scheme.
- performing a channel combining scheme initial decision on the current frame may include: determining, by using left and right channel signals of the current frame, a signal positive inversion type of a stereo signal of the current frame; using a stereo signal of the current frame
- the signal positive and negative phase type and the channel combination scheme of the previous frame determine the initial channel combination scheme of the current frame.
- the signal positive inversion type of the stereo signal of the current frame may be a normal-like phase-like signal or an inverted-like signal.
- the signal positive inversion type of the stereo signal of the current frame may be indicated by a signal positive inversion type identification of the current frame (signal positive inversion type identification, for example, represented by tmp_SM_flag).
- the signal positive inversion type identifier of the current frame takes a value of “1”
- the signal positive inversion type of the stereo signal indicating the current frame is a normal-like phase signal
- the positive inversion type identifier takes a value of “0”
- the signal positive and negative inversion type of the stereo signal indicating the current frame is an inversion-like signal, and vice versa.
- a channel combining scheme of an audio frame may be indicated by a channel combination scheme identification of the audio frame. For example, when the channel combination scheme identifier of the audio frame takes a value of “0”, the channel combination scheme indicating the audio frame is a correlation signal channel combination scheme. When the channel combination scheme identifier of the audio frame takes a value of “1”, the channel combination scheme indicating the audio frame is a non-correlated signal channel combination scheme, and vice versa.
- an initial channel combining scheme of an audio frame may be indicated by an initial channel combining scheme identification of the audio frame (initial channel combining scheme identification, eg, represented by tdm_SM_flag_loc).
- initial channel combining scheme identification eg, represented by tdm_SM_flag_loc.
- the initial channel combination scheme indicating the audio frame is a correlation signal channel combination scheme.
- the initial channel combination scheme indicating the audio frame is a non-correlated signal channel combination scheme, and vice versa.
- the determining, by using the left and right channel signals of the current frame, the signal positive and negative inversion type of the stereo signal of the current frame may include: calculating a correlation value xorr between the left and right channel signals of the current frame, where Determining that the signal positive inversion type of the stereo signal of the current frame is a normal-like phase signal if xorr is less than or equal to the first threshold, and determining the stereo signal of the current frame if the xorr is greater than the first threshold
- the positive and negative signal types are inverted signals.
- the signal positive and negative type identification of the current frame is used to indicate the positive and negative signal type of the stereo signal of the current frame
- determining the positive and negative signal types of the stereo signal of the current frame is In the case of a positive phase signal, the value of the positive and negative inversion type of the signal of the current frame may be set to indicate that the positive and negative phase of the signal of the stereo signal of the current frame is a normal phase-like signal; In the case that the positive-inverting type of the signal of the current frame is a normal-phase-like signal, the value of the positive-inversion type identifier of the signal of the current frame may be set to indicate that the positive-reverse type of the signal of the stereo signal of the current frame is Inverted signal.
- the value of the first threshold may be, for example, (0.5, 1.0), for example, may be equal to 0.5, 0.85, 0.75, 0.65, or 0.81.
- the signal positive inversion type identifier of the audio frame for example, the previous frame or the current frame
- the signal positive and negative phase indicating the stereo signal of the audio frame is a normal-like phase
- the audio frame when the signal positive and negative inversion type flag (for example, the previous frame or the current frame) takes a value of "1”, the signal indicating the positive and negative inversion type of the stereo signal of the audio frame is an inversion-like signal, and so on.
- the initial channel combination scheme of the current frame is determined by using a positive and negative signal type of the stereo signal of the current frame and a channel combination scheme of the previous frame.
- the method may include:
- the channel combining scheme of the previous frame is a correlation signal channel combining scheme
- the combining scheme is a correlation signal channel combining scheme
- the signal positive inversion type of the stereo signal in the current frame is an inversion-like signal
- the channel combining scheme of the previous frame is a non-correlated signal channel combining scheme
- the initial channel combination scheme of the current frame is determined to be a non-correlated signal channel combination scheme.
- the channel combining scheme of the previous frame is a non-correlated signal channel combining scheme
- the initial channel combination scheme of the current frame is determined to be a correlation signal channel combination scheme
- the left channel signal and/or the right channel signal of the current frame are The signal to noise ratio is greater than or equal to the second threshold
- the initial channel combination scheme of the current frame is determined to be a non-correlated signal channel combination scheme
- the channel combining scheme of the previous frame is a correlation signal channel combining scheme
- the left and right channels of the current frame are The signal to noise ratio of the signal is less than the second threshold, determining that the initial channel combination scheme of the current frame is a non-correlated signal channel combination scheme; if the left channel signal and/or the right channel signal of the current frame are The signal to noise ratio is greater than or equal to the second threshold, and the initial channel combination scheme of the current frame is determined to be a correlation signal channel combination scheme.
- the value range of the second threshold may be, for example, [0.8, 1.2], for example, may be equal to 0.8, 0.85, 0.9, 1, 1.1, or 1.18.
- the performing a channel combination scheme correction decision on the current frame based on the initial channel combination scheme of the current frame may include: modifying, according to a channel combination scale factor of a previous frame, a signal of a stereo signal of the current frame.
- the positive inversion type and the initial channel combination scheme of the current frame determine a channel combination scheme of the current frame.
- the channel combination scheme identifier of the current frame may be recorded as tdm_SM_flag, and the channel combination scale factor correction identifier of the current frame is recorded as tdm_SM_modi_flag.
- the channel combination scale factor correction flag takes a value of 0, which means that the correction of the channel combination scale factor is not required, and the channel combination scale factor correction flag takes a value of 1, indicating that the correction of the channel combination scale factor is required.
- the channel combination scale factor correction flag can also use other different values to indicate whether the channel combination scale factor correction is needed.
- the channel combination scheme correction decision for the current frame based on the initial decision result of the channel combination scheme of the current frame may include:
- the non-correlation signal channel combination scheme is used as the channel combination scheme of the current frame; if the channel combination ratio of the previous frame is The factor correction indicator indicates that it is not necessary to correct the channel combination scale factor, determine whether the current frame satisfies the handover condition, and determine a channel combination scheme of the current frame based on the determination result of whether the current frame satisfies the handover condition.
- the determining, according to the determination result that the current frame meets the handover condition, the channel combination scheme of the current frame may include:
- the channel combination scheme of the previous frame is different from the initial channel combination scheme of the current frame, and the current frame satisfies a handover condition, and the initial channel combination scheme of the current frame is a correlation signal channel combination scheme.
- the channel combination scheme of the previous frame is a non-correlation signal channel combination scheme, and the channel combination scheme of the current frame is determined to be a non-correlated signal channel combination scheme.
- the channel combining scheme of the previous frame is different from the initial channel combining scheme of the current frame, and the current frame satisfies a switching condition, and the initial channel combining scheme of the current frame is a non-correlated signal channel combination.
- a scheme, and the channel combination scheme of the previous frame is a correlation signal channel combination scheme, and if the channel combination scale factor of the previous frame is smaller than the first scale factor threshold, determining the channel of the current frame
- the combination scheme is a correlation signal channel combination scheme.
- the channel combining scheme of the previous frame is different from the initial channel combining scheme of the current frame, and the current frame satisfies a switching condition, and the initial channel combining scheme of the current frame is a non-correlated signal channel combination a scheme, and the channel combining scheme of the previous frame is a correlation signal channel combining scheme, and if the channel combining scale factor of the previous frame is greater than or equal to the first scale factor threshold, determining the current frame
- the channel combination scheme is a non-correlated signal channel combination scheme.
- the channel combination scheme of the first P-1 frame is different from the initial channel combination scheme of the first P frame, and the first P frame does not satisfy the handover condition, and the current frame satisfies a handover condition, and the
- the signal positive inversion type of the stereo signal of the current frame is a normal-like phase signal
- the initial channel combination scheme of the current frame is a correlation signal channel combination scheme
- the previous frame is a non-correlated signal channel combination scheme.
- determining a channel combination scheme of the current frame as a correlation signal channel combination scheme.
- the channel combination scheme of the first P-1 frame and the initial channel combination scheme of the first P frame does not satisfy the handover condition, and the current frame satisfies the handover condition, and the current frame
- the signal positive inversion type of the stereo signal is an inversion-like signal
- the initial channel combination scheme of the current frame is a non-correlated signal channel combination scheme
- the channel combination scheme of the previous frame is a correlation signal channel.
- the channel combination scheme of the current frame is determined to be a correlation signal channel combination scheme.
- the channel combination scheme of the first P-1 frame is different from the initial channel combination scheme of the first P frame, and the first P frame does not satisfy the handover condition, and the current frame satisfies the handover condition, and the current frame
- the positive and negative inversion type of the stereo signal is a class-inverted signal
- the initial channel combination scheme of the current frame is a non-correlated signal channel combination scheme
- the channel combination scheme of the previous frame is a correlation signal channel.
- the channel combination scheme of the current frame is determined to be a non-correlation signal channel combination scheme.
- P may be an integer greater than 1, for example, P may be equal to 2, 3, 4, 5, 6, or other values.
- the value range of the first scale factor threshold may be, for example, [0.4, 0.6], for example, may be equal to 0.4, 0.45, 0.5, 0.55, or 0.6.
- the value range of the second scale factor threshold may be, for example, [0.4, 0.6], for example, may be equal to 0.4, 0.46, 0.5, 0.56, or 0.6.
- determining whether the current frame satisfies the handover condition may include determining whether the current frame satisfies a handover condition according to a primary channel signal frame type and/or a secondary channel signal frame type of the previous frame.
- determining whether the current frame meets the handover condition may include:
- the main channel signal frame type of the previous frame of the previous frame is any one of the following: VOICED_CLAS frame (the voiced frame, the previous frame is a voiced frame or a voiced start frame), ONSET frame (voiced) Start frame), SIN_ONSET frame (start frame of harmonic and noise mixing), INACTIVE_CLAS frame, AUDIO_CLAS (audio frame), and the main channel signal frame type of the previous frame is UNVOICED_CLAS frame (unvoiced, mute) a frame of one of several characteristics, such as the end of noise or voiced sounds) or a VOICED_TRANSITION frame (the frame after the voiced sound is excessive and the voiced characteristics are already weak); or, the type of the secondary channel signal frame of the previous frame of the previous frame is Any of the following: VOICED_CLAS frame, ONSET frame, SIN_ONSET frame, INACTIVE_CLAS frame, and AUDIO_CLAS frame, and the secondary channel signal frame type of the previous frame is UNVOICED_
- the second condition the original coding mode of the primary channel signal and the secondary channel signal of the previous frame are not VOICED (the coding type corresponding to the voiced frame).
- the third condition up to the previous frame, the number of frames of the channel combination scheme that has been used continuously for the previous frame is greater than the preset number of frames threshold.
- the value range of the frame number threshold may be, for example, [3, 10], for example, the frame number threshold may be equal to 3, 4, 5, 6, 7, 8, 9, or other values.
- the main channel signal frame type of the previous frame is UNVOICED_CLAS, or the secondary channel signal frame type of the previous frame is UNVOICED_CLAS.
- the long-term rms energy value of the left and right channel signals of the current frame is smaller than the energy threshold.
- the value range of this energy threshold can be, for example, [300, 500], for example, the frame number threshold can be equal to 300, 400, 410, 451, 482, 500, 415 or other values.
- the sixth condition the main channel signal frame type of the previous frame is a music signal, and the energy ratio of the low frequency band to the high frequency band of the main channel signal of the previous frame is greater than the first energy ratio threshold, and the secondary of the previous frame The energy ratio of the low frequency band to the high frequency band of the channel signal is greater than the second energy ratio threshold.
- the first energy ratio threshold range may be, for example, [4000, 6000], for example, the frame number threshold may be equal to 4000, 4500, 5000, 5105, 5200, 6000, 5800 or other values.
- the second energy ratio threshold range may be, for example, [4000, 6000], for example, the frame number threshold may be equal to 4000, 4501, 5000, 5105, 5200, 6000, 5800 or other values.
- the implementation manner of determining whether the current frame satisfies the handover condition may be various, and is not limited to the above-exemplified manner.
- an embodiment of the present application provides an audio encoding method.
- the related steps of the audio encoding method may be implemented by an encoding device.
- the method may include:
- time domain downmix processing mode corresponding to the non-correlation signal coding mode uses the time domain downmix processing mode to perform left and right channel signals of the current frame.
- Time domain downmix processing is performed to obtain primary and secondary channel signals of the current frame.
- the time domain downmix processing mode corresponding to the non-correlation signal coding mode is a time domain downmix processing mode corresponding to the non-correlated signal channel combination scheme, and the non-correlated signal channel combination scheme is a class inversion.
- the channel combination scheme corresponding to the signal is a time domain downmix processing mode corresponding to the signal.
- time-domain downmix processing of the left and right channel signals of the current frame is performed by using a time domain downmix processing manner corresponding to the non-correlation signal coding mode to obtain a
- the primary and secondary channel signals of the current frame may include: performing time domain downmix processing on the left and right channel signals of the current frame according to a channel combination scale factor of the non-correlation signal channel combination scheme of the current frame And obtaining a primary and secondary channel signals of the current frame; or a left and right channel signals of the current frame according to a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and a previous frame; Time domain downmix processing is performed to obtain primary and secondary channel signals of the current frame.
- the channel combination scale factor of the channel combination scheme of the audio frame may be preset. Fixed value. It is of course also possible to determine the channel combination scale factor of this audio frame based on the channel combination scheme of the audio frame.
- a corresponding downmix matrix may be constructed based on a channel combination scale factor of the audio frame, and the left and right channel signals of the current frame are time-domain downmixed by using a downmix matrix corresponding to the channel combination scheme. Processing to obtain the primary and secondary channel signals of the current frame.
- the left and right channel signals of the current frame are subjected to time domain downmix processing according to a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- the delay_com represents coding delay compensation.
- the left and right channel signals of the current frame are subjected to time domain downmix processing according to a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- a channel combination scaling factor of the non-correlated signal channel combination scheme of the current frame and the previous frame to obtain
- fade_in(n) represents a fade-in factor.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- Fade_out(n) represents the fade factor.
- fade_out(n) can also be a fade factor based on other functional relationships of n.
- NOVA_1 represents the length of the transition process.
- the value of NOVA_1 can be set according to the specific scene. NOVA_1 may, for example, be equal to 3/N or NOVA_1 may be other values less than N.
- the left and right channel signals of the current frame are subjected to time domain downmix processing to obtain the primary and secondary sounds of the current frame.
- the left and right channel signals of the current frame are subjected to time domain downmix processing to obtain the primary and secondary sounds of the current frame.
- a signal In the case of a signal,
- the X L (n) represents the left channel signal of the current frame.
- the X R (n) represents a right channel signal of the current frame.
- the Y(n) represents a primary channel signal of the current frame obtained by time domain downmix processing; the X(n) represents a secondary sound of the current frame obtained by time domain downmix processing Signal.
- delay_com represents coding delay compensation
- M 11 represents a downmix matrix corresponding to the correlation signal channel combination scheme of the previous frame, and M 11 is constructed based on a channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame.
- the M 12 represents a downmix matrix corresponding to the non-correlated signal channel combination scheme of the previous frame, and the M 12 is based on a channel combination ratio corresponding to the non-correlation signal channel combination scheme of the previous frame. Factor construction.
- the M 22 represents a downmix matrix corresponding to the non-correlation signal channel combination scheme of the current frame, and the M 22 is constructed based on a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame. .
- the M 21 represents a downmix matrix corresponding to the correlation signal channel combination scheme of the current frame, and the M 21 is constructed based on a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the M 21 may exist in various forms, for example:
- the ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the M 22 may exist in various forms, for example:
- ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the M 12 may exist in various forms, for example:
- ⁇ 1_pre tdm_last_ratio_SM
- ⁇ 2_pre 1-tdm_last_ratio_SM
- tdm_last_ratio_SM represents the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame.
- the left and right channel signals of the current frame may specifically be the original left and right channel signals of the current frame (the original left and right channel signals are left and right channel signals that are not preprocessed in the time domain, for example, the left and right channel signals may be sampled. Or, may be the time-domain preprocessed left and right channel signals of the current frame; or may be the left and right channel signals of the current frame that are subjected to the delay alignment processing.
- said Re represents the original left and right channel signals of the current frame.
- Said A left and right channel signal representing the time-delayed processing of the current frame.
- non-correlation signal decoding mode scenario is exemplified below.
- an embodiment of the present application further provides an audio decoding method.
- the related steps of the audio decoding method may be implemented by a decoding device.
- the method may include:
- step 501 and step 502 has no necessary sequence.
- the decoding mode of the current frame is a non-correlation signal decoding mode
- use a time domain upmix processing mode corresponding to the non-correlation signal decoding mode to perform a primary and secondary channel of the current frame.
- the decoded signal is subjected to time domain upmix processing to obtain left and right channel reconstruction signals of the current frame.
- the left and right channel reconstruction signals may be left and right channel decoding signals, or the left and right channel decoding signals may be subjected to delay adjustment processing and/or time domain post processing to obtain left and right channel decoding signals.
- the time domain upmix processing mode corresponding to the non-correlation signal decoding mode is a time domain upmix processing mode corresponding to the non-correlated signal channel combination scheme, and the non-correlated signal channel combination scheme is a class inversion.
- the channel combination scheme corresponding to the signal is a time domain upmix processing mode corresponding to the signal.
- the decoding mode of the current frame may be one of a plurality of decoding modes.
- the decoding mode of the current frame may be one of the following decoding modes: a correlation signal decoding mode, a non-correlation signal decoding mode, a correlation to a non-correlation signal decoding mode, and a non-correlation to correlation signal decoding mode.
- the decoding mode of the current frame needs to be determined in the above solution, which means that there are multiple possibilities for the decoding mode of the current frame, which is different from the conventional scheme with only one decoding mode, and multiple possible decoding modes and A variety of possible scenarios help to achieve a better compatible match. Moreover, since a channel combination scheme corresponding to the inverted signal of the class is introduced, this makes a relatively more targeted channel combination scheme and decoding mode for the case where the stereo signal of the current frame is an inverted signal. In turn, it is beneficial to improve the decoding quality.
- the method may further include:
- the time domain upmix processing mode corresponding to the correlation signal decoding mode when the primary and secondary channel decoding signals of the current frame are performed Domain upmixing to obtain a left and right channel reconstruction signal of the current frame, and the time domain upmix processing method corresponding to the correlation signal decoding mode is a time domain upmix processing method corresponding to the correlation signal channel combination scheme,
- the correlation signal channel combination scheme is a channel combination scheme corresponding to the normal phase signal.
- the method may further include: when determining that the decoding mode of the current frame is a correlation to a non-correlation signal decoding mode, adopting the correlation to the non-correlation signal decoding mode a time domain upmix processing method, performing time domain upmix processing on the primary and secondary channel decoded signals of the current frame to obtain a left and right channel reconstruction signal of the current frame, the correlation to a non-correlated signal decoding mode
- the corresponding time domain upmix processing mode is a time domain upmix processing method corresponding to the correlation signal channel combination scheme and the non-correlation signal channel combination scheme.
- the method may further include: when determining that the decoding mode of the current frame is a non-correlation to correlation signal decoding mode, adopting the non-correlation to correlation signal decoding mode corresponding to a time domain upmix processing method, performing time domain upmix processing on the primary and secondary channel decoded signals of the current frame to obtain a left and right channel reconstruction signal of the current frame, the non-correlation to correlation signal decoding mode
- the corresponding time domain upmix processing mode is a time domain upmix processing method corresponding to the non-correlation signal channel combination scheme to the correlation signal channel combination scheme.
- each decoding mode may also correspond to one or more time domain upmix processing methods.
- performing time domain upmix processing on the primary and secondary channel decoding signals of the current frame by using a time domain upmix processing manner corresponding to the non-correlation signal decoding mode including:
- a corresponding upmix matrix may be constructed based on a channel combination scale factor of the audio frame, and the primary and secondary channel decoding signals of the current frame are performed by using an upmix matrix corresponding to the channel combination scheme.
- the domain is upmixed to obtain the left and right channel reconstruction signals of the current frame.
- the time domain upmixing process is performed on the primary and secondary channel decoding signals of the current frame according to the channel combination scaling factor of the non-correlation signal channel combination scheme of the current frame and the previous frame.
- the left and right channel reconstruction signals of the current frame are obtained.
- the delay_com represents coding delay compensation.
- the time domain upmixing process is performed on the primary and secondary channel decoding signals of the current frame according to the channel combination scaling factor of the non-correlation signal channel combination scheme of the current frame and the previous frame.
- the left and right channel reconstruction signals of the current frame are obtained.
- the NOVA_1 represents the length of the transition process.
- fade_in(n) represents a fade-in factor.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- fade_out(n) represents a fade factor.
- fade_out(n) can also be a fade factor based on other functional relationships of n.
- NOVA_1 represents the length of the transition process.
- the value of NOVA_1 can be set according to the specific scene. NOVA_1 may, for example, be equal to 3/N or NOVA_1 may be other values less than N.
- a channel combination scaling factor of the correlation signal channel combination scheme of the current frame to obtain the current frame.
- the upmixing_delay indicates decoding delay compensation
- An upmix matrix corresponding to the correlation signal channel combination scheme of the previous frame, The channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame is constructed.
- the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame is constructed.
- the channel combination scale factor corresponding to the non-correlated signal channel combination scheme of the previous frame is constructed.
- the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame is constructed.
- ⁇ 1 ratio_SM
- ⁇ 2 1 - ratio_SM
- the ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- ⁇ 1_pre tdm_last_ratio_SM
- ⁇ 2_pre 1-tdm_last_ratio_SM.
- tdm_last_ratio_SM represents the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame.
- the ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the following is an example of a correlation signal to non-correlation signal coding mode and a non-correlation signal to a non-correlation signal coding mode scenario.
- the time-domain downmix processing method corresponding to the correlation signal to the non-correlation signal coding mode and the non-correlation signal to the non-correlation signal coding mode is, for example, a segmented time domain downmix processing mode.
- an embodiment of the present application provides an audio encoding method, where the related steps of the audio encoding method may be implemented by an encoding device, and the method may specifically include:
- the coding mode of the current frame may be determined to be a correlation signal to a non-correlation signal coding mode or a non-correlation signal to an uncorrelated signal coding.
- the coding mode of the current frame is a correlation signal to a non-correlation signal coding mode or a non-correlation signal to a non-correlation signal coding mode, for example, according to the channel combination scheme of the current frame and the previous frame Performing segmentation time domain downmix processing on the left and right channel signals of the current frame.
- the channel combination scheme of the current frame is a correlation signal channel combination scheme
- the channel combination scheme of the current frame is a non-correlation signal channel combination scheme
- the coding mode of the current frame can be determined as a correlation signal to Non-correlated signal coding mode.
- the channel combination scheme of the current frame is a non-correlation signal channel combination scheme
- the channel combination scheme of the current frame is a correlation signal channel combination scheme
- the coding mode of the current frame can be determined to be an uncorrelated signal. To the correlation signal coding mode. And so on.
- the segmented time domain downmix processing can be understood as the left and right channel signals of the current frame are divided into at least two segments, and the time domain downmix processing is performed for each segment using different time domain downmix processing methods. It can be appreciated that the segmented time domain downmix processing makes it more likely to obtain better smoothing over when the channel combination scheme of adjacent frames changes relative to the non-segmented time domain downmix processing.
- the channel combination scheme of the current frame needs to be determined, which means that there are multiple possibilities for the channel combination scheme of the current frame, which is more than the traditional scheme with only one channel combination scheme.
- a possible channel combination scheme and a plurality of possible scenes are advantageous for obtaining a better compatible matching effect.
- a mechanism for performing segmentation time domain downmix processing on the left and right channel signals of the current frame is introduced in a case where the channel combination scheme of the current frame and the previous frame is different, the segmentation time domain downmixing is introduced.
- the processing mechanism is beneficial to achieve smooth transition of the channel combination scheme, thereby facilitating the improvement of the encoding quality.
- the channel combination scheme of the previous frame may be, for example, a correlation signal channel combination scheme or a non-correlated signal channel combination scheme.
- the channel combination scheme of the current frame may be a correlation signal channel combination scheme or a non-correlated signal channel combination scheme.
- the channel combination scheme of the previous frame is a correlation signal channel combination scheme and the channel combination scheme of the current frame is a non-correlation signal channel combination scheme
- left and right channels of the current frame The signal includes a left and right channel signal start segment, a left and right channel signal intermediate segment, and a left and right channel signal end segment;
- the primary and secondary channel signals of the current frame include a primary and secondary channel signal start segment, and a primary and secondary channel signal intermediate Segment and primary and secondary channel signal end segments.
- the signal can include:
- the segment Using the channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame and the time domain downmix processing method corresponding to the correlation signal channel combination scheme, starting the left and right channel signals of the current frame The segment performs time domain downmix processing to obtain a start segment of the primary and secondary channel signals of the current frame;
- the middle segment of the left and right channel signals of the current frame Performing time domain downmix processing to obtain a first primary and secondary channel signal intermediate segment; using a current frame non-correlated signal channel combination scheme corresponding to a channel combination scale factor and a non-correlated signal channel combination scheme corresponding to a time domain a downmix processing manner, performing time domain downmix processing on the middle segment of the left and right channel signals of the current frame to obtain a second primary and secondary channel signal intermediate segment; and the first primary and secondary channel signal intermediate segments and the The middle segment of the second primary and secondary channel signals is subjected to weighted summation processing to obtain an intermediate segment of the primary and secondary channel signals of the current frame.
- the lengths of the left and right channel signal start segments, the left and right channel signal intermediate segments, and the left and right channel signal end segments of the current frame may be set as needed.
- the lengths of the left and right channel signal start segments, the left and right channel signal intermediate segments, and the left and right channel signal end segments of the current frame may be equal, partially equal, or unequal to each other.
- the length of the primary and secondary channel signal start segments, the primary and secondary channel signal intermediate segments, and the primary and secondary channel signal end segments of the current frame may be set as needed.
- the lengths of the primary and secondary channel signal start segments, the primary and secondary channel signal intermediate segments, and the primary and secondary channel signal end segments of the current frame may be equal, partially equal, or unequal to each other.
- the weighting coefficient corresponding to the middle segment of the first primary and secondary channel signals may be Equal to or not equal to the weighting coefficient corresponding to the middle segment of the second primary and secondary channel signals.
- the weighting coefficients corresponding to the intermediate segments of the first primary and secondary channel signals are For the fade factor, the weighting coefficient corresponding to the middle segment of the second primary and secondary channel signals is a fade-in factor.
- X 11 (n) represents the beginning segment of the main channel signal of the current frame.
- Y 11 (n) represents the start segment of the secondary channel signal of the current frame.
- X 31 (n) represents the end segment of the main channel signal of the current frame.
- Y 31 (n) represents the end segment of the secondary channel signal of the current frame.
- X 21 (n) represents the middle segment of the main channel signal of the current frame.
- Y 21 (n) represents a middle segment of the secondary channel signal of the current frame;
- X(n) represents the main channel signal of the current frame.
- Y(n) represents the secondary channel signal of the current frame.
- fade_in(n) represents a fade-in factor
- fade_out(n) represents a fade-out factor
- the sum of fade_in(n) and fade_out(n) is 1.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- fade_out(n) can also be a fade-in factor based on other functional relationships of n.
- n 0, 1, ..., N-1. 0 ⁇ N 1 ⁇ N 2 ⁇ N-1.
- N 1 is equal to 100, 107, 120, 150 or other values.
- N 2 is equal to 180, 187, 200, 203 or other value.
- the X 211 (n) represents a middle segment of the first primary channel signal of the current frame
- the Y 211 (n) represents a middle segment of the first secondary channel signal of the current frame
- the X 212 (n) represents a middle segment of the second primary channel signal of the current frame
- the Y 212 (n) represents a middle segment of the second secondary channel signal of the current frame.
- X L (n) represents a left channel signal of the current frame.
- the X R (n) represents a right channel signal of the current frame.
- the M 11 represents a downmix matrix corresponding to the correlation signal channel combination scheme of the previous frame, and the M 11 is constructed based on a channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame.
- the M 22 represents a downmix matrix corresponding to the non-correlation signal channel combination scheme of the current frame, and the M 22 is constructed based on a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame. .
- the M 22 can have many possible forms, for example:
- the ⁇ 1 ratio_SM
- the ⁇ 2 1-ratio_SM
- the ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the M 11 can have many possible forms, for example:
- the tdm_last_ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame.
- the channel combining scheme of the previous frame is a non-correlated signal channel combining scheme and the channel combining scheme of the current frame is a correlation signal channel combining scheme
- the current frame is The left and right channel signals include a left and right channel signal start segment, a left and right channel signal intermediate segment, and a left and right channel signal end segment
- the primary and secondary channel signals of the current frame include a primary and secondary channel signal start segment, a primary infrasound signal The middle segment of the track signal and the end segment of the primary and secondary channel signals.
- the left and right channel signals of the current frame are used Performing time domain downmix processing on the initial segment to obtain a primary and secondary channel signal start segment of the current frame;
- the left and right channel signals of the current frame are used The middle segment performs time domain downmix processing to obtain a third primary and secondary channel signal intermediate segment; the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme and the time domain corresponding to the correlation signal channel combination scheme a downmix processing manner, performing time domain downmix processing on the middle segment of the left and right channel signals of the current frame to obtain a fourth primary and secondary channel signal intermediate segment; and the third primary and secondary channel signal intermediate segment and the The middle segment of the fourth primary sub-channel signal is subjected to weighted summation processing to obtain an intermediate segment of the primary and secondary channel signals of the current frame.
- the weighting coefficient corresponding to the intermediate segment of the third primary and secondary channel signals may be Equal to or not equal to the weighting coefficient corresponding to the middle segment of the fourth primary and secondary channel signals.
- the weighting coefficient corresponding to the intermediate segment of the third primary and secondary channel signals is faded out
- the weighting coefficient corresponding to the middle segment of the fourth primary and secondary channel signals is a fade-in factor.
- X 12 (n) represents a primary channel signal start segment of the current frame
- Y 12 (n) represents a secondary channel signal start segment of the current frame
- X 32 (n) represents the end segment of the main channel signal of the current frame
- Y 32 (n) represents the end segment of the secondary channel signal of the current frame
- X 22 (n) represents the middle segment of the main channel signal of the current frame
- Y 22 (n) represents the middle segment of the secondary channel signal of the current frame.
- X(n) represents the main channel signal of the current frame.
- Y(n) represents the secondary channel signal of the current frame.
- fade_in(n) represents a fade-in factor representation
- fade_out(n) represents a fade-out factor
- the sum of fade_in(n) and fade_out(n) is 1.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- fade_out(n) can also be a fade-in factor based on other functional relationships of n.
- N 3 is equal to 101, 107, 120, 150 or other values.
- N 4 is equal to 181, 187, 200, 205 or other value.
- the X 221 (n) represents a middle segment of a third primary channel signal of the current frame
- the Y 221 (n) represents a middle segment of a third secondary channel signal of the current frame
- the X 222 (n) represents a middle segment of the fourth primary channel signal of the current frame
- the Y 222 (n) represents a middle segment of the fourth secondary channel signal of the current frame.
- X L (n) represents a left channel signal of the current frame
- X R (n) represents a right channel signal of the current frame
- the M 12 represents a downmix matrix corresponding to the non-correlated signal channel combination scheme of the previous frame, and the M 12 is based on a channel combination ratio corresponding to the non-correlation signal channel combination scheme of the previous frame.
- the M 21 represents a downmix matrix corresponding to the current frame correlation signal channel combination scheme, and the M 21 is constructed based on a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the M 12 can have many possible forms, for example:
- ⁇ 1_pre tdm_last_ratio_SM
- ⁇ 2_pre 1-tdm_last_ratio_SM.
- tdm_last_ratio_SM represents the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame.
- the M 21 can have many possible forms, specifically for example:
- the ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the left and right channel signals of the current frame may be, for example, the original left and right channel signals of the current frame, the left and right channel signals preprocessed by the time domain, or the left and right channel signals processed by the delay alignment.
- x L (n) represents an original left channel signal of the current frame (the original left channel signal is a left channel signal that has not been time domain preprocessed)
- x R (n) represents the The original right channel signal of the current frame (the original right channel signal is a right channel signal that has not been time domain preprocessed).
- the x L_HP (n) represents a time domain preprocessed left channel signal of the current frame
- the x R_HP (n) represents a time domain preprocessed right channel signal of the current frame
- the x' L (n) represents a left channel signal of the time frame alignment processing of the current frame
- the x' R (n) represents a right channel signal of the time frame alignment processing of the current frame.
- segmented time domain downmix processing mode of the above example is not necessarily all possible implementation manners, and other segmentation time domain downmix processing modes may also be adopted in practical applications.
- the correlation signal to non-correlation signal decoding mode and non-correlation signal to non-correlation signal decoding mode scenario are exemplified below.
- the time-domain downmix processing method corresponding to the correlation signal to the non-correlation signal decoding mode and the non-correlation signal to the non-correlation signal decoding mode is, for example, a segmented time domain downmix processing mode.
- an embodiment of the present application provides an audio decoding method.
- the related steps of the audio decoding method may be implemented by a decoding device.
- the method may specifically include:
- steps 701 and 702 are not in a proper order.
- the channel combination scheme of the current frame is one of a plurality of channel combination schemes.
- the plurality of channel combination schemes include a non-correlated signal channel combination scheme and a correlation signal channel combination scheme.
- the correlation signal channel combination scheme is a channel combination scheme corresponding to the normal phase-like signal.
- the non-correlation signal channel combination scheme is a channel combination scheme corresponding to the inversion-like signal. It can be understood that the channel combination scheme corresponding to the normal phase-like signal is applicable to the normal phase-like signal, and the channel combination scheme corresponding to the inverted signal is applicable to the inverted signal.
- the segmentation time domain upmix processing can be understood as the left and right channel signals of the current frame are divided into at least two segments, and the time domain upmix processing is performed for each segment using different time domain upmix processing methods. It will be appreciated that the segmented time domain upmixing process makes it more likely to obtain better smoothing over when the channel combining scheme of adjacent frames changes relative to non-segmented time domain upmix processing.
- the channel combination scheme of the current frame needs to be determined, which means that there are multiple possibilities for the channel combination scheme of the current frame, which is more than the traditional scheme with only one channel combination scheme.
- a possible channel combination scheme and a plurality of possible scenes are advantageous for obtaining a better compatible matching effect.
- a mechanism for performing segmentation time domain upmix processing on the left and right channel signals of the current frame is introduced in a case where the channel combination scheme of the current frame and the previous frame is different, the segmentation time domain is mixed.
- the processing mechanism is beneficial to achieve smooth transition of the channel combination scheme, thereby facilitating the improvement of the encoding quality.
- the channel combination scheme of the previous frame may be, for example, a correlation signal channel combination scheme or a non-correlated signal channel combination scheme.
- the channel combination scheme of the current frame may be a correlation signal channel combination scheme or a non-correlated signal channel combination scheme.
- the channel combination scheme of the previous frame is a correlation signal channel combination scheme and the channel combination scheme of the current frame is a non-correlation signal channel combination scheme.
- the left and right channel reconstruction signals of the current frame include a left and right channel reconstruction signal start segment, a left and right channel reconstruction signal intermediate segment, and a left and right channel reconstruction signal end segment;
- the primary and secondary channel decoding signals of the current frame include The primary and secondary channel decoding signal start segment, the primary and secondary channel decoding signal intermediate segment, and the primary and secondary channel decoding signal end segments. Then, performing segmentation time domain upmix processing on the primary and secondary channel decoding signals of the current frame according to the channel combination scheme of the current frame and the previous frame, to obtain left and right channel reconstruction of the current frame.
- the signal includes: a channel combination scaling factor corresponding to the correlation signal channel combination scheme of the previous frame and a time domain upmix processing manner corresponding to the correlation signal channel combination scheme, and a primary and secondary processing manner of the current frame
- the start segment of the channel decoding signal is subjected to time domain upmix processing to obtain a start segment of the left and right channel reconstruction signals of the current frame;
- the signal end segment performs time domain upmix processing to obtain a left and right channel reconstruction signal end segment of the current frame;
- the primary and secondary channel decoding signals of the current frame are used.
- the middle segment performs time domain upmix processing to obtain a first left and right channel reconstruction signal intermediate segment; and the current frame non-correlation signal channel combination scheme corresponds to a channel combination scale factor and a non-correlated signal channel combination scheme corresponding to a time domain upmix processing method, performing time domain upmix processing on the middle segment of the primary and secondary channel decoding signals of the current frame to obtain a second left channel reconstruction signal intermediate segment; and intermediate the first left and right channel reconstruction signals
- the segment and the second left and right channel reconstruction signal intermediate segments are subjected to weighted summation processing to obtain an intermediate segment of the left and right channel reconstruction signals of the current frame.
- the lengths of the left and right channel reconstruction signal start segments, the left and right channel reconstruction signal intermediate segments, and the left and right channel reconstruction signal end segments of the current frame may be set as needed.
- the lengths of the left and right channel reconstruction signal start segments, the left and right channel reconstruction signal intermediate segments, and the left and right channel reconstruction signal end segments of the current frame may be equal, partially equal, or unequal to each other.
- the length of the primary and secondary channel decoding signal start segments, the primary and secondary channel decoding signal intermediate segments, and the primary and secondary channel decoding signal end segments of the current frame may be set as needed.
- the lengths of the primary and secondary channel decoding signal start segments, the primary and secondary channel decoding signal intermediate segments, and the primary and secondary channel decoding signal end segments of the current frame may be equal, partially equal, or unequal to each other.
- the left and right channel reconstruction signals may be left and right channel decoding signals, or the left and right channel decoding signals may be subjected to delay adjustment processing and/or time domain post processing to obtain left and right channel decoding signals.
- the weighting coefficient corresponding to the middle segment of the first left and right channel reconstruction signal may be performed when the intermediate segment of the first left and right channel reconstruction signal and the middle segment of the second left and right channel reconstruction signal are subjected to weighted summation processing. Equal to or not equal to the weighting coefficient corresponding to the middle segment of the second left and right channel reconstruction signal.
- the weighting coefficient corresponding to the middle segment of the first left and right channel reconstruction signal is For the fade factor, the weighting coefficient corresponding to the middle segment of the second left channel reconstruction signal is a fade factor.
- Representing a start segment of a left channel reconstruction signal of the current frame Represents the start segment of the right channel reconstruction signal of the current frame.
- Representing the end segment of the left channel reconstruction signal of the current frame Represents the end segment of the right channel reconstruction signal of the current frame.
- Representing the middle segment of the left channel reconstruction signal of the current frame Represents the middle segment of the right channel reconstruction signal of the current frame.
- a right channel reconstruction signal representing the current frame is generated.
- fade_in(n) represents a fade-in factor
- fade_out(n) represents a fade-out factor
- the sum of fade_in(n) and fade_out(n) is 1.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- fade_out(n) can also be a fade-in factor based on other functional relationships of n.
- Said An upmix matrix corresponding to the correlation signal channel combination scheme of the previous frame The channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame is constructed.
- Said An upmix matrix corresponding to the non-correlated signal channel combination scheme of the current frame The channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame is constructed.
- ⁇ 1 ratio_SM
- ⁇ 2 1 - ratio_SM
- the ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the tdm_last_ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the previous frame.
- the channel combination scheme of the previous frame is a non-correlated signal channel combination scheme and the channel combination scheme of the current frame is a correlation signal channel combination scheme.
- the left and right channel reconstruction signals of the current frame include a left and right channel reconstruction signal start segment, a left and right channel reconstruction signal intermediate segment, and a left and right channel reconstruction signal end segment;
- the primary and secondary channel decoding signals of the current frame include The primary and secondary channel decoding signal start segment, the primary and secondary channel decoding signal intermediate segment, and the primary and secondary channel decoding signal end segments. Then, performing segmentation time domain upmix processing on the primary and secondary channel decoding signals of the current frame according to the channel combination scheme of the current frame and the previous frame, to obtain left and right channel reconstruction of the current frame.
- Signals including:
- the segment Using the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame and the time domain upmix processing method corresponding to the correlation signal channel combination scheme, decoding the end of the primary and secondary channels of the current frame The segment performs time domain upmix processing to obtain a left and right channel reconstruction signal end segment of the current frame;
- the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame and the time domain upmix processing method corresponding to the non-correlation signal channel combination scheme for the primary and secondary channels of the current frame
- the middle segment of the decoded signal is subjected to time domain upmix processing to obtain a middle segment of the third left and right channel reconstruction signal
- the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame is used to correspond to the correlation signal channel combination scheme a time domain upmix processing method, performing time domain upmix processing on the middle segment of the primary and secondary channel decoding signals of the current frame to obtain a fourth left and right channel reconstruction signal intermediate segment
- the segment and the fourth left and right channel reconstruction signal intermediate segments are subjected to weighted summation processing to obtain an intermediate segment of the left and right channel reconstruction signals of the current frame.
- the weighting coefficient corresponding to the middle segment of the third left and right channel reconstruction signal may be obtained by performing weighted summation processing on the intermediate segment of the third left and right channel reconstruction signal and the intermediate segment of the fourth left and right channel reconstruction signal. Equal to or not equal to the weighting coefficient corresponding to the middle segment of the fourth left and right channel reconstruction signal.
- the weighting coefficient corresponding to the middle segment of the third left and right channel reconstruction signal is faded out
- the weighting coefficient corresponding to the middle segment of the fourth left and right channel reconstruction signal is a fade-in factor.
- Representing a start segment of a left channel reconstruction signal of the current frame Represents the start segment of the right channel reconstruction signal of the current frame.
- Representing the end segment of the left channel reconstruction signal of the current frame Represents the end segment of the right channel reconstruction signal of the current frame.
- Representing the middle segment of the left channel reconstruction signal of the current frame Representing an intermediate segment of the right channel reconstruction signal of the current frame;
- a right channel reconstruction signal representing the current frame is generated.
- fade_in(n) represents a fade-in factor representation
- fade_out(n) represents a fade-out factor
- the sum of fade_in(n) and fade_out(n) is 1.
- fade_in(n) can also be a fade-in factor based on other functional relationships of n.
- fade_out(n) can also be a fade-in factor based on other functional relationships of n.
- N 3 is equal to 101, 107, 120, 150 or other values.
- N 4 is equal to 181, 187, 200, 205 or other value.
- Representing a middle segment of a third left channel reconstruction signal of the current frame Means a third right channel reconstruction signal intermediate segment of the current frame; Representing a middle segment of a fourth left channel reconstruction signal of the current frame, Representing the middle segment of the fourth right channel reconstruction signal of the current frame.
- An upmix matrix corresponding to the non-correlated signal channel combination scheme of the previous frame Constructing a channel combination scale factor corresponding to the non-correlated signal channel combination scheme of the previous frame;
- An upmix matrix corresponding to the correlation signal channel combination scheme of the current frame The channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame is constructed.
- ⁇ 1_pre tdm_last_ratio_SM
- ⁇ 2_pre 1-tdm_last_ratio_SM
- tdm_last_ratio_SM represents the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame.
- the ratio represents a channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- the stereo parameters of the current frame may be fixed values or may be based on a channel combination scheme of the current frame (eg, a correlation signal channel).
- a channel combination scheme of the current frame eg, a correlation signal channel.
- a combination scheme or a non-correlated signal channel combination scheme is determined.
- a method for determining a time domain stereo parameter is exemplified.
- the related steps of the method for determining a time domain stereo parameter may be implemented by an encoding device.
- the method may specifically include:
- time domain stereo parameter of the current frame according to a channel combination scheme of the current frame, where the time domain stereo parameter includes at least one of a channel combination scale factor and an inter-channel delay difference.
- the channel combination scheme of the current frame is one of a plurality of channel combination schemes.
- the plurality of channel combination schemes include a non-correlated signal channel combination scheme and a correlation signal channel combination scheme.
- the correlation signal channel combination scheme is a channel combination scheme corresponding to the normal phase-like signal.
- the non-correlation signal channel combination scheme is a channel combination scheme corresponding to the inversion-like signal. It can be understood that the channel combination scheme corresponding to the normal phase-like signal is applicable to the normal phase-like signal, and the channel combination scheme corresponding to the inverted signal is applicable to the inverted signal.
- the time domain stereo parameter of the current frame is a time domain stereo corresponding to the correlation signal channel combination scheme of the current frame.
- a parameter in a case where the channel combination scheme of the current frame is determined to be a non-correlated signal channel combination scheme, the time domain stereo parameter of the current frame is a non-correlation signal channel combination scheme of the current frame Time domain stereo parameters.
- the channel combination scheme of the current frame needs to be determined, which means that there are multiple possibilities for the channel combination scheme of the current frame, which is more than the traditional scheme with only one channel combination scheme.
- a possible channel combination scheme and a plurality of possible scenes are advantageous for obtaining a better compatible matching effect.
- the time domain stereo parameter of the current frame is determined according to the channel combination scheme of the current frame, which facilitates obtaining a better compatible matching effect between the time domain stereo parameter and various possible scenarios, thereby facilitating improvement Codec quality.
- the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame and the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame may be separately calculated. And determining, in the case that the channel combination scheme of the current frame is a correlation signal channel combination scheme, determining a time domain stereo parameter of the current frame as a time domain stereo parameter corresponding to the correlation signal channel combination scheme of the current frame; Or determining, in a case where the channel combination scheme of the current frame is a non-correlated signal channel combination scheme, determining a time domain stereo parameter of the current frame as a time domain corresponding to the non-correlation signal channel combination scheme of the current frame Stereo parameters.
- the time domain stereo parameter corresponding to the correlation signal channel combination scheme of the current frame may be calculated first, and when the channel combination scheme of the current frame is determined to be the correlation signal channel combination scheme, the current frame timing is determined.
- the domain stereo parameter is a time domain stereo parameter corresponding to the correlation signal channel combination scheme of the current frame; and in the case of determining that the channel combination scheme of the current frame is a non-correlation signal channel combination scheme, The time domain stereo parameter corresponding to the uncorrelated signal channel combination scheme of the current frame, and the calculated time domain stereo parameter corresponding to the non-correlation signal channel combination scheme of the current frame is confirmed as the time domain stereo of the current frame. parameter.
- the channel combination scheme of the current frame may be determined first, and in the case that the channel combination scheme of the current frame is determined to be a correlation signal channel combination scheme, the correlation signal channel combination scheme of the current frame is calculated.
- the time domain stereo parameter of the current frame is the time domain stereo parameter corresponding to the correlation signal channel combination scheme of the current frame.
- determining the time domain stereo parameter corresponding to the non-correlation signal channel combination scheme of the current frame in a case where the channel combination scheme of the current frame is determined to be a non-correlation signal channel combination scheme then, the current frame timing
- the domain stereo parameter is a time domain stereo parameter corresponding to the non-correlated signal channel combination scheme of the current frame.
- determining the time domain stereo parameter of the current frame according to the channel combination scheme of the current frame comprises: determining a channel combination scheme of the current frame according to a channel combination scheme of the current frame The corresponding channel combination scale factor initial value.
- the current The channel combination scale factor corresponding to the channel combination scheme of the frame is equal to the initial value of the channel combination scale factor corresponding to the channel combination scheme of the current frame.
- the initial value of the channel combination scale factor corresponding to the channel combination scheme (correlation signal channel combination scheme or non-correlation signal channel combination method) of the current frame needs to be corrected
- the initial value of the channel combination scale factor corresponding to the channel combination scheme of the current frame is corrected to obtain a correction value of the channel combination scale factor corresponding to the channel combination scheme of the current frame, and the channel combination of the current frame
- the channel combination scale factor corresponding to the scheme is equal to the correction value of the channel combination scale factor corresponding to the channel combination scheme of the current frame.
- determining the time domain stereo parameter of the current frame according to the channel combination scheme of the current frame may include: calculating a frame of the left channel signal of the current frame according to the current frame left channel signal Calculating a frame energy of the right channel signal of the current frame according to the current frame right channel signal; calculating the current according to a frame energy of the current frame left channel signal and a frame energy of the right channel signal Frame Correlation The initial value of the channel combination scale factor corresponding to the signal channel combination scheme.
- the channel combination corresponding to the correlation signal channel combination scheme of the current frame is equal to the channel combination scale factor initial value corresponding to the correlation signal channel combination scheme of the current frame, and the encoding index of the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame is equal to the a coding index of an initial value of a channel combination scale factor corresponding to a correlation signal channel combination scheme of a current frame;
- the channel combination ratio corresponding to the correlation signal channel combination scheme of the current frame is The initial value of the factor and its encoding index are corrected to obtain a correction value of the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame and an encoding index thereof, and the correlation signal channel of the current frame
- the channel combination scale factor corresponding to the combination scheme is equal to the correction value of the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame; the channel combination corresponding to the correlation signal channel combination scheme of the current frame
- the coding index of the scale factor is equal to the coding index of the correction value of the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- Ratio_idx_mod 0.5*(tdm_last_ratio_idx+16);
- Ratio_mod qua ratio_tabl[ratio_idx_mod]
- the tdm_last_ratio_idx represents a coding index of a channel combination scale factor corresponding to a correlation signal channel combination scheme of a previous frame
- the ratio_idx_mod represents a channel combination ratio corresponding to a correlation signal channel combination scheme of the current frame.
- the correction index corresponding to the factor corresponds to a coding index
- the ratio_mod qua represents a correction value of the channel combination scale factor corresponding to the correlation signal channel combination scheme of the current frame.
- determining the time domain stereo parameter of the current frame according to the channel combination scheme of the current frame comprises: obtaining a reference channel signal of the current frame according to the left channel signal and the right channel signal of the current frame. Calculating an amplitude correlation parameter between the left channel signal and the reference channel signal of the current frame; calculating an amplitude correlation parameter between the right channel signal and the reference channel signal of the current frame; Calculating, according to an amplitude correlation parameter between the left and right channel signals of the current frame and the reference channel signal, calculating an amplitude correlation difference parameter between the left and right channel signals of the current frame; according to the left and right channel signals of the current frame The amplitude correlation difference parameter between the two is calculated, and the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame is calculated.
- the calculating, according to the amplitude correlation difference parameter between the left and right channel signals of the current frame, the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame may include: An amplitude correlation difference parameter between the left and right channel signals of the current frame, calculating a channel combination scale factor initial value corresponding to the non-correlation signal channel combination scheme of the current frame; and an uncorrelated signal for the current frame The initial value of the channel combination scale factor corresponding to the channel combination scheme is corrected to obtain a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the sound corresponding to the non-correlation signal channel combination scheme of the current frame is The channel combination scale factor is equal to the channel combination scale factor initial value corresponding to the non-correlation signal channel combination scheme of the current frame.
- the mono_i(n) represents a reference channel signal of the current frame.
- the x' L (n) represents a left channel signal of the current frame subjected to delay alignment processing; and the x' R (n) represents a right channel signal of the current frame subjected to delay alignment processing.
- the corr_LM represents an amplitude correlation parameter between a left channel signal of the current frame and a reference channel signal, the corr_RM indicating an amplitude correlation between a right channel signal and a reference channel signal of the current frame parameter.
- calculating an amplitude correlation difference between left and right channel signals of the current frame according to an amplitude correlation parameter between a left and right channel signal of the current frame and a reference channel signal comprises: calculating, according to an amplitude correlation parameter between the left channel signal and the reference channel signal processed by the current frame by the delay, calculating a smoothness between the left channel signal and the reference channel signal of the current frame length
- the amplitude correlation parameter is calculated according to the amplitude correlation parameter between the right channel signal and the reference channel signal processed by the current frame, and the right channel is smoothed between the right channel signal and the reference channel signal.
- Amplitude correlation parameter an amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed, and between the right channel signal and the reference channel signal after the current frame length is smoothed
- the amplitude correlation parameter calculates the amplitude correlation difference parameter between the left and right channels of the current frame.
- the smoothing method can be varied, for example:
- tdm_lt_corr_LM_SM cur ⁇ *tdm_lt_corr_LM_SM pre +(1- ⁇ )corr_LM;
- tdm_lt_rms_L_SM cur (1-A)*tdm_lt_rms_L_SM pre +A*rms_L
- the A represents an update factor of the long-term smoothed frame energy of the left channel signal of the current frame.
- the tdm_lt_rms_L_SM cur represents a long-term smoothed frame energy of a left channel signal of the current frame; wherein the rms_L represents a frame energy of the left channel signal of the current frame.
- tdm_lt_corr_LM_SM cur represents the amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed.
- tdm_lt_corr_LM_SM pre represents the amplitude correlation parameter between the left channel signal and the reference channel signal after the smoothing of the previous frame.
- ⁇ represents the left channel smoothing factor.
- tdm_lt_corr_RM_SM cur ⁇ *tdm_lt_corr_RM_SM pre +(1- ⁇ )corr_LM.
- tdm_lt_rms_R_SM cur (1-B) * tdm_lt_rms_R_SM pre + B * rms_R; the B represents an update factor of the long-term smoothed frame energy of the right channel signal of the current frame.
- the tdm_lt_rms_R_SM pre represents a long-term smoothed frame energy of the right channel signal of the current frame.
- the rms_R represents a frame energy of the right frame signal of the current frame.
- tdm_lt_corr_RM_SM cur represents an amplitude correlation parameter between the right channel signal and the reference channel signal after the current frame length is smoothed.
- tdm_lt_corr_RM_SM pre represents the amplitude correlation parameter between the right channel signal and the reference channel signal after the smoothing of the previous frame.
- ⁇ represents the right channel smoothing factor.
- Diff_lt_corr tdm_lt_corr_LM_SM-tdm_lt_corr_RM_SM;
- tdm_lt_corr_LM_SM represents an amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed
- tdm_lt_corr_RM_SM represents the right channel signal and the reference channel signal after the current frame length is smoothed.
- the diff_lt_corr represents an amplitude correlation difference parameter between the left and right channel signals of the current frame.
- the calculating a channel combination scaling factor corresponding to the non-correlation signal channel combination scheme of the current frame according to an amplitude correlation difference parameter between left and right channel signals of the current frame includes: mapping the amplitude correlation difference parameter between the left and right channel signals of the current frame, so that the range of the amplitude correlation difference parameter between the left and right channel signals of the current frame after the mapping process is in the range of [ Between MAP_MIN and MAP_MAX]; the amplitude correlation difference parameter between the left and right channel signals after the mapping process is converted into a channel combination scale factor.
- mapping processing on an amplitude correlation difference parameter between left and right channels of the current frame includes: limiting an amplitude correlation difference parameter between left and right channel signals of the current frame Amplitude processing; mapping processing the amplitude correlation difference parameter between the left and right channel signals of the current frame after the clipping process.
- the method of limiting processing can be various, for example:
- RATIO_MAX represents the maximum value of the amplitude correlation difference parameter between the left and right channel signals of the current frame after the clipping process
- RATIO_MIN represents the left and right channel signals of the current frame after the clipping process
- mapping processing manner may be various, for example:
- B 1 MAP_MAX-RATIO_MAX*A 1
- B 1 MAP_HIGH-RATIO_HIGH*A 1
- B 2 MAP_LOW - RATIO_LOW * A 2
- B 2 MAP_MIN - RATIO_MIN * A 2
- B 3 MAP_HIGH-RATIO_HIGH*A 3
- B 3 MAP_LOW-RATIO_LOW*A 3
- the diff_lt_corr_map represents an amplitude correlation difference parameter between left and right channel signals of the current frame after mapping processing
- MAP_MAX represents the maximum value of the amplitude correlation difference parameter between the left and right channel signals of the current frame after mapping processing
- MAP_HIGH represents the amplitude between the left and right channel signals of the current frame after the mapping process a high threshold of the correlation difference parameter
- MAP_LOW represents a low threshold of the amplitude correlation difference parameter between the left and right channel signals of the current frame after mapping processing
- MAP_MIN represents the left and right sound of the current frame after the mapping process The minimum value of the amplitude correlation difference parameter between the track signals
- RATIO_MAX represents the maximum value of the amplitude correlation difference parameter between the left and right channel signals of the current frame after the clipping process
- RATIO_HIGH represents the amplitude correlation between the left and right channel signals of the current frame after the mapping process a high threshold of the difference parameter
- RATIO_LOW represents a low threshold of the amplitude correlation difference parameter between the left and right channel signals of the current frame after the mapping process
- RATIO_MIN represents the left and right channels of the current frame after the mapping process The minimum value of the amplitude correlation difference parameter between signals;
- diff_lt_corr_limit represents an amplitude correlation difference parameter between left and right channel signals of the current frame after clipping processing
- diff_lt_corr_map represents amplitude correlation between left and right channel signals of the current frame after mapping processing Difference parameter.
- the RATIO_MAX represents a maximum amplitude of an amplitude correlation difference parameter between left and right channel signals of the current frame
- the -RATIO_MAX represents an amplitude correlation difference parameter between left and right channel signals of the current frame. Minimum range.
- the diff_lt_corr_map represents an amplitude correlation difference parameter between the left and right channel signals of the current frame after the mapping process.
- the ratio_SM indicates a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame, or the ratio_SM indicates a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame. The initial value.
- the correction may be before or after encoding the channel combination scale factor.
- the channel combination scale factor of the current frame for example, the channel combination scale factor corresponding to the non-correlation signal channel combination scheme or the channel combination scale factor corresponding to the correlation signal channel combination scheme
- the channel combination scale factor of the current frame may be calculated first.
- the coding index of the channel combination scale factor of the current frame is obtained (the coding index of the channel combination scale factor of the current frame is obtained, which is equivalent to the channel combination scale factor of the current frame).
- the initial value of the channel combination scale factor of the current frame may be calculated first, and then the initial value of the channel combination scale factor of the current frame is corrected, thereby obtaining the channel combination scale factor of the current frame, and then The obtained channel combination scale factor of the current frame is encoded to obtain an encoding index of the channel combination scale factor of the current frame.
- the manner of correcting the initial value of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame may be various, for example, when it is required to pass the non-correlation of the current frame.
- the initial value of the channel combination scale factor corresponding to the sex signal channel combination scheme is corrected to obtain the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame, for example, based on the previous one
- the initial value of the channel combination scale factor of the frame and the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame to correspond to the sound of the non-correlation signal channel combination scheme of the current frame
- the initial value of the channel combination scale factor is corrected; or, based on the initial value of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame, the non-correlation signal sound of the current frame may be The initial value of the channel combination scale factor corresponding to the channel combination scheme is corrected.
- the long-term smoothing frame energy of the left channel signal of the current frame For example, first, according to the long-term smoothing frame energy of the left channel signal of the current frame, the long-term smoothing frame energy of the right channel signal of the current frame, the inter-frame energy difference of the left channel signal of the current frame, and the history buffer Encoding the encoding parameters of the previous frame (such as the inter-frame correlation of the main channel signal, the inter-frame correlation of the secondary channel signal), the current frame and the channel combination scheme identifier of the previous frame, and the non-correlation of the previous frame.
- the previous frame such as the inter-frame correlation of the main channel signal, the inter-frame correlation of the secondary channel signal
- the channel combination scale factor corresponding to the sex signal channel combination scheme and the initial value of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame determining whether a non-correlation signal channel combination of the current frame is required
- the initial value of the channel combination scale factor corresponding to the scheme is corrected. If yes, the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame is used as the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame; otherwise, the current frame is not
- the initial value of the channel combination scale factor corresponding to the correlation signal channel combination scheme is used as the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the channel combination scale factor corresponding to the determined non-correlation signal channel combination scheme of the current frame is quantized
- ratio_init_SM qua ratio_tabl_SM[ratio_idx_init_SM].
- the ratio_tabl_SM represents a code combination of a channel combination scale factor scalar quantization corresponding to the non-correlation signal channel combination scheme of the current frame
- the ratio_idx_init_SM indicates that the current frame has a non-correlation signal channel combination scheme corresponding to the current frame.
- the initial coding index of the channel combination scale factor, the ratio_init_SM qua represents the quantization code initial value of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- ratio_idx_SM ratio_idx_init_SM.
- ratio_SM ratio_tabl[ratio_idx_SM].
- the ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- Ratio_idx_SM represents a coding index of a channel combination scale factor corresponding to a non-correlation signal channel combination scheme of the current frame;
- ratio_idx_SM ⁇ *ratio_idx_init_SM+(1- ⁇ )*tdm_last_ratio_idx_SM
- ratio_SM ratio_tabl[ratio_idx_SM]
- ratio_idx_init_SM represents an initial coding index corresponding to the non-correlation signal channel combination scheme of the current frame
- tdm_last_ratio_idx_SM represents a final coding index of a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame, where , A correction factor for the channel combination scale factor corresponding to the non-correlated signal channel combination scheme.
- the ratio_SM represents a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the non-correlation signal sound of the current frame is obtained by modifying an initial value of a channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the initial value of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame may be first quantized, and the current frame is not encoded.
- the initial coding index of the channel combination scale factor corresponding to the correlation signal channel combination scheme may then be based on the coding index of the channel combination scale factor of the previous frame and the non-correlation signal channel combination scheme of the current frame.
- the initial coding index of the channel combination scale factor is used to correct the initial coding index of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame; or, based on the current frame
- the initial coding index of the channel combination scale factor corresponding to the correlation signal channel combination scheme, and the non-correlation of the current frame The initial combination of channel coding index scale factor corresponding to the number of channels is corrected combining scheme.
- the initial value of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame may be first quantized to obtain an initial coding index corresponding to the non-correlation signal channel combination scheme of the current frame. Then, when the initial value of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame needs to be corrected, the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame is used.
- the coding index is used as the coding index of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame; otherwise, the initial coding index of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- the coding index of the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame is used as the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame.
- determining the time domain stereo parameter of the current frame according to the channel combination scheme of the current frame may include: the channel combination scheme in the current frame is In the case of a correlation signal channel combining scheme, the inter-channel time difference of the current frame is calculated. And the calculated inter-channel time difference of the current frame can be written into the code stream.
- the default inter-channel time difference (eg, 0) is used as the inter-channel time difference of the current frame in the case where the channel combining scheme of the current frame is a non-correlated signal channel combining scheme. And the default inter-channel time difference can be written to the code stream, and the decoding device also uses the default inter-channel time difference.
- the method for encoding a time domain stereo parameter may be provided, for example, including: determining a channel combination scheme of a current frame; determining a time domain stereo parameter of the current frame according to a channel combination scheme of the current frame; The time domain stereo parameter of the current frame is encoded, and the time domain stereo parameter includes at least one of a channel combination scale factor and an inter-channel delay difference.
- the decoding device can obtain the time domain stereo parameters of the current frame from the code stream, and then perform correlation decoding based on the time domain stereo parameters of the current frame obtained from the code stream.
- FIG. 9-A is a schematic flowchart of an audio encoding method according to an embodiment of the present application.
- An audio coding method provided by the embodiment of the present application may be implemented by an encoding device, and the method may specifically include:
- the stereo signal of the current frame includes a left channel signal of the current frame and a right channel signal of the current frame.
- the original left channel signal of the current frame is recorded as x L (n)
- the original right channel signal of the current frame is recorded as x R (n)
- performing time domain pre-processing on the original left and right channel signals of the current frame may include: performing high-pass filtering processing on the original left and right channel signals of the current frame to obtain left and right channel signals preprocessed by the current frame in the current frame, and the current frame is processed by the current frame.
- the left channel signal of the time domain preprocessing is denoted by x L_HP (n)
- the right channel signal of the current frame preprocessed by the time domain is denoted as x R_HP (n).
- n is the sample number.
- n 0, 1, ..., N-1.
- the filter used in the high-pass filtering process may be, for example, an Infinite Impulse Response (IIR) filter with a cutoff frequency of 20 Hz, or other types of filters.
- IIR Infinite Impulse Response
- the transfer function of the high-pass filter with a sampling rate of 16 kHz and a corresponding cutoff frequency of 20 Hz can be:
- b 0 0.994461788958195
- b 1 -1.988923577916390
- b 2 0.994461788958195
- a 1 1.988892905899653
- a 2 -0.988954249933127
- z is a conversion factor of the Z transform.
- the transfer function of the corresponding time domain filter can be expressed as:
- x L_HP (n) b 0 *x L (n)+b 1 *x L (n-1)+b 2 *x L (n-2)-a 1 *x L_HP (n-1)-a 2 *x L_HP (n-2)
- x R_HP (n) b 0 *x R (n)+b 1 *x R (n-1)+b 2 *x R (n-2)-a 1 *x R_HP (n-1)-a 2 *x R_HP (n-2)
- the signal processed by the delay alignment may be referred to as “delay-aligned signal”.
- the left channel signal processed by the delay alignment may be referred to as “delay-aligned left channel signal”
- the right channel signal processed by the delay alignment may be referred to as “delay-aligned left channel signal”, and so on. .
- the inter-channel delay parameter may be extracted and encoded according to the left and right channel signals preprocessed by the current frame, and the left and right channel signals are time-aligned and aligned according to the encoded inter-channel delay parameters to obtain the current frame.
- the left and right channel signals are processed by the delay alignment.
- the left channel signal of the current frame subjected to the delay alignment processing is denoted as x' L (n)
- the encoding device may calculate a time domain cross-correlation function between the left and right channels according to the left and right channel signals preprocessed by the current frame.
- the maximum value (or other value) of the time domain cross-correlation function between the left and right channels is searched to determine the delay difference between the left and right channel signals.
- the delay difference between the determined left and right channels is quantized and encoded.
- the signal of the other channel is time-delayed based on the signal of the selected one of the left and right channels, thereby obtaining the current frame delay alignment processing.
- Left and right channel signals are examples of the signal of the other channel is time-delayed based on the signal of the selected one of the left and right channels, thereby obtaining the current frame delay alignment processing.
- the specific delay alignment processing method is not limited.
- the time domain analysis may include transient detection or the like.
- the transient detection may be to perform energy detection on the left and right channel signals of the current frame and the delay alignment processing respectively (specifically, whether the current frame has a sudden energy change).
- the energy of the left channel signal of the current frame subjected to the delay alignment processing is represented as E cur — L
- the energy of the left channel signal after the previous frame delay alignment is expressed as E pre — L
- E pre — L the energy of the left channel signal after the previous frame delay alignment
- the absolute value of the difference is used for transient detection to obtain the transient detection result of the left channel signal of the current frame subjected to the delay alignment processing.
- time domain analysis may also include time domain analysis in other conventional ways than transient detection, such as may include band extension pre-processing and the like.
- step 903 may be performed after step 902 at any location prior to encoding the primary channel signal of the current frame and encoding the secondary channel signal.
- the correlation signal channel combination scheme corresponds to the case where the left and right channel signals of the current frame (time-delay aligned) are normal-like signals
- the non-correlation signal channel combination scheme corresponds to the current frame ( The case where the left and right channel signals after the time delay is aligned is an inverted signal.
- the channel combination scheme decision may be divided into a channel combination scheme initial decision and a channel combination scheme correction decision. It can be understood that the channel combination scheme of the current frame is determined by performing a channel combination scheme decision of the current frame. For a description of some example implementations of the channel combination scheme of the current frame, reference may be made to the related description of the foregoing embodiments, and details are not described herein again.
- the frame energy of the left and right channel signals of the current frame is first calculated according to the left and right channel signals of the current frame subjected to the delay alignment processing.
- the frame energy rms_L of the current frame left channel signal satisfies:
- the frame energy rms_R of the right frame right channel signal satisfies:
- x' L (n) represents the left channel signal of the current frame subjected to the delay alignment processing.
- x' R (n) represents the right channel signal of the current frame subjected to the delay alignment processing.
- the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme is calculated.
- the calculated channel combination ratio factor ratio_init corresponding to the current frame correlation signal channel combination scheme satisfies:
- Channel combination ratio factor ratio_init corresponding to the calculated current frame correlation signal channel combination scheme is quantized and encoded, and the corresponding coding index ratio_idx_init is obtained, and the current frame correlation signal channel combination scheme corresponding to the quantization and encoding is corresponding.
- Channel combination scale factor ratio_init qua
- Ratio_init qua ratio_tabl[ratio_idx_init]
- ratio_tabl is a scalar quantized codebook.
- the quantization coding may be performed by any conventional scalar quantization method, such as uniform scalar quantization, or non-uniform scalar quantization, and the number of coding bits is, for example, 5 bits. The specific method for scalar quantization is not described herein.
- the channel combination ratio factor ratio_init qua corresponding to the current frame correlation signal channel combination scheme of the quantized coding is the initial value of the channel combination scale factor corresponding to the obtained current frame correlation signal channel combination scheme
- the coding index ratio_idx_init is The encoding index corresponding to the initial value of the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme.
- the code index corresponding to the initial value of the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme may be corrected according to the value of the channel combination scheme identifier tdm_SM_flag of the current frame.
- the quantization code is 5 bits of scalar quantization
- a value for example, 15 or other value
- the method for calculating the channel combination ratio factor corresponding to the channel combination scheme according to any one of the traditional techniques of the time domain stereo coding may be calculated, and the current frame correlation signal channel combination scheme is calculated.
- Channel combination scale factor It is also possible to directly set the initial value of the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme to a fixed value (for example, 0.5 or other value).
- the identifier may be corrected according to the channel combination scale factor to determine whether the channel combination scale factor needs to be corrected.
- the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme and its encoding index are corrected, and the correction value of the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme and the encoding index thereof are obtained.
- the channel combination scale factor correction identifier of the current frame is recorded as tdm_SM_modi_flag.
- the channel combination scale factor correction flag takes a value of 0, which means that the correction of the channel combination scale factor is not required, and the channel combination scale factor correction flag takes a value of 1, indicating that the correction of the channel combination scale factor is required.
- the channel combination scale factor correction flag can also use other different values to indicate whether the channel combination scale factor correction is needed.
- the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme and the coding index thereof may specifically include:
- ratio_idx_mod 0.5*(tdm_last_ratio_idx+16), where tdm_last_ratio_idx is the previous frame correlation signal channel combination scheme.
- ratio_mod qua ratio_tabl[ratio_idx_mod].
- the determined channel combination scale factor ratio corresponding to the determined correlation signal channel combination scheme satisfies:
- the ratio_init qua represents an initial value of a channel combination scale factor corresponding to a correlation signal channel combination scheme of a current frame
- the ratio_mod qua represents a correction of a channel combination scale factor corresponding to a correlation signal channel combination scheme of a current frame.
- the above tdm_SM_modi_flag represents the channel combination scale factor correction flag of the current frame.
- the coding index ratio_idx corresponding to the channel combination scale factor corresponding to the determined correlation signal channel combination scheme satisfies:
- ratio_idx_init represents a coding index corresponding to an initial value of a channel combination scale factor corresponding to a current frame correlation signal channel combination scheme
- ratio_idx_mod represents a correction value of a channel combination scale factor corresponding to a current frame correlation signal channel combination scheme.
- the channel combination scheme identifier tdm_SM_flag of the current frame is equal to 1 (for example, tdm_SM_flag equal to 1 indicates that the channel combination scheme identifier of the current frame corresponds to the non-correlation signal channel combination scheme), and the channel combination scheme identifier tdm_last_SM_flag of the previous frame is equal to 0 (for example, tdm_last_SM_flag is equal to 0, indicating that the channel combination scheme identifier of the current frame corresponds to the correlation signal channel combination scheme), and it is required to calculate the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme.
- the history cache is reset.
- the history cache reset identifier tdm_SM_reset_flag is determined in the process of the scheme correction decision, and then implemented by determining the value of the history cache reset identifier. For example, tdm_SM_reset_flag is 1, indicating that the channel combination scheme identifier of the current frame corresponds to the non-correlation signal channel combination scheme and the channel combination scheme identifier of the previous frame corresponds to the correlation signal channel combination scheme.
- the history cache reset flag tdm_SM_reset_flag is equal to 1, indicating that it is necessary to reset the history cache used for calculating the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme.
- specific reset methods which may be that all parameters in the history buffer used for calculating the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme are reset according to preset initial values.
- some parameters in the history buffer used to calculate the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme are reset according to a preset initial value; or the calculation may be performed
- Some parameters in the history buffer used by the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme are reset according to a preset initial value, and another part of the parameters are combined according to the calculation correlation signal channel.
- the channel combination scale factor corresponding to the scheme is reset by the corresponding parameter value in the history buffer used.
- the non-correlated signal channel combination scheme is a channel combination scheme which is more suitable for time domain downmixing of the inverted-like stereo signals.
- the channel combination scheme identifier tdm_SM_flag 1 of the current frame
- the channel combination scheme identifier that represents the current frame corresponds to the non-correlation signal channel combination scheme
- Determining whether the channel combination scheme identifier of the current frame corresponds to the non-correlation signal channel combination scheme may specifically include:
- calculating the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme and encoding may include the following steps 9081-9085.
- 9081 Perform signal energy analysis on the left and right channel signals of the current frame subjected to delay alignment processing.
- the frame energy rms_L of the current frame left channel signal satisfies:
- the frame energy rms_R of the right frame right channel signal satisfies:
- x' L (n) represents the left channel signal of the current frame subjected to the delay alignment processing.
- x' R (n) represents the right channel signal of the current frame subjected to the delay alignment processing.
- the long-term smooth frame energy tdm_lt_rms_L_SM cur of the left channel of the current frame satisfies:
- tdm_lt_rms_L_SM cur (1-A)*tdm_lt_rms_L_SM pre +A*rms_L
- tdm_lt_rms_L_SM pre represents the long-term smoothed frame energy of the left channel of the previous frame
- A represents the update factor of the left channel long-time smoothed frame energy
- A may take, for example, a real number between 0 and 1, and A may be equal to 0.4, for example.
- the long-term smoothing frame energy tdm_lt_rms_R_SM cur of the right channel of the current frame satisfies:
- tdm_lt_rms_R_SM cur (1-B)*tdm_lt_rms_R_SM pre +B*rms_R
- tdm_lt_rms_R_SM pre represents the long-term smoothed frame energy of the right channel of the previous frame
- B represents the update factor of the smoothed frame energy of the right channel long time
- B can take a real number between 0 and 1, for example, B can be left and left
- the update factor of the smooth frame energy of the track length takes the same or different value, and B may be equal to 0.4, for example.
- the inter-frame energy difference ener_L_dt of the left channel of the current frame satisfies:
- the inter-frame energy difference ener_R_dt of the right channel of the current frame satisfies:
- the reference channel signal can also be referred to as a mono signal. If the reference channel signal is referred to as a mono signal, then all subsequent descriptions and parameter naming associated with the reference channel can uniformly replace the reference channel signal. It is a mono signal.
- the reference channel signal mono_i(n) satisfies:
- x' L (n) is the left channel signal of the current frame subjected to the delay alignment processing
- x' R (n) is the right channel signal of the current frame subjected to the delay alignment processing
- the amplitude correlation parameter corr_LM between the left channel signal and the reference channel signal of the current frame subjected to the delay alignment processing for example, satisfies:
- the amplitude correlation parameter corr_RM between the right channel signal and the reference channel signal of the current frame subjected to the delay alignment processing satisfies, for example:
- x' L (n) represents the left channel signal of the current frame subjected to the delay alignment processing.
- x' R (n) represents the right channel signal of the current frame subjected to the delay alignment processing.
- Mono_i(n) represents the reference channel signal of the current frame.
- means taking the absolute value.
- the amplitude correlation parameter between the left channel signal and the reference channel signal processed according to the current frame and the time channel delay processing, and the amplitude correlation between the right channel signal and the reference channel signal processed by the current frame by the delay alignment The sex parameter calculates the amplitude correlation difference parameter diff_lt_corr between the left and right channels of the current frame.
- step 9081 may be performed prior to steps 9082, 9083, or may be performed after steps 9082, 9083 and before step 9084.
- calculating the amplitude correlation difference parameter diff_lt_corr between the left and right channels of the current frame may specifically include the following steps 90841-90842.
- the amplitude correlation parameter between the left channel signal and the reference channel signal processed according to the current frame by the delay alignment, and the amplitude between the right channel signal and the reference channel signal processed by the current frame by the delay alignment Correlation parameter, calculating the amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed, and the amplitude between the right channel signal and the reference channel signal after the current frame length is smoothed Relevance parameters.
- an amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is calculated, and an amplitude correlation between the right channel long-time smoothed right channel signal and the reference channel signal.
- the parameter may include: an amplitude correlation parameter tdm_lt_corr_LM_SM between the left channel signal and the reference channel signal after the current frame length is smoothed to satisfy:
- tdm_lt_corr_LM_SM cur ⁇ *tdm_lt_corr_LM_SM pre +(1- ⁇ )corr_LM.
- tdm_lt_corr_LM_SM cur represents the amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed
- tdm_lt_corr_LM_SM pre represents the left channel signal and the reference channel signal after the smoothing of the previous frame.
- the amplitude correlation parameter between the three, ⁇ represents the left channel smoothing factor, wherein ⁇ can be a preset real number between 0 and 1, such as 0.2, 0.5, 0.8. Alternatively, the value of ⁇ can also be obtained by adaptive calculation.
- the amplitude correlation parameter tdm_lt_corr_RM_SM between the right channel signal and the reference channel signal after the current frame length is smoothed satisfies:
- tdm_lt_corr_RM_SM cur ⁇ *tdm_lt_corr_RM_SM pre +(1- ⁇ )corr_LM .
- tdm_lt_corr_RM_SM cur represents the amplitude correlation parameter between the smoothed right channel signal and the reference channel signal in the current frame length
- tdm_lt_corr_RM_SM pre represents the smoothed right channel signal and the reference channel signal in the previous frame.
- ⁇ represents the right channel smoothing factor, where ⁇ can be a preset real number between 0 and 1, and ⁇ can be the same or different from the left channel smoothing factor ⁇ , for example, ⁇ can Equal to 0.2, 0.5, 0.8. Or the value of ⁇ can also be obtained by adaptive calculation.
- the other is to calculate the amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed, and the amplitude correlation between the right channel signal and the reference channel signal after the current frame length is smoothed.
- the method of parameters can include:
- the amplitude correlation parameter corr_LM between the left channel signal and the reference channel signal of the current frame subjected to the delay alignment processing is corrected, and the amplitude between the corrected left frame signal and the reference channel signal of the current frame is obtained.
- the correlation parameter corr_LM_mod corrects the amplitude correlation parameter corr_RM between the right channel signal and the reference channel signal of the current frame by the delay alignment process, and obtains the corrected current frame right channel signal and the reference channel signal.
- the amplitude correlation parameter between the two is corr_RM_mod.
- the parameter tdm_lt_corr_RM_SM pre determines the amplitude correlation parameter diff_lt_corr_LM_tmp between the left channel signal and the reference channel signal after the current frame length is smoothed, and the right channel signal and the reference channel signal after the smoothing of the previous frame length
- the amplitude correlation parameter diff_lt_corr_RM_tmp The amplitude correlation parameter diff_lt_corr_RM_tmp.
- the amplitude correlation parameter diff_lt_corr_LM_tmp between the left channel signal and the reference channel signal after the current frame length is smoothed, and the amplitude between the smoothed right channel signal and the reference channel signal of the previous frame length
- the correlation parameter diff_lt_corr_RM_tmp obtains an initial value diff_lt_corr_SM of the amplitude correlation difference parameter between the left and right channels of the current frame; and according to the obtained initial value diff_lt_corr_SM of the amplitude correlation difference parameter between the left and right channels of the current frame and the previous one
- the amplitude correlation difference parameter tdm_last_diff_lt_corr_SM between the left and right channels of the frame determines an inter-frame variation parameter d_lt_corr of the amplitude correlation difference between the left and right channels of the current frame.
- the frame energy of the left frame signal of the current frame obtained according to the signal energy analysis, the frame energy frame energy of the right channel signal of the current frame, the long-term smooth frame energy of the left channel of the current frame, and the length of the right channel of the current frame
- Time-varying frame energy, inter-frame energy difference of the left frame of the current frame, inter-frame energy difference of the right frame of the current frame, and inter-frame variation parameter of amplitude correlation difference between left and right channels of the current frame, adaptive selection is different
- the left channel smoothing factor, the right channel smoothing factor, and the amplitude correlation parameter tdm_lt_corr_LM_SM between the left channel signal and the reference channel signal after the current frame length is smoothed
- the right channel smoothed right channel of the current frame length The amplitude correlation parameter tdm_lt_corr_RM_SM between the signal and the reference channel signal.
- amplitude correlation parameters between the left channel signal and the reference channel signal that are smoothed at the current frame length and the right channel signal after the current frame length is smoothed.
- the method for referring to the amplitude correlation parameter between the channel signals is not limited in this application.
- the amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed, and the amplitude correlation parameter between the right channel signal and the reference channel signal after the current frame length is smoothed Calculate the amplitude correlation difference parameter diff_lt_corr between the left and right channels of the current frame.
- the amplitude correlation difference parameter diff_lt_corr between the left and right channels of the current frame satisfies:
- tdm_lt_corr_LM_SM represents an amplitude correlation parameter between the left channel signal and the reference channel signal after the current frame length is smoothed
- tdm_lt_corr_RM_SM represents the amplitude between the right channel signal and the reference channel signal after the current frame length is smoothed. Relevance parameters.
- one possible method of converting the amplitude correlation difference parameter between the left and right channels of the current frame into the channel combination scale factor may specifically include steps 90851-90853.
- a method of mapping the amplitude correlation difference parameter between the left and right channels may include:
- the amplitude correlation difference parameter between the left and right channels is subjected to clipping processing, for example, the amplitude correlation difference parameter diff_lt_corr_limit between the left and right channels after the clipping processing satisfies:
- RATIO_MAX represents the maximum value of the amplitude correlation difference parameter between the left and right channels after clipping
- RATIO_MIN represents the minimum value of the amplitude correlation difference parameter between the left and right channels after clipping.
- RATIO_MAX is, for example, a preset empirical value
- RATIO_MAX is, for example, 1.5, 3.0 or other values.
- the RATIO_MIN is, for example, a preset experience value
- the RATIO_MIN is, for example, -1.5, -3.0, or other values.
- the amplitude correlation difference parameter diff_lt_corr_map between the left and right channels after the mapping process satisfies:
- B 1 MAP_MAX-RATIO_MAX*A 1
- B 1 MAP_HIGH-RATIO_HIGH*A 1 .
- B 2 MAP_LOW - RATIO_LOW * A 2
- B 2 MAP_MIN - RATIO_MIN * A 2 .
- B 3 MAP_HIGH-RATIO_HIGH*A 3
- B 3 MAP_LOW-RATIO_LOW*A 3 .
- MAP_MAX represents the maximum value of the amplitude correlation difference parameter between the left and right channels after the mapping process
- MAP_HIGH represents the high threshold of the amplitude correlation difference parameter between the left and right channels after the mapping process
- MAP_LOW indicates The lower threshold of the value of the amplitude correlation difference parameter between the left and right channels after the mapping process
- MAP_MIN indicates the minimum value of the amplitude correlation difference parameter between the left and right channels after the mapping process.
- MAP_MAX may be 2.0
- MAP_HIGH may be 1.2
- MAP_LOW may be 0.8
- MAP_MIN may be 0.0.
- the actual application is not limited to such an example of value.
- RATIO_MAX indicates the maximum value of the amplitude correlation difference parameter between the left and right channels after clipping
- RATIO_HIGH indicates the high threshold of the amplitude correlation difference parameter between the left and right channels after clipping
- RATIO_LOW indicates the left and right channels after clipping.
- the difference between the amplitude correlation difference parameter takes a low threshold
- RATIO_MIN represents the minimum value of the amplitude correlation difference parameter between the left and right channels after clipping.
- RATIO_MAX is 1.5
- RATIO_HIGH is 0.75
- RATIO_LOW is -0.75
- RATIO_MIN is -1.5.
- the actual application is not limited to such an example of value.
- Another method of some embodiments of the present application is: the amplitude correlation difference parameter diff_lt_corr_map between the left and right channels after the mapping process satisfies:
- diff_lt_corr_limit represents the amplitude correlation difference parameter between the left and right channels after the clipping process.
- RATIO_MAX represents the maximum amplitude of the amplitude correlation difference parameter between the left and right channels
- -RATIO_MAX represents the minimum amplitude of the amplitude correlation difference parameter between the left and right channels.
- RATIO_MAX may be a preset empirical value, and RATIO_MAX may be, for example, 1.5, 3.0, or other real numbers greater than 0.
- the channel combination scale factor ratio_SM satisfies:
- cos( ⁇ ) represents a cosine operation.
- the amplitude correlation difference parameter between the left and right channels can be converted into a channel combination scale factor by other methods, for example:
- the long-term smooth frame energy of the left channel of the current frame obtained from the signal energy analysis, the long-term smooth frame energy of the right channel of the current frame, the inter-frame energy difference of the left channel of the current frame, and the pre-cache in the encoder history buffer Encoding parameters of one frame (such as the inter-frame correlation parameter of the main channel signal, the inter-frame correlation parameter of the secondary channel signal), the current frame and the channel combination scheme identifier of the previous frame, the current frame, and the previous frame
- the channel combination scale factor corresponding to the non-correlation signal channel combination scheme determines whether the channel combination scale factor corresponding to the non-correlation signal channel combination scheme is updated.
- channel combination scale factor corresponding to the non-correlation signal channel combination scheme If it is necessary to update the channel combination scale factor corresponding to the non-correlation signal channel combination scheme, use the above example method to convert the amplitude correlation difference parameter between the left and right channels into a channel combination scale factor; otherwise, directly
- the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the previous frame and its encoding index are used as the channel combination scale factor corresponding to the non-correlation signal channel combination scheme of the current frame and its encoding index.
- the channel combination scale factor obtained after the conversion is quantized and encoded, and the initial coding index ratio_idx_init_SM corresponding to the current frame non-correlation signal channel combination scheme is obtained, and the current frame non-correlation signal channel combination scheme after quantization encoding is obtained.
- the initial value ratio_init_SM qua of the corresponding channel combination scale factor.
- ratio_init_SM qua ratio_tabl_SM[ratio_idx_init_SM].
- ratio_tabl_SM represents a codebook of the channel combination scale factor scalar quantization corresponding to the non-correlation signal channel combination scheme.
- the quantization coding may adopt any scalar quantization method in the conventional technology, such as uniform scalar quantization, or non-uniform scalar quantization, and the number of coding bits may be 5 bits, which will not be described in detail herein.
- the code combination of the channel combination scale factor scalar quantization corresponding to the non-correlation signal channel combination scheme may use the same or different codebooks as the code combination scaled scalar quantized codebook corresponding to the correlation signal channel combination scheme.
- the codebooks are the same, it is only necessary to store a codebook for the channel combination scale factor scalar quantization. At this time, the initial value ratio_init_SM qua of the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme after quantization is quantized.
- ratio_init_SM qua ratio_tabl[ratio_idx_init_SM].
- one method is to directly use the initial value of the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme of the quantized coding as the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme. And directly using the initial coding index of the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme as the coding index of the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme, namely:
- the channel combination scaling factor corresponding to the current frame non-correlation signal channel combination scheme satisfies:
- ratio_SM ratio_tabl[ratio_idx_SM]
- Another method may be: a coding index of a channel combination scale factor corresponding to a non-correlation signal channel combination scheme of a previous frame or a channel combination scale factor corresponding to a non-correlation signal channel combination scheme of a previous frame. And correcting the initial value of the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme and the initial coding index corresponding to the current frame non-correlation signal channel combination scheme, and correcting the current
- the coding index of the channel combination scale factor corresponding to the frame non-correlation signal channel combination scheme is used as the coding index of the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme, and the corrected non-correlation signal sound is to be corrected.
- the channel combination scale factor corresponding to the channel combination scheme is used as the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme.
- ratio_idx_SM ⁇ *ratio_idx_init_SM+(1- ⁇ )*tdm_last_ratio_idx_SM.
- ratio_idx_init_SM indicates an initial coding index corresponding to a current frame non-correlation signal channel combination scheme
- tdm_last_ratio_idx_SM is a coding index of a channel combination scale factor corresponding to a previous frame non-correlation signal channel combination scheme
- a correction factor for the channel combination scale factor corresponding to the non-correlated signal channel combination scheme can be an empirical value, for example Can be equal to 0.8.
- the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme satisfies:
- ratio_SM ratio_tabl[ratio_idx_SM]
- the channel combination scale factor corresponding to the unquantized non-correlation signal channel combination scheme is used as the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme, that is, the current frame is not correlated.
- the ratio_SM of the channel combination scale factor corresponding to the sex signal channel combination scheme satisfies:
- the fourth method is: according to the channel combination scale factor corresponding to the uncorrelated signal channel combination scheme of the previous frame, the channel combination scale factor corresponding to the unquantized current frame non-correlation signal channel combination scheme The correction is performed, and the channel combination scale factor corresponding to the corrected non-correlation signal channel combination scheme is used as the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme, and is quantized and encoded.
- the channel combination scale factor corresponding to the channel combination scheme and its coding index are not limited in this application.
- the channel combination scheme identifier of the current frame is recorded as tdm_SM_flag
- the channel combination scheme identifier of the previous frame is recorded as tdm_last_SM_flag
- the joint identifier of the channel combination scheme identifier of the previous frame and the channel combination scheme identifier of the current frame may be represented.
- the coding mode decision may be performed according to the joint identifier, for example:
- the joint identification of the channel combination scheme identifiers of the previous frame and the current frame has the following four cases (01), ( 11), (10), (00), the coding mode of the current frame is respectively determined as: correlation signal coding mode, non-correlation signal coding mode, correlation signal to non-correlation signal coding mode, non-correlation signal to Correlation signal coding mode.
- the joint identifier of the channel combination scheme identifier of the current frame is (00), it indicates that the coding mode of the current frame is the correlation signal coding mode; if the joint identifier of the channel combination scheme identifier of the current frame is (11), the current The coding mode of the frame is a non-correlation signal coding mode; the joint identifier of the channel combination scheme identifier of the current frame is (01), indicating that the coding mode of the current frame is a correlation signal to a non-correlation signal coding mode; the sound of the current frame
- the joint identifier of the track combination scheme identifier is (10), indicating that the coding mode of the current frame is a non-correlation signal to a correlation signal coding mode.
- the encoding apparatus After obtaining the encoding mode stereo_tdm_coder_type of the current frame, the encoding apparatus performs time domain downmix processing on the left and right channel signals of the current frame according to the encoding mode of the current frame by using a corresponding time domain downmix processing method to obtain a main frame of the current frame.
- Channel signal and secondary channel signal After obtaining the encoding mode stereo_tdm_coder_type of the current frame, the encoding apparatus performs time domain downmix processing on the left and right channel signals of the current frame according to the encoding mode of the current frame by using a corresponding time domain downmix processing method to obtain a main frame of the current frame.
- Channel signal and secondary channel signal Channel signal and secondary channel signal.
- the coding mode of the current frame is one of multiple coding modes.
- the plurality of coding modes may include: a correlation signal to a non-correlation signal coding mode, a non-correlation signal to a correlation signal coding mode, a correlation signal coding mode, and a non-correlation signal coding mode, and the like.
- the encoding device separately encodes the primary channel signal and the secondary channel signal to obtain a primary channel encoded signal and a secondary channel encoded signal.
- the main channel can be firstly based on the parameter information obtained in the primary channel signal and/or the secondary channel signal encoding of the previous frame, and the total number of bits of the primary channel signal encoding and the secondary channel signal encoding.
- Signal coding and secondary channel signal coding are used for bit allocation.
- the main channel signal and the secondary channel signal are respectively encoded to obtain a coding index of the main channel coding and a coding index of the secondary channel coding.
- Main channel coding and secondary channel coding any mono audio coding technology can be used, and will not be described here.
- the encoding apparatus selects, according to the channel combination scheme identifier, a corresponding channel combination scale factor encoding index to write the code stream, and writes the primary channel encoded signal, the secondary channel encoded signal, and the channel combination scheme identifier of the current frame. Code stream.
- the coding index ratio_idx of the channel combination scale factor corresponding to the current frame correlation signal channel combination scheme is written into the code stream; If the channel combination scheme identifier tdm_SM_flag of the current frame corresponds to the non-correlation signal channel combination scheme, the coding index ratio_idx_SM of the channel combination scale factor corresponding to the current frame non-correlation signal channel combination scheme is written into the code stream.
- the primary channel encoded signal, the secondary channel encoded signal, and the channel combination scheme identifier of the current frame are written into the bitstream. It can be understood that the write stream operation has no order.
- an audio decoding method is further provided.
- the related steps of the audio decoding method may be specifically implemented by the decoding device, and may specifically include:
- 1001 Decode according to a code stream to obtain a primary and secondary channel decoding signals of a current frame.
- the time domain stereo parameter of the current frame includes a channel combination scale factor of the current frame (the code stream includes a coding index of a channel combination scale factor of the current frame, and is decoded based on a coding index of a channel combination scale factor of the current frame.
- the channel combination scale factor of the current frame may be obtained, and may also include the inter-channel time difference of the current frame (for example, the code stream includes an encoding index of the inter-channel time difference of the current frame, based on the inter-channel time difference of the current frame)
- the encoding index can be decoded to obtain the inter-channel time difference of the current frame; or the code stream includes the absolute worth encoding index of the inter-channel time difference of the current frame, and the encoding index based on the absolute value of the inter-channel time difference of the current frame can be decoded.
- the absolute value of the inter-channel time difference of the current frame is obtained) and the like.
- the determining, according to the channel combination scheme of the current frame and the channel combination scheme of the previous frame, the decoding mode of the current frame refer to the method for determining the encoding mode of the current frame in step 909, according to the channel of the current frame.
- the combination scheme and the channel combination scheme of the previous frame determine the decoding mode of the current frame.
- the decoding mode of the current frame is one of multiple decoding modes.
- the plurality of decoding modes may include: a correlation signal to a non-correlation signal decoding mode, a non-correlation signal to a correlation signal decoding mode, a correlation signal encoding mode, and a non-correlation signal decoding mode, and the like.
- the coding mode and the decoding mode are one-to-one correspondence.
- the decoding mode of the current frame is also the correlation signal decoding mode; if the joint identifier of the channel combination scheme identifier of the current frame is (11), the current The decoding mode of the frame is a non-correlation signal decoding mode; the joint identifier of the channel combination scheme identifier of the current frame is (01), indicating that the decoding mode of the current frame is a correlation signal to the non-correlation signal decoding mode; the sound of the current frame
- the joint identifier of the track combination scheme identifier is (10), indicating that the decoding mode of the current frame is a non-correlation signal to the correlation signal decoding mode.
- step 1001, step 1002, and steps 1003-1004 has no necessary sequence.
- 1005 Perform time domain upmix processing on the primary and secondary channel decoding signals of the current frame to obtain a left and right channel reconstruction signal of the current frame by using a time domain upmix processing manner corresponding to the determined decoding mode of the current frame.
- the upmix matrix used in the time domain upmix processing is constructed based on the obtained channel combination scale factor of the current frame.
- the left and right channel reconstruction signals of the current frame may be used as the left and right channel decoding signals of the current frame.
- delay adjustment of the left and right channel reconstruction signals of the current frame may be performed based on the inter-channel time difference of the current frame, to obtain a left and right channel reconstruction signal of the current frame adjusted by the delay, and the current frame is delayed.
- the adjusted left and right channel reconstruction signals can be used as the left and right channel decoding signals of the current frame.
- the left and right channel reconstruction signals of the current frame may be subjected to time domain post-processing, wherein the left and right channel reconstruction signals processed by the current frame in the time domain may be used as the left and right sounds of the current frame.
- Channel decoding signal may be performed based on the inter-channel time difference of the current frame, to obtain a left and right channel reconstruction signal of the current frame adjusted by the delay, and the current frame is delayed.
- the adjusted left and right channel reconstruction signals can be used as the left and right channel decoding signals of the current frame.
- the left and right channel reconstruction signals of the current frame may be subjected to time domain post-processing, wherein the left and right channel reconstruction signals processed
- an embodiment of the present application further provides an apparatus 1100, which may include:
- the processor 1110 can be used to perform some or all of the steps of any of the methods provided by the embodiments of the present application.
- the memory 1120 includes, but is not limited to, a random access memory (English: Random Access Memory, RAM for short), a read-only memory (English: Read-Only Memory, ROM for short), and an erasable programmable read-only memory (English: Erasable Programmable Read Only Memory (EPROM), or Portable Read-Only Memory (CD-ROM), which is used for related commands and data.
- a random access memory English: Random Access Memory, RAM for short
- ROM Read-Only Memory
- EPROM Erasable Programmable Read Only Memory
- CD-ROM Portable Read-Only Memory
- apparatus 1100 can also include a transceiver 1130 for receiving and transmitting data.
- the processor 1110 may be one or more central processing units (English: Central Processing Unit, CPU for short). In the case that the processor 1110 is a CPU, the CPU may be a single core CPU or a multi-core CPU. The processor 1110 may specifically be a digital signal processor.
- CPU Central Processing Unit
- each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1110 or an instruction in a form of software.
- the processor 1110 can be a general purpose processor, a digital signal processor, an application specific integrated circuit, an off-the-shelf programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
- the processor 1110 can implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present invention.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present invention may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software modules can be located in random memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc., which are well established in the art.
- the storage medium is located in the memory 1120.
- the processor 1110 can read the information in the memory 1120 and complete the steps of the above method in combination with its hardware.
- the device 1100 can also include a transceiver 1130 that can be used, for example, for transceiving related data, such as commands or channel signals or streams.
- the device 1100 can perform some or all of the steps of the corresponding method in the embodiment shown in any of the above-described Figures 2 to 9-D.
- the device 1100 when the device 1100 performs the correlation step of the above encoding, the device 1100 may be referred to as an encoding device (or an audio encoding device).
- the device 1100 When the device 1100 performs the related steps of the above decoding, the device 1100 may be referred to as a decoding device (or audio decoding device).
- the device 1100 may further include, for example, a microphone 1140, an analog to digital converter 1150, and the like.
- the microphone 1140 can be used, for example, to sample an analog audio signal.
- Analog to digital converter 1150 can be used, for example, to convert an analog audio signal into a digital audio signal.
- the device 1100 may further include, for example, a speaker 1160, a digital to analog converter 1170, and the like.
- Digital to analog converter 1170 can be used, for example, to convert a digital audio signal to an analog audio signal.
- the speaker 1160 can be used, for example, to play an analog audio signal.
- an embodiment of the present application provides a device 1200, which includes several functional units for implementing any one of the methods provided by the embodiments of the present application.
- the device 1200 when the device 1200 performs the corresponding method in the embodiment shown in FIG. 2, the device 1200 can include:
- the first determining unit 1210 is configured to determine a channel combination scheme of the current frame, and determine an encoding mode of the current frame based on a channel combination scheme of the previous frame and the current frame.
- the encoding unit 1220 is configured to perform time domain downmix processing on the left and right channel signals of the current frame according to the time domain downmix processing corresponding to the encoding mode of the current frame, to obtain the primary and secondary channel signals of the current frame.
- the apparatus 1200 may further include a second determining unit 1230 for determining a time domain stereo parameter of the current frame.
- the encoding unit 1220 can also be used to encode the time domain stereo parameters of the current frame.
- the device 1200 when the device 1200 performs the corresponding method in the embodiment shown in FIG. 3, the device 1200 can include:
- a third determining unit 1240 configured to determine a channel combination scheme of the current frame based on a channel combination scheme identifier of a current frame in the code stream; according to a channel combination scheme of the previous frame and a channel combination scheme of the current frame, Determining a decoding mode of the current frame.
- the decoding unit 1250 is configured to obtain a primary and secondary channel decoding signal of the current frame based on the code stream decoding; and perform time domain upmixing on the primary and secondary channel decoding signals of the current frame based on the time domain upmix processing corresponding to the decoding mode of the current frame. Processing to obtain the left and right channel reconstruction signals of the current frame.
- the embodiment of the present application provides a computer readable storage medium, where the program code includes program code, where the program code includes some or all steps for performing any one of the methods provided by the embodiments of the present application. Instructions.
- the embodiment of the present application provides a computer program product, when the computer program product is run on a computer, causing the computer to perform some or all of the steps of any one of the methods provided by the embodiments of the present application.
- the disclosed apparatus may be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or may be integrated. Go to another system, or some features can be ignored or not executed.
- the indirect coupling or direct coupling or communication connection shown or discussed herein may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like. .
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Mathematical Physics (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Stereophonic System (AREA)
Abstract
Description
Claims (32)
- 一种音频编码方法,其特征在于,包括:确定当前帧的编码模式;在确定所述当前帧的编码模式为非相关性信号编码模式的情况下,采用所述非相关性信号编码模式对应的时域下混处理方式,对所述当前帧的左右声道信号进行时域下混处理以得到所述当前帧的主次声道信号,所述非相关性信号编码模式对应的时域下混处理方式为非相关性信号声道组合方案对应的时域下混处理方式,所述非相关性信号声道组合方案为类反相信号对应的声道组合方案;对得到的所述当前帧的主次声道信号进行编码。
- 根据权利要求1所述的方法,其特征在于,采用所述非相关性信号编码模式对应的时域下混处理方式,对所述当前帧的左右声道信号进行时域下混处理以得到所述当前帧的主次声道信号,包括:根据所述当前帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号;或者根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号。
- 根据权利要求2所述方法,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号的情况下,其中,所述X L(n)表示所述当前帧的左声道信号,所述X R(n)表示所述当前帧的右声道信号,所述Y(n)表示经时域下混处理而得到的所述当前帧的主要声道信号,所述X(n)表示经时域下混处理而得到的所述当前帧的次要声道信号;其中,所述n表示样点序号;所述delay_com表示编码时延补偿;所述M 22表示所述当前帧的非相关性信号声道组合方案对应的下混矩阵,所述M 22基于所述当前帧的非相关性信号声道组合方案对应的声道组合比例因子构建;所述M 12表示所述前一帧的非相关性信号声道组合方案对应的下混矩阵,所述M 12基于所述前一帧的非相关性信号声道组合方案对应的声道组合比例因子构建。
- 根据权利要求2所述的方法,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号的情况下,其中,NOVA_1表示过渡处理长度;其中,所述n表示样点序号,n=0,1,…,N-1;所述X L(n)表示所述当前帧的左声道信号,所述X R(n)表示所述当前帧的右声道信号,所述Y(n)表示经时域下混处理而得到的所述当前帧的主要声道信号,所述X(n)表示经时域下混处理而得到的所述当前帧的次要声道信号;其中,所述delay_com表示编码时延补偿;所述M 22表示所述当前帧的非相关性信号声道组合方 案对应的下混矩阵,其中,所述M 22基于所述当前帧的非相关性信号声道组合方案对应的声道组合比例因子构建;所述M 12表示所述前一帧的非相关性信号声道组合方案对应的下混矩阵,其中,所述M 12基于所述前一帧的非相关性信号声道组合方案对应的声道组合比例因子构建。
- 一种立体声解码方法,其特征在于,包括:根据码流进行解码以得到当前帧的主次声道解码信号;确定所述当前帧的解码模式;在确定所述当前帧的解码模式为非相关性信号解码模式的情况下,采用所述非相关性信号解码模式对应的时域上混处理方式,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号,其中,所述非相关性信号解码模式对应的时域上混处理方式为非相关性信号声道组合方案对应的时域上混处理方式,所述非相关性信号声道组合方案为类反相信号对应的声道组合方案。
- 根据权利要求9所述的方法,其特征在于,所述采用所述非相关性信号解码模式对应的时域上混处理方式,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号,包括:根据所述当前帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号;或者根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号。
- 根据权利要求10所述的方法,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号的情况下,其中,所述n表示样点序号,n=0,1,…,N-1;其中,所述upmixing_delay表示解码时延补偿;
- 根据权利要求10所述的方法,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号的情况下,其中,所述NOVA_1表示过渡处理长度;其中,所述n表示样点序号,n=0,1,…,N-1;其中,所述upmixing_delay表示解码时延补偿;
- 一种时域立体声编码装置,其特征在于,包括:相互耦合的处理器和存储器;所述处理器用于执行如下步骤:确定当前帧的编码模式;在确定所述当前帧的编码模式为非相关性信号编码模式的情况下,采用所述非相关性信号编码模式对应的时域下混处理方式,对所述当前帧的左右声道信号进行时域下混处理以得到所述当前帧的主次声道信号,所述非相关性信号编码模式对应的时域下混处理方式为非相关性信号声道组合方案对应的时域下混处理方式,所述非相关性信号声道组合方案为类反相信号对应的声道组合方案;对得到的所述当前帧的主次声道信号进行编码。
- 根据权利要求16所述的装置,其特征在于,在采用所述非相关性信号编码模式对应的时域下混处理方式,对所述当前帧的左右声道信号进行时域下混处理以得到所述当前帧的主次声道信号的方面,所述处理器具体用于:根据所述当前帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号;或者根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号。
- 根据权利要求17所述的装置,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号的情况下,其中,所述X L(n)表示所述当前帧的左声道信号,所述X R(n)表示所述当前帧的右声道信号,所述Y(n)表示经时域下混处理而得到的所述当前帧的主要声道信号,所述X(n)表示经时域下混处理而得到的所述当前帧的次要声道信号;其中,所述n表示样点序号;所述delay_com表示编码时延补偿;所述M 22表示所述当前帧的非相关性信号声道组合方案对应的下混矩阵,其中,所述M 22基于所述当前帧的非相关性信号声道组合方案对应的声道组合比例因子构建;所述M 12表示所述前一帧的非相关性信号声道组合方案对应的下混矩阵,其中,所述M 22基于所述前一帧的非相关性信号声道组合方案对应的声道组合比例因子构建。
- 根据权利要求17所述的装置,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的左右声道信号进行时域下混处理,以得到所述当前帧的主次声道信号的情况下,其中,NOVA_1表示过渡处理长度;其中,所述n表示样点序号,n=0,1,…,N-1;所述X L(n)表示所述当前帧的左声道信号,所述X R(n)表示所述当前帧的右声道信号,所述Y(n)表示经时域下混处理而得到的所述当前帧的主要声道信号,所述X(n)表示经时域下混处理而得到的所述当前帧的次要声道信号;其中,所述delay_com表示编码时延补偿;所述M 22表示所述当前帧的非相关性信号声道组合方案对应的下混矩阵,其中,所述M 22基于所述当前帧的非相关性信号声道组合方案对应的声道组合比例因子构建;所述M 12表示所述前一帧的非相关性信号声道组合方案对应的下混矩阵,其中,所述M 22基于所述前一帧的非相关性信号声道组合方案对应的声道组合比例因子构建。
- 一种立体声解码装置,其特征在于,包括:相互耦合的处理器和存储器;所述处理器用于执行如下步骤:解码码流以得到当前帧的主次声道解码信号;确定所述当前帧的解码模式;在确定所述当前帧的解码模式为非相关性信号解码模式的情况,采用所述非相关性信号解码模式对应的时域上混处理方式,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号,所述非相关性信号解码模式对应的时域上混处理方式为非相关性信号声道组合方案对应的时域上混处理方式,所述非相关性信号声道组合方案为类反相信号对应的声道组合方案。
- 根据权利要求24所述的装置,其特征在于,在采用所述非相关性信号解码模式对应的时域上混处理方式,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号的方面,处理器用于:根据所述当前帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号;或者根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行 时域上混处理以得到所述当前帧的左右声道重建信号。
- 根据权利要求25所述的装置,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号的情况下,其中,所述n表示样点序号,n=0,1,…,N-1;其中,所述upmixing_delay表示解码时延补偿;
- 根据权利要求25所述的装置,其特征在于,在根据所述当前帧和前一帧的非相关性信号声道组合方案的声道组合比例因子,对所述当前帧的主次声道解码信号进行时域上混处理以得到所述当前帧的左右声道重建信号的情况下,其中,所述NOVA_1表示过渡处理长度;其中,所述n表示样点序号,n=0,1,…,N-1;其中,所述upmixing_delay表示解码时延补偿;
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储了程序代码,所述程序代码包括用于执行权利要求1-8任意一项所述方法的指令。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储了程序代码,所述程序代码包括用于执行权利要求9-15任意一项所述方法的指令。
Priority Applications (16)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
BR112020002682-4A BR112020002682A2 (pt) | 2017-08-10 | 2018-08-10 | método de codificação e decodificação estéreo de domínio do tempo e produto relacionado |
JP2020507599A JP6974927B2 (ja) | 2017-08-10 | 2018-08-10 | 時間領域ステレオエンコーディング及びデコーディング方法並びに関連製品 |
KR1020207006889A KR102380431B1 (ko) | 2017-08-10 | 2018-08-10 | 시간-도메인 스테레오 코딩 및 디코딩 방법, 및 관련 제품 |
SG11202001169WA SG11202001169WA (en) | 2017-08-10 | 2018-08-10 | Time-domain stereo encoding and decoding method and related product |
RU2020109715A RU2773022C2 (ru) | 2017-08-10 | 2018-08-10 | Способ кодирования и декодирования стерео во временной области и сопутствующий продукт |
ES18843195T ES2977791T3 (es) | 2017-08-10 | 2018-08-10 | Método de codificación y decodificación estéreo en dominio del tiempo y producto relacionado |
EP23216612.4A EP4358083A3 (en) | 2017-08-10 | 2018-08-10 | Time-domain stereo encoding and decoding method and related product |
KR1020237002928A KR102641952B1 (ko) | 2017-08-10 | 2018-08-10 | 시간-도메인 스테레오 코딩 및 디코딩 방법, 및 관련 제품 |
EP18843195.1A EP3664087B1 (en) | 2017-08-10 | 2018-08-10 | Time-domain stereo coding and decoding method, and related product |
KR1020247006315A KR20240032159A (ko) | 2017-08-10 | 2018-08-10 | 시간-도메인 스테레오 코딩 및 디코딩 방법, 및 관련 제품 |
KR1020227010026A KR102493482B1 (ko) | 2017-08-10 | 2018-08-10 | 시간-도메인 스테레오 코딩 및 디코딩 방법, 및 관련 제품 |
US16/785,174 US11062715B2 (en) | 2017-08-10 | 2020-02-07 | Time-domain stereo encoding and decoding method and related product |
US17/355,785 US11640825B2 (en) | 2017-08-10 | 2021-06-23 | Time-domain stereo encoding and decoding method and related product |
JP2021180319A JP7311573B2 (ja) | 2017-08-10 | 2021-11-04 | 時間領域ステレオエンコーディング及びデコーディング方法並びに関連製品 |
US18/193,922 US20230306972A1 (en) | 2017-08-10 | 2023-03-31 | Time-domain stereo encoding and decoding method and related product |
JP2023111288A JP2023139041A (ja) | 2017-08-10 | 2023-07-06 | 時間領域ステレオエンコーディング及びデコーディング方法並びに関連製品 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710679740.6 | 2017-08-10 | ||
CN201710679740.6A CN109389984B (zh) | 2017-08-10 | 2017-08-10 | 时域立体声编解码方法和相关产品 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/785,174 Continuation US11062715B2 (en) | 2017-08-10 | 2020-02-07 | Time-domain stereo encoding and decoding method and related product |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019029724A1 true WO2019029724A1 (zh) | 2019-02-14 |
Family
ID=65272801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/100060 WO2019029724A1 (zh) | 2017-08-10 | 2018-08-10 | 时域立体声编解码方法和相关产品 |
Country Status (10)
Country | Link |
---|---|
US (3) | US11062715B2 (zh) |
EP (2) | EP4358083A3 (zh) |
JP (3) | JP6974927B2 (zh) |
KR (4) | KR102380431B1 (zh) |
CN (2) | CN114005455A (zh) |
BR (1) | BR112020002682A2 (zh) |
ES (1) | ES2977791T3 (zh) |
SG (1) | SG11202001169WA (zh) |
TW (1) | TWI689210B (zh) |
WO (1) | WO2019029724A1 (zh) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114005455A (zh) * | 2017-08-10 | 2022-02-01 | 华为技术有限公司 | 时域立体声编解码方法和相关产品 |
CN109389985B (zh) | 2017-08-10 | 2021-09-14 | 华为技术有限公司 | 时域立体声编解码方法和相关产品 |
WO2022176270A1 (ja) * | 2021-02-16 | 2022-08-25 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | 符号化装置、復号装置、符号化方法、及び、復号方法 |
CN114365509B (zh) * | 2021-12-03 | 2024-03-01 | 北京小米移动软件有限公司 | 一种立体声音频信号处理方法及设备/存储介质/装置 |
WO2023130018A1 (en) * | 2021-12-30 | 2023-07-06 | Ibiquity Digital Corporation | Method and detector for providing an alert message for left/right phase inversion |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09146599A (ja) * | 1995-11-27 | 1997-06-06 | Nec Corp | 音声符号化装置 |
US20030220800A1 (en) * | 2002-05-21 | 2003-11-27 | Budnikov Dmitry N. | Coding multichannel audio signals |
CN102428512A (zh) * | 2009-06-02 | 2012-04-25 | 松下电器产业株式会社 | 下混装置、编码装置以及其方法 |
US20130177158A1 (en) * | 2011-11-17 | 2013-07-11 | Digital Audio Labs | Method for sending multiple pcm audio channels over an industry-standard stereo link |
WO2015140398A1 (en) * | 2014-03-21 | 2015-09-24 | Nokia Technologies Oy | Methods, apparatuses for forming audio signal payload and audio signal payload |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7830921B2 (en) * | 2005-07-11 | 2010-11-09 | Lg Electronics Inc. | Apparatus and method of encoding and decoding audio signal |
KR101218776B1 (ko) | 2006-01-11 | 2013-01-18 | 삼성전자주식회사 | 다운믹스된 신호로부터 멀티채널 신호 생성방법 및 그 기록매체 |
US8190425B2 (en) * | 2006-01-20 | 2012-05-29 | Microsoft Corporation | Complex cross-correlation parameters for multi-channel audio |
KR101629862B1 (ko) * | 2008-05-23 | 2016-06-24 | 코닌클리케 필립스 엔.브이. | 파라메트릭 스테레오 업믹스 장치, 파라메트릭 스테레오 디코더, 파라메트릭 스테레오 다운믹스 장치, 파라메트릭 스테레오 인코더 |
US8060042B2 (en) * | 2008-05-23 | 2011-11-15 | Lg Electronics Inc. | Method and an apparatus for processing an audio signal |
MY159110A (en) * | 2008-07-11 | 2016-12-15 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E V | Audio encoder and decoder for encoding and decoding audio samples |
EP2323130A1 (en) | 2009-11-12 | 2011-05-18 | Koninklijke Philips Electronics N.V. | Parametric encoding and decoding |
FR2966634A1 (fr) | 2010-10-22 | 2012-04-27 | France Telecom | Codage/decodage parametrique stereo ameliore pour les canaux en opposition de phase |
JP5753540B2 (ja) * | 2010-11-17 | 2015-07-22 | パナソニック インテレクチュアル プロパティ コーポレーション オブアメリカPanasonic Intellectual Property Corporation of America | ステレオ信号符号化装置、ステレオ信号復号装置、ステレオ信号符号化方法及びステレオ信号復号方法 |
ES2809677T3 (es) * | 2015-09-25 | 2021-03-05 | Voiceage Corp | Método y sistema para codificar una señal de sonido estéreo utilizando parámetros de codificación de un canal primario para codificar un canal secundario |
CN114005455A (zh) * | 2017-08-10 | 2022-02-01 | 华为技术有限公司 | 时域立体声编解码方法和相关产品 |
-
2017
- 2017-08-10 CN CN202111088891.7A patent/CN114005455A/zh active Pending
- 2017-08-10 CN CN201710679740.6A patent/CN109389984B/zh active Active
-
2018
- 2018-05-11 TW TW107116086A patent/TWI689210B/zh active
- 2018-08-10 EP EP23216612.4A patent/EP4358083A3/en active Pending
- 2018-08-10 KR KR1020207006889A patent/KR102380431B1/ko active IP Right Grant
- 2018-08-10 KR KR1020247006315A patent/KR20240032159A/ko active Application Filing
- 2018-08-10 BR BR112020002682-4A patent/BR112020002682A2/pt unknown
- 2018-08-10 EP EP18843195.1A patent/EP3664087B1/en active Active
- 2018-08-10 SG SG11202001169WA patent/SG11202001169WA/en unknown
- 2018-08-10 KR KR1020227010026A patent/KR102493482B1/ko active IP Right Grant
- 2018-08-10 KR KR1020237002928A patent/KR102641952B1/ko active IP Right Grant
- 2018-08-10 ES ES18843195T patent/ES2977791T3/es active Active
- 2018-08-10 WO PCT/CN2018/100060 patent/WO2019029724A1/zh unknown
- 2018-08-10 JP JP2020507599A patent/JP6974927B2/ja active Active
-
2020
- 2020-02-07 US US16/785,174 patent/US11062715B2/en active Active
-
2021
- 2021-06-23 US US17/355,785 patent/US11640825B2/en active Active
- 2021-11-04 JP JP2021180319A patent/JP7311573B2/ja active Active
-
2023
- 2023-03-31 US US18/193,922 patent/US20230306972A1/en active Pending
- 2023-07-06 JP JP2023111288A patent/JP2023139041A/ja active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09146599A (ja) * | 1995-11-27 | 1997-06-06 | Nec Corp | 音声符号化装置 |
US20030220800A1 (en) * | 2002-05-21 | 2003-11-27 | Budnikov Dmitry N. | Coding multichannel audio signals |
CN102428512A (zh) * | 2009-06-02 | 2012-04-25 | 松下电器产业株式会社 | 下混装置、编码装置以及其方法 |
US20130177158A1 (en) * | 2011-11-17 | 2013-07-11 | Digital Audio Labs | Method for sending multiple pcm audio channels over an industry-standard stereo link |
WO2015140398A1 (en) * | 2014-03-21 | 2015-09-24 | Nokia Technologies Oy | Methods, apparatuses for forming audio signal payload and audio signal payload |
Also Published As
Publication number | Publication date |
---|---|
US20220139404A1 (en) | 2022-05-05 |
KR20240032159A (ko) | 2024-03-08 |
KR102380431B1 (ko) | 2022-04-01 |
CN109389984A (zh) | 2019-02-26 |
JP2023139041A (ja) | 2023-10-03 |
BR112020002682A2 (pt) | 2020-07-28 |
EP3664087A4 (en) | 2020-08-05 |
EP4358083A2 (en) | 2024-04-24 |
KR20220043246A (ko) | 2022-04-05 |
SG11202001169WA (en) | 2020-03-30 |
EP3664087A1 (en) | 2020-06-10 |
KR20200035138A (ko) | 2020-04-01 |
KR102641952B1 (ko) | 2024-02-29 |
RU2020109715A3 (zh) | 2021-11-19 |
JP2022010020A (ja) | 2022-01-14 |
KR20230018550A (ko) | 2023-02-07 |
US20200176000A1 (en) | 2020-06-04 |
RU2020109715A (ru) | 2021-09-10 |
JP2020529636A (ja) | 2020-10-08 |
TW201911888A (zh) | 2019-03-16 |
CN109389984B (zh) | 2021-09-14 |
JP7311573B2 (ja) | 2023-07-19 |
KR102493482B1 (ko) | 2023-01-31 |
US11640825B2 (en) | 2023-05-02 |
EP3664087B1 (en) | 2024-02-14 |
JP6974927B2 (ja) | 2021-12-01 |
US11062715B2 (en) | 2021-07-13 |
TWI689210B (zh) | 2020-03-21 |
EP4358083A3 (en) | 2024-06-19 |
CN114005455A (zh) | 2022-02-01 |
US20230306972A1 (en) | 2023-09-28 |
ES2977791T3 (es) | 2024-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI697892B (zh) | 音訊編解碼模式確定方法和相關產品 | |
TWI689210B (zh) | 時域身歷聲編解碼方法和相關產品 | |
TWI705432B (zh) | 音訊編解碼方法、音頻編解碼裝置及電腦可讀存儲介質 | |
WO2019029736A1 (zh) | 时域立体声编解码方法和相关产品 | |
JP7309813B2 (ja) | 時間領域ステレオパラメータ符号化方法および関連製品 | |
RU2772405C2 (ru) | Способ стереокодирования и декодирования во временной области и соответствующий продукт | |
RU2773022C2 (ru) | Способ кодирования и декодирования стерео во временной области и сопутствующий продукт |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18843195 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2020507599 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112020002682 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 20207006889 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2018843195 Country of ref document: EP Effective date: 20200302 |
|
ENP | Entry into the national phase |
Ref document number: 112020002682 Country of ref document: BR Kind code of ref document: A2 Effective date: 20200207 |