Decoding dense transient events using companding

By using selective companding technology based on signal characteristics in the audio codec to classify and process the audio signal, the problem of decoding noise shaping in the existing technology is solved, and the quality and fidelity of the audio signal are improved.

CN112771610BActive Publication Date: 2024-08-30DOLBY INTERNATIONAL AB
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN201980062591.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-21
Publication Date
2024-08-30
Estimated Expiration
2039-08-21

AI Technical Summary

Technical Problem

When existing audio codecs use lossy compression technology in digital audio signal processing, it is easy to introduce decoding noise, and it is difficult to effectively shape it. Especially when processing complex audio signals, the distinction and processing of speech and applause are particularly challenging. .

Method used

Using selective companding techniques based on signal characteristics, audio signals are classified as pure sinusoidal, mixed or pure transient signals through temporal sharpness and spectral sharpness measures in the quadrature modulation filter (QMF) domain, and the selection is applied Companding operations, including compression/expansion modes to reduce noise and improve audio signal quality.

Benefits of technology

It effectively reduces the impact of decoding noise and improves the quality of audio signals. Especially when processing complex audio signals, it can better distinguish speech and applause, reduce switching artifacts, and improve the fidelity of audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112771610B_ABST
    Figure CN112771610B_ABST
Patent Text Reader

Abstract

Embodiments relate to companding methods and systems for reducing decoding noise in an audio codec. A method of processing an audio signal includes the following operations. A system receives an audio signal. The system determines that a first frame of the audio signal includes a sparse transient signal. The system determines that a second frame of the audio signal includes a dense transient signal. The system compresses / expands (comands) the audio signal using a companding rule that applies a first companding index to the first frame of the audio signal and a second companding index to the second frame of the audio signal, each companding index being used to derive a respective degree of dynamic range compression and expansion for a corresponding frame. The system then provides the companded audio signal to a downstream device.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the following priority application: U.S. Provisional Application No. 62 / 720,447 (reference: D18075USP1), filed on August 21, 2018, which is hereby incorporated by reference herein. Technical Field

[0003] One or more embodiments relate generally to audio signal processing, and more particularly to optimal use of compression / expansion (companding) techniques in a signal-dependent manner during digital audio encoding.

[0004] Copyright Notice

[0005] A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever. Background Art

[0006] Many popular digital sound formats utilize lossy data compression techniques, which discard some data to reduce storage or data rate requirements. The application of lossy data compression not only reduces the fidelity of source content (such as audio content), but may also introduce significant distortion in the form of compression artifacts. In the context of audio decoding systems, these sound artifacts are referred to as decoding noise or quantization noise. Digital audio systems use codecs (encoder-decoder components) to compress and decompress audio data according to defined audio file formats or streaming audio formats. The algorithm implemented by the codec attempts to represent the audio signal with a minimum number of bits while retaining as high a fidelity as possible. The lossy compression techniques commonly used in audio codecs act on the psychoacoustic model of human auditory perception. Audio formats generally involve the use of time domain / frequency domain transforms (e.g., modified discrete cosine transform-MDCT), and use masking effects, such as frequency masking or time masking, so that certain sounds, which include any significant quantization noise, are hidden or masked by the actual content.

[0007] As is well known, audio codecs typically shape the decoding noise in the frequency domain so that it becomes minimally audible. In frame-based coders, the decoding noise may be most audible during the low-intensity portion of the frame, and may be heard as pre-echo distortion, where the silence (or low-level signal) preceding the high-intensity segment is drowned out by the noise in the decoded audio signal. This effect may be most noticeable in transient sounds or impulses from percussion instruments, such as castanets or other sharp percussive sound sources, and is typically caused by quantization noise introduced in the frequency domain being spread across the entire transform window of the codec in the time domain.

[0008] Although filters have been used to minimize pre-echo artifacts, such filters often introduce phase distortion and temporal smearing. Using smaller transform windows is another approach, but this can significantly reduce frequency resolution, and using multiple smaller transform windows in a frame increases the "side information" bit rate.

[0009] A system has been developed to overcome the effects of pre-echo artifacts by using companding techniques to achieve temporal noise shaping of quantization noise in an audio codec. Such embodiments include using a companding algorithm implemented in the QMF domain to achieve temporal shaping of quantization noise in combination with a masking threshold calculation strategy. However, it is not always simple to guess the type of companding that needs to be applied for a particular signal type. In general, companding provides benefits in time domain (temporal) noise shaping, but it can also generally provide benefits in frequency domain noise shaping. However, calculating masking thresholds and threshold reduction strategies that meet bit rate constraints are highly nonlinear operations, and it is difficult to predict the final result of frequency domain noise shaping. For this reason and the inherent nonlinear operation of companding, it is extremely difficult to predict the type of companding that needs to be applied in a content-dependent manner. Through some data collection efforts, it has been found that companding is beneficial for audio content that consists entirely or primarily of speech or applause. Although it is possible to design detectors that work independently for speech and applause, it is not easy to design a simple detector that is characterized by low complexity and without any delay that can detect both speech and applause. In addition, current detectors are not always 100% accurate.

[0010] Therefore, there is a need for a signal-dependent companding system that can adaptively apply companding based on input signal content. There is a further need for a detector circuit that can better distinguish between speech / applause and more tonal audio content to appropriately apply companding to complex audio signals.

[0011] The subject matter discussed in the Background section should not be assumed to be prior art simply because it is mentioned in the Background section. Similarly, problems mentioned in the Background section or problems associated with the subject matter in the Background section should not be assumed to have been previously recognized in the prior art. The subject matter in the Background section merely represents different approaches, which may themselves be inventions. Summary of the invention

[0012] Embodiments relate to a method of processing an audio signal by receiving an audio signal; classifying the audio signal as one of a pure sinusoidal, mixed, or pure transient signal using two defined thresholds; and applying a selective companding (compression / expansion) operation to the classified mixed signal using a companding rule using a temporal sharpness metric in a quadrature modulation filter (QMF) domain. The selective companding operation includes one of: a companding off mode, a companding on mode, and an average companding mode. The average companding mode is derived by measuring a gain factor for each of a plurality of frames of the audio signal and applying a constant gain factor to each frame, wherein the gain factor is closer to a gain factor for an adjacent frame for a companding on mode than a gain factor of 1.0 for an adjacent frame for a companding off mode. The method may further include calculating the gain factor by averaging the average absolute energy level over a plurality of time slots in a frame. For the classified mixed signal, the selective companding operation includes one of: a companding on mode and one of an average companding mode.

[0013] In an embodiment, the method further includes turning off compression and expansion for the classified pure sinusoidal signal and turning on compression and expansion for the classified pure transient signal. The classified mixed signal may contain applause or speech content. The compression and expansion rule may further use a spectral sharpness measure in a quadrature modulation filter (QMF) domain. In an embodiment, the method further includes generating control information encoding a selective compression and expansion operation, and transmitting the control information in a bit stream, which is transmitted to an audio decoder together with the digital audio output from the audio encoder. The classified mixed signal includes at least a combination of a partial sinusoidal and a partial transient signal, and is further processed to distinguish between the partial sinusoidal and partial transient signals to apply a selective compression and expansion operation based on a main component of the mixed signal, so as to provide continuity of gain applied in compression and reduce audio distortion caused by switching artifacts. The compression and expansion rule uses a first measure that the number of frequency bands with temporal sharpness is greater than a first threshold number, and a second measure based on an average value of the temporal sharpness values ​​being less than the first threshold number.

[0014] Embodiments further relate to a system comprising: an encoder that applies compression to modify quadrature modulation filter (QMF) time slots via wideband gain values, wherein larger gain values ​​result in amplification of relatively low intensity time slots, or smaller gain values ​​result in attenuation of relatively high intensity time slots; an interface for transmitting audio output from the encoder to a decoder, the decoder being configured to apply expansion in a companding operation to reverse the compression; and a companding controller having a detector configured to receive an input audio signal and classify the input audio signal based on signal characteristics; and a switch configured to switch among a plurality of companding modes based on the classified input audio signal.

[0015] Embodiments further relate to an audio decoder comprising: a first interface, which receives an encoded compressed audio signal from an encoder, the encoder applying compression to modify a quadrature modulation filter (QMF) time slot by a wideband gain value, wherein a larger gain value results in an amplification of a relatively low-intensity time slot or a smaller gain value results in an attenuation of a relatively high-intensity time slot; an expander component, which applies expansion to reverse the compression in a compression and expansion operation; and a second interface, which receives a bit stream encoding a compression and expansion control mode from a controller that classifies an input audio signal based on signal characteristics, and switches among multiple compression and expansion modes based on the classified input audio signal.

[0016] Another embodiment relates to a method, a system, an apparatus, and a non-transitory computer-readable medium storing instructions configured to process an audio signal. In one embodiment, audio is received. For a time period (e.g., a frame) of the audio signal, the time period of the audio signal is analyzed to determine whether the time period of the audio signal contains a sparse transient signal or a dense transient signal. Based on the determined result, the time period of the audio signal is compressed (dynamic range compression or expansion). The compressed and expanded time period of the audio signal is output. Wherein, the time period of the compressed audio signal includes a dynamic range of the time period of the audio signal compressed or expanded based on a compression index. If it is determined that the time period of the audio signal contains a sparse transient signal (e.g., a signal containing a first transient type), then a first compression index is used in the compression and expansion. If it is determined that the time period of the audio signal contains a dense transient signal (e.g., a signal containing a second transient type), then a second compression index different from the first compression index is used in the compression and expansion.

[0017] According to another embodiment, a system receives an audio signal. The system determines that a first frame of the audio signal contains a sparse transient signal (e.g., a signal of a first transient type). The system determines that a second frame of the audio signal contains a dense transient signal (e.g., a signal of a second transient type). The system applies a compression / expansion (comanding) operation to the audio signal using a companding rule that applies a first companding index to the first frame of the audio signal and a second companding index to the second frame of the audio signal. Each companding index is used to derive a corresponding degree of dynamic range compression for a corresponding frame. The system then provides the companded audio signal and the corresponding companding index to a downstream device for consumption.

