Decoder and decoding method for LC3 concealment
By introducing error concealment mode and non-linear attenuation technology into the decoder of the audio signal, full frame loss and partial frame loss are processed according to the threshold frequency and previous frame information, which solves the problem of low frame loss concealment efficiency in the existing technology and improves efficiency. Reconstruction quality and stability of audio signals.
Patent Information
- Application Number
- CN202080014143.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-11
- Filing Date
- 2020-02-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-02-12
AI Technical Summary
When the existing technology handles frame loss concealment, it is difficult to effectively handle the situation of full frame loss and partial frame loss, especially in the spectrum of the audio signal, resulting in artifacts and signal quality degradation.
Provide a decoder and decoding method, reconstruct the spectrum of the audio signal through the error concealment mode, use the threshold frequency and the bit stream information of the previous frame for error concealment, including full frame loss and partial frame loss processing strategies, using non- Techniques such as linear attenuation and symbol scrambling adjust parameters based on the tonality and similarity of the signal.
It effectively reduces artifacts caused by frame loss and improves the reconstruction quality of audio signals. Especially when part of the spectrum is available, error concealment technology can be flexibly applied to improve signal stability and quality.
Smart Images

Figure CN113544773B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a decoder and a decoding method for LC3 frame loss concealment including full frame loss concealment and partial frame loss concealment. Background Art
[0002] Transform-based audio codecs rely on an encoded representation of the spectrum of an audio frame. Such a spectrum consists of multiple spectral lines. For various reasons, some or even all of the spectral lines may not be available at the decoder end. The concept of audio error concealment in the frequency domain can, for example, provide a way to mitigate artifacts caused by such missing spectral lines. A common approach is to find a substitute for the missing spectral lines that is as good as possible.
[0003] In the prior art, various frame loss concealment techniques can be used.
[0004] For example, the concept of frame loss concealment in the frequency domain is discussed in [1], where silence, repetition, noise substitution and prediction are mentioned in particular. Those techniques are always combined with a fade-out process, whereby the signal is usually faded towards zero or towards some background noise / comfort noise over several lost frames.
[0005] In [2], different frequency band attenuation factors are proposed depending on the energy in the frequency band: for example, a larger attenuation factor can be applied to frequency bands with energy above a threshold, and a smaller attenuation factor can be applied to frequency bands with energy below a threshold. In addition, in [2], the energy progression of the last good frame is observed, and if the energy in the last good frame is less than the second-to-last good frame, a stronger attenuation is applied.
[0006] Furthermore, the spectral shape of the signal may also be gradually morphed towards some common shape. This approach is particularly used in codecs based on Linear Predictive Coding (LPC), such as EVS (Enhanced Voice Services), where the LPC coefficients are mixed to some provided average coefficients. Summary of the invention
[0007] The object of the invention is to provide an improved error concealment concept. The object of the invention is solved by a decoder according to claim 1 , a method according to claim 39 and a computer program according to claim 40 .
[0008] A decoder for decoding a current frame to reconstruct an audio signal is provided. The audio signal is encoded within the current frame. The current frame includes a current bitstream payload. The current bitstream payload includes a plurality of payload bits. The plurality of payload bits encode a plurality of spectral lines of a spectrum of the audio signal. Each of the payload bits is presented at a position within the current bitstream payload. The decoder includes a decoding module and an output interface. The decoding module is configured to reconstruct the audio signal. The output interface is configured to output the audio signal. The decoding module includes an error concealment mode, wherein if the decoding module is in the error concealment mode, the decoding module is configured to reconstruct the audio signal by error concealing the following spectral lines of the spectrum of the audio signal: the spectral lines present a frequency greater than a threshold frequency. And / or, if the decoding module performs error concealment, the decoding module is configured to perform error concealment in a manner depending on whether a previous bitstream payload of a previous frame before the current frame encodes a signal component of the audio signal as a tonality or harmonic.
[0009] In addition, a method for decoding a current frame to reconstruct an audio signal is provided. The audio signal is encoded in the current frame, wherein the current frame includes a current bitstream payload, wherein the current bitstream payload includes a plurality of payload bits. The plurality of payload bits encode a plurality of spectral lines of a spectrum of the audio signal. Each of the payload bits is presented at a position within the current bitstream payload. The method comprises:
[0010] reconstructing an audio signal, wherein, in an error concealment mode, the reconstructing the audio signal is performed by performing error concealment on spectral lines in the frequency spectrum of the audio signal that exhibit frequencies greater than a threshold frequency; and / or, if error concealment is performed, performing the error concealment in a manner that depends on whether a previous bitstream payload of a previous frame before the current frame encoded a signal component of the audio signal that is a tonality or a harmonic; and
[0011] - Output audio signal.
[0012] Furthermore, a computer program is provided for implementing the above method when executed on a computer or a signal processor.
[0013] In some cases, the error concealment concept may be applied to the entire frame, for example if the entire frame is lost or marked as invalid, or - even if part of the spectrum is available - if full frame loss concealment is considered the best possible error concealment strategy.
[0014] However, in other cases, error concealment techniques may be applied only to a portion of the frame, for example if part of the spectrum is available.
[0015] The situation where part of the spectrum is available may occur, for example, in scalable coding, such as AAC Scalable, AAC SLS or BSAC, where some layers are received but others are not (AAC = Advanced Audio Coding, SLS = Scalable to Lossless, BSAC = Bit Sliced Arithmetic Coding).
[0016] Alternatively, part of the spectrum may be made available, for example in redundant frame coding, where redundant low-quality copies of lost frames are available, i.e. in the context of VoIP or VoLTE (see, for example [3] and [4] for more information on robustness and error resilience in VoIP and VoLTE; VoIP = Voice over IP / Voice over Internet Protocol; VoLTE = Voice over LTE / Voice over Long Term Evolution).
[0017] Alternatively, parts of the spectrum may be available, for example, when selective error detection is performed, such as in AAC, using RVLC (Reversible Variable Length Coding) for the scale factor data, where certain scale factors may be detected as corrupted, resulting in a certain number of corrupted spectral lines; or, for example, in LC3 for DECT (Digital Enhanced Cordless Telecommunications), where errors in the coded representation of parts of the spectrum (representing spectral ranges that are less psychoacoustically important) can be detected separately. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The embodiments of the present invention are described in more detail below with reference to the accompanying drawings, wherein:
[0019] Figure 1 A decoder for decoding a current frame to reconstruct an audio signal portion of an audio signal according to an embodiment is shown.
[0020] Figure 2 A decoding module according to certain embodiments is shown.
[0021] Figure 3 An overview of a decoding module according to an embodiment for clean channel decoding is shown.
[0022] Figure 4 An overview of a decoding module according to an embodiment for full frame loss concealment is shown.
[0023] Figure 5 An overview of a decoding module according to an embodiment for partial frame loss concealment is shown.
[0024] Figure 6 A fading function according to an embodiment is shown which depends on the number of dropped frames in a row and also on the frame length.
[0025] Figure 7 A threshold for symbol scrambling according to an embodiment is shown, which depends on the number of lost frames in a row and also on the frame length.
[0026] Figure 8 An energy threshold factor according to an embodiment is shown, which depends on the number of dropped frames in a row and also on the frame length.
[0027] Fig. 9 A non-linear attenuation depending on the number of dropped frames in a row is shown according to an embodiment. DETAILED DESCRIPTION
[0028] Figure 1 A decoder 100 for decoding a current frame to reconstruct an audio signal according to an embodiment is shown.
[0029] The audio signal is encoded within a current frame. The current frame includes a current bitstream payload. The current bitstream payload includes a plurality of payload bits. The plurality of payload bits encode a plurality of spectral lines of a spectrum of the audio signal. Each of the payload bits is presented at a position within the current bitstream payload.
[0030] The decoder 100 includes a decoding module 110 and an output interface 120 .
[0031] The decoding module 110 is configured to reconstruct the audio signal.
[0032] The output interface 120 is configured to output an audio signal.
[0033] The decoding module 110 comprises an error concealment mode, wherein if the decoding module 110 is in the error concealment mode, the decoding module 110 is configured to reconstruct the audio signal by error concealing those spectral lines of the audio signal spectrum which exhibit frequencies greater than a threshold frequency.
[0034] And / or, if the decoding module 110 performs error concealment, the decoding module 110 is configured to perform error concealment in a manner that depends on whether a previous bitstream payload of a previous frame before the current frame encodes a signal component of the audio signal that is a tonal or a harmonic.
[0035] In some embodiments, the decoding module may, for example, be in the error concealment mode if the current bitstream payload of the current frame includes uncorrectable errors and / or if the current frame is lost. The current bitstream payload may, for example, include uncorrectable errors if errors still exist after the decoder 100 has performed corrections; or if the current bitstream payload includes errors and no corrections are performed at all. A frame including uncorrectable errors may, for example, be referred to as a damaged frame.
[0036] For example, according to an embodiment, specific error concealment parameters may be configured, for example, depending on whether said previous bitstream payload of said previous frame before the current frame encoded said signal component of the audio signal as a tonality or a harmonic.
[0037] According to an embodiment, the previous frame may be, for example, the last received frame that has been decoded by the decoding module 110 without error concealment in the full frame loss concealment mode.
[0038] Hereinafter, embodiments are described in more detail.
[0039] For example, the spectrum may be considered to be subdivided into those spectral lines that are available and should be used, and those spectral lines that are not available or should not be used (eg, but they may be available, for example).
[0040] According to some embodiments, for example, it can be performed as follows:
[0041] In some cases, all spectral lines are available and should be used, so for example no frame loss concealment may be performed.
[0042] In other cases, some spectral lines are available and should be used, and the lost spectral lines can, for example, be partially concealed by frame loss.
[0043] In other cases, no spectral lines are available or should not be used, and full frame drop concealment can be performed, for example.
[0044] In the following, tonality-dependent error concealment according to some embodiments is described.
[0045] In an embodiment, if the decoding module 110 performs error concealment, the decoding module 110 may, for example, be configured to reconstruct the current spectrum of the audio signal by performing error concealment using a plurality of symbols of a previous spectrum of the audio signal, the plurality of symbols being encoded in a previous frame, wherein the decoding module 110 may, for example, be configured to perform error concealment in a manner depending on whether the previous frame encodes a signal component that is a tonality or a harmonic. For example, parameters for error concealment may be selected in different ways, for example, depending on whether the signal component is a tonality or a harmonic.
[0046] In an embodiment, the previous frame may be, for example, the last received frame decoded by the decoding module 110 without error concealment. Alternatively, the previous frame may be, for example, the last received frame decoded by the decoding module 110 without error concealment in a full frame loss concealment mode. Alternatively, the previous frame may be, for example, the last received frame decoded by the decoding module 110 without error concealment in a partial frame loss concealment mode or a full frame loss concealment mode.
[0047] According to an embodiment, if the decoding module 110 performs error concealment, and if the previous bitstream payload of the previous frame encodes a signal component that is a tonality or a harmonic, the decoding module 110 may, for example, be configured to flip one or more symbols of the multiple symbols of the previous spectrum to reconstruct the current spectrum, wherein a percentage value p indicating a probability that a symbol of the multiple symbols of the previous spectrum is to be flipped by the decoding module 110 to reconstruct the current spectrum may, for example, be between 0%≤p≤50%, wherein the decoding module 110 may, for example, be configured to determine the percentage value p. In an embodiment, the decoding module 110 may, for example, employ a pseudo-random number sequence to determine whether the considered symbol of the previous spectrum should actually be flipped depending on the percentage value p.
[0048] In an embodiment, the decoding module 110 may be configured to increase the percentage value p, for example, depending on the number of subsequent frames. The number of subsequent frames may, for example, indicate how many subsequent (partial or complete) frame loss error concealments the decoding module 110 has performed; or the number of subsequent frames may, for example, indicate how many subsequent frame error concealments the decoding module 110 has performed in a specific error concealment mode.
[0049] In an embodiment, the decoding module 110 may, for example, be configured to determine the percentage value p according to a function that depends on the number of subsequent frames, the number of subsequent frames being an independent variable of the function.
[0050] According to an embodiment, the decoding module 110 can be configured, for example, to determine a percentage value p such that if the number of subsequent frames is less than a first threshold, p is 0%; if the number of subsequent frames is greater than or equal to the first threshold and less than a second threshold, 0%≤p≤50%; and if the number of subsequent frames is greater than the second threshold, p=50%.
[0051] In an embodiment, the decoding module 110 may, for example, be configured to determine the percentage value p such that the percentage value p increases linearly within a range between the first threshold and the second threshold depending on the number of subsequent frames.
[0052] According to an embodiment, if the decoding module 110 performs error concealment and if the previous bitstream payload of the previous frame did not encode a signal component that is a tonality or harmonic, the decoding module 110 may be configured, for example, to flip 50% of the symbols of the previous spectrum to reconstruct the current spectrum.
[0053] In an embodiment, if the decoding module 110 performs error concealment, the decoding module 110 can, for example, be configured to reconstruct the current spectrum of the audio signal by using multiple amplitudes of the previous spectrum of the audio signal for error concealment, depending on whether the previous frame encoded a signal component that is a tonality or a harmonic, and the multiple amplitudes were encoded in the previous frame.
[0054] According to an embodiment, if the decoding module 110 performs error concealment, the decoding module 110 may be configured, for example, to attenuate multiple amplitudes of a previous spectrum according to a nonlinear attenuation characteristic to reconstruct a current spectrum, wherein the nonlinear attenuation characteristic depends on whether a previous bitstream payload of a previous frame encodes a signal component that is a tonality or a harmonic. For example, the parameters of the nonlinear attenuation characteristic may be selected in different ways, for example, depending on whether the signal component is a tonality or a harmonic.
[0055] In an embodiment, if the decoding module 110 performs error concealment, and if a previous bitstream payload of a previous frame encodes a signal component that is a tonality or a harmonic, the decoding module 110 may, for example, be configured to attenuate multiple amplitudes of the previous spectrum depending on a stability factor, wherein the stability factor indicates the similarity between the current spectrum and the previous spectrum; or wherein the stability factor indicates the similarity between the previous spectrum and a previous previous spectrum of a previous previous frame before the previous frame.
[0056] According to an embodiment, the previous frame may be, for example, the last received frame before the previous frame that has been decoded by the decoding module 110 without error concealment. Alternatively, the previous frame may be, for example, the last received frame before the previous frame that has been decoded by the decoding module 110 without error concealment in the full frame loss concealment mode (e.g., the second to last received frame). Alternatively, the previous frame may be, for example, the last received frame before the previous frame that has been decoded by the decoding module 110 without error concealment in the partial frame loss concealment mode or the full frame loss concealment mode.
[0057] In an embodiment, if the decoding module 110 is configured to perform partial frame loss concealment, the stability factor may, for example, indicate the similarity between the current spectrum and the previous spectrum. If the decoding module 110 is configured to perform full frame loss concealment, the stability factor may, for example, indicate the similarity between the previous spectrum and the previous previous spectrum.
[0058] According to an embodiment, the decoding module 110 may, for example, be configured to determine the energy of a spectral bin of a previous spectrum. In addition, the decoding module 110 may, for example, be configured to determine whether the energy of the spectral bin is less than an energy threshold. If the energy is less than the energy threshold, the decoding module 110 may, for example, be configured to attenuate the amplitude of the multiple amplitudes allocated to the spectral bin with a first fading factor. If the energy is greater than or equal to the energy threshold, the decoding module 110 may, for example, be configured to attenuate the amplitude of the multiple amplitudes allocated to the spectral bin with a second fading factor that is less than the first fading factor. The decoding module 110 may, for example, be configured to attenuate so that the attenuation of the one of the multiple amplitudes is increased by using a smaller fading factor for the attenuation of the one of the multiple amplitudes.
[0059] In an embodiment, the decoding module 110 may, for example, be configured to determine the energy of a spectrum band including a plurality of spectrum intervals of a previous spectrum. The decoding module 110 may, for example, be configured to determine whether the energy of the spectrum band is less than an energy threshold. If the energy is less than the energy threshold, the decoding module 110 may, for example, be configured to attenuate the amplitude of the spectrum interval assigned to the spectrum band among the plurality of amplitudes by a first attenuation factor. If the energy is greater than or equal to the energy threshold, the decoding module 110 may, for example, be configured to attenuate the amplitude of the spectrum interval assigned to the spectrum band among the plurality of amplitudes by a second attenuation factor that is less than the first attenuation factor. The decoding module 110 may, for example, be configured to perform attenuation such that the attenuation of one of the plurality of amplitudes is increased by using a smaller attenuation factor for the attenuation of the one of the plurality of amplitudes.
[0060] According to an embodiment, the decoding module 110 may be configured to determine a first fading factor, such that the first fading factor becomes smaller depending on the number of subsequent frames. In addition, the decoding module 110 may be configured to determine a second fading factor, such that the second fading factor becomes smaller depending on the number of subsequent frames.
[0061] In an embodiment, the decoding module 110 may be configured to determine a first fading factor and a second fading factor, such that
[0062] If the current frame is the first of the subsequent frames,
[0063] cum_fading_slow = 1, and
[0064] cum_fading_fast=1,
[0065] And if the current frame is one of the frames after the first frame of the subsequent frames, the first fading factor and the second fading factor may be determined according to the following formula, for example, depending on the number of the subsequent frames:
[0066] cum_fading_slow=cum_fading_slow*slow;
[0067] cum_fading_fast=cum_fading_fast*fast;
[0068] Wherein cum_fading_slow on the right side of the formula is the first fading factor of the previous frame (e.g., initialized to 1 at the first lost frame), wherein cum_fading_slow on the left side of the formula is the first fading factor of the current frame, wherein cum_fading_fast on the right side of the formula is the second fading factor of the previous frame (e.g., initialized to 1 at the first lost frame), wherein cum_fading_fast on the left side of the formula is the second fading factor of the current frame, where 1>slow>fast>0.
[0069] According to an embodiment, 1>slow>fast>0.3.
[0070] In an embodiment, the decoding module 110 can be configured, for example, to determine the energy threshold so that if the number of subsequent frames is less than a third threshold, the energy threshold is equal to the first energy value; if the number of subsequent frames is greater than or equal to the third threshold and less than a fourth threshold, the energy threshold is less than the first energy value and greater than the second energy value; and if the number of subsequent frames is greater than the fourth threshold, the energy threshold is equal to the second energy value.
[0071] According to an embodiment, the decoding module 110 may, for example, be configured to determine the energy threshold such that the energy threshold decreases linearly within a range between the third threshold and the fourth threshold according to the number of subsequent frames.
[0072] For those spectral lines that are not available or should not be used, replacements are generated while – depending on the tonality of the previously received signal and, if this information is available, on the tonality of the currently received signal – preserving a certain degree of tonality:
[0073] If the indicator indicates that the last good signal was tonality, more tonality is retained.
[0074] If the indicator indicates that the last good signal was not a tonality, then less tonality is retained.
[0075] The tonality is mainly represented by the phase relationship between the intervals within a frame and / or the phase relationship between the same intervals of subsequent frames.
[0076] Some embodiments focus on the first aspect, that is, tonality is mainly represented by the phase relationship between each interval within a frame.
[0077] The phase of each interval within a frame is characterized primarily by their sign, but can also be characterized by the amplitude relationship of adjacent intervals. Therefore, preservation of amplitude relationships as well as preservation of signs leads to highly preserved tonality. Vice versa, the more the amplitude and / or sign relationships between subsequent intervals change, the less tonality is preserved.
[0078] Manipulation of symbols according to some embodiments is now described.
[0079] According to the prior art, two methods are known:
[0080] According to a first method, frame repetition is applied: symbols from the previous spectrum are kept.
[0081] In the second method, noise substitution is performed: the symbols are scrambled relative to the previous spectrum; 50% of the symbols are randomly flipped.
[0082] For unvoiced signals, noise substitution provides good results.
[0083] For voiced signals, frame repetition may be used instead, but for longer losses, the preserved tonality (preferred at the beginning of the loss) may become annoying.
[0084] Embodiments are based on the finding that for voiced signals, a transition phase between frame repetition and noise replacement is desirable.
[0085] According to some embodiments, this may be achieved, for example, by randomly flipping a percentage of the symbols per frame, where the percentage lies between 0% and 50% and increases over time.
[0086] The manipulation of amplitude according to some embodiments is now described.
[0087] The simplest method often used in the prior art is to apply a certain attenuation factor to all frequency bins. This attenuation factor increases frame by frame to achieve a smooth fade-out. The fade-out speed can be fixed or can depend on the signal characteristics. In this way, the relationship between the amplitudes of adjacent bins and the spectral shape of the entire frame is preserved.
[0088] Also known in the art is band-by-band attenuation using different attenuation factors depending on the energy within each band. While this approach also preserves the relationship of the amplitudes of adjacent bins within each band, the spectral shape of the entire frame is flat.
[0089] According to some embodiments, intervals with larger values are attenuated more strongly than intervals with smaller values. To this end, some embodiments may, for example, define a nonlinear attenuation characteristic. Such a nonlinear attenuation characteristic prevents overshoots that may otherwise occur because aliasing cancellation is not ensured during overlap-addition and changes the amplitude relationship of adjacent intervals, resulting in a flatter spectral shape. In order to flatten the spectral shape. Some embodiments are based on the following findings: if the ratio of the amplitudes of adjacent intervals was previously higher than 1, then the ratio should remain higher than 1; and if the ratio was previously lower than 1, the ratio should remain lower than 1.
[0090] To apply this attenuation gracefully, in some embodiments the nonlinearity may be small at the beginning of the loss for example and may increase for example later. In embodiments its adjustment over time may for example depend on the tonality of the signal: According to some embodiments the nonlinearity may for example be stronger for unvoiced signals than for voiced signals.
[0091] This non-linear decay characteristic affects the spectrum shape. In an embodiment, the spectrum may, for example, become flatter over time, which reduces the chance of annoying synthetic sound artifacts during burst loss.
[0092] In the following, partial frame loss concealment according to some embodiments is described.
[0093] According to an embodiment, the error concealment mode may be, for example, a partial frame loss concealment mode, wherein, if the decoding module 110 is in the partial frame loss concealment mode, the decoding module 110 may be, for example, configured to reconstruct the audio signal without error concealing one or more first spectral lines of a plurality of spectral lines of the spectrum, the one or more first spectral lines presenting a frequency less than or equal to a threshold frequency, wherein the one or more first spectral lines have been encoded by a first group of one or more payload bits of a plurality of payload bits. In addition, the decoding module 110 may be, for example, configured to reconstruct the audio signal by error concealing one or more second spectral lines of a plurality of spectral lines of the spectrum, the one or more second spectral lines presenting a frequency greater than the threshold frequency, wherein the one or more second spectral lines have been encoded by a second group of one or more payload bits of a plurality of payload bits.
[0094] In an embodiment, the decoding module 110 may be configured, for example, to detect whether the current frame does not include any damaged bits encoding the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines presenting a frequency less than or equal to a threshold frequency. In addition, the decoding module 110 may be configured, for example, to detect whether the current frame includes one or more damaged bits encoding the one or more second spectral lines of the spectrum of the audio signal, the one or more second spectral lines presenting a frequency greater than the threshold frequency. The one or more damaged bits are one or more payload bits that are distorted or potentially distorted in the payload bits. If the current frame does not include any damaged bits encoding the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines presenting a frequency less than or equal to a threshold frequency, and if the current frame includes the one or more damaged bits encoding the one or more second spectral lines of the spectrum of the audio signal, the one or more second spectral lines presenting a frequency greater than the threshold frequency, the decoding module 110 may, for example, be configured to perform error concealment in a partial frame loss concealment mode by performing error concealment on the one or more second spectral lines of the spectrum greater than the threshold frequency.
[0095] According to an embodiment, if the current frame does not include any damaged bits encoding the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines presenting a frequency less than or equal to a threshold frequency, and if the current frame includes the one or more damaged bits encoding the one or more second spectral lines of the spectrum of the audio signal, the one or more second spectral lines presenting a frequency greater than the threshold frequency, the decoding module 110 may, for example, be configured to reconstruct the audio signal by decoding the first group of one or more payload bits of a plurality of payload bits, wherein the first group of one or more payload bits encode the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines presenting a frequency less than or equal to the threshold frequency.
[0096] In an embodiment, the decoding module 110 may, for example, be configured to detect whether the current frame is lost, wherein if the decoder 100 has detected that the current frame is lost, the decoding module 110 may, for example, be configured to reconstruct the audio signal by performing error concealment on the one or more second spectral lines of the spectrum of the audio signal presenting a frequency greater than a threshold frequency. In addition, the decoding module 110 may, for example, be configured to decode the first group of one or more payload bits of a plurality of payload bits without performing error concealment on the first group, the first group of one or more payload bits encoding the one or more first spectral lines of the spectrum of the audio signal less than or equal to the threshold frequency, wherein the first group of one or more payload bits of the plurality of payload bits are one or more payload bits of a redundant frame different from the current frame.
[0097] In an embodiment, the redundant frame may, for example, be a bandwidth-restricted version of the current frame. For example, the redundant frame may, for example, provide data encoding the audio signal in the same time period as the current frame (e.g., a reduced data set compared to the current frame). The data may, for example, be different for a number of payload bits encoding the audio signal of the one or more first spectral lines of the spectrum of the audio signal at the one or more first frequencies less than or equal to the threshold frequency because they are encoded with fewer bits than the current frame of the first frequency of the spectrum in the same time period of the current frame.
[0098] In an embodiment, if the decoding module 110 is configured to perform error concealment in a full frame loss concealment mode, the decoding module 110 is configured to perform error concealment for all spectral lines of the (entire) spectrum (which can otherwise be reconstructed by all payload bits of the current bitstream payload of the current frame).
[0099] According to an embodiment, the plurality of payload bits are a plurality of current payload bits. If the decoding module 110 is in a partial frame loss concealment mode, the decoding module 110 may, for example, be configured to perform error concealment on the one or more second spectral lines of the spectrum of the audio signal using one or more stored spectral lines, the one or more second spectral lines exhibiting a frequency greater than a threshold frequency, the one or more stored spectral lines having been encoded by one or more previous payload bits of a previous bitstream payload of a previous frame.
[0100] In an embodiment, the spectrum may be, for example, a current quantized spectrum. If the decoding module 110 performs error concealment in a partial frame loss concealment mode, the decoding module 110 may be, for example, configured to perform error concealment on the one or more second spectral lines of the spectrum of the audio signal to obtain one or more intermediate spectral lines of the current quantized spectrum, wherein the one or more second spectral lines present a frequency greater than a threshold frequency.
[0101] According to an embodiment, the spectrum is a current quantized spectrum. If the decoding module 110 performs error concealment in a partial frame loss concealment mode, the decoding module 110 may, for example, be configured to perform error concealment on the one or more second spectral lines of the spectrum of the audio signal to obtain one or more intermediate spectral lines of the current quantized spectrum, the one or more second spectral lines presenting a frequency greater than a threshold frequency, wherein the decoding module 110 may, for example, be configured to rescale the one or more intermediate spectral lines using a rescaling factor to reconstruct the audio signal.
[0102] In an embodiment, the decoding module 110 may, for example, be configured to determine the rescaling factor depending on at least one of the following:
[0103] the global gain encoded in the current bitstream payload, and
[0104] a global gain encoded in the previous bitstream payload, and
[0105] the energy of the previous quantized spectrum of the previous frame, the energy of the previous decoded spectrum of the previous frame, and
[0106] • The energy of the current quantized spectrum of the current frame.
[0107] According to an embodiment, the decoding module 110 may be configured, for example, to determine the rescaling factor depending on whether:
[0108] the average energy of the spectral interval of the previous decoded spectrum of the previous frame starting from the first spectral interval that cannot be reconstructed without error concealment until the top of the spectrum is greater than or equal to the average energy of the spectral interval of the previous decoded spectrum of the previous frame starting from zero until the last spectral interval that can be reconstructed without error concealment, or
[0109] ·The energy of the spectral interval of the current quantized spectrum of the current frame starting from zero until the last spectral interval that can be reconstructed without error concealment is greater than or equal to the energy of the spectral interval of the previous quantized spectrum of the previous frame starting from zero until the last spectral interval that can be reconstructed without error concealment.
[0110] In an embodiment,
[0111] if the average energy of the spectral interval of the previous decoded spectrum of the previous frame starting from said first spectral interval which cannot be reconstructed without error concealment until the top of the spectrum is less than the average energy of the spectral interval of the previous decoded spectrum of the previous frame starting from zero until said last spectral interval which can be reconstructed without error concealment, and
[0112] if the energy of the spectral interval of the current quantized spectrum of the current frame starting from zero up to the last spectral interval that can be reconstructed without error concealment is less than the energy of the spectral interval of the previous quantized spectrum of the previous frame starting from zero up to the last spectral interval that can be reconstructed without error concealment,
[0113] The decoding module 110 may, for example, be configured to determine a rescaling factor such that the rescaling factor is equal to the square root of the following ratio,
[0114] the energy of the spectral interval of the current quantized spectrum starting from zero up to the last spectral interval that can be reconstructed without error concealment multiplied by the square of the gain factor of the current frame,
[0115] Compare
[0116] • The energy of the spectral intervals of the previous quantized spectrum starting from zero up to the last spectral interval that can be reconstructed without error concealment is multiplied by the square of the gain factor of the previous frame.
[0117] According to an embodiment, the decoding module 110 may, for example, be configured to determine the rescaling factor according to a global gain rescaling factor, which is a total rescaling factor, wherein the decoding module 110 may, for example, be configured to determine the global gain rescaling factor according to the following formula
[0118]
[0119] where gg indicates the global gain of the current frame, and prev indicates the global gain of the previous frame, and where fac gg is the global gain rescaling factor.
[0120] In an embodiment,
[0121] if or
[0122] if
[0123] The decoding module 110 may, for example, be configured to determine that the total rescaling factor is equal to the global gain rescaling factor, where k indicates a spectral bin, where k beIndicates the first spectrum interval that cannot be recovered, where N F Indicates the number of spectral lines, where Indicates that the previous quantized spectrum of the previous frame is the last non-full-frame-drop concealment frame, where Indicates the current quantized spectrum of the current frame, where A previous decoded spectrum indicating a previous frame is the last non-all-loss frame concealment frame.
[0124] According to an embodiment,
[0125] if and
[0126] if
[0127] The decoding module 110 may then for example be configured to determine that the total rescaling factor also depends on the energy rescaling factor:
[0128]
[0129] For example, this energy rescaling factor can be used to form an overall rescaling factor:
[0130]
[0131] Among them, fac ener indicates the energy rescaling factor, where k indicates the spectrum bin, where k be Indicates the first spectrum interval that cannot be recovered, where N F Indicates the number of spectral lines, where Indicates that the previous quantized spectrum of the previous frame is the last non-full-frame-drop concealment frame, where Indicates the current quantized spectrum of the current frame, where A previous decoded spectrum indicating a previous frame is the last non-all-loss frame concealment frame.
[0132] In the scenario where partial frame loss concealment is applied, the more sensitive bits of the bitstream payload are assumed or determined to be error-free.
[0133] In an embodiment, the quantized spectrum of the current frame For example, it can be restored to a certain frequency interval, which is referred to as frequency interval k in this article. be -1. Therefore, partial frame drop concealment only hides the quantized spectrum above this frequency.
[0134] When partial frame loss concealment is performed according to some embodiments, the last non-FFLC frame Spectral lines of the quantized spectrum can, for example, be reused (FFLC=Full Frame Loss Concealment).
[0135] To prevent high energy artifacts in transition frames where the energy changes, the hidden spectral lines are subsequently rescaled, and the resulting rescaling factor may, for example, depend on at least one of the following:
[0136] a) Global gain;
[0137] b) spectral energy;
[0138] Preferably, the resulting rescaling factor may depend, for example, on both the global gain and the energy of the spectrum.
[0139] The rescaling factor based on the global gain is equal to the ratio of the previous global gain to the current global gain.
[0140] The energy-based rescaling factor is initialized to 1 (e.g. no rescaling is done / e.g. rescaling has no effect):
[0141] If from frequency interval k be The average energy of the spectral intervals of the previously decoded spectrum starting from (the first spectral interval that cannot be reconstructed without error concealment) to the top of the spectrum is greater than or equal to the average energy of the spectral intervals starting from zero to frequency interval k be the average energy of a spectral interval of the previously decoded spectrum equal to -1 (the last spectral interval that can be reconstructed without error concealment); or
[0142] If we start from zero until frequency interval k be The energy of the spectrum interval of the current quantized spectrum of -1 is greater than or equal to the energy from zero to the frequency interval k be The energy of the spectral bins of the previously quantized spectrum of -1.
[0143] Otherwise, the rescaling factor is equal to the square root of the following ratio:
[0144] Starting from zero up to frequency interval k be -1 multiply the energy of the spectrum interval of the current quantized spectrum by the square of the gain factor of the current frame;
[0145] Starting from zero up to frequency interval k be The energy of the spectral bins of the previous quantized spectrum of -1 is multiplied by the square of the gain factor of the previous frame.
[0146] When the two factors are multiplied in this case, the gain factors cancel each other out. Therefore, the rescaling factor is then equal to the square root of the following ratio:
[0147] Starting from zero up to frequency interval k be -1 is the energy of the spectrum interval of the current quantized spectrum;
[0148] Starting from zero up to frequency interval k beThe energy of the spectral bins of the previously quantized spectrum of -1.
[0149] Afterwards, the concealed quantized spectrum can be processed, for example, as an error-free quantized spectrum. This means that subsequent decoder operations such as noise filling, noise shaping, or any other operation whose parameters are stored in the error-free bitstream payload can be applied, for example. Thus, possible concealment artifacts are mitigated.
[0150] Then, for example, from the frequency interval k be Applying a similar fading process as described above on the spectrum starting up to the top of the spectrum, for example, possibly available tonal features may, for example, fade towards noise; and / or, for example, possibly significant spectral shapes may, for example, flatten; and / or the energy may, for example, be reduced.
[0151] The embodiments are described in detail below.
[0152] Figure 2 A decoding module 110 is shown in accordance with certain embodiments.
[0153] Figure 2 The decoding module 110 includes a decoded spectrum storage module 330, and optionally a quantized spectrum storage module 310, a partial frame repetition and rescaling module 320, and a fade-out and symbol scrambling module 340. Figures 3 to 5 describe Figure 2 The specific details of these (sub)modules of the specific decoding module 110 are described below.
[0154] Figures 3 to 5 A high-level overview of an LC3 decoder according to an embodiment (exemplarily used as a state-of-the-art transform encoder modified in an inventive manner) is provided. Specifically, Figures 3 to 5 Different kinds of specific embodiments are provided for the decoding module 110 .
[0155] In an embodiment, the decoding module 110 may, for example, include a quantized spectrum storage module 310, which is configured to store the quantized spectrum of the audio signal, wherein the quantized spectrum storage module 310 is configured to provide the last non-all-loss frame hidden quantized spectrum. In addition, the decoding module 110 may, for example, include a decoded spectrum storage module 330, which is configured to store the decoded spectrum of the audio signal, wherein the decoded spectrum storage module 330 is configured to provide the last non-all-loss frame hidden decoded spectrum.
[0156] Figure 3 An overview of the decoding module 110 according to an embodiment for clean channel decoding is shown. Specifically, Figure 3 Normal decoder operation is shown. The processing blocks required for full frame loss concealment and partial frame loss concealment are processing blocks 310 and 330.
[0157] The quantized spectrum storage module 310 may, for example, be configured for storage of quantized spectrum: the quantized spectrum storage module 310 stores the last non-FFLC quantized spectrum to allow its reuse in case of partial frame loss concealment.
[0158] The decoded spectrum storage module 330 is configured to store spectra (eg, referred to as decoded spectra): This processing block stores the last non-FFLC spectrum to allow its reuse in case of full frame loss concealment. It can also be used for rescaling during partial frame loss concealment, for example.
[0159] In an embodiment, the decoding module 110 may, for example, include a decoded spectrum storage module 330, which is configured to store a decoded spectrum of the audio signal, wherein the decoded spectrum storage module 330 is configured to provide a final non-full-loss frame concealed decoded spectrum. In addition, the decoding module 110 may, for example, include a fade-out and symbol scrambling module 340, which is configured to perform fade-out and symbol scrambling on a spectrum line of the spectrum.
[0160] In addition, according to an embodiment, the decoding module 110 may, for example, include a quantized spectrum storage module 310, which is configured to store the quantized spectrum of the audio signal, wherein the quantized spectrum storage module 310 is configured to provide the last non-total loss frame hidden quantized spectrum. In addition, the decoding module 110 may, for example, include a partial frame repetition and rescaling module 320, which is configured for partial frame repetition and rescaling, wherein the partial frame repetition and rescaling module 320 is configured to supplement the spectrum by adding spectral lines, which spectral lines may not be decoded by the decoding module 110, wherein the partial frame repetition and rescaling module 320 is configured to rescale the spectral lines.
[0161] Figure 4 An overview of the decoding module 110 according to an embodiment for full frame loss concealment is shown. In particular, Figure 4 An embodiment configured for full frame loss concealment is depicted. The processing blocks required for full frame loss concealment are processing blocks 330 and 340. Processing blocks 330 and 340 may, for example, have the following tasks.
[0162] The decoded spectrum storage module 330 may, for example, be configured to store spectra (eg, again referred to as decoded spectra): This processing block 330 provides the final non-FFLC spectrum.
[0163] The fade-out and sign scrambling module 340 may, for example, be configured for fade-out and sign scrambling: This processing block is configured to create a spectrum by processing the spectral lines of the last non-FFLC frame, as described below.
[0164] Figure 5 An overview of a decoding module 110 according to an embodiment for partial frame loss concealment is shown.
[0165] In particular, Figure 5 The application of partial frame loss concealment is shown. The processing blocks required for partial frame loss concealment are processing blocks 310, 320, 330 and 340. These processing blocks 310, 320, 330 and 340 have the following tasks:
[0166] The quantized spectrum storage module 310 may, for example, be configured to store the quantized spectrum: the quantized spectrum storage module 310 may, for example, be configured to provide the last non-FFLC quantized spectrum.
[0167] The partial frame repetition and rescaling module 320 can, for example, be configured for partial frame repetition and rescaling: this processing block can, for example, be configured to supplement the spectrum by adding those spectral lines that cannot be decoded. Afterwards, those spectral lines can, for example, be rescaled and values below a certain threshold are quantized to zero, as described below.
[0168] The decoded spectrum storage module 330 may, for example, be configured for storage of spectrum (eg, again referred to as decoded spectrum): the decoded spectrum storage module 330 may, for example, be configured to provide the last non-FFLC spectrum, which may, for example, be used to calculate the rescaling factor.
[0169] The fade-out and sign scrambling module 340 may, for example, be configured for fade-out and sign scrambling: The fade-out and sign scrambling module 340 may, for example, be configured to process the spectrum lines previously provided by partial frame loss concealment.
[0170] In the following, tonality-dependent error concealment according to some embodiments is described in more detail.
[0171] First, a fading function according to some embodiments is provided.
[0172] For the fading process implemented for symbol scrambling and nonlinear attenuation as described below, a function (nbLostFramesInRow) can be used, for example, that depends on the number of subsequent lost frames, i.e., one (1) until a certain value (plc_start_inFrames), i.e., zero (0) starting from a certain value (plc_end_inFrames); and linearly decreases between 1 and 0 (1>x>0) between plc_start_inFrames and plc_end_inFrames.
[0173] A specific embodiment may be implemented, for example, as follows:
[0174] plc_duration_inFrames=plc_end_inFrames-plc_start_inFrames;
[0175] x=max(plc_start_inFrames,(min(nbLostFramesInRow,plc_end_inFrames)));
[0176] m=-1 / plc_duration_inFrames;
[0177] b = -plc_end_inFrames;
[0178] linFuncStartStop = m*(x+b);
[0179] in:
[0180] plc_start_inFrames – the number of subsequent dropped frames, the value of linFuncStartStop is equal to 1 until this number
[0181] plc_end_inFrames – the number of subsequent dropped frames from which linFuncStartStop will be equal to 0
[0182] linFuncStartStop – value of the decay function
[0183] The start and end values may be chosen differently, depending on the signal characteristics (eg voiced vs. unvoiced) and on the frame loss concealment (eg PFLC vs. FFLC) (PFLC = partial frame loss concealment; FFLC = full frame loss concealment).
[0184] Figure 6 A fading function according to an embodiment is shown which depends on the number of dropped frames in a row (and the number of subsequent dropped frames).
[0185] Specifically, Figure 6 An example of such a decay function is provided, which is configured to decrease linearly between 20 ms and 60 ms.
[0186] In the following, the manipulation of symbols according to some embodiments is described in more detail.
[0187] As a prerequisite, the threshold for symbol scrambling may be determined, for example, based on the fading value (linFuncStartStop) derived above.
[0188] randThreshold=-32768*linFuncStartStop;
[0189] Figure 7 A threshold for symbol scrambling according to an embodiment is shown, which depends on the number of lost frames in a row (the number of subsequent lost frames) and also on the frame length.
[0190] In particular, Figure 7 An example of a threshold value is provided which depends on the number of consecutive dropped frames using a fading function, where a threshold of 0 corresponds to 50% sign flipping and a threshold of -32768 corresponds to 0% sign flipping.
[0191] The embodiment can be implemented, for example, by the following pseudo code:
[0192]
[0193] in:
[0194] k – frequency spectrum interval
[0195] k be – The first spectrum interval that cannot be recovered
[0196] N F – Number of spectral lines
[0197] seed – random value, the initial value is 24607
[0198] pitch_present – information, whether the signal in the current frame has tonality
[0199] spec_prev(k) – The spectrum value of bin k in the last good frame (also called )
[0200] spec(k) – The spectrum value of interval k in the current frame.
[0201] In this example, seed (i.e., random value) varies between 32768 and -32768. For unvoiced signals (pitch_present == 0), the threshold for sign reversal is zero, which results in a 50% probability. For voiced signals, a variable threshold (randThreshold) is applied, which is between -32768 (0% probability of sign reversal) and zero (50% probability of sign reversal).
[0202] In the following, the manipulation of amplitude according to some embodiments is described in more detail.
[0203] In a particular embodiment, two attenuation factors may be defined, for example, depending on the stability measure, for example as follows:
[0204] slow = 0.8 + 0.2 * stabFac;
[0205] fast = 0.3 + 0.2 * stabFac;
[0206] where stabFac indicates the stability value between the last frame and the second-to-last frame in the case of FFLC or between the current frame and the last frame in the case of PFLC.
[0207] For example, the stability factor may represent the similarity between two signals, such as the similarity between a current signal and a past signal. For example, the stability factor may be bounded by [0:1]. For example, a stability factor close to 1 or 1 may, for example, mean that the two signals are very similar, while a stability factor close to 0 or 0 may, for example, mean that the two signals are very different. For example, the similarity may be calculated on the spectral envelopes of the two audio signals.
[0208] For example, the stability factor θ can be calculated as:
[0209]
[0210] in:
[0211] QUR curr a vector indicating the scaling factor for the current frame, and
[0212] QUR prev A vector indicating the scaling factor of the previous frame
[0213] N indicates the number of scaling factors in the scaling factor vector
[0214] θ indicates the stability factor, which is bounded by 0≤θ≤1
[0215] k indicates the index of the scaling factor vector
[0216] In some embodiments, stabFac may, for example, be used differently for FFLC and PFLC; that is, it may be set to a value between 0 and 1 depending on the stability of the FFLC, while it may be set to 1 for the PFLC.
[0217] Then, for example, corresponding cumulative attenuation factors (cum_fading_slow and cum_fading_fast, initialized with 1 at the beginning of each burst loss) may be derived, which may vary, for example, from frame to frame as follows:
[0218] cum_fading_slow=cum_fading_slow*slow;
[0219] cum_fading_fast=cum_fading_fast*fast;
[0220] wherein: cum_fading_slow indicates a slow accumulation damping factor; and wherein cum_fading_fast indicates a fast accumulation damping factor.
[0221] In an embodiment, accumulation may be performed, for example, only on the FFLC and not on the PFLC.
[0222] Furthermore, according to an embodiment, for example, values of a first threshold (ad_ThreshFac_start) and a final threshold (ad_ThreshFac_end) may be defined. In some embodiments, these values may be selected, for example, heuristically. Typically, both values may be, for example, greater than one (1), and the first threshold is greater than the final threshold. Based on these two threshold limits, the threshold (ad_threshFac) of the current frame may be determined, for example, based on the fading value (linFuncStartStop) derived as above:
[0223] ad_ThreshFac_start=10;
[0224] ad_ThreshFac_end=1.2;
[0225] ad_threshFac=(ad_ThreshFac_start-ad_ThreshFac_end)*linFuncStartStop+ad_ThreshFac_end;
[0226] wherein ad_ThreshFac_start indicates a first factor representing the energy, above which a stronger attenuation is applied; and wherein ad_ThreshFac_stop indicates a last factor representing the energy, above which a stronger attenuation is applied.
[0227] Threshold adjustment can be done only for FFLC but not for PFLC. In this case, the threshold will be fixed for subsequent frames.
[0228] Figure 8 An energy threshold factor according to an embodiment is shown which depends on the number of dropped frames in a row and further on the frame length.
[0229] Specifically, Figure 8 An example of using a threshold factor with a fading function depending on the number of consecutive dropped frames is provided, where the threshold factor decreases from 10 to 1.2 between 20 ms and 60 ms.
[0230] In a specific embodiment, adaptive fading operates on an interval granularity. This can be achieved as follows:
[0231]
[0232] spec(k)=m*spec_prev(k)+n;
[0233] end
[0234] in:
[0235] k – frequency spectrum interval
[0236] k be – The first spectrum interval that cannot be recovered
[0237] N F – Number of spectral lines
[0238] spec_prev(k) – the spectrum value of interval k in the last good frame (hereinafter referred to as )
[0239] spec(k) – The spectrum value of interval k in the current frame.
[0240] The derivation of n in the else path ensures that the decay curve keeps large values large and keeps small values small.
[0241] Fig. 9 An example of applying cumulative damping is depicted. The possible input values in the example are between 0 and 1000. n=0 refers to the received frame and provides a kind of reference. In the example, the initial slow decay factor is set to 0.9, while the initial fast decay factor is set to 0.4 (stabFac=0.5). In the second frame, the square of those values is used, and so on, which makes the subsequent curves flatter. At the same time, for example, the threshold can be reduced, which moves the distortion of the continuous curve further to the left.
[0242] In another specific embodiment, adaptive fading is operated on a band-by-band basis. In this example, a band-by-band energy is derived, and adaptive damping is applied only to intervals in the band that are above the average of all bands. In those cases, the energy of the band can be used, for example, as a threshold for the interval-by-interval adaptive damping. For example, an exemplary implementation can be implemented as follows:
[0243]
[0244]
[0245] in:
[0246] k,j – frequency spectrum interval
[0247] k be – The first spectrum interval that cannot be recovered
[0248] N F– Number of spectral lines
[0249] spec_prev(k) – the spectrum value of interval k in the last good frame (hereinafter referred to as )
[0250] spec(k) – The spectrum value of interval k in the current frame
[0251] idx – frequency band index
[0252] bin_energy_per_band – bin energy per frequency band
[0253] The storage of spectral lines during reception of frames and the insertion of spectral lines during (partial or complete) frame loss can generally be performed anywhere between spectral decoding based on the information provided in the bitstream and the conversion back to the time domain. With reference to LC3, it can in particular be performed, for example, before or after SNS decoding (SNS=Spectral Noise Shaping), for example before or after TNS decoding (TNS=Temporal Noise Shaping), for example before or after applying a global gain, and / or for example before or after noise filling.
[0254] The choice of the preferred position may also vary depending on the availability of additional information for partial or full frame loss. For example, in the case of partial frame loss (partial frame loss concealment), it may be performed at the beginning of the signal processing; because in this case the parameters of the subsequent signal processing steps are available. For example, it may be performed at a later stage in the case of full frame loss (full frame loss concealment), because in this case no parameters of the subsequent signal processing steps are available. However, it may, for example, still be performed before SNS decoding, because this step allows dedicated spectrum shaping.
[0255] Partial frame loss concealment according to some embodiments is described in more detail below.
[0256] A specific implementation of partial frame loss concealment may, for example, first apply a rescaling factor and then may, for example, quantize the spectral bins below a certain threshold to zero. This is shown in the following example pseudo code:
[0257] for k=k be ..N F -1
[0258]
[0259] if <threshold
[0260]
[0261] in:
[0262] k – frequency spectrum interval
[0263] N F – Number of spectral lines
[0264] k be – The first spectrum interval that cannot be recovered
[0265] – Quantized spectrum line k of the current frame
[0266] – quantized spectrum line k of the last non-FFLC frame
[0267] fac – rescaling factor
[0268] threshold – The threshold, an example value is 0.625 to quantize to zero.
[0269] The rescaling factor fac depends on the global gain gg is derived as the ratio between the current global gain and the past global gain:
[0270]
[0271] The energy-dependent rescaling factor fac ener is initialized to 1. If the following conditions are met:
[0272] 1.
[0273] 2.
[0274] The rescaling factor is set to the root of the ratio between the current quantized spectrum multiplied by the square of its corresponding global gain and the past quantized spectrum multiplied by the square of its corresponding global gain:
[0275]
[0276] The total rescaling factor is derived as:
[0277] fac=fac gg ·fac ener .
[0278] When fac ener ≠1, this results in (global gain values canceling each other out):
[0279]
[0280] The variables in the above equation have the following meanings:
[0281] k – spectral interval
[0282] k be– The first spectrum interval that cannot be recovered
[0283] N F – Number of spectral lines
[0284] – Quantized spectrum of the last non-FFLC frame
[0285] – Quantized spectrum of the current frame
[0286] – Decoded spectrum of the last non-FFLC frame
[0287] gg – global gain of the current frame (if the quantized spectrum encoded in the bitstream is rescaled with the global gain)
[0288] gg prev – Global gain of the last non-FFLC frame (if the quantized spectrum encoded in the bitstream is rescaled with the global gain).
[0289] The following example pseudo-code illustrates the determination of the rescaling factor according to an exemplary implementation:
[0290]
[0291]
[0292] in:
[0293] fac – rescaling factor
[0294] gg – global gain of the current frame (if the quantized spectrum encoded in the bitstream is rescaled with the global gain)
[0295] gg prev – Global gain of the last non-FFLC frame (if the quantized spectrum encoded in the bitstream is rescaled with the global gain)
[0296] k be – The first spectrum interval that cannot be recovered
[0297] N F – Number of spectral lines
[0298] – Decoded spectrum of the last non-FFLC frame
[0299] – Quantized spectrum of the last non-FFLC frame
[0300] – Quantized spectrum of the current frame
[0301] sqrt – Square root function.
[0302] Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent descriptions of corresponding methods, where blocks or devices correspond to method steps or features of method steps. Similarly, the various aspects described in the context of method steps also represent descriptions of corresponding blocks or items or features of corresponding apparatuses. Some or all method steps can be performed by (or using) hardware devices (e.g., microprocessors, programmable computers, or electronic circuits). In some embodiments, one or more of the most important method steps can be performed by such an apparatus.
[0303] Depending on certain implementation requirements, embodiments of the present invention may be implemented in hardware or in software or at least partially in hardware or at least partially in software. The implementation may be performed using a digital storage medium (e.g., a floppy disk, DVD, Blu-ray, CD, ROM, PROM, EPROM, EEPROM, or flash memory) storing electronically readable control signals that cooperate (or are capable of cooperating) with a programmable computer system to perform the corresponding method. Thus, the digital storage medium may be computer readable.
[0304] Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
[0305] Generally, embodiments of the present invention can be implemented as a computer program product with a program code, the program code being operative for performing one of the methods when the computer program product runs on a computer.The program code may, for example, be stored on a machine readable carrier.
[0306] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
[0307] In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
[0308] Therefore, another embodiment of the inventive method is a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein. The data carrier, the digital storage medium or the recorded medium are typically tangible and / or non-transitory.
[0309] Therefore, another embodiment of the inventive method is a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals may, for example, be configured to be transmitted via a data communication connection, for example via the Internet.
[0310] A further embodiment comprises a processing means, for example a computer or a programmable logic device, configured to or adapted to perform one of the methods described herein.
[0311] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
[0312] Another embodiment according to the invention comprises an apparatus or system configured to transfer (e.g. electronically or optically) a computer program for performing one of the methods described herein to a receiver. For example, the receiver may be a computer, a mobile device, a storage device, etc. The apparatus or system may, for example, comprise a file server for transferring the computer program to the receiver.
[0313] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functions of the methods described herein. In some embodiments, a field programmable gate array may collaborate with a microprocessor to perform one of the methods described herein. Typically, these methods are preferably performed by any hardware device.
[0314] The devices described herein may be implemented using hardware devices, or may be implemented using computers, or may be implemented using a combination of hardware devices and computers.
[0315] The methods described herein may be performed using a hardware device, or may be performed using a computer, or may be performed using a combination of a hardware device and a computer.
[0316] The above embodiments are only used to illustrate the principles of the present invention. It should be understood that modifications and variations of the arrangements and details described herein will be apparent to those skilled in the art. Therefore, it is intended to be limited only to the scope of the appended patent claims, rather than to the specific details presented by the description and explanation of the embodiments herein.
[0317] References:
[0318] [1] P.Lauber and R.Sperschneider, "Error Concealment for CompressedDigital Audio," in Audio Engineering Society, 2001.
[0319] [2]J.Lecomte and A.Tomasek,“ERROR CONCEALMENT UNIT,AUDIO DECODER,ANDRELATED METHOD AND COMPUTER PROGRAM FADING OUT A CONCEALED AUDIO FRAME OUTACCORDING TO DIFFERENT DAMPING FACTORS FOR DIFFERENT FREQUENCY BANDS”,WO2017 / 153299 A2,published 2017。
[0320] [3]A. A.Kurittu and H.Toukomaa,“EVS Channel Aware ModeRobustness to Frame Erasures,”in Interspeech 2016,San Francisco,CA,USA,2016。
[0321] [4]A.Venkatraman,D.J.Sinder,S.Shaminda,R.Vivek,D.Duminda,C.Venkata,V.Imre,K.Venkatesh,S.Benjamin,L.Jeremie,Z.Xingtao and M.Lei,“Improved ErrorResilience for VoLTE and VoIP with 3GPP EVS Channel Aware Coding,”in ICASSP2015。
[0322] [5]M.Schnabel,G.Markovic,R.Sperschneider,C.Helmrich and J.Lecomte,“Apparatus and method realizing a fading of an mdct spectrum to white noiseprior to fdns application”.European Patent EP 3 011 559 B1,published 2017。
Claims
1. A decoder (100) for decoding a current frame to reconstruct an audio signal, wherein the audio signal is encoded within the current frame, wherein the current frame comprises a current bitstream payload, wherein the current bitstream payload comprises a plurality of payload bits, wherein the plurality of payload bits encode a plurality of spectral lines of a spectrum of the audio signal, wherein each of the payload bits is present at a position within the current bitstream payload, wherein the decoder (100) include: A decoding module (110) configured to reconstruct the audio signal, and an output interface (120), configured to output the audio signal, The invention is characterized in that: the decoding module (110) includes a partial frame loss concealment mode, wherein if the decoding module (110) is in the partial frame loss concealment mode, the decoding module (110) is configured to: reconstructing the audio signal without error concealment for one or more first spectral lines of the plurality of spectral lines of the frequency spectrum, the one or more first spectral lines exhibiting a frequency less than or equal to a threshold frequency, wherein the one or more first spectral lines have been encoded by a first group of one or more payload bits of the plurality of payload bits, and The audio signal is reconstructed by error concealing one or more second spectral lines among the multiple spectral lines of the spectrum, the one or more second spectral lines presenting a frequency greater than the threshold frequency, wherein the one or more second spectral lines have been encoded by a second group of one or more payload bits among the multiple payload bits.
2. The decoder (100) according to claim 1, wherein the decoding module (110) is configured to detect whether the current frame does not include any corrupted bits encoding the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines exhibiting a frequency less than or equal to the threshold frequency, wherein the decoding module (110) is configured to detect whether the current frame comprises one or more corrupted bits encoding the one or more second spectral lines of the spectrum of the audio signal, the one or more second spectral lines exhibiting a frequency greater than the threshold frequency, wherein the one or more corrupted bits are one or more payload bits that are distorted or potentially distorted among the payload bits, and in, If the current frame does not include any damaged bits encoding the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines presenting a frequency less than or equal to the threshold frequency, and if the current frame includes the one or more damaged bits encoding the one or more second spectral lines of the spectrum of the audio signal, the one or more second spectral lines presenting a frequency greater than the threshold frequency, the decoding module (110) is configured to perform error concealment in the partial frame loss concealment mode by performing error concealment on the one or more second spectral lines of the spectrum greater than the threshold frequency.
3. The decoder (100) according to claim 2, in, If the current frame does not include any corrupted bits encoding the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines presenting a frequency less than or equal to the threshold frequency, and if the current frame includes the one or more corrupted bits encoding the one or more second spectral lines of the spectrum of the audio signal, the one or more second spectral lines presenting a frequency greater than the threshold frequency, the decoding module (110) is configured to reconstruct the audio signal by decoding the first group of one or more payload bits of the plurality of payload bits, the first group of one or more payload bits encoding the one or more first spectral lines of the spectrum of the audio signal, the one or more first spectral lines presenting a frequency less than or equal to the threshold frequency.
4. The decoder (100) according to claim 1, The decoding module (110) is configured to detect whether the current frame is lost. in, The decoding module (110) is configured to reconstruct the audio signal by: performing error concealment on the one or more second spectral lines of the spectrum of the audio signal exhibiting frequencies greater than the threshold frequency, and Without error concealment, decode the first group of one or more payload bits among the multiple payload bits, the first group of one or more payload bits encoding the one or more first spectral lines of the spectrum of the audio signal of the one or more first frequencies less than or equal to the threshold frequency, wherein the first group of one or more payload bits among the multiple payload bits are one or more payload bits of a redundant frame different from the current frame.
5. The decoder (100) according to claim 1, in, If the decoding module (110) is configured to perform error concealment in the full frame loss concealment mode, the decoding module (110) is configured to perform error concealment on all spectral lines of the spectrum.
6. The decoder (100) according to claim 1, wherein the plurality of payload bits are a plurality of current payload bits, in, If the decoding module (110) is in a partial frame loss concealment mode, the decoding module (110) is configured to use one or more stored spectral lines to perform error concealment on the one or more second spectral lines of the spectrum of the audio signal, wherein the one or more second spectral lines exhibit a frequency greater than the threshold frequency, and the one or more stored spectral lines have been decoded from one or more previous payload bits of a previous bitstream payload of a previous frame.
7. The decoder (100) according to claim 6, wherein the spectrum is the current quantized spectrum, in, If the decoding module (110) performs error concealment in the partial frame loss concealment mode, the decoding module (110) is configured to perform error concealment on the one or more second spectral lines of the spectrum of the audio signal to obtain one or more intermediate spectral lines of the current quantized spectrum, the one or more second spectral lines presenting a frequency greater than the threshold frequency, wherein the decoding module (110) is configured to rescale the one or more intermediate spectral lines using a rescaling factor to reconstruct the audio signal.
8. The decoder (100) according to claim 7, The decoding module (110) is configured to determine the rescaling factor depending on at least one of the following: the global gain decoded from the current bitstream payload, and the global gain decoded from the previous bitstream payload, and the energy of a previous quantized spectrum of the previous frame, the energy of a previous decoded spectrum of the previous frame, and The energy of the current quantized spectrum of the current frame.
9. The decoder (100) according to claim 7, The decoding module (110) is configured to determine the rescaling factor depending on whether: the average energy of a spectral interval of a previously decoded spectrum of the previous frame starting from a first spectral interval that cannot be reconstructed without error concealment until the top of the spectrum is greater than or equal to the average energy of a spectral interval of a previously decoded spectrum of the previous frame starting from zero until the last spectral interval that can be reconstructed without error concealment, or The energy of the spectral interval of the current quantized spectrum of the current frame starting from zero until the last spectral interval that can be reconstructed without error concealment is greater than or equal to the energy of the spectral interval of the previous quantized spectrum of the previous frame starting from zero until the last spectral interval that can be reconstructed without error concealment.
10. The decoder (100) according to claim 9, in, if the average energy of the spectral interval of the previously decoded spectrum of the previous frame starting from the first spectral interval that cannot be reconstructed without error concealment until the top of the spectrum is less than the average energy of the spectral interval of the previously decoded spectrum of the previous frame starting from zero until the last spectral interval that can be reconstructed without error concealment, and if the energy of the spectral interval of the current quantized spectrum of the current frame starting from zero up to the last spectral interval that can be reconstructed without error concealment is less than the energy of the spectral interval of the previous quantized spectrum of the previous frame starting from zero up to the last spectral interval that can be reconstructed without error concealment, The decoding module (110) is then configured to determine the rescaling factor such that the rescaling factor is equal to the square root of the following ratio: the energy of the spectral interval of the current quantized spectrum starting from zero up to the last spectral interval that can be reconstructed without error concealment multiplied by the square of the gain factor of the current frame, Compare The energy of the spectral intervals of the previous quantized spectrum starting from zero up to the last spectral interval that can be reconstructed without error concealment is multiplied by the square of the gain factor of the previous frame.
11. The decoder (100) according to claim 8, wherein the decoding module (110) is configured to determine the rescaling factor in dependence on a global gain rescaling factor, the rescaling factor being an overall rescaling factor, The decoding module (110) is configured to determine the global gain rescaling factor according to the following formula: wherein gg indicates the global gain encoded in the current bitstream payload, and where gg prev indicating said global gain encoded in said previous bitstream payload, and Among them, fac gg is the global gain rescaling factor.
12. The decoder (100) according to claim 11, in, if or if Then the decoding module (110) is configured to determine that the total rescaling factor is equal to the global gain rescaling factor, Where k indicates the frequency spectrum interval, where k be Indicates the first spectrum interval that cannot be recovered, where N F Indicates the number of spectral lines, where indicating the previous quantized spectrum of the previous frame as the last non-full frame-loss concealment frame, wherein indicates the current quantized spectrum of the current frame, wherein The previous decoded spectrum of the previous frame is indicated as the last non-all frame loss concealment frame.
13. The decoder (100) according to claim 11, in, if and if The decoding module (110) is then configured to determine that the total rescaling factor also depends on the energy rescaling factor Among them, fac ener indicates the energy rescaling factor, Where k indicates the frequency spectrum interval, where k be Indicates the first spectrum interval that cannot be recovered, where N F Indicates the number of spectral lines, where indicating the previous quantized spectrum of the previous frame as the last non-full frame-loss concealment frame, wherein indicates the current quantized spectrum of the current frame, wherein The previous decoded spectrum of the previous frame is indicated as the last non-all frame loss concealment frame.
14. The decoder (100) according to claim 13, in, if and if The decoding module (110) is then configured to determine the total rescaling factor fac according to the following formula: I do=I do gg ·I do ener , or or 15. The decoder (100) according to claim 1, in, If the decoding module (110) performs error concealment, the decoding module (110) is configured to reconstruct the current spectrum of the audio signal by using multiple symbols of a previous spectrum of the audio signal for error concealment, the multiple symbols being encoded in a previous frame, wherein the decoding module (110) is configured to perform error concealment in a manner that depends on whether the previous frame encodes a signal component that is a tonality or a harmonic.
16. The decoder (100) according to claim 15, wherein the previous frame is the last received frame that has been decoded by the decoding module (110) without error concealment, or wherein the previous frame is the last received frame that has been decoded by the decoding module (110) without error concealment in a full frame loss concealment mode, or The previous frame is the last received frame that has been decoded by the decoding module (110) without error concealment in a partial frame loss concealment mode or a full frame loss concealment mode.
17. The decoder (100) according to claim 15, in, If the decoding module (110) performs error concealment, and if the previous bit stream payload of the previous frame encodes a signal component that is a tonality or a harmonic, the decoding module (110) is configured to flip one or more of the multiple symbols of the previous spectrum to reconstruct the current spectrum, wherein a percentage value p indicating the probability that a symbol of the multiple symbols of the previous spectrum is to be flipped by the decoding module (110) to reconstruct the current spectrum is between 0%≤p≤50%, and the decoding module (110) is configured to determine the percentage value p.
18. The decoder (100) according to claim 17, wherein the decoding module (110) is configured to increase the percentage value p depending on the number of subsequent frames; The number of subsequent frames indicates how many subsequent partial frame loss error concealment or full frame loss error concealment has been performed by the decoding module (110); or the number of subsequent frames indicates how many subsequent frame error concealment in a specific error concealment mode has been performed by the decoding module (110).
19. The decoder (100) according to claim 18, The decoding module (110) is configured to determine the percentage value p according to a function that depends on the number of subsequent frames, the number of subsequent frames being an independent variable of the function.
20. The decoder (100) according to claim 19, The decoding module (110) is configured to determine the percentage value p: such that if the number of subsequent frames is less than a first threshold, p is 0%; Such that if the number of subsequent frames is greater than or equal to the first threshold and less than a second threshold, 0%≤p≤50%, and Such that if the number of subsequent frames is greater than the second threshold, p=50%.
21. The decoder (100) according to claim 20, The decoding module (110) is configured to determine the percentage value p such that the percentage value p increases linearly within a range between the first threshold and the second threshold depending on the number of subsequent frames.
22. The decoder (100) according to claim 17, in, If the decoding module (110) performs error concealment and if the previous bitstream payload of the previous frame does not encode a signal component that is a tonality or a harmonic, the decoding module (110) is configured to flip 50% of the plurality of symbols of the previous spectrum to reconstruct the current spectrum.
23. The decoder (100) according to claim 1, in, If the decoding module (110) performs error concealment, the decoding module (110) is configured to reconstruct the current spectrum of the audio signal by using multiple amplitudes of the previous spectrum of the audio signal for error concealment, depending on whether the previous frame encoded a signal component that is a tonality or a harmonic, the multiple amplitudes being encoded in the previous frame.
24. The decoder (100) according to claim 23, in, If the decoding module (110) performs error concealment, the decoding module (110) is configured to attenuate the multiple amplitudes of the previous spectrum according to a nonlinear attenuation characteristic to reconstruct the current spectrum, wherein the nonlinear attenuation characteristic depends on whether the previous frame encodes a signal component that is a tonality or a harmonic.
25. The decoder (100) according to claim 23, in, If the decoding module (110) performs error concealment, and if a previous bitstream payload of the previous frame encodes a signal component that is a tonality or a harmonic, the decoding module (110) is configured to attenuate the multiple amplitudes of the previous spectrum depending on a stability factor, wherein the stability factor indicates a similarity between the current spectrum and the previous spectrum; or wherein the stability factor indicates a similarity between the previous spectrum and a previous previous spectrum of a previous previous frame before the previous frame.
26. The decoder (100) according to claim 25, wherein the previous frame is the last received frame before the previous frame that has been decoded by the decoding module (110) without error concealment, or wherein the previous frame is the last received frame before the previous frame that has been decoded by the decoding module (110) without error concealment in full frame loss concealment mode, or The previous frame is the last received frame before the previous frame that has been decoded by the decoding module (110) without error concealment in a partial frame loss concealment mode or a full frame loss concealment mode.
27. The decoder (100) according to claim 25, wherein if the decoding module (110) is configured to perform partial frame loss concealment, the stability factor indicates the similarity between the current spectrum and the previous spectrum; If the decoding module (110) is configured to perform full frame loss concealment, the stability factor indicates the similarity between the previous spectrum and the previous previous spectrum.
28. The decoder (100) according to claim 25, wherein the decoding module (110) is configured to determine the energy of a spectral interval of the previous spectrum; wherein the decoding module (110) is configured to determine whether the energy of the spectrum interval is less than an energy threshold; in, If the energy is less than the energy threshold, the decoding module (110) is configured to attenuate the amplitude of the plurality of amplitudes allocated to the frequency spectrum interval by a first attenuation factor, Wherein, if the energy is greater than or equal to the energy threshold, the decoding module (110) is configured to attenuate the amplitude of the plurality of amplitudes allocated to the spectrum interval by a second attenuation factor that is smaller than the first attenuation factor, The decoding module (110) is configured to perform attenuation such that the attenuation of one of the multiple amplitudes is increased by using a smaller attenuation factor for the attenuation of the one amplitude.
29. The decoder (100) according to claim 25, wherein the decoding module (110) is configured to determine the energy of a spectral band including a plurality of spectral intervals of the previous spectrum; wherein the decoding module (110) is configured to determine whether the energy of the spectrum band is less than an energy threshold; in, If the energy is less than the energy threshold, the decoding module (110) is configured to attenuate the amplitude of the spectrum interval allocated to the spectrum band among the plurality of amplitudes by a first attenuation factor, Wherein, if the energy is greater than or equal to the energy threshold, the decoding module (110) is configured to attenuate the amplitude of the spectrum interval allocated to the spectrum band among the multiple amplitudes by a second attenuation factor that is smaller than the first attenuation factor, The decoding module (110) is configured to perform attenuation such that the attenuation of one of the multiple amplitudes is increased by using a smaller attenuation factor for the attenuation of the one amplitude.
30. The decoder (100) according to claim 29, in, If the decoding module (110) performs error concealment, the decoding module (110) is configured to reconstruct the current spectrum of the audio signal by performing error concealment using a plurality of symbols of a previous spectrum of the audio signal, the plurality of symbols being encoded in the previous frame, wherein the decoding module (110) is configured to perform error concealment in a manner that depends on whether the previous frame encodes a signal component that is a tonality or a harmonic; wherein, if the decoding module (110) performs error concealment, and if the previous bitstream payload of the previous frame encodes a signal component that is a tonality or a harmonic, the decoding module (110) is configured to flip one or more of the multiple symbols of the previous spectrum to reconstruct the current spectrum, wherein a percentage value p indicating a probability that a symbol of the multiple symbols of the previous spectrum is to be flipped by the decoding module (110) to reconstruct the current spectrum is between 0%≤p≤50%, wherein the decoding module (110) is configured to determine the percentage value p; wherein the decoding module (110) is configured to increase the percentage value p depending on the number of subsequent frames; wherein the number of subsequent frames indicates how many subsequent partial frame loss error concealment or full frame loss error concealment has been performed by the decoding module (110); or wherein the number of subsequent frames indicates how many subsequent frame error concealment in a specific error concealment mode has been performed by the decoding module (110); wherein the decoding module (110) is configured to determine the first fading factor such that the first fading factor becomes smaller depending on the number of subsequent frames; or wherein the decoding module (110) is configured to determine the second fading factor such that the second fading factor becomes smaller depending on the number of subsequent frames.
31. The decoder (100) according to claim 30, The decoding module (110) is configured to determine the first fading factor and the second fading factor such that If the current frame is the first frame of the subsequent frames, cum_fading_slow = 1, and cum_fading_fast=1, And make If the current frame is one of the subsequent frames that follows the first frame, the first fading factor and the second fading factor are determined according to the following formula depending on the number of the subsequent frames: cum_fading_slow=cum_fading_slow*slow; cum_fading_fast=cum_fading_fast*fast; Wherein cum_fading_slow on the right side of the formula is the first fading factor of the previous frame, The cum_fading_slow on the left side of the formula is the first fading factor of the current frame. Wherein cum_fading_fast on the right side of the formula is the second fading factor of the previous frame, Wherein cum_fading_fast on the left side of the formula is the second fading factor of the current frame, Among them, 1>slow>fast>0.
32. The decoder (100) of claim 31, wherein 1>slow>fast>0.
3.
33. The decoder (100) according to claim 28, in, If the decoding module (110) performs error concealment, the decoding module (110) is configured to reconstruct the current spectrum of the audio signal by performing error concealment using a plurality of symbols of a previous spectrum of the audio signal, the plurality of symbols being encoded in the previous frame, wherein the decoding module (110) is configured to perform error concealment in a manner that depends on whether the previous frame encodes a signal component that is a tonality or a harmonic; wherein, if the decoding module (110) performs error concealment, and if the previous bitstream payload of the previous frame encodes a signal component that is a tonality or a harmonic, the decoding module (110) is configured to flip one or more of the multiple symbols of the previous spectrum to reconstruct the current spectrum, wherein a percentage value p indicating a probability that a symbol of the multiple symbols of the previous spectrum is to be flipped by the decoding module (110) to reconstruct the current spectrum is between 0%≤p≤50%, wherein the decoding module (110) is configured to determine the percentage value p; wherein the decoding module (110) is configured to increase the percentage value p depending on the number of subsequent frames; wherein the number of subsequent frames indicates how many subsequent partial frame loss error concealment or full frame loss error concealment has been performed by the decoding module (110); or wherein the number of subsequent frames indicates how many subsequent frame error concealment in a specific error concealment mode has been performed by the decoding module (110); wherein the decoding module (110) is configured to determine the energy threshold, such that if the number of subsequent frames is less than a third threshold, the energy threshold is equal to the first energy value; Such that if the number of subsequent frames is greater than or equal to the third threshold and less than a fourth threshold, the energy threshold is less than the first energy value and greater than the second energy value; and Such that if the number of subsequent frames is greater than the fourth threshold, the energy threshold is equal to the second energy value.
34. The decoder (100) according to claim 33, The decoding module (110) is configured to determine the energy threshold so that the energy threshold decreases linearly within a range between the third threshold and the fourth threshold depending on the number of subsequent frames.
35. The decoder (100) according to claim 1, The decoding module (110) comprises a decoding spectrum storage module (330), wherein the decoding spectrum storage module is configured to store the decoding spectrum of the audio signal, wherein the decoding spectrum storage module (330) is configured to provide a last non-total-loss-frame concealed decoding spectrum, and The decoding module (110) comprises a fade-out and symbol scrambling module (340), which is configured to fade-out and symbol scramble the spectral lines of the spectrum.
36. The decoder (100) according to claim 35, The decoding module (110) comprises a quantized spectrum storage module (310), the quantized spectrum storage module is configured to store the quantized spectrum of the audio signal, the quantized spectrum storage module (310) is configured to provide a last non-total loss frame concealed quantized spectrum, and The decoding module (110) comprises a partial frame repetition and rescaling module (320), which is configured for partial frame repetition and rescaling, wherein the partial frame repetition and rescaling module (320) is configured to supplement the spectrum by adding spectral lines, which cannot be decoded by the decoding module (110), and wherein the partial frame repetition and rescaling module (320) is configured to rescale the spectral lines.
37. The decoder (100) according to claim 1, The decoding module (110) comprises a quantized spectrum storage module (310), the quantized spectrum storage module is configured to store the quantized spectrum of the audio signal, the quantized spectrum storage module (310) is configured to provide a last non-total loss frame concealed quantized spectrum, and The decoding module (110) comprises a decoding spectrum storage module (330), which is configured to store the decoding spectrum of the audio signal, wherein the decoding spectrum storage module (330) is configured to provide a last non-total-loss-frame concealed decoding spectrum.
38. A method of decoding a current frame to reconstruct an audio signal, wherein the audio signal is encoded within the current frame, wherein the current frame comprises a current bitstream payload, wherein the current bitstream payload comprises a plurality of payload bits, wherein the plurality of payload bits encode a plurality of spectral lines of a spectrum of the audio signal, wherein each of the payload bits is present at a position within the bitstream payload, wherein the method include: reconstructing the audio signal, and outputting the audio signal, It is characterized in that, in a partial frame loss concealment mode, the audio signal is reconstructed without performing error concealment on one or more first spectral lines among the multiple spectral lines of the spectrum, the one or more first spectral lines present a frequency less than or equal to a threshold frequency, wherein the one or more first spectral lines have been encoded by a first group of one or more payload bits among the multiple payload bits; and, in a partial frame loss concealment mode, the audio signal is reconstructed by performing error concealment on one or more second spectral lines among the multiple spectral lines in the spectrum, the one or more second spectral lines present a frequency greater than a threshold frequency, wherein the one or more second spectral lines have been encoded by a second group of one or more payload bits among the multiple payload bits.
39. A non-transitory computer readable medium comprising a computer program for implementing the method of claim 38 when executed on a computer or a signal processor.
