The present invention is related to audio coding and, particularly, to low bit rate audio coding schemes.
In the art, frequency domain coding schemes such as MP3 or AAC are known. These frequency-domain encoders are based on a time-domain/frequency-domain conversion, a subsequent quantization stage, in which the quantization error is controlled using information from a perceptual module, and an encoding stage, in which the quantized spectral coefficients and corresponding side information are entropy-encoded using code tables.
On the other hand there are encoders that are very well suited to speech processing such as the AMR-WB+ as described in 3GPP TS 26.290. Such speech coding schemes perform a Linear Predictive filtering of a time-domain signal. Such a LP filtering is derived from a Linear Prediction analysis of the input time-domain signal. The resulting LP filter coefficients are then quantized/coded and transmitted as side information. The process is known as Linear Prediction Coding (LPC). At the output of the filter, the prediction residual signal or prediction error signal which is also known as the excitation signal is encoded using the analysis-by-synthesis stages of the ACELP encoder or, alternatively, is encoded using a transform encoder, which uses a Fourier transform with an overlap. The decision between the ACELP coding and the Transform Coded eXcitation coding which is also called TCX coding is done using a closed loop or an open loop algorithm.
Frequency-domain audio coding schemes such as the High Efficiency AAC (HE-ACC) encoding scheme, which combines an AAC coding scheme and a spectral band replication (SBR) technique can also be combined with a joint stereo or a multi-channel coding tool which is known under the term “MPEG surround”.
On the other hand, speech encoders such as the AMR-WB+ also have a high frequency extension stage and a stereo functionality.
Frequency-domain coding schemes are advantageous in that they show a high quality at low bitrates for music signals. Problematic, however, is the quality of speech signals at low bitrates.
Speech coding schemes show a high quality for speech signals even at low bitrates, but show a poor quality for other signals at low bitrates.
According to an embodiment an audio encoder for encoding an audio signal may have a first coding branch for encoding an audio signal using a first coding algorithm to acquire a first encoded signal, the first coding branch having the first converter for converting an input signal into a spectral domain; a second coding branch for encoding an audio signal using a second coding algorithm to acquire a second encoded signal, wherein the first coding algorithm is different from the second coding algorithm, the second coding branch having a domain converter for converting an input signal from an input domain into an output domain, and a second converter for converting an input signal into a spectral domain; a switch for switching between the first coding branch and the second coding branch so that, for a portion of the audio input signal, either the first encoded signal or the second encoded signal is in an encoder output signal; a signal analyzer for analyzing the portion of the audio signal to determine, whether the portion of the audio signal is represented as the first encoded signal or the second encoded signal in the encoder output signal, wherein the signal analyzer is furthermore configured for variably determining a respective time/frequency resolution of the first converter and the second converter, when the first encoded signal or the second encoded signal representing the portion of the audio signal is generated; and an output interface for generating an encoder output signal having the first encoded signal and the second encoded signal and an information indicating the first encoded signal and the second encoded signal, and an information indicating the time/frequency resolution applied for encoding the first encoded signal and for encoding the second encoded signal.
According to another embodiment, a method of audio encoding an audio signal may have the steps of encoding, in a first coding branch, an audio signal using a first coding algorithm to acquire a first encoded signal, the first coding branch having the first converter for converting an input signal into a spectral domain; encoding, in a second coding branch, an audio signal using a second coding algorithm to acquire a second encoded signal, wherein the first coding algorithm is different from the second coding algorithm, the second coding branch having a domain converter for converting an input signal from an input domain into an output domain, and a second converter for converting an input signal into a spectral domain; switching between the first coding branch and the second coding branch so that, for a portion of the audio input signal, either the first encoded signal or the second encoded signal is in an encoder output signal; analyzing the portion of the audio signal to determine, whether the portion of the audio signal is represented as the first encoded signal or the second encoded signal in the encoder output signal, variably determining a respective time/frequency resolution of the first converter and the second converter, when the first encoded signal or the second encoded signal representing the portion of the audio signal is generated; and generating an encoder output signal having the first encoded signal and the second encoded signal and an information indicating the first encoded signal and the second encoded signal, and an information indicating the time/frequency resolution applied for encoding the first encoded signal and for encoding the second encoded signal.
According to another embodiment an audio decoder for decoding an encoded signal, the encoded signal having a first encoded signal, a second encoded signal, an indication indicating the first encoded signal and the second encoded signal, and a time/frequency resolution information to be used for decoding the first encoded signal and the second encoded audio signal, which may have a first decoding branch for decoding the first encoded signal using a first controllable frequency/time converter, the first controllable frequency/time converter being configured for being controlled using the time/frequency resolution information for the first encoded signal to acquire a first decoded signal; a second decoding branch for decoding the second encoded signal using a second controllable frequency/time converter, the second controllable frequency/time converter being configured for being controlled using the time/frequency resolution information for the second encoded signal; a controller for controlling the first frequency/time converter and the second frequency/time converter using the time/frequency resolution information; a domain converter for generating a synthesis signal using the second decoded signal; and a combiner for combining the first decoded signal and the synthesis signal to acquire a decoded audio signal.
According to another embodiment a method of audio decoding an encoded signal, the encoded signal having a first encoded signal, a second encoded signal, an indication indicating the first encoded signal and the second encoded signal, and a time/frequency resolution information to be used for decoding the first encoded signal and the second encoded audio signal, wherein the method may have the steps of decoding, by a first decoding branch, the first encoded signal using a first controllable frequency/time converter, the first controllable frequency/time converter being configured for being controlled using the time/frequency resolution information for the first encoded signal to acquire a first decoded signal; decoding, by a second decoding branch, the second encoded signal using a second controllable frequency/time converter, the second controllable frequency/time converter being configured for being controlled using the time/frequency resolution information for the second encoded signal; controlling the first frequency/time converter and the second frequency/time converter using the time/frequency resolution information; generating, by a domain converter, a synthesis signal using the second decoded signal; and combining the first decoded signal and the synthesis signal to acquire a decoded audio signal.
According to another embodiment, an encoded audio signal may have a first encoded signal; a second encoded signal, wherein a portion of an audio signal is either represented by the first encoded signal or the second encoded signal; an indication indicating the first encoded signal and the second encoded signal; an indication of a first time/frequency resolution information to be used for decoding the first encoded signal, and an indication of a second time/frequency resolution information to be used for decoding the second encoded signal.
Another embodiment may have a computer program for performing, when running on a processor, one of the above mentioned methods.
The present invention is based on the finding that a hybrid or dual-mode switched coding/encoding scheme is advantageous in that the best coding algorithm can be selected for a certain signal characteristic. Stated differently, the present invention does not look for a signal coding algorithm which is perfectly matched to all signal characteristics. Such scheme would be a compromise as can be seen from the huge differences between state of the art audio encoders on the one hand, and speech encoders on the other hand. Instead, the present invention combines different coding algorithms such as a speech coding algorithm on the one hand, and an audio coding algorithm on the other hand within a switched scheme so that, for each audio signal portion, the optimally matching coding algorithm is selected. Furthermore, it is also a feature of the present invention that both coding branches comprise a time/frequency converter, but in one coding branch, a further domain converter such an LPC processor is provided. This domain converter makes sure that the second coding branch is better suited for a certain signal characteristic than the first coding branch. However, it is also a feature of the present invention that the signal output by the domain processor is also transformed into a spectral representation.
Both converters, i.e., the first converter in the first coding branch and the second converter in the second coding branch are configured for applying a multi-resolution transform coding, where the resolution of the corresponding converter is set dependent on the audio signal, and particularly dependent on the audio signal actually coded in the corresponding coding branch so that a good compromise between quality on the one hand, and bitrate on the other hand, or in view of a certain fixed quality, the lowest bitrate, or in view of a fixed bitrate, the highest quality is obtained.
In accordance with the present invention, the time/frequency resolution of the two converters can advantageously be set independent from each other so that each time/frequency transformer can be optimally matched to the time/frequency resolution requirements of the corresponding signal. The bit efficiency, i.e., the relation between useful bits on the one hand, and side information bits on the other hand is higher for longer block sizes/window lengths. Therefore, it is advantageous that both converters are more biased to a longer window length, since, basically the same amount of side information refers to a longer time portion of the audio signal compared to applying shorter block sizes/window lengths/transform lengths. Advantageously, the time/frequency resolution in the encoding branches can also be influenced by other encoding/decoding tools located in these branches. Advantageously, the second coding branch comprising the domain converter such as an LPC processor comprises another hybrid scheme such as an ACELP branch on the one hand, and an TCX scheme on the other hand, where the second converter is included in the TCX scheme. Advantageously, the resolution of the time/frequency converter located in the TCX branch is also influenced by the encoding decision, so that a portion of the signal in the second encoding branch is processed in the TCX branch having the second converter or in the ACELP branch not having a time/frequency converter.
Basically, neither the domain converter nor the second coding branch, and particularly the first processing branch in the second encoding branch and the second processing branch in the second coding branch, have to be speech-related elements such as an LPC analyzer for the domain converter, a TCX encoder for the second processing branch and an ACELP encoder for the first processing branch. Other applications are also useful when other signal characteristics of an audio signal different from speech on the one hand, and music on the other hand are evaluated. Any domain converters and encoding branch implementations can be used and the best matching algorithm can be found by an analysis-by-synthesis scheme so that, on the encoder side, for each portion of the audio signal, all encoding alternatives are conducted and the best result is selected, where the best result can be found applying a target function to the encoding results. Then, side information identifying, to a decoder, the underlying encoding algorithm for a certain portion of the encoded audio signal is attached to the encoded audio signal by an encoder output interface so that the decoder does not have to care for any decisions on the encoder side or on any signal characteristics, but simply selects its coding branch depending on the transmitted side information. Furthermore, the decoder will not only select the correct decoding branch, but will also select, based on side information encoded in the encoded signal, which time/frequency resolution is to be applied in a corresponding first decoding branch and a corresponding second decoding branch.
Thus, the present invention provides an encoding/decoding scheme, which combines the advantages of all different coding algorithms and avoids the disadvantages of these coding algorithms which come up, when the signal portion would have to be encoded, by an algorithm that does not fit to a certain coding algorithm. Furthermore, the present invention avoids any disadvantages, which would come up, if the different time/frequency resolution requirements raised by different audio signal portions in different encoding branches had not been accounted for. Instead, due to the variable time/frequency resolution of time/frequency converters in both branches, any artifacts are at least reduced or even completely avoided, which would come up in the scenario where the same time/frequency resolution would be applied for both coding branches, or in which only a fixed time/frequency resolution would be possible for any coding branches.
The second switch again decides between two processing branches, but in a domain different from the “outer” first branch domain. Again one “inner” branch is mainly motivated by a source model or by SNR calculations, and the other “inner” branch can be motivated by a sink model and/or a psycho acoustic model, i.e. by masking or at least includes frequency/spectral domain coding aspects. Exemplarily, one “inner” branch has a frequency domain encoder/spectral converter and the other branch has an encoder coding on the other domain such as the LPC domain, wherein this encoder is for example an CELP or ACELP quantizer/scaler processing an input signal without a spectral conversion.
A further embodiment is an audio encoder comprising a first information sink oriented encoding branch such as a spectral domain encoding branch, a second information source or SNR oriented encoding branch such as an LPC-domain encoding branch, and a switch for switching between the first encoding branch and the second encoding branch, wherein the second encoding branch comprises a converter into a specific domain different from the time domain such as an LPC analysis stage generating an excitation signal, and wherein the second encoding branch furthermore comprises a specific domain such as LPC domain processing branch and a specific spectral domain such as LPC spectral domain processing branch, and an additional switch for switching between the specific domain coding branch and the specific spectral domain coding branch.
A further embodiment of the invention is an audio decoder comprising a first domain such as a spectral domain decoding branch, a second domain such as an LPC domain decoding branch for decoding a signal such as an excitation signal in the second domain, and a third domain such as an LPC-spectral decoder branch for decoding a signal such as an excitation signal in a third domain such as an LPC spectral domain, wherein the third domain is obtained by performing a frequency conversion from the second domain wherein a first switch for the second domain signal and the third domain signal is provided, and wherein a second switch for switching between the first domain decoder and the decoder for the second domain or the third domain is provided.
Embodiments of the present invention are subsequently described with respect to the attached drawings, in which:
a is a block diagram of an encoding scheme in accordance with a first aspect of the present invention;
b is a block diagram of a decoding scheme in accordance with the first aspect of the present invention;
c is a block diagram of an encoding scheme in accordance with a further aspect of the present invention;
a is a block diagram of an encoding scheme in accordance with a second aspect of the present invention;
b is a schematic diagram of a decoding scheme in accordance with the second aspect of the present invention.
c is a block diagram of an encoding scheme in accordance with a further aspect of the present invention
a illustrates a block diagram of an encoding scheme in accordance with a further aspect of the present invention;
b illustrates a block diagram of a decoding scheme in accordance with the further aspect of the present invention;
c illustrates a schematic representation of the encoding apparatus/method with cascaded switches;
d illustrates a schematic diagram of an apparatus or method for decoding, in which cascaded combiners are used;
e illustrates an illustration of a time domain signal and a corresponding representation of the encoded signal illustrating short cross fade regions which are included in both encoded signals;
a illustrates a block diagram with a switch positioned before the encoding branches;
b illustrates a block diagram of an encoding scheme with the switch positioned subsequent to encoding the branches;
a illustrates a wave form of a time domain speech segment as a quasi-periodic or impulse-like signal segment;
b illustrates a spectrum of the segment of
c illustrates a time domain speech segment of unvoiced speech as an example for a noise-like segment;
d illustrates a spectrum of the time domain wave form of
a to 7d illustrate voiced/unvoiced excitation signals as an example for impulse-like signals;
e illustrates an encoder-side LPC stage providing short-term prediction information and the prediction error (excitation) signal;
f illustrates a further embodiment of an LPC device for generating a weighted signal;
g illustrates an implementation for transforming a weighted signal into an excitation signal by applying an inverse weighting operation and a subsequent excitation analysis as needed in the converter 537 of
a illustrates a detailed description of the switch when performing an open loop decision; and
b illustrates an illustration of the switch when operating in a closed loop decision mode;
The audio encoder furthermore comprises a second coding branch 500 for encoding an audio signal using a second coding algorithm to obtain a second encoded signal. The first coding algorithm is different from the second coding algorithm. Additionally, a first switch 200 for switching between the first coding branch and the second coding branch is provided so that, for a portion of the audio signal, either the first encoded signal or the second encoded signal is in an encoder output signal 801.
The audio encoder illustrated in
The signal analyzer 300/525 is furthermore configured for variably determining a respective time/frequency resolution of a first converter 410 in the first coding branch 400 or a second converter 523 in the second encoding branch 500. This time/frequency resolution is applied, when the first encoded signal or the second encoded signal representing the portion of the audio signal is generated.
The audio encoder additionally comprises an output interface 800 for generating the encoder output signal 801 comprising an encoded representation of the portion of the audio signal and an information indicating whether the representation of the audio signal is the first encoded signal or the second encoded signal, and indicating the time/frequency resolution used for decoding the first encoded signal and the second encoded signal.
The second encoding branch is different from the first encoding branch in that the second encoding branch additionally comprises a domain converter for converting the audio signal from the domain, in which the audio signal is processed in the first encoding branch into a different domain. Advantageously the domain converter is an LPC processor 510, but the domain converter can be implemented in any other way as long as the domain converter is different from the first converter 410 and the second converter 523.
The first converter 410 is a time/frequency converter advantageously comprising a windower 410a and a transformer 410b. The windower 410a applies an analysis window to the input audio signal, and the transformer 410b performs a conversion of the windowed signal into a spectral representation.
Analogously, the second converter 523 advantageously comprises a windower 523a and a subsequently connected transformer 523b. The windower 523a receives the signal output by the domain converter 510 and outputs the windowed representation thereof. The result of one analysis window applied by the windower 523a is input into the transformer 523b to form a spectral representation. The transformer can be an FFT or advantageously MDCT processor implementing a corresponding algorithm in software or hardware or in a mixed hardware/software implementation. Alternatively, the transformer can be a filterbank implementation such as a QMF filterbank which can be based on a real-valued or complex modulation of a prototype filter. For specific filterbank implementations, a window is applied. However, for other filterbank implementations, a windowing as needed for a transform algorithm based on a FFT of MDCT is not necessary. When a filterbank implementation is used, then the filterbank is a variable resolution filterbank and the resolution controls the frequency resolution of the filterbank, and additionally, the time resolution or only the frequency resolution and not the time resolution. When however, the converter is implemented as an FFT or MDCT or any other corresponding transformer, then the frequency resolution is connected to the time resolution in that an increase of the frequency resolution obtained by a larger block length in time automatically corresponds to a lower time resolution and vice versa.
Additionally, the first coding branch may comprise a quantizer/coder stage 421, and the second encoding branch may also comprise one or more further coding tools 524.
Importantly, the signal analyzer is configured for generating a resolution control signal for the first converter 510 and for the second converter 523. Thus, an independent resolution control in both coding branches is implemented in order to have a coding scheme which, on the one hand, provides a low bitrate, and on the other hand, provides a maximum quality in view of the low bitrate. In order to achieve the low bitrate goal, longer window lengths or longer transform lengths are advantageous, but in situations where these long lengths will result in an artifact due to the low time resolution, shorter window lengths and shorter transform lengths are applied, which results in a lower frequency resolution. Advantageously, the signal analyzer applies a statistical analysis or any other analysis which is suited to the corresponding algorithms in the encoding branches. In one implementation mode, in which the first coding branch is a frequency domain coding branch such as an AAC-based encoder, and in which the second coding branch comprises, as a domain converter, an LPC processor 510, the signal analyzer performs a speech/music discrimination so that the speech portion of the audio signal is fed into the second coding branch by correspondingly controlling the switch 200. A music portion of the audio signal is fed into the first coding branch 400 by correspondingly controlling the switch 200 as indicated by the switch control lines. Alternatively, as will be later discussed with respect to
Furthermore, the signal analyzer can receive the audio signal input into the switch 200, or the audio signal output by the switch 200. Furthermore, the signal analyzer performs an analysis in order to not only feed the audio signal into the corresponding coding branch, but to also determine the appropriate time/frequency resolution of the respective converter in the corresponding coding branch, such as the first converter 410 and the second converter 523 as indicated by the resolution controlled lines connecting the signal analyzer and the converter.
The audio decoder in
The audio decoder comprises a first decoding branch 431, 440 for decoding the first encoded signal based on the first coding algorithm. Furthermore, the audio decoder comprises a second decoding branch for decoding the second encoded signal using the second coding algorithm.
The first decoding branch comprises a first controllable converter 440 for converting from a spectral domain into the time domain. The controllable converter is configured for being controlled using the time/frequency resolution information from the first encoded signal to obtain the first decoded signal.
The second decoding branch comprises a second controllable converter for converting from a spectral representation in a time representation, the second controllable converter 534 being configured for being controlled using the time/frequency resolution information 991 for the second encoded signal.
The decoder additionally comprises a controller 990 for controlling the first converter 540 and the second converter 534 in accordance with the time/frequency resolution information 991.
Furthermore, the decoder comprises a domain converter for generating a synthesis signal using the second decoded signal in order to cancel the domain conversion applied by the domain converter 510 in the encoder of
Advantageously, the domain converter 540 is an LPC synthesis processor, which is controlled using LPC filter information included in the encoded signal, where this LPC filter information has been generated by the LPC processor 510 in
In the implementation, the first decoding branch additionally comprises a dequantizer/decoder stage 431 for reversing or at least for partly reversing the operations performed by the corresponding encoder stage 421. However, it is clear that quantization cannot be reversed, since this is a lossy operation. However, a dequantizer will reverse a certain non-uniformity in a quantization such as a logarithmic or companding quantization.
In the second decoding branch, the corresponding stage 533 is applied for undoing certain encoding operations applied by the stage 524. Advantageously, stage 524 comprises a uniform quantization. Therefore, the corresponding stage 533 will not have a specific dequantization stage for undoing a certain uniform quantization.
The first converter 440 as well as the second converter 534 may comprise a corresponding inverse transformer stage 440a, 534a, a synthesis window stage 440b, 534b, and the subsequently connected overlap/add stage 440c, 534c. The overlap/add stages are needed, when the converters, and more specifically, the transformer stages 440a, 534a apply aliasing introducing transforms such as a modified discrete cosine transform. Then, the overlap/add operation will perform a time domain aliasing cancellation (TDAC). When however, the transformers apply a non-aliasing introducing transform such as an inverse FFT, then an overlap/add stage 440c is not required. In such an implementation, a cross fading operation to avoid blocking artifacts may be applied.
Analogously, the combiner 600 may be a switched combiner or a cross fading combiner, or when aliasing is used for avoiding blocking artifacts, a transition windowing operation is implemented by the combiner similar to an overlap/add stage within a branch itself.
a illustrates an embodiment of the invention having two cascaded switches. A mono signal, a stereo signal or a multi-channel signal is input into the switch 200. The switch 200 is controlled by the decision stage 300. The decision stage receives, as an input, a signal input into block 200. Alternatively, the decision stage 300 may also receive a side information which is included in the mono signal, the stereo signal or the multi-channel signal or is at least associated to such a signal, where information is existing, which was, for example, generated, when originally producing the mono signal, the stereo signal or the multi-channel signal.
The decision stage 300 actuates the switch 200 in order to feed a signal either in the frequency encoding portion 400 illustrated at an upper branch of
Generally, the processing in branch 400 is a processing in a perception based model or information sink model. Thus, this branch models the human auditory system receiving sound. Contrary thereto, the processing in branch 500 is to generate a signal in the excitation, residual or LPC domain. Generally, the processing in branch 500 is a processing in a speech model or an information generation model. For speech signals, this model is a model of the human speech/sound generation system generating sound. IF, however, a sound from a different source requiring a different sound generation model is to be encoded, then the processing in branch 500 may be different.
In the lower encoding branch 500, a key element is an LPC device 510, which outputs an LPC information which is used for controlling the characteristics of an LPC filter. This LPC information is transmitted to a decoder. The LPC stage 510 output signal is an LPC-domain signal which consists of an excitation signal and/or a weighted signal.
The LPC device generally outputs an LPC domain signal, which can be any signal in the LPC domain such as the excitation signal in
The decision in the decision stage can be signal-adaptive so that the decision stage performs a music/speech discrimination and controls the switch 200 in such a way that music signals are input into the upper branch 400, and speech signals are input into the lower branch 500. In one embodiment, the decision stage is feeding its decision information into an output bit stream so that a decoder can use this decision information in order to perform the correct decoding operations.
Such a decoder is illustrated in
The input signal into the switch 200 and the decision stage 300 can be a mono signal, a stereo signal, a multi-channel signal or generally an audio signal. Depending on the decision which can be derived from the switch 200 input signal or from any external source such as a producer of the original audio signal underlying the signal input into stage 200, the switch switches between the frequency encoding branch 400 and the LPC encoding branch 500. The frequency encoding branch 400 comprises a spectral conversion stage 410 and a subsequently connected quantizing/coding stage 421. The quantizing/coding stage can include any of the functionalities as known from modern frequency-domain encoders such as the AAC encoder. Furthermore, the quantization operation in the quantizing/coding stage 421 can be controlled via a psychoacoustic module which generates psychoacoustic information such as a psychoacoustic masking threshold over the frequency, where this information is input into the stage 421.
In the LPC encoding branch, the switch output signal is processed via an LPC analysis stage 510 generating LPC side info and an LPC-domain signal. The excitation encoder inventively comprises an additional switch for switching the further processing of the LPC-domain signal between a quantization/coding operation 522 in the LPC-domain or a quantization/coding stage 524, which is processing values in the LPC-spectral domain. To this end, a spectral converter 523 is provided at the input of the quantizing/coding stage 524. The switch 521 is controlled in an open loop fashion or a closed loop fashion depending on specific settings as, for example, described in the AMR-WB+ technical specification.
For the closed loop control mode, the encoder additionally includes an inverse quantizer/coder 531 for the LPC domain signal, an inverse quantizer/coder 533 for the LPC spectral domain signal and an inverse spectral converter 534 for the output of item 533. Both encoded and again decoded signals in the processing branches of the second encoding branch are input into the switch control device 525. In the switch control device 525, these two output signals are compared to each other and/or to a target function or a target function is calculated which may be based on a comparison of the distortion in both signals so that the signal having the lower distortion is used for deciding, which position the switch 521 should take. Alternatively, in case both branches provide non-constant bit rates, the branch providing the lower bit rate might be selected even when the signal to noise ratio of this branch is lower than the signal to noise ratio of the other branch. Alternatively, the target function could use, as an input, the signal to noise ratio of each signal and a bit rate of each signal and/or additional criteria in order to find the best decision for a specific goal. If, for example, the goal is such that the bit rate should be as low as possible, then the target function would heavily rely on the bit rate of the two signals output by the elements 531, 534. However, when the main goal is to have the best quality for a certain bit rate, then the switch control 525 might, for example, discard each signal which is above the allowed bit rate and when both signals are below the allowed bit rate, the switch control would select the signal having the better signal to noise ratio, i.e., having the smaller quantization/coding distortions.
The decoding scheme in accordance with the present invention is, as stated before, illustrated in
c illustrates a further embodiment with a different arrangement of the switch 521 similar to the principle of
a illustrates an encoding scheme in accordance with a second aspect of the invention. A common preprocessing scheme connected to the switch 200 input may comprise a surround/joint stereo block 101 which generates, as an output, joint stereo parameters and a mono output signal, which is generated by downmixing the input signal which is a signal having two or more channels. Generally, the signal at the output of block 101 can also be a signal having more channels, but due to the downmixing functionality of block 101, the number of channels at the output of block 101 will be smaller than the number of channels input into block 101.
The common preprocessing scheme may comprise alternatively to the block 101 or in addition to the block 101 a bandwidth extension stage 102. In the
Advantageously, the decision stage 300 receives the signal input into block 101 or input into block 102 in order to decide between, for example, a music mode or a speech mode. In the music mode, the upper encoding branch 400 is selected, while, in the speech mode, the lower encoding branch 500 is selected. Advantageously, the decision stage additionally controls the joint stereo block 101 and/or the bandwidth extension block 102 to adapt the functionality of these blocks to the specific signal. Thus, when the decision stage determines that a certain time portion of the input signal is of the first mode such as the music mode, then specific features of block 101 and/or block 102 can be controlled by the decision stage 300. Alternatively, when the decision stage 300 determines that the signal is in a speech mode or, generally, in a second LPC-domain mode, then specific features of blocks 101 and 102 can be controlled in accordance with the decision stage output.
Advantageously, the spectral conversion of the coding branch 400 is done using an MDCT operation which, even more advantageously, is the time-warped MDCT operation, where the strength or, generally, the warping strength can be controlled between zero and a high warping strength. In a zero warping strength, the MDCT operation in block 411 is a straight-forward MDCT operation known in the art. The time warping strength together with time warping side information can be transmitted/input into the bitstream multiplexer 800 as side information.
In the LPC encoding branch, the LPC-domain encoder may include an ACELP core 526 calculating a pitch gain, a pitch lag and/or codebook information such as a codebook index and gain. The TCX mode as known from 3GPP TS 26.290 incurs a processing of a perceptually weighted signal in the transform domain. A Fourier transformed weighted signal is quantized using a split multi-rate lattice quantization (algebraic VQ) with noise factor quantization. A transform is calculated in 1024, 512, or 256 sample windows. The excitation signal is recovered by inverse filtering the quantized weighted signal through an inverse weighting filter.
In the first coding branch 400, a spectral converter advantageously comprises a specifically adapted MDCT operation having certain window functions followed by a quantization/entropy encoding stage which may consist of a single vector quantization stage, but advantageously is a combined scalar quantizer/entropy coder similar to the quantizer/coder in the frequency domain coding branch, i.e., in item 421 of
In the second coding branch, there is the LPC block 510 followed by a switch 521, again followed by an ACELP block 526 or an TCX block 527. ACELP is described in 3GPP TS 26.190 and TCX is described in 3GPP TS 26.290. Generally, the ACELP block 526 receives an LPC excitation signal as calculated by a procedure as described in
In TCX, the transform is applied to the weighted signal computed by filtering the input signal through an LPC-based weighting filter. The weighting filter used embodiments of the invention is given by (1−A(z/γ))/(1−μz−1). Thus, the weighted signal is an LPC domain signal and its transform is an LPC-spectral domain. The signal processed by ACELP block 526 is the excitation signal and is different from the signal processed by the block 527, but both signals are in the LPC domain.
At the decoder side illustrated in
to convert from the weighted domain to the excitation domain.
Although item 510 in
In the second encoding branch (ACELP/TCX) of
c illustrates a further embodiment for the implementation of
In an embodiment, the first switch 200 (see
For example,
b illustrates a decoding scheme corresponding to the encoding scheme of
The full band signal generated by block 701 is input into the joint stereo/surround processing stage 702, which reconstructs two stereo channels or several multi-channels. Generally, block 702 will output more channels than were input into this block. Depending on the application, the input into block 702 may even include two channels such as in a stereo mode and may even include more channels as long as the output by this block has more channels than the input into this block.
The switch 200 has been shown to switch between both branches so that only one branch receives a signal to process and the other branch does not receive a signal to process. In an alternative embodiment, however, the switch may also be arranged subsequent to for example the audio encoder 421 and the excitation encoder 522, 523, 524, which means that both branches 400, 500 process the same signal in parallel. In order to not double the bitrate, however, only the signal output by one of those encoding branches 400 or 500 is selected to be written into the output bitstream. The decision stage will then operate so that the signal written into the bitstream minimizes a certain cost function, where the cost function can be the generated bitrate or the generated perceptual distortion or a combined rate/distortion cost function. Therefore, either in this mode or in the mode illustrated in the Figures, the decision stage can also operate in a closed loop mode in order to make sure that, finally, only the encoding branch output is written into the bitstream which has for a given perceptual distortion the lowest bitrate or, for a given bitrate, has the lowest perceptual distortion. In the closed loop mode, the feedback input may be derived from outputs of the three quantizer/scaler blocks 421, 522 and 424 in
In the implementation having two switches, i.e., the first switch 200 and the second switch 521, it is advantageous that the time resolution for the first switch is lower than the time resolution for the second switch. Stated differently, the blocks of the input signal into the first switch, which can be switched via a switch operation are larger than the blocks switched by the second switch operating in the LPC-domain. Exemplarily, the frequency domain/LPC-domain switch 200 may switch blocks of a length of 1024 samples, and the second switch 521 can switch blocks having 256 samples each.
Although some of the
a illustrates an audio encoder for generating an encoded audio signal as an output of the first encoding branch 400 and a second encoding branch 500. Furthermore, the encoded audio signal includes side information such as pre-processing parameters from the common pre-processing stage or, as discussed in connection with preceding Figs., switch control information.
Advantageously, the first encoding branch is operative in order to encode an audio intermediate signal 195 in accordance with a first coding algorithm, wherein the first coding algorithm has an information sink model. The first encoding branch 400 generates the first encoder output signal which is an encoded spectral information representation of the audio intermediate signal 195.
Furthermore, the second encoding branch 500 is adapted for encoding the audio intermediate signal 195 in accordance with a second encoding algorithm, the second coding algorithm having an information source model and generating, in a second encoder output signal, encoded parameters for the information source model representing the intermediate audio signal.
The audio encoder furthermore comprises the common pre-processing stage for pre-processing an audio input signal 99 to obtain the audio intermediate signal 195. Specifically, the common pre-processing stage is operative to process the audio input signal 99 so that the audio intermediate signal 195, i.e., the output of the common pre-processing algorithm is a compressed version of the audio input signal.
A method of audio encoding for generating an encoded audio signal, comprises a step of encoding 400 an audio intermediate signal 195 in accordance with a first coding algorithm, the first coding algorithm having an information sink model and generating, in a first output signal, encoded spectral information representing the audio signal; a step of encoding 500 an audio intermediate signal 195 in accordance with a second coding algorithm, the second coding algorithm having an information source model and generating, in a second output signal, encoded parameters for the information source model representing the intermediate signal 195, and a step of commonly pre-processing 100 an audio input signal 99 to obtain the audio intermediate signal 195, wherein, in the step of commonly pre-processing the audio input signal 99 is processed so that the audio intermediate signal 195 is a compressed version of the audio input signal 99, wherein the encoded audio signal includes, for a certain portion of the audio signal either the first output signal or the second output signal. The method includes the further step encoding a certain portion of the audio intermediate signal either using the first coding algorithm or using the second coding algorithm or encoding the signal using both algorithms and outputting in an encoded signal either the result of the first coding algorithm or the result of the second coding algorithm.
Generally, the audio encoding algorithm used in the first encoding branch 400 reflects and models the situation in an audio sink. The sink of an audio information is normally the human ear. The human ear can be modeled as a frequency analyzer. Therefore, the first encoding branch outputs encoded spectral information. Advantageously, the first encoding branch furthermore includes a psychoacoustic model for additionally applying a psychoacoustic masking threshold. This psychoacoustic masking threshold is used when quantizing audio spectral values where, advantageously, the quantization is performed such that a quantization noise is introduced by quantizing the spectral audio values, which are hidden below the psychoacoustic masking threshold.
The second encoding branch represents an information source model, which reflects the generation of audio sound. Therefore, information source models may include a speech model which is reflected by an LPC analysis stage, i.e., by transforming a time domain signal into an LPC domain and by subsequently processing the LPC residual signal, i.e., the excitation signal. Alternative sound source models, however, are sound source models for representing a certain instrument or any other sound generators such as a specific sound source existing in real world. A selection between different sound source models can be performed when several sound source models are available, for example based on an SNR calculation, i.e., based on a calculation, which of the source models is the best one suitable for encoding a certain time portion and/or frequency portion of an audio signal. Advantageously, however, the switch between encoding branches is performed in the time domain, i.e., that a certain time portion is encoded using one model and a certain different time portion of the intermediate signal is encoded using the other encoding branch.
Information source models are represented by certain parameters. Regarding the speech model, the parameters are LPC parameters and coded excitation parameters, when a modern speech coder such as AMR-WB+ is considered. The AMR-WB+ comprises an ACELP encoder and a TCX encoder. In this case, the coded excitation parameters can be global gain, noise floor, and variable length codes.
b illustrates a decoder corresponding to the encoder illustrated in
c illustrates an audio encoder for encoding an audio input signal 195, which may be equal to the intermediate audio signal 195 of
An alternative transform from the time domain, for example in the LPC domain is the result of LPC filtering a time domain signal which results in an LPC residual signal or excitation signal. Any other filtering operations producing a filtered signal which has an impact on a substantial number of signal samples before the transform can be used as a transform algorithm as the case may be. Therefore, weighting an audio signal using an LPC based weighting filter is a further transform, which generates a signal in the LPC domain. In a time/frequency transform, the modification of a single spectral value will have an impact on all time domain values before the transform. Analogously, a modification of any time domain sample will have an impact on each frequency domain sample. Similarly, a modification of a sample of the excitation signal in an LPC domain situation will have, due to the length of the LPC filter, an impact on a substantial number of samples before the LPC filtering. Similarly, a modification of a sample before an LPC transformation will have an impact on many samples obtained by this LPC transformation due to the inherent memory effect of the LPC filter.
The audio encoder of
Therefore, the first coding branch 400 for encoding an audio signal uses a first coding algorithm to obtain a first encoded signal, where this first coding algorithm may or may not include a time/frequency conversion algorithm.
The audio encoder furthermore includes a second coding branch 500 for encoding an audio signal. The second coding branch 500 uses a second coding algorithm to obtain a second encoded signal, which is different from the first coding algorithm.
The audio encoder furthermore includes a first switch 200 for switching between the first coding branch 400 and the second coding branch 500 so that for a portion of the audio input signal, either the first encoded signal at the output of block 400 or the second encoded signal at the output of the second encoding branch is included in an encoder output signal. Thus, when for a certain portion of the audio input signal 195, the first encoded signal in the fourth domain is included in the encoder output signal, the second encoded signal which is either the first processed signal in the second domain or the second processed signal in the third domain is not included in the encoder output signal. This makes sure that this encoder is bit rate efficient. In embodiments, any time portions of the audio signal which are included in two different encoded signals are small compared to a frame length of a frame as will be discussed in connection with
As illustrated in
Furthermore, the second coding branch 500 comprises a first processing branch 522 for processing an audio signal in the second domain to obtain a first processed signal which is, advantageously, also in the second domain so that the first processing branch 522 does not perform a domain change.
The second encoding branch 500 furthermore comprises a second processing branch 523, 524 which converts the audio signal in the second domain into a third domain, which is different from the first domain and which is also different from the second domain and which processes the audio signal in the third domain to obtain a second processed signal at the output of the second processing branch 523, 524.
Furthermore, the second coding branch comprises a second switch 521 for switching between the first processing branch 522 and the second processing branch 523, 524 so that, for a portion of the audio signal input into the second coding branch, either the first processed signal in the second domain or the second processed signal in the third domain is in the second encoded signal.
d illustrates a corresponding decoder for decoding an encoded audio signal generated by the encoder of
The decoder comprises a first decoding branch for decoding based on the first coding algorithm. The first decoding branch is illustrated at 431, 440 in
The decoder of
The second decoding branch furthermore comprises a first combiner 532 for combining the first inverse processed signal and the second inverse processed signal to obtain a signal in the second domain, where this combined signal is, at the first time instant, only influenced by the first inverse processed signal and is, at a later time instant, only influenced by the second inverse processed signal.
The second decoding branch furthermore comprises a converter 540 for converting the combined signal to the first domain.
Finally, the decoder illustrated in
This situation is illustrated, from an encoder perspective, in
In the embodiment, in which the first encoded signal or the second processed signal has been generated by an MDCT processing having e.g. 50 percents overlap, each time domain sample is included in two subsequent frames. Due to the characteristics of the MDCT, however, this does not result in an overhead, since the MDCT is a critically sampled system. In this context, critically sampled means that the number of spectral values is the same as the number of time domain values. The MDCT is advantageous in that the crossover effect is provided without a specific crossover region so that a crossover from an MDCT block to the next MDCT block is provided without any overhead which would violate the critical sampling requirement.
Advantageously, the first coding algorithm in the first coding branch is based on an information sink model, and the second coding algorithm in the second coding branch is based on an information source or an SNR model. An SNR model is a model which is not specifically related to a specific sound generation mechanism but which is one coding mode which can be selected among a plurality of coding modes based e.g. on a closed loop decision. Thus, an SNR model is any available coding model but which does not necessarily have to be related to the physical constitution of the sound generator but which is any parameterized coding model different from the information sink model, which can be selected by a closed loop decision and, specifically, by comparing different SNR results from different models.
As illustrated in
In one embodiment, the first coding branch or the second coding branch comprises an aliasing introducing time/frequency conversion algorithm such as an MDCT or an MDST algorithm, which is different from a straightforward FFT transform, which does not introduce an aliasing effect. Furthermore, one or both branches comprise a quantizer/entropy coder block. Specifically, only the second processing branch of the second coding branch includes the time/frequency converter introducing an aliasing operation and the first processing branch of the second coding branch comprises a quantizer and/or entropy coder and does not introduce any aliasing effects. The aliasing introducing time/frequency converter advantageously comprises a windower for applying an analysis window and an MDCT transform algorithm. Specifically, the windower is operative to apply the window function to subsequent frames in an overlapping way so that a sample of a windowed signal occurs in at least two subsequent windowed frames.
In one embodiment, the first processing branch comprises an ACELP coder and a second processing branch comprises an MDCT spectral converter and the quantizer for quantizing spectral components to obtain quantized spectral components, where each quantized spectral component is zero or is defined by one quantizer index of the plurality of different possible quantizer indices.
Furthermore, it is advantageous that the first switch 200 operates in an open loop manner and the second switch operates in a closed loop manner.
As stated before, both coding branches are operative to encode the audio signal in a block wise manner, in which the first switch or the second switch switches in a block-wise manner so that a switching action takes place, at the minimum, after a block of a predefined number of samples of a signal, the predefined number forming a frame length for the corresponding switch. Thus, the granule for switching by the first switch may be, for example, a block of 2048 or 1028 samples, and the frame length, based on which the first switch 200 is switching may be variable but is, advantageously, fixed to such a quite long period.
Contrary thereto, the block length for the second switch 521, i.e., when the second switch 521 switches from one mode to the other, is substantially smaller than the block length for the first switch. Advantageously, both block lengths for the switches are selected such that the longer block length is an integer multiple of the shorter block length. In the embodiment, the block length of the first switch is 2048 or 1024 and the block length of the second switch is 1024 or more advantageously, 512 and even more advantageously, 256 and even more advantageously 128 samples so that, at the maximum, the second switch can switch 16 times when the first switch switches only a single time. A maximum block length ratio, however, is 4:1.
In a further embodiment, the controller 300, 525 is operative to perform a speech music discrimination for the first switch in such a way that a decision to speech is favored with respect to a decision to music. In this embodiment, a decision to speech is taken even when a portion less than 50% of a frame for the first switch is speech and the portion of more than 50% of the frame is music.
Furthermore, the controller is operative to already switch to the speech mode, when a quite small portion of the first frame is speech and, specifically, when a portion of the first frame is speech, which is 50% of the length of the smaller second frame. Thus, a speech/favouring switching decision already switches over to speech even when, for example, only 6% or 12% of a block corresponding to the frame length of the first switch is speech.
This procedure is advantageously in order to fully exploit the bit rate saving capability of the first processing branch, which has a voiced speech core in one embodiment and to not loose any quality even for the rest of the large first frame, which is non-speech due to the fact that the second processing branch includes a converter and, therefore, is useful for audio signals which have non-speech signals as well. Advantageously, this second processing branch includes an overlapping MDCT, which is critically sampled, and which even at small window sizes provides a highly efficient and aliasing free operation due to the time domain aliasing cancellation processing such as overlap and add on the decoder-side. Furthermore, a large block length for the first encoding branch which is advantageously an AAC-like MDCT encoding branch is useful, since non-speech signals are normally quite stationary and a long transform window provides a high frequency resolution and, therefore, high quality and, additionally, provides a bit rate efficiency due to a psycho acoustically controlled quantization module, which can also be applied to the transform based coding mode in the second processing branch of the second coding branch.
Regarding the
Advantageously, the first decoding branch and/or the second inverse processing branch includes an MDCT transform for converting from the spectral domain to the time domain. To this end, an overlap-adder is provided to perform a time domain aliasing cancellation functionality which, at the same time, provides a cross fade effect in order to avoid blocking artifacts. Generally, the first decoding branch converts a signal encoded in the fourth domain into the first domain, while the second inverse processing branch performs a conversion from the third domain to the second domain and the converter subsequently connected to the first combiner provides a conversion from the second domain to the first domain so that, at the input of the combiner 600, only first domain signals are there, which represent, in the
a and 4b illustrate two different embodiments, which differ in the positioning of the switch 200. In
On the other hand, however, the
Advantageously, the second encoding rule/decoding rule is an LPC-based coding algorithm. In LPC-based speech coding, a differentiation between quasi-periodic impulse-like excitation signal segments or signal portions, and noise-like excitation signal segments or signal portions, is made. This is performed for very low bit rate LPC vocoders (2.4 kbps) as in
Quasi-periodic impulse-like excitation signal segments, i.e., signal segments having a specific pitch are coded with different mechanisms than noise-like excitation signals. While quasi-periodic impulse-like excitation signals are connected to voiced speech, noise-like signals are related to unvoiced speech.
Exemplarily, reference is made to
Unvoiced speech is produced by forcing air through a constriction in the vocal tract. Nasal sounds are due to the acoustic coupling of the nasal tract to the vocal tract, and plosive sounds are produced by abruptly releasing the air pressure which was built up behind the closure in the tract.
Thus, a noise-like portion of the audio signal shows neither any impulse-like time-domain structure nor harmonic frequency-domain structure as illustrated in
Furthermore, quasi-periodic impulse-like portions and noise-like portions can occur in a timely manner, i.e., which means that a portion of the audio signal in time is noisy and another portion of the audio signal in time is quasi-periodic, i.e. tonal. Alternatively, or additionally, the characteristic of a signal can be different in different frequency bands. Thus, the determination, whether the audio signal is noisy or tonal, can also be performed frequency-selective so that a certain frequency band or several certain frequency bands are considered to be noisy and other frequency bands are considered to be tonal. In this case, a certain time portion of the audio signal might include tonal components and noisy components.
a illustrates a linear model of a speech production system. This system assumes a two-stage excitation, i.e., an impulse-train for voiced speech as indicated in
S(z)=g/(1−A(z))·X(z),
where g represents the gain, A(z) is the prediction filter as determined by an LP analysis, X(z) is the excitation signal, and S(z) is the synthesis speech output.
c and 7d give a graphical time domain description of voiced and unvoiced speech synthesis using the linear source system model. This system and the excitation parameters in the above equation are unknown and have to be determined from a finite set of speech samples. The coefficients of A(z) are obtained using a linear prediction of the input signal and a quantization of the filter coefficients. In a p-th order forward linear predictor, the present sample of the speech sequence is predicted from a linear combination of p passed samples. The predictor coefficients can be determined by well-known algorithms such as the Levinson-Durbin algorithm, or generally an autocorrelation method or a reflection method.
e illustrates a more detailed implementation of the LPC analysis block 510. The audio signal is input into a filter determination block which determines the filter information A(z). This information is output as the short-term prediction information needed for a decoder. The short-term prediction information is needed by the actual prediction filter 85. In a subtracter 86, a current sample of the audio signal is input and a predicted value for the current sample is subtracted so that for this sample, the prediction error signal is generated at line 84. A sequence of such prediction error signal samples is very schematically illustrated in
While
g illustrates an inverse processing, which can be applied on the decoder side such as in element 537 of
Subsequently, an analysis-by-synthesis CELP encoder will be discussed in connection with
The CELP algorithm encodes then the residual signal obtained after the short-term and long-term predictions using a codebook of for example Gaussian sequences. The ACELP algorithm, where the “A” stands for “Algebraic” has a specific algebraically designed codebook.
A codebook may contain more or less vectors where each vector is some samples long. A gain factor g scales the code vector and the gained code is filtered by the long-term prediction synthesis filter and the short-term prediction synthesis filter. The “optimum” code vector is selected such that the perceptually weighted mean square error at the output of the subtracter 69 is minimized. The search process in CELP is done by an analysis-by-synthesis optimization as illustrated in
For specific cases, when a frame is a mixture of unvoiced and voiced speech or when speech over music occurs, a TCX coding can be more appropriate to code the excitation in the LPC domain. The TCX coding processes the weighted signal in the frequency domain without doing any assumption of excitation production. The TCX is then more generic than CELP coding and is not restricted to a voiced or a non-voiced source model of the excitation. TCX is still a source-oriented model coding using a linear predictive filter for modelling the formants of the speech-like signals.
In the AMR-WB+-like coding, a selection between different TCX modes and ACELP takes place as known from the AMR-WB+ description. The TCX modes are different in that the length of the block-wise Discrete Fourier Transform is different for different modes and the best mode can be selected by an analysis by synthesis approach or by a direct “feedforward” mode.
As discussed in connection with
An example for a joint multichannel stage on the encoder side 101a, 101b and on the decoder side 702a and 702b is illustrated in the context of
Advantageously, the E input channels are input into a joint multichannel parameter analyzer 101b which generates parametric information. This parametric information is advantageously entropy-encoded such as by a difference encoding and subsequent
Huffman encoding or, alternatively, subsequent arithmetic encoding. The encoded parametric information output by block 101b is transmitted to a parameter decoder 702b which may be part of item 702 in
Parametric information may include inter channel level differences, inter channel time differences, inter channel phase differences and/or inter channel coherence measures as is known from the BCC technique or as is known and is described in detail in the MPEG surround standard. The number of transmitted channels may be a single mono channel for ultra-low bit rate applications or may include a compatible stereo application or may include a compatible stereo signal, i.e., two channels. Typically, the number of E input channels may be five or maybe even higher. Alternatively, the number of E input channels may also be E audio objects as it is known in the context of spatial audio object coding (SAOC).
In one implementation, the downmixer performs a weighted or unweighted addition of the original E input channels or an addition of the E input audio objects. In case of audio objects as input channels, the joint multichannel parameter analyzer 101b will calculate audio object parameters such as a correlation matrix between the audio objects advantageously for each time portion and even more advantageously for each frequency band. To this end, the whole frequency range may be divided in at least 10 and advantageously 32 or 64 frequency bands.
On the decoder-side, the bandwidth extension block 701 includes a patcher 701a, an adjuster 701b and a combiner 701c. The combiner 701c combines the decoded low band signal and the reconstructed and adjusted high band signal output by the adjuster 701b. The input into the adjuster 701b is provided by a patcher which is operated to derive the high band signal from the low band signal such as by spectral band replication or, generally, by bandwidth extension. The patching performed by the patcher 701 a may be a patching performed in a harmonic way or in a non-harmonic way. The signal generated by the patcher 701a is, subsequently, adjusted by the adjuster 701b using the transmitted parametric bandwidth extension information.
As indicated in
a and
Although not discussed in detail for the second switch 521, it is to be emphasized that the second switch 521 can be positioned in a similar way as the first switch 200 as discussed in connection with
Furthermore, the second combiner 600 may have a specific cross fading functionality as discussed in
As discussed before, both switches can be controlled via an open loop decision or a closed loop decision as discussed in connection with
Furthermore, a time warping functionality which is signal-adaptive can exist not only in the first encoding branch or first decoding branch but can also exist in the second processing branch of the second coding branch on the encoder side as well as on the decoder side. Depending on a processed signal, both time warping functionalities can have the same time warping information so that the same time warp is applied to the signals in the first domain and in the second domain. This saves processing load and might be useful in some instances, in cases where subsequent blocks have a similar time warping time characteristic. In alternative embodiments, however, it is advantageous to have independent time warp estimators for the first coding branch and the second processing branch in the second coding branch.
The inventive encoded audio signal can be stored on a digital storage medium or can be transmitted on a transmission medium such as a wireless transmission medium or a wired transmission medium such as the Internet.
In a different embodiment, the switch 200 of
In the corresponding decoder implementation
The concept in
In case of transmitted spectral information the decoder shall reconstruct the quantized spectra, process the reconstructed spectra through whatever tools are active in the bitstream payload in order to arrive at the actual signal spectra as described by the input bitstream payload, and finally convert the frequency domain spectra to the time domain. Following the initial reconstruction and scaling of the spectrum reconstruction, there are optional tools that modify one or more of the spectra in order to provide more efficient coding.
In case of a transmitted time domain signal representation, the decoder shall reconstruct the quantized time signal, process the reconstructed time signal through whatever tools are active in the bitstream payload in order to arrive at the actual time domain signal as described by the input bitstream payload.
For each of the optional tools that operate on the signal data, the option to “pass through” is retained, and in all cases where the processing is omitted, the spectra or time samples at its input are passed directly through the tool without modification.
In places where the bitstream changes its signal representation from time domain to frequency domain representation or from LP domain to non-LP domain or vice versa, the decoder shall facilitate the transition from one domain to the other by means of an appropriate transition overlap-add windowing.
eSBR and MPEGS processing is applied in the same manner to both coding paths after transition handling.
The input to the bitstream payload demultiplexer tool is a bitstream payload. The demultiplexer separates the bitstream payload into the parts for each tool, and provides each of the tools with the bitstream payload information related to that tool.
The outputs from the bitstream payload demultiplexer tool are:
The scalefactor noiseless decoding tool takes information from the bitstream payload demultiplexer, parses that information, and decodes the Huffman and DPCM coded scalefactors.
The input to the scalefactor noiseless decoding tool is:
The output of the scalefactor noiseless decoding tool is:
The spectral noiseless decoding tool takes information from the bitstream payload demultiplexer, parses that information, decodes the arithmetically coded data, and reconstructs the quantized spectra. The input to this noiseless decoding tool is:
The output of this noiseless decoding tool is:
The inverse quantizer tool takes the quantized values for the spectra, and converts the integer values to the non-scaled, reconstructed spectra. This quantizer is a companding quantizer, whose companding factor depends on the chosen core coding mode.
The input to the Inverse Quantizer tool is:
The output of the inverse quantizer tool is:
The noise filling tool is used to fill spectral gaps in the decoded spectra, which occur when spectral value are quantized to zero e.g. due to a strong restriction on bit demand in the encoder. The use of the noise filling tool is optional.
The inputs to the noise filling tool are:
The outputs to the noise filling tool are:
The rescaling tool converts the integer representation of the scalefactors to the actual values, and multiplies the un-scaled inversely quantized spectra by the relevant scalefactors.
The inputs to the scalefactors tool are:
The output from the scalefactors tool is:
For an overview over the M/S tool, please refer to ISO/IEC 14496-3, subpart 4.1.1.2.
For an overview over the temporal noise shaping (TNS) tool, please refer to ISO/IEC 14496-3, subpart 4.1.1.2.
The filterbank/block switching tool applies the inverse of the frequency mapping that was carried out in the encoder. An inverse modified discrete cosine transform (IMDCT) is used for the filterbank tool. The IMDCT can be configured to support 120, 128, 240, 256, 320, 480, 512, 576, 960, 1024 or 1152 spectral coefficients.
The inputs to the filterbank tool are:
The output(s) from the filterbank tool is (are):
The time-warped filterbank/block switching tool replaces the normal filterbank/block switching tool when the time warping mode is enabled. The filterbank is the same (IMDCT) as for the normal filterbank, additionally the windowed time domain samples are mapped from the warped time domain to the linear time domain by time-varying resampling.
The inputs to the time-warped filterbank tools are:
The output(s) from the filterbank tool is (are):
The enhanced SBR (eSBR) tool regenerates the highband of the audio signal. It is based on replication of the sequences of harmonics, truncated during encoding. It adjusts the spectral envelope of the generated high-band and applies inverse filtering, and adds noise and sinusoidal components in order to recreate the spectral characteristics of the original signal.
The input to the eSBR tool is:
The output of the eSBR tool is either:
The MPEG Surround (MPEGS) tool produces multiple signals from one or more input signals by applying a sophisticated upmix procedure to the input signal(s) controlled by appropriate spatial parameters. In the USAC context MPEGS is used for coding a multichannel signal, by transmitting parametric side information alongside a transmitted downmixed signal.
The input to the MPEGS tool is:
The output of the MPEGS tool is:
The Signal Classifier tool analyses the original input signal and generates from it control information which triggers the selection of the different coding modes. The analysis of the input signal is implementation dependent and will try to choose the optimal core coding mode for a given input signal frame. The output of the signal classifier can (optionally) also be used to influence the behaviour of other tools, for example MPEG Surround, enhanced SBR, time-warped filterbank and others.
The input to the Signal Classifier tool is:
The output of the Signal Classifier tool is:
In accordance with the present invention, the time/frequency resolution in block 410 in
The interrelation between window length, transform length, time resolution and frequency resolution is illustrated in
In the first encoding branch, which is advantageously the AAC encoding branch indicated by elements 410, 1201, 1202, 4021 of
Analogously, the last two windows have a window length equal to 2,304, which is a better frequency resolution than the window in the first line but a lower time resolution. The transform length of the windows in the last two lines is equal to 1,152.
In the first encoding branch, different window sequences which are built from the transform windows in the
Finally, when the signal is such that a long window can be used, this long window extends over 4,096 samples again with a 50 percent overlap.
In the embodiment, in which there are two branches, where one branch has an ACELP encoder, the position of the ACELP frame indicated by “A” in the super frame also may determine the window size applied for two adjacent TCX frames indicated by “T” in
Reference is made to the subsequently attached annex, which describes an advantageous and detailed implementation of an inventive audio encoding/decoding scheme, particularly with respect to the decoder-side.
Quantization and coding is done in the frequency domain. For this purpose, the time signal is mapped into the frequency domain in the encoder. The decoder performs the inverse mapping as described in subclause 2. Depending on the signal, the coder may change the time/frequency resolution by using three different windows size: 2304, 2048 and 256. To switch between windows, the transition windows LONG_START_WINDOW, LONG_STOP_WINDOW, START_WINDOW_LPD, STOP_WINDOW—1152, STOP_START_WINDOW and STOP_START_WINDOW—1152 are used. Table 5.11 lists the windows, specifies the corresponding transform length and shows the shape of the windows schematically. Three transform lengths are used: 1152, 1024 (or 960) (referred to as long transform) and 128 (or 120) coefficients (referred to as short transform).
Window sequences are composed of windows in a way that a raw_data_block contains data representing 1024 (or 960) output samples. The data element window sequence indicates the window sequence that is actually used.
See ISO/IEC 14496-3, subpart 4, subclause 4.5.2.3.4
As explain in ISO/IEC 14496-3, subpart 4, subclause 4.5.2.3.4, the width of the scalefactor bands is built in imitation of the critical bands of the human auditory system. For that reason the number of scalefactor bands in a spectrum and their width depend on the transform length and the sampling frequency. Table 4.110 to Table 4.128, in ISO/IEC 14496-3, subpart 4, section 4.5.4, list the offset to the beginning of each scalefactor band on the transform lengths 1024 (960) and 128 (120) and on the sampling frequencies. The tables originally designed for LONG_WINDOW, LONG_START_WINDOW and LONG_STOP_WINDOW are used also for START_WINDOW_LPD and STOP_START_WINDOW. The offset tables for STOP_WINDOW—1152 and STOP_START_WINDOW—1152 are Table 4 to Table 10.
1.3 Decoding of lpd_Channel_Stream( )
The lpd_channel_stream( ) bitstream element contains all needed information to decode one frame of “linear prediction domain” coded signal. It contains the payload for one frame of encoded signal which was coded in the LPC-domain, i.e. including an LPC filtering step. The residual of this filter (so-called “excitation”) is then represented either with the help of an ACELP module or in the MDCT transform domain (“transform coded excitation”, TCX). To allow close adaptation to the signal characteristics, one frame is broken down in to four smaller units of equal size, each of which is coded either with ACELP or TCX coding scheme.
This process is similar to the coding scheme described in 3GPP TS 26.290. Inherited from this document is a slightly different terminology, where one “superframe” signifies a signal segment of 1024 samples, whereas a “frame” is exactly one fourth of that, i.e. 256 samples. Each one of these frames is further subdivided into four “subframes” of equal length. Please note that this subchapter adopts this terminology
In the lpd_channel_stream the order of decoding is
In analogy to [8], section 5.2.2, there are 26 allowed combinations of ACELP or TCX within one superframe of an lpd_channel_stream payload. One of these 26 mode combinations is signaled in the bitstream element lpd_mode. The mapping of lpd_mode to actual coding modes of each frame in a subframe is shown in Table 1 and Table 2.
For all other scalefactor band tables please refer to ISO/IEC 14496-3, subpart 4, section 4.5.4 Table 4.129 to Table 4.147.
For quantization of the AAC spectral coefficients in the encoder a non uniform quantizer is used. Therefore the decoder has to perform the inverse non uniform quantization after the Huffman decoding of the scalefactors (see subclause 6.3) and the noiseless decoding of the spectral data (see subclause 6.1).
For the quantization of the TCX spectral coefficients, a uniform quantizer is used. No inverse quantization is needed at the decoder after the noiseless decoding of the spectral data.
The time/frequency representation of the signal is mapped onto the time domain by feeding it into the filterbank module. This module consists of an inverse modified discrete cosine transform (IMDCT), and a window and an overlap-add function. In order to adapt the time/frequency resolution of the filterbank to the characteristics of the input signal, a block switching tool is also adopted. N represents the window length, where N is a function of the window_sequence (see subclause 1.1). For each channel, the N/2 time-frequency values Xi,k are transformed into the N time domain values xi,n via the IMDCT. After applying the window function, for each channel, the first half of the zi,n sequence is added to the second half of the previous block windowed sequence to reconstruct the output samples for each channel outi,n.
In the following LPD_SEQUENCE refers to all allowed window/coding mode combinations inside the so called linear prediction domain codec (see section 1.3). In the context of decoding a frequency domain coded frame it is important to know only if a following frame is encoded with the LP domain coding modes, which is represented by an LPD_SEQUENCE. However, the exact structure within the LPD_SEQUENCE is taken care of when decoding the LP domain coded frame.
The analytical expression of the IMDCT is:
The synthesis window length N for the inverse transform is a function of the syntax element window sequence and the algorithmic context. It is defined as follows:
Window length 2304:
Window length 2048:
The meaningful block transitions are as follows:
Depending on the window_sequence and window_shape element different transform windows are used. A combination of the window halves described as follows offers all possible window_sequences.
For window_shape=1, the window coefficients are given by the Kaiser-Bessel derived (KBD) window as follows:
where:
W′, Kaiser-Bessel kernel window function, see also [5], is defined as follows:
Otherwise, for window_shape=0, a sine window is employed as follows:
The window length N can be 2048 (1920) or 256 (240) for the KBD and the sine window. In case of STOP—1152_SEQUENCE and STOP_START—1152_SEQUENCE, N can still be 2048 or 256, the window slopes are similar but the flat top regions are longer.
Only in the case of LPD_START_SEQUENCE the right part of the window is a sine window of 64 samples.
How to obtain the possible window sequences is explained in the parts a)-h) of this subclause.
For all kinds of window_sequences the window_shape of the left half of the first transform window is determined by the window shape of the previous block. The following formula expresses this fact:
where:
window_shape_previous_block: window_shape of the previous block (i−1).
For the first raw_data_block( )to be decoded the window_shape of the left and right half of the window are identical.
a) ONLY_LONG_SEQUENCE:
The window sequence=ONLY_LONG_SEQUENCE is equal to one LONG_WINDOW with a total window length N—l of 2048 (1920).
For window_shape=1 the window for ONLY_LONG_SEQUENCE is given as follows:
If window_shape=0 the window for ONLY_LONG_SEQUENCE can be described as follows:
After windowing, the time domain values (zi,n) can be expressed as:
z
i,n
=w(n)·xi,n;
b) LONG_START_SEQUENCE:
The LONG_START_SEQUENCE is needed to obtain a correct overlap and add for a block transition from a ONLY_LONG_SEQUENCE to a EIGHT_SHORT_SEQUENCE.
Window length N_l and N_s is set to 2048 (1920) and 256 (240) respectively.
If window_shape=1 the window for LONG_START_SEQUENCE is given as follows:
If window shape=0 the window for LONG_START_SEQUENCE looks like:
The windowed time-domain values can be calculated with the formula explained in a).
c) EIGHT—SHORT
The window_sequence=EIGHT_SHORT comprises eight overlapped and added SHORT_WINDOWs with a length N_s of 256 (240) each. The total length of the window_sequence together with leading and following zeros is 2048 (1920). Each of the eight short blocks are windowed separately first. The short block number is indexed with the variable j=0, . . . , M−1 (M=N_l/N_s).
The window_shape of the previous block influences the first of the eight short blocks (W0(n)) only. If window_shape=1 the window functions can be given as follows:
Otherwise, if window_shape=0, the window functions can be described as:
The overlap and add between the EIGHT_SHORT window_sequence resulting in the windowed time domain values is described as follows:
d) LONG_STOP_SEQUENCE
This window_sequence is needed to switch from a EIGHT_SHORT_SEQUENCE back to a ONLY_LONG_SEQUENCE.
If window_shape=1 the window for LONG_STOP_SEQUENCE is given as follows:
If window shape=0 the window for LONG_START_SEQUENCE is determined by:
The windowed time domain values can be calculated with the formula explained in a).
e) STOP_START_SEQUENCE:
The STOP_START_SEQUENCE is needed to obtain a correct overlap and add for a block transition from a EIGHT_SHORT_SEQUENCE to a EIGHT_SHORT_SEQUENCE when just a ONLY_LONG_SEQUENCE is needed.
Window length N_l and N_s is set to 2048 (1920) and 256 (240) respectively.
If window_shape=1 the window for STOP_START_SEQUENCE is given as follows:
If window_shape=0 the window for STOP_START_SEQUENCE looks like:
The windowed time-domain values can be calculated with the formula explained in a).
f) LPD_START_SEQUENCE:
The LPD_START_SEQUENCE is needed to obtain a correct overlap and add for a block transition from a ONLY_LONG_SEQUENCE to a LPD_SEQUENCE.
Window length N_l and N_s is set to 2048 (1920) and 256 (240) respectively.
If window_shape=1the window for LPD_START_SEQUENCE is given as follows:
If window_shape=0 the window for LPD_START_SEQUENCE looks like:
The windowed time-domain values can be calculated with the formula explained in a).
g) STOP—1152_SEQUENCE:
The STOP—1152_SEQUENCE is needed to obtain a correct overlap and add for a block transition from a LPD_SEQUENCE to ONLY_LONG_SEQUENCE.
Window length N_l and N_s is set to 2048 (1920) and 256 (240) respectively.
If window_shape=1 the window for STOP—1152_SEQUENCE is given as follows:
If window_shape=0 the window for STOP—1152_SEQUENCE looks like:
The windowed time-domain values can be calculated with the formula explained in a).
h) STOP_START—1152_SEQUENCE:
The STOP_START—1152_SEQUENCE is needed to obtain a correct overlap and add for a block transition from a LPD_SEQUENCE to a EIGHT_SHORT_SEQUENCE when just a ONLY_LONG_SEQUENCE is needed.
Window length N_l and N_s is set to 2048 (1920) and 256 (240) respectively.
If window_shape=1 the window for STOP_START_SEQUENCE is given as follows:
If window shape=0 the window for STOP_START_SEQUENCE looks like:
The windowed time-domain values can be calculated with the formula explained in a).
2.3.3 Overlapping and Adding with Previous Window Sequence
Besides the overlap and add within the EIGHT_SHORT window_sequence the first (left) part of every window_sequence is overlapped and added with the second (right) part of the previous window_sequence resulting in the final time domain values outi,n. The mathematic expression for this operation can be described as follows.
In case of ONLY_LONG_SEQUENCE, LONG_START_SEQUENCE, EIGHT_SHORT_SEQUENCE, LONG_STOP_SEQUENCE, STOP_START_SEQUENCE, LPD_START_SEQUENCE:
And in case of STOP—1152_SEQUENCE, STOP_START—1152_SEQUENCE:
In case of LPD_START_SEQUENCE, the next sequence is a LPD_SEQUENCE. A SIN or KBD window is apply on the left part of the LPD_SEQUENCE to have a good overlap and add.
In case of STOP—1152_SEQUENCE, STOP_START—1152_SEQUENCE the previous sequence is a LPD_SEQUENCE. A TDAC window is apply on the right part of the LPD_SEQUENCE to have a good overlap and add.
Depending on the window_shape element different oversampled transform window prototypes are used, the length of the oversampled windows is
Nos=2·n_long·os_factor_win
For window_shape=1, the window coefficients are given by the Kaiser-Bessel derived (KBD) window as follows:
where: W′, Kaiser-Bessel kernel window function, see also [5], is defined as follows:
α=kernel window alpha factor, α=4
Otherwise, for window_shape=0, a sine window is employed as follows:
For all kinds of window_sequences the used protoype for the left window part is the determined by the window shape of the previous block. The following formula expresses this fact:
Likewise the prototype for the right window shape is determined by the following formula:
Since the transition lengths are already determined, it only has to be differentiated between
EIGHT_SHORT_SEQUENCES and all other: a)EIGHT SHORT SEQUENCE:
The following c-code like portion describes the windowing and internal overlap-add of a EIGHT_SHORT_SEQUENCE:
b) all others:
When the core_mode is equal to 1 and when one or more of the three TCX modes is selected as the “linear prediction-domain” coding, i.e. one of the 4 array entries of mod[ ] is greater than 0, the MDCT based TCX tool is used. The MDCT based TCX receives the quantized spectral coefficients from the arithmetic decoder. The quantized coefficients are first completed by a comfort noise before applying an inverse MDCT transformation to get a time-domain weighted synthesis which is then fed to the weighting synthesis LPC-filter
The MDCT-based TCX requests from the arithmetic decoder a number of quantized spectral coefficients, lg, which is determined by the mod[ ] and last_lpd_mode values. These two values also define the window length and shape which will be applied in the inverse MDCT. The window is composed of three parts, a left side overlap of L samples, a middle part of ones of M samples and a right overlap part of R samples. To obtain an MDCT window of length 2*lg, ZL zeros are added on the left and ZR zeros on the right side as indicated in
The MDCT window is given by
The quantized spectral coefficients, quant[ ], delivered by the arithmetic decoder are completed by a comfort noise. The level of the injected noise is determined by the decoded noise_factor as follows:
noise_level=0.0625*(8-noise_factor)
A noise vector, noise[ ], is then computed using a random function, random_sign( ), delivering randomly the value −1 or +1.
noise[i]=random_sign( )*noise_level;
The quant[ ] and noise[ ] vectors are combined to form the reconstructed spectral coefficients vector, r[ ], in a way that the runs of 8 consecutive zeros in quant[ ] are replaced by the components of noise[ ]. A run of 8 non-zeros are detected according to the formula:
One obtains the reconstructed spectrum as follows:
Prior to applying the inverse MDCT a spectrum de-shaping is applied according to the following steps:
Each 8-dimensional block belonging to the first quarter of spectrum are then multiplying by the factor Rm.
The reconstructed spectrum is fed in an inverse MDCT. The non-windowed output signal, x[ ], is re-scaled by the gain, g, obtained by an inverse quantization of the decoded global_gain index:
g=10global
Where rms is calculated as:
The rescaled synthesized time-dome signal is then equal to:
x
w
[i]=x[i]·g
After rescaling the windowing and overlap add is applied.
The reconstructed TCX target x(n) is then filtered through the zero-state inverse weighted synthesis filter Â(z)(1−αz−1)/(Â(z/λ) to find the excitation signal which will be applied to the synthesis filter. Note that the interpolated LP filter per subframe is used in the filtering. Once the excitation is determined, the signal is reconstructed by filtering the excitation through synthesis filter 1/Â(z) and then de-emphasizing by filtering through the filter 1(1−0.68z−1) as described above.
Note that the excitation is also needed to update the ACELP adaptive codebook and allow to switch from TCX to ACELP in a subsequent frame. Note also that the length of the TCX synthesis is given by the TCX frame length (without the overlap): 256, 512 or 1024 samples for the mod[ ] of 1,2 or 3 respectively.
Definitions can be found in ISO/IEC 14496-3, subpart 1, subclause 1.3 (Terms and definitions) and in 3GPP TS 26.290, section 3 (Definitions and abbreviations).
Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where a block or device corresponds to a method step or a feature of a method step. Analogously, aspects described in the context of a method step also represent a description of a corresponding block or item or feature of a corresponding apparatus.
The inventive encoded audio signal can be stored on a digital storage medium or can be transmitted on a transmission medium such as a wireless transmission medium or a wired transmission medium such as the Internet.
Depending on certain implementation requirements, embodiments of the invention can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, for example a floppy disk, a DVD, a CD, a ROM, a PROM, an EPROM, an EEPROM or a FLASH memory, having electronically readable control signals stored thereon, which cooperate (or are capable of cooperating) with a programmable computer system such that the respective method is performed.
Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.
Generally, embodiments of the present invention can be implemented as a computer program product with a program code, the program code being operative for performing one of the methods when the computer program product runs on a computer. The program code may for example be stored on a machine readable carrier.
Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.
In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.
A further embodiment of the inventive methods is, therefore, a data carrier (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein.
A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals may for example be configured to be transferred via a data communication connection, for example via the Internet.
A further embodiment comprises a processing means, for example a computer, or a programmable logic device, configured to or adapted to perform one of the methods described herein.
A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.
In some embodiments, a programmable logic device (for example a field programmable gate array) may be used to perform some or all of the functionalities of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor in order to perform one of the methods described herein. Generally, the methods are advantageously performed by any hardware apparatus.
The above described embodiments are merely illustrative for the principles of the present invention. It is understood that modifications and variations of the arrangements and the details described herein will be apparent to others skilled in the art. It is the intent, therefore, to be limited only by the scope of the impending patent claims and not by the specific details presented by way of description and explanation of the embodiments herein.
While this invention has been described in terms of several embodiments, there are alterations, permutations, and equivalents which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations and equivalents as fall within the true spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
08017663.9 | Oct 2008 | EP | regional |
09002271.6 | Feb 2009 | EP | regional |
This application is a continuation of copending U.S. application Ser. No. 13/081,223, filed Apr. 6, 2011, which is incorporated herein by reference in its entirety, which is a continuation of copending International Application No. PCT/EP2009/007205, filed Oct. 7, 2009, which is incorporated herein by reference in its entirety, and additionally claims priority from European Applications Nos. 09002271.6, filed Feb. 18, 2009, and EP 08017663.9, filed Oct. 8, 2008 and U.S. Patent Application No. 61/103,825, filed Oct. 8, 2008, which are all incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 13081223 | Apr 2011 | US |
Child | 13707192 | US | |
Parent | PCT/EP2009/007205 | Oct 2009 | US |
Child | 13081223 | US |