Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD OF ENCODING, METHOD OF DECODING, ENCODER, AND DECODER OF AN AUDIO SIGNAL
Document Type and Number:
WIPO Patent Application WO/2016/116844
Kind Code:
A1
Abstract:
The invention concerns an audio encoding method comprising: collecting audio samples, determining sinusoidal components, estimation of amplitudes and frequencies of the sinusoidal components, obtaining sinusoidal trajectories, splitting trajectories into segments, transforming trajectories to the frequency domain, quantization and selection of transform coefficients in the segments, entropy encoding characterized in that the length of the segments is individually adjusted in time for each trajectory. The invention also concerns an audio signal decoding method comprising: retrieving encoded data, reconstruction of transform coefficients of trajectories' segments, subjecting the coefficients to an inverse transform and reconstruction of the trajectories' segments, generation of sinusoidal components, reconstruction of the audio signal by summation of the sinusoidal components characterized in that missing transform coefficients of the sinusoidal components' trajectories are replaced with noise samples generated on a basis of at least one encoded parameter.

Inventors:
BARTKOWIAK MACIEJ (PL)
ZERNICKI TOMASZ (PL)
JANUSZKIEWICZ LUKASZ (PL)
CHRYSZCZANOWICZ MARCIN (PL)
Application Number:
PCT/IB2016/050222
Publication Date:
July 28, 2016
Filing Date:
January 18, 2016
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ZYLIA SPOLKA Z OGRANICZONA ODPOWIEDZIALNOSCIA (PL)
International Classes:
G10L19/02
Domestic Patent References:
WO2003036619A12003-05-01
Foreign References:
US4885790A1989-12-05
US20090063161A12009-03-05
US4885790A1989-12-05
US7640156B22009-12-29
US7664633B22010-02-16
Other References:
K. BRANDENBURG: "w: Applications of Digital Signal Processing to Audio and Acoustics", 1998, KLUWER ACADEMIC PUBLISHERS, article "Perceptual Coding of High Quality Digital Audio"
M. BOSI; R.E. GOLDBERG: "Introduction to digital audio coding and standards", 2003, SPRINGER
A. SPANIAS; V. ATTI; T. PAINTER: "Audio signal processing and coding", 2007, WILEY
R.J. MCAULAY; T.F. QUATIERI: "Speech analysis/synthesis based on a sinusoidal representation", IEEE TRANSACTIONS ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING ASSP-34 (4, 1986
H. PURNHAGEN, VERY LOW BIT RATE PARAMETRIC AUDIO CODING, 2008
F. MYBURG, DESIGN OF A SCALABLE PARAMETRIC AUDIO CODER, 2004
L.R. RABINER; R. W. SCHAFER: "Digital Processing of Speech Signals", 1978, PRENTICE HALL
M. BOSI; R. E. GOLDBERG: "Introduction to Digital Audio Coding and Standards", 2003, SPRINGER
X. SERRA; J.O. SMITH: "Spectral Modeling Synthesis: A Sound Analysis/Synthesis System Based on a Deterministic Plus Stochastic Decomposition", COMPUTER MUSIC JOURNAL, vol. 14, no. 4, 1990, XP009122116, DOI: doi:10.2307/3680788
N. AHMED; T. NATARAJAN; K.R. RAO: "Discrete Cosine Transform", IEEE TRANSACTIONS ON COMPUTERS, vol. C-23, no. 1, January 1974 (1974-01-01), pages 90 - 93, XP000907682
D. A. HUFFMAN: "A Method for the Construction of Minimum-Redundancy Codes", PROCEEDINGS OF THE IRE, vol. 40, no. 9, September 1952 (1952-09-01), pages 1098 - 1101
N.S.JAYANT; P.NOLL: "Digital Coding of Waveforms: Principles and Applications to Speech and Video", 1984, PRENTICE-HALL
K.SAYOOD: "Introduction to Data Compression", 2000, MORGAN KAUFMANN
Attorney, Agent or Firm:
BURY, Marek (ul. Juliusza Slowackiego 5/13/ 111, 01-592 Warszawa, PL)
Download PDF:
Claims:
Claims

1. An audio signal encoding method comprising the steps of:

collecting the audio signal samples,

determining sinusoidal components (312) in subsequent frames, estimation of amplitudes (314) and frequencies (313) of the components for each frame,

merging thus obtained pairs into sinusoidal trajectories, splitting particular trajectories into segments,

transforming (318, 319) particular trajectories to the frequency domain by means of a digital transform performed on segments longer than the frame duration,

quantization (320, 321) and selection (322, 323) of transform coefficients in the segments,

entropy encoding (328),

outputting the quantized coefficients as output data (115), characterized in that

the length of the segments into which each trajectory is split is individually adjusted in time for each trajectory.

2. The method according to the claim 1 characterized in that the length of the segments into which each trajectory is split is determined in an optimization process, wherein the minimization of the output data rate is set as the optimization criterion.

3. The method according to the claim 1 or 2 characterized in that, in the step of quantization, the quantization levels are selected individually for each trajectory.

4. The method according to the claim 3 characterized in that the quantization levels are adjusted in subsequent segments.

5. The method according to any of the claims 1 to 4 characterized in that the number of coefficients subjected to encoding with entropy code is selected individually in each segment.

6. The method according to any of the claims 1 to 5 characterized in that the sinusoidal trajectories are subjected to a nonlinear operation before they are subjected to the digital transform .

7. The method according to any of the claims 1 to 6 characterized in that selected transform coefficients of the selected trajectories are replaced with at least one noise distribution parameter .

8. The method according to the claim 7 characterized in that the at least noise distribution parameter represents the energy of not encoded coefficients.

9. The method according to any of the claims 1 to 8 characterized in that the quantized coefficients are outputted in such a way that coefficients obtained from trajectories being a continuation of trajectories encoded in the previous groups of segments are outputted first.

10. An audio signal decoding method comprising the steps of:

retrieving encoded data,

reconstruction (411, 412, 413, 414, 415) from the encoded data digital transform coefficients of trajectories' segments, subjecting the coefficients to an inverse transform (416, 417) and performing reconstruction of the trajectories' segments, generation (420, 421) of sinusoidal components, each having amplitude and frequency corresponding to the particular trajectory, reconstruction of the audio signal by summation of the sinusoidal components,

characterized in that

missing, not encoded transform coefficients of the sinusoidal components' trajectories are replaced with noise samples generated on a basis of at least one parameter introduced to the encoded data instead of the missing coefficients.

11. The method according to the claim 10 characterized in that the at least one parameter is the energy of not encoded coefficients .

12. The method according to the claim 11 characterized in that the not encoded coefficients are reconstructed randomly with scaling weights corresponding to a distribution specified by an additional parameter.

13. The method according to the claim 12 characterized in that the distribution is the Poisson distribution.

14. The method according to the claim 10 or 11 or 12 or 13 characterized in that after the trajectories are reconstructed by means of the inverse transform, they are subjected to an inverse nonlinear operation.

15. The method according to any of the claims 10 to 14, characterized in that, the coefficients corresponding to segments continued from segments reconstructed in previous groups of segments are outputted in the order of reconstruction of the these segments of decoded in previous groups of segments .

16. An audio signal encoder (110) comprising an analog-to-digital converter (111) and a processing unit (112) provided with: an audio signal samples collecting unit,

a determining unit receiving the audio signal samples from the audio signal samples collecting unit and converting them into sinusoidal components in subsequent frames,

an estimation unit receiving the sinusoidal components' samples from the determining unit and returning amplitudes and frequencies of the sinusoidal components in each frame, a synthesis unit, generating sinusoidal trajectories on a basis of values of amplitudes and frequencies,

a splitting unit, receiving the trajectories from the synthesis unit and splitting them into segments,

a transforming unit, transforming trajectories' segments to the frequency domain by means of a digital transform, a quantization and selection unit, converting selected transform coefficients into values resulting from selected quantization levels and discarding remaining coefficients, an entropy encoding unit, encoding quantized coefficients outputted by the quantization and selection unit,

and a data outputting unit,

characterized in that

the splitting unit is adapted to set the length of the segment individually for each trajectory and to adjust this length over time.

17. The encoder according to claim 16, characterized in that it is provided with means for performing the steps as defined in any of the claims 2 to 9.

18. An audio signal decoder (210), comprising a digital-to-analog converter (212) and a processing unit (211) provided with:

an encoded data retrieving unit,

a reconstruction unit, receiving the encoded data and returning digital transform coefficients of trajectories' segments, an inverse transform unit, receiving the transform coefficients and returning reconstructed trajectories' segments, a sinusoidal components generation unit, receiving the reconstructed trajectories' segments and returning sinusoidal components, each having amplitude and frequency corresponding to the particular trajectory,

an audio signal reconstruction unit, receiving the sinusoidal components and returning their sum,

characterized in that

it comprises a unit adapted to randomly generate not encoded coefficients on a basis of at least one parameter, the parameter being retrieved from the input data, and transferring the generated coefficients to the inverse transform unit.

19. The decoder according to claim 18, characterized in that it further comprises means adapted to perform the method as defined in any of the claims 10 to 15.

Description:
Method of encoding, method of decoding, encoder, and decoder of an audio signal

Field of the invention

[0001 ] The invention concerns encoding and decoding of an audio signal. More specifically, the invention concerns encoding and decoding of an audio signal with a use of decomposition into sinusoidal trajectories and an entropy encoding.

Background of the invention

[0002 ] The digital uncompressed representation of a high quality audio signal (e.g. of quality comparable to the one offered by a CD record) requires large amount of data. Nowadays, encoders for reducing the amount of data before storing on data storage devices or before digital transmission are commonly used. A number of various audio signal encoders have been developed. They are presented in the scientific literature, e.g. in: K. Brandenburg, "Perceptual Coding of High Quality Digital Audio", Applications of Digital Signal Processing to Audio and Acoustics, M. Kahrs, K. Brandenburg (editors), Kluwer Academic Publishers, 1998; M. Bosi, R.E. Goldberg, "Introduction to digital audio coding and standards", Springer, 2003; and A. Spanias, V. Atti, T. Painter, "Audio signal processing and coding", Wiley 2007.

[0003] Encoders in which the frequency domain representation of an audio signal employing sub-band filters sets or block transforms is used, have gained the greatest popularity. Decoders adapted to decode signals encoded with such compression techniques are commonly used in telecommunication systems and electro-acoustic consumer devices, such as a portable music players, and usually have a form of an application specific integrated circuits. The principle of operation of such devices is also the basis for many international and commercial audio compression standards, e.g.: ISO/IEC JTC1/SC29/WG11 MPEG, International Standard ISO/IEC 11172-3, "Information Technology - Coding of Moving Pictures and Associated Audio for Digital Storage Media at up to About 1.5 Mbit/s, part 3: Audio"; ISO/IEC JTC1/ SC29/WG11 MPEG, International Standard ISO/IEC 14496-3, "Coding of Audio-Visual Objects: Audio"; Advanced Television Systems Committee, Document A/52: 2010, "Digital Audio Compression Standard (AC-3, E-AC-3)";and 3GPP TS 26.410, "General audio codec audio processing functions; Enhanced aacPlus general audio codec".

[ 0004 ] Another, less popular group of audio signal encoders and decoders are sinusoidal encoders and decoders. Sinusoidal encoders and decoders also use the frequency domain representation of a signal. In particular, representation used in the sinusoidal encoders and decoders is a weighted sum of sinusoidal components. More particularly, the instantaneous amplitudes and the instantaneous frequencies of the components, as well as the instantaneous phases related to the instantaneous frequencies, change continuously over time. Signal compression in such representation is achieved by approximating the changes of the instantaneous frequencies and the instantaneous amplitudes of the audio components by means of simple interpolation functions, such as a polynomial of low degree. It is possible to send information regarding the frequency and the amplitude of each component in intervals much longer than the sampling interval of the original signal. When reconstructing the signal, values of the instantaneous frequency and the instantaneous amplitude of each sinusoidal component for each signal sample are interpolated on a basis of the transferred data. The principle of operation of the sinusoidal encoder is described in the scientific literature, e.g. in: R. J. McAulay, T.F. Quatieri, „Speech analysis/synthesis based on a sinusoidal representation", IEEE Transactions on Acoustics, Speech, and Signal Processing ASSP-34 (4), 1986; H. Purnhagen, „Very Low Bit Rate Parametric Audio Coding", 2008; and F. Myburg, „Design of a Scalable Parametric Audio Coder", 2004. Compression method of such kind is also the basis for many international standards, such as ISO/IEC 14496-3/AMD1, „Coding of audiovisual objects - Part 3: Audio (MPEG-4 Audio Version 2) Harmonic and Individual Lines plus Noise"; ISO/IEC JTC1/SC29/WG11 MPEG, International Standard ISO/IEC 14496-3 : 2001/AMD2, „Sinusoidal Coding"; Compression methods of such kind are also disclosed in many patent documents.

[ 0005 ] The patent document US 4,885,790 entitled processing of acoustic waveforms" concerns speech signals encoding based on a sinusoidal model. The publication describes a method and apparatus splitting a speech signal into multiple time segments. For each time segment amplitudes, frequencies and phases of sinusoidal components associated with each maximum of the speech signal amplitude spectrum are determined using the DFT (Digital Fourier Transform) block. Next the tracking algorithm merges frequencies, amplitudes and phases of the components of the current segment with the frequencies, amplitudes and phases of the components of the previous segment, basing on the smallest frequency difference. The result of the tracking algorithm is a set of sinusoidal trajectories describing the changes of the frequency, amplitude and phase of each sinusoidal component, encoded with a sampling interval many times greater than the sampling interval of the original audio signal. The trajectories are then encoded by means of known techniques, e.g. PCM (Pulse Code Modulation) or ADPCM (Adaptive Differential Pulse Code Modulation), described in L.R. Rabiner, R. W. Schafer, „Digital Processing of Speech Signals", Prentice Hall, 1978, and M. Bosi, R. E. Goldberg, „Introduction to Digital Audio Coding and Standards", Springer, 2003.

[ 0006 ] The patent document WO 03/036619 Al entitled frequency- differential encoding of sinusoidal model parameters" discloses an audio signal compression method, wherein the sinusoidal components of the sound are encoded in such a way that the decoder receives either the direct representation of the frequency, amplitude, and phase of the component in the current time segment, or corresponding differences between the frequency, amplitude and phase of the component in the current time segment and the frequency, amplitude and phase of the most similar component from the previous time segment. The method includes the optimization algorithm which minimizes the total cost of transmitting the signal by selecting one of the two aforementioned ways of encoding.

[ 0007 ] The patent document US 7,640,156 B2 entitled „Low bit-rate audio encoding" concerns a parametric audio signal encoding using three models of signal components. The document describes a method and device carrying out the decomposition of the original audio signal into components that can be approximated by a sum of pulses, modulated sine waves with slowly varying characteristics, and a noise having a spectrum that can be approximated by autoregressive filter characteristic with parameters determined by means of known linear prediction technique (LPC) .

[ 0008 ] The patent document US 7,664,633 B2 entitled „Audio coding via creation of sinusoidal tracks and phase determination" discloses an enhanced audio signal encoding method using three models of signal components approximated by a sum of pulses, modulated sine waves and a noise. The document describes a sinusoidal trajectory encoding method in which the mutual dependence of the phase and frequency was taken into account for common encoding both these information. In order to increase encoding efficiency, phase values are subjected to the second order linear prediction and only the quantized prediction error is transmitted. Since the uniqueness of the determination of the sinusoidal components' phases in the subsequent frames must be preserved, the sinusoidal trajectory tracking algorithm does not allow for tracking components exhibiting deep frequency changes over time, which results in a high trajectory fragmentation .

[0009] The main limitation of all existing known audio signal encoding methods based on sinusoidal or sinusoidal-noise model is low efficiency of the sinusoidal trajectory representation, resulting from not taking into account the long-term stability and predictability of changes in the parameters of sinusoidal components of speech and music sounds. The goal of the present invention is to solve this problem and to reduce by a factor of several times the number of bits needed to represent the signal while maintaining a good quality of the decoded signal.

Summary of the invention

[0010] A method of audio signal encoding according to the invention comprises successively performed steps of: collecting the audio signal samples, determining sinusoidal components in subsequent frames, estimation of amplitudes and frequencies of the components for each frame, merging thus obtained pairs into sinusoidal trajectories, splitting particular trajectories into segments, transforming particular trajectories to the frequency domain by means of a digital transform performed on segments longer than the frame duration, quantization and selection of transform coefficients in the segments, entropy encoding, and outputting the quantized coefficients as output data. The method is characterized in that the length of the segments into which each trajectory is split is individually adjusted in time for each trajectory.

[0011] Advantageously, the length of the segments into which each trajectory is split is determined in an optimization process, wherein the minimization of the output data rate is set as the optimization criterion.

[ 0012 ] In the step of quantization, the quantization levels are preferably selected individually for each trajectory, and more preferably they are selected for subsequent segments.

[ 0013 ] Advantageously, the number of the coefficients subjected to encoding with entropy code is adjusted individually for particular segments .

[ 0014 ] Advantageously, the sinusoidal trajectories are subjected to a nonlinear operation before they are subjected to the digital transform .

[ 0015 ] Advantageously, selected transform coefficients of the selected trajectories are replaced with at least one signal parameter, which advantageously is the energy of these coefficients. Since in the encoded trajectory the energy of the discarded coefficients is stored instead of the actual discarded coefficients, it is possible to reconstruct the trajectory taking into account an additional energy equal to the energy of the not encoded coefficients. Thus, at the expense of small amount of additional data to be transferred, it is possible to reconstruct the signal with a more natural sound, with no characteristic audible artefacts associated with reduced number of transferred transform coefficients .

[ 0016 ] The quantized coefficients are outputted in such a way that coefficients obtained from trajectories being a continuation of trajectories encoded in the previous group of segments are outputted first. As a result, it is possible to reconstruct at the decoder the continuous trajectories using no signaling indicating beginning, continuation and end of the sinusoidal trajectory. This allows obtaining better compression.

[ 0017 ] A method of audio signal decoding according to the invention comprises the steps of: retrieving encoded data, reconstruction from the encoded data digital transform coefficients of trajectories' segments, subjecting the coefficients to an inverse transform and performing reconstruction of the trajectories' segments, generation of sinusoidal components, each having amplitude and frequency corresponding to the particular trajectory, reconstruction of the audio signal by summation of the sinusoidal components. The method is characterized in that missing transform coefficients of the sinusoidal components' trajectories are replaced with noise samples generated on a basis of at least one parameter introduced to the encoded data instead of the missing, not encoded coefficients. Advantageously, the at least one parameter is the energy of not encoded coefficients. Advantageously, the not encoded coefficients are reconstructed randomly with scaling weights corresponding to a distribution specified by an additional parameter .

[0018] Advantageously, the distribution is the Poisson distribution, distinguished from other distributions by providing natural-sounding audio.

[0019] Advantageously, the trajectories are subjected to a nonlinear operation inverse to the one used in the encoding process after they are reconstructed by the inverse transform.

[0020] Also advantageously, coefficients corresponding to segments continued from previous groups of segments are outputted in the order of reconstruction of the decoded segments of trajectories.

[0021] The audio signal encoder according to the invention comprises a A/D converter and a data processing unit provided with: an audio signal samples collecting unit, a determining unit receiving the audio signal samples from the audio signal samples collecting unit and converting them into sinusoidal components in subsequent frames, an estimation unit receiving the sinusoidal components' samples from the determining unit and returning amplitudes and frequencies of the sinusoidal components in each frame, a synthesis unit, generating sinusoidal trajectories on a basis of values of amplitudes and frequencies, a splitting unit, receiving the trajectories from the synthesis unit and splitting them into segments, a transforming unit, transforming trajectories' segments to the frequency domain by means of a digital transform, a quantization and selection unit, converting selected transform coefficients into values resulting from preset quantization levels and discarding remaining coefficients, an entropy encoding unit, encoding quantized coefficients outputted by the quantization and selection unit, and a data outputting unit. The encoder according to the invention is characterized in that the splitting unit is adapted to set the length of the segment individually for each trajectory and to adjust this length over time. [0022] Advantageously, the encoder is provided with means for performing the steps of the encoding method according to the invention .

[0023] The audio signal decoder according to the invention comprises a D/A converter and a data processing unit provided with: an encoded data retrieving unit, a reconstruction unit, receiving the encoded data and returning digital transform coefficients of trajectories' segments, an inverse transform unit, receiving the transform coefficients and returning reconstructed trajectories' segments, a sinusoidal components generation unit, receiving the reconstructed trajectories' segments and returning sinusoidal components, each having amplitude and frequency corresponding to the particular trajectory, an audio signal reconstruction unit, receiving the sinusoidal components and returning their sum. The decoder according to the invention is characterized in that it further comprises a unit adapted to randomly generate not encoded coefficients on a basis of at least one parameter, the parameter being retrieved from the input data, and transferring the generated coefficients to the inverse transform unit. Advantageously, the decoder further comprises means adapted to perform the method according to the invention .

Short description of drawings

[0024] The embodiments of the present invention are illustrated in the drawing, in which

Fig. 1 shows a block diagram of an encoder according to the invention,

Fig. 2 shows a block diagram of a decoder according to the invention, Fig. 3 shows a flowchart of an encoding method according to the invention,

Fig. 4 shows a flowchart of a decoding method according to the invention,

Fig. 5 shows a distribution of trajectories' segments over frames.

Detailed descriptions of embodiments of the invention

[0025] In the first embodiment the method according to the invention was implemented in an encoder according to the invention shown in Fig. 1. The encoder allows for conversion of an audio signal into a compressed data sequence, which can be stored on a storage medium or transferred via a telecommunication channel. The encoder 110 comprises an analog-to-digital converter 111, such as AD1877, receiving an analog audio signal and outputting a sequence of signal samples, and a digital signal processor arrangement 112 implemented in FPGA technology, for example using Xilinx Spartan 6, which converts samples 114 of the signal 113 into a compressed data sequence 115.

[0026 ] A block diagram of the decoder 210 according to the invention is shown in Fig. 2. The decoder 210 comprises a signal processing unit 211 implemented in FPGA technology, e.g. using Xilinx Spartan 6, adapted to converting compressed data 213 into digital signal samples 214. The output of the signal processor is connected to the digital-to-analog converter 212, e.g. 16-bit AD1851 converter, converting the signal samples into the analog signal 215. The output of the digital-to-analog converter 212 is connected to an external speaker which converts the analog audio signal into a sound wave.

[ 0027 ] The signal processor 112 performs encoding according to the flowchart illustrated in Fig. 3. The first processing step is to collect samples of the digital audio signal 114. Next, the step 312 of determining sinusoidal components of the sinusoidal model or the sinusoidal-noise model is performed using the digital representation of the signal. This step is performed according to known methods described in the literature: R.J. McAulay, T.F. Quatieri, "Speech Analysis / Synthesis Based on a Sinusoidal Representation", IEEE Transactions on Acoustics, Speech, and Signal Processing ASSP-34 (4), 1986; and X. Serra. J.O. Smith, "Spectral Modeling Synthesis: A Sound Analysis / Synthesis System Based on a Deterministic plus Stochastic Decomposition", Computer Music Journal, vol. 14, vo . 4, 1990. The result of the determination 312 of the sinusoidal components is an array of 313 describing frequency values of the sinusoidal components of the signal, and an array 314 describing amplitude values of these components. Phase parameters are not encoded, since the phase information is not necessary for good quality of the decoded signal. Each row of each array lists the data for one component of the signal and constitutes so called sinusoidal trajectory. Improved encoding of information on the sinusoidal trajectory as a function of time is crucial in the present invention. Particular sinusoidal trajectories are encoded independently . [ 0028 ] For the purpose of encoding, each trajectory describing the change of frequency or the change of amplitude of the sinusoidal component is in step 315 split into segments having a length of N frames. For each segment, the frequency and amplitude values are in blocks 316 and 317 represented in the logarithmic scale, according to the formula:

x log (nk) = log a x(n,k)

in which x(n,k) represents the amplitude or the frequency of a single signal component indicated by index k in the n-th frame, where k belongs to a range from 1 to K, n belongs to the range from 0 to N- 1, and a is a selected logarithm base. A vector containing values of x l0 g(n,k~) corresponding to the current segment is transformed to the frequency domain by means of an orthogonal transform 318, 319, such as the discrete cosine transform known from the literature: N. Ahmed, T. Natarajan, K.R. Rao, "Discrete Cosine Transform", IEEE Transactions on Computers, vol.C-23, no.l, pp.90-93, Jan. 1974; or by means of any other suitable transform returning a vector of spectral coefficients X(m,k), according to the formula:

(n)

in which ψ γη (η) is a transform base function representing the m-th spectra component, m belongs to a range from 0 to N— l, and w m is a normalization factor of the function. The values of transform coefficients X (m, k) are independently quantized at the quantization step by means of quantization units 320, 321 using the quantization step size providing appropriately low frequency and amplitude error of the signal reconstructed at the decoder, for example frequency error less than 10 ct and amplitude error less than 1 dB . The quantization methods and the methods of quantization step size selection are known to those skilled in the art and described in detail for example in: L.R. Rabiner, R. W. Schafer, „Digital Processing of Speech Signals", Prentice Hall, 1978, and M. Bosi, R. E. Goldberg, „Introduction to Digital Audio Coding and Standards", Springer, 2003. A key step for obtaining a high compression ratio is the step of quantization and selection of only a few quantized coefficients X(m,k) for further encoding. Selection blocks 322 and 323 perform this step, discarding all the coefficients of absolute values below a certain threshold or arbitrarily discarding the selected number of coefficients with the smallest absolute values. In the next steps the array of indices of selected coefficients 324, 326 and the array of values of selected coefficients 325, 327 are encoded. The coefficients that are not selected, are lost. Preferably an additional parameter, ACEnergy, representing their total energy is sent instead of them. Such operation enables reconstruction at the decoder coefficients corresponding to the lost ones in such a way that the total signal energy is not changed. This is beneficial for human perception of a sound. Additional improvement can be obtained by sending information about the shape of the envelope of the lost coefficients in a form of the second parameter, which may take three values corresponding to Poisson, Gaussian or exponential function, respectively.

[ 0029 ] At the next stage 328 the content of all arrays is encoded using one of known entropy encoding techniques, such as Huffman code known from: A. Huffman, "A Method for the Construction of Minimum-Redundancy Codes", Proceedings of the IRE, vol. 40, no. 9, pp .1098-1101 , Sept. 1952, which returns an output compressed data sequence 115.

[ 0030 ] Fig. 4 shows a flowchart of a decoding method according to the invention, performed by a signal processing unit 211. In the first step, the entropy code decoder 411 decodes the transferred compressed data 115, reconstructing arrays of indices 324, 326 and arrays of values 325, 327 of the quantized transform coefficients. In the next step vectors of transform coefficients are initiated and pre-filled with zeros. In the reconstruction blocks 412, 413, the vectors' elements indicated by the decoded indices are filled with corresponding decoded non-zero coefficients values. In the next step, in blocks 414 and 415, the quantized coefficients values are scaled with the quantization step size used in the quantization units 320, 321 in order to restore the original dynamic range of the transform coefficients. Not encoded coefficients, ignored and discarded in the encoding process, are reconstructed using the "ACEnergy" parameter which is sent instead of them. This parameter determines the energy of all the coefficients that have not been selected in the encoding process. The missing coefficients are reconstructed in a random manner, while maintaining the selected coefficients' energy distribution. Usually the coefficients' energy distribution corresponds well to the Poisson distribution. Optionally, one can transfer an additional second parameter, ACEnvelope, indicating the type of envelope that approximates the energy distribution over the whole range of coefficients. Depending on the nature of the encoded signal, this parameter may indicate that the envelope corresponds to the exponential function, Gaussian function, or Poisson function.

[ 0031 ] The energy restoring unit operates with the AC coefficients of both the frequency trajectory and the amplitude trajectory. This introduces certain randomness to the signal - a noise that was lost in the encoding process. The energy distribution modelled with the Poisson / Gauss / exponential function corresponds to the shape of distribution occurring in the natural musical signals.

[ 0032 ] Next, the inverse transform 416, 417 is computed according to the formula:

where X {m, k) stands for the reconstructed value of quantized transform coefficient, x lo& (n, k) is the reconstructed logarithmic value of signal frequency or the reconstructed logarithmic value of signal amplitude in the frame indicated by index n for the trajectory of the sinusoidal component indicated by k of the decoded signal in the current trajectory segment, ψ Μ (^) is the base function of the transform inverse to the one used in the encoding process, and v n is a normalization factor of the function. Encoding techniques with a use of a transform are widely known from the literature, e.g.: N.S.Jayant, P.Noll, „Digital Coding of Waveforms: Principles and Applications to Speech and Video", Prentice-Hall, 1984, and K.Sayood, „Introduction to Data Compression", Morgan Kaufmann, 2000. In the subsequent step reconstructed logarithmic values of frequency and amplitude are converted to the linear scale by means of antilogarithm 418, 419, according to the formula:

x {n, k) = a lae n'k) .

[ 0033 ] In the above, a is the logarithm base used in the encoder, while X log (n, k) is the reconstructed frequency value or the reconstructed amplitude value in the frame indicated by index n for the current segment of the sinusoidal trajectory describing the k- th component of the decoded signal. In the next step of decoding, the reconstructed trajectories' segments are merged in the blocks 420, 421 with the segments already decoded in order to recover the continuity of the trajectories' waveforms. The last decoding step is synthesis of the signal 214 described by the sinusoidal trajectories, the synthesis being performed in the block 422 with a use of techniques known from the literature, e.g. : R.J. McAulay, T.F. Quatieri, "Speech analysis/synthesis based on a sinusoidal representation", IEEE Transactions on Acoustics, Speech, and Signal Processing ASSP-34 (4), 1986.

[ 0034 ] Fig. 5 illustrates the trajectories in the encoded frames with a certain exemplary segment. Since coefficients obtained from the trajectories being the continuation of the trajectories encoded in the previous frames are outputted from the encoder first, there is no need for introducing beginning, end and continuation marks for all the trajectories in the frame. As a result, it is possible to reconstruct at the decoder the continuous trajectories using no signalling indicating beginning, continuation and end of the sinusoidal trajectory. This allows better compression to be achieved .

[ 0035 ] The disclosed invention allows significant reduction, by a factor of several times, of the number of bits required to encode the signal while maintaining good quality of the decoded signal at bit rates in the range of 8 kb/s - 16 kb/s.

[0036 ] For the one skilled in the art it is clear that the invention may be practiced in many different ways and using different conventional devices. It is clear that various modifications of the embodiments of the invention using FPGA matrices, ASIC circuits, signal processors, and other typical components are within the scope of protection.