Digital signal encoding apparatus

Abstract: This invention relates to a digital signal encoding apparatus in which the width of the range (B3,B4) is selected to be wider for the higher frequency range of the digital signals divided into a plurality of regions (B1,B2,B3,B4) and in which the encoded signals are synthesized for the respective ranges, wherein encoding is controlled as a function of the output detecting the characteristics of the components of the divided frequency ranges and the detection time interval is selected to be longer for the lower frequency to enable more efficient encoding to be performed as a function of the properties of input digital signals.

Description: BACKGROUND OF THE INVENTION Field of the Invention This invention relates to a digital signal encoding apparatus for encoding input digital signals. Prior Art As a technique of high efficiency encoding of input signals, there are known encoding techniques by so-called bit allocation, according to which input signals are divided into plural channels on the time or frequency axis and certain numbers of bits are adaptively allocated to the respective channels (bit allocation). Among the above mentioned encoding techniques by bit allocation are a so-called sub-band coding (SBC) in which voice signals on the time axis are divided into signals of a plurality of frequency bands for encoding a so-called adaptive transformation coding (ATC) in which voice signals on the time axis are transformed into signals on the frequency axis by orthogonal transformation and the resulting signals are divided into signals of a plurality of frequency bands for adaptive coding for each frequency band, and a so-called adaptive bit allocation (APC-AB) which is a combination of the above mentioned SBC and a so-called adaptive predicting coding (APC) and in which the voice signals on the time axis are divided into signals of a plurality of frequency bands and the signals of the respective bands are converted into base band or low range signals, after which multiple order linear predictive analyses are performed for predictive coding. The sub-band coding, for example, is performed by a circuit shown in Fig. 1. In this figure, digital voice signals, supplied to an input terminal 110 of an encoder 130, are fed to frequency division filters 131₁ to 131 n which may for example be mirror filters, such as quadrature mirror filters (QMFs), so as to be limited in the frequency range and be shifted to lower frequency sides. That is, in these frequency division filters 131₁ to 131 n , the input digital voice signals are divided into separate frequency bands by band-pass filters or BPFs and subsequently passed through low-pass filters so as to be shifted to the lower frequency sides by amounts corresponding to the center frequencies of the pass bands of the LPFs. The signals from the filters are then supplied to quantizers 134₁ to 134 n to undergo down-sampling at a suitable sampling frequency. It is noted that a higher sampling frequency should be used for a broader frequency band. The signals in which the data have been compressed by requantization in this manner are outputted at terminal 138 by way of a multiplexor 136. The output signals are then transmitted over a transmission channel to a terminal 148 of a decoder 140 and thence to dequantizers 144₁ to 144 n via demultiplexor 149 for decoding. The decoded signals are converted by frequency converters 142₁ to 142 n into signals of the frequency bands on the time axis so as to be outputted at terminal 150 as the decoded voice signals. In signal data compression by the encoder 130, quantization bits are adaptively allocated to the respective frequency bands for minimizing the effects of noises produced on data compression on voice signals to improve the quality. The decoder 140 also acquires the bit allocation information by some means or other to perform the decoding. The conventional practice for acquiring the bit allocation information has been to transmit the energy value information of each frequency band as side information in addition to the signals of the respective bands. In this case, the energy values of signals of the respective bands are computed at energy detection means 133₁ to 133 n , from the signals divided into the frequency bands by the frequency division filters 131₁ to 131 n of the encoder 130 and, based on the computed values, the optimum numbers of bit allocation and the steps of quantization at the time of quantization of the signals of the respective bands are found at an allocation-step computing unit 135. The results obtained at the computing unit 135 are used for requantizing the signals of the respective bands at quantizers 134₁ to 134 n . The output signals, that is the auxiliary or side information from the allocation-step computing unit 135, are transmitted to an allocation-step computing unit 145 of the decoder 140, and the data from the unit 145 are transmitted to dequantizers 144₁ to 144 n , where an inverse operation of that performed at the quantizers 134₁ to 134 n is performed to perform signal decoding. With the above described frequency division and coding, noise shaping or the like may be taken into account in keeping with human auditory characteristics, and more information may be allocated to those frequency bands in which the voice energies are concentrated or which contribute more to the subjective voice quality, such as clarity. Signal quantization and dequantization for the respective frequency bands are performed with the allocated number of bits for reducing the extent of obstruction of hearing by the quantization noises to reduce the number of bits on the whole. The above mentioned frequency division and coding results in generation of quantization noises only in the frequency band concerned without affecting the remaining bands. Meanwhile, when the energy value information is transmitted as the auxiliary data, as described above, the energy values of the signals of the respective bands may advantageously be employed as the quantization step widths or normalization factors of the respective frequency band signals. Should the frequency division and coding be applied to musical or voice signals, the frequency band division is usually performed in such a manner that, in order to suit the frequency analysis capability of the human auditory sense, a narrower bandwidth and a broader bandwidth are selected for the low frequency range and the high frequency range, respectively. However, with such frequency band division, suited to the frequency analysis capability of the human auditory sense, if the definition of temporal analyses for the respective frequency bands, that is the time width as the unit of analyses along the time axis, should be the same, the size of the analytic block for each frequency range, that is the number of samples or data, will differ from one frequency range to another because of the difference in the band widths of the frequency bands, with the result that the efficiency of the analytic processing and hence the encoding efficiency are lowered. On the other hand, the constant amplitude period is thought to be longer and shorter for the low and high frequency signals, respectively, so that an efficient encoding consistent with the constant amplitude period cannot be performed. An article "On the Design of Sub-band Coders for Low-Bit Rate Speech Communication" by R.E. Crochiere appeared in the Bell System Technical Journal, vol.56, no.5, pages 747 to 769 describes sub-band coders in which an input speech signal is divided into sub-bands using band-pass filters. Typically, the bandwidth of the sub-bands increases as the sub-band frequency increases. Each sub-band is low-pass translated, sampled at its Nyquist rate and digitally encoded. The encoding applied to each sub-band is tailored to the requirements of that sub-band so as to give a subjectively-improved encoding (i.e. a reproduced signal with good quality as judged by a listener). EP-A-0 084 125 describes apparatus for multiplexing a plurality of voice or data signals. The signals to be multiplexed are divided into sub-bands by a filter bank and the power level of each sub-band is measured. The available bit-rate of the multiplexer is shared-out adaptively to a plurality of quantisers operating on the various sub-bands, the distribution of bits to the quantisers being dependent upon the relative levels of power detected in the sub-bands. OBJECT AND SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a digital signal encoding apparatus in which, in encoding voice signals divided into a plurality of frequency bands to suit the frequency analysis capability of the human auditory sense, a more efficient encoding consistent with the properties of the voice signals may be achieved. It is another object of the present invention to provide a digital signal encoding apparatus in which a higher power of frequency resolution is realized for a low frequency range and a higher power of temporal resolution is achieved for the higher frequency range where duration of the constant amplitude state is shorter. According to the present invention, there is provided a digital signal encoding apparatus of the type including means for dividing input digital signals into a plurality of frequency bands which are so set that the bands with higher frequencies will have broader bandwidths and means for synthesizing and outputting encoded signals for each of the frequency bands, characterised in that there is provided: means for detecting by spectral analysis properties of the frequency components of the frequency bands, with the period of the spectral analyses, which is the time width as a unit of the analyses along the time axis, being selected to be longer for lower frequencies, and generating a corresponding output signal; and means for controlling the synthesizing and encoding as a function of the detection output signal. Thus, according to the present invention, the definition of analyses along the time axis is changed as a function of the bandwiths of the respective frequency bands to realize an optimum time interval for analyses for each frequency band. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing an example of the conventional frequency division and encoding. Fig. 2 is a block diagram showing a first embodiment of the present invention. Fig. 3 is a diagrammatic view showing the operation of the embodiment of Fig. 2. Fig. 4 is a block diagram showing a second embodiment of the present invention. Fig. 5 is a diagrammatic view for illustrating the operation of the second embodiment shown in Fig. 4 . Fig. 6 is a block diagram showing the filter bank of Fig. 4 in detail. Fig. 7 is a block diagram showing a decoder corresponding to the embodiment of Fig. 4 . Fig. 8 and 9 are charts for illustrating the operation of the embodiment shown in Fig. 4 . DESCRIPTION OF THE PREFERRED EMBODIMENTS By referring to the drawings, certain preferred embodiments of the present invention will be explained in detail. Fig. 2 shows diagrammatically the construction of a digital signal encoding apparatus according to a first embodiment of the present invention, wherein the frequency range is divided into four bands, as shown in Fig. 3. In Fig. 2, voice signals, for example, are supplied as input digital signals to an input terminal 1 of the digital signal encoding apparatus. These voice signals are first supplied to band-pass filters (BPFs) 11 to 14. These BPF filters are adapted for dividing the frequency range of the voice signals into a plurality of frequency bands so that the bandwidth will become broader for the higher frequency bands so as to suit the frequency discriminating capability of the human auditory sense. Low-pass filters are built in the BPFs 11 to 14 so that the signals are shifted towards the low frequency sides by amounts corresponding to the central frequencies of the pass bands of the BPFs 11 to 14. The voice signals, thus divided into plural frequency bands and shifted to the lower frequency sides by the BPFs 11 to 14, are divided into frequency bands B1, B2, B3 and B4 by the BPFs 11, 12, 13 and 14, as shown in Fig. 3. These frequency bands B1 to B4 are selected so that the bandwidths will be the broader, the higher the frequencies, as mentioned previously. The signals of the respective frequency bands are quantized by quantizers 41 to 44. During such quantization, the frequency characteristics of the frequency components of the respective bands are detected, and quantization is controlled as a function of the detected output. That is, with the present encoding apparatus, the numbers of allocated bits at the time of quantization are determined on the basis of the results of the signal spectral analyses for the respective frequency bands, and quantization at the quantizers 41 to 44 is performed on the basis of the so determined numbers of bit allocation. Thus the signals of the respective frequency bands from the BPFs 11 to 14 are transmitted to spectrum analysis circuits 21 to 24, respectively, where spectral analyses for the respective frequency bands are performed. The results of the analyses are transmitted to bit allocation numbers decision circuits 31 to 34 adapted for allocating the number of the bits at the time of quantization, so that the bit allocation numbers are determined at the circuits 31 to 34 on the basis of the results of the analyses. Quantizations are performed at the quantizers 41 to 44 on the basis of the so determined bit allocation numbers. Quantization outputs of the quantizers 41 to 44 are synthesized by a multiplexor 6 so as to be outputted at an output terminal 7 of the digital signal encoding apparatus of the present embodiment. It is noted that, in quantizing the voice signals previously divided into plural frequency bands to suit the frequency analysis capability of the human auditory sense, since the bandwidths of the respective frequency bands differ from one frequency band to another, the block sizes of the spectral analyses, that is the widths along the time axis of the analytic blocks, will differ from one frequency band to another for the same assumed precision in definition of the analyses along time axis of the frequency bands, with the result that the efficiency of spectral analyses and hence the quantization efficiency are lowered. Since it is thought in general that the constant amplitude domain of the low frequency range signal is longer and that of the high frequency range signal is shorter, an efficient coding taking such difference in the length of the constant amplitude domain cannot be realized. With this in view, the temporal analytic accuracy that is the analytic accuracy along the time axis, is selected to be higher and lower for the high and low frequency range, respectively, for realizing a more efficient quantization. In other words, the durations of the spectral analyses are selected to be shorter and longer for the high and low frequency ranges, respectively. That is, for spectral analyses by the spectral analysis circuits 21 to 24, the period of the analyses, which is the detection time interval or the time width as a unit of the analyses along the time axis, is selected to be the longer, the lower the frequency. Selection of the detection time intervals for spectral analyses as a function of the frequencies may be made on the basis of each of the clock signals obtained upon dividing the clock frequency of the clock signals contained in the voice signals. Thus, in the present embodiment, the clock signal components in the voice signals supplied to the input terminal 1 are separated in a clock separation circuit 2. The so separated clock signals CK are sequentially transmitted through 1/2 frequency dividers 3, 4 and 5 to produce frequency-divided clock signals (1/2) CK, divided to one half the original clock frequency CK, frequency-divided clock signals (1/4) CK, divided to one-fourth the original clock frequency CK and frequency-divided clock signals (1/8) CK, divided to one-eighth the original clock frequency CK. Of the so-produced clock signals, the clock signals CK are transmitted to a spectrum analysis circuit 24 and a bit allocation number decision circuit 34, the frequency-divided clock signals (1/2) CK are transmitted to a spectrum analysis circuit 23 and a bit allocation number decision circuit 33, the frequency-divided clock signals (1/4) CK are transmitted to a spectrum analysis circuit 22 and a bit allocation number decision circuit 32 and the frequency-divided clock signals (1/8) CK are transmitted to a spectrum analysis circuit 21 and a bit allocation number decision circuit 31. Hence, the detection time duration of the spectral analyses, that is, the unit time width for the analyses, becomes maximum at the spectrum analysis circuit 21, while it becomes progressively shorter at the spectrum analysis circuits 22 and 23, becoming shortest at the spectrum analysis circuit 24. By changing the detection time intervals for spectral analyses in this manner, it becomes possible to realize efficient spectral analyses and hence efficient quantization at the time of quantizing the voice signals divided into a plurality of frequency bands to suit the frequency analysis capability of the human auditory sense. With the detection time interval thus changed, the spectrum for each frequency band may be thought to be constant in each block of the band, so that the values of the spectrum analyses for the long-time block may be used in the lower frequency range in substitution for the short-time spectral waveform. Meanwhile, the division ratio of the frequency range need not necessarily be inversely proportionate to the time durations for spectrum analyses, that is the time durations bearing the ratios of 8:4:2:1 to the frequency of the clock signals CK. However, the relative magnitude of the division ratio is preferably selected in the above described manner. Such relative magnitude is in keeping with the direction in which the block size of the spectral analyses, that is the width of the analytic block along the time axis, may be made the same, so that the efficiency is not lowered. That is, in the above described first embodiment of the digital signal encoding apparatus of the present invention, encoding is controlled in accordance with the detection output of the characteristics of the components of the frequency bands, while the detection time interval is selected to be longer for the lower frequencies, with the result that the detection efficiency is not lowered and hence efficient encoding suited to the nature of the input digital signals may be achieved. A second embodiment of the present invention will be hereinafter explained by referring to Fig.4 et seq. Fig.4 shows diagrammatically a typical construction of a high efficiency encoding apparatus for digital data according to the second embodiment. Referring to Fig.4, the high efficiency encoding apparatus for digital data according to the present embodiment is constituted by a filter bank 104, made up of mirror filters, such as quadrature mirror filters, as the frequency division filters, orthogonal transform circuits 105₁ to 105₅ for performing an orthogonal transform, that is a transform of the time axis into the frequency axis, such as fast Fourier transform, and a bit allocation number decision circuit 106 for determining the bit numbers allocated to the respective frequency bands. To the input terminal 101 are supplied 0 to 16 kHz input digital data obtained upon sampling audio signals with a sampling frequency fs=32 kHz. These input data are transmitted to the filter bank 104, by means of which the input data are divided into a plurality n of, herein five, frequency bands so that the bandwidths become broader for higher frequencies. Thus the input digital data are divided roughly into five channels, that is a channel CH1 with the frequency band of 0 to 1 kHz, a channel CH2 with the frequency band of 1 to 2 kHz, a channel CH3 with the frequency band of 2 to 4 kHz, a channel CH4 with the frequency band of 4 to 8 kHz and a channel CH5 with the frequency band of 8 to 16 kHz. Such frequency division in which the bandwidth becomes broader for higher frequencies is a frequency division technique taking human auditory characteristics into account, similarly to the so-called critical band. The critical band, which takes the human auditory characteristics into account, means the band occupied by a narrow band noise masking a pure tone or sound, wherein the noise has the same amplitude as and encompassing the level or pitch of the pure tone or sound, wherein, the higher the frequency, the broader becomes the bandwidth of the critical band. For each of these five channels, blocks each consisting of a plurality of samples, that is a unit time block, are formed by the orthogonal transform circuits 105₁ to 105₅ and orthogonal transform, such as a fast Fourier transform, is performed for each unit time block of each channel to produce coefficient data by the orthogonal transform, such as the FFT coefficient data for FFT. The coefficient data of the respective channels are transmitted to the bit allocation number decision circuit 106, where the bit allocation number data for the respective channels are formed and the coefficient data for the respective channels are quantized. The encoder output is outputted at an output terminal 102, while the bit allocation number data are outputted at an output terminal 103. In this manner, by constituting the unit time blocks from channel data having broader bandwidths for higher frequencies, the number of samples in the unit time block becomes smaller for the low frequency channels of narrower bandwidths, while becoming larger for the high frequency channels of broader bandwidths. In other words, the frequency resolution becomes lower and higher for the low and high frequency regions, respectively. By performing orthogonal transform of each of the time blocks of the respective channels, the coefficient data by the orthogonal transform may be obtained at each channel over the full frequency range at an equal interval on the frequency axis, so that the same high frequency resolution may be realized at both the high and low frequency sides. If the human auditory characteristics are considered, while the frequency resolution power need to be high in the low frequency range, it need not be so high in the high frequency range. For this reason, with the present embodiments, the unit time block in which the orthogonal transform is performed is composed of the same number of sample data for each band or channel. In other words, the unit time block has different block lengths from one channel to another, in such a manner that the low range has a longer block length and the high range has a shorter block length. That is, the power of frequency resolution is maintained at a higher value for the lower frequency range while it is set so as not to be higher than is necessary for the higher frequency range and the power of temporal resolution is set to be high for the higher frequency range. It is noted that, with the present embodiment, the blocks with the same number of samples are subjected to orthogonal transform for channels CH1 to CH5, so that the same number of coefficient data, such as 64 point (pt) coefficient data, may be obtained in the respective channels. In this case, the channel block length is 32 ms for channel CH1, 32 ms for channel CH2, 16 ms for channel CH3, 8 ms for channel CH4 and 4 ms for channel CH5. If the fast Fourier transform is performed by way of the aforementioned orthogonal transform, the amount of processing is 64 log₂ 64 for channels CH1 and CH2, 64 log₂ 64x2 for channel CH3, 64 log₂ 64x4 for channel CH4 and 64 log₂ 64x8 for channel CH5, in the example of Fig. 5 . In case of the fast Fourier transform for the full frequency range, the amount of processing is 1024 log₂ 1024=1024x10 for the sampling frequency fs=32 kHz and the coefficient data is 1024 pt for the block length equal to 32 ms. With the above described construction of the present embodiment, a high power of frequency resolution may be obtained at the low frequency range which is critical for the human auditory sense, while the requirement for a higher temporal resolution necessary with transient signals rich in high frequency components as shown in Fig. 8 may also be satisfied. The filter bank, the orthogonal transform circuits or the like may be those used conventionally so that the construction may be simplified and reduced in costs and the delay time in each circuit of the apparatus may be diminished. Fig. 6 shows the concrete construction of the filter bank 104. In this figure, the 0 to 16 kHz input digital data with the sampling frequency fs=32 kHz is supplied to an input terminal 140 of the filter bank 104. These input digital data are first supplied to a filter QMF 141 where the 0 to 16 kHz input digital data are divided into 0 to 8 kHz output data and 8 to 16 kHz output data, of which the 8 to 16 kHz output data are supplied to a low range conversion circuit 145₅. The 8 to 16 kHz data undergo down-sampling in the low range conversion circuit 145₅ to generate 0 to 8 kHz data, which are outputted at output terminal 149₅. The 0 to 8 kHz output from QMF 141 is transmitted to a filter QMF 142, where it is similarly divided into a 4 to 8 kHz output transmitted to a low range conversion circuit 145₄ and a 0 to 4 kHz output transmitted to a QMF 143. The 0 to 4 kHz data, converted into the base band data, are obtained at the low range conversion circuit 145₄ so as to be outputted at output terminal 149₄. Similarly, a 0 to 2 kHz output and a 2 to 4 kHz output are produced at filter QMF 143, while a 0 to 1 kHz output and a 1 to 2 kHz output are produced at filter QMF 144, so as to be converted into low range signals in low range conversion circuits 145₃ to 145₁ before being outputted at output terminals 149₃ to 149₁. These outputs are transmitted via channels CH1 to CH5 to the orthogonal transform circuits 105₁ to 105₅, meanwhile, the low frequency conversion circuit 145₁ may be omitted if so desired. Fig. 7 shows the construction of a decoder. In this figure, the above mentioned encoder output is supplied to an input terminal 122, while the above mentioned bit allocation number information is supplied to an input terminal 123. These data are supplied to a channel information generator 126 where the data of the encoder output are restored into coefficient data of the respective channels on the basis of the bit allocation number information. These restored coefficient data are transmitted to inverse orthogonal conversion circuits 125₁ to 125₅ where an inverse operation to that in the orthogonal conversion circuits 105₁ to 105₅ is performed to produce data in which the frequency axis is converted into the time axis. The data of the respective channels on the time axis are decoded by a synthesis filter 124 before being outputted as the decoder output at output terminal 121. In forming the bit allocation information for each channel in the bit allocation number decision circuit 106 of Fig. 4 , the allowable signal noise level is set and the masking effect is taken into consideration at this time so that the allowable noise level will be higher for the higher band frequency for the same energy value for determining the allocation bit number for each band. The masking effect means both the masking effect for signals on the time axis and that for signals on the frequency axis. That is, by such masking effect, any noise in the masked signals, if any, may not be heard. Hence, in the actual audio signals, any noises in the masked signals on the frequency axis are allowable noises, so that, during quantization of the audio data, it becomes possible to diminish the number of the allocated bits corresponding to the allowable noise level. In the above described second embodiment of the high efficiency encoder for digital data, the input digital data are divided into a plurality of bands so that the bandwidth will become broader for the higher frequency range, blocks each consisting of a plurality of samples are formed for each band and orthogonal transform is performed for each of the blocks so as to produce the coefficient data to realize encoding with a higher frequency resolution power. The orthogonal transform block consists of the same number of sample data for each band, so that a high power of frequency resolution required for the lower frequency range may be realized, while the requirement for a high power of temporal resolution for transient signals rich in high frequency components may also be satisfied. In this manner a highly efficient encoding consistent with the human auditory characteristics may be achieved. The construction for implementing the encoder of the present embodiment may be simple and inexpensive since the components may be those used conventionally.