[0018] The techniques disclosed in this specification may be implemented to achieve one or more advantages over conventional audio processing techniques. For example, conventionally, the focus of companding tools is to improve speech quality at low bit rates. Therefore, after tuning with speech, a fixed companding exponent α=0.65 in the companding tool is used and normalized. The companding exponent α=0.65 also appears to improve applause. The techniques disclosed in this specification improve conventional techniques by improving "difficult to decode" dense transient signals (e.g., applause, fire crackling, or rain). By selecting different values ​​for the companding exponent based on the transient type of the content, the disclosed techniques can produce better quality sound for the dense transient signals.

[0019] The disclosed techniques add minimal overhead in audio encoding. As described in more detail below, the disclosed techniques can improve the sound of transient type content by adding only one bit in the companding control data structure in an audio compression encoding scheme, such as the Digital Audio Compression (AC-4) standard. Therefore, the disclosed techniques are simple and efficient.

[0020] Embodiments still further relate to methods of making and using or deploying circuits and designs that embody or implement a signal-dependent companding system that can be used as part of an encoder, decoder, or combined encoder / decoder system.

[0021] Incorporated by Reference

[0022] Each specification, publication, patent and / or patent application mentioned in this specification is incorporated herein by reference in its entirety to the same extent as if each individual publication and / or patent application was specifically and individually indicated to be incorporated by reference. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In the following drawings, like reference numerals are used to refer to like elements.Although the following drawings depict various examples, one or more implementations are not limited to the examples depicted in the drawings.

[0024] Figure 1A companding system for reducing quantization noise in a codec-based audio processing system that may be used with a content detector is described under some embodiments.

[0025] Figure 2A An audio signal divided into a plurality of short time periods under an embodiment is described.

[0026] Figure 2B The following example illustrates the effect of applying broadband gain in each of the short time periods under the embodiment. Figure 2A audio signal.

[0027] Figure 3A is a flow chart illustrating a method of compressing an audio signal under an embodiment.

[0028] Figure 3B is a flow chart illustrating a method of expanding an audio signal under an embodiment.

[0029] Figure 4 is a block diagram illustrating a system for compressing an audio signal, under an embodiment.

[0030] Figure 5 is a block diagram illustrating a system for expanding an audio signal, under an embodiment.

[0031] Figure 6 The audio signal is divided into a plurality of short time periods under an embodiment.

[0032] Figure 7 Example QMF time slots of a frame for a chord in an example embodiment are illustrated.

[0033] Figure 8 is a flow chart illustrating a method of classifying audio content using a signal adaptive compandor, under some embodiments.

[0034] Fig. 9 is a flow chart illustrating a method of using spectral sharpness to distinguish speech or applause from a tonal signal, under some embodiments.

[0035] Fig.10 An example technique for selecting a companding index based on content is described.

[0036] Fig.11 is a table indicating instance values ​​of companding indices and corresponding companding states.

[0037] Fig.12 is a flow chart illustrating a first example process for transient density-based companding.

[0038] Fig.13 is a flow chart illustrating a second example process for transient density based companding.

[0039] Fig.14 is a flow chart illustrating a third example process for transient density-based companding. DETAILED DESCRIPTION

[0040] Systems and methods for implementing temporal noise shaping of quantization noise in an audio codec using certain improvements to companding techniques by using a companding algorithm implemented in the QMF domain to achieve temporal shaping of the quantization noise. Embodiments include a detector for signal content (e.g., speech and applause) within the audio content and applying an appropriate type or amount of companding based on the detected content, thereby providing optimal companding in a signal-dependent manner.

[0041] Aspects of one or more embodiments described herein may be implemented in an audio system that processes audio signals for transmission across a network that includes one or more computers or processing devices that execute software instructions. Any of the described embodiments may be used alone or in any combination with each other. Although various embodiments may have been inspired by various defects of the prior art that may be discussed or mentioned in one or more places in the specification, the embodiments do not necessarily solve any of these defects. In other words, different embodiments may solve different defects that may be discussed in the specification. Some embodiments may only partially solve some defects or only one defect that may be discussed in the specification, and some embodiments may not solve any of these defects.

[0042] Figure 1 A companding system for reducing quantization noise in a codec-based audio processing system that may be used with a content detector is described under some embodiments. Figure 1An audio signal processing system built around an audio codec including an encoder (or "core encoder") 106 and a decoder (or "core decoder") 112 is described. The encoder 106 encodes the audio content into a data stream or signal for transmission over a network 110, where the data stream or signal is decoded by the decoder 112 for playback or further processing. In an embodiment, the encoder 106 and decoder 112 of the codec implement a lossy compression method to reduce the storage and / or data rate requirements of the digital audio data, and this codec may be implemented as an MP3, Vorbis, Dolby Digital (AC-3 or AC-4), AAC, or similar codec. The lossy compression method of the codec produces decoding noise, which is generally stationary in level in the evolution of a frame defined by the codec. This decoding noise is generally most easily heard during the low intensity portion of the frame. The system 100 includes components for reducing perceived decoding noise in existing decoding systems by providing a pre-compression step component 104 and a post-expansion step component 114 operating on the core decoder 112 output before the core encoder 106 of the codec. The compression component 104 is configured to divide the original audio input signal 102 into multiple time segments using a defined window shape, calculate and apply a broadband gain in the frequency domain using a non-energy-based average of the frequency domain samples of the initial audio signal, wherein the gain value applied to each time segment amplifies relatively low-intensity segments and attenuates relatively high-intensity segments. This gain modification has the effect of compressing or significantly reducing the original dynamic range of the input audio signal 102. The compressed audio signal is then decoded in the encoder 106, transmitted over the network 110, and decoded in the decoder 112. The decoded compressed signal is input to the expansion component 114, which is configured to perform the inverse operation of the pre-compression step 104 by applying an inverse gain value to each time segment to expand the dynamic range of the compressed audio signal back to the dynamic range of the original input audio signal 102. Thus, the audio output signal 116 includes an audio signal having the original dynamic range, with the decoding noise removed by the pre- and post-step companding processes.

[0043] The system 100 performs compression and expansion (companding) in the QMF domain to achieve temporal shaping of the quantization noise of a digital decoder (i.e., an audio or speech spectrum front end). The encoder may be a Dolby Digital AC-3 or AC-4 core encoder, or any other similar system. It performs certain pre-processing functions, which include compression prior to the core encoder, and post-processing functions, which include expansion of the core decoder output, which performs exactly the inverse of the pre-processing. The system includes signal-dependent encoder control of the desired decoder companding level and a signal-dependent stereo (and multi-channel) companding process. As in Figure 1, the encoder 106 encodes and the compression component 104 includes a companding detector 105 that detects the state of the companding decision. The companding on / off / averaging decision is detected in the encoder 106 and transmitted to the decoder 112 so that the compressor and expander can be turned on / off / averaged at the same QMF time slot, wherein the QMF time slot processing is described in more detail below.

[0044] As in Figure 1 As further shown in FIG. 1 , a compression component or pre-compression step 104 is configured to reduce the dynamic range of an audio signal 102 input to a core encoder 106. The input audio signal is divided into a number of short segments. The size or length of each short segment is a fraction of the frame size used by the core encoder 106. For example, a typical frame size for a core decoder may be on the order of 40 to 80 milliseconds. In this case, each short segment may be on the order of 1 to 3 milliseconds. The compression component 104 calculates appropriate broadband gain values ​​to compress the input audio signal on a per-segment basis. This is achieved by modifying the short segments of the signal with appropriate gain values ​​for each segment. Relatively large gain values ​​are selected to amplify segments of relatively low intensity, and small gain values ​​are selected to attenuate segments of high intensity.

[0045] Figure 2A An audio signal divided into a plurality of short time periods under an embodiment is described, and Figure 2B shows the same audio signal after a wideband gain is applied through the compression component. Figure 2A As shown in FIG. 2 , an audio signal 202 represents a transient (transient event) or sound pulse, such as may be produced by a percussion instrument (e.g., castanets). The signal is characterized by a spike in amplitude, as shown in a plot of voltage V versus time t. In general, the amplitude of a signal is related to the acoustic energy or intensity of the sound and represents a measure of the power of the sound at any point in time. When the audio signal 202 is processed by a frame-based audio codec, portions of the signal are processed within a transform (e.g., MDCT) frame 204. Typical current digital audio systems utilize frames of relatively long duration, so that for sharp transients or short pulse sounds, a single frame may include low-intensity as well as high-intensity sounds. Therefore, as shown in FIG. 2 , a single MDCT frame 204 includes an impulse portion (spike) of the audio signal and a relatively large amount of low-intensity signal before and after the spike. In an embodiment, the compression component 104 divides the signal into several short time periods 206, and applies a broadband gain to each segment in order to compress the dynamic range of the signal 202. The number and size of each short segment may be selected based on application requirements and system constraints. Relative to the size of individual MDCT frames, the number of short segments may range from 12 to 64 segments, and may typically include 32 segments, but embodiments are not so limited.

[0046] Figure 2BThe following example illustrates the effect of applying broadband gain in each of the short time periods under the embodiment. Figure 2A The audio signal. Figure 2B , the audio signal 212 has the same relative shape as the original signal 202, however, the amplitude of the low intensity segments has been increased by applying an amplification gain value, and the amplitude of the high intensity segments has been reduced by applying an attenuation gain value.

[0047] The output of the core decoder 112 is an input audio signal with a reduced dynamic range (e.g., signal 212) plus quantization noise introduced by the core encoder 106. This quantization noise is characterized by an almost uniform level across the time within each frame. The expansion component 114 acts on the decoded signal to restore the dynamic range of the original signal. It uses the same short time resolution based on the short segment size 206 and inverts the gain applied in the compression component 104. Therefore, the expansion component 114 applies a small gain (attenuation) to the segments with low intensity in the original signal and amplified by the compressor, and applies a large gain (amplification) to the segments with high intensity in the original signal and attenuated by the compressor. Therefore, the quantization noise with a uniform time envelope added by the core encoder is simultaneously shaped by the post-processor gain to roughly follow the time envelope of the original signal. This process effectively makes the quantization noise less audible during quiet passage. Although the noise can be amplified during high-intensity passage, the noise is still less audible due to the masking effect of the loud signal of the audio content itself.

