The following description is presented to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purpose of explanation. It should be appreciated that one of ordinary skill in the art would realize that the invention may be practiced without the use of these specific details. In other instances, well known structures and processes are not elaborated in order not to obscure the description of the invention with unnecessary details. Thus, the present invention is not intended to be limited by the embodiments shown, but is to be accorded with the widest scope consistent with the principles and features disclosed herein.
In the encoding section 32, there is an encoder 38 connected to a data packetizer 40. A time-varying input signal x(t), after passing through the encoder 38 and the data packetizer 40 are directed to the data handler 36.
In a somewhat similar manner but in the reverse order, in the decoding section 34, there is a decoder 42 tied to a data depacketizer 44. Data from the data handler 36 are fed to the data depacketizer 44 which in turn sends the depacketized data to the decoder 42 for the reconstruction of the original time-varying signal x(t).
In step S1 of
In this specification and the appended claims, unless specifically specified wherever appropriate, the term “signal” is broadly construed. Thus the term signal includes continuous and discrete signals, and further frequency-domain and time-domain signals. Moreover, hereinbelow, lower-case symbols denote time-domain signals and upper-case symbols denote frequency-transformed signals. The rest of the notation will be introduced in subsequent description.
Progressing into step S2, the sampled signal x(n) is partitioned into a plurality of frames. One of such frame is signified by the reference numeral 46 as shown in
The time-varying signal within the selected frame 46 is labeled s(t) in
The discrete version of the signal s(t) is represented by s(n), where n is an integer indexing the sample number. Again, for reason of clarity so as not to obscure the drawing figure, only a few samples of s(n) are shown in
s(t)=s(nτ) (1)
where τ is the sampling period as shown in
Progressing into step S3 of
where s(n) is as defined above, f is the discrete frequency in which 0≦f>N, T is
the linear array of the N transformed values of the N pulses of s(n), and the coefficients c are given by c(0)=√{square root over (1/N)}, c(f)=√{square root over (2/N)} for 1≦f≦N−1 .
After the DCT of the time-domain parameter of s(n), the resultant frequency-domain parameter T(f) is diagrammatically shown in
Entering into step S4 of
Such an arrangement is based on the finding that the sensory physiology of the mammalian auditory system is more attuned to the narrower frequency ranges at the low end than the wider frequency ranges at the high end of the audio frequency spectrum. It should be noted that other approaches of grouping the sub-bands can also be practical. For example, the sub-bands can be of equal bandwidths and equally spaced, instead of being grouped in accordance with the Bark scale as described in this exemplary embodiment.
In selecting the number of sub-bands M, there should be a balance between complexity and signal quality. That is, if a higher quality of the encoded signal is desired, more sub-bands can be chosen but at the expense of more packetized data bits and further a more complex dealing of the residual signal, both will be explained later. On the other hand, fewer numbers of sub-bands may be selected for the sake of simplicity but may result in the encoded signal with relatively lower quality. Furthermore, the number of sub-bands can be chosen as dependent on the sampling frequency. For instance, when the sampling frequency is at 16,000 Hz, M can be selected to be 15. In the exemplary embodiment, the sampling frequency is chosen to be 8,000 Hz and with M set at 13 (i.e., M=13).
After the N DCT coefficients are separated and fitted into the M sub-bands in the form of M overlapping Gaussian windows, as shown in
In the following description of the embodiment, M=13 and 1≦k≦M in which k is an integer. In addition, the DCT coefficients sorted in the kth sub-band is denoted Tk(f), which is a frequency-domain term. The DCT coefficients in the kth sub-band Tk(f) has its time-domain counterpart, which is expressed as sk(n).
At this juncture, it helps to make a digression to define and distinguish the various frequency-domain and time-domain terms.
The time-domain signal in the kth sub-band sk(n) can be obtained by an inverse discrete cosine transform (IDCT) of its corresponding frequency counterpart Tk(f). Mathematically, it is expressed as follows:
where sk(n) and Tk(f) are as defined above. Again, f is the discrete frequency in
Switching the discussion from the frequency domain to the time domain, the time-domain signal in the kth sub-band sk(n) essentially composes of two parts, namely, the time-domain Hilbert envelope {tilde over (s)}k(n) and the Hilbert carrier ck(n). The time-domain Hilbert envelope {tilde over (s)}k(n) is diagrammatically shown in
Hilbert carrier ck(n) as shown
s
k(n)={tilde over (s)}k(n)ck(n) (4)
Thus, from equation (4), if the time-domain Hilbert envelope {tilde over (s)}k(n) and the Hilbert carrier ck(n) are known, the time-domain signal in the kth sub-band sk(n) can be reconstructed. The reconstructed signal approximates that of a lossless reconstruction.
The diagrammatical relationship between the time-domain signal sk(n) and its frequency-domain counterpart Tk(f) can also be seen from
Returning now to
As also mentioned earlier, the time-domain term Hilbert envelope {tilde over (s)}k(n) in the kth sub-band can be derived from the corresponding frequency-domain parameter Tk(f). However, in sub-step S5k, instead of using the IDCT process for the exact transformation of the parameter Tk(f), the process of frequency-domain linear prediction (FDLP) of the parameter Tk(f) is employed in the exemplary embodiment. Data resulted from the FDLP process can be more streamlined, and consequently more suitable for transmission or storage.
In the following paragraphs, the FDLP process is briefly described followed with a more detailed explanation.
Briefly stated, in the FDLP process, the frequency-domain counterpart of the Hilbert envelope {tilde over (s)}k(n) is estimated, the estimated counterpart is algebraically expressed as {tilde over (T)}k(f) and is shown and labeled 56 in
However, the signal intended to be encoded is sk(n) which has carrier information. The exact (i.e., not estimated) frequency-domain counterpart of the parameter sk(n) is Tk(f) which is also shown in
Hereinbelow, further details of the FDLP process and the estimating of the parameter Ck(f) are described.
In the FDLP process, the algorithm of Levinson-Durbin can be employed. Mathematically, the parameters to be estimated by the Levinson-Durbin algorithm can be expressed as follows:
Fundamentals of the Z-transform in the z-domain can be found in a publication, entitled “Discrete-Time Signal Processing,” 2nd Edition, by Alan V. Oppenheim, Ronald W. Schafer, John R. Buck, Prentice Hall, ISBN: 0137549202, and is not further elaborated in here.
In equation (5), the value of K can be selected based on the length of the frame 46 (
In essence, in the FDLP process as exemplified by Equation (5), the DCT coefficients of the frequency-domain transform in the kth sub-band Tk(f) are processed via the Levinson-Durbin algorithm resulting in a set of coefficients a(i), where 0≦i≦K−1. The set of coefficients a(i) represents the frequency counterpart {tilde over (T)}k(f) (
The Levinson-Durbin algorithm is well known in the art and is also not explained in here. The fundamentals of the algorithm can be found in a publication, entitled “Digital Processing of Speech Signals,” by Rabiner and Schafer, Prentice Hall, ISBN: 0132136031, September 1978.
Advancing into sub-step S6k of
The result of the FDLP process is the parameter {tilde over (T)}k(f), which as mentioned above, is the Hilbert envelope {tilde over (s)}k(n) expressed in the frequency-domain term. The parameter {tilde over (T)}k(f) is identified by the reference numeral 56 in
The quantized coefficients a(i), where i=0 to K−1, of the parameter {tilde over (T)}k(f) will be part of the encoded information to be sent to the data handler 36 (
As mentioned above and repeated in here, since the parameter {tilde over (T)}k(f) is a lossy approximation of the original parameter Tk(f), the difference between the two parameters can be captured and represented as the residual value, which is algebraically expressed as Ck(f). Differently put, in the fitting process in sub-steps S5k and S6k via the Levinson-Durbin algorithm as aforementioned to arrive at the all-pole model, some information about the original signal cannot be captured. If signal encoding of high quality is intended, that is, if a lossless encoding is desired, the residual value Ck(f) needs to be estimated. The residual value Ck(f) basically corresponds to the frequency components of the carrier frequency ck(n) of the signal sk(n) and will be further explained.
Progressing into sub-step S7k of
Estimation of the residual value either in the frequency-domain expressed as Ck(f) or in the time-domain expressed as ck(n) is carried out in sub-step S8k of
c
k(n)=sk(n)/{tilde over (s)}k(n) (6)
where all the parameters are as defined above.
It should be noted that Equation (6) is shown a straightforward way of estimating the residual value. Other approaches can also be used for estimation. For instance, the frequency-domain residual value Ck(f) can very well be generated from the difference between the parameters Tk(f) and {tilde over (T)}k(f). Thereafter, the time-domain residual value ck(n) can be obtained by a direct time-domain transform of the value Ck(f).
In
Reference is now returned to sub-step S9k of
Consequently, signal calculation and signal analysis carried out thereafter can be substantially simplified. As in this case, the same treatment is applied to the time-domain residual value ck(n).
To generate an analytic signal zk(n) of the time-domain signal ck(n), a Hilbert transform of the signal ck(n) needs to be carried out, as shown in step S9k of
where all the parameters are as defined above. Equation (7) basically is a commonly known Hilbert transform equation in the time-domain.
After the Hilbert transform, the analytic signal zk(n) is simply the summation of the time-domain signal ck(t) and the imaginary part of the Hilbert transform signal ĉk(t), as shown in step S10k of
z
k(n)=ck(n)+jĉ{circumflex over (ck)}(n) (8)
where j is an imaginary number
After the derivation of the analytic signal, the process of heterodyning is performed, as shown in sub-step S11k in
Mathematically, the demodulated signal, down-sampled Hilbert carrier, dk(n) is derived from the following equation:
d
k(n)=zk(Rn)ck(Rn) (9)
where all the terms are as defined above; R is the down-sampling rate.
By down-shifting the frequency of the parameter ck(n) to arrive at the parameter dk(n), processing of the Hilbert carrier in each sub-band, such as filtering and thresholding to be described below, can be substantially made easier. Specifically, the offset frequency of the Hilbert carrier in each sub-band need not be determined or known in advance. For instance, in the implementation of a filter algorithm, all the sub-bands can assume one offset frequency, i.e., the baseband frequency.
After the process of frequency down-shifting, the down-sampled Hilbert carrier dk(n) is then passed through a low-pass filter, as shown in the sub-step S12k of
It should be noted that the demodulated carrier dk(n) is complex and analytic. As such, the Fourier transform of the parameter dk(n) is not conjugate-symmetric. Phrased differently, the process of heterodyning the analytic signal zk(n) essentially shifts the frequency of the Hilbert carrier ck(n) as dk(n) towards the baseband frequency, but without the conjugate-symmetric terms in the negative frequency. As can be seen from the frequency-domain transform Dk(f) of the down-shifted carrier dk(n) in
Entering into step S14k of
In this exemplary embodiment, the threshold is dynamically applied.
That is, for each sub-band, the threshold 62 is made adjustable based on other parameters, such as the average and maximum magnitudes of the samples of the parameter Dk(f), and/or the same parameters but of the neighboring sub-bands of the parameter Dk(f). In addition, the parameters can also include the average and maximum magnitudes of the samples of the parameter Dk(f), and/or the same parameters but of the adjacent time-frames of the parameter Dk(f). Furthermore, the threshold can also be dynamically adapted based on the number of coefficients selected. In the exemplary embodiment, only values of the frequency-domain transform Dk(f) above the threshold line 62 are selected.
Thereafter, selected components of the parameter Dk(f) greater than the threshold are quantized. In this example, each selected component includes a magnitude value bm(i) and a phase value bp(i), where 0≦i≦L−1. The quantized values bm(i) and bp(i) are represented as the quantized values as shown in sub-step S15k in
The quantized values bm(i) and bp(i), where i=0 to L−1, of the threshold-filtered parameter Dk(f) will be another part of the encoded information along with the quantized coefficients a(i), where i=0 to K−1, as described above to be sent to the data handler 36 (
Reference is now returned to
Thereafter, all the data from each of the M sub-bands are concatenated and packetized, as shown in step S17 of
Data can be retrieved from the data handler 36 for decoding and reconstruction. Referring to
During transmission, if data in few of the M frequency sub-bands are corrupted, the quality of the reconstructed signal should not be affected much.
This is because the relatively long frame 46 (
An exemplary reconstructed frequency-domain transform Dk(f) of the demodulated Hilbert carrier dk(t) are respectively shown in
Reference is first directed to the encoding section 32 of
The encoding section 32 comprises a central data bus 70 linking several circuits together. The circuits include a central processing unit (CPU) or a controller 72, an input buffer 74, and a memory unit 78. In this embodiment, a transmit circuit 76 is also included.
If the encoding section 32 is part of a wireless device, the transmit circuit 74 can be connected to a radio frequency (RF) circuit but is not shown in the drawing. The transmit circuit 76 processes and buffers the data from the data bus 70 before sending out of the circuit section 32. The CPU/controller 72 performs the function of data management of the data bus 70 and further the function of general data processing, including executing the instructional contents of the memory unit 78.
Instead of separately disposed as shown in
The input buffer 74 can be tied to other devices (not shown) such as a microphone or an output of a recorder.
The memory unit 78 includes a set of computer-readable instructions generally signified by the reference numeral 77. In this specification and appended claims, the terms “computer-readable instructions” and “computer-readable program code” are used interchangeably. In this embodiment, the instructions include, among other things, portions such as the DCT function 80, the windowing function 84, the FDLP function 86, the heterodyning function 88, the Hilbert transform function 90, the filtering function 92, the down-sampling function 94, the dynamic thresholding function 96, the quantizer function 98, the entropy coding function 100 and the packetizer 102.
The various functions have been described, e.g., in the description of the encoding process shown in
Reference is now directed to the decoding section 34 of
The decoding section 34 also has a central bus 190 connected to various circuits together, such as a CPU/controller 192, an output buffer 196, and a memory unit 197. Furthermore, a receive circuit 194 can also be included.
Again, the receive circuit 194 can be connected to a RF circuit (not shown) if the decoding section 34 is part of a wireless device. The receive circuit 194 processes and buffers the data from the data bus 190 before sending into the circuit section 34. As an alternative, the receive circuit 194 can be parts of the CPU/controller 192, rather than separately disposed as shown. The CPU/controller 192 performs the function of data management of the data bus 190 and further the function of general data processing, including executing the instructional contents of the memory unit 197.
The output buffer 196 can be tied to other devices (not shown) such as a loudspeaker or the input of an amplifier.
The memory unit 197 includes a set of instructions generally signified by the reference numeral 199. In this embodiment, the instructions include, among other things, portions such as the depackertizer function 198, the entropy decoder function 200, the inverse quantizer function 202, the up-sampling function 204, the inverse Hilbert transform function 206, the inverse heterodyning function 208, the DCT function 210, the synthesis function 212, and the IDCT function 214.
The various functions have been described, e.g., in the description of the decoding process shown in
It should be noted the encoding and decoding sections 32 and 34 are shown separately in
In this embodiment, the memory unit 78 or 197 is a RAM (Random Access Memory) circuit. The exemplary instruction portions 80, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 197, 198, 200, 202, 204, 206, 208, 210, 212 and 214 are software routines or modules. The memory unit 78 or 197 can be tied to another memory circuit (not shown) which can either be of the volatile or nonvolatile type. As an alternative, the memory unit 78 or 197 can be made of other circuit types, such as an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM (Electrical Programmable Read Only Memory), a ROM (Read Only Memory), a magnetic disk, an optical disk, and others well known in the art.
Furthermore, the memory unit 78 or 197 can be an application specific integrated circuit (ASIC). That is, the instructions or codes 77 and 199 for the functions can be hard-wired or implemented by hardware, or a combination thereof. In addition, the instructions 77 and 199 for the functions need not be distinctly classified as hardware or software implemented. The instructions 77 and 199 surely can be implemented in a device as a combination of both software and hardware.
It should be further be noted that the encoding and decoding processes as described and shown in
Finally, other changes are possible within the scope of the invention. In the exemplary embodiment as described, only processing of audio signals is depicted. However, it should be noted that the invention is not so limited. Processing of other types of signals, such as ultra sound signals, are also possible. It also should be noted that the invention can very well be used in a broadcast setting, i.e., signals from one encoder can be sent to a plurality of decoders. Furthermore, the exemplary embodiment as described need not be confined to be used in wireless applications. For instance, a conventional wireline telephone certainly can be installed with the exemplary encoder and decoder as described. In addition, in describing the embodiment, the Levinson-Durbin algorithm is used, other algorithms known in the art for estimating the predictive filter parameters can also be employed. Additionally, any logical blocks, circuits, and algorithm steps described in connection with the embodiment can be implemented in hardware, software, firmware, or combinations thereof It will be understood by those skilled in the art that theses and other changes in form and detail may be made therein without departing from the scope and spirit of the invention.
The present application for patent claims priority to U.S. Provisional Application No. 60/791,042, entitled “Processing of Excitation in Audio Coding Based on Spectral Dynamics in Sub-Bands,” filed on Apr. 10, 2006, and assigned to the assignee hereof and expressly incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
60791042 | Apr 2006 | US |