I. Field
The present invention generally relates to signal processing, and more particularly, to encoding and decoding of signals for storage and retrieval or for communications.
II. Background
In digital telecommunications, signals need to be coded for transmission and decoded for reception. Coding of signals concerns with converting the original signals into a format suitable for propagation over the transmission medium. The objective is to preserve the quality of the original signals but at a low consumption of the medium's bandwidth. Decoding of signals involves the reverse of the coding process.
A known coding scheme uses the technique of pulse-code modulation (PCM). Referring to
To conserve bandwidth, the digital values of the PCM pulses 20 can be compressed using a logarithmic companding process prior to transmission. At the receiving end, the receiver merely performs the reverse of the coding process mentioned above to recover an approximate version of the original time-varying signal x(t). Apparatuses employing the aforementioned scheme are commonly called the a-law or μ-law codecs.
As the number of users increases, there is a further practical need for bandwidth conservation. For instance, in a wireless communication system, a multiplicity of users can be sharing a finite frequency spectrum. Each user is normally allocated a limited bandwidth among other users.
In the past decade or so, considerable progress has been made in the development of speech coders. A commonly adopted technique employs the method of code excited linear prediction (CELP). Details of CELP methodology can be found in publications, entitled “Digital Processing of Speech Signals,” by Rabiner and Schafer, Prentice Hall, ISBN: 0132136031, September 1978; and entitled “Discrete-Time Processing of Speech Signals,” by Deller, Proakis and Hansen, Wiley-IEEE Press, ISBN: 0780353862, September 1999. The basic principles underlying the CELP method is briefly described below.
Reference is now returned to
For simplicity, take only the three PCM pulse groups 22A-22C for illustration. During encoding prior to transmission, the digital values of the PCM pulse groups 22A-22C are consecutively fed to a linear predictor (LP) module. The resultant output is a set of frequency values, also called a “LP filter” or simply “filter” which basically represents the spectral content of the pulse groups 22A-22C. The LP filter is then quantized.
The LP module generates an approximation of the spectral representation of the PCM pulse groups 22A-22C. As such, during the predicting process, errors or residual values are introduced. The residual values are mapped to a codebook which carries entries of various combinations available for close matching of the coded digital values of the PCM pulse groups 22A-22C. The best fitted values in the codebook are mapped. The mapped values are the values to be transmitted. The overall process is called time-domain linear prediction (TDLP).
Thus, using the CELP method in telecommunications, the encoder (not shown) merely has to generate the LP filters and the mapped codebook values. The transmitter needs only to transmit the LP filters and the mapped codebook values, instead of the individually coded PCM pulse values as in the a- and μ-law encoders mentioned above. Consequently, substantial amount of communication channel bandwidth can be saved.
On the receiver end, it also has a codebook similar to that in the transmitter. The decoder (not shown) in the receiver, relying on the same codebook, merely has to reverse the encoding process as aforementioned. Along with the received LP filters, the time-varying signal x(t) can be recovered.
Heretofore, many of the known speech coding schemes, such as the CELP scheme mentioned above, are based on the assumption that the signals being coded are short-time stationary. That is, the schemes are based on the premise that frequency contents of the coded frames are stationary and can be approximated by simple (all-pole) filters and some input representation in exciting the filters. The various TDLP algorithms in arriving at the codebooks as mentioned above are based on such a model. Nevertheless, voice patterns among individuals can be very different. Non-human audio signals, such as sounds emanated from various musical instruments, are also distinguishably different from that of the human counterparts. Furthermore, in the CELP process as described above, to expedite real-time signal processing, a short time frame is normally chosen. More specifically, as shown in
Accordingly, there is a need to provide a coding and decoding scheme with improved preservation of signal quality, applicable not only to human speeches but also to a variety of other sounds, and further for efficient utilization of channel resources.
In an apparatus and method, a time-varying signal is partitioned into frames and each frame is encoded via a frequency domain linear prediction (FDLP) scheme to arrive at an all-pole model carrying spectral information of the signal in multiple sub-bands. A residual signal resulted from the scheme is estimated in the multiple sub-bands. Quantized values of all the sub-bands in all the frames of the all-pole model and the residual signal are packetized as encoded signals suitable for transmission or storage. To reconstruct the time-varying signal, the encoded signal is decoded. The decoding process is in essence the reverse of the encoding process.
The partitioned frames can be chosen to be relatively long in duration resulting in more efficient use of format or common spectral information of the signal source. The apparatus and method implemented as described are suitable for use not only to vocalic voices but also for other sounds, such as sounds emanated from various musical instruments, or combination thereof.
These and other features and advantages will be apparent to those skilled in the art from the following detailed description, taken together with the accompanying drawings, in which like reference numerals refer to like parts.
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. The time-continuous signal s(t) is related to the discrete signal s(n) by the following algebraic expression:
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.
The DCT of the time-domain parameter of s(n) into the frequency-domain parameter T(f) is diagrammatically shown in
Entering into step S4 in
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).
The N DCT coefficients are separated and fitted into the M sub-bands in the form of M overlapping Gaussian windows, as shown in
The separated DCT coefficients in each sub-bands need to be further processed. The encoding process now enters into steps S5-S8 of
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 which 0≦f≦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.
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), as shown in the right side of
sk(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 relationship is somewhat diagrammatically shown in
Returning now to
As 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, which counterpart is algebraically expressed as {tilde over (T)}k(f) and is shown in ghost line and labeled 56 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:
in which H(z) is a transfer function in the z-domain; z is a complex variable in the z-domain; a(i) is the ith coefficient of the all-pole model which approximates the frequency-domain counterpart {tilde over (T)}k(f) of the Hilbert envelope {tilde over (s)}k(n); i=0, . . . , K−1; The time-domain Hilbert envelope {tilde over (s)}k(n) has been described above (e.g., see
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, of the frequency counterpart {tilde over (T)}k(f) of the time-domain Hilbert envelope {tilde over (s)}k(n). Diagrammatically, the FDLP process is shown in
The Levinson-Durbin algorithm is well known in the art and is not repeated 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 in
The result of the FDLP process is the parameter {tilde over (T)}k(f), the Hilbert envelope expressed in the frequency domain, and is diagrammatically shown 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 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 of the two parameters is called 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 comprises the frequency components of the carrier frequency ck(n) of the signal sk(n) and will be further be explained.
Estimation of the residual value is carried out in sub-step S7k of
There are several approaches in estimating the Hilbert carrier ck(n).
A straightforward approach is to assume the Hilbert carrier ck(n) is mostly composed of White noise. One way to obtain the White noise information is to band-pass filtering the original signal x(t) (
If the original signal x(t) (
As shown in
As another alternative in estimating the residual signal, each sub-band k (
For a more faithful signal reconstruction irrespective of whether the original signal source is voiced or unvoiced, a combination of the above mentioned methods can be used. For instance, via simple thresholding on the Hilbert carrier in the frequency domain Ck(f), it can be detected and determined whether the original signal segment s(t) (
There is yet another approach that can be used in the estimation of the Hilbert carrier ck(n). This approach involves the scalar quantization of the spectral components of the Hilbert carrier in the frequency domain Ck(f) (
The Hilbert carrier data of either the parameter Ck(f) or ck(n) will be another part of the encoded information eventually 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 S9 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 (
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 76, and a memory unit 78. In this embodiment, a transmit circuit 74 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 74 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 76 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 78, the windowing function 80, the FDLP function 82, the quantizer function 84, the entropy coder function 86, and the packetizer function 88.
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 90 connected to various circuits together, such as a CPU/controller 92, an output buffer 96, and a memory unit 97. Furthermore, a receive circuit 94 can also be included. Again, the receive circuit 94 can be connected to a RF circuit (not shown) if the decoding section 34 is part of a wireless device. The receive circuit 94 processes and buffers the data from the data bus 90 before sending into the circuit section 34. As an alternative, the receive 94 can be parts of the CPU/controller 92, rather than separately disposed as shown. The CPU/controller 92 performs the function of data management of the data bus 90 and further the function of general data processing, including executing the instructional contents of the memory unit 97.
The output buffer 96 can be tied to other devices (not shown) such as a loudspeaker or the input of an amplifier.
The memory unit 97 includes a set of instructions generally signified by the reference numeral 99. In this embodiment, the instructions include, among other things, portions such as the depackertizer function 98, the entropy decoder function 100, the inverse quantizer function 102, the DCT function 104, the synthesis function 106, and the IDCT function 108.
The various functions have been described, e.g., in the description of the encoding 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 99 is a RAM (Random Access Memory) circuit. The exemplary instruction portions 78, 80, 82, 84, 86, 88, 98, 100, 102, 104, 106 and 108 are software routines or modules. The memory unit 78 or 97 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 97 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 97 can be an application specific integrated circuit (ASIC). That is, the instructions or codes 77 and 99 for the functions can be hard-wired or implemented by hardware, or a combination thereof. In addition, the instructions 77 and 99 for the functions need not be distinctly classified as hardware or software implemented. The instructions or codes 77 and 97 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. Moreover, the transform operations as described need not involve discrete cosine transforms, other types of transforms, such as various types of non-orthogonal and signal-dependent transforms, are also possible and are well-known in the art. 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/729,044, entitled “Signal Coding and Decoding Based on Spectral Dynamics,” filed on Oct. 21, 2005, and assigned to the assignee hereof and expressly incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
4184049 | Crochiere et al. | Jan 1980 | A |
5838268 | Frenkel | Nov 1998 | A |
5884010 | Chen et al. | Mar 1999 | A |
5943132 | Erskine | Aug 1999 | A |
6091773 | Sydorenko | Jul 2000 | A |
7173966 | Miller | Feb 2007 | B2 |
7206359 | Kjeldsen et al. | Apr 2007 | B2 |
7430257 | Shattil | Sep 2008 | B1 |
7532676 | Fonseka et al. | May 2009 | B2 |
7639921 | Seo et al. | Dec 2009 | B2 |
20090198500 | Garudadri et al. | Aug 2009 | A1 |
Number | Date | Country |
---|---|---|
0782128 | Jul 1997 | EP |
0867862 | Sep 1998 | EP |
1093113 | Apr 2001 | EP |
62502572 | Oct 1987 | JP |
6229234 | Aug 1994 | JP |
7077979 | Mar 1995 | JP |
7234697 | Sep 1995 | JP |
O8102945 | Apr 1996 | JP |
9258795 | Oct 1997 | JP |
2002032100 | Jan 2002 | JP |
2003108196 | Apr 2003 | JP |
2007506986 | Mar 2007 | JP |
442776 | Jun 2001 | TW |
454169 | Sep 2001 | TW |
454171 | Sep 2001 | TW |
1242935 | Nov 2005 | TW |
WO2005027094 | Mar 2005 | WO |
2005096274 | Oct 2005 | WO |
Number | Date | Country | |
---|---|---|---|
20080031365 A1 | Feb 2008 | US |
Number | Date | Country | |
---|---|---|---|
60729044 | Oct 2005 | US |