Method and device for uncorrelated stereo content classification, crosstalk detection, and stereo mode selection in sound codecs - Patents.com

JP2023540377A5Active Publication Date: 2024-09-17VOICEAGE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023515652
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-09-09
Filing Date
2021-09-08
Publication Date
2024-09-17
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

Existing audio codecs struggle with efficient encoding of stereo sound signals, particularly in complex acoustic situations with uncorrelated channels or crosstalk scenarios, leading to increased bitrates and reduced sound quality.

Method used

A method and apparatus for classifying uncorrelated stereo content and detecting crosstalk in stereo sound signals, using features extracted from the left and right channels to switch between DFT and LRTD stereo modes based on Logistic Regression models, optimizing encoding efficiency and quality.

Benefits of technology

Enhances encoding efficiency by dynamically adapting to stereo content characteristics, reducing bitrates while maintaining sound quality, especially in scenarios with uncorrelated channels or crosstalk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A method and device for classifying uncorrelated stereo content in a stereo sound signal responsive to features extracted from the stereo sound signal including a left channel and a right channel includes calculating a score representative of uncorrelated stereo content in the stereo sound signal responsive to the extracted features, and switching between a first class indicating one of uncorrelated and correlated stereo content in the stereo sound signal and a second class indicating the other of uncorrelated and correlated stereo content in the stereo sound signal responsive to the score. A method and device for detecting crosstalk in a stereo sound signal responsive to features extracted from the stereo sound signal including a left channel and a right channel includes calculating a score representative of crosstalk in the stereo sound signal responsive to the extracted features, calculating an auxiliary parameter for use in detecting crosstalk in the stereo sound signal, and switching between a first class indicating the presence of crosstalk in the stereo sound signal and a second class indicating the absence of crosstalk in the stereo sound signal responsive to the crosstalk score and the auxiliary parameter. A method and device for selecting one of a first stereo mode and a second stereo mode for coding a stereo sound signal including a left channel and a right channel includes generating a first output indicating the presence or absence of uncorrelated stereo content in the stereo sound signal, generating a second output indicating the presence or absence of crosstalk in the stereo sound signal, calculating auxiliary parameters for use in selecting a stereo mode for coding the stereo sound signal, and selecting a stereo mode for coding the stereo sound signal in response to the first output, the second output, and the auxiliary parameters.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This disclosure relates, in detail to, but is not limited to, audio coding, to classification of uncorrelated stereo content, crosstalk detection, and stereo mode selection in, for example, multi-channel audio codecs capable of producing good sound quality in complex acoustic situations at low bitrate and low latency.

[0002] In the claims of this disclosure and the appended claims, - The term "sound" can be associated with speech, acoustics, and any other sounds. - The term "stereo" is an abbreviation for "stereophonic." - The term "monaural" is an abbreviation of "monophonic." [Background technology]

[0003] Historically, conversational telephones have been conducted with handsets having only one transducer to output sound to only one ear of the user. In the last decade, users have begun using their portable handsets in combination with headphones to receive sound in both ears, primarily for listening to music, and sometimes for listening to speech. Even so, when portable handsets are used to transmit and receive conversational audio, the content is still monaural, but when headphones are used, it is provided to both ears of the user.

[0004] The latest 3GPP voice coding standard, Enhanced Voice Service (EVS), as described in reference [1], whose entirety is incorporated herein by reference, has significantly improved coded sounds such as voice and / or acoustics transmitted and received through portable handsets. The next natural step is for the receiver to transmit stereo information so that it is as close as possible to the real-life acoustic conditions captured at the other end of the communication link.

[0005] For example, in audio codecs such as those described in reference [2], whose entire content is incorporated herein by reference, stereo information transmission is commonly used.

[0006] For speech codecs, monaural signals are standard. When stereo audio signals are transmitted, the bitrate is often doubled because both the left and right channels of the stereo signal are coded using a monaural codec. While this works well in most scenarios, it presents the drawback of doubling the bitrate and failing to utilize the potential overlap between the two channels (between the left and right channels of the stereo signal). Furthermore, the overall sound quality is affected by the use of very low bitrates for each of the left and right channels in order to keep the overall bitrate at a reasonable level. To reduce the bitrate, efficient stereo coding techniques have been developed and used. As non-limiting examples, two stereo coding techniques that can be used efficiently at low bitrates are discussed in the following paragraphs.

[0007] The first stereo coding technique is called parametric stereo. Parametric stereo encodes two inputs (left and right channels) by adding a specific size of stereo-side information (corresponding to stereo parameters) representing a three-dimensional sound image to a monaural signal using a common monaural codec. The left and right channels of the two inputs are downmixed into a monaural signal, and then the stereo parameters are calculated. This is usually done in the frequency domain (FD), for example, in the discrete Fourier transform (DFT) domain. The stereo parameters are associated with so-called binaural or inter-channel cues. The binaural cues (see, for example, reference [3], the entire content of which is incorporated herein by reference) include the inter-aural level difference (ILD), inter-aural time difference (ITD), and inter-aural correlation (IC). Depending on the sound signal characteristics, stereo configuration, etc., some or all of the binaural cues are coded and sent to a decoder. Information about the encoding and transmission of the bi-ear cues is typically sent as signal information, which is part of the stereo information. Furthermore, a given bi-ear cue can be quantized using different encoding techniques, which involve a variable number of bits. Thus, in addition to the quantized bi-ear cues, the stereo information may include quantized residual signals resulting from the downmix, typically at medium to high bit rates. These residual signals can be encoded using entropy encoding techniques, such as arithmetic encoders. In the following portions of this disclosure, parametric stereo is referred to as "DFT stereo" because parametric stereo encoding techniques typically operate in the frequency domain, and this disclosure uses DFT to describe non-restrictive embodiments.

[0008] Other stereocoding techniques are techniques that operate in the time domain. These stereocoding techniques mix two inputs (left channel and right channel) into so-called primary and secondary channels. For example, according to the method described in reference [4], the entire content of which is incorporated herein by reference, the time-domain mixing can be based on a mixing ratio, which determines the respective contributions of the two inputs (left channel and right channel) in the generation of the primary and secondary channels. The mixing ratio can be derived from several criteria, such as the normalized correlation of the two inputs (left channel and right channel) to the mono signal, or the difference in the long-term correlation between the two inputs (left channel and right channel). The primary channel can be coded by a common mono codec, while the secondary channel can be coded by a lower bitrate codec. The coding of the secondary channel may utilize the coherence between the primary and secondary channels, or it may reuse some parameters of the primary channel. For certain sounds where the left and right channels exhibit only slight correlation, it is preferable to encode the left and right channels of a stereo input signal separately in the time domain, or with minimal inter-channel parameterization. Such a technique in an encoder is a special case of time-domain TD stereo, which is referred to throughout this disclosure as "LRTD stereo".

[0009] Furthermore, in recent years, the generation, recording, depiction, coding, transmission, and playback of sound have advanced towards more interactive and immersive experiences for the listener. An immersive experience can be described, for example, as a state in which sound comes from all directions while the listener is deeply engaged or involved in the sound situation. In immersive audio (also called 3D audio), the sound image is reproduced in all three dimensions around the listener, taking into account a wide range of sonic characteristics such as timbre, directionality, reverberation, clarity, and accuracy of the (auditory) space. Immersive audio is produced for specific sound reproduction or playback systems, such as speaker-based systems, integrated playback systems (soundbars), or headphones. Thus, the interactivity of a sound playback system may include, for example, the ability to adjust the sound level, the ability to change the position of the sound, or the ability to select different languages ​​for playback.

[0010] There are three basic methods for achieving an immersive experience.

[0011] The first method for achieving an immersive experience is a channel-based acoustic approach that uses multiple spaced microphones to capture sound from different directions, with each microphone corresponding to one acoustic channel in a specific speaker arrangement. Each recorded channel is then fed into the speakers at a given location. Examples of channel-based acoustic approaches include stereo, 5.1 surround, and 5.1+4.

[0012] A second approach to achieving an immersive experience is a context-based acoustics method that expresses a desired sound field in a local space as a function of time through a combination of dimensional components. The sound signals representing context-based acoustics are independent of the sound source's location, but the sound field is transformed into a selected speaker arrangement in the renderer. Ambisonics is an example of context-based acoustics.

[0013] A third approach to achieving an immersive experience is an object-based acoustic approach that represents the acoustic situation as a set of individual acoustic elements (e.g., singer, drums, guitar, etc.) accompanied by information such as their positions, and these acoustic elements are provided by a sound reproduction system in their intended locations. This gives object-based acoustic approaches great flexibility and interactivity because each object remains discrete and can be manipulated individually.

[0014] Each of the above acoustic techniques for achieving an immersive experience has its advantages and disadvantages. Therefore, in complex acoustic systems, it is common to combine several acoustic techniques rather than relying on just one to create an immersive acoustic situation. For example, there may be acoustic systems that combine situation-based or channel-based acoustics with object-based acoustics, such as ambisonics with several discrete acoustic objects.

[0015] In recent years, 3GPP (3rd Generation Partnership Project) (registered trademark) has begun work on developing a 3D audio codec for immersive services called IVAS (Immersive Voice and Audio Services), based on the EVS codec (see reference [5], the full content of which is incorporated herein by reference).

[0016] DFT stereo modes are efficient for encoding single-talk utterances. For two or more speakers, parametric stereo techniques struggle to fully represent the spatial characteristics of the situation. This problem is particularly evident when two speakers are conversing simultaneously (crosstalk scenarios) and when the signals in the left and right channels of a stereo input signal are weakly correlated or completely uncorrelated. In these situations, it is preferable to encode the left and right channels of the stereo input signal separately or with minimal inter-channel parameterization in the time domain using LRTD stereo modes. As the situation captured in the stereo input signal evolves, it is desirable to switch between DFT and LRTD stereo modes based on the classification of the stereo situation. [Overview of the project] [Means for solving the problem]

[0017] According to a first aspect, the disclosure relates to a method for classifying uncorrelated stereo content in a stereo audio signal including left and right channels in response to features extracted from the stereo audio signal including left and right channels, the method comprising the steps of: calculating a score representing uncorrelated stereo content in the stereo audio signal in response to the extracted features; and switching, in response to the score, between a first class indicating one of uncorrelated stereo content and correlated stereo content in the stereo audio signal and a second class indicating the other of uncorrelated stereo content and correlated stereo content.

[0018] According to a second aspect, the present disclosure relates to a classification device for uncorrelated stereo content in a stereo sound signal including left and right channels, in response to features extracted from a stereo sound signal including left and right channels, comprising: a score calculation device for representing uncorrelated stereo content in a stereo sound signal in response to extracted features; and a class switching mechanism in response to a score for switching between a first class indicating one of uncorrelated stereo content and correlated stereo content in a stereo sound signal, and a second class indicating the other of uncorrelated stereo content and correlated stereo content.

[0019] The disclosure also relates to a method for detecting crosstalk in a stereo sound signal including left and right channels in response to features extracted from the stereo sound signal including left and right channels, the method comprising the steps of: calculating a score representing crosstalk in the stereo sound signal in response to the extracted features; calculating auxiliary parameters for use when detecting crosstalk in the stereo sound signal; and switching between a first class indicating the presence of crosstalk in the stereo sound signal and a second class indicating the absence of crosstalk in the stereo sound signal in response to the crosstalk score and auxiliary parameters.

[0020] In a further aspect, the present disclosure provides a detection device for crosstalk in a stereo sound signal including left and right channels, in response to features extracted from a stereo sound signal including left and right channels, comprising: a device for calculating a score representing crosstalk in the stereo sound signal in response to the extracted features; a device for calculating auxiliary parameters for use when detecting crosstalk in a stereo sound signal; and a class switching mechanism in response to the crosstalk score and auxiliary parameters for switching between a first class indicating the presence of crosstalk in the stereo sound signal and a second class indicating the absence of crosstalk in the stereo sound signal.

[0021] The disclosure also relates to a method for selecting one of a first stereo mode and a second stereo mode for encoding a stereo sound signal including a left channel and a right channel, the method comprising the steps of: generating a first output indicating the presence or absence of uncorrelated stereo content in the stereo sound signal; generating a second output indicating the presence or absence of crosstalk in the stereo sound signal; calculating auxiliary parameters for use when selecting a stereo mode for encoding the stereo sound signal; and selecting a stereo mode for encoding the stereo sound signal in response to the first output, the second output, and the auxiliary parameters.

[0022] In a further embodiment, the Disclosure provides a device for selecting one of a first stereo mode and a second stereo mode for encoding a stereo sound signal including a left channel and a right channel, comprising: a classification device for generating a first output indicating the presence or absence of uncorrelated stereo content in the stereo sound signal; a detection device for generating a second output indicating the presence or absence of crosstalk in the stereo sound signal; an analysis processing device for calculating auxiliary parameters for use when selecting a stereo mode for encoding a stereo sound signal; and a stereo mode selection device for selecting a stereo mode for encoding a stereo sound signal in response to the first output, the second output, and the auxiliary parameters.

[0023] The aforementioned and other purposes, advantages, and features of the uncorrelated stereo content classification device, uncorrelated stereo content classification method, crosstalk detection device, crosstalk detection method, stereo mode selection device, and stereo mode selection method will become more apparent by reading the following non-limiting description of the exemplary embodiments provided by reference only to the accompanying drawings. [Brief explanation of the drawing]

[0024] [Figure 1] This is a schematic block diagram that simultaneously shows a device for encoding stereo audio signals and a corresponding method for encoding stereo audio signals. [Figure 2] This is a schematic diagram illustrating a two-dimensional view of a crosstalk situation between two opposing speakers, captured by a pair of hypercardioid microphones. [Figure 3] This graph shows the location of the peak in the GCC-PHAT function. [Figure 4] This is a top-down plan view of the stereo setup used for actual recording. [Figure 5] This graph shows the normalization function applied to the output of the LogReg model in the classification of uncorrelated stereo content in LRTD stereo modes. [Figure 6] This is a state diagram illustrating the switching mechanism between stereo content classes in a classification device for uncorrelated stereo content, which forms part of the device shown in Figure 1 for encoding stereo audio signals. [Figure 7] This is a schematic floor plan of a large conference room with an AB microphone setup under simulated conditions for crosstalk detection, consisting of an AB microphone setup with a pair of cardioid or omnidirectional microphones positioned far enough apart to cover the space without creating phase problems between them. [Figure 8] This figure shows an example of automatic labeling of crosstalk using VAD (Voice Activity Detection). [Figure 9] This graph shows a function for increasing or decreasing the raw output of the LogReg model in crosstalk detection in LRTD stereo mode. [Figure 10] This graph shows the mechanism for detecting rising edges in the crosstalk detection device of the device shown in Figure 1, which encodes stereo audio signals in LRTD stereo mode. [Figure 11] This is a logic diagram illustrating the switching mechanism between output states of the crosstalk detection device in LRTD stereo mode. [Figure 12] This is a logic diagram illustrating the switching mechanism between output states of a crosstalk detection device in DFT stereo mode. [Figure 13] This is a schematic block diagram illustrating the mechanism for selecting between LRTD stereo mode and DFT stereo mode. [Figure 14] This is a simplified block diagram of an example configuration of hardware components that implement a method and device for encoding stereo audio signals. [Modes for carrying out the invention]

[0025] This disclosure describes the classification of uncorrelated stereo content (hereinafter referred to as "UNCLR classification") and crosstalk detection (hereinafter referred to as "XTALK detection") in an input stereo audio signal. This disclosure also describes stereo mode selection, such as automatic LRTD / DFT stereo mode selection.

[0026] Figure 1 is a schematic block diagram showing both a device 100 for encoding a stereo sound signal 190 and a corresponding method 150 for encoding the stereo sound signal 190.

[0027] Specifically, Figure 1 shows how UNCLR classification, XTALK detection, and stereo mode selection are incorporated into method 150 and device 100 for encoding stereo audio signals.

[0028] UNCLR classification and XTALK detection form two independent techniques. However, they are based on the same statistical model and share some features and parameters. Furthermore, both UNCLR classification and XTALK detection are individually designed and trained for LRTD stereo modes and DFT stereo modes. In this disclosure, LRTD stereo modes are provided as non-limiting examples of time-domain stereo modes, and DFT stereo modes are provided as non-limiting examples of frequency-domain stereo modes. Implementing other time-domain and frequency-domain stereo modes is within the scope of this disclosure.

[0029] UNCLR classification analyzes features extracted from the left and right channels of the stereo audio signal 190 and detects a weak or zero correlation between the left and right channels. On the other hand, XTALK detection detects the presence of two speakers speaking simultaneously in a stereo situation. For example, both UNCLR classification and XTALK detection provide binary outputs. These binary outputs are combined in the stereo mode selection logic. As a non-restrictive general rule, stereo mode selection selects the LRTD stereo mode when UNCLR classification and XTALK detection indicate the presence of two speakers standing on either side of the capture device (e.g., a microphone). This situation typically results in a weak correlation between the left and right channels of the stereo audio signal 190. The selection of the LRTD or DFT stereo mode is performed on a frame-by-frame basis (as is well known in technology, the stereo audio signal 190 is sampled at a given sampling rate and processed by groups of these samples called "frames," which are divided into several "subframes"). Furthermore, the stereo mode selection logic is designed to avoid frequent switching between LRTD stereo mode and DFT stereo mode, as well as stereo mode switching within perceptually important signal segments.

