Optimized processing for reducing channels of a stereophonic audio signal
The method selects between filtered and unfiltered channel reduction processes based on transients and quality to address stereo-to-mono downmixing issues, enhancing signal stability and reducing artifacts in stereo-to-mono conversion.
Patent Information
- Application Number
- PCT/EP2024/059645
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-23
- Filing Date
- 2024-04-10
- Publication Date
- 2024-10-17
AI Technical Summary
Current stereo-to-mono downmixing methods suffer from issues like comb filtering, excess reverberation, and artifacts such as clicks and echo, particularly when dealing with non-coincident microphones and phase differences, leading to signal coloring and loss of intelligibility.
A method that applies two channel reduction processes, one using filtering with rephasing and the other without, selected based on the presence of transients or filtering quality, to maintain signal stability and avoid discontinuities.
This approach effectively reduces artifacts and maintains signal level stability, improving the rendering of transitions and components out of phase, while avoiding excessive reverberation and signal degradation.
Smart Images

Figure EP2024059645_17102024_PF_FP_ABST
Abstract
Description
Optimized channel reduction processing of a stereophonic audio signal
[0001] The present invention relates to the general field of audio signal processing. The invention relates in particular to the channel reduction processing commonly called "downmixing" of a multichannel audio signal. Particular interest is given to the processing of reducing a stereophonic signal to a monophonic signal.
[0002] This type of processing finds applications in general in the field of audio technologies, and more specifically in the field of audio coding, whether at the encoding or decoding stage.
[0003] Channel reduction or downmixing consists of deducing, from a combination of the C channels of a multichannel signal x, a signal y consisting of a smaller number D of channels. In practice, this consists of defining a function Such as :
[0004] , with and n representing a time index of the input and output signal.
[0005] In this invention, we are interested in the particular case D=1 and C=2, we will then speak of stereo to mono downmix or simply mono downmix. In the case C=2, we speak of 2-channel content or signal which can be stereo content or binaural content, where channel 1 ( ) is referenced as the left lane (Left), and lane 2 ( ) as the right channel (for Right). Subsequently, the stereo case will be seen as a general 2-channel signal, including the binaural case to avoid repeating the two terms, even if technically a binaural signal has specific characteristics. In the case of the signal y obtained after reduction processing, we speak of a monophonic or mono signal, which will subsequently be noted m(n), in the time domain, or M(k), in the frequency domain.
[0006] These stereo signals can come from a recording from a pair of stereo microphones or a binaural recording, or even from an artistic mix of audio tracks.
[0007] There are several microphone pairs that can be used to create stereo content. Among the most popular is the XY pair, which consists of two cardioid microphones with a difference in orientation angle between 90° and 135°. The MS pair, for "Mid-Side," is another very common pair, consisting of a cardioid microphone and a second "figure-of-8" microphone oriented at 90°. By combining these two microphones (sum / difference), the left and right channels of stereo content can be created. These pairs are said to be coincident, meaning that the microphone capsules do not have any delay between them, the spatialization being perceived by the difference in sound intensity between the left and right channels.
[0008] Another category of so-called phase stereo pairs consists of using microphones that are distant from each other, thus creating a phase difference between the channels for sources located closer to one of the microphones. The best known is the AB pair, which uses two omnidirectional microphones spaced a few centimeters to several meters apart. Another very common pair is the ORTF pair, which uses both a phase difference through a 17cm spacing of the microphones and an amplitude difference through cardioid directivities (the microphones have an angle around 90°). The binaural pair consists of placing omnidirectional microphones in the ears of a person or an artificial head: this type of device makes it possible to natively create binaural content that can be listened to through headphones.
[0009] Stereo content also includes speech and audio signals from audio mixing or post-production (e.g., channels stored on a CD or DVD, or streamed over the Internet).
[0010] There are also other methods of creating stereo content that are not reviewed here.
[0011] The simplest method for creating a downmixed signal is known as passive downmixing. This involves averaging the left and right channels of the stereo signal such that:
[0012]
[0013] or in the frequency domain:
[0014] Or is the short-term Fourier transform of (or FFT in English for “Fast Fourier Transform”), where k is the frequency index and t is the frame index:
[0015] Where j is the imaginary number such that ,test the frame index,l is the time index in the current frame,N the size of the FFT, an apodization window of size L, of the sinus or Hann type or other, adapted to the size of the frame, and . This definition extends to the case where N>L and is an augmented version of with 0s (0-padding).
[0016] This very simple passive downmixing method works well in situations where the right and left channels are in phase. However, in situations where the microphones are not coincident and have phase differences, such mixing generates comb filtering, which manifests itself as a coloration of the original signal. This is due to the fact that depending on the microphone spacing, the position of the source relative to the microphone pair and the frequency, the left and right channels of the same source can be either in phase as shown in Figure 1a, or in phase opposition as shown in Figure 1b. Also, during downmixing, the left and right signals will either add together (constructive interference) or cancel each other out (destructive interference), thus creating level variations and coloration effects of the reduced signal The coloration comes from the effect of comb filtering: the effects of constructive and destructive interference appear in different frequency bands, thus modifying the balance and therefore the timbre of the signal from the downmix compared to the original.
[0017] To correct this frequency-dependent intensity level defect, the downmix of the e-AAC+ codec implements a level correction which ensures that the energy level of the reduced signal, in each frequency band, remains comparable to the original one:
[0018] , with
[0019]
[0020] This approach allows to compensate to some extent for the decrease in intensity of the downmix. However, this compensation leads to overamplifications when the signals are close to phase opposition: therefore, in practice, the correction factor is limited to a maximum value (e.g. an upper limit of 2).
[0021] Describes a method for reducing channels from stereo to mono built into the public IVAS candidate codec available at:
[0022] https: / forge.3gpp.org / rep / ivas-codec-pc / ivas-codec / - / tree / main
[0023] The input 2-channel signal x(m), where m is the index of the interleaved samples, is deinterleaved (block 701) to find the two left and right channels. Then a frequency analysis with windowing and Fourier transform (blocks 702 and 703) is performed to obtain the spectra of the 2 channels, and the cross-correlation based on the phase spectra is estimated (block 704) before determining the time difference between the channels (denoted here ITD even if it is formally an ICTD between 2 channels) by peak search (block 705); block 705 also provides the correlation level R* corresponding to the ITD.
[0024] The mixing factor is then determined as follows (block 706):
[0025]
[0026] where g represents the mixing factor (mixing) and is the interchannel time difference (mistakenly called ITD) Thus, the 2 channels are combined into a mono signal in block 706 according to this factor g, with a smoothing of the value of the factor applied sample by sample at the start of each frame after block 707:
[0027] m(n) = γ(n) x1(n) + (1-γ(n)) x2(n),
[0028] where γ(n) is the factor derived from g after temporal smoothing with the gain of the previous frame.
[0029] Then, the energies of the left x1(n) and right x2(n) channels and of the mono signal m(n) are determined (block 708, 709, 710). The left and right channels are separately reinjected (added) in blocks 713 and 715 to the mono signal from block 706 according to an energy compensation determined in block 711 with respective scale factors defined in blocks 712 and 713.
[0030] These methods, in addition to the coloration of the signal from the downmix, linked to the imperfectly corrected comb filtering, suffer from an excess of reverberation linked to the summation of signals when the input channels are out of phase, and from a "click" type artifact when the channel reinjection is carried out punctually in a single frame. Compensating for an identical delay for all frequencies is not realistic, this delay being linked to the different sources composing the content. In practice, this leads, in addition to additional coloration, to a potential loss of intelligibility of the sources, a defect that level compensation cannot correct.
[0031] Other downmixing approaches seek to avoid the above-mentioned defects. The principle of these methods is to re-phase the left and right signals before their summation. In the paper entitled "A stereo to mono downmixing scheme for MPEG-4 parametric stereo encoder" by Samsudin, E. Kurniawati, N. Boon Poh, F. Sattar, S. George, in Proc. ICASSP, 2006, a method is proposed which consists of applying, in the frequency domain, a phase shift φ on one of the channels, generally the right, in order to re-phase it with the left channel, such as:
[0032]
[0033] The ideal phase shift is given by what is called here the IPD for “Inter-channel Phase Difference” in English:
[0034]
[0035] Or is the conjugate of and ∠ indicates the phase of the complex operand.
[0036] It is calculated in the frequency domain: this allows the spectral components of different sources to be re-phased, a source with its own IPD being able to be predominant in a frequency bandk, while another source with a different IPD can be predominant in another frequencyk'.
[0037] In the case of the MPEG4 codec described in the Samsudin document cited above, the IPD applied is that estimated by averaging over a Bark band and not the IPD calculated for each frequency band, the latter proving to be particularly noisy and variable from one frame to another. In addition, this method takes the left channel as a phase reference, and if the phase of this channel is poorly conditioned, the downmix has degraded quality.
[0038] In the published patent application WO2017103418, a downmix method is proposed that combines the method proposed by Samsudin with passive downmixing. In particular, it proposes an ISD indicator for "Inter-Spectral Distance" that allows you to choose, frequency band by frequency band, which is the most suitable method for rephasing signals:
[0039]
[0040] This indicator allows to measure whether the signals are rather in phase (ISD < 1), i.e. with a phase difference or IPD in the interval or rather in phase opposition (ISD > 1), i.e. with an IPD in the interval . When they are in phase opposition, a large ISD value is synonymous with a comparable level between the left and right channels and rephasing is important to avoid coloration and level loss effects. Conversely, an ISD value close to 1 is representative of one channel being predominant compared to the other; in the latter case, rephasing is not important, the downmix being roughly equal to the predominant signal. It is, however, important to avoid modifying the phase of the right channel if it is predominant. Also, in this patent application, the following downmix type selection mechanism is proposed:
[0041]
[0042] The passive downmix proposed in patent application WO2017103418, for low ISD situations, sometimes introduces increased reverberation.
[0043] On the other hand, the method proposed in this patent application requires applying processing in the frequency domain, the reconstruction of the reduced signal being carried out from the short-term inverse Fourier transform (TFCT or STFT in English) of the signal M(t,k). This type of filtering generates a circular convolution which creates audible artifacts: echo, pre-echo, crackles. To mask these artifacts, one can use an implementation with an overlap of frames associated with an adapted windowing (window for analysis and / or synthesis) guaranteeing a reconstruction of the filtered signal. In general, this overlap is not compatible with the operation of audio coders which work with adjacent frames, iewithout overlap; moreover, this type of reconstruction induces a delay, generally of half a frame which is the classic overlap, which is not acceptable for a coder which has strong constraints in terms of latency.
[0044] Another implementation, called Overlap-and-Add (OLA), is also possible: this method requires a 0-padding step on both signals and filters to avoid circular convolution. However, tests show that with such filters whose phase varies very rapidly from one frame to the next, an OLA approach cannot completely mask artifacts at the transition of certain frames, and the artifacts remain audible.
[0045] There are also state-of-the-art methods where the downmix is obtained by switching, for example in the frequency domain for the published patent application WO2017103418, different downmix methods. In this case it is important to ensure that the switching is done "seamlessly", that is to say without discontinuities or differences in levels between methods to avoid artifacts.
[0046] The invention improves the state of the art.
[0047] To this end, the invention relates to a method for processing channel reduction of a stereophonic signal to obtain a monophonic signal, for processing channel reduction of a stereophonic signal to obtain a monophonic signal, comprising the following:
[0048] - application, to a current frame of said signal, of two channel reduction treatments, one of the treatments using filtering with re-phasing on at least one of the channels of the stereophonic signal and the other treatment not using filtering with re-phasing,
[0049] - selection of one of said treatments to be applied to the current frame, said selection being implemented according to:
[0050] -- the presence or absence of at least one transient in the stereophonic signal, or
[0051] -- a quality level of stereophonic signal filtering used when implementing processing using stereophonic signal filtering.
[0052] The invention advantageously provides two decision criteria which make it possible to choose between two different channel reduction treatments, one of which uses stereophonic signal filtering and the other does not.
[0053] In one embodiment, if a presence of said at least one transient is detected, respectively not detected, in the stereophonic signal, the channel reduction processing which does not use filtering of the stereophonic signal, respectively which uses filtering of the stereophonic signal, is selected.
[0054] This embodiment allows:
[0055] - when one or more transitions are detected, to obtain a better rendering of the transition(s) of the signal by selecting the channel reduction processing which does not use filtering, and which, therefore, preserves the nature of the stereophonic signal,
[0056] - when no transition is detected, to favor channel reduction processing which uses filtering, better suited to components of the stereophonic signal which are not in phase.
[0057] In one embodiment, the detection of said at least one transient is implemented before applying, to said stereophonic signal, one or the other of the two channel reduction treatments.
[0058] This embodiment makes it possible, even before applying channel reduction processing, to deduce a priori whether at least one transition is present or not in the stereophonic signal, without applying any additional particular processing to this signal.
[0059] In one embodiment, the detection of said at least one transient comprises the following steps: - decomposition of the current frame of the stereophonic signal into sub-blocks;
[0060] - calculation of the energy of each of the sub-blocks obtained;
[0061] - comparison of the energies obtained at an energy threshold (th 61 ), And
[0062] - if the energy is lower, respectively higher, than said energy threshold, the presence of a transient is not detected, respectively detected.
[0063] In one embodiment, said filtering quality level is compared to a filtering quality threshold, and if said filtering quality level is lower, respectively higher, than said filtering quality threshold, the channel reduction processing which does not use stereophonic signal filtering, respectively which uses stereophonic signal filtering, is selected.
[0064] In one embodiment, said filtering quality level is measured as follows:
[0065] - calculation of the energy of the stereophonic signal, called input energy, before applying filtering,
[0066] - calculation of the energy of the monophonic signal, called output energy, after application of the filtering,
[0067] - calculation of a ratio between input energy and output energy.
[0068] In one embodiment, an indicator representative of the presence or absence of a transient is generated.
[0069] In one embodiment, two levels of said processed current frame are obtained respectively after applying, to said current frame of said signal, the two channel reduction treatments, one using filtering of the stereophonic signal and the other not, - adjustment of said level of the current frame on which the channel reduction treatment using said filtering has been applied, said adjusted level being similar or equal to said level of the current frame on which the channel reduction treatment not using said filtering has been applied,
[0070] - comparison between the current processed frame having said adjusted level and the current processed frame having said level obtained after application, to said current frame of said signal, of the channel reduction processing not using stereophonic signal filtering,
[0071] - selection of one of said treatments to be applied to the current frame, based on said comparison.
[0072] The invention advantageously makes it possible, when a change in channel reduction processing of a current frame of the stereophonic signal is implemented, to maintain the level of the stereophonic signal as stable as possible, without causing discontinuities in the perceived level of the signal.
[0073] The invention relates to a channel reduction processing device comprising a processing circuit for implementing the steps of the channel reduction processing method as described previously.
[0074] The invention also relates to a computer program comprising instructions for implementing the channel reduction processing method according to the invention, according to any one of the particular embodiments described above, when said program is executed by a processor.
[0075] Such instructions can be stored durably in a non-transitory memory medium of the channel reduction processing device implementing the channel reduction processing method according to the invention.
[0076] This program may use any programming language, and may be in the form of source code, object code, or code intermediate between source code and object code, such as in a partially compiled form, or in any other desirable form.
[0077] The invention also relates to a recording medium or information medium readable by a computer, and comprising instructions of a computer program as mentioned above.
[0078] The recording medium may be any entity or device capable of storing the program. For example, the medium may include a storage medium, such as a ROM, for example a CD-ROM or a microelectronic circuit ROM, or a magnetic recording medium, for example a mobile medium, a hard disk drive or an SSD.
[0079] On the other hand, the recording medium may be a transmissible medium such as an electrical or optical signal, which may be conveyed via an electrical or optical cable, by radio or by other means, so that the computer program contained therein is remotely executable. The program according to the invention may in particular be downloaded over a network, for example an Internet-type network.
[0080] Alternatively, the recording medium may be an integrated circuit in which the program is incorporated, the circuit being adapted to perform or to be used in performing the aforementioned channel reduction processing method.
[0081] According to an exemplary embodiment, the present technique is implemented by means of software and / or hardware components. In this regard, the term “device” or “module” may correspond in this document to a software component, a hardware component or a set of hardware and software components.
[0082] Other characteristics and advantages of the invention will appear more clearly on reading the following description of particular embodiments, given as simple illustrative and non-limiting examples, and the appended drawings, among which:
[0083] illustrates channels of a stereophonic signal, in phase as previously described;
[0084] illustrates channels of a stereophonic signal, in phase opposition as previously described;
[0085] illustrates in block diagram form a channel reduction processing chain in one embodiment of the invention;
[0086] illustrates an embodiment of a filter calculation for channel reduction processing, as well as a channel reduction processing selection;
[0087] illustrates an embodiment of an adaptation phase of a channel reduction processing filter;
[0088] illustrates an embodiment of a transition of the application of channel reduction processing during a transition between two stereo signal frames;
[0089] illustrates another embodiment of a filter calculation for channel reduction processing, as well as a channel reduction processing selection;
[0090] illustrates another embodiment of a filter calculation for channel reduction processing, as well as a channel reduction processing selection;
[0091] illustrates an existing channel reduction processing method described previously;
[0092] illustrates an exemplary structural embodiment of a channel reduction processing device according to one embodiment of the invention.
[0093] The invention will now be described below with reference to Figures 2 to 8. For this purpose, the following symbols will be mainly used in the description which follows. INDICATIONS
[0094] k frequency index
[0095] the time index of a signal (in the current frame)
[0096] n time index of a signal
[0097] t frame number CONSTANTS
[0098] The number of samples in the current frame
[0099] N number of input channels
[0100] M number of output channels
[0101] P filter length
[0102] Q crossfade length SIGNALS
[0103] x i (n) input channels
[0104] m(n) downmix (in time)
[0105] m(t,l) downmix in the current frame (in time)
[0106] M(t,k) downmix in the current frame (in frequency)
[0107] Lamontre shows an example of a stereophonic audio signal processing chain, the processing including a channel reduction process called "downmix".
[0108] At the input of this processing chain, a stereophonic signal x, composed of two channels (x1(n) and x2(n)) also called left channel and right channel (respectively), is initially divided in 201, into frames of L samples (x1(t,l) and x2(t,l), t being the index of the frame and l the index of the sample. Block 202 applies windowing and a FFT (for "Fast Fourier Transform" in English), to obtain signals in the frequency domain (X1(t,k) and X2(t,k), k being the index of the frequency). In 203, a selection and determination of a channel reduction filter to be applied to a signal frame are then carried out. This step will be described with reference to the. The filter thus determined is conditioned (or adapted) in 204 to make it causal and optimize it in order to reduce the processing complexity. In an exemplary embodiment, the windowing and FFT transform are similar to steps 702 and 703 of the.
[0109] This adaptation phase is described with reference to the.
[0110] Once the filter has been determined and adapted for the current frame, it is applied at 205 to this current frame. In order to avoid audible artifacts due to a change of filters between two frames, a crossfade is performed taking into account the filters of the previous frame. .
[0111] This step will be described with reference to the.
[0112] Describes a detailed embodiment of block 203 of the. In this processing block, a first or second channel reduction processing to be applied to a current frame of the stereophonic signal is selected and determined.
[0113] A first method of channel reduction processing T1 is defined here by shifting the left and right channels of the stereo signal simultaneously by an angle defined by half the phase difference (IPD) determined between the two channels of the stereo signal. This gives a downmix signal, as follows:
[0114]
[0115] This method avoids excess reverberation type degradation generated by a classic downmix (average of the two signals) or comb filtering type in the event of a time lag between the two channels.
[0116] This downmix thus defined can be seen, in the frequency domain, as a filtering according to the following equation:
[0117]
[0118] with And .
[0119] A second T2 downmix method is for example defined as that proposed in the previously cited Samsudin document.
[0120] In this second method, we then have And .
[0121] The channels of the stereo signal, in the frequency domain (X1(t,k) and X2(t,k)), are used on the one hand to calculate a phase indicator ISD in 301, representative of a measure of the degree of phase opposition between the channels of the stereo signal, and, on the other hand, the phase difference between the channels (IPD) in 303.
[0122] The phase indicator is for example defined by the ISD indicator for "Inter-Spectral Distance" as defined above.
[0123] In the embodiment described herein, the ISD is determined per stereophonic signal frame so that the decision to select a first channel reduction process (first downmix) or a second can be made on a frame-by-frame basis.
[0124] This frame-based decision makes it possible to avoid significant phase shifts between frequencies and other audible artifacts that can appear when the decision varies from one frequency to another, as in the patent application cited above.
[0125] To apply a frame-based decision, a decision criterion based on the ISD phase indicator is defined according to the following equation at 302:
[0126]
[0127] This criterion measures the percentage of frequency lines of index k for which the criterion is favorable to downmixing with re-phasing, that is to say when . The decision is made to apply the first downmix as defined above, with rephasing, when exceeds a certain threshold , which we set for example at 70%.
[0128] We then have in 305 the following decision of downmix selection between T1 and T2:
[0129]
[0130] In 303, the phase difference IPD is obtained between the two channels of the stereo signal by where ∠ indicates the phase of the complex operand.
[0131] However, the frame-based decision may sometimes be insufficient because the IPD, as calculated using the above formula, varies very rapidly over time. Also, filters
[0132] can vary very quickly from one frame to another, which causes discontinuities that are sometimes audible during the transition from one frame to another. To limit this effect, we can use a smoothed version of the IPD over time to calculate the filters . One way to smooth the IPD is to apply a first-order IIR type low-pass filtering, at 304, such that:
[0133]
[0134] The forgetting coefficient is chosen ad-hoc. It may be interesting to choose a large forgetting coefficient in the low frequencies, typically below 5kHz, because this allows to maintain phase coherence in the low part of the spectrum from one frame to another, the spectrum of speech signals being stationary, particularly in its low part and the particular ear sensitive to the phase in this part of the spectrum. Conversely, it is interesting to choose a low forgetting coefficient in the high frequencies: in the high frequencies, typically above 5kHz, the phase continuity of speech signals is less marked and the ear is less sensitive to phase discontinuities in this part of the spectrum.
[0135] We can choose a forgetting coefficient of the following form:
[0136]
[0137] The values , , And are determined experimentally. In the case of adjacent frames of length L = 20 ms, we can, for example, choose the following set of parameters:
[0138] , corresponds to
[0139] In variants, we will force the very low frequencies and the very high frequencies to remain intact. So in variants, we force for the first lines Or as well as for index lines where k corresponds to 8 kHz.
[0140] Figure 4 now details block 204 of Figure 2. The filters , as for example defined in the T1 and T2 downmix methods defined above, are reconditioned or further adapted to avoid circular convolution.
[0141] In a first step, in 401, we calculate the impulse responses filters , such as :
[0142]
[0143] where the filters are of size N which corresponds to the length of the FFT. Here we take N=L.
[0144] In the preferred embodiment, we have L = 20 ms, or 320 samples at 16 kHz, 640 samples at 32 kHz and 960 samples at 48 kHz.
[0145] The impulse responses thus defined are classically non-causal, they correspond to filters with a finite impulse response. A classic technique to make them causal consists of performing a rotation of L / 2 samples to center the response in L / 2. The disadvantage is that the filter thus reconstructed then has a latency of L / 2. To avoid this latency, we choose to truncate the filter asymmetrically, in 402, by keeping only a portion of the first half of the impulse response in the following manner:
[0146]
[0147] This filter has the advantage of generally having a maximum (in absolute value) on its first sample, which guarantees processing without additional delay. In terms of frequency response, it has a phase roughly equal to the optimal rephasing filter .
[0148] The choice of P depends on various criteria: a value of P close to N⁄2 guarantees near-optimal phase re-phasing, while a lower value limits the computing power required for filtering. A lower value of P also smooths the phase of the filter. This has an advantage with filters defined by T2 processing as defined above where the phase varies very rapidly from one frequency to another: these variations can result in a very high group delay perceptible to the human ear. A low value of P allows all or part of these artifacts to be eliminated.
[0149] The filter thus truncated , especially when P <N⁄2, voire P≪N⁄2, présente une queue de réponse impulsionnelle qui ne tend pas vers 0. Cela crée des discontinuités audibles de type cliquetis à la transition entre 2 trames. Aussi, pour éviter ces artefacts audibles, on pondère with a window , in 403, such that:
[0150]
[0151] where the coefficients of tend towards 0 as l tends towards P. This allows to reduce the energy of the samples at the end of the filter and to avoid discontinuities during the transition between filters of consecutive frames.
[0152] This window can be a triangular half-window, or a Hann half-window:
[0153]
[0154] Due to its truncation and windowing, the filters have reduced energy compared to that of the optimal filter : the latter, as a pure phase shifter filter, has a norm of 1 / 2 by construction. Also, we can proceed to a normalization of the energy of the filter thus truncated and windowed, in 404, such that:
[0155]
[0156] Or is the 2-norm of a vector.
[0157] According to the invention, in 405, a quality level of the filtering that has been implemented is determined. For this purpose:
[0158] - an energy E 401 of the filter before truncation 402 is calculated,
[0159] - an energy E 403 of the temporal filter after windowing 403 is calculated,
[0160] - a ratio R4 between E 401 summer 403 is calculated.
[0161] We can also determine a filtering quality by comparing an energy E 401 and an energy E 404 of the temporal filter after normalization.
[0162] As non-exhaustive alternatives, the determination of the filtering quality level can be implemented:
[0163] - directly on the filterH i (t,k), and / or
[0164] - a frequency version of this same filter before normalization or after normalization .
[0165] - etc…
[0166] In variants, we can calculate:
[0167]
[0168] This criterion can be standardized by:
[0169]
[0170] Another quality variant may be interested in measuring the amount of energy lost during truncation to make the filter causal. In this variant, we can calculate E 401 as the “anticausal” energy of the original filter:
[0171]
[0172] Energy E 403 (resp. E 404) can be calculated as the energy of the synthesized filter, before normalization (resp after normalization):
[0173]
[0174]
[0175] To avoid the bias linked to the size of the window, we can also calculate the energy of the anticausal part on the same number of samples, with windowing by the window or not:
[0176]
[0177]
[0178] In variants, the frequency response can be calculated of the filter obtained after truncation (at the output of 403) and compare with the target response to set the quality level, for example:
[0179]
[0180] This criterion can be standardized by:
[0181]
[0182] Another variant of the quality criterion could be to compare the phase coherence of the filters, given that the objective is to re-phase the signals. Thus, the coherence could be calculated between the 2 filters:
[0183]
[0184] A high coherence (i.e. close to 1) indicates that the synthesized filter is close to the ideal filter and therefore a high quality factor, a low value (close to 0) indicating on the contrary a low quality criterion.
[0185] The following describes in detail block 205 of the, where an OLS (Overlap-and-Save) implementation of the filtering is carried out in the time or frequency domain. The choice of domain will be made according to the complexity which depends on the size of the filter relative to that of the frame to be processed.
[0186] Here we present an OLS-type implementation in the time domain, with adjacent frames of size L.
[0187] First, we concatenate, in 501, the current frame with the P-1 samples of the previous frame (Save principle):
[0188]
[0189] Each channel is filtered by its phase shifter filter in 503:
[0190]
[0191] The mono downmix is then created by adding the two channels back into phase at 505:
[0192]
[0193] In practice, the filters can be very different between two successive frames, for example when a new source appears. In this case, the transition between And can cause differences in the form of audible artifacts. To avoid these artifacts, a cross-fade step can be applied. To achieve this cross-fade, the filters are applied to the current frame over a number of samples Q:
[0194]
[0195] This is achieved by block 502 of the.
[0196] The number of samples needed for the cross-fade will have to be determined experimentally, depending on the size of the filters, the sampling frequency, etc.
[0197] We then create the mono downmix in 504, from filters of the previous frame:
[0198]
[0199] The signal from the downmix is created in 506, from a cross-fade according to the following equation:
[0200]
[0201] Or is a monotonically decreasing function, with And with ε a value close to 0 or zero. Typically, we can choose a half-Hann window:
[0202]
[0203] It should be noted that, in an integration with other downmix methods, the aforementioned T1 and T2 downmix methods cannot always be represented by a filtering operation. This is the case for the T3 method or any other method whose gain depends on the instantaneous signal level.
[0204] According to the invention, in the case where a selection of the downmix methods T1 and T2 or the downmix T3 is implemented, as will be described in the remainder of the description, a scaling step 5040 and 5050 of each of the signals And respectively is implemented. For this purpose, the signal d'(n) obtained at the output of the downmix T3 of figure 7 having a level N3, the level N1, respectively N2, of each of the signals And on which the downmix T1, respectively T2, has been applied, is adjusted to the level N3, so as to be equal or similar to this level N3. Instead of being applied to each of the signals And , such scaling can be performed on the signal as well .
[0205] The present invention now details a channel reduction processing method according to the invention, in which one of the downmix methods T1 or T2 chosen at the end of the selection method of the is implemented in 610, and another downmix method is implemented in 611, the gain of which depends on the instantaneous level of the signal, such as for example the method T3 of the.
[0206] In this case, one solution is to calculate the downmixes of each method for the current frame of time index and to make a transition in 612 from one downmix to the other by cross-fade, which generates a monophonic signal d(n). More precisely, in the case of a transition from a downmix T1 (or T2) to a downmix T3, the downmix can be made between the signal obtained at the output of T1 (or T2) and the signal obtained at the output of T3. It is also possible to downmix the output of T1 (or T2) and the signal d(n). In the latter case, the energy compensation of the T3 method (adapt_gain on the) would apply permanently to all methods. The decision to switch from a T1 or T2 downmix to a T3 downmix could be motivated by criteria other than the ISD, for example, Par3 parameters already calculated by the T3 method, such as the ITD, by choosing to apply the T3 downmix by default when the ITD is very high (for example ITD > 600 microsec in absolute value), or any other criterion or combination of criteria.
[0207] According to the invention, the selection of the downmix T1 (or T2) or T3 is implemented as a function of:
[0208] - the presence or absence of at least one transition in the stereophonic signal, or
[0209] - a quality level of the stereophonic signal filtering used when implementing the T1 (or T2) downmix.
[0210] In the case of a detection 613 of the presence or absence of at least one transition in the stereophonic signal, according to a first embodiment, a transient detection is applied separately to each of the input signals x1(n) and x2(n), or on the current frame x1(t,l) and x2(t,l). Since transient detection is a classic problem in audio coding, we take the example of the module already implemented in the EVS codec and described in the 3GPP TS 26.445 standard clause 5.1.8. For this purpose, each of the input signals x1(n) and x2(n), or the current frame x1(t,l) and x2(t,l) is divided into sub-blocks. The energy of each sub-block is calculated, then smoothing is possibly implemented. The energy obtained is then compared to an energy threshold th 61 . If this energy obtained is less than th 61, the presence of a transition is considered undetected. If this energy obtained is greater than th 61 , the presence of a transition is considered to be detected. For this purpose, a parameter Par 1 (if T1 was chosen after the selection of the) or Par2 (if T2 was chosen after the selection of the) is set:
[0211] - to a first value, for example 0, to indicate that the presence of a transition has not been detected,
[0212] - to a second value, for example 1, to indicate that the presence of a transition has been detected.
[0213] Such a Par1 / Par2 parameter is transmitted, as a decision criterion, to the cross-fading block 612.
[0214] In the case where the selection of the T1 (or T2) downmix or the T3 downmix is based on a quality level of the stereophonic signal filtering used when implementing the T1 (or T2) downmix, with reference to the, the following steps are implemented:
[0215] - calculation of energy E 61 of the signal , resulting from filtering by
[0216] - calculation of energy E 62 of the signal ,
[0217] - calculation of a ratio between E 61 summer 62 ,
[0218] - comparison of said ratio with an energy threshold SE.
[0219] If the ratio between E 61 summer 62 is less than SE, the presence of a transition is considered to be detected. If the ratio between E 61 summer 62is greater than SE, the presence of a transition is considered to be detected. For this purpose, a parameter Par 1 (if T1 was chosen after the selection of the) or Par2 (if T2 was chosen after the selection of the) is set:
[0220] - to a first value, for example 0, to indicate that the presence of a transition has not been detected,
[0221] - to a second value, for example 1, to indicate that the presence of a transition has been detected.
[0222] Such a Par1 / Par2 parameter is transmitted, as a decision criterion, to the cross-fading block 612.
[0223] Thus, according to the invention, when a transient is detected in the current frame in one or both channels, the T3 downmix is applied to the current frame rather than the T1 (or T2) downmix. Indeed, the T1 and T2 downmixes use filtering by an impulse response which sometimes tends to spread the signal envelope; this problem is more pronounced on transient sounds such as castanets, scissors clicking on a binaural recording simulating a haircut at a hairdresser, etc.
[0224] In order to limit potential artifacts due to crossfading (block 612) between downmix methods, the invention may provide for applying, at 614, a scaling of the signal at the output of T1 (or T2). According to the invention, such scaling 614 implements the following steps:
[0225] - determine the energy E' of the downmix signal at the output of T1 (or T2), preferably with smoothing, by carrying out the same steps as steps 708, 709, 710 of the,
[0226] - determine the scale factor:
[0227] g' =
[0228] - apply the factor g' to said downmix signal by using the operating principle (with smoothing at the start of the frame) of blocks 712 and 714 of the.
[0229] Unlike the downmix, here we apply a direct compensation of the downmix level at the output of T1 or T2, without reinjecting an input signal.
[0230] Illustrates an alternative to the channel reduction treatment method described with reference to the.
[0231] The illustrated embodiment differs from that of the only one by the fact that the detection of a transition is implemented according to a second embodiment. According to this second embodiment, such detection is implemented during the downmix step 610 T1 (or T2) instead of being applied separately to each of the input signals x1(n) and x2(n), or on the current frame x1(t,l) and x2(t,l). For this purpose, with reference to the, the energy of each 2 ms sub-block between the input and output signal of the blocks 502 and 503 is compared. If the energy has lowered a threshold, for example 3 dB, it is considered that a transient has been strongly attenuated, and in this case the downmix T3 is applied in the current frame. If the energy has not lowered a threshold, for example 3 dB, we consider that a transient has not been attenuated, and in this case we apply the downmix T1 (or T2) in the current frame.
[0232] Illustrated on the, a channel reduction processing device 800, within the meaning of the invention.
[0233] The device 800 comprises a processing circuit typically including: - a memory MEM1 for storing instruction data of a computer program within the meaning of the invention; - an interface INT1 for receiving a stereo audio signal: ;- a processor PROC1 for receiving this signal and processing it by executing the computer program instructions stored in the memory MEM1, with a view to carrying out channel reduction processing; in particular, the processor being capable of controlling the processing modules as described with reference to figures 2 to 5; and- a communication interface COM 1 for transmitting the reduced signals, resulting from the channel reduction processing, , to another processing module, for example an encoding or decoding module of an audio signal encoder or decoder.
[0234] Of course, this illustrates an example of a structural embodiment of a channel reduction processing device within the meaning of the invention.
[0235] Figures 2 to 7 commented above describe in detail functional implementations of this device.
[0236] Applications for this type of channel reduction processing are found, for example, in audio coding, for example when the remote party does not have the capacity to reproduce stereo sound on their terminal. In this case, it is not necessary to transport a stereo signal and this saves bandwidth. This type of process can be used during point-to-point conversations if one of the participants makes a stereo or binaural sound recording. This type of process can also be present during multi-party conferences: the conference bridge spatializes the scene by creating a stereo scene, but not all participants necessarily have stereo reproduction capabilities. It is then appropriate to downmix the scene in mono for these participants.
[0237] The invention can also be applied to audio decoding: in this case, it is the user's renderer (restitution module) which will downmix the stereo content to adapt to the user's reduced capabilities (single speaker for example).
Claims
A method of channel reduction processing of a stereophonic signal to obtain a monophonic signal, comprising the following:- application (610, 611), to a current frame of said signal, of two (T1 or T2, T3) channel reduction processing operations, one of the processing operations using filtering with re-phasing on at least one of the channels of the stereophonic signal and the other processing operation not using filtering with re-phasing,- selection (612) of one of said processing operations to be applied to the current frame, said selection being implemented as a function of:-- a presence or absence of at least one transient in the stereophonic signal, or-- a quality level of the filtering of the stereophonic signal used during the implementation of the processing operation using the filtering of the stereophonic signal. Channel reduction processing method according to claim 1, wherein if a presence of said at least one transient is detected (613), respectively not detected (613), in the stereophonic signal, the channel reduction processing which does not use filtering of the stereophonic signal, respectively which uses filtering of the stereophonic signal, is selected (612). Channel reduction processing method according to claim 1, wherein the detection of said at least one transient is implemented before applying, to said stereophonic signal, one or the other of the two channel reduction processes. Channel reduction processing method according to one of the preceding claims, wherein the detection of said at least one transient comprises the following steps: decomposition of the current frame of the stereophonic signal into sub-blocks; calculation of the energy of each of the sub-blocks obtained; comparison of the energies obtained with an energy threshold (th 61 ), and if the energy is lower, respectively higher, than said energy threshold, the presence of a transient is not detected, respectively detected. Channel reduction processing method according to claim 1, wherein said filtering quality level is compared to a filtering quality threshold, and if said filtering quality level is lower, respectively higher, than said filtering quality threshold, the channel reduction processing which does not use stereophonic signal filtering, respectively which uses stereophonic signal filtering, is selected. Channel reduction processing method according to claim 5, wherein said filtering quality level is measured as follows:calculating the energy of the stereophonic signal, called input energy, before applying the filtering,calculating the energy of the monophonic signal, called output energy, after applying the filtering,calculating a ratio between the input energy and the output energy. Channel reduction processing method according to claim 1, in which an indicator (Par1 or Par2) is generated representing the presence or absence of a transient. Channel reduction processing method according to any one of claims 1 to 6, wherein two levels (E', E1+E2) of said processed current frame are obtained respectively after applying, to said current frame of said signal, the two (T1 or T2, T3) channel reduction processings, one using stereophonic signal filtering and the other not,- adjustment (614) of said level (E') of the current frame on which the channel reduction processing using said filtering has been applied, said adjusted level (E') being similar or equal to said level (E1+E2) of the current frame on which the channel reduction processing not using said filtering has been applied,- comparison between the processed current frame having said adjusted level and the processed current frame having said level obtained after applying, to said current frame of said signal, the channel reduction processing not using stereophonic signal filtering,- selection of one of said treatments to be applied to the current frame, based on said comparison., Channel reduction processing device comprising a processing circuit for implementing the steps of the channel reduction processing method according to one of claims 1 to 7. Storage medium, readable by a processor, storing a computer program comprising instructions for executing the method according to one of claims 1 to 7.
Citation Information
Patent Citations
Audio decoder and decoding method using efficient downmixing
EP2360683A1
Audio encoding and decoding method and related product
EP3703050A1
Audiochannel mixing
WO1998043466A1
Adaptive channel-reduction processing for encoding a multi-channel audio signal
WO2017103418A1