[0048] As in Figure 2A As shown in , the compression and expansion process modifies discrete segments of the audio signal individually with corresponding gain values. In some cases, this can lead to discontinuities at the output of the compressed component, which can lead to problems in the core encoder 106. Similarly, discontinuities in the gain at the expansion component 114 can lead to discontinuities in the envelope of the shaped noise, which can lead to audible clicks in the audio output 116. Another problem associated with applying individual gain values ​​to short segments of the audio signal is based on the fact that a typical audio signal is a mixture of many individual sources. Some of these sources may be stationary across time, and some may be transient. The statistical parameters of stationary signals are usually constant over time, while transient signals are usually not constant. Given the broadband nature of transients, their fingerprints in this mixture are usually more visible at higher frequencies. Gain calculations based on the short-term energy (RMS) of the signal tend to be biased towards stronger low frequencies, and are therefore dominated by stationary sources, and vary little across time. Therefore, this energy-based approach is usually ineffective in shaping the noise introduced by the core encoder.

[0049] In an embodiment, the system 100 calculates and applies gains at the compression and expansion components in the filter bank with short prototype filters to solve potential problems associated with applying individual gain values. The signal to be modified (the original signal at the compression component 104 and the output of the core decoder 112 in the expansion component 114) is first analyzed by the filter bank, and a broadband gain is applied directly in the frequency domain. The corresponding effect in the time domain is to naturally smooth the gain application according to the shape of the prototype filter. This solves the problem of discontinuity described above. Next, the modified frequency domain signal is converted back to the time domain via a corresponding synthesis filter bank. Analyzing the signal with a filter bank provides access to its spectral content and allows calculation of gains that preferentially increase contributions due to high frequencies (or increase contributions due to any weaker spectral content), providing gain values ​​that are not dominated by the strongest components in the signal. This solves problems associated with audio sources that include mixtures of different sources, as described above. In an embodiment, the system uses the p-norm of the spectral magnitude to calculate the gain, where p is typically less than 2 (p<2). This makes weak spectral content more emphasized than when based on energy (p=2).

[0050] As stated above, the system includes a prototype filter for smooth gain application. In general, the prototype filter is the basic window shape in the filter bank, which is modulated by a sine waveform to obtain an impulse response for different subband filters in the filter bank. For example, the short-time Fourier transform (STFT) is a filter bank, and each frequency line of this conversion is a subband of the filter bank. The short-time Fourier transform is implemented by multiplying the signal with a window shape (N sampling window), which can be a rectangular, Hann, Kaiser-Bessel derived (KBD) or some other shape. Then, the windowed signal is subjected to a discrete Fourier transform (DFT) operation to obtain the STFT. The window shape in this case is the prototype filter. The DFT is composed of sinusoidal basis functions with different frequencies each. Multiplying the sinusoidal function window shape then provides a filter for the subband corresponding to the frequency. Because the window shape is the same at all frequencies, it is called a "prototype".

[0051] In an embodiment, the system uses a QMF (quadrature modulated filter) bank for the filter bank. In a specific implementation, the QMF bank may have a 64-pt window, which forms a prototype. This window modulated by cosine and sine functions (corresponding to 64 equally spaced frequencies) forms a subband filter for the QMF bank. After each application of the QMF function, the window is moved by 64 samples, i.e., in this case, the overlap between the time periods is 640–64=576 samples. However, although the window shape spans ten time periods (640=10*64) in this case, the main lobe of the window (where its sample values ​​are very important) is approximately 128 samples long. Therefore, the effective length of the window is still relatively short.

[0052] In an embodiment, expansion component 114 is ideally reversed by the gain of compression component 104 applications. Although the gain of compression component application may be transmitted to decoder by bit stream, this method will consume significant bit rate usually. In an embodiment, system 100 directly estimates the required gain of expansion component 114 from the signal (i.e. the output of decoder 112) that can be used for expansion component 114 instead, and it does not need extra position in fact. The filter bank at compression and expansion component place is selected as equal, so that the gain that is mutually inverse is calculated. In addition, these filter banks are time synchronization, so that the output of compression component 104 and any effective delay between the input to expansion component 114 is the multiple of the stride of filter bank. If core encoder-decoder is lossless, and filter bank provides perfect reconstruction, the gain at compression and expansion component place will be the accurate inverse of each other so, therefore allows the accurate reconstruction of original signal. However, in practice, the gain applied by expansion component 114 is only the inverse approximation of the gain applied by compression component 104.

[0053] In an embodiment, the filter bank used in the compression and expansion component is a QMF bank. In a typical use application, the core audio frame can be 4096 samples long, with an overlap of 2048 with adjacent frames. At 48kHz, this frame will be 85.3 milliseconds long. In contrast, the QMF bank used can have a stride of 64 samples (which is 1.3 milliseconds long), which provides a good time resolution for gain. In addition, QMF has a smooth prototype filter of 640 samples long, thereby ensuring that the gain application changes smoothly across time. Analyzing with this QMF filter bank can provide a time-frequency tiled representation of the signal. Each QMF time slot is equal to a stride, and there are 64 evenly spaced subbands in each QMF time slot. Alternatively, other filter banks, such as short-time Fourier transform (STFT), can be adopted, and this time-frequency tiled representation can still be obtained.

[0054] In an embodiment, compression component 104 performs a pre-processing step of scaling the codec input. t (k) is the complex-valued filter bank sample at time slot t and frequency bin k. Figure 6 The audio signal is divided into a number of time slots for a range of frequencies under an embodiment. For the embodiment of diagram 600, there are 64 frequency bins k and 32 time slots t, which produce a number of time-frequency slices as shown (although not necessarily drawn to scale). The pre-compression step scales the codec input to become S' t (k) = S t (k) / g t In this equation, is the normalized time slot average.

[0055] In the above equation, the expression is the mean absolute level / 1-norm, and S 0 is a suitable constant. The general p-norm in this context is defined as follows:

[0056]

[0057] It has been shown that the 1-norm can give much better results than using the energy (RMS / 2-norm). The value of the exponential term γ is typically in the range between 0 and 1, and can be chosen to be 1 / 3. The constant S 0 Ensure reasonable gain values ​​independent of the implementation platform. For example, when all S t When implemented on a platform where the absolute value of (k) may be constrained to 1, it may be 1. t (k) may be different in platforms that may have different maximum absolute values. It can also be used to ensure that the average gain value across a large number of signals is close to 1. That is, it can be an intermediate signal value between the maximum signal value and the minimum signal value determined from the large amount of content.

[0058] In a post-process performed by the expansion component 114, the codec output is expanded by the inverse gain applied by the compression component 104. This requires an exact or near-exact replica of the filter bank of the compression component. In this case, represents the complex-valued samples of this second filter bank. The expansion component 114 scales the codec output to become

[0059] In the above equation, is the normalized time slot average, given by:

[0060]

[0061] and

[0062]

[0063] In general, the expansion component 114 will use the same p-norm as used in the compression component 104. Thus, if the mean absolute level is used to define So It is also defined using the 1-norm (p=1) in the above equation.

[0064] When a complex filter bank (composed of cosine and sine basis functions) such as STFT or complex QMF is used in the compression and expansion components, the magnitude or complex subband samples or |S tThe calculation of |(k)| requires a computationally intensive square root operation. This can be avoided by approximating the magnitude of the complex subband samples in various ways, for example, by adding the magnitude of their real and imaginary parts.

[0065] In the above equation, the value K is equal to or less than the number of subbands in the filter bank. In general, the p-norm can be calculated using any subset of the subbands in the filter bank. However, the same subset should be adopted at both the encoder 106 and the decoder 112. In an embodiment, the high-frequency part of the audio signal (for example, the audio component above 6kHz) can be decoded using the Advanced Spectrum Extension (A-SPX) tool. In addition, it may be desirable to guide noise shaping using only signals above 1kHz (or similar frequencies). In this case, only those subbands in the range 1kHz to 6kHz can be used to calculate the p-norm, and therefore calculate the gain value. In addition, although the gain is calculated from a subset of the subbands, it can still be applied to different and possibly larger subsets of subbands.

[0066] As in Figure 1 , while two separate components 104 and 114 perform certain pre-encoder compression functions and post-decoder expansion functions, a companding function is performed to shape the quantization noise introduced by the core encoder 106 of the audio codec. Figure 3A is a flow chart illustrating a method of compressing an audio signal in a pre-coder compression component under an embodiment, and Figure 3B is a flow chart illustrating a method of extending an audio signal in a post-decoder extending component under an embodiment.

[0067] As in Figure 3AAs shown in , process 300 begins with a compression component receiving an input audio signal (302). This component then divides the audio signal into short time segments (304) and compresses the audio signal to a reduced dynamic range by applying a broadband gain value to each of the short segments (306). The compression component also implements certain prototype filtering and QMF filter bank components to reduce or eliminate any discontinuities caused by applying different gain values ​​to adjacent segments, as described above (308). In some cases, such as based on the type of audio content or certain characteristics of the audio content, the compression and expansion of the audio signal before and after the encoding / decoding stage of the audio codec may degrade rather than enhance the output audio quality. In such examples, the compression and expansion process can be turned off or modified to return different compression and expansion (compression / expansion) levels. Therefore, among other variables, the compression component determines the appropriateness of the compression and expansion function required for a specific signal input and audio playback environment and / or the optimal level of compression and expansion (310). This determination step 310 can occur at any practical point in process 300, such as before the division of the audio signal 304 or the compression of the audio signal 306. If companding is deemed appropriate, then gain is applied (306), and the encoder then encodes the signal according to the codec's data format for transmission to the decoder (312). Certain companding control data, such as activation data, synchronization data, companding level data, and other similar control data may be transmitted as part of the bitstream for processing by the expansion component.