[0030] Non-limiting illustrative embodiments of UNCLR classification, XTALK detection, and stereo mode selection are described in this disclosure only by reference to the IVAS coding framework referred to as the IVAS codec (or IVAS audio codec). However, incorporating such classification, detection, and selection in any other audio codec is within the scope of this disclosure.

[0031] 1. Feature Extraction UNCLR classification is based on a logistic regression (LogReg) model, the entirety of which is incorporated herein by reference, for example, in reference [9]. The LogReg model is trained separately for LRTD stereo modes and DFT stereo modes. Training is performed using a large database of features extracted from the stereo sound signal encoding device 100 (stereo codec). Similarly, XTALK detection is based on a LogReg model that is trained separately for LRTD stereo modes and DFT stereo modes. The features used in XTALK detection differ from those used in UNCLR classification. However, certain features are shared by both techniques.

[0032] The features used in UNCLR classification and the features used in XTALK detection are related to the following operation, namely: - Inter-channel correlation analysis, - TD pretreatment, and, - DFT stereo parameterization It is extracted from.

[0033] Method 150 for encoding a stereo sound signal includes the feature extraction operation (not shown) described above. To perform the feature extraction operation, device 100 for encoding a stereo sound signal includes a feature extraction device (not shown).

[0034] 2. Inter-channel correlation analysis The feature extraction operation (not shown) includes operation 151 of inter-channel correlation analysis for LRTD stereo modes and operation 152 of inter-channel correlation analysis for DFT stereo modes. To perform operations 151 and 152, the feature extraction apparatus (not shown) comprises an inter-channel correlation analyzer 101 and an inter-channel correlation analyzer 102, respectively. Operations 151 and 152 and analyzers 101 and 102 are similar and will be described together.

[0035] The analyzer 101 / 102 receives the left and right channels of the current stereo audio signal frame as input. The left and right channels are first downsampled to 8kHz. For example, the downsampled left and right channels are shown as follows: X L (n),X R (n), n=0, .., N-1 (1) Here, n is the sample index in the current frame, and N=160 is the length of the current frame (length of 160 samples). The downsampled left and right channels are used to calculate the inter-channel correlation function. First, the absolute energies of the left and right channels are calculated using, for example, the following relationship:

[0036]

number

[0037] The analyzer 101 / 102 calculates the numerator of the inter-channel correlation function from the point product between the left and right channels over a time lag of <-40, 40>. For negative time lags, the point product between the left and right channels is calculated using, for example, the following relationship:

[0038]

number

[0039] For positive time lags, the point product is given, for example, by the following relationship:

[0040]

number

[0041] Next, the analyzer 101 / 102 calculates the inter-channel correlation function using, for example, the following relationship:

[0042]

number

[0043] Here, the superscript [-1] indicates a reference to the previous frame. The passive monaural signal is calculated by averaging the left and right channels.

[0044]

number

[0045] The side signal is calculated as the difference between the left and right channels, using the following relationship, as an unrestricted example:

[0046]

number

[0047] Finally, it is also useful to define the sample-per-sample product of the left and right channels as follows: X P (n) = X L (n)·X R (n), n=0, .., N-1 (8)

[0048] The analyzer 101 / 102 includes an infinite impulse response (IIR) filter (not shown) to smooth the inter-channel correlation function using, for example, the following relationship:

[0049]

number

[0050] Here, the superscript [n] indicates the current frame, the superscript [n-1] indicates the previous frame, and α ICA This is the smoothing coefficient.

[0051] Smoothing coefficient α ICA This is adapted and set within the Inter-Channel Correlation Analysis (ICA) module of the stereo audio signal encoding device 100 (stereo codec) (reference [1]). Next, the inter-channel correlation function is weighted in terms of its location in the predicted peak region. Mechanisms for peak discovery and local window generation are implemented within the ICA module and are not described in this document; for additional information on the ICA module, please refer to reference [1]. The inter-channel correlation function after ICA weighting is given R as k∈<-40, 40> W (k) will be used to indicate this.

[0052] The position of maximum in the inter-channel correlation function is an important indicator of the direction in which the dominant sound comes to the capture position, and is used as a feature by UNCLR classification and XTALK detection in LRTD stereo mode. The analyzer 101 / 102 calculates the maximum in the inter-channel correlation function, which is also used as a feature by XTALK detection in LRTD stereo mode, using, for example, the following relationship:

[0053]

number

[0054] This maximum position, in a non-limiting embodiment, uses the following relationship:

[0055]

number

[0056] Maximum R of the inter-channel correlation function max When it is negative, it is set to 0. The maximum value R in the current frame max The difference between this and the previous frame is calculated, for example, as follows.

[0057] [Number]

[0058] Here, the superscript [-1] indicates a reference to the previous frame.

[0059] The position of the maximum of the inter-channel correlation function determines which channel becomes the "reference" channel (REF) and the "target" channel (TAR) in the ICA module. Position k max If k ≥ 0, the left channel (L) becomes the reference channel (REF), and the right channel (R) becomes the target channel (TAR). Position k max If k < 0, the right channel (R) becomes the reference channel (REF), and the left channel (L) becomes the target channel (TAR). Next, the target channel (TAR) is shifted to cancel its delay with respect to the reference channel (REF). The number of samples used to shift the target channel (TAR) can be directly set to, for example, |k max |. However, to eliminate artifacts caused by the absolute change in position k max between consecutive frames, the number of samples used to shift the target channel (TAR) can be smoothed with an appropriate filter within the ICA module.

[0060] The number of samples used to shift the target channel (TAR) is denoted as k shift where k shift > 0. The reference channel signal is denoted as X ref (n), and the target channel signal is denoted as X tarIt is shown as (n). The instantaneous target gain reflects the ratio of energy between the reference channel (REF) and the shifted target channel (TAR). The instantaneous target gain can be calculated, for example, using the following relationship.

[0061] [Number]

[0062] Here, N is the length of the frame. The instantaneous target gain is used as a feature by the UNCLR classification in the LRTD stereo mode.

[0063] 2.1 Inter-channel features The analyzer 101 / 102 derives a first set of features used in UNCLR classification and X-TALK detection directly from the inter-channel analysis. The value of the inter-channel correlation function at zero time lag R(0) is used as a feature in itself by the UNCLR classification and X-TALK detection in the LRTD stereo mode. By calculating the logarithm of the absolute value of C(0), another feature used by the UNCLR classification and X-TALK detection in the LRTD stereo mode is obtained as follows.

[0064] [Number]

[0065] The ratio of the energy of the side signal to the energy of the monoral signal is also used as a feature by the UNCLR classification and X-TALK detection in the LRTD stereo mode. This ratio is calculated, for example, using the following relationship.

[0066] [Number]

[0067] The energy ratio of relationship (15) is smoothed with respect to time, for example, as follows.

[0068]

Number

[0069] Here, c hang is the counter of the VAD hangover frame calculated as part of the VAD (voice activity detection) module (see, for example, reference [1]) of the stereo audio signal encoding device 100 (stereo codec). The smoothed ratio of relation (16) is used as a feature for XTALK detection in the LRTD stereo mode.

[0070] The analysis devices 101 / 102 derive the following dot products from the left channel and the monaural signal, and between the right channel and the monaural signal. First, the dot product between the left channel and the monaural signal is expressed, for example, as follows.

[0071]

Number

[0072] And the dot product between the right channel and the monaural signal is expressed, for example, as follows.

[0073]

Number