Claims: A digital signal encoding apparatus of the type including means for dividing input digital signals into a plurality of frequency bands (B1 to B4) which are so set that the bands with higher frequencies (B3,B4) will have broader bandwidths and means (6) for synthesizing and outputting encoded signals for each of the frequency bands, characterised in that there is provided: means (21-24/105) for detecting by spectral analysis, properties of the frequency components of the frequency bands, with the period of the spectral analyses, which is the time width as a unit of the analyses along the time axis, being selected to be longer for lower frequencies, and generating a corresponding output signal; and means (31-34/106) for controlling the synthesizing and encoding as a function of the detection output signal. The digital signal encoding apparatus according to claim 1, wherein the input digital signals have a given sampling rate determined by a clock signal and the detecting means includes means (3-5) for deriving clock signals from the sampling rate clock signal, the respective frequencies of these clock signals used in the spectral analysis being selected to be lower for lower frequency bands.

Inventors: AKAGIRI KENZO, AKUNE MAKOTO, FUJIWARA YOSHIHITO, IWAHASHI NAOTO, NISHIGUCHI MASAYUKI, UMEZAWA TOMOKO, AKAGIRI, KENZO, AKUNE, MAKOTO, FUJIWARA, YOSHIHITO, IWAHASHI, NAOTO, NISHIGUCHI, MASAYUKI, UMEZAWA, TOMOKO
Applicants: SONY CORP, SONY CORPORATION
Application year: 1990
Main classification: H04B1
IPC codes: H04B1