[0068] Figure 3B 350 is a flow chart illustrating a method for extending an audio signal in a post-decoder extension component under an embodiment. As shown in process 350, the decoder level of the codec receives a bit stream (352) that encodes the audio signal from the encoder level. The decoder then decodes the encoded signal according to the codec data format (353). The extension component then processes the bit stream and applies any encoded control data to close the extension or modify the extension parameters (354) based on the control data. The extension component divides the audio signal into time segments (356) using a suitable window shape. In an embodiment, the time segment corresponds to the same time segment used by the compression component. The extension component then calculates the appropriate gain value (358) for each segment in the frequency domain, and applies the gain value to each time segment to extend the dynamic range of the audio signal back to the original dynamic range or any other appropriate dynamic range (360).

[0069] Companding control

[0070] The compression and expansion components, including the compandor of system 100, can be configured to apply the pre-processing and post-processing steps only at certain times during the processing of the audio signal, or only for certain types of audio content. For example, companding can show benefits for speech (which consists of a series of pulse-like events of pseudo-stationary nature) and music transient signals. However, for other signals, such as stationary signals, companding can degrade signal quality. Thus, as in Figure 3A , a companding control mechanism is provided as block 310, and control data is transmitted from the compression component 104 to the expansion component 114 to coordinate the companding operation. The simplest form of this control mechanism is to turn off the companding function for blocks of audio samples where the application of companding is degrading the audio quality. In an embodiment, the companding on / off decision is detected in the encoder and transmitted to the decoder as a bitstream element, so that the compressor and expander can be turned on / off in the same QMF time slot.

[0071] The switch between the two states will usually result in a discontinuity in the application gain, resulting in an audible switching artifact or click. Embodiments include mechanisms to reduce or eliminate these artifacts. In a first embodiment, the system allows the compression and expansion function to be turned off and on only at frames where the gain is close to 1. In this case, there is only a small discontinuity between the on / off compression and expansion functions. In a second embodiment, a third weak compression and expansion mode between the on and off modes is applied to the audio frames between the on and off frames and is reported with a signal in the bitstream. The weak compression and expansion mode slowly changes the exponential term γ from its default value during the compression and expansion to 0, which is equivalent to no compression and expansion. As an alternative to the intermediate weak compression and expansion mode, the system can implement a start frame and a stop frame, which smoothly fades into the non-compression and expansion mode on the block of audio samples, rather than suddenly turning off the compression and expansion function. In another embodiment, the system is configured not to simply turn off the compression and expansion, but to apply an average gain. In some cases, if a constant gain factor that is more similar to the gain factor of the adjacent compression and expansion opening frame than the constant gain factor 1.0 in the case of compression and expansion closing is applied to the audio frame, the audio quality of the tone static signal can be increased. This constant average compressive gain factor can be calculated by averaging all the average absolute levels / 1-norms calculated per time slot over one frame. Thus, frames containing a constant average compressive gain are signaled in the bitstream.

[0072] Although the embodiments are described in the context of a monophonic audio channel, it should be noted that in a simple extension, multiple channels can be handled by repeating the method individually on each channel. However, an audio signal comprising two or more channels is presented by Figure 1 Some additional complexities are addressed by embodiments of the companding system of FIG. 1 . The companding strategy should rely on the similarity between channels.

[0073] For example, in the case of stereo panning transient signals, it has been observed that independent companding of individual channels may result in audible stereo image artifacts. In an embodiment, the system determines a single gain value for each time period from the subband samples of the two channels and uses the same gain value to compress / expand both signals. For example, this approach is typically appropriate when the two channels have very similar signals, where similarity is defined using cross-correlation. The detector calculates the similarity between the channels and switches between using individual companding of the channels or jointly companding the channels. Extension to more channels would use a similarity criterion to divide the channels into multiple channel groups and apply joint companding to the groups. This grouping information can then be transmitted via the bitstream.

[0074] System Implementation Plan

[0075] Figure 4 is a block diagram illustrating a system for compressing an audio signal in conjunction with an encoder stage of a codec, under an embodiment. Figure 4 Description Implementation for Figure 3A 4. A hardware circuit or system that implements at least a portion of the compression method in a codec-based system as shown in FIG. As shown in system 400, an input audio signal 401 in the time domain is input to a QMF filter bank 402. This filter bank performs an analysis operation that separates the input signal into multiple components, where each bandpass filter carries a frequency subband of the original signal. Reconstruction of the signal is performed in a synthesis operation performed by the QMF filter bank 410. Figure 4 In the example embodiment of , the analysis and synthesis filter bank handles 64 frequency bands. The core encoder 412 receives the audio signal from the synthesis filter bank 410 and generates a bit stream 414 in the frequency domain by encoding the audio signal in a suitable digital format (e.g., MP3, AAC, AC-4, etc.).

[0076] The system 400 includes a compressor 406 that applies a gain value to each of the short segments into which the audio signal is divided. This produces a compressed dynamic range audio signal, such as Figure 2B . The companding control unit 404 analyzes the audio signal to determine whether or how much compression should be applied based on the type of signal (e.g., speech) or characteristics of the signal (e.g., stationary vs. transient) or other relevant parameters. The control unit 404 may include a detection mechanism to detect temporal peak characteristics of the audio signal. Based on the detected characteristics of the audio signal and certain predefined criteria, the control unit 404 sends appropriate control signals to the compressor 406 to turn off the compression function or modify the gain value applied to short segments.

[0077] It should be noted that the term "peak" may also be referred to as "sharpness" (e.g., T p or T s), and both refer to the transient energy of a signal at a specific time relative to the recent past and future, so that a spike or sharp signal appears as an impulse or spike in the energy.

[0078] In addition to companding, many other coding tools can also operate in the QMF domain. One such tool is A-SPX, which Figure 4 408 of . A-SPX is a technique for allowing less perceptually important frequencies to be coded with a coarser coding scheme than more important frequencies. For example, in A-SPX at the decoder end, QMF subband samples from lower frequencies may be replicated at higher frequencies, and then the spectral envelope in the high frequency band may be shaped using side information transmitted from the encoder to the decoder. For example, A-SPX is used by some advanced codes such as AC-4, and other similar tools may also be used.

[0079] In a system where both companding and A-SPX encoding are performed in the QMF domain, at the encoder, envelope data for higher frequencies may be extracted from the subband samples that have not yet been compressed, as in Figure 4 , and compression may be applied only to the lower frequency QMF samples corresponding to the frequency range of the signal encoded by the core encoder 412. Figure 5 At the decoder 502 of , after QMF analysis 504 of the decoded signal, a spreading process 506 is first applied, and an A-SPX operation 508 then reproduces the higher subband samples in lower frequencies from the spread signal.

[0080] In this example implementation, the QMF synthesis filter bank 410 at the encoder and the QMF analysis filter bank at the decoder together introduce a 640-64+1 sample delay (~9 QMF time slots). The core codec delay in this example is 3200 samples (50 QMF time slots), so the total delay is 59 time slots. This delay is taken into account by embedding control data into the bitstream and using it at the decoder so that both the encoder compressor and the decoder expander operate synchronously.

[0081] Alternatively, at the encoder, compression can be applied to the entire bandwidth of the original signal. Envelope data can then be extracted from the compressed subband samples. In this case, the decoder first runs a tool to first reconstruct the full bandwidth compressed signal after QMF analysis. Next, an expansion stage is applied to restore the signal with its original dynamic range.

[0082] Another tool that can operate in the QMF domain is Figure 4406 at the decoder.

[0083] As in Figure 3A and 3B As shown in , the bitstream transmitted between the encoder and decoder stages of the codec includes certain control data. This control data constitutes side information that allows the system to switch between different companding modes. Switching control data (for switching companding on / off) plus some potential intermediate states may add on the order of 1 or 2 bits per channel. Other control data may include signals to determine whether all channels of a discrete stereo or multi-channel configuration will use a common companding gain factor, or whether it should be calculated independently for each channel. This data may require only a single additional bit. Other similar control data elements and their appropriate bit weights may be used, depending on system requirements and constraints.

[0084] Detection Mechanism

[0085] In an embodiment, a companding control mechanism is included as part of the compression component 104 to provide control of companding in the QMF domain. The companding control can be configured based on several factors, such as the audio signal type. For example, in most applications, companding should be turned on for speech signals and any other signals within the category of transient signals or temporal spike signals (e.g., applause). The system includes a detection mechanism 405 to detect spikes in the signal in order to help generate appropriate control signals for the compandor function. The detection mechanism 405 can be thought of as being used to analyze the signal to, for example, determine whether the signal is a sparse transient signal or a dense transient signal. In this sense, the temporal spikes of the signal can be used to derive a measure of the density of transients (transient events) in the signal.

[0086] In an embodiment, the normalized 4th moment is used to measure the degree of fluctuation in the envelope signal. TP(k) is calculated for a time peak at frequency bin k for a given core codec. frame The measure is calculated using the following formula:

[0087]

[0088] Similarly, the spectrum peak metric can be calculated at time slot t. In the above equation, S t (k) is a subband signal, and T is the number of QMF time slots corresponding to one core encoder frame. In an example implementation, the value of T may be 32. The time peaks calculated per band can be used to classify the sound content into two general categories: static music signals and music transient signals or speech signals. If TP(k) frame If the value of is less than a defined value (e.g., 1.2), then the signal in the subband of the frame is likely to be a stationary music signal. frame If the value of is greater than this value, then the signal is most likely a music transient signal or a speech signal. If the value is greater than an even higher threshold (e.g. 1.6), then the signal is most likely a pure music transient signal, such as castanets. Furthermore, it has been observed that for naturally occurring signals, the values ​​of the time peaks obtained in different bands are more or less similar, and this property can be exploited to reduce the number of subbands for which time peaks are to be calculated.

