This invention relates to the concealment of transmission errors occurring in digital audio streaming applications and, in particular, to a beat-detection error concealment process.
The transmission of audio signals in compressed digital packet formats, such as MP3, has revolutionized the process of music distribution. Recent developments in this field have made possible the reception of streaming digital audio with handheld network communication devices, for example. However, with the increase in network traffic, there is often a loss of audio packets because of either congestion or excessive delay in the packet network, such as may occur in a best-effort based IP network.
Under severe conditions, for example, errors resulting from burst packet loss may occur which are beyond the capability of a conventional channel-coding correction method, particularly in wireless networks such as GSM, WCDMA or BLUETOOTH. Under such conditions, sound quality may be improved by the application of an error-concealment algorithm. Error concealment is an important process used to improve the quality of service (QoS) when a compressed audio bitstream is transmitted over an error-prone channel, such as found in mobile network communications and in digital audio broadcasts.
Perceptual audio codecs, such as MPEG-1 Layer III Audio Coding (MP3), as specified in the International Standard ISO/IEC 11172-3 entitled “Information technology of moving pictures and associated audio for digital storage media at up to about 1,5 Mbits/s—Part 3: Audio,” and MPEG-2 Advanced Audio Coding (AAC), use frame-wise compression of audio signals, the resulting compressed bitstream then being transmitted over the audio packet network. With rapid deployment of audio compression technologies, more and more audio content is stored and transmitted in compressed formats.
A critical feature of an error concealment method is the detection of beats (i.e., short transient signals) so that replacement information can be provided for missing data. Beat detection or tracking is an important initial step in computer processing of music and is useful in various multimedia applications, such as automatic classification of music, content-based retrieval, and audio track analysis in video. Systems for beat detection or tracking can be classified according to the input data type, that is, systems for musical score information such as MIDI signals, and systems for real-time applications.
Beat detection, as used herein, refers to the detection of physical beats, that is, acoustic features or other signal transients exhibiting a higher level of energy, or peak, in comparison to the adjacent audio stream. Thus, a ‘beat’ would include a drum beat, but would not include a perceptual musical beat, perhaps recognizable by a human listener, but which produces little or no sound.
However, most conventional beat detection or tracking systems function in a pulse-code modulated (PCM) domain. They are computationally intensive and not suitable for use with compressed domain bitstreams such as an MP3 bitstream, which has gained popularity not only in the Internet world, but also in consumer products. A compressed domain application may, for example, perform a real-time task involving beat-pattern based error concealment for streaming music over error-prone channels having burst packet losses.
The wireless channel is another source of error that can also lead to packet loss. Under such conditions, sound quality may be improved by the application of an error-concealment algorithm. Error concealment is usually a receiver-based error recovery method, which serves as the last resort to mitigate the degradation of audio quality when data packets are lost in audio streaming over error prone channels such as mobile Internet.
As can be appreciated by one skilled in the relevant art, streaming uncompressed audio over wireless channel is simply an uneconomic use of the scarce resource, and a compressed audio bitstream is more sensitive to channel errors in comparison with an uncompressed bitstream (after removing most of the signal redundancy and irrelevance).
Conventional error concealment schemes employ small segment (typically around 20 msec) oriented concealment methods including: muting, packet repetition, interpolation, time-scale modification, and regeneration-based schemes. However, a fundamental limitation of packet repetition and other existing error concealment schemes is that they all operate with the assumption that the audio signals are short-term stationary. Thus, if the lost or distorted portion of the audio signal includes a short transient signal, such as a drumbeat, the conventional methods will not be able to produce satisfactory results.
What is needed is an audio data decoding and error concealment system and method operative in a compressed domain which provides high accuracy with a relatively less complex system at the receiver end.
The present invention discloses a beat-pattern based error concealment system and method which detects drum-like beat patterns of music signals on the encoder side of the system and embeds the beat information as data ancillary to a preceding audio data interval in the transmitted compressed bitstream. The embedded information is then used to perform an error concealment task on the decoder side of the system. The beat detector functions as part of an error concealment system in an audio decoding section used in audio information transfer and audio download-streaming system terminal devices such as mobile phones. The disclosed method results from the observation that, while the majority of packet losses in streaming applications are single packet losses, even these single packet losses can result in significant degradation in the subjective audio quality. The disclosed sender-based method improves error concealment performance while reducing decoder complexity.
The invention description below refers to the accompanying drawings, of which:
Additionally, the telecommunications network 35 and the wired network 21 are interconnected with a wireless telecommunications network 23, which can be a Global System for Mobile Communications (GSM), a General Packet Radio Service (GPRS), Wideband CDMA (WCDMA), DECT, wireless LAN (WLAN), or a Universal Mobile Telecommunications System (UMTS), for example. An alternate audio source can be provided to the wireless telecommunications network 23 via a wireless transceiver 33. Audio signals picked up by a microphone 38 can be encoded by an encoder 37 and provided to the wireless transceiver 33. Alternatively, a source PDA 39 having an internal encoder can provide audio information to the wireless telecommunications network 23 directly through the wireless transceiver 33. Yet another alternative source of audio information is a source mobile phone 13 communicating either directly or indirectly with the base transceiver station 15.
The user of the mobile phone 11 may select audio data for downloading, such as a short interval of music or a short video with audio music. In a ‘select request’ from the user, the terminal address of the mobile phone 11 is known to the server unit 31 as well as the detailed information of the requested audio data (or multimedia data) in such detail that the requested information can be downloaded. The server unit 31 then downloads the requested information to another connection end. If connectionless protocols are used between the mobile phone 11 and the server unit 31, the requested information is transferred by using a connectionless connection in such a way that recipient identification of the mobile phone 11 is thereby connected with the transferred audio information.
A fundamental shortcoming in the operation of the system 10 can be explained with reference to
In the example provided, the replacement audio data interval 49 is a copy of the previous error-free audio data interval 41. Because the error-free audio data interval 41 included no transient signal, the replacement audio data interval 49 provides no replacement transient signal for the corrupted or missing short transient signal 45. If the short transient signal 45 comprises a drum beat, for example, the resulting audio stream portion 40′ would be conspicuously missing a drumbeat, an effect which would probably be noticed by a user of the mobile phone 11.
In another application, shown in
The encoder 61 additionally performs a frequency analysis on the incoming musical signal 71, at step 105, yielding transform coefficients 73 which are used for transient or beat detection. The frequency analysis can use a modified discrete cosine transform (MDCT) to yield MDCT coefficients. In a preferred embodiment, a shifted discrete Fourier transform (SDFT) is used to produce SDFT coefficients. As can be appreciated by one skilled in the relevant art, SDFT is an orthogonal transform and produces more reliable results than MDCT which is not an orthogonal transform. See, for example, the technical paper by Wang, Y., Vilermo, M., and Isherwood, D. “The Impact of the Relationship Between MDCT and DFT on Audio Compression: A Step Towards Solving the Mismatch,” ACM Multimedia 2000 International Conference, Oct. 30-Nov. 4, 2000. The transform coefficients are provided to a transient/beat detector 63 to determine if a current audio data interval includes a transient signal or drumbeat, at decision block 107.
Preferably, the transient/beat detection is performed using feature vectors (FV), which may take the form of a primitive band energy value, an element-to-mean ration (EMR) of the band energy, or a differential band energy value. The feature vector can be directly calculated from decoded MDCT coefficients, using the equation for the energy Eb(n) of a band. The energy can be calculated directly by summing the squares of the MDCT coefficients to give:
where Xj(n) is the jth normalized MDCT coefficient decoded at an audio data interval n, N1 is the lower bound index, and N2 is the higher bound index of MDCT coefficients defined in Tables I and II.
If no beat is detected, the current audio data interval can be classified as non-transient and operation proceeds to step 113. If a beat is detected, the current audio data is classified as a transient audio data interval, at step 109. The beat information obtained by the beat detector 63 is subsequently embedded within the encoded bitstream 77 as ancillary data or as side information, at step 111, and sent to the decoder 65, at step 113. If there is additional data forthcoming from the server unit 31, at decision block 115, operation returns to step 103. Otherwise, the encoder 61 of the error concealment system 60 stands by for the next audio data request from the mobile phone 11 or other user, at step 117.
The encoded bitstream 77 is received by a decoder 65, at step 121 in
Accordingly, a transient defective audio data interval is replaced by an error-free transient audio data interval, at step 129, and converted for output from the decoder 65, at step 125. Likewise, a non-transient defective audio data interval is replaced by an error-free non-transient audio data interval, at step 131, and converted for output, at step 125. The error concealment unit 67 functions to conceal the detected errors, as described in greater detail below, by returning reconstructed transform coefficients 85, corresponding to the replacement audio data intervals, to the decoder 65 in place of erroneous or missing transform coefficients corresponding to the defective audio data intervals. The decoder 65 utilizes the reconstructed transform coefficients 85 to produce the error-concealed formatted output musical samples 87, at step 125.
Unlike audio transmission received at the encoder 61, there may be packet loss in the audio transmission transmitted to the decoder 65. This results in certain beats detected by the encoder 61 not reaching the decoder 65. Consequently, beat information obtained by the beat detector 63 at the encoder 61 is more reliable than beat information obtained at the decoder 65. It can thus be appreciated by one skilled in the relevant art that the disclosed error-concealment system and method, which detects beats or transients on the transmitter side, overcomes the limitations of conventional error-concealment systems and methods which perform beat detection on the receiver side.
There is shown in
In a preferred embodiment, the distinction between short transient signals is retained such that if the audio data interval 155 were found to be defective at the decoder 65, the error concealment unit 67 would provide audio data interval 151 as a replacement, as indicated by arrow 169, and not the audio data interval 153. Similarly, if the audio data interval 157 were defective, the audio data interval 153 would be a replacement, as indicated by arrow 183, and not the audio data interval 151. This distinction between two or more different types of transient signals, is provided by a primary set of ancillary beat information 160, or side information, received in the encoded bitstream 150. In the example shown, the ancillary beat information 160 comprises two data bits for each audio data interval in the encoded bitstream 150, including transient audio data intervals 151-157 and audio data intervals 171-177.
In the diagram, a first data bit 161a ancillary to the audio data interval 171 is used to indicate whether the subsequent audio data interval 151 includes a short transient signal, and a second data bit 161b is used to identify the type of short transient signal present in the subsequent audio data interval 151. The first data bit 161a has a value of ‘1’ to indicate that the audio data interval 151 includes the short transient signal 152, and the second data bit 161b has a value of ‘1’ to indicate that the short transient signal 152 is a ‘bassdrum’ beat. Similarly, a first data bit 163a ancillary to the audio data interval 173 has a value of ‘1’ to indicate that the subsequent audio data interval 153 includes the short transient signal 154, and the second data bit 163b has a value of ‘0’ to indicate that the short transient signal 154 is a ‘snaredrum’ beat.
Thus, if the audio data interval 155 is found to be defective, the error concealment unit 67 reads a first data bit 165a and a second data bit 165b ancillary to the preceding audio data interval 175 to establish that a replacement audio data interval for the defective audio data interval 155 should include a ‘bassdrum’ short transient signal (i.e., the short transient signal 156). Accordingly, as indicated by the arrow 161, the error concealment unit 67 retrieves the audio data interval 151 from a buffer (such as shown in
Similarly, if the audio data interval 157 is found to be defective, the error concealment unit 67 reads the bits ancillary to the preceding audio data interval 177 to establish that a replacement audio data interval for the defective audio data interval 157 should include a ‘snaredrum’ short transient signal. The error concealment unit 67 retrieves the audio data interval 153. The error concealment unit 67 uses the replacement audio data interval 153 to reconstruct the transform coefficients 85 associated with the defective audio data interval 157, and sends the reconstructed transform coefficients 85 to the decoder 65 to produce the output musical samples 87.
It should be understood that that the present invention is not limited to just the one set of ancillary beat information 160 and that a secondary set of ancillary beat information 170 can be used to provide more information in an alternative embodiment and to provide for increased robustness against burst packet loss. In way of example, in the case where both the audio data interval 155 and the preceding audio data interval 175 are lost or corrupted, it is still possible to recover the position of the short transient signal 156 in the audio data interval 155 by obtaining the information provided in additional data bits 167 as indicated by arrow 169. Similarly, for loss of the audio data interval 157 and the preceding audio data interval 177, recovery is possible by the information provided in additional data bits 181 as indicated by arrow 183.
In an alternative preferred embodiment, shown in
As understood by one skilled in the relevant art, MP3 applications, for example, use four different window types for sampling: a long window, a long-to-short window (i.e., a ‘stop’ window), a short window, and a short-to-long window (i.e., a ‘start’ window). These window types are indexed as 0, 1, 2, and 3 respectively. Accordingly, each of the transient audio data intervals 211-217 comprises the same type of beat but a different window type. For example, the audio data interval 211 includes a TransientA type of beat in a type-0 window, the audio data interval 213 includes a TransientA type of beat in a type-1 window, and so on as indicated by the subscripts. Similarly, each of the audio data intervals 221-227 includes a TransientB type of beat with a different window type, as indicated by subscripts.
The functions performed using the transient buffers 210 and 220 can be described with additional reference to the flow diagram of
If the audio data interval 201 is error-free, the TransientA buffer 210 is updated with the audio data interval 201, as indicated by arrow 231. In the example provided, the audio data interval 201 includes a beat in a type-2 window. Accordingly, transform coefficients in the buffered transient audio data interval 215 are replaced by the transform coefficients in the decoded audio data interval 201, at step 291, and operation returns to step 281. At some later time, the decoder 65 determines from an audio data interval 202 that the next audio data interval 203 should be a transient audio data interval with a TransientB-type beat. Accordingly, if the transient audio data interval 203 is error-free, the second transient buffer 220 is updated by replacing the buffered type-0 window transient audio data interval 221 with the decoded transient audio data interval 203, as indicated by arrow 233.
If, at decision block 289, a transient audio data interval is found to be defective, the decoder goes to a buffer corresponding to the transient type and to the window-type missing from the defective transient audio data interval, at step 293, and the correct transient audio data interval is retrieved from the correct transient buffer for replacement, at step 295. The retrieved transient audio data interval is substituted for the defective transient audio data interval, at step 297, and operation returns to step 281. In the example provided, an audio data interval 205 is found to be defective. From the preceding transient audio data interval 204, which is a type-2 window and which includes the bits ‘1’ and ‘1’ in the ancillary data, the decoder 65 determines that the defective transient audio data interval 205 originally included a TransientA-type beat in a type-3 window. This determination is made on the expected occurrence of a type-3 window following a type-2 window in the proximity of a transient. Accordingly, the defective transient audio data interval 205 is replaced by transient audio data interval 217 obtained from the first transient buffer 210. Likewise, for a defective transient audio data interval 207, information obtained from a preceding audio data interval 206 indicates that the original transient audio data interval 207 included a TransientB-type beat in a type-1 window. Accordingly, a transient audio data interval 223 is selected for replacement of the defective transient audio data interval 207.
There is shown in
To mitigate this effect, a sub-band method of audio data interval replacement can be used in place of the full-band method described above. The sub-band method can be explained with reference to the diagram in
This method is shown in greater detail in
Z(r)=α(r)X(r)+β(r)Y(r), 0≦r≦N−1 (1)
where α(r) and β(r) are weighting functions across the entire frequency band with constraints of
α(r)+β(r)=1, 0≦r≦N−1 (2)
and
α(r), β(r)≧0, 0≦r≦N−1 (3)
The parameters α(r)and β(r) can be adaptive to the actual signal, or can be static parameters for simplicity. The design principle is to maintain the harmonic continuity while keeping the beat structure in place. A simple implementation can be
where z(k) is an output audio signal 267 after application of an inverse transform, such as an inverse modified discrete cosine transform (IMDCT), of Z(r):
z(k)=IMDCT(Z(r)) (6)
The audio data interval 265 formed by the function z(k) is used as a replacement for the defective audio data interval. This method has low computational complexity and low memory requirements in the decoder 65 and can be advantageously used in smaller devices such as the mobile phone 11.
For better performance, an alternative embodiment of the disclosed method is illustrated in
x(k)=IMDCT[α(r)X(r)] (7)
y(k)=IMDCT[β(r)Y(r)] (8)
where α(r) and β(r) are weighting functions in the frequency domain similar to the weighting functions in equation (1). The replacement signal 275(z(k)) is then constructed as
z(k)=a(k)x(k)+b(k)y(k), 0≦k≦2N−1 (9)
where a(k) and b(k) are weighting functions in the time domain with constraints of
a(k)+b(k)=1, 0≦k≦2N−1 (10)
a(k),b(k)≧0, 0≦k≦2N−1 (11)
The parameters a(k) and b(k) can be adaptive to the actual signal or static. The design principle is to estimate the drum contour in time domain. For a simple implementation, a(k) can be a static function such as a triangle function 271 to approximate the drum contour in time domain. The asymmetric triangle 273 indicates that the onset of a drum is generally much shorter than the subsequent decay. The term TB indicates the maximum of the weighting function a(k).
The above is a description of the realization of the invention and its embodiments utilizing examples. It should be self-evident to a person skilled in the relevant art that the invention is not limited to the details of the above presented examples, and that the invention can also be realized in other embodiments without deviating from the characteristics of the invention. Thus, the possibilities to realize and use the invention are limited only by the claims, and by the equivalent embodiments which are included in the scope of the invention.
This application is a continuation-in-part of commonly-assigned U.S. patent applications Ser. No. 09/770,113 entitled “System and Method for Concealment of Data Loss in Digital Audio Transmission” filed Jan. 24, 2001, and of Ser. No. 09/966,482 entitled “System and Method for Compressed Domain Beat Detection in Audio Bitstreams” filed Sep. 28, 2001.
Number | Name | Date | Kind |
---|---|---|---|
5040217 | Brandenburg et al. | Aug 1991 | A |
5148487 | Nagai et al. | Sep 1992 | A |
5256832 | Miyake | Oct 1993 | A |
5285498 | Johnston | Feb 1994 | A |
5361278 | Vaupel et al. | Nov 1994 | A |
5394473 | Davidson | Feb 1995 | A |
5481614 | Johnston | Jan 1996 | A |
5579430 | Grill et al. | Nov 1996 | A |
5636276 | Brugger | Jun 1997 | A |
5841979 | Schulhof et al. | Nov 1998 | A |
5852805 | Hiratsuka et al. | Dec 1998 | A |
5875257 | Marrin et al. | Feb 1999 | A |
5886276 | Levine et al. | Mar 1999 | A |
5928330 | Goetz et al. | Jul 1999 | A |
6005658 | Kaluza et al. | Dec 1999 | A |
6064954 | Cohen et al. | May 2000 | A |
6115689 | Malvar | Sep 2000 | A |
6125348 | Levine | Sep 2000 | A |
6141637 | Kondo | Oct 2000 | A |
6175632 | Marx | Jan 2001 | B1 |
6199039 | Chen et al. | Mar 2001 | B1 |
6287258 | Phillips | Sep 2001 | B1 |
6305943 | Pougatchev et al. | Oct 2001 | B1 |
6453282 | Hilpert et al. | Sep 2002 | B1 |
6477150 | Maggenti et al. | Nov 2002 | B1 |
6597961 | Cooke | Jul 2003 | B1 |
6738524 | De Queiroz | May 2004 | B2 |
6766300 | Laroche | Jul 2004 | B1 |
6787689 | Chen | Sep 2004 | B1 |
6807526 | Touimi et al. | Oct 2004 | B2 |
Number | Date | Country |
---|---|---|
197 36 669 | Oct 1998 | DE |
0 703 712 | Mar 1996 | EP |
0 718 982 | Jun 1996 | EP |
1 207 519 | May 2002 | EP |
WO 9326099 | Jun 1993 | WO |
9813965 | Apr 1998 | WO |
Number | Date | Country | |
---|---|---|---|
20020138795 A1 | Sep 2002 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09770113 | Jan 2001 | US |
Child | 10020579 | US | |
Parent | 09966482 | Sep 2001 | US |
Child | 09770113 | US |