[0074] Both dot products are positive with a lower bound of zero. A criterion based on the maximum and minimum differences of these two dot products is used as a feature for UNCLR classification and XTALK detection in the LRTD stereo mode. This can be calculated using the following relation. d mmLR = max[C LM , C RM - min[C LM , C RM (19)

[0075] Similar criteria used as independent features in UNCLR classification and XTALK detection in LRTD stereo modes are directly based on the absolute difference between two point products, calculated using, for example, the following relationship in both the linear and logarithmic domains. Δ LRM =C LM -C RM d LRM =log 10 |C LM- C RM (20)

[0076] The final feature used by UNCLR classification and XTALK detection in LRTD stereo modes is calculated as part of the inter-channel correlation analysis operation 151 / 152 and reflects the opening of the inter-channel correlation function. This is calculated as follows:

[0077]

number

[0078] Here, the superscript [-2] indicates a reference to the frame two frames prior to the current frame.

[0079] 3. Time-domain (TD) preprocessing In LRTD stereo mode, there is no mono downmix, and both the left and right channels of the input stereo audio signal 190 are analyzed by time-domain preprocessing operations, respectively, to extract features. Specifically, the left channel of the stereo audio signal 190 is analyzed by operation 153 for time-domain preprocessing, and the right channel by operation 154 for time-domain preprocessing. To perform operations 153 and 154, the feature extraction device (not shown) comprises the respective time-domain preprocessing units 103 and 104, as shown in Figure 1. Operations 153 and 154 and the corresponding preprocessing units 103 and 104 are similar and will be described together.

[0080] The time-domain preprocessing operation 153 / 154 performs several sub-operations to generate specific parameters used as extracted features for UNCLR classification and XTALK detection. Such sub-operations include the following, namely, - Spectrum analysis, - Linear prediction analysis, - Open-loop pitch estimation, - Voice activity detection (VAD), - Background noise estimation, and, - Frame error concealment (FEC) classification may be available.

[0081] The time-domain preprocessing device 103 / 104 performs linear prediction analysis using the Levinson-Durbin algorithm. The output of the Levinson-Durbin algorithm is a set of linear prediction coefficients (LPC). The Levinson-Durbin algorithm is an iterative method, and the total number of iterations in the Levinson-Durbin algorithm can be denoted as M. In each i-th iteration, where i = 1, .., M, the residual error energy

[0082]

Equation

[0083] is calculated.

[0084] In this disclosure, as a non-limiting exemplary implementation, it is assumed that the Levinson-Durbin algorithm is performed with M = 16 iterations. The difference in the residual error energy between the left channel and the right channel of the input stereo audio signal 190 is used as a feature for XTALK detection in the LRTD stereo mode. The difference in the residual error energy can be calculated as follows.

[0085]

Equation

[0086] Here, the subscripts L and R are added to indicate the left and right channels of the input stereo audio signal 190, respectively. In this non-limiting embodiment, features (d LPC13 The residual energy from the 14th iteration is used instead of the last iteration, because this iteration has been experimentally found to have the largest characteristic potential for the UNCLR classification. Further information on the Levinson-Durbin algorithm and details on the calculation of residual error energy can be found, for example, in reference [1].

[0087] The LPC coefficients estimated using the Levinson-Durbin algorithm are converted to line spectral frequencies LSF(i), i=0, ..., M-1. The sum of the LSF values ​​can be used as an estimate of the envelope gravity point of the input stereo sound signal 190. The difference between the sum of LSF values ​​in the left channel and the sum of LSF values ​​in the right channel contains information about the similarity between the two channels. For this reason, this difference is used as a feature in XTALK detection in LRTD stereo mode. The difference between the sum of LSF values ​​in the left channel and the sum of LSF values ​​in the right channel can be calculated using the following relationship:

[0088]

number

[0089] Additional information regarding the conversion from LPC to LSF, as mentioned earlier, can be found, for example, in reference [1].

[0090] The time-domain preprocessor 103 / 104 performs open-loop pitch estimation and uses an autocorrelation function from which the difference in open-loop pitch between the left channel (L) and the right channel (R) is calculated. The difference in open-loop pitch between the left channel (L) and the right channel (R) can be calculated using the following relationship:

[0091]

number

[0092] Here, T [k] This is the open-loop pitch estimate for the k-th segment of the current frame. In this disclosure, as a non-limiting illustrative example, it is assumed that the open-loop pitch analysis is performed in three adjacent half-frames (segments) indexed k=1, 2, and 3, where two segments are located in the current frame and one segment is located in the second half of the previous frame. In addition to using a different number of segments, it is possible to use different segment lengths and overlaps. Additional information on open-loop pitch estimation can be found, for example, in reference [1].

[0093] The difference between the maximum autocorrelation values ​​(determined by the autocorrelation function above) (speech) between the left and right channels of the input stereo sound signal 190 is also used as a feature by XTALK detection in LRTD stereo mode. The difference between the maximum autocorrelation value of the left channel and the maximum autocorrelation value of the right channel can be calculated using the following relationship:

[0094]

number

[0095] Here, ν [k] This represents the maximum autocorrelation value of the left (L) channel and the right (R) channel in the k-th half frame.

[0096] Ambient noise estimation is part of the Speech Activity Detection (VAD) detection algorithm (see reference [1]). Specifically, ambient noise estimation uses an active / inactive signal detector (not shown) that relies on a set of features some of which are used by UNCLR classification and XTALK detection. For example, the active / inactive signal detector (not shown) uses the transient parameter f of the left channel (L) and right channel (R). staThis is generated as a measure of spectral stability. The difference in nonstationarity between the left and right channels of the input stereo sound signal 190 is used as a feature by XTALK detection in LRTD stereo mode. The difference in nonstationarity between the left (L) channel and the right (R) channel can be calculated using the following relationship: d sta =|f sta,L -f sta,R (26)

[0097] The active / inactive signal detection device (not shown) uses correlation map parameter C map This relies on harmonic analysis, which includes the following: The correlation map is a measure of the timbre stability of the input stereo sound signal 190 and is used by UNCLR classification and XTALK detection. The difference between the correlation map of the left (L) channel and the correlation map of the right (R) channel is used as a feature by XTALK detection in LRTD stereo mode and is calculated using, for example, the following relationship: d cmap =|C map,L -C map,R (27)

[0098] Finally, an active / inactive signal detection device (not shown) performs regular measurements of spectral diversity and noise characteristics in each frame. These two parameters are also used as features by UNCLR classification and XTALK detection in LRTD stereo mode. Specifically, (a) the difference in spectral diversity between the left channel (L) and the right channel (R) can be calculated as follows: d sdiv =|log(S div,L )-log(S div,R )| (28) Here, S div (b) represents a measure of spectral diversity in the current frame, and the difference in noise characteristics between the left channel (L) and the right channel (R) can be calculated as follows: d nchar =|log(n char,L )-log(nchar,R )| (29) Here, n char This represents the measurement of noise characteristics in the current frame. For details on correlation maps, transients, spectral diversity, and the calculation of noise characteristic parameters, refer to [1].

[0099] The ACELP (Algebraic Code-Excited Linear Prediction) core encoder, part of the stereo audio signal encoding device 100, has specific settings for encoding voiceless sounds as described in reference [1]. The use of these settings is conditioned by several factors, including a measure of rapid energy increases in short segments within the current frame. The settings for voiceless coding in the ACELP core encoder are applied only when there are no rapid energy increases within the current frame. By comparing the measurement of rapid energy increases in the left channel with the measurement of rapid energy increases in the right channel, it is possible to determine the start position of the crosstalk segment. Rapid energy increases are defined as E as described in the 3GPP EVS codec (reference [1]). d It can be calculated in the same way as the parameters. The difference in the rapid energy increase between the left channel (L) and the right channel (R) can be calculated using the following relationship: d dE =|log(E d,L )-log(E d,R )| (30) Here, the subscripts L and R are added to indicate the left and right channels of the input stereo audio signal 190, respectively.

[0100] The time-domain preprocessor 103 / 104 and preprocessing operations 153 / 154 use an FEC classification module that includes a state machine for FEC technology. The FEC class in each frame is selected from a predetermined class based on a function of merit. The difference between the FEC classes selected in the current frame for the left channel (L) and right channel (R) is used as a feature by XTALK detection in LRTD stereo mode. However, for the purpose of such classification and detection, the FEC classes may be limited as follows:

[0101]

number

[0102] Here, t class This is the selected FEC class in the current frame. Therefore, the FEC class is limited to voiced and unvoiced sounds only. The difference between the class in the left channel (L) and the class in the right channel (R) can be calculated as follows: d class =|t class,L -t class,R (32)

[0103] For further details on the FEC classification, see [1].

[0104] The time-domain preprocessor units 103 / 104 and preprocessing operations 153 / 154 perform speech / music classification and the corresponding speech / music classification device. This speech / music classification makes binary decisions in each frame according to power spectral divergence and power spectral stability. The difference in power spectral divergence between the left channel (L) and the right channel (R) is calculated using, for example, the following relationship: d Pdiff =|P diff,L -P diff,R (33) Here, P diffThis represents the power spectral divergence in the left (L) and right (R) channels in the current frame, and the difference in power spectral stability between the left (L) and right (R) channels is calculated using, for example, the following relationship: d Psta =|P sta,L -P sta,R (34) Here, P sta This represents the power spectral stability of the left (L) and right (R) channels in the current frame.

[0105] Reference [1] provides details on the power spectral divergence and power spectral stability calculated in speech / music classification.

[0106] 4. DFT Stereo Parameters A method 150 for encoding a stereo audio signal 190 includes an operation 155 for calculating the Fast Fourier Transform (FFT) of the left channel (L) and the right channel (R). To perform operation 155, a device 100 for encoding a stereo audio signal 190 includes an FFT transform calculator 105.

[0107] The feature extraction operation (not shown) includes an operation 156 for calculating DFT stereo parameters. To perform operation 156, the feature extraction device (not shown) includes a DFT stereo parameter calculator 106.

[0108] In DFT stereo mode, the conversion calculator 105 uses FFT conversion to convert the left channel (L) and right channel (R) of the input stereo sound signal 190 into the frequency domain.

[0109] The complex spectrum of the left channel (L) is shown as follows:

[0110]

number

[0111] The complex spectrum of the right channel (R) is shown as follows:

[0112]

number

[0113] Here, k=0, ..., N FFT -1 is the exponent of the frequency bin, N FFT is the length of the FFT transformation. For example, when the sampling rate of the input stereo sound signal is 32 kHz, the DFT stereo parameter calculation device 106 calculates the complex spectrum for a 40 ms window, and N FFT This yields 1280 samples. Next, the complex cross-channel spectrum can be calculated, in a non-restrictive embodiment, using the following relationship:

[0114]

number

[0115] The asterisk superscript indicates the complex conjugate. The complex mutual channel spectrum can be decomposed into a real part and an imaginary part using the following relationship:

[0116]

number

[0117] By using the decomposition of the real and imaginary parts, the absolute magnitude of the complex cross-channel spectrum can be expressed as follows:

[0118]

number

[0119] By summing the absolute magnitudes of the complex cross-channel spectra for each frequency bin using the following relationship, the DFT stereo parameter calculator 106 obtains the overall absolute magnitude of the complex cross-channel spectra.

[0120]

number

[0121] The energy spectra of the left channel (L) and the right channel (R) can be expressed as follows:

[0122]

number

[0123] The total energy of both the left channel (L) and the right channel (R) can be obtained by summing the energy spectra of the left channel (L) and the right channel (R) with respect to the frequency bin using the following relationship.

[0124]

number

[0125] UNCLR classification and XTALK detection in DFT stereo modes use the overall absolute magnitude of the complex cross-channel spectrum as one of their features, but not in the direct form defined earlier, but in a normalized energy form in the logarithmic domain, as expressed, for example, using the following relationship.

[0126]

number

[0127] The DFT stereo parameter calculation device 106 can calculate the monaural downmix energy using, for example, the following relationship:

[0128]

number

[0129] The inter-channel level difference (ILD) is a feature used in UNCLR classification and XTALK detection in DFT stereo modes because it contains information about the angle at which the main sound enters. For the purposes of UNCLR classification and XTALK detection, the inter-channel level difference (ILD) can be expressed in the form of a gain coefficient. The DFT stereo parameter calculator 106 calculates the inter-channel level difference (ILD) gain using, for example, the following relationship:

[0130]

number

[0131] The inter-channel phase difference (IPD) contains information that allows the listener to infer the direction of the incoming sound signal. The DFT stereo parameter calculator 106 calculates the inter-channel phase difference (IPD) using, for example, the following relationship:

[0132]

number

[0133] Herein lies the following:

[0134]

number

[0135] The derivative of the inter-channel phase difference (IPD) with respect to the previous frame is calculated using, for example, the following relationship:

[0136]

number

[0137] The superscript n is used to indicate the current frame, and the superscript n-1 is used to indicate the previous frame. Finally, the computing device 106 calculates the IPD gain as the phase-aligned (IPD=0) downmix energy (numerator of relation (47)) and the monaural downmix energy E M It can be calculated as a ratio between the energy of [the object] and [the other object].

[0138]

number

[0139] IPD gain g IPD_lin The value is limited to the interval <0, 1>. If the value exceeds the upper threshold of 1.0, the IPD gain value from the previous frame is substituted for it. UNCLR classification and XTALK detection in DFT stereo mode use the IPD gain in the logarithmic domain as a feature. The computing device 106 determines the IPD gain in the logarithmic domain using, for example, the following relationship: g IPD =log(1-g IPD_lin ) (48)

[0140] The inter-channel phase difference (IPD) can also be expressed in the form of an angle, which is used as a feature by UNCLR classification and XTALK detection in DFT stereo modes, and is calculated as shown below, for example.

[0141]

number

[0142] The side channel can be calculated as the difference between the left channel (L) and the right channel (R). The monaural downmix energy E can be calculated using the following relationship. MBy calculating the ratio of the absolute value of the energy (E L -E R ) of this difference to, it is possible to represent the gain of the side channel.

[0143]

Number

[0144] Gain g side becomes larger, the difference between the energy of the left channel (L) and the energy of the right channel (R) becomes larger. The gain g of the side channel side is limited to the interval <0.01, 0.99>. Values outside this range are restricted.

[0145] The phase difference between the left channel (L) and the right channel (R) of the input stereo audio signal 190 can also be analyzed from the predicted gain calculated using, for example, the following relationship. g pred_lin =(1 - g side )E L +(1 + g side )E R -2|X LR | (51) Here, the value of the predicted gain g pred_lin is limited to the interval <0, ∞>, that is, limited to positive values. The above formula for g pred_lin captures the difference between the cross-channel spectrum (X LR ) energy and the monaural downmix energy E M =E L +E R +2|X LR |. The computing device 106 converts this g pred_lin to the logarithmic domain using, for example, relationship (52) for use as a feature in UNCLR classification and XTALK detection in DFT stereo mode. g pred =log(g pred_lin +1) (52)

[0146] The computing device 106 also uses the per-bin channel energy of relation (39) to calculate the average energy of inter-channel coherence (ICC) that forms a queue for determining the difference between the left channel (L) and the right channel (R) that cannot be captured by the inter-channel time difference (ITD) and the inter-channel phase difference (IPD) described later. First, the computing device 106 calculates the total energy of the cross-channel spectrum using, for example, the following relation. E X =Re(X LR ) 2 +IM(X LR ) 2 (53)

[0147] To represent the average energy of inter-channel coherence (ICC), it is useful to calculate the following parameters.

[0148]

Number

[0149] Next, the average energy of inter-channel coherence (ICC) is used as a feature by UNCLR classification and XTALK detection in DFT stereo mode and can be expressed as follows.

[0150]

Number

[0151] If the inner term is less than 1.0, the value of the average energy E coh is set to 0. Another possible interpretation of inter-channel coherence (ICC) is the side-mono energy ratio calculated as follows.

[0152]

Number

[0153] Finally, the computing device 106 calculates the ratio r of the maximum inter-channel amplitude product to the minimum inter-channel amplitude product used for UNCLR classification and XTALK detection. pp This determines the feature used as a feature by UNCLR classification and XTALK detection in DFT stereo modes. This feature is calculated using, for example, the following relationship:

[0154]

number

[0155] Here, the inter-channel amplitude product is defined as follows:

[0156]

number

[0157] The parameter used for stereo signal reproduction is the inter-channel time difference (ITD). In DFT stereo mode, the DFT stereo parameter calculator 106 estimates the inter-channel time difference (ITD) from a generalized cross-channel correlation function (GCC-PHAT) with phase difference. The inter-channel time difference (ITD) corresponds to the estimated time delay of arrival (TDOA). The GCC-PHAT function is a robust method for estimating the inter-channel time difference (ITD) in reverberant signals. The GCC-PHAT is calculated using, for example, the following relationship:

[0158]

number

[0159] Here, IFFT represents the inverse Fast Fourier Transform.

[0160] Next, the inter-channel time difference (ITD) is estimated from the GCC-PHAT function using, for example, the following relationship:

[0161]

number

[0162] Here, d is the time lag in the sample corresponding to a time delay in the range of -5ms to +5ms. ITD The maximum value of the corresponding GCC-PHAT function is used as a feature by UNCLR classification and XTALK detection in DFT stereo modes and can be extracted using the following relationship:

[0163]

number

[0164] In a single-talk scenario, there is typically a single dominant peak in the GCC-PHAT function corresponding to the inter-channel time difference (ITD). However, in a crosstalk situation where two speakers are positioned on opposite sides of the capture microphone, there are typically two dominant peaks positioned at a distance from each other. Figure 2 illustrates this situation. More precisely, using an example of non-restrictive illustration, Figure 2 is a plan view of a crosstalk situation where two opposing speakers S1 and S2 are captured by a pair of hypercardioid microphones M1 and M2, and Figure 3 is a graph showing the locations of the two dominant peaks in the GCC-PHAT function.

[0165] First peak G ITD The amplitude is calculated using relation (61) and its position d ITD This is calculated using relation (60). The amplitude of the second peak can be located by searching for the second maximum value of the GCC-PHAT function in the opposite direction to the first peak. More specifically, the direction s of the search for the second peak. ITD The position of the first peak is d ITD It is determined by the sign. s ITD =sgn(d ITD ) (62) Here, sgn(.) is the sign function.

[0166] Next, the DFT stereo parameter calculator 106 uses, for example, the following relationship to calculate the direction s ITD The second maximum value of the GCC-PHAT function at the (second highest peak) can be extracted.

[0167]

number

[0168] As a non-limiting embodiment, the threshold thr xt =8 indicates the start of the second peak in the GCC-PHAT function (d ITD Ensure that the search is conducted at a distance of at least 8 samples from (d=0). As far as crosstalk (XTALK) detection is being considered, this means that any potential secondary speaker in the situation must be at a specific minimum distance away from both the first “dominant” speaker and the midpoint (d=0).

[0169] The location of the second highest peak in the GCC-PHAT function is calculated using relation (63) by replacing the maxim(.) function with the argmaxim(.) function. The location of the second highest peak in the GCC-PHAT function is d ITD2 It is shown as follows.

[0170] The relationship between the amplitude of the first peak and the amplitude of the second highest peak in the GCC-PHAT function is used as a feature by XTALK detection in DFT stereo modes and can be evaluated using the following ratio:

[0171]

number

[0172] Ratio r GITD12While it possesses high discriminatory power, to use it as a feature, XTALK detection eliminates accidental false alarms resulting from the limited temporal resolution applied during frequency conversion in DFT stereo modes. This is achieved by using, for example, the following relationship to determine the proportion r in the current frame. GITD12 This can be done by multiplying the value by the same proportion as the value from the previous frame. r GITD12 ←r GITD12 (n)·r GITD12 (n-1) (65) The exponent n is added to indicate the current frame, and the exponent n-1 is added to indicate the previous frame. For brevity, the parameter name r is used. GITD12 This is reused to identify the output parameters.

[0173] The amplitude of the second highest peak alone constitutes an indicator of secondary speaker intensity in the context. GITD12 Similarly, value G ITD2 The accidental, random "spurts" are reduced, for example, using the following relationship (66) to obtain other features used by XTALK detection in DFT stereo modes. m ITD2 =G ITD2 (n)·G ITD2 (n-1) (66)

[0174] Other features used in XTALK detection in DFT stereo mode include, for example, the position of the second highest peak in the current frame relative to the previous frame, d, which is calculated using the following relationship. ITD2 It is the difference of (n). Δ ITD2 =|d ITD2 (n)-d ITD2 (n-1)| (67)

[0175] 5. Downmix and Inverse Fast Fourier Transform (IFFT) In DFT stereo mode, the method 150 for encoding a stereo audio signal includes an operation 157 for downmixing the left channel (L) and right channel (R) of the stereo audio signal 190, and an operation 158 for calculating the IFFT transform of the downmixed signal. To perform operations 157 and 158, the device 100 for encoding the stereo audio signal 190 comprises a downmixing device 107 and an IFFT transform calculator 108.

[0176] The downmixing device 107 downmixes the left channel (L) and right channel (R) of a stereo audio signal to a mono channel (M) and a side channel (S), for example, as described in reference [6], the entire contents of which are incorporated herein by reference.

[0177] Next, the IFFT conversion calculator 108 calculates the IFFT conversion of the downmixed monaural channel (M) from the downmixing device 107 in order to generate the time-domain monaural channel (M) to be processed in the TD preprocessor 109. The IFFT conversion used by the calculator 108 is the inverse of the FFT conversion used by the calculator 105.

[0178] 6. TD preprocessing in DFT stereo mode In DFT stereo mode, the feature extraction operation (not shown) includes a TD preprocessing operation 159 for extracting features used in UNCLR classification and XTALK detection. To perform operation 159, the feature extraction device (not shown) comprises a TD preprocessing device 109 that responds to a mono channel (M).

[0179] 6.1 Speech Activity Detection UNCLR classification and XTALK detection use the Voice Activity Detection (VAD) algorithm. In LRTD stereo mode, the VAD algorithm is performed separately for the left channel (L) and right channel (R). In DFT stereo mode, the VAD algorithm is performed on the downmixed mono channel (M). The output of the VAD algorithm is the binary flag f VAD VAD flag f VAD It is too conservative and has long hysteresis, making it unsuitable for UNCLR classification and XTALK detection. This hinders quick switching between LRTD stereo mode and DFT stereo mode, for example, at the end of a heated discussion or during short pauses in the middle of an utterance. Also, the VAD flag f VAD It is sensitive to small changes in the input stereo sound signal 190. This leads to false alarms in crosstalk detection and inaccurate selection of stereo modes. Therefore, UNCLR classification and XTALK detection use an alternative measure of speech activity detection based on changes in relative frame energy. For more information on the VAD algorithm, see [1].

[0180] 6.1.1 Relative Flame Energy UNCLR classification and XTALK detection are performed using relation (2) to obtain the absolute energy E of the left channel (L). L and the absolute energy E of the right channel (R) R The maximum average energy of the input stereo audio signal can be calculated in the logarithmic domain using, for example, the following relationship:

[0181]

number

[0182] Here, the exponent n is added to indicate the current frame, and N=160 is the length of the current frame (length of 160 samples). The value of the maximum average energy in the logarithmic domain E ave (n) is limited to the interval <0; ∞>.

[0183] Next, the relative frame energy of the input stereo sound signal is calculated using, for example, the following relationship, to obtain the maximum average energy E ave This can be calculated by linearly mapping (n) to the interval <0; 0,9>.

[0184]

number

[0185] Here, E up (n) is the relative flame energy E rl This shows an upper bound on (n), E dn (n) is the relative flame energy E rl This shows a lower bound on (n), where the exponent n represents the current frame.

[0186] Relative flame energy E rl The boundary of (n) is the noise update counter a, which is part of the noise estimation module of the TD preprocessor 103, 104, and 109. En (n) is updated in each frame. For additional information about this counter, see [1]. Counter a En The purpose of (n) is to indicate that the background noise level in each channel in the current frame may be updated. This situation is indicated by counter a En This occurs when the value of (n) is zero. As a non-restrictive example, the counter a in each channel En (n) is initialized to 6 and incremented or decremented each frame by a lower threshold of 0 and an upper threshold of 6.

[0187] In LRTD stereo mode, noise estimation is performed independently for the left channel (L) and the right channel (R). Two noise update counters are used for each of the left channel (L) and right channel (R). En,L (n) and a En,RLet (n) be denoted as (n). Next, the two counters can be combined into a single binary parameter in the following relationship:

[0188]

number

[0189] In DFT stereo mode, noise estimation is performed on the downmixed mono channel (M). The noise update counter in the mono channel is set to a En,M This is denoted as (n). The binary output parameters are calculated by the following relationship:

[0190]

number

[0191] UNCLR classification and XTALK detection are performed using relative flame energy E rl (n) Lower bound E dn (n) or upper bound E up To enable updating (n), the binary parameter f En Use (n). Parameter f En When (n) is equal to zero, the lower bound E dn (n) is updated. Parameter f En When (n) is equal to 1, the upper bound E up (n) is updated.

[0192] Relative flame energy E rl (n) Upper bound E up (n) is, for example, the parameter f using the following relationship. En It is updated in frames where (n) is equal to 1.

[0193]

number

[0194] Here, the exponent n represents the current frame, and the exponent n-1 represents the previous frame.

[0195] The first and second rows in relation (71) represent the slower update and the faster update, respectively. Therefore, by using relation (71), we can obtain the upper bound E up (n) is updated more quickly when the energy increases.

[0196] Relative flame energy E rl (n) Lower bound E dn (n) is, for example, the parameter f using the following relationship. En It is updated in frames where (n) is equal to 0. E dn (n) = 0.9E dn (n-1)+0.1E ave (n) (72) Here, the lower threshold is 30.0. Upper bound E up The value of (n) is the lower bound E dn If it gets too close to (n), it will be modified as shown below, for example. E up (n) = E dn (n) + 20.0, if E up (n) <E dn (n) + 20.0 (73)

[0197] 6.1.2 Estimating Alternative VAD Flags UNCLR classification and XTALK detection are based on the relative flame energy E calculated in relation (71) as the basis for calculating an alternative VAD flag. rl Use a variation of (n). Set the alternative VAD flag in the current frame to f xVAD (n) is shown as an alternative VAD flag f. xVAD (n) is the VAD flag generated in the noise estimation module of the TD preprocessor 103 / 104 in the case of LRTD stereo mode, or the VAD flag f generated in the TD preprocessor 109 in the case of DFT stereo mode. VAD The relative flame energy E rl The auxiliary binary parameter f reflects the change in (n). ErlIt is calculated by combining it with (n).

[0198] First, relative flame energy E rl (n) is averaged over 10 segments of the previous frame, for example, using the following relationship:

[0199]

number

[0200] Here, p is the exponent of the mean. The auxiliary binary parameters are set according to the following logic, for example:

[0201]

number

[0202] In LRTD stereo mode, the alternative VAD flag f xVAD (n) is the VAD flag f in the left channel (L), for example, using the following relationship. VAD,L (n) and the VAD flag f in the right channel (R) VAD,R (n) and the auxiliary binary parameter f Erl It is calculated using a logical association with (n). f xVAD (n) = (f VAD,L (n) OR f VAD,R (n) AND f Erl (n) (76)

[0203] In DFT stereo mode, the alternative VAD flag f xVAD (n) is the VAD flag f in the downmixed mono channel (M), for example, using the following relationship. VAD,M (n) and the auxiliary binary parameter f Erl It is calculated using a logical association with (n). f xVAD (n) = f VAD,M (n) AND f Erl (n) (77)

[0204] 6.2 Stereo Silence Flag In DFT stereo mode, it is also convenient to compute discrete parameters that reflect low-level downmixed mono channels (M). Such parameters, called stereo silence flags, can be computed, for example, by comparing the average level of the active signal to a specific predetermined threshold. For example, the long-term active audio level computed within the VAD algorithm of the TD preprocessor 109.

[0205]

number

[0206] However, it can be used as a basis for calculating the stereo silence flag.

[0207] For more information about the VAD algorithm, see [1].

[0208] Next, the stereo silence flag can be calculated using the following relationship:

[0209]

number

[0210] Here, E M (n) is the absolute energy of the downmixed mono channel (M) in the current frame. Stereo silence flag f sil (n) is limited to the interval <0; ∞>.

[0211] 7. Classification of Uncorrelated Stereo Content (UNCLR) UNCLR classification in LRTD and DFT stereo modes is based on a logistic regression (LogReg) model (see reference [9]). The LogReg model is trained separately for LRTD and DFT stereo modes in a large labeled database consisting of correlated and uncorrelated stereo signal samples. Uncorrelated stereo training samples are artificially created by combining randomly selected mono samples. The following stereo situations are simulated with such artificial mixes of mono samples. - Speaker A in the left channel and speaker B in the right channel (or vice versa). - Speaker A in the left channel and the sound of music in the right channel (or vice versa). - Speaker A in the left channel and noise in the right channel (or vice versa). - Speaker A in the left or right channel, and background noise in both channels. - Speaker A in the left or right channel, and background music in both channels.

[0212] In non-restrictive implementations, monaural samples are selected from the AT&T monaural clean speech database sampled at 16 kHz. Only active segments are extracted from the monaural samples using any convenient VAD algorithm, such as the 3GPP EVS codec VAD algorithm described in reference [1]. The total size of the stereo training database with uncorrelated content is approximately 240 MB. Level adjustment is not applied to the monaural signals before they are combined to form a stereo sound signal. Level adjustment is applied only after this purpose. The level of each stereo sample is normalized to -26 dBov based on a passive monaural downmix. Thus, the inter-channel level difference is not changed and remains the primary factor determining the position of the dominant speaker in the stereo situation.

[0213] Correlated stereo training samples are obtained from various actual recordings of stereo sound signals. The total size of the training database with correlated stereo content is approximately 220 MB. Correlated stereo training samples include samples from the following situations shown in Figure 4, which shows a plan view from above of the stereo situation setting for actual recordings in a non-restrictive implementation. - Speaker S1 at position P1, closer to microphone M1, and speaker S2 at position P2, closer to microphone M6. - Speaker S1 at position P4, closer to microphone M3, and speaker S2 at position P3, closer to microphone M4. - Speaker S1 at position P6, closer to microphone M1, and speaker S2 at position P5, closer to microphone M2. - In the stereo recording of M1-M2, only speaker S1 at position P4 is recorded. - In the stereo recording of M3-M4, only speaker S1 at position P4 is included.

[0214] The total size of the training database is as follows: N T =N UNC +N CORR (79) Here, N UNC N is the size of the set of uncorrelated stereo training samples. CORR is the size of the set of correlated stereo training samples. Labels are assigned manually, for example, using the following simple rules:

[0215]

number

[0216] Here, Ω UNC Ω is the set of features of the entire uncorrelated training database. CORR This is the entire set of features in the correlated training database. In a non-restrictive implementation of this example, inactive frames (VAD=0) are discarded from the training database.

[0217] Each frame in the uncorrelated training database is labeled "1," and each frame in the correlated training database is labeled "0." Inactive frames with VAD=0 are ignored during the training process.

[0218] 7.1 UNCLR Classification in LRTD Stereo Mode In LRTD stereo mode, the method 150 for encoding the stereo audio signal 190 includes an operation 161 for classifying uncorrelated stereo content (UNCLR). To perform operation 161, the device 100 for encoding the stereo audio signal 190 comprises an UNCLR classifier 111.

[0219] The operation of UNCLR classification in LRTD stereo mode 161 is based on a logistic regression (LogReg) model. The following features are extracted by operating device 100 for encoding (stereo codec) stereo audio signals in both the uncorrelated stereo training database and the correlated stereo training database, namely, - The maximum position k of the inter-channel cross-correlation function max (Relationship (11)) - Instantaneous target gain g t (Relationship (13)), - Logarithm P of the absolute value of the inter-channel correlation function at zero time lag LR (Relationship (14)) - Side-monaural energy ratio r SM (Relationship (15)) - The difference d between the maximum and minimum of the point product between the left / right channel and the mono signal. mmLR (Relationship (19)) - The absolute difference d between the point product of the left channel (L) and the monaural signal (M) in the logarithmic domain and the point product of the right channel (R) and the monaural signal (M). LRM (Relationship (20)) - The zero-time-lag value R0 of the cross-channel correlation function (relation (5)), and, - Open RR of the inter-channel correlation function (relation (21)) However, it is used in UNCLR classification operation 161.

[0220] Overall, the UNCLR classifier 111 uses the number F=8 feature.

[0221] Prior to the training process, the UNCLR classifier 111 includes a normalization device (not shown) that performs a sub-operation (not shown) of normalizing the set of features by removing the mean of the set and increasing or decreasing it to the unit variance. For this purpose, the normalization device (not shown) uses, for example, the following relationship:

[0222]

number

[0223] Here, f i,raw represents the i-th feature of the set, f i This shows the normalized i-th feature,

[0224]

number

[0225] This represents the overall average of the i-th feature across the training database, σ fi This represents the overall change in the i-th feature across the training database.

[0226] The LogReg model used by the UNCLR classifier 111 takes real-valued features as input vectors and makes predictions about the likelihood of inputs belonging to an uncorrelated class (class 0) that indicates uncorrelated stereo content (UNCLR). To this end, the UNCLR classifier 111 includes a score calculator (not shown) that performs a sub-operation (not shown) to calculate a score representing uncorrelated stereo content in the input stereo sound signal 190. The score calculator (not shown) calculates the real-valued output of the LogReg model in the form of a linear regression of extracted features, which can be expressed using the following relationship: y p =b0+b i f i +...+b F f F (82) Here, b i This shows the counts of the LogReg model, and f i The individual features are shown, followed by the real-valued output y. p This can be converted into a probability using, for example, the following logistic function.

[0227]

number

[0228] The probability p (class = 0) takes a real value between 0 and 1. Intuitively, a probability closer to 1 means that the current frame is largely stereo uncorrelated, that is, it has uncorrelated stereo content.

[0229] The objective of the learning process is to determine the coefficient b based on the training data. iThe goal is to find the best value for F, i=1, ... The coefficient is found iteratively by minimizing the difference between the predicted output p (class=0) and the true output y, based on the training database. The UNCLR classifier 111 in LRTD stereo mode is trained using an iterative method of stochastic gradient descent (SGD), for example, as described in reference

[10] , the entire content of which is incorporated herein by reference.

[0230] Binary classification is possible by comparing a probabilistic output p (class=0) with a fixed threshold such as 0.5. However, for the purpose of UNCLR classification in LRTD stereo modes, the probabilistic output p (class=0) is not used. Instead, the raw output y of the LogReg model is used. p However, it is further processed as shown below.

[0231] The score calculator (not shown) of the UNCLR classifier 111 uses a function such as the one shown in Figure 5 to calculate the raw output y of the LogReg model. p First, we normalize the output. Figure 5 is a graph showing the normalization function applied to the raw output of the LogReg model in UNCLR classification in LRTD stereo modes.

[0232] The normalization function in Figure 5 can be mathematically written as follows:

[0233]

number

[0234] 7.1.1 LogReg output weighting based on relative frame energy Next, the score calculator (not shown) of the UNCLR classifier 111 uses, for example, the following relationship to calculate the normalized output y of the LogReg model. pn (n) is weighted by the relative frame energy. scr UNCLR (n) = ypn (n)·E rl (n) (85) Here, E rl (n) is the relative frame energy described by relation (69). The normalized and weighted output scr of the LogReg model. UNCLR (n) is referred to as the “score” mentioned above, and it represents or is uncorrelated with the stereo content in the input stereo sound signal 190.

[0235] 7.1.2 Rising Edge Detection score scr UNCLR (n) cannot be directly used by the UNCLR classifier 111 for UNCLR classification because it contains accidental short-term "peaks" resulting from an incomplete statistical model. These peaks can be filtered out by a simple averaging filter, such as a first-order IIR filter. Unfortunately, the application of such an averaging filter usually blurs the rising edges that represent the transition between stereo correlated and stereo uncorrelated content in the input stereo sound signal 190. To preserve the rising edges, the smoothing process (application of an averaging IIR filter) is reduced or even stopped when rising edges are detected in the input stereo sound signal 190. Detection of rising edges in the input stereo sound signal 190 is based on the relative frame energy E rl This is done by analyzing the opening of (n).

[0236] Relative flame energy E rl The rising edge of (n) can be found, for example, by filtering the relative frame energy through a cascade of identical primary resistor-capacitor (RC) filters with P=20, each having the following configuration:

[0237]

number

[0238] The constants a0, a1, and b1 are selected such that the following relationship exists:

[0239]

number

[0240] Therefore, a single parameter τ edge This is used to control the time constant of each RC filter. Experimentally, good results were obtained with τ edge It is known that this can be achieved with =0.3. Relative flame energy E of a cascaded RC filter with P=20 rl The filtration of (n) can be carried out as follows:

[0241]

number

[0242] Here, the superscripts p=0, 1,..., P-1 are added to indicate the stages in the cascaded RC filter. The output of the cascaded RC filter is equal to the output of the last stage, i.e., the output from the following relationship:

[0243]

number

[0244] The reason for using a cascade of first-order RC filters instead of a single higher-order RC filter is to reduce computational complexity. A cascade of multiple first-order RC filters acts as a low-pass filter with a relatively sharp step function. A cascade of multiple first-order RC filters has a relative flame energy E rl When used in (n), it attempts to obscure accidental short-term spikes while preserving slower but important transitions such as the start and lag. Relative flame energy E rl The rising edge of (n) can be quantified by calculating the difference between the relative frame energy and the filtered output, for example, using the following relationship: f edge (n) = 0.95 - 0.05 (E rl (n)-E f (n)) (90)

[0245] term f edge (n) is limited to the interval <0,9; 0,95>. The score calculator (not shown) of the UNCLR classifier 111 uses, for example, the following relation to generate a normalized, weighted, and smoothed score (output of the LogReg model): f edge The normalized and weighted output scr of the LogReg model is obtained using an IIR filter with (n) as the forgetting factor. UNCLR Smooth (n). wscr UNCLR (n) = f edge (n)·wscr UNCLR (n-1)+(1-f edge (n) · scr UNCLR (n) (91)

[0246] 7.2 UNCLR Classification in DFT Stereo Modes In DFT stereo mode, the method 150 for encoding the stereo audio signal 190 includes an operation 163 for classifying uncorrelated stereo content (UNCLR). To perform operation 163, the device 100 for encoding the stereo audio signal 190 comprises an UNCLR classifier 113.

[0247] The UNCLR classification in DFT stereo modes is performed in the same way as the UNCLR classification in LRTD stereo modes, as described earlier. More precisely, the UNCLR classification in DFT stereo modes is also based on a logistic regression (LogReg) model. For brevity, the symbols / names indicating specific parameters and associated mathematical notations from the UNCLR classification in LRTD stereo modes are also used for DFT stereo modes. Subscripts are added to avoid ambiguity when referring to the same parameter from multiple parts simultaneously.

[0248] The following features are extracted by operating device 100 for encoding (stereo codecs) stereo audio signals in both the stereo uncorrelated training database and the stereo correlated training database, namely, - ILD gain g ILD (Relation 43) - IPD gain g IPD (Relationship 48), - IPD rotation angle φ rot (Relationship 49) - Predicted gain g pred (Relationship 52), - Average energy E of inter-channel coherence coh (Relationship 55)) - The ratio of the product of the maximum inter-channel amplitude to the product of the minimum inter-channel amplitude r PP (Relationship 57)) - The magnitude of the overall cross-channel spectrum f X (Relation 41), and - Maximum value of the GCC-PHAT function G ITD (Relationship 61)) However, it is used by the UNCLR classification device 113 for UNCLR classification in DFT stereo mode.

[0249] Overall, the UNCLR classifier 113 uses the number F=8 feature.

[0250] Prior to the training process, the UNCLR classifier 113 includes a normalization device (not shown) that performs a sub-operation (not shown) of normalizing the set of features by removing the mean of the set and increasing or decreasing it to the unit variance. For this purpose, the normalization device (not shown) uses, for example, the following relationship:

[0251]

number

[0252] Here, f i,raw This indicates the i-th feature of the set,

[0253]

number

[0254] This represents the overall average of the i-th feature across the entire training database, σ fi This represents the overall change in the i-th feature across the entire training database.

[0255] Overall average used in relation (92)

[0256]

number

[0257] and overall change σ fi However, it should be noted that these parameters differ from those used in relation (81).

[0258] The LogReg model used in DFT stereo mode is the same as the LogReg model used in LRTD stereo mode. The output y of the LogReg model P This is described by relation (82), and the probability that the current frame has uncorrelated stereo content (class=0) is given by relation (83). The training process of the classifier and the procedure for finding the optimal decision threshold have been previously described herein. Here again, for this purpose, the UNCLR classifier 113 includes a score calculator (not shown) that performs a sub-operation (not shown) of calculating a score representing uncorrelated stereo content in the input stereo sound signal 190.

[0259] The score calculator (not shown) of the UNCLR classifier 113 outputs the raw output y of a LogReg model that follows a similar function as shown in Figure 5 in LRTD stereo mode. p First, we normalize the expression. Mathematically, this normalization can be described as follows:

[0260]

number

[0261] 7.2.1 LogReg output weighting based on relative frame energy Next, the score calculator (not shown) of the UNCLR classifier 113 uses, for example, the following relationship to calculate the normalized output y of the LogReg model. pn (n) relative flame energy E rl Weighted by (n). scr UNCLR (n) = y pn (n)·E rl (n) (94) Here, E rl (n) is the relative frame energy described by relation (69).

[0262] The normalized and weighted output of the LogReg model is called the "score," and represents the same quantity as in the LRTD stereo mode described earlier. In the DFT stereo mode, the score is called the "scr." UNCLR (n) is the alternative VAD flag f xVAD When (n)(relation (77)) is set to 0, it is reset to 0. This is represented by the following relation: scr UNCLR (n) = 0, f xVAD (n)=0 (95)

[0263] 7.2.2 Rising Edge Detection in DFT Stereo Mode Finally, the score calculation device (not shown) of the UNCLR classification device 113 uses the previously described rising edge detection mechanism in UNCLR classification in LRTD stereo mode to calculate the score scr in DFT stereo mode. UNCLR (n) is smoothed with an IIR filter. For this purpose, the UNCLR classifier 113 uses the following relationship: wscr UNCLR (n) = f edge (n)·wscr UNCLR(n-1)+(1-f edge (n) · scr UNCLR (n) (96) This is the same as relation (91).

[0264] 7.3 Binary UNCLR determination The final output of the UNCLR classifier 111 / 113 is in binary. UNCLR (n) represents the binary state of UNCLR classifier 111 / 113. Binary state c UNCLR (n) has a value of "1" to indicate an uncorrelated stereo content class, or a value of "0" to indicate a correlated stereo content class. The binary state at the output of the UNCLR classifier 111 / 113 is variable. The binary state is initialized to "0". The state of the UNCLR classifier 111 / 113 changes from the current class to another class in frames where certain conditions are met.

[0265] The mechanism used in UNCLR classification unit 111 / 113 for switching between stereo content classes is depicted in Figure 6 in the form of a state machine.

[0266] Referring to Figure 6, the following can be seen: - (a) Binary state c of the previous frame UNCLR (n-1) is "1" and (601), (b) the smoothed score of the current frame wscr UNCLR (n) is less than "-0.07" (602), and (c) the variable cnt from the previous frame. sw If (n-1) is greater than "0" (603), then the binary state of the current frame is c. UNCLR (n) is switched to "0" (604). - (a) Binary state c of the previous frame UNCLR (n-1) is "1" and (601), (b) the smoothed score of the current frame wscr UNCLR If (n) is not less than "-0.07" (602), then the binary state c in the current frame UNCLR There is no switching for (n). - (a) Binary state c of the previous frame UNCLR(n-1) is "1" and (601), (b) the smoothed score of the current frame wscr UNCLR (n) is less than "-0.07" (602), and (c) the variable cnt from the previous frame. sw If (n-1) is not greater than "0" (603), then the binary state c in the current frame. UNCLR There is no switching for (n).

[0267] Using the same method, and referring to Figure 6, we get the following: - (a) Binary state c of the previous frame UNCLR (n-1) is "0" and (601), (b) the smoothed score of the current frame wscr UNCLR (n) is greater than "0.1" (605), and (c) is the variable cnt from the previous frame. sw If (n-1) is greater than "0" (606), then the binary state of the current frame is c. UNCLR (n) is switched to "1" (607). - (a) Binary state c of the previous frame UNCLR (n-1) is "0" and (601), (b) the smoothed score of the current frame wscr UNCLR If (n) is not greater than "0.1" (605), then the binary state c in the current frame. UNCLR There is no switching for (n). - (a) Binary state c of the previous frame UNCLR (n-1) is "0" and (601), (b) the smoothed score of the current frame wscr UNCLR (n) is greater than "0.1" (605), and (c) is the variable cnt from the previous frame. sw If (n-1) is not greater than "0" (606), then the binary state c in the current frame. UNCLR There is no switching for (n).

[0268] Finally, the variable cnt in the current frame. sw (n) is updated (608), and the procedure is repeated for the next frame (609).

[0269] variable cnt sw(n) is a frame counter of the UNCLR classifier 111 / 113, which is capable of switching between LRTD stereo mode and DFT stereo mode. This counter is initialized to zero and updated in each frame using, for example, the following logic (608):

[0270]

number

[0271] counter cnt sw (n) has an upper limit of 100. Variable c type This indicates the type of the current frame in device 100 for encoding a stereo audio signal. The frame type is explicitly determined in preprocessing devices 103 / 104 / 109, and is typically determined during the preprocessing operation of device 100 (stereo audio codec) for encoding a stereo audio signal. The type of the current frame is determined by the following characteristics of the input stereo audio signal 190, namely, - Pitch period - Vocalization - Spectral gradient - Zero crossover rate - Frame energy difference (short-term, long-term) It is usually selected based on the following criteria.

[0272] As a non-restrictive example, frame types from a 3GPP EVS codec, as described in reference [1], are related to parameter c of relation (97). type It can be used in UNCLR Classifier 111 / 113. The frame types in the 3GPP EVS codec are selected from the following set of classes.

[0273]

number

[0274] The parameter VAD0 in relation (97) is the VAD flag without hangover addition. The VAD flag without hangover addition is explicitly calculated in the TD preprocessor 103 / 104 / 109 during the preprocessing operation of device 100 (stereo codec) for encoding stereo audio signals. As a non-limiting example, the VAD flag without hangover addition from a 3GPP EVS codec, as described in reference [1], may be used as parameter VAD0 in the UNCLR classifier 111 / 113.

[0275] Output binary state c of UNCLR classifier 111 / 113 UNCLR (n) can be changed if the current frame type is generic, voiceless, or inactive, or if the VAD flag without hangover addition indicates inactivity (VAD0=0) in the input stereo audio signal. Such frames are generally suitable for switching between LRTD stereo mode and DFT stereo mode because they fall into either a stable segment or a segment with little perceptual impact on quality. The goal is to minimize the risk of switching artifacts.

[0276] 8. Detection of crosstalk (XTALK) XTALK detection is based on LogReg models, which are trained separately for LRTD stereo modes and DFT stereo modes. Both statistical models are trained with features collected from a large database of actual stereo recordings and artificially prepared stereo samples. In the training database, each frame is labeled as either single-talk or crosstalk. Labeling is performed either manually for actual stereo recordings or semi-automatically for artificially prepared samples. Manual labeling is done by identifying short, compact segments with crosstalk characteristics. Semi-automatic labeling is done using VAD outputs from the mono signal, before those VAD outputs are mixed into the stereo signal. Further details are provided at the end of Section 8.

[0277] In the non-limiting examples of the implementation described in this disclosure, actual stereo recordings were sampled at 32 kHz. The total size of these actual stereo recordings is approximately 263 MB, corresponding to approximately 30 minutes. Artificially prepared stereo samples are created by mixing randomly selected speakers from a monaural, clean speech database using an ITU-T G.191 reverberation apparatus. Artificially prepared stereo samples are prepared by simulating conditions in a large conference room with an AB microphone setup as shown in Figure 7. Figure 7 is a schematic plan view of a large conference room with an AB microphone setup, the conditions which are simulated for XTALK detection.

[0278] Two types of rooms are considered: reverberant (LEAB) and anechoic (LAAB). Referring to Figure 7, for each type of room, a first speaker S1 may appear at position P4, P5, or P6, and a second speaker S2 may appear at positions P10, P11, and P12. The positions of each speaker S1 and S2 are randomly selected during the preparation of the training sample. Thus, speaker S1 is always close to the first simulated microphone M1, and speaker S2 is always close to the second simulated microphone M2. Microphones M1 and M2 are omnidirectional in the unrestricted implementation illustrated in Figure 7. The pair of microphones M1 and M2 constitutes the simulated AB microphone setup. Monoaural samples are randomly selected from a training database, downsampled to 32 kHz, and normalized to -26 dBov (dB((overload) - amplitude of the acoustic signal compared to the maximum the device can handle before clipping occurs)) before further processing. The ITU-T G.191 reverberation instrument includes a database of actual measurements of room impulse response (RIR) for each speaker / microphone pair.

[0279] Next, randomly selected monaural samples from speakers S1 and S2 are convolved with room impulse responses (RIRs) corresponding to a given speaker / microphone, thereby simulating actual AB microphone captures. Contributions from both speakers S1 and S2 at each microphone M1 and M2 are added together. A randomly selected delay in the range of 4–4.5 seconds is added to one of the speaker samples before convolution. This ensures that in every training sentence, there is always some period of single-talk speech followed by short periods of crosstalk speech and other periods of single-talk speech. After RIR convolution and mixing, the samples are normalized again to -26 dBov, and this time is applied to the passive monaural downmix.

[0280] Labels are generated semi-automatically using conventional VAD algorithms, such as the VAD algorithm for the 3GPP EVS codec, as described in reference [1]. The VAD algorithm is applied separately to the first speaker (S1) file and the second speaker (S2) file. Both binary VAD decisions are then combined using the logical "and" operator. This results in a label file. Segments where the combined output equals "1" determine the crosstalk segments. This is illustrated in Figure 8, which shows a graph illustrating the automatic labeling of crosstalk samples using VAD. In Figure 8, the first line represents the audio sample from speaker S1, the second line represents the binary VAD decisions in the audio sample from speaker S1, the third line represents the audio sample from speaker S2, the fourth line represents the binary VAD decisions in the audio sample from speaker S2, and the fifth line represents the location of the crosstalk segments.

[0281] The training set is unbalanced. The ratio of crosstalk frames to singletalk frames is approximately 1:5, meaning that only about 21% of the training data belongs to the crosstalk class. This is compensated for during the LogReg training process by applying class weights as described in reference [6], the full content of which is incorporated herein by reference.

[0282] The training samples are concatenated and used as input to device 100 (stereo codec) for encoding the stereo audio signal. Features are collected individually in separate files during the encoding process, which spans each 20ms frame. This constitutes the training feature set. The total number of frames in the training feature set is shown, for example, as follows: N T =N XTALK +N NORMAL (98) Here, N XTALK This is the total number of crosstalk frames, N NORMAL This is the total number of single-talk frames.

[0283] Furthermore, the corresponding binary label is shown, for example, as follows:

[0284]

number

[0285] Here, Ω XTALK Ω is the superset of all crosstalk frames, NORMAL This is the superset of all single-talk frames. Inactive frames (VAD=0) are removed from the training database.

[0286] 8.1 XTALK Detection in LRTD Stereo Mode In LRTD stereo mode, the method 150 for encoding a stereo sound signal includes an operation 160 for detecting crosstalk (XTALK). To perform operation 160, the device 100 for encoding a stereo sound signal includes an XTALK detection device 110.

[0287] The operation 160 for detecting crosstalk (XTALK) in LRTD stereo mode is performed similarly to the UNCLR classification in LRTD stereo mode described earlier. The XTALK detector 110 is based on a logistic regression (LogReg) model. For brevity, the parameter names and associated mathematical symbols from the UNCLR classification are also used in this section. Subscripts are added to avoid ambiguity when referring to the same parameter name from different sections.

[0288] The following features, Call, - L / R class difference d class (Relationship (32)) - L / R difference d of maximum autocorrelation v (Relationship (25)) - L / R difference d of the total LSF LSF (Relationship (23)) - L / R difference d of residual error energy LPC13 (Relationship (22)) - L / R difference d in the correlation map cmap (Relationship (27)) - L / R difference d of noise characteristics nchar (Relationship (29)) - Unsteady L / R difference d sta (Relationship (26)) - L / R difference d of spectral diversity sdiv (Relationship (28)) - The denormalized value P of the inter-channel correlation function at zero time lag LR (Relationship (14)) - Side-monaural energy ratio r SM (Relationship (15)) - The difference d between the maximum and minimum of the point product between the left channel and the mono signal, and between the right channel and the mono signal.mmLR (Relationship (19)) - The zero-time-lag value R0 of the cross-channel correlation function (relation (5)), - Open RR of the inter-channel cross-correlation function (relation (21)), - Position k of the maximum inter-channel cross-correlation function max (Relationship (11)) - Maximum R of the inter-channel correlation function max (Relationship (10)), - The difference Δ between the point product of L / M and the point product of R / M LRM (Relationship (20)), and, - The smoothed ratio between the energy of the side signal and the energy of the mono signal.

[0289]

number

[0290] (Relationship (16)) This is used by the XTALK detection device 110.

[0291] Therefore, the XTALK detection device 110 uses a total number of features F=17.

[0292] Before the training process, the XTALK detection device 110 has 17 features f i The system includes a normalization device (not shown) that performs a lower-level operation (not shown) of normalizing the set by removing the mean of the set and increasing or decreasing it to the unit variance. The normalization device (not shown) uses, for example, the following relationship:

[0293]

number

[0294] Here, f i,raw This indicates the i-th feature of the set.

[0295]

number

[0296] σ is the overall mean of the i-th feature across the training database. fi This represents the overall change in the i-th feature across the training database.

[0297] Here, the parameters used in relation (100)

[0298]

number

[0299] and σ fi This differs from the same parameter used in relation (81).

[0300] Output location of the LogReg model P This is described by relation (82), and the probability p (class=0) that the current frame belongs to a crosstalk partition class (class 0) is given by relation (83). Details of the training process and the procedure for finding the optimal decision threshold have been previously provided in the description of UNCLR classification in LRTD stereo modes. As previously stated, for this purpose, the XTALK detection device 110 includes a score calculator (not shown) that performs a sub-operation (not shown) of calculating a score representing the uncorrelated stereo content in the input stereo sound signal 190.

[0301] The score calculation device (not shown) of the XTALK detection device 110 calculates the raw output y of the LogReg model using a function such as the one shown in Figure 9. p The output is normalized and then further processed. Figure 9 is a graph representing a function for increasing or decreasing the raw output of the LogReg model in XTALK detection in LRTD stereo mode. Such normalization can be written mathematically as follows:

[0302]

number

[0303] Normalized output y of the LogReg model pn (n) is set to 0 if the previous frame was encoded in DFT stereo mode and the current frame is encoded in LRTD stereo mode. This procedure prevents switching artifacts.

[0304] 8.1.1 LogReg output weighting based on relative frame energy The score calculation device (not shown) of the XTALK detection device 110 calculates the relative frame energy E rl Based on (n), the normalized output y of the LogReg model pn (n) is weighted. The weighting scheme applied in the XTALK detection device 110 in LRTD stereo mode is the same as the weighting scheme applied in the UNCLR classification device 111 in LRTD stereo mode, as previously described herein. The main difference is the relative frame energy E rl The difference is that (n) is not used directly as a multiplicative factor, as in relation (85). Instead, the score calculator (not shown) of the XTALK detector 110 calculates the relative frame energy E in the interval <0; 0.95>. rl We linearly transform (n) by inverse proportion. This transformation can be done, for example, using the following relationship: w relE (n) = -2.375E rl (n) + 2.1375 (102)

[0305] Therefore, for frames with higher relative energy, the weight approaches 0, while for frames with lower energy, the weight approaches 0.95. Next, the score calculator (not shown) of the XTALK detector 110 uses, for example, the following relationship to calculate the normalized output y of the LogReg model. pn To filter (n), weight w relE Use (n). scr XTALK (n) = wrelE scr XTALK (n-1)+(1-w relE )y pn (n) (103) Here, the exponent n represents the current frame, and the exponent n-1 represents the previous frame.

[0306] Normalized and weighted output scr from XTALK detector 110 XTALK (n) is called the "XTALK score," which represents the crosstalk in the input stereo audio signal 190.

[0307] 8.1.2 Rising Edge Detection Similar to the UNCLR classification in LRTD stereo mode, the score calculation device (not shown) of the XTALK detection device 110 calculates the normalized and weighted output scr of the LogReg model. XTALK (n) is smoothed. The reason for this is to obscure accidental, short-duration “peaks” and “drops” that would otherwise result in false warnings or errors. The smoothing is designed to preserve the rising edges of the LogReg output, because these rising edges may represent important transitions between crosstalk and single-talk segments in the input stereo audio signal 190. The mechanism for detecting rising edges in the XTALK detector 110 in LRTD stereo mode differs from the mechanism for detecting rising edges previously described with respect to UNCLR classification in LRTD stereo mode.

[0308] In the XTALK detection device 110, the rising edge detection algorithm analyzes the LogReg output values ​​from the previous frame and compares them to a pre-calculated set of "ideal" rising edges with different slopes. The "ideal" rising edge is expressed as a linear function of the frame exponent n. Figure 10 is a graph illustrating the mechanism for detecting rising edges in the XTALK detection device 110 in LRTD stereo mode. Referring to Figure 10, the x-axis contains the exponent n of the frame before the current frame 0. The small gray rectangle represents the XTALK score scr over the period of the six frames preceding the current frame. XTALK This is the output of example (n). As can be seen from Figure 10, the XTALK score scr starts from the three frames prior to the current frame. XTALK (n) has a rising edge. The dotted line depicts a set of four "ideal" rising edges in divisions of different lengths.

[0309] For each "ideal" rising edge, the rising edge detection algorithm uses a dotted line and an XTALK score (scr). XTALK The mean squared error is calculated between (n). The output of the rising edge detection algorithm is the minimum mean squared error between the tested "ideal" rising edges. The linear functions shown by the dotted lines are scr min and scr max These are pre-calculated based on predetermined thresholds for the minimum and maximum values, which are shown by the large light gray rectangle in Figure 10. The slope of the linear function for each "ideal" rising edge depends on the minimum threshold, the maximum threshold, and the length of the segment.

[0310] Rising edge detection is performed by the XTALK detection device 110 only in frames that meet the following criteria.

[0311]

number

[0312] Here, K=4 is the maximum length of the rise edge that was tested.

[0313] The output value of the rising edge detection algorithm is ε 0_1 This indicates that the use of the subscript "0_1" emphasizes the fact that the output value of the rising edge detection is limited to the interval <0; 1>. For frames that do not meet the criteria in relation (104), the output value of the rising edge detection is directly set to 0, i.e., as follows: ε 0_1 =0 (105)

[0314] The set of linear functions representing the tested "ideal" rising edge can be mathematically expressed by the following relationship:

[0315]

number

[0316] Here, the exponent l represents the length of the tested rising edge, and the exponent nk represents the frame exponent. The slope of each linear function is given by three parameters: the length of the tested rising edge l, the minimum threshold scr. min , and maximum threshold scr max Determined by the following: For the purpose of the XTALK detection device 110 in LRTD stereo mode, the threshold is scr max =1.0 and scr min It is set to =-0.2. These threshold values ​​were determined experimentally.

[0317] For each length of the tested rising edge, the rising edge detection algorithm uses, for example, the following relationship to determine the linear function t(relation (106)) and the XTALK score scr XTALK Calculate the mean squared error between [the given values].

[0318]

number

[0319] Here, ε0 is the initial error given by the following relationship: ε0=|scr XTALK (n)-scr max | 2 (108)

[0320] The minimum mean square error is calculated by the XTALK detector 110 using the following relationship:

[0321]

number

[0322] As the minimum mean square error decreases, the detected rising edges become stronger. In an unrestricted implementation, if the minimum mean square error is greater than 0.3, the output of rising edge detection is set to 0, i.e., ε 0_1 > if ε min > 0.3 (110) Thus, the rising edge detection algorithm terminates. In all other cases, the minimum mean square error can be mapped linearly in the interval <0; 1> using, for example, the following relationship: ε 0_1 = 1 - 2.5ε min (111)

[0323] In the example above, the relationship between the rising edge detection output and the minimum mean square error is inversely proportional.

[0324] The XTALK detection device 110 normalizes the output of rising edge detection in the interval <0,5; 0,9> to produce edge sharpening parameters calculated using, for example, the following relationship: f edge (n) = 0.9 - 0.4ε 0_1 (112) 0,5 and 0,9 are used as the lower and upper limits, respectively.

[0325] Finally, the score calculation device (not shown) of the XTALK detection device 110 is f edge (n) is used in place of the forgetting factor in the IIR filter of the XTALK detector 110, and the LogReg model scr XTALK Smooth the normalized and weighted output of (n). Such smoothing can be done using, for example, the following relationship: wscr XTALK (n) = f edge (n)·wscr XTALK (n-1)+(1-f edge (n) · scr XTALK (n) (113)

[0326] Smoothed output wscr XTALK (n)(XTALK score) is reset to 0 in frames where the alternative VAD flag calculated in relation (77) is zero. That is, it is done as follows: wscr XTALK (n) = 0, if f xVAD (n)=0 (114)

[0327] 8.2 Detection of Crosstalk in DFT Stereo Mode In DFT stereo mode, the method 150 for encoding the stereo sound signal 190 includes an operation 162 for detecting crosstalk (XTALK). To perform operation 162, the device 100 for encoding the stereo sound signal 190 includes an XTALK detection device 112.

[0328] XTALK detection in DFT stereo modes is performed similarly to XTALK detection in LRTD stereo modes. A logistic regression (LogReg) model is used for binary classification of the input feature vectors. For brevity, the names of specific parameters and their associated mathematical symbols from XTALK detection in LRTD stereo modes are also used in this section. Subscripts are added to avoid ambiguity when referring to the same parameter from both parts simultaneously.

[0329] The following features, Call, - ILD gain g ILD (Relation 43) - IPD gain g IPD (Relationship 48), - IPD rotation angle φ rot (Relationship 49) - Predicted gain g pred (Relationship 52), - Average energy E of inter-channel coherence coh (Relationship 55)) - The ratio of the product of the maximum inter-channel amplitude to the product of the minimum inter-channel amplitude r PP (Relationship 57)) - The magnitude of the overall cross-channel spectrum f X (Relation 41), - Maximum value of the GCC-PHAT function G ITD (Relationship 61), - The relationship between the amplitude of the first highest peak and the amplitude of the second highest peak of the GCC-PHAT function r GITD12 (Relationship 64) - Amplitude m of the second highest peak in GCC-PHAT ITD2 (Relation 66), and, - The difference Δ between the position of the second highest peak in the current frame and the position of the second highest peak in the previous frame. ITD2 (Relationship 67)) However, by operating the DFT stereo mode in both the single-talk training database and the crosstalk training database, the stereo sound signal 190 is extracted from the device 100 for encoding.

[0330] Overall, the XTALK detector 112 uses the feature number F=11.

[0331] Prior to the training process, the XTALK detection device 112 includes a normalization device (not shown) that performs a sub-operation (not shown) to normalize the extracted set of features by removing the overall mean of the set and increasing or decreasing it to a unit variance, for example, using the following relationship:

[0332]

number

[0333] Here, f i,raw represents the i-th feature of the set, f i This shows the normalized i-th feature,

[0334]

number

[0335] This represents the overall average of the i-th feature across the training database, σ fi is the overall change of the i-th feature across the training database. Here, the parameters used in relation (115) are

[0336]

number

[0337] and σ fi This differs from the one used in relation (81).

[0338] The output of the LogReg model is fully described by relation (82), and the probability that the current frame belongs to a crosstalk partition class (class 0) is given by relation (83). Details of the training process and the procedure for finding the optimal decision threshold are provided earlier in the section on UNCLR classification in LRTD stereo modes. Here again, for that purpose, the XTALK detection device 112 includes a score calculator (not shown) that performs a sub-operation (not shown) of calculating a score representing XTALK detection in the input stereo sound signal 190.

[0339] The score calculation device (not shown) of the XTALK detection device 112 uses a function as shown in Figure 5 to obtain the raw output y of the LogReg model. pIt is normalized and then processed further. The normalized output of the LogReg model is y pn This is shown. In DFT stereo mode, weighting based on relative frame energy is not used. Therefore, the normalized and weighted output of the LogReg model, specifically the XTALK score scr XTALK (n) is given by the following relationship: scr XTALK (n) = y pn (116)

[0340] XTALK score scr XTALK (n) is the alternative VAD flag f xVAD When (n) is set to 0, it is reset to 0. This can be expressed as follows: scr XTALK (n) = 0, if f xVAD (n)=0 (117)

[0341] 8.2.1 Rising Edge Detection As in the case of XTALK detection in LRTD stereo mode, the score calculator (not shown) of the XTALK detection device 112 calculates the XTALK score scr to remove short-term peaks. XTALK (n) is smoothed. Such smoothing is performed using IIR filtration with a rising edge detection mechanism, as described for the XTALK detector 110 in LRTD stereo mode. XTALK score scr XTALK (n) is smoothed with an IIR filter using, for example, the following relationship: wscr XTALK (n) = f edge (n)·wscr XTALK (n-1)+(1-f edge (n) · scr XTALK (n) (118) Here, f edge (n) is the edge sharpening parameter calculated by relation (112).

[0342] 8.3 Binary XTALK determination The final output of the XTALK detection device 110 / 112 is in binary. XTALK (n) represents the output of the XTALK detection device 110 / 112, with "1" representing crosstalk and "0" representing single-talk class. Output c XTALK (n) can also be considered as a state variable. Output c XTALK (n) is initialized to 0. The state variable is changed from the current class to another class only in frames where certain conditions are met. The mechanism for crosstalk class switching is the same as the mechanism for class switching in uncorrelated stereo content, which is described in detail earlier in Section 7.3. However, there are differences between LRTD stereo mode and DFT stereo mode. These differences will be described in detail later.

[0343] In LRTD stereo mode, the XTALK detection device 110 uses a crosstalk switching mechanism as shown in Figure 11. Referring to Figure 11, it is as follows: - Output c of the UNCLR classifier 111 in the current frame n UNCLR If (n) is equal to "1" (1101), the output c of the XTALK detection device 110 in the current frame n. XTALK There is no switching for (n). - (a) Output c of the UNCLR classifier 111 in the current frame n UNCLR (n) is equal to "0" (1101), (b) output c of the XTALK detection device 110 in the previous frame n-1 XTALK If (n-1) is equal to "1" (1102), then the output c of the XTALK detection device 110 in the current frame n. XTALK There is no switching for (n). - (a) Output c of the UNCLR classifier 111 in the current frame n UNCLR (n) is equal to "0" (1101), (b) output c of the XTALK detection device 110 in the previous frame n-1 XTALK (n-1) is equal to "0" (1102), and (c) the smoothed XTALK score wscr in the current frame n. XTALKIf (n) is not greater than 0.03 (1104), the output c of the XTALK detection device 110 in the current frame n. XTALK There is no switching for (n). - (a) Output c of the UNCLR classifier 111 in the current frame n UNCLR (n) is equal to "0" (1101), (b) output c of the XTALK detection device 110 in the previous frame n-1 XTALK (n-1) is equal to "0" (1102), and (c) the smoothed XTALK score wscr in the current frame n. XTALK (n) is greater than 0.03 (1104), and (d) the counter cnt in the previous frame n-1. sw If (n-1) is not greater than "0" (1105), the output c of the XTALK detection device 110 in the current frame n. XTALK There is no switching for (n). - (a) Output c of the UNCLR classifier 111 in the current frame n UNCLR (n) is equal to "0" (1101), (b) output c of the XTALK detection device 110 in the previous frame n-1 XTALK (n-1) is equal to "0" (1102), and (c) the smoothed XTALK score wscr in the current frame n. XTALK (n) is greater than 0.03 (1104), and (d) the counter cnt in the previous frame n-1. sw If (n-1) is greater than "0" (1105), the output c of the XTALK detection device 110 in the current frame n. XTALK (n) is switched to "1" (1106).

[0344] Finally, the counter cnt in the current frame n sw (n) is updated (1107), and the procedure is repeated for the next frame (1108).

[0345] counter cnt sw (n) is common to the UNCLR classifier 111 and the XTALK detection device 110 and is defined in relation (97). Counter cnt sw The positive value of (n) is the state variable c XTALK(n)(Output c of XTALK detection device 110) XTALK This indicates that the switching of (n)) is permitted. As can be seen in Figure 11, the switching logic is the output c of the UNCLR classifier 111 in the current frame. UNCLR (n)(1101) is used. Therefore, it is assumed that the UNCLR classifier 111 is operated before the XTALK detector 110 because the XTALK detector 110 uses the output of the UNCLR classifier 111. Also, the state switching logic in Figure 11 is the output c of the XTALK detector 110. XTALK (n) is unidirectional in the sense that it can only change from "0" (single talk) to "1" (crosstalk). The state switching logic for the opposite direction, i.e., from "1" (crosstalk) to "0" (single talk), is part of the DFT / LRTD stereo mode switching logic, which will be described later in this disclosure.

[0346] In DFT stereo mode, the XTALK detection device 112 includes an auxiliary parameter calculator (not shown) that performs a lower-level operation (not shown) to calculate the following auxiliary parameters. Specifically, the crosstalk switching mechanism uses the output wscr of the XTALK detection device 112. XTALK (n) and the following auxiliary parameters, namely, - Audio Activity Detection (VAD) flag in the current frame (f VAD ), - Amplitude G of the first and second highest peaks of the GCC-PHAT function ITD , m ITD2 (Relationships (61) and (66) respectively), - Positions (ITD values) corresponding to the amplitudes of the first and second highest peaks of the GCC-PHAT function ITD d ITD2 (Relationships (60) and (paragraph

[0170] (original paragraph

[0111] )), respectively), - DFT stereo silence flag f sil (Relationship (78)) Use and.

[0347] In DFT stereo mode, the XTALK detection device 112 uses a crosstalk switching mechanism as shown in Figure 12. Referring to Figure 12, it is as follows: - d ITD If (n) is equal to "0" (1201), c XTALK (n) is switched to "0" (1217). - (a)d ITD (n) is not equal to "0" (1201), (b)c XTALK In the case where (n-1) is not equal to "0" (1202), (c)c XTALK If (n-1) is not equal to "1" (1215), then c XTALK There is no switching for (n). (c)c XTALK (n-1) is equal to "1" (1215), (d) wscr XTALK If (n) is not less than "0.0" (1216), then c XTALK There is no switching for (n). (c)c XTALK (n-1) is equal to "1" (1215), (d) wscr XTALK If (n) is less than "0.0" (1216), then c XTALK (n) is switched to "0" (1219). - (a)d ITD (n) is not equal to "0" (1201), (b)c XTALK (n-1) is equal to "0", (1202), (c)f VAD In the case where is not equal to "1" (1203), (d)c XTALK If (n-1) is not equal to "1" (1215), then c XTALK There is no switching for (n). (d)c XTALK (n-1) is equal to "1" (1215), (e) wscr XTALK If (n) is not less than "0.0" (1216), then c XTALK There is no switching for (n). (d)c XTALK (n-1) is equal to "1" (1215), (e) wscr XTALKIf (n) is less than "0.0" (1216), then c XTALK (n) is switched to "0" (1219). - (a)d ITD (n) is not equal to "0" (1201), (b)c XTALK (n-1) is equal to "0", (1202), (c)f VAD (d) 0.8G ITD (n) is m ITD2 (n) is less than (1204), and (e) is 0.8G. ITD (n-1) is m ITD2 (n-1) is less than (1205), and (f)d ITD2 (n)-d ITD2 (n-1) is less than "4.0" (1206), and (g)G ITD (n) is greater than "0.15" (1207), (h)G ITD If (n-1) is greater than "0.15" (1208), then c XTALK (n) is switched to "1" (1218). - (a)d ITD (n) is not equal to "0" (1201), (b)c XTALK (n-1) is equal to "0", (1202), (c)f VAD If (d) is equal to "1" (1203), and if any of the tests 1204-1208 is negative, (e)wscr XTALK If (n) is greater than "0.8" (1209), then c XTALK (n) is switched to "1" (1218). - (a)d ITD (n) is not equal to "0" (1201), (b)c XTALK (n-1) is equal to "0", (1202), (c)f VAD (d) If the result is equal to "1" (1203), and (e) if any of the tests 1204-1208 is negative, then (e) wscr XTALK (n) is not greater than "0.8" (1209), and (f)f sil In the case where (n) is not equal to "1" (1210), (g)c XTALK If (n-1) is not equal to "1" (1215), then c XTALKThere is no switching for (n). (g)c XTALK (n-1) is equal to "1" (1215), (h)wscr XTALK If (n) is not less than "0.0" (1216), then c XTALK There is no switching for (n). (g)c XTALK (n-1) is equal to "1" (1215), (h)wscr XTALK If (n) is less than "0.0" (1216), then c XTALK (n) is switched to "0" (1219). - (a)d ITD (n) is not equal to "0" (1201), (b)c XTALK (n-1) is equal to "0", (1202), (c)f VAD (d) If the result is equal to "1" (1203), and (e) if any of the tests 1204-1208 is negative, then (e) wscr XTALK (n) is not greater than "0.8" (1209), and (f)f sil (n) is equal to "1" (1210), (g)d ITD (n) is greater than "8.0" (1211), (h)d ITD If (n-1) is less than "-8.0", then c XTALK (n) is switched to "1" (1218). - (a)d ITD (n) is not equal to "0" (1201), (b)c XTALK (n-1) is equal to "0", (1202), (c)f VAD (d) If the result is equal to "1" (1203), and (e) if any of the tests 1204-1208 is negative, then (e) wscr XTALK (n) is not greater than "0.8" (1209), and (f)f sil (n) is equal to "1" (1210), (g) either test 1211 or 1212 is negative, (h) d ITD (n-1) is greater than "8.0" (1213), (i)d ITD If (n) is less than "-8.0" (1214), then c XTALK (n) is switched to "1" (1218). - (a)d ITD(n) is not equal to "0" (1201), (b)c XTALK (n-1) is equal to "0", (1202), (c)f VAD (d) If the result is equal to "1" (1203), and (e) if any of the tests 1204-1208 is negative, then (e) wscr XTALK (n) is not greater than "0.8" (1209), and (f)f sil If (n) is equal to "1" (1210), (g) either test 1211 or 1212 is negative, and (h) either test 1213 or 1214 is negative, · (I C XTALK If (n-1) is not equal to "1" (1215), then c XTALK There is no switching for (n). · (I C XTALK (n-1) is equal to "1" (1215), (j)wscr XTALK If (n) is not less than "0.0" (1216), then c XTALK There is no switching for (n). · (I C XTALK (n-1) is equal to "1" (1215), (j)wscr XTALK If (n) is less than "0.0" (1216), then c XTALK (n) is switched to "0" (1219).

[0348] Finally, the counter cnt in the current frame n sw (n) is updated (1220), and the procedure is repeated for the next frame (1221).

[0349] variable cnt sw (n) is a frame counter that can switch between LRTD stereo mode and DFT stereo mode. This counter cnt sw (n) is common to the UNCLR classifier 113 and the XTALK detector 112. Counter cnt sw (n) is initialized to zero and updated in each frame according to relation (97).

[0350] 9. DFT / LRTD Stereo Mode Selection A method 150 for encoding a stereo sound signal 190 includes an operation 164 for selecting either an LRTD stereo mode or a DFT stereo mode. To perform operation 164, a device 100 for encoding a stereo sound signal 190 includes an LRTD / DFT stereo mode selector 114 that receives, with a 1-frame delay (191), an XTALK determination from an XTALK detection device 110, an UNCLR determination from an UNCLR classification device 111, an XTALK determination from an XTALK detection device 112, and an UNCLR determination from an UNCLR classification device 113.

[0351] The LRTD / DFT stereo mode selector 114 outputs the binary output c of the UNCLR classification device 111 / 113. UNCLR (n) and the binary output c of the XTALK detection device 110 / 112 XTALK Based on (n), the LRTD stereo mode or DFT stereo mode is selected. The LRTD / DFT stereo mode selector 114 also considers several auxiliary parameters. These parameters are primarily used to prevent stereo mode switching in perceptually sensitive sections, or to prevent frequent switching in sections where both the UNCLR classifier 111 / 113 and the XTALK detector 110 / 112 do not provide accurate output.

[0352] Operation 164, which selects either LRTD stereo mode or DFT stereo mode, is performed before downmixing and encoding the input stereo audio signal 190. As a result, operation 164 uses the outputs from the UNCLR classifiers 111 / 113 and XTALK detectors 110 / 112 from the previous frame, as shown by code 191 in Figure 1. Operation 164, which selects either LRTD stereo mode or DFT stereo mode, is further illustrated in the schematic block diagram of Figure 13.

[0353] As described below, the DFT / LRTD stereo mode selection mechanism used in operation 164 is related to the following subordinate operation, namely: - Initial DFT / LRTD stereo mode selection, - Switching from LRTD stereo mode to DFT stereo mode by detecting crosstalk content. Includes.

[0354] 9.1 Initial DFT / LRTD Stereo Mode Selection The DFT stereo mode is a preferred mode for encoding single-talk speech with a large inter-channel correlation between the left (L) and right (R) channels of the input stereo audio signal 190.

[0355] The LRTD / DFT stereo mode selector 114 initiates the initial selection of a stereo mode by determining whether the processed previous frame "could be an audio frame." This can be done, for example, by examining the ratio of log-likelihoods between the "audio" class and the "music" class. The ratio of log-likelihoods is defined as the absolute difference between the log-likelihood of an input stereo audio signal frame generated by a "music" source and the log-likelihood of an input stereo audio signal frame generated by an "audio" source. The following relationship can be used to calculate the ratio of log-likelihoods. dL SM (n) = L M (n)-L S (n) (119) Here, L S (n) is the log-likelihood of the "speech" class, L M (n) is the log-likelihood of the "music" class.

[0356] For example, a Gaussian mixture model (GMM) from a 3GPP EVS codec, as described in reference [7], whose entire content is incorporated herein by reference, has a log-likelihood L for the "speech" class. S (n) and the log-likelihood L of the "music" class M (n) can be used to estimate. Another method of classifying speech / music is the rate of log-likelihood (differential score) dL SM It can also be used to calculate (n).

[0357] Log-likelihood ratio dLSM (n) is smoothed with two IIR filters with different forgetting factors, for example, using the following relationship:

[0358]

number

[0359] Here, the superscript (1) indicates the first IIR filter, and the superscript (2) indicates the second IIR filter.

[0360] Next, smoothed

[0361]

number

[0362] and

[0363]

number

[0364] This is compared to a predetermined threshold.

[0365] If, for example, the following combination of conditions is met, a new binary flag f SM (n) is set to 1.

[0366]

number

[0367] flag f SM (n)=1 is an indicator that the previous frame could be an audio frame. The threshold of 1.0 has been found experimentally.

[0368] Next, the initial DFT / LRTD stereo mode selection mechanism selects the binary output c of the UNCLR classifier 111 / 113 in the previous frame n-1. UNCLR(n-1) or the binary output c of the XTALK detection device 110 / 112 XTALK If (n-1) is set to 1, and if the previous frame could be an audio frame, a new binary flag f UX Set (n) to 1. This is expressed by the following relationship:

[0369]

number

[0370] M SMODE Let (n)∈(LRTD, DFT) be a discrete variable representing the selected stereo mode in the current frame n. The stereo mode is initialized in each frame with the value from the previous frame n-1, i.e., as follows: M SMODE (n) = M SMODE (n-1) (123)

[0371] flag f UX When (n) is set to 1, the LRTD stereo mode is selected for encoding in the current frame n. This can be expressed as follows: M SMODE (n)←LRTD, if, f UX =1 case (124)

[0372] flag f UX If (n) is set to 0 in the current frame n, and the stereo mode in the previous frame n-1 is LRTD stereo mode, then the auxiliary stereo mode switching flag f from the LRTD energy analysis processing device 1301 of the LRTD / DFT stereo mode selection device 114, as described below, is set to 0 in the current frame n. TDM (n-1) is analyzed to select the stereo mode in the current frame n, for example, using the following relationship:

[0373]

number

[0374] Auxiliary stereo mode switching flag f TDM (n) is updated frame by frame only in LRTD mode. Parameter f TDM The update of (n) is explained in the following description.

[0375] As shown in Figure 13, the LRTD / DFT stereo mode selector 114 uses an auxiliary parameter f, which is described in more detail later in this disclosure. TDM (n), c LRTD (n), c DFT (n), and m TD The LRTD energy analysis apparatus 1301 is provided to generate (n).

[0376] flag f UX If (n) is set to 0 in the current frame n, and the stereo mode in the previous frame n-1 was DFT stereo mode, then no stereo mode switching is performed, and DFT stereo mode is selected in the current frame n as well.

[0377] 9.2 Switching from LRTD stereo mode to DFT stereo mode in XTALK detection The XTALK detection device 110 in LRTD mode is described in the previous section. As can be seen from Figure 11, the binary output c of the XTALK detection device 110 XTALK (n) can only be set to 1 when crosstalk content is detected in the current frame. As a result, the initial stereo mode selection logic described above cannot select the DFT stereo mode when the XTALK detector 110 indicates single-talk content. This results in an undesirable extension of the LRTD stereo mode when a single-talk stereo audio signal segment follows a crosstalk stereo audio signal segment. Therefore, an additional mechanism was implemented to switch back from the LRTD stereo mode to the DFT stereo mode when single-talk content is detected. This mechanism is described below.

[0378] When the LRTD / DFT stereo mode selection device 114 selected the LRTD stereo mode in the previous frame n-1, and the first stereo mode selection in the current frame n selected the LRTD mode, the binary output c of the XTALK detection device 110 is simultaneously XTALK If (n-1) is 1, the stereo mode may be changed from LRTD stereo mode to DFT stereo mode. This change is permitted, for example, when the following listed conditions are met:

[0379]

number

[0380] The set of conditions defined above includes references to the `clas` and `brate` parameters. The `brate` parameter is a high-level constant that contains the total bitrate used by device 100 (stereo codec) for encoding the stereo audio signal. The `brate` parameter is set during the initialization of the stereo codec and remains unchanged during the encoding process.

[0381] The clas parameter is a discrete variable containing information about the frame type. The clas parameter is typically estimated as part of the signal preprocessing of a stereo codec. As a non-restrictive example, the clas parameter from the frame erase concealment (FEC) module of a 3GPP EVS codec, as described in reference [1], may be used in a DFT / LRTD stereo mode selection mechanism. The clas parameter from the 3GPP EVS codec's FEC module is selected considering frame erase concealment and decoder recovery strategies. The clas parameter is selected from the following predetermined set of classes:

[0382]

number

[0383] Implementing the DFT / LRTD stereo mode selection mechanism by means of other frame type classification is within the scope of this disclosure.

[0384] In the set of conditions (126) defined earlier,

[0385]

number

[0386] This refers to the clas parameter calculated during the preprocessing of the downmixed mono (M) channel when the device 100 for encoding the stereo sound signal operates in DFT stereo mode.

[0387] If device 100 for encoding stereo audio signals is in LRTD stereo mode, the condition is replaced by the following relationship:

[0388]

number

[0389] Here, the indices "L" and "R" refer to the clas parameters calculated in the preprocessing modules for the left (L) channel and the right (R) channel, respectively.

[0390] parameter c LRTD (n) and c DFT (n) are the counters for the LRTD frame and the DFT frame, respectively. These counters are updated frame by frame as part of the LRTD energy analysis processing unit 1301. Two counters c LRTD (n) and c DFT The update of (n) is described in detail in the following section.

[0391] 9.3 Auxiliary parameters calculated in the LRTD energy analysis module When the device 100 for encoding stereo audio signals is operated in LRTD stereo mode, the LRTD / DFT stereo mode selector 114 calculates or updates several auxiliary parameters to improve the stability of the DFT / LRTD stereo mode selector mechanism.

[0392] For certain special types of frames, the LRTD stereo mode operates in what is known as "TD lower mode." TD lower mode is typically applied during the short transition period before switching from LRTD stereo mode to DFT stereo mode. Whether the LRTD stereo mode operates in TD lower mode is determined by the binary lower mode flag m TD Indicated by (n). Binary flag m TD (n) is one of the auxiliary parameters and can be initialized in each frame as follows: m TD (n) = f TDM (n-1) (127) Here, f TDM This is the auxiliary switching flag mentioned above, which will be described later in this section.

[0393] Binary lower mode flag m TD (n) is f UX (n) is reset to 0 or 1 in frames where (n)=1. TD The conditions for resetting (n) can be defined, for example, as follows:

[0394]

number

[0395] f UX If (n)=0, the binary lower mode flag m TD (n) remains unchanged.

[0396] The LRTD energy analysis processing apparatus 1301 uses the two counters c mentioned above. LRTD (n) and c DFT (n) is provided. Counter c LRTD(n) is one of the auxiliary parameters and counts the number of consecutive LRTD frames. This counter is set to 0 for all frames in which the DFT stereo mode is selected by device 100 for encoding the stereo sound signal, and is incremented by 1 for all frames in which the LRTD stereo mode is selected. This can be expressed as follows:

[0397]

number

[0398] Basically, counter c LRTD (n) contains the number of frames since the last DFT->LRTD switch point. Counter c LRTD (n) is limited by a threshold of 100. Counter c DFT (n) counts the number of consecutive DFT frames. Counter c DFT (n) is one of the auxiliary parameters, where the LRTD stereo mode is set to 0 for all frames selected by device 100 for encoding the stereo sound signal, and the DFT stereo mode is incremented by 1 for all frames selected. This can be expressed as follows:

[0399]

number

[0400] Basically, counter c DFT (n) contains the number of frames since the last LRTD->DFT switching point. Counter c DFT (n) is limited by a threshold of 100.

[0401] The last auxiliary parameter calculated in the LRTD energy analysis processing device 1301 is the auxiliary stereo mode switching flag f TDM (n) This parameter is the binary flag f as follows: UX(n) is initialized every frame. f TDM (n) = f UX (n) (131)

[0402] Auxiliary stereo mode switching flag f TDM (n) is set to 0 when the left (L) channel and right (R) channel of the input stereo sound signal 190 are out of phase (OOP). Exemplary methods for OOP detection can be found, for example, in reference [8], the entire content of which is incorporated herein by reference. If an OOP situation is detected, the binary flag s2m is set to 1 in the current frame; otherwise, it is set to 0. Auxiliary stereo mode switching flag f in LRTD stereo mode. TDM (n) is set to zero when the binary flag s2m is set to 1. This can be expressed by relation (132). f TDM (n)←0, if s2m(n)=1 (132)

[0403] If the binary flag s2m(n) is set to zero, the auxiliary toggle flag f TDM (n) can be reset to zero based on, for example, the following set of conditions:

[0404]

number

[0405] Naturally, the DFT / LRTD stereo mode switching mechanism can be implemented using other methods for OOP detection.

[0406] Auxiliary stereo mode switching flag f TDM (n) can also be reset to 0 based on the following set of conditions:

[0407]

number

[0408] In the two sets of conditions defined above, the following conditions clas(n-1)=UNVOICED_CLAS This refers to the clas parameter calculated during the preprocessing of the downmixed mono (M) channel when the device 100 for encoding the stereo sound signal operates in DFT stereo mode.

[0409] If device 100 for encoding stereo audio signals is in LRTD stereo mode, the condition is replaced by the following relationship: clas L (n-1) = UNVOICED_CLAS and clas R (n-1) = UNVOICED_CLAS Here, the indices "L" and "R" refer to the clas parameters calculated during the preprocessing of the left (L) channel and the right (R) channel, respectively.

[0410] 10. Core Encoder A method 150 for encoding a stereo audio signal includes an operation 165 for core encoding the left channel (L) of the stereo audio signal 190 in LRTD stereo mode, an operation 166 for core encoding the right channel (R) of the stereo audio signal 190 in LRTD stereo mode, and an operation 167 for core encoding the downmixed mono (M) channel of the stereo audio signal 190 in DFT stereo mode.

[0411] To perform operation 165, the device 100 for encoding a stereo audio signal includes a core encoder 115, such as a monaural core encoder. To perform operation 166, the device 100 includes a core encoder 116, such as a monaural core encoder. Finally, to perform operation 167, the device 100 for encoding a stereo audio signal includes a core encoder 117 that can operate in DFT stereo mode to encode the downmixed monaural (M) channel of the stereo audio signal 190.

[0412] The selection of appropriate core encoders 115, 116, and 117 is considered to be within the knowledge of those skilled in the art. Therefore, these encoders are not further described in this disclosure.

[0413] 11. Hardware implementation Figure 14 is a simplified block diagram of an example configuration of hardware components forming the above-described device 100 and method 150 for encoding stereo audio signals.

[0414] The device 100 for encoding stereo audio signals may be implemented as part of a mobile terminal, as part of a portable media player, or in any similar device. The device 100 (identified as reference numeral 1400 in Figure 14) comprises an input unit 1402, an output unit 1404, a processing unit 1406, and a storage device 1408.

[0415] The input unit 1402 is configured to receive the input stereo audio signal 190 in Figure 1 in either digital or analog form. The output unit 1404 is configured to output and supply the encoded stereo audio signal. The input unit 1402 and the output unit 1404 may be implemented in a common module, such as a serial input / output device.

[0416] The processing unit 1406 is operably connected to the input unit 1402, the output unit 1404, and the storage device 1408. The processing unit 1406 is implemented as one or more processing units for executing code instructions with the assistance of the functions of various components of the device 100 for encoding stereo sound signals, as shown in Figure 1.

[0417] The storage device 1408 may also include a non-temporary storage device for storing code instructions that can be executed by the processing device 1406, and more specifically, a processing device-readable storage device that contains / stores non-temporary instructions that cause the processing device to perform when executed the operation and components of the method 150 and device 100 for encoding stereo sound signals as described in this disclosure. The storage device 1408 may also include random access memory or buffers for storing intermediate processing data from various functions performed by the processing device 1406.

[0418] Those skilled in the art will understand that the device 100 and method 150 for encoding stereo sound signals are merely illustrative and not intended to be limiting in any way. Other embodiments having the advantages of this disclosure will readily come to mind for those skilled in the art. Furthermore, the disclosed device 100 and method 150 for encoding stereo sound signals may be customized to provide a valuable solution to the requirements and problems that exist in encoding and decoding sound.

[0419] For clarity, not all common features of the implementation of the device 100 and method 150 for encoding stereo sound signals are necessarily illustrated and described. It will be understood that in the development of any such actual implementation of the device 100 and method 150 for encoding stereo sound signals, a number of implementation-specific decisions may need to be made to achieve the developer's particular goals, such as suitability with application, system, network, and business-related constraints, and that these particular goals will vary from implementation to implementation and from developer to developer. Furthermore, it will be understood that while the development attempt may be complex and time-consuming, it is a normal engineering effort for those skilled in the art in the field of sound processing who are interested in this disclosure.

[0420] According to this disclosure, the components / processing devices / modules that process the operations and / or data structures described herein can be implemented using various types of operating systems, computer platforms, network devices, computer programs, and / or general-purpose machines. Those skilled in the art will also recognize that devices of a less general nature, such as hardwired devices, field-programmable gate arrays (FPGAs), or application-specific integrated circuits (ASICs), may also be used. A set of operations and their underlying operations may be implemented by a processing device, computer, or machine, and those operations and their underlying operations may be stored in tangible and / or non-temporary media if they can be stored as a set of non-temporary code instructions readable by the processing device, computer, or machine.

[0421] The device 100 and method 150 for encoding stereo audio signals as described herein may use software, firmware, hardware, or any combination of software, firmware, or hardware suitable for the purposes described herein.

[0422] In the device 100 and method 150 for encoding stereo sound signals as described herein, various operations and subordinate operations can be performed in various orders, and some of the operations and subordinate operations may be optional.

[0423] While this disclosure has been described using its non-limiting exemplary embodiments, these embodiments may be modified at will within the scope of the appended claims without departing from the spirit and nature of this disclosure.

[0424] 12. References This disclosure refers to the following references, the entirety of which is incorporated herein by reference. [1] 3GPP TS 26.445, v.12.0.0, “Codec for Enhanced Voice Services (EVS); Detailed Algorithmic Description”, Sep 2014. [2] M. Neuendorf, M. Multrus, N. Rettelbach, G. Fuchs, J. Robillard, J. Lecompte, S. Wilde, S. Bayer, S. Disch, C. Helmrich, R. Lefevbre, P. Gournay, et al., “The ISO / MPEG Unified Speech and Audio Coding Standard - Consistent High Quality for All Content Types and at All Bit Rates”, J. Audio Eng. Soc., vol. 61, no. 12, pp. 956-977, Dec. 2013. [3] F. Baumgarte, C. Faller, "Binaural cue coding - Part I: Psychoacoustic fundamentals and design principles," IEEE Trans. Speech Audio Processing, vol. 11, pp. 509-519, Nov. 2003. [4] Tommy Vaillancourt, “Method and system using a long-term correlation difference between left and right channels for time domain down mixing a stereo sound signal into primary and secondary channels,” US Patent 10,325,606 B2. [5] 3GPP SA4 contribution S4-170749 “New WID on EVS Codec Extension for Immersive Voice and Audio Services”, SA4 meeting #94, June 26-30, 2017, http: / / www.3gpp.org / ftp / tsg_sa / WG4_CODEC / TSGS4_94 / Docs / S4-170749.zip [6] I. Mani, J. Zhang. “kNN approach to unbalanced data distributions: A case study involving information extraction,” In Proceedings of the Workshop on Learning from Imbalanced Data Sets, pp. 1-7, 2003.KNN [7] V. Malenovsky, T. Vaillancourt, W. Zhe, K. Choo and V. Atti, "Two-stage speech / music classifier with decision smoothing and sharpening in the EVS codec," 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Brisbane, QLD, 2015, pp. 5718-5722. [8] Vaillancourt, T., “Method and system for time-domain down mixing a stereo sound signal into primary and secondary channels using detecting an out-of-phase condition on the left and right channels,” United States Patent US 10,522,157. [9] Maalouf, Maher. “Logistic regression in data analysis: An overview”, 2011 International Journal of Data Analysis Techniques and Strategies. 3. 281-299. 10.1504 / IJDATS.2011.041335.

[10] Ruder, S., “An overview of gradient descent optimization algorithms”. 2016. ArXiv Preprint ArXiv:1609.04747. [Explanation of symbols]

[0425] 100 Stereo Audio Signal Encoding Devices 101, 102 Analyzer 103, 104 Time-domain preprocessing apparatus 105 FFT Transformation Calculator 106 DFT Stereo Parameter Calculator 110, 112 XTALK detection device 111, 113 UNCLR classifier 114 LRTD / DFT Stereo Mode Selector 150 Stereo Audio Signal Encoding Methods 151 Operation of Inter-Channel Correlation Analysis in LRTD Stereo Mode 152 Operation of Inter-Channel Correlation Analysis in DFT Stereo Modes 153 Operation for time-domain preprocessing of the left channel 154 Operation for time-domain preprocessing of the right channel 155 Operation to compute the Fast Fourier Transform (FFT) 156 Operation to calculate DFT stereo parameters 157 Downmixing the left and right channels. 158 The process of calculating the IFFT transform. 159 TD Preprocessing Operation 160, 162 Operation to detect crosstalk (XTALK) 161, 163 How Uncorrelated Stereo Content (UNCLR) Classification Works 164 Operation to select RTD stereo mode or DFT stereo mode 165 Operation to encode the left channel (L) as a core. 166 Operation to encode the right channel (L) as a core. 167 Operation to encode mono (M) channels as a core. 190 Stereo audio signal 1301 LRTD Energy Analysis Apparatus 1400 devices 1402 Input section 1404 Output section 1406 Processing Unit 1408 Storage device P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12 position S1, S2 Speaker M1, M2, M3, M4, M5, M6 Microphone

Claims

1. 1. A device for selecting one of a first stereo mode and a second stereo mode for coding a stereo sound signal including a left channel and a right channel, comprising: a classifier for generating a first output indicative of the presence or absence of uncorrelated stereo content in the stereo sound signal; a detector for generating a second output indicative of the presence or absence of crosstalk in the stereo sound signal; an analysis and processing unit for calculating auxiliary parameters for use in selecting said stereo mode for encoding a stereo sound signal; a stereo mode selection device for selecting the stereo mode for encoding a stereo sound signal in response to the first output, the second output, and the auxiliary parameter; 16. A device comprising:

2. 2. The stereo mode selection device of claim 1, wherein the first stereo mode is a time domain stereo mode in which the left channel and the right channel are coded separately, and the second stereo mode is a frequency domain stereo mode.

3. 3. The stereo mode selection device of claim 1, wherein in a current frame of the stereo sound signal, the stereo mode selection apparatus uses the first output from a previous frame of the stereo sound signal and the second output from the previous frame.

4. 4. The stereo mode selection device according to claim 1, wherein the stereo mode selection apparatus performs an initial selection of the stereo mode for coding the stereo sound signal between the first stereo mode and the second stereo mode.

5. The stereo mode selection device according to claim 4, wherein the stereo mode selection apparatus determines whether the previous frame is an audio frame in order to perform the initial selection of the stereo mode for coding the stereo sound signal.

6. 6. The stereo mode selection device of claim 5, wherein, in the initial selection of the stereo mode, the stereo mode selection device selects the first stereo mode for encoding the stereo sound signal if: (a) the previous frame is determined to be an audio frame; and (b) the first output from the classifier indicates the presence of uncorrelated stereo content in the previous frame or the second output from the detector indicates the presence of crosstalk in the stereo sound signal at the previous frame.

7. 7. The stereo mode selection device of claim 6, wherein, in the initial selection of the stereo mode for encoding the stereo sound signal, if (i) condition (a), condition (b), or both conditions (a) and (b) are not satisfied, and (ii) the stereo mode selected in the previous frame is the second stereo mode, the stereo mode selection apparatus selects the second stereo mode for encoding the stereo sound signal.

8. 8. The stereo mode selection device of claim 6 or 7, wherein, in the first selection of the stereo mode, (i) condition (a), condition (b), or both conditions (a) and (b) are not satisfied, and (ii) the stereo mode selected in the previous frame is the first stereo mode, selects the stereo mode for coding the stereo sound signal with respect to one of the auxiliary parameters.

9. The stereo mode selection device according to claim 8, wherein the one auxiliary parameter is an auxiliary stereo mode switching flag.

10. 7. The stereo mode selection device of claim 4, wherein the stereo mode selection apparatus is configured to select the second stereo mode for coding the stereo sound signal if some given condition is met following the first selection of the stereo mode.

11. The given condition is selected from the following group: - the first stereo mode is selected in the previous frame of the stereo sound signal; - the first stereo mode is initially selected in the current frame of the stereo sound signal; - the second output of the detection device in the current frame indicates the presence of crosstalk in the stereo sound signal; - (i) the previous frame is determined as an audio frame, and (ii) the first output from the classifier indicates the presence of uncorrelated stereo content in the previous frame or the second output from the detector indicates the presence of crosstalk in the stereo sound signal at the previous frame. - in the previous frame, a counter of a number of consecutive frames using the first stereo mode is greater than a first value; - in the previous frame, a counter of a number of consecutive frames using the second stereo mode is greater than a second value; - in the previous frame, the class of the stereo sound signal is within a set of predefined classes; and - (i) a total bit rate used to code the stereo sound signal is greater than or equal to a third value, or (ii) a score representative of crosstalk in the stereo sound signal from the detection device is less than a fourth value in the previous frame.

11. The stereo mode selection device of claim 10, wherein the stereo mode selection device is selected from:

12. 12. The stereo mode selection device of claim 1, wherein the analysis processing unit calculates as one of the auxiliary parameters an auxiliary lower mode flag indicating the first stereo mode to operate in a lower mode applied for a short transition before switching from the first stereo mode to the second stereo mode.

13. 13. The stereo mode selection device of claim 12, wherein the analysis processing device resets the auxiliary lower mode flag in a frame of the stereo sound signal if (a) the previous frame is determined to be an audio frame, and (b) the first output from the classifier indicates the presence of uncorrelated stereo content in the previous frame or the second output from the detector indicates the presence of crosstalk in the stereo sound signal at the previous frame.

14. The stereo mode selection device of claim 13, wherein the analysis processing device resets the auxiliary lower mode flag to 1 in a frame of the stereo sound signal if (1) an auxiliary stereo mode switching flag calculated by the analysis processing device as an auxiliary parameter is equal to 1, (2) the stereo mode of the previous frame is not the first stereo mode, or (3) a counter of frames using the first stereo mode is less than a given value.

15. The stereo mode selection device of claim 14, wherein the analysis processing device resets the auxiliary lower mode flag to 0 in a frame of the stereo sound signal if none of the conditions (1) to (3) are satisfied.

16. 16. The stereo mode selection device of claim 12, wherein the analysis processing device does not change the auxiliary lower mode flag in a frame of the stereo sound signal if at least one of the following conditions is met: (a) the previous frame is determined to be an audio frame, and (b) the first output from the classification device indicates the presence of uncorrelated stereo content in the previous frame or the second output from the detection device indicates the presence of crosstalk in the stereo sound signal at the previous frame.

17. 17. The stereo mode selection device according to claim 1, wherein the analysis processing unit is adapted to calculate a counter of a number of consecutive frames using the first stereo mode as one of the auxiliary parameters.

18. 18. The stereo mode selection device of claim 17, wherein the analysis processing device increments the counter of a number of consecutive frames using the first stereo mode if (a) the previous frame is determined to be an audio frame, and (b) the first output from the classifier indicates the presence of uncorrelated stereo content in the previous frame or the second output from the detector indicates the presence of crosstalk in the stereo sound signal in the previous frame.

19. 19. The stereo mode selection device of claim 17 or 18, wherein the analysis processing device resets the counter of a number of consecutive frames using the first stereo mode to zero if the second stereo mode is selected by the stereo mode selection device in a current frame.

20. 20. The stereo mode selection device according to claim 1, wherein the analysis processing unit is adapted to calculate a counter of a number of consecutive frames using the second stereo mode as one of the auxiliary parameters.

21. 21. The stereo mode selection device according to claim 1, wherein the analysis processing unit generates an auxiliary stereo mode switching flag as one of the auxiliary parameters.

22. 22. The stereo mode selection device of claim 21, wherein the analysis processing device initializes, in a current frame, the auxiliary stereo mode switching flag to 1 if (a) the previous frame is determined to be an audio frame and (b) the first output from the classifier indicates the presence of uncorrelated stereo content in the previous frame or the second output from the detector indicates the presence of crosstalk in the stereo sound signal in the previous frame, and (ii) to 0 when condition (a), condition (b), or both conditions (a) and (b) are not satisfied.

23. 23. The stereo mode selection device of claim 21 or 22, wherein the analysis processing device is configured to set the auxiliary stereo mode switch flag to 0 when the left and right channels of the stereo sound signal are out of phase.

24. 15. The stereo mode selection device according to claim 9 or 14, wherein the analysis processing unit generates the auxiliary stereo mode switching flag as one of the auxiliary parameters.

25. 25. The stereo mode selection device of claim 24, wherein the analysis processing device initializes, in a current frame, the auxiliary stereo mode switching flag to 1 if (a) the previous frame is determined to be an audio frame and (b) the first output from the classifier indicates the presence of uncorrelated stereo content in the previous frame or the second output from the detector indicates the presence of crosstalk in the stereo sound signal in the previous frame, and (ii) to 0 when condition (a), condition (b), or both conditions (a) and (b) are not satisfied.

26. 26. The stereo mode selection device of claim 24 or 25, wherein the analysis processing device is configured to set the auxiliary stereo mode switch flag to 0 when the left and right channels of the stereo sound signal are out of phase.

27. 1. A method for selecting one of a first stereo mode and a second stereo mode for coding a stereo sound signal including a left channel and a right channel, comprising: generating a first output indicative of a presence or absence of uncorrelated stereo content in the stereo sound signal; generating a second output indicative of the presence or absence of crosstalk in the stereo sound signal; calculating auxiliary parameters for use in selecting said stereo mode for coding a stereo sound signal; selecting the stereo mode for encoding a stereo sound signal in response to the first output, the second output, and the auxiliary parameter; The method includes:

28. 28. The stereo mode selection method of claim 27, wherein the first stereo mode is a time domain stereo mode in which the left and right channels are coded separately, and the second stereo mode is a frequency domain stereo mode.

29. 29. The stereo mode selection method of claim 27 or 28, wherein in a current frame of the stereo sound signal, selecting the stereo mode comprises using the first output from a previous frame of the stereo sound signal and the second output from the previous frame.

30. 30. The method of claim 27, wherein the step of selecting the stereo mode comprises performing an initial selection of the stereo mode for coding the stereo sound signal between the first stereo mode and the second stereo mode.

31. 31. The stereo mode selection method of claim 30, wherein the step of selecting the stereo mode includes determining whether the previous frame is an audio frame to implement the initial selection of the stereo mode for coding the stereo sound signal.

32. 32. The stereo mode selection method of claim 31, wherein the step of selecting the stereo mode includes selecting the first stereo mode for encoding the stereo sound signal if, in the initial selection of the stereo mode, (a) the previous frame is determined as an audio frame, and (b) the first output indicates a presence of uncorrelated stereo content in the previous frame or the second output indicates a presence of crosstalk in the stereo sound signal at the previous frame.

33. 33. The stereo mode selection method of claim 32, wherein the step of selecting the stereo mode includes selecting the second stereo mode for encoding the stereo sound signal if, in the initial selection of the stereo mode for encoding the stereo sound signal, (i) condition (a), condition (b), or both conditions (a) and (b) are not satisfied, and (ii) the stereo mode selected in the previous frame was the second stereo mode.

34. 34. The stereo mode selection method of claim 32 or 33, wherein the step of selecting the stereo mode includes selecting the stereo mode for coding the stereo sound signal with respect to one of the auxiliary parameters if, in the initial selection of the stereo mode, (i) condition (a), condition (b), or both conditions (a) and (b) are not satisfied, and (ii) the stereo mode selected in the previous frame is the first stereo mode.

35. 35. The stereo mode selection method of claim 34, wherein the one auxiliary parameter is an auxiliary stereo mode switching flag.

36. 33. The method of claim 30, wherein the step of selecting the stereo mode comprises selecting the second stereo mode for coding the stereo sound signal if, following the first selection of the stereo mode, some given condition is met.

37. The given condition is selected from the following group of conditions: - the first stereo mode is selected in the previous frame of the stereo sound signal; - the first stereo mode is initially selected in the current frame of the stereo sound signal; - the second output in the current frame indicates a presence of crosstalk in the stereo sound signal; - (i) the previous frame is determined as an audio frame, and (ii) the first output indicates a presence of uncorrelated stereo content in the previous frame or the second output indicates a presence of crosstalk in the stereo sound signal at the previous frame. - in the previous frame, a counter of a number of consecutive frames using the first stereo mode is greater than a first value; - in the previous frame, a counter of a number of consecutive frames using the second stereo mode is greater than a second value; - in the previous frame, the class of the stereo sound signal is within a set of predefined classes; and (i) a total bit rate used to code the stereo sound signal is greater than or equal to a third value, or (ii) a score representative of crosstalk in the stereo sound signal is less than a fourth value in the previous frame.

37. The stereo mode selection method of claim 36, wherein the stereo mode selection is selected from:

38. 38. The stereo mode selection method of claim 27, wherein the step of calculating the auxiliary parameters includes calculating as one of the auxiliary parameters an auxiliary lower mode flag indicating the first stereo mode to operate in a lower mode that applies over a short transition before switching from the first stereo mode to the second stereo mode.

39. 39. The stereo mode selection method of claim 38, wherein the step of calculating the auxiliary parameters includes resetting the auxiliary lower mode flag in the frame of the stereo sound signal if (a) the previous frame is determined to be an audio frame, and (b) the first output indicates the presence of uncorrelated stereo content in the previous frame or the second output indicates the presence of crosstalk in the stereo sound signal at the previous frame.

40. 40. The stereo mode selection method of claim 39, wherein the step of calculating the auxiliary parameter includes resetting the auxiliary lower mode flag to 1 in a frame of the stereo sound signal if (1) an auxiliary stereo mode switching flag calculated as the auxiliary parameter is equal to 1, (2) the stereo mode of the previous frame is not the first stereo mode, or (3) a counter of frames using the first stereo mode is less than a given value.

41. 41. The stereo mode selection method of claim 40, wherein the step of calculating the auxiliary parameters includes resetting the auxiliary sub-mode flag to 0 in a frame of the stereo sound signal if none of the conditions (1) to (3) are satisfied.

42. 42. The stereo mode selection method of claim 38, wherein the step of calculating the auxiliary parameters includes making no changes to the auxiliary lower mode flag in the frame of the stereo sound signal if at least one of the following conditions is met: (a) the previous frame is determined to be an audio frame; and (b) the first output indicates the presence of uncorrelated stereo content in the previous frame or the second output indicates the presence of crosstalk in the stereo sound signal at the previous frame.

43. 43. The stereo mode selection method according to claim 27, wherein the step of calculating the auxiliary parameters comprises calculating a counter of a number of consecutive frames using the first stereo mode as one of the auxiliary parameters.

44. 44. The stereo mode selection method of claim 43, wherein the step of calculating the auxiliary parameter includes incrementing the counter of a number of consecutive frames using the first stereo mode if (a) the previous frame is determined to be an audio frame, and (b) the first output indicates the presence of uncorrelated stereo content in the previous frame or the second output indicates the presence of crosstalk in the stereo sound signal in the previous frame.

45. 45. The stereo mode selection method of claim 43 or 44, wherein the step of calculating the auxiliary parameter comprises resetting to zero the counter of a number of consecutive frames using the first stereo mode if the second stereo mode is selected in the current frame.

46. 46. ​​The stereo mode selection method according to claim 27, wherein the step of calculating the auxiliary parameters comprises calculating a counter of a number of consecutive frames using the second stereo mode as one of the auxiliary parameters.

47. 47. The stereo mode selection method of any one of claims 27 to 46, wherein the step of calculating the auxiliary parameters comprises generating an auxiliary stereo mode switch flag as one of the auxiliary parameters.

48. 48. The stereo mode selection method of claim 47, wherein the step of calculating the auxiliary parameter includes: (i) initializing, in a current frame, the auxiliary stereo mode switching flag to 1 if (a) the previous frame is determined to be an audio frame, and (b) the first output indicates the presence of uncorrelated stereo content in the previous frame or the second output indicates the presence of crosstalk in the stereo sound signal in the previous frame, and (ii) initializing to 0 when condition (a), condition (b), or both conditions (a) and (b) are not satisfied.

49. 49. The stereo mode selection method of claim 47 or 48, wherein the step of calculating the auxiliary parameters includes setting the auxiliary stereo mode switch flag to 0 when the left channel and the right channel of the stereo sound signal are out of phase.

50. 41. The stereo mode selection method of claim 35 or 40, wherein the step of calculating the auxiliary parameters includes generating the auxiliary stereo mode switch flag as one of the auxiliary parameters.

51. The stereo mode selection method of claim 50, wherein the step of calculating the auxiliary parameter includes: (i) initializing, in the current frame, the auxiliary stereo mode switching flag to 1 if (a) the previous frame is determined to be an audio frame, and (b) the first output indicates the presence of uncorrelated stereo content in the previous frame or the second output indicates the presence of crosstalk in the stereo sound signal in the previous frame, and (ii) initializing to 0 when condition (a), condition (b), or both conditions (a) and (b) are not satisfied.

52. 52. The stereo mode selection method of claim 50 or 51, wherein the step of calculating the auxiliary parameters includes setting the auxiliary stereo mode switch flag to 0 when the left channel and the right channel of the stereo sound signal are out of phase.