[0089] Note that since peaks (sharpness) are the opposite of flatness, any metric based on flatness can be used in a similar manner. For complex-valued transforms as used in AC-4, use S t The magnitude of the complex value of (k). The above temporal sharpness metric can also be applied to real-valued transforms. In the above expression, for the AC-4 / A-SPX embodiment, T is the total number of QMF time slots in the frame, whose final value (depending on the static or transient content) is determined by the A-SPX frame generator. For a 2048 frame length, for static content, T is 2048 / 64=32. Because AC-4 supports various frame lengths (to support video frame synchronous audio decoding); the value of T is different for different frame lengths. As stated above, calculating the magnitude of the complex subband samples requires computationally intensive square root operations, which can be avoided by approximating the magnitude of the complex subband samples in various ways, such as by adding the magnitudes of their real and imaginary parts.

[0090] refer to Figure 4 It should be noted that for the QMF matrix, the number of time slots may change based on the A-SPX analysis and may change with the signal, so the time boundary data must come from the A-SPX analysis component.

[0091] Companding switch

[0092] In an embodiment, the system described above reduces the dynamic range of the input signal before the core encoder. In this sense, companding before core encoding may correspond to a compression of the dynamic range of the input signal. The system does so by modifying the QMF time slots (in the core encoding or equivalently in the non-A-SPX frequency range) with wideband gain values. For time slots of relatively low intensity, the gain values ​​are large (i.e., amplification), and for time slots of high intensity, the gain values ​​are small (i.e., attenuation).

[0093] In general, companding has been found to help process content such as applause or speech, or signals with sharp impacts (e.g., percussive effects), and does not help other types of content (e.g., tonal audio). Therefore, signal adaptive companding applies companding depending on the detected signal. In an embodiment, Figure 1 The encoder / decoder system 100 performs signal adaptive or signal dependent companding to implement a companding mode switching process that provides an optimal amount of companding based on the signal content. As stated above, companding provides temporal noise shaping and has been observed to provide perceptually beneficial frequency domain noise shaping (where perceptually beneficial means that the quantization noise is better shaped to (follow and) remain below the masking curve). However, because companding is a nonlinear operation, it is generally difficult to predict its frequency domain benefits in conjunction with psychoacoustic models (also a nonlinear model). Improperly applying companding, such as through a suboptimal switching strategy, can result in switching artifacts and increase system complexity and latency. The companding switching process under certain embodiments determines when companding is helpful and how to best apply signal adaptive companding.

[0094] Figure 4 A system for compressing an audio signal at the encoder level in conjunction with a codec and including a compandor switching component or function 407 is shown. Switch 407 is configured to facilitate optimizing companding selection by not simply turning off companding abruptly, but applying a constant gain factor to an audio frame that is more similar to the gain factor of an adjacent companding-on frame than the constant gain factor of 1.0 with companding-off. This gain factor is calculated by averaging the average absolute level over the time slots within a frame. The frames that employ average companding are reported in the bitstream with a signal (e.g., b_compand_avg). Average in this context means the average of the average absolute levels.

[0095] In one embodiment, switch 407 is configured to switch between one of three companding states: no companding (Compand_Off), normal companding (Compand_On), and average companding (Compand_Ave). In some embodiments, the Compand_Off mode is only used for pure sinusoidal signals, and for all other signals, the system switches between the on mode and the average mode.

[0096] For normal compression and expansion: If S t (k) is the complex-valued filter bank sample at time slot t and frequency band k, then the preprocessing step scales the core codec input to SC t (k) = S t (k)g t , where g t =(SM t ) α-1 and is the normalized time slot mean (or gain); where SM t is the mean absolute level (1-norm), which is the sum of the SMs in the range k = 1 to K t (k)=1 / K∑|S t (k)| is given; and α=0.65. Here, α may be referred to as the companding exponent. In an embodiment, the companding detector is designed for complex values ​​S whose magnitude is between ±64 t (k). If the range of complex values ​​is different, then the design needs to be scaled accordingly, so other embodiments may feature different values ​​as appropriate.

[0097] For average companding, in an example embodiment, Figure 7 Example QMF slots for a frame of a chord are illustrated. Figure 7 700 shows the tonal / harmonic content of an example multi-note chord played on a suitable instrument (e.g., piano or guitar). Figure 7 , the resulting gain for three different companding settings is shown. The companding_off trace 702 shows a flat gain, while the companding_on trace 706 shows a relatively abrupt discontinuity in the gain. This discontinuity at the post-processor (i.e., the companding decoder) results in a discontinuity in the envelope of the shaped noise, which results in an audible click that can be seen as an annoying popping noise. The companding average trace 704 shows that employing average companding instead of normal companding (as just described above) eliminates the audible click. Similar observations show that this also applies to other tonal / harmonic content (e.g., harpsichord or similar instruments). In other words, companding is detrimental to tonal / harmonic content, and for tonal / harmonic content, companding should be turned off or average companding should be employed.

[0098] If compression is applied in the encoder, the output of the core decoder is this signal with a reduced dynamic range, and a quantization noise of almost uniform level (temporal envelope) is added across time in each frame. A small gain (attenuation) is applied to the time slots in the original signal where the intensity is lower and has been amplified by the pre-processor, and a large gain (amplification) is applied to the time slots in the original signal where the intensity is higher and has been attenuated by the pre-processor. Therefore, the quantization noise is simultaneously shaped by the post-processor gain to roughly follow the temporal envelope of the original signal. In the case where average compression is applied in the encoder, it is also necessary to apply average compression in the decoder, that is, a constant gain factor is applied to the audio frame.

[0099] In an embodiment, the temporal peaks (or sharpness) calculated per band may be used to roughly classify the audio content into the following categories as defined by two thresholds:

[0100] (1) Pure sine, static music: (TP(k) frame <1.2)

[0101] (2) Still / tone / transient music + speech + applause: (1.2 < TP(k) frame < 1.6)

[0102] (3) Pure transient (e.g., shock): (TP(k) frame >1.6)

[0103] The thresholds of 1.2 and 1.6 for distinguishing the three types of pure sinusoidal / tone / pure transient audio are derived from experimental data and may vary depending on the full range and units of measurement. t (k) The designed companding detector derives the specific values ​​of 1.2 and 1.6. If the range of complex values ​​is different, then a different threshold value will be used.

[0104] Figure 8800 is a flow chart illustrating a method for classifying audio content using a signal adaptive compandor under some embodiments. The method begins in step 802 by defining thresholds for distinguishing three main content categories: (1) pure sinusoids; (2) stationary / tonal; and (3) pure transients. The second category, stationary / tonal, can be any signal that includes a mixture of sinusoids, transients, tones, partial tonal signals, etc., and typically includes the vast majority of signals present in audio programs. Therefore, this content represents a mixture of transient signals and sinusoidal signals, and is referred to as a "mixed" signal. To classify into the three main categories, two thresholds are defined. The thresholds are defined with respect to certain compandor detector parameters, such as complex-valued magnitudes, as described above, such as 1.2 and 1.6, although any other values ​​are possible. Based on these thresholds, in step 804, the input audio is roughly classified into three categories, and a determination is made in decision block 806 whether the signal is mixed. If the signal is not mixed, then it is either pure sinusoidal or pure transient, in which case the appropriate companding rule may be applied, such as companding turned off for pure sinusoidal signals and turned on for pure transient signals, block 808. If the signal is mixed, it includes sinusoidal and transient signals, and the companding setting on or off may not be optimal. In this case, further processing is required to distinguish the tonal signal from transient or partially transient signals (e.g. due to speech or applause) or similar effects (e.g. percussion or the like). In an embodiment, the temporal sharpness characteristic is used to derive a residual metric that helps distinguish the tonal signal from such speech / applause signals, block 810. Referring below to Fig. 9 Provide details for this step of the process.

[0105] Thus, in an embodiment, the detection component 405 is configured to detect the type of signal based on the value of the input signal compared to a defined threshold. This allows the system to distinguish between static / tonal music and speech, which may also have a tonal portion. The detector also uses a spectral sharpness metric to make a better distinction. It derives the residual metric from the temporal sharpness metric using the fact that anything that is not obviously temporally sharp is spectrally sharp. Thus, after roughly classifying the signal as pure tones or pure transients (classes 1 or 3 above) rather than static or transients (class 2 above), spectral sharpness is used to further distinguish the signal. Spectral sharpness is not calculated directly, but is derived as a residual metric from other calculations.

[0106] Regarding the residual value export, Fig. 9is a flow chart illustrating a method of using spectral sharpness to distinguish speech from tonal signals, under some embodiments. In step 902, the process takes metric 1, which is the number of bands with temporal sharpness greater than 1.2. In step 904, the process takes metric 2, which is the average of the temporal sharpness values ​​less than 1.2, which is the remaining measure. Next, the process applies a defined rule to turn companding off or average the companding, block 906. This allows the system to adaptively employ companding depending on the content, and takes into account the fact that, in general, companding is detrimental to tonal / harmonic content and should be turned off or averaged, as in Figure 7 As shown in .

[0107] The following code snippet illustrates an example rule for turning on or averaging companding, with [1] indicating metric 1 and [2] indicating metric 2:

[0108]

[0109] This rule produces a series of ones and zeros. A value of one indicates that the companding mode is set to on, and a value of zero indicates that the companding mode is off, but off can result in the use of average mode. Therefore, in the above code example, 0 means average mode, and thus the code segment enables switching between companding on and companding average.

[0110] In the above rule, metric 2 attempts another round of classification to distinguish tonal signals from speech. The thresholds are appropriately defined (e.g., based on the overall measurement scale) so that anything above 1.18 is pure transient, and anything below 1.1 is pure tonal signal. But this pure transient or pure tonal signal is likely to have been classified by the outermost if condition. Therefore, the inner if statement attempts to further fine-tune the classification. For the zone between 1.1 and 1.18, it has been found that most of the tonal components of speech are in the range 1.12 to 1.18, and the tonal components of music are between 1.1 and 1.12.

[0111] It can be seen from the above rules that in one embodiment, the "open" and "average" sequence generates detectors that are configured as 1111 0100 with respect to the open / close or open / average setting of the compression expansion mode. An alternative detector may look like: 1011 1000. For the above example, eight possibilities of "opening" compression expansion or "averaging the compression expansion". In general, the bit assignments such as 1111 0100 and 1011 1000 are found by key listening and / or using certain listening tools. Alternative configurations represent a trade-off of closing compression expansion slightly more frequently for tone signals at the expense of closing compression expansion slightly more for speech. These may represent a "second best" alternative because the voice quality is slightly degraded. The configuration may be changed or modified based on system requirements and subjective metrics of optimal and suboptimal sounds and the desired trade-off between speech / applause and tone sounds.

[0112] For extreme cases, such as pure sinusoids, companding is "off", e.g. Figure 8 As shown in block 808 of and the code segment shown below.

[0113]

[0114] Under some embodiments, the above code segments illustrate implementations of the switching method.It should be understood that the code segments illustrate example software implementations, and variants and additional or different code structures may also be used.

[0115] The relationship between temporal sharpness and spectral sharpness is based on the fact that observations have shown that, in addition to affecting temporal noise shaping, companding can also provide some perceptually beneficial noise shaping effects in the frequency domain. Figure 6 , in the QMF domain, the output of QMF is a matrix where the y-axis is frequency and the x-axis is time slots. Each time slot consists of the number of samples, and each band consists of the number of frequencies. This frequency times time matrix can be used to detect the time sharpness of each frequency band, where the x-axis gives the time sharpness. Likewise, the y-axis gives the frequency sharpness, and although this is not necessarily calculated, the frequency sharpness can be derived from this matrix.

[0116] Figure 4 A system based on the Dolby AC-4 audio transmission system and format is described, which is standardized by the European Telecommunications Standards Institute (ETSI) as TS103 190 and adopted by Digital Video Broadcasting (DVB) in TS101 154. Embodiments are also described for Advanced Spectral Extension (A-SPX) coding tools for efficient coding of high frequencies at low bit rates. It should be noted that the embodiments are not so limited and any suitable codec design and audio coding and transmission method may be used.

[0117] In an embodiment, the compressor is the last step before QMF synthesis at the encoder (for the A-SPX only case or the A-SPX+A-CPL case). For the A-SPX+A-CPL case, the hybrid analysis / synthesis at the encoder works before the compressor. Depending on the output of the companding controller 404, the compressor 406 can perform a normal companding mode or an average companding mode based on the switch 407 function.

[0118] Through various experiments, testing different companding modes for different audio clips, and using monitoring tools to evaluate the quality of the audio output in terms of degradation due to the audio decoding process, it was found that when using average companding, clips that degraded with companding turned on improved; and when using average companding, clips that degraded with companding "on" improved very slightly. These two points mean that the system can switch between companding turned on and average companding most of the time. This provides the advantage of switching with more continuity in the applied gain, and avoids potential switching artifacts. It also leads to low complexity and no delay detectors being incorporated into the companding control.

[0119] Although the embodiments described thus far include a companding process for reducing quantization noise introduced by an encoder in a codec, it should be noted that aspects of this companding process may also be applied to signal processing systems that do not include encoder and decoder (codec) stages. Furthermore, where the companding process is used in conjunction with a codec, the codec may be transform-based or non-transform-based.

[0120] Fig.10 An example technique for selecting a companding index (α) based on content (audio content) is described. It is worth noting that in the following reference will be made to a frame of an audio signal which will be understood as a non-limiting example of a time segment of an audio signal. The present invention should not be understood as being limited to frames, but is equally applicable to all possible implementations of time segments.

[0121] A system including one or more computer processors receives (1004) one or more audio signals. The system determines that a first frame F0 of the signal comprises a signal of a first transient type, e.g., a sparse transient signal in which transients are widely spaced. This may mean that transients are individually perceptible and distinguishable, with (short) periods of silence between transients. Some examples of signals of the first transient type are castanets, electronic music, a speech, or some applause. In response, the system assigns a companding exponent value to a first value (e.g., α=0.65) for the first frame F0.

[0122] The system may determine that a second frame F1 of the audio signal contains content of a second transient type. The content of the second transient type contains dense transient signals. An example of content of the second transient type is applause with more dense transients than the first type of content. In response, the system specifies the companding exponent value to be a second value (e.g., α=0.5) for the second frame.

[0123] The system determines that the third frame F2 of the audio signal contains content of a third transient type. The content of the third transient type contains a transient signal having more dense transients than the content of the second transient type. An example of content of the third transient type is dense applause with a high clap density. In response, the system specifies the compression index value to be a third value (e.g., α=0.35) for the third frame. In general, the first to third values ​​can be reduced in value from the first value to the third value, for example, from α=0.65, via α=0.5, to α=0.35.

[0124] The system determines that a fourth frame F3 of the audio signal contains content of a fourth transient type. The content of the fourth transient type contains a transient signal that is so dense in the transient that it is considered noise. In response, the system specifies a companding index value as a fourth value for the fourth frame. The fourth value may be equal to the first value (e.g., α=0.65). Alternatively, the system may turn off companding for the fourth frame. Specifying the companding index value as having a value of 1.0 turns off companding.

[0125] Thus, the system may analyze frames of the audio signal (as a non-limiting example of a time period) to determine, for each frame, whether the corresponding frame includes a signal of the first to fourth transient content types. In some implementations, the system may only distinguish between two (or three) types of transient content, such as a sparse transient type (the first transient type) and a dense transient type (the second or third transient type). The system may then consider frames of the corresponding transient type to belong to a corresponding set of frames (e.g., the first to fourth sets of frames) and assign a corresponding companding index to each set of frames. For example, a first value of the companding index may be assigned to a first set of frames consisting of all of the frames that include a signal of the first transient type, a second value of the companding index may be assigned to a second set of frames consisting of all of the frames that include a signal of the second transient type, a third value of the companding index may be assigned to a third set of frames consisting of all of the frames that include a signal of the third transient type, and a fourth value of the companding index may be assigned to a fourth set of frames consisting of all of the frames that include a signal of the fourth transient type.

[0126] Fig.11is a table indicating example values ​​of the companding index and the corresponding companding states. Conventionally, a one-bit value in the companding control data structure determines whether companding is on or off. If the system determines that companding is on, then the system uses a fixed companding index value α=0.65. In the instantaneous density-based companding disclosed in this specification, two new companding index values ​​α=0.5 and α=0.35 are used as shown in reference Fig.10 The second and third types of content disclosed. Depending on the number of bits used to signal the compression index value between the encoding side and the decoding side, different sets of compression indexes can be used. For example, if one bit is used to signal the value of the compression index, then sparse transient events and dense transient events can be distinguished (for example, there is a predefined threshold for separating sparse transient types and dense transient types from each other in terms of the density of transient events). Then, a first value α=0.65 can be used for sparse transient event frames, and a second value α=0.5 or α=0.35 can be used for dense transient event frames. If two bits are used to signal the value of the compression index, then it can use, for example, the first to fourth values ​​of the compression index given above to distinguish between four different types of frames.

[0127] A lower value of companding α corresponds to a higher degree of dynamic range compression in the companding (e.g., before core encoding). A value of α=1 indicates no companding. Correspondingly, a lower value of companding α corresponds to a higher degree of dynamic range expansion in the companding (e.g., after core decoding). A higher degree of dynamic range compression means that low-intensity signals will be enhanced more, and high-intensity signals will be attenuated more.

[0128] The system may indicate the value of the companding exponent α in the companding control data structure, as shown below.

[0129] In the data structure, b_compand_on[ch] contains the data for a specific companding_control(num_chan)

[0130]

[0131] Two-bit value for channel ch. b_compand_on[ch] may have binary values ​​00, 01, 10, or 11, indicating that for a particular frame, the values ​​of the companding exponent α are 1, 0.65, 0.5, and 0.35, respectively. Other combinations of values ​​are possible.

[0132] Fig.12 1 is a flow chart illustrating an example process 1200 for transient density based compression. The process 1200 is a flow chart illustrating an example process 1200 for transient density based compression. Fig.10 and Fig.11Example implementation of the described techniques. Process 1200 may be performed by a system including one or more computer processors. The system may be an audio encoder, an audio decoder, or both.

[0133] The system receives (1202) an audio signal. The system determines (1204) that a first frame of the audio signal includes a sparse transient signal. The sparse transient signal includes an audio signal of a transient type having a first transient density. The system determines (1206) that a second frame of the audio signal includes a dense transient signal. The dense transient signal includes an audio signal of a transient type having a second transient density that is higher than the first density. The audio signal of the transient type includes at least one of applause, rain, or a crackling fire. In general, for a time period (e.g., a frame) of the audio signal, the system may analyze the time period to determine whether the time period of the audio signal includes a sparse transient signal or a dense transient signal.

[0134] The system compresses (1208) an audio signal. Companding the audio signal includes applying a companding operation to the audio signal using a companding rule that applies a first companding index to a first frame of the audio signal and a second companding index to a second frame of the audio signal. In general, the system applies companding to a time period of the audio signal based on the result of the above determination. This companding of the time period may include compressing or expanding the dynamic range of the time period of the audio signal based on the companding index. If it has been determined that the time period of the audio signal includes a sparse transient signal, then a first companding index (e.g., α=0.65) may be used for companding, and if it has been determined that the time period of the audio signal includes a dense transient signal, then a second companding index different from the first companding index (e.g., α=0.5 or α=0.35) may be used for companding. Each companding index is used to derive a respective degree of dynamic range compression and expansion for a corresponding frame. The second companding index is lower in value than the first companding index and corresponds to a higher degree of dynamic range compression and expansion than the first companding index. For example, dynamic range compression may be performed by calculating the dynamic range of the audio signal according to SC(k) t =S t (k)g t For the complex-valued samples S at time slot t and frequency band k t (k) is performed by audio sample scaling, where g t =(SM t ) α-1 is the normalized time slot mean (or gain), where SM t is the mean absolute level (1-norm), given by SM t (k)=1 / K∑|S t (k)|The sum is calculated in the range of k=1 to K.

[0135] The system provides (1208) the companded audio signal to a downstream device, ie, outputs the compressed audio signal. The downstream device may be at least one of an encoder, a decoder, an output device, or a storage device.

[0136] Fig.13 1 is a flow chart illustrating an example process 1300 for transient density based compression. The process 1300 is a flow chart illustrating an example process 1300 for transient density based compression. Fig.10 and Fig.11 The process 1300 may be performed by a system including one or more computer processors. The system may include at least one of an audio encoder, an audio decoder, or a companding encoding device. In particular, the process 1300 may be performed on the encoding side, in which case companding may include compressing the dynamic range of the audio signal.

[0137] The system receives (1302) an audio signal. The audio signal may include a series of frames (as a non-limiting example of a time period).

[0138] The system determines (1304) a corresponding compression index for each frame of the audio signal based on the content of the audio signal in the corresponding frame. This may involve analyzing the frames of the audio signal, for example, analyzing their content. Each compression index is used to derive a corresponding degree of dynamic range compression and expansion for the corresponding frame. Determining the compression index includes the following operations. The system specifies a first compression index for a first frame of the audio signal determined to contain a sparse transient signal. The system specifies a second compression index for a second frame of the audio signal determined to contain a dense transient signal. The first compression index is higher in value than the second compression index, indicating a lower degree of dynamic range compression and expansion. As described above with reference to Fig.10 As disclosed, the companding index controls the amount of dynamic range compression used in companding. Lower values ​​of the companding index correspond to higher dynamic range compression and expansion.

[0139] In general, this may correspond to assigning a first compression index to a first set of time segments (e.g., frames) consisting of all those time segments of the audio signal determined to contain sparse transient signals, and assigning a second compression index different from the first compression index to a second set of time segments (e.g., frames) consisting of all those time segments of the audio signal determined to contain dense transient signals.

[0140] A sparse transient signal includes an audio signal of a transient type having a first density. A dense transient signal includes a signal of a transient type having a second density higher than the first density. For example, sparse transient events can be distinguished from dense transient events based on a predefined threshold for the density of transients. For example, a measure of density can be derived using a spectrum or temporal spikes of the signal. The audio signal of the transient type includes at least one of applause, rain, or a crackling fire.

[0141] The system performs (1306) a compression portion of companding (i.e., performs an encoding-side portion of companding, which corresponds to compression), which includes compressing a first frame according to a first companding index and compressing a second frame according to a second companding index. This is equivalent to applying a companding operation to the audio signal, which includes compressing a first set of time segments according to the first companding index and compressing a second set of time segments according to the second companding index.

[0142] The system provides (1308) the compressed audio signal to the core encoder.

[0143] The system provides (1310) a first companding index and a second companding index to a bitstream associated with a compressed audio signal. The indicator may be a reference Fig.11 The values ​​in the companding control data structure described in the specification may be. Each indicator may include a corresponding data bit for each corresponding channel or corresponding object in the audio signal, each indicator being stored in the companding control data structure. The total size of the indicators may be a two-bit data structure, wherein each indicator includes at least two bits of corresponding companding state data, the at least two bits determining at least four states of companding, each of the four states corresponding to a corresponding type of content.

[0144] Fig.14 1400 is a flow chart illustrating a third example process for transient density based compression and expansion. Fig.10 and Fig.11 The process 1400 may be performed by a system including one or more computer processors. The system may include at least one of an audio encoder, an audio decoder, or a companding encoding device. In particular, the process 1400 may be performed on the decoding side, in which case companding may include expanding the dynamic range of the audio signal.

[0145] The system receives (1402) a compressed audio signal associated with a plurality of indicators. Each indicator indicates a respective companding index used to derive a degree of dynamic range compression applied to a corresponding frame of the compressed audio signal. That is, the system may receive an audio signal and at least one associated indicator for each time segment of the audio signal, each at least one associated indicator indicating a respective companding index corresponding to a degree of compression or expansion that has been applied to the respective time segment of the audio signal during a companding operation prior to encoding.

[0146] The system determines (1404) that a first frame of content in a compressed audio signal is associated with a first indicator and a second frame of content in the compressed audio signal is associated with a second indicator. Each indicator corresponds to a respective channel or object in the compressed audio signal. Each indicator comprises a one-bit value in a companding control data structure in metadata associated with the compressed audio signal. Specifically, as in Fig.11As described in additional detail in , each indicator includes at least two bits of companding state data configured to indicate various companding indices. The at least two bits correspond to at least four companding states, each corresponding to a content of a respective transient type. In general, the system can determine a first group of time periods consisting of all those time periods of the audio signal associated with a first indicator, and determine a second group of time periods consisting of all those time periods of the audio signal associated with a second indicator.

[0147] The system determines (1406) based on the first indicator and the second indicator that a first companding index is applied to a first frame of the extended content and a second companding index is applied to a second frame of the extended content. In general, the system can determine, for each time segment of the audio signal, a corresponding companding index for an expansion operation for the corresponding time segment. It can be determined that the first companding index is applied to a first group of time segments and the second companding index is applied to a second group of time segments. The first companding index can be different from the second companding index.

[0148] The system performs (1408) an expansion portion of companding (i.e., performs a decoding-side portion of companding, which corresponds to expansion) on the compressed audio signal. The operation includes expanding a first frame of content of the compressed audio signal according to a first degree of dynamic range expansion derived from a first companding index, and expanding a second frame of content of the compressed audio signal according to a second degree of dynamic range expansion derived from a second companding index. In general, the system can apply an expansion operation (a decoding-side portion of companding) to the audio signal that includes expanding a first set of time segments according to a first degree of dynamic range expansion derived from a first companding index, and expanding the second set of time segments according to a second degree of dynamic range expansion derived from a second companding index.

[0149] The system provides (1410) the expanded audio signal, for example to an output device. The output device includes at least one of a storage device, a streaming media server, an audio processor, or an amplifier.

[0150] It should be understood that processes 1200 and 1300 may be performed at the compression component 104 described above (eg, at the encoding side). Processes 1200 and 1400 may be performed at the expansion component 114 (eg, at the decoding side).

[0151] It is noteworthy that although processes 1200, 1300, and 1400 involve first and second companding indices, they are equally applicable to situations where distinction is performed between more than two transient types. For example, the above processes may assign / use first to fourth values ​​of the companding indices.

[0152] Aspects of the systems described herein may be implemented in a suitable computer-based sound processing network environment for processing digital or digitized audio files. Portions of the adaptive audio system may include one or more networks comprising any desired number of individual machines including one or more routers (not shown) for buffering and routing data transmitted among the computers. This network may be built on a variety of different network protocols and may be the Internet, a wide area network (WAN), a local area network (LAN), or any combination thereof.

[0153] One or more of the components, blocks, processes, or other functional components may be implemented by a computer program that controls the execution of a processor-based computing device of a system. It should also be noted that the various functions disclosed herein may be described in terms of their behavior, register transfers, logical components, and / or other characteristics using any number of combinations of hardware, firmware, and / or as data and / or instructions embodied in various machine-readable or computer-readable media. Computer-readable media in which such formatted data and / or instructions may be embodied include, but are not limited to, various forms of physical (non-transitory), non-volatile storage media, such as optical, magnetic, or semiconductor storage media.

[0154] Unless the context clearly requires otherwise, throughout the description and claims, the words "comprise," "comprising," and the like are to be interpreted in an inclusive sense, rather than an exclusive or exhaustive sense; that is, words using the singular or plural number also include the plural or singular number, respectively, in the sense of "including, but not limited to." In addition, the words "herein," "herein," "hereafter," "above," "below," and words of similar meaning refer to this application as a whole and not to any particular portions of this application. When the word "or" is used with reference to a list of two or more items, the word covers all of the following interpretations of the word: any item in the list, all items in the list, and any combination of items in the list.

[0155] Although one or more embodiments have been described by way of example and with respect to specific embodiments, it should be understood that one or more implementations are not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements that are obvious to those skilled in the art. Therefore, the scope of the appended claims should be given the broadest interpretation so as to cover all such modifications and similar arrangements.

[0156] Various aspects and embodiments of the present invention may also be understood from the enumerated example embodiments (EEE) described below.

[0157] EEE 1. A method for processing an audio signal, comprising:

[0158] receiving an audio signal;

[0159] determining that a first frame of the audio signal contains a sparse transient signal;

[0160] determining that a second frame of the audio signal contains a dense transient signal;

[0161] companding the audio signal, comprising applying a compression / expansion (companding) operation to the audio signal using a companding rule, the companding rule applying a first companding index to the first frame of the audio signal and a second companding index to the second frame of the audio signal, each companding index being used to derive a respective degree of dynamic range compression and expansion for a corresponding frame; and

[0162] The companded audio signal is provided to a downstream device.

[0163] EEE 2. The method according to EEE 1, wherein the sparse transient signal comprises the audio signal of a transient type having a first transient density, and the dense transient signal comprises the audio signal of a transient type having a second transient density higher than the first density, and

[0164] Wherein the transient-type audio signal includes at least one of applause, rain, or a crackling fire.

[0165] EEE 3. The method according to EEE 1, wherein the second companding index is lower in value than the first companding index and corresponds to a higher degree of dynamic range compression and expansion than the first companding index. ...

[0166] EEE 4. A method for processing an audio signal, the method comprising:

[0167] receiving an audio signal via a compression / expansion (compress and expand) encoding device;

[0168] Determining, by the companding device, a corresponding companding index for each frame of the audio signal based on the content of the audio signal in the corresponding frame, each companding index being used to derive a corresponding degree of dynamic range compression and expansion of the corresponding frame, the determining comprising:

[0169] specifying a first companding index for a first frame of the audio signal determined to contain a sparse transient signal; and

[0170] specifying a second companding index for a second frame of the audio signal determined to contain a dense transient signal, the first companding index being higher in value than the second companding index;

[0171] performing a compression portion of the companding, comprising compressing the first frame according to the first companding index and compressing the second frame according to the second companding index;

[0172] providing the compressed audio signal to a core encoder; and

[0173] Respective indicators of the first companding index and the second companding index are provided to a bitstream associated with the compressed audio signal.

[0174] EEE 5. The method according to EEE 4, wherein the companding index controls an amount of dynamic range compression used in the companding, wherein lower values ​​of the companding index correspond to higher dynamic range compression. EEE 5. The method according to EEE 4, wherein the companding index controls an amount of dynamic range compression used in the companding.

[0175] EEE 6. A method according to EEE 4, wherein the sparse transient signal includes an audio signal of a transient type having a first density, and the dense transient signal includes a signal of the transient type having a second density higher than the first density, the audio signal of the transient type including at least one of applause, rain, or crackling fire. EEE 6. A method according to EEE 4, wherein the sparse transient signal includes an audio signal of a transient type having a first density, and the dense transient signal includes a signal of the transient type having a second density higher than the first density.

[0176] EEE7. A method according to EEE 4, wherein each indicator comprises a corresponding data bit for each corresponding channel or corresponding object in the audio signal, and each indicator is stored in a compression control data structure. EEE8.

[0177] EEE8. The method according to EEE 7, wherein each indicator includes a corresponding second data bit indicating whether compression and expansion are turned on or off. EEE8.

[0178] EEE9. The method according to EEE 8, wherein each indicator comprises at least two bits of corresponding compression state data, the at least two bits determining at least four states of compression, each of the four states corresponding to a corresponding type of content. EEE9.

[0179] EEE10. A method for decoding an audio signal, comprising:

[0180] receiving, by a decoder device, a compressed audio signal associated with a plurality of indicators, each indicator indicating a respective compression / expansion (companding) index for deriving a degree of dynamic range compression applied to a corresponding frame of the compressed audio signal;

[0181] determining that a first frame of content in the compressed audio signal is associated with a first indicator and a second frame of the content in the compressed audio signal is associated with a second indicator;

[0182] Determining, by the decoder device and based on the first indicator and the second indicator, that the first frame of the content should be expanded using a first companding index and that the second frame of the content should be expanded using a second companding index;

[0183] performing the companding expansion operation on the compressed audio signal, comprising expanding the first frame of the content of the compressed audio signal according to a first dynamic range expansion degree derived from the first companding index, and expanding the second frame of the content of the compressed audio signal according to a second dynamic range expansion degree derived from the second companding index; and

[0184] The expanded audio signal is provided to an output device.

[0185] EEE 11. The method according to EEE 10, wherein each indicator corresponds to a respective channel or object in the compressed audio signal. EEE 12.

[0186] EEE12. The method according to EEE 10, wherein each indicator comprises a one-bit value in a companding control data structure in metadata associated with the compressed audio signal. EEE13. The method according to EEE 10, wherein each indicator comprises a one-bit value in a companding control data structure in metadata associated with the compressed audio signal.

[0187] EEE13. The method according to EEE 12, wherein each indicator comprises at least two bits of compression state data configured to indicate various compression indices, the at least two bits corresponding to at least four compression states, each corresponding to content of a corresponding transient type. EEE14. The method according to EEE 14, wherein each indicator comprises at least two bits of compression state data configured to indicate various compression indices, the at least two bits corresponding to at least four compression states, each corresponding to content of a corresponding transient type.

[0188] EEE14. The method according to EEE 10, wherein the output device includes at least one of a storage device, a streaming media server, an audio processor, or an amplifier. EEE14.

[0189] EEE15. A system comprising:

[0190] one or more processors; and

[0191] A non-transitory computer-readable storage medium storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations according to any one of EEE 1-14.

[0192] EEE16. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations according to any one of EEE 1 to 14. EEE17.

Claims

1. A method for processing an audio signal, comprising: receiving an audio signal; For a time segment of the audio signal, analyzing the time segment of the audio signal to determine whether the time segment of the audio signal contains a sparse transient signal or a dense transient signal; and companding the time segment of the audio signal based on a result of the determination; and outputting a compressed and expanded time segment of the audio signal, wherein companding the time segment of the audio signal comprises compressing or expanding a dynamic range of the time segment of the audio signal based on a companding index; wherein if it is determined that the time segment of the audio signal contains the sparse transient signal, using a first companding index having one of a set of predetermined values ​​in the companding; and wherein if it is determined that the time segment of the audio signal contains the dense transient signal, a second companding index having a different value from the set of predetermined values ​​is used in the companding, wherein the second companding index corresponds to a higher degree of dynamic range compression or expansion than the first companding index, and / or wherein the second companding index is lower in value than the first companding index. 2 . The method of claim 1 , wherein the sparse transient signal comprises transient events having a first transient event density, and the dense transient signal comprises transient events having a second transient event density higher than the first transient event density. 3 . The method of claim 1 , wherein the sparse transient signal comprises transient events having a first transient event density below a predefined threshold, and the dense transient signal comprises transient events having a second transient event density above the predetermined threshold.

4. The method of any one of claims 1-3, wherein the sparse transient signal relates to at least one of applause, rain, or a crackling fire.

5. The method according to any one of claims 1 to 3, further comprising: An indication of the companding index that has been used to compand the time segment of the audio signal is generated and output.

6. A method for processing an audio signal, the method comprising: receiving an audio signal; Determining a corresponding companding index for a corresponding time segment of the audio signal based on the content of the audio signal in each time segment, each companding index corresponding to a corresponding degree of dynamic range compression or expansion of the corresponding time segment, the determining comprising: assigning a first companding index having one of a set of predetermined values ​​to a first set of time segments consisting of all those time segments of the audio signal determined to contain sparse transient signals; and assigning a second companding index having a different value from the set of predetermined values ​​to a second set of time segments consisting of all those time segments of the audio signal determined to contain dense transient signals; applying a companding operation to the audio signal, comprising compressing the first set of time segments according to the first companding index and compressing the second set of time segments according to the second companding index; providing a compressed audio signal to a core encoder; and providing respective indicators of the first companding index and the second companding index to a bitstream associated with the compressed audio signal, wherein the first companding index is higher in value than the second companding index, and / or Wherein the companding index controls the degree of dynamic range compression used in the companding, and wherein lower values ​​of the companding index correspond to a higher degree of dynamic range compression. 7 . The method of claim 6 , wherein the sparse transient signal includes transient events having a first transient event density, and the dense transient signal includes transient events having a second transient event density higher than the first transient event density.

8. The method of claim 6, wherein the sparse transient signal comprises transient events having a first transient event density below a predefined threshold, and the dense transient signal comprises transient events having a second transient event density above the predetermined threshold.

9. The method of any of claims 6-8, wherein the sparse transient signal relates to at least one of applause, rain, or a crackling fire.

10. The method of any of claims 6-8, wherein each indicator comprises a respective indicator bit for each time period of the audio signal.

11. The method of claim 10, wherein each indicator comprises a respective second indicator bit for each time period indicating whether companding is on or off.

12. The method of claim 10, wherein each indicator comprises at least two indicator bits indicating at least four companding states, each of the four states corresponding to a respective type of content for the respective time segment of the audio signal.

13. A method for decoding an audio signal, comprising: receiving an audio signal and, for each time segment of the audio signal, at least one associated indicator, each at least one associated indicator indicating a respective companding index corresponding to a degree of compression or expansion that has been applied to the respective time segment of the audio signal during a companding operation prior to encoding; determining a first group of time periods consisting of all those time periods of the audio signal associated with a first indicator, and determining a second group of time periods consisting of all those time periods of the audio signal associated with a second indicator, wherein each indicator comprises a one-bit value in a companding control data structure in metadata associated with the received audio signal, and wherein the first indicator comprises a first value indicating a first companding index having one of a set of predetermined values ​​that was used during companding of the time period in the first group of time periods, wherein the time periods in the first group of time periods comprise sparse transient signals, and wherein the second indicator comprises a second value indicating a second companding index having a different value from the set of predetermined values ​​that was used during companding of the time period in the second group of time periods, wherein the time periods in the second group of time periods comprise dense transient signals; For each time segment of the audio signal, determine a corresponding companding index for an expansion operation for the corresponding time segment based on the first indicator and the second indicator, wherein the first companding index is determined to be applied to the first group of time segments and the second companding index is determined to be applied to the second group of time segments; applying an expansion operation to the audio signal, comprising expanding the first set of time segments according to a first degree of dynamic range expansion derived from the first companding index and expanding the second set of time segments according to a second degree of dynamic range expansion derived from the second companding index; and Output the expanded audio signal, wherein the second companding index corresponds to a higher degree of dynamic range compression or expansion than the first companding index, and / or wherein the second companding index is lower in value than the first companding index.

14. The method of claim 13, wherein each indicator corresponds to a respective channel or object in the received audio signal.

15. The method of claim 13 or 14, wherein each indicator comprises at least two bits of companding state data configured to indicate various companding indices, the at least two bits corresponding to at least four companding states, each corresponding to a respective transient type of content of the audio signal.

16. The method of claim 13 or 14, wherein the expanded audio signal is output to at least one of a storage device, a streaming server, an audio processor, or an amplifier.

17. An apparatus comprising: one or more processors; and A non-transitory computer-readable storage medium storing instructions which, when executed by the one or more processors, cause the one or more processors to perform the method according to any one of claims 1-16.

18. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 1 to 16.

Citation Information

Patent Citations

  • Transmitter and receiver for a wireless audio transmission system

    CN101048939A

  • Audio frequency encoding and decoding quantification method, reverse conversion method and audio frequency encoding and decoding device

    CN101105940A

  • Companding apparatus and method to reduce quantization noise using advanced spectral extension

    CN108269585A

  • Data companding method and data compressor / expander

    EP0394976A2

  • Method for noise reduction of a FM signal

    US20030039371A1