This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2010-282247, filed Dec. 17, 2010, the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to a compensation filtering device and a method thereof.
In various types of conventional AV equipment such as a television, when sound is output, various factors exist that degrade reproduced sound quality of an audio signal. Accordingly, there have been proposed various technologies to output sound with quality faithful to the original.
For example, there has been proposed a technology for compensating for response characteristics in a reproduction system configured to include a sound field using a finite impulse response (FIR) filter. In the FIR filter, the characteristics vary depending on the number of taps constituting the FIR filter and a coefficient indicating a weight for each tap (hereinafter, “tap coefficient”). As the number of taps increases, the frequency resolution of the FIR filter increases and the filter performance improves. However, the larger number of taps increase the arithmetic processing load.
In view of this, there has been proposed a conventional technology for obtaining a filter coefficient of the FIR filter with a limited number of taps. For example, the frequency characteristic is combined with the phase compensation characteristic to obtain a combined compensation characteristic. The combined compensation characteristic is used as the filter coefficient of a compensation filter.
The filter coefficient can be obtained not only by combining the frequency characteristic with the phase compensation characteristic as in the conventional technology, but may be obtained in a different manner. Further, with the conventional technology, it is difficult to control the direct current (DC) gain of the compensation filter.
A general architecture that implements the various features of the invention will now be described with reference to the drawings. The drawings and the associated descriptions are provided to illustrate embodiments of the invention and not to limit the scope of the invention.
In general, according to one embodiment, a compensation filtering device comprises an impulse response calculator, a coefficient calculator, and an adder. The impulse response calculator is configured to calculate an impulse response of a reproduction system comprising a sound field. The coefficient calculator is configured to calculate a compensation coefficient to compensate for a tap coefficient such that a direct current gain of an extracted finite impulse response (FIR) filter with a predetermine number of taps extracted from an FIR filter having reverse characteristics of the impulse response takes a predetermined value. The tap coefficient indicates a weight of each of the taps. The adder is configured to add the compensation coefficient to the tap coefficient of each of the taps of the extracted FIR filter to generate a compensation filter to compensate for acoustic characteristics of the reproduction system.
The switch 111 switches an audio signal output from the acoustic reproduction device 100 between an ordinary audio signal and a test audio signal received from the test audio signal generator 101. More specifically, if a compensation filter is generated, the switch 111 connects between the test audio signal generator 101 and the filter 110. Otherwise, the switch 111 connects between a terminal to output an ordinary audio signal and the filter 110.
The test audio signal generator 101 generates a test audio signal to measure acoustic characteristics (impulse response) of a reproduction system 150 comprising a reproduction sound field. In the embodiment, for example, a white noise signal, a time stretched pulse (TSP) signal, or the like is used as the test audio signal. The test audio signal need not necessarily be generated by the test audio signal generator 101 each time measurement is performed, but may be stored in a memory or the like and read therefrom.
The electric/acoustic output converter 102 converts the test audio signal or an audio signal to be listened to from an electrical signal to reproduction sound and outputs it. The electric/acoustic output converter 102 may comprise a digital/analog converter, a power amplifier, and the like.
The acoustic/electric input converter 103 picks up the test reproduction sound propagating in the reproduction system 150, and converts it from sound to an electrical signal. The acoustic/electric input converter 103 may comprise an analog/digital converter, a power amplifier, and the like.
The impulse response calculator 104 calculates an impulse response of the reproduction system 150 comprising a reproduction sound field from the electrical signal converted from the test reproduction sound.
The reproduction sound emitted from the electric/acoustic output converter 102 to the reproduction system 150 is influenced by natural vibration of the vibration system of the electric/acoustic output converter 102, the divided vibration of a vibration board, a standing wave generated in the housing, or a resonance in the housing. The reproduction sound is further subject to various influences such as duct resonance in the reproduction system 150, the reflection of a grill or a net existing in the reproduction system 150, and the like. Accordingly, the picked up test reproduction sound is disturbed in amplitude-frequency characteristics and phase-frequency characteristics compared to the test audio signal generated by the test audio signal generator 101.
In view of this, the acoustic reproduction device 100 of the embodiment applies a finite impulse response (FIR) filter to compensation for the acoustic characteristics.
The reverse characteristic calculator 105 calculates the reverse characteristics of the impulse response calculated by the impulse response calculator 104. For example, the reverse characteristic calculator 105 takes the discrete Fourier transform of the impulse response and obtains a complex number in the frequency domain. The reverse characteristic calculator 105 then calculates the inverse of the complex number and further takes the discrete Fourier transform, thereby obtaining the reverse characteristics of the impulse response.
The amplitude-frequency characteristics illustrated in
Meanwhile, the tap coefficients illustrated in
To reduce the taps of the filter, there has been proposed a method in which data is extracted for a predetermined number of taps and installed as a filter. In the embodiment, the tap extractor 106 extracts an FIR filter corresponding to a predetermined number of taps from an FIR filter having reverse characteristics calculated by the reverse characteristic calculator 105.
The tap extractor 106 uses a window function such as Tukey (tapered cosine) window to extract a predetermined number of taps from an FIR filter having reverse characteristics. Tap coefficients of taps need not necessarily be extracted using a window function such as Tukey (tapered cosine) window, and other techniques may be used.
This is based on that impulse response needs more time to converge with an increase in group delay due to the phase rotation of reproduction sound. That is, in the FIR filter, although the convergence time of impulse response is prolonged because of the characteristics to return group delay, extraction is performed with respect to the impulse response, i.e., the number of taps are limited. As a result, components of the low frequency range where the group delay is large are cut off.
For this reason, the embodiment focuses on such property that the absolute value of the sum of the tap coefficients of the FIR filter provides the direct current (DC) gain of the filter. Thus, the coefficient calculator 107 calculates the sum of the tap coefficients of the extracted compensation filter and further calculates a compensation coefficient that equals the difference between the absolute value of the sum and “1”. The adder 108 adds the calculated compensation coefficient to the tap coefficients of the extracted compensation filter.
The coefficient calculator 107 calculates compensation coefficients to compensate for tap coefficients such that the DC gain of an FIR filter of a predetermined number of taps (in the embodiment, for example, 256 taps) extracted from an FIR filter having reverse characteristics of the impulse response becomes a predetermined value (in the embodiment, “1”), i.e., the absolute value of the sum of the tap coefficients becomes “1”.
The coefficient calculator 107 of the embodiment calculates the compensation coefficients to compensate for the tap coefficients of the extracted FIR filter in a manner described below. In the embodiment, to avoid unnecessary frequency characteristics as characteristics of a coefficient string, the coefficient calculator 107 calculates the coefficient string of compensation coefficients corresponding to 256 taps based on the Tukey (tapered cosine) window function.
Both ends of the Tukey (tapered cosine) window function are in the form of raised cosine. Among 256 coefficients, the n-th (n=0 to N) sample value at the both ends is calculated by the following Equation 1:
Incidentally, among extracted tap numbers, N can be any value appropriate for the samples at the both ends of the Tukey (tapered cosine) window function. In the embodiment, for example, N=16.
The coefficient calculator 107 multiplies each coefficient of the coefficient string except both ends by a variable k, thereby calculating a compensation coefficient string, i.e., a string of compensation coefficients. The values of compensation coefficients at both ends of the compensation coefficient string are obtained by multiplying the variable k by values illustrated in
In the following, a description will be given of how to obtain the variable k. If it is assumed that the total sum of tap coefficients to be compensated for is S, then, it needs to be compensated for so that the absolute value of the total sum is “1” to set the DC gain to 1 (0 dB). Further, the coefficient calculator 107 needs to divide the value by 247 to obtain the variable k. The coefficient calculator 107 calculates the variable k by the following Equation 2 if S<0:
The coefficient calculator 107 calculates the variable k by the following Equation 3 if S>0:
With this, the variable k can be obtained.
The adder 108 adds a compensation coefficient contained in the compensation coefficient string to the tap coefficient of each tap of the extracted FIR filter, thereby generating a compensation filter to compensate for acoustic characteristics of the reproduction system. In the embodiment, the compensation coefficient is calculated by using the Tukey (tapered cosine) window function. As a result, a plurality of compensation coefficients contained in the middle of the coefficient string take the same value.
With this, a compensation filter used for filtering by the filter 110 is obtained. Incidentally, as illustrated in
The filter 110 performs filtering on an audio signal output from the electric/acoustic output converter 102 using the compensation filter generated by the adder 108.
With this configuration, the acoustic reproduction device 100 of the embodiment can perform appropriate filtering on an audio signal.
In the following, a description will be given of the operation of the acoustic reproduction device 100 to generate a compensation filter.
First, the test audio signal generator 101 generates a test audio signal (S1801). The electric/acoustic output converter 102 converts the test audio signal from an electrical signal to reproduction sound and outputs it to the reproduction system 150 (S1802).
The acoustic/electric input converter 103 picks up the test reproduction sound propagating in the reproduction system 150, and converts it from reproduction sound to an electrical signal (S1803).
The impulse response calculator 104 calculates an impulse response of the reproduction system 150 comprising a reproduction sound field from the electrical signal converted from the test reproduction sound (S1804).
The reverse characteristic calculator 105 calculates the reverse characteristics of the impulse response calculated by the impulse response calculator 104 (S1805).
The tap extractor 106 extracts an FIR filter having a predetermined number of taps from the FIR filter having the calculated reverse characteristics (S1806).
The coefficient calculator 107 calculates a string of compensation coefficients to compensate for tap coefficients such that the absolute value of the total sum of the tap coefficients becomes “1” (S1807).
The adder 108 adds each compensation coefficient contained in the calculated compensation coefficient string to the tap coefficient of each tap of the extracted FIR filter, thereby generating a compensation filter to compensate for acoustic characteristics of the reproduction system (1808).
The adder 108 sets the generated compensation filter to the filter 110 (S1809).
In this manner, the audio signal is corrected with the compensation filter having tap coefficients compensated for by compensation coefficients.
As described above, the acoustic reproduction device 100 of the embodiment compensates for an extracted FIR filter with compensation coefficients to achieve desired characteristics.
If using an FIR filter having a fewer taps, i.e., less arithmetic operations, the acoustic reproduction device 100 of the embodiment can suitably compensate for amplitude characteristics in the low frequency range.
According to the embodiment, the acoustic reproduction device 100 can suppress a gain drop in the low frequency range by adjusting filter coefficients. Thus, if using an inexpensive filter having a fewer taps that can be mounted on a digital signal processor (DSP), it is possible to achieve favorable acoustic pressure characteristics in the low frequency range.
While an example is described above in which a vector to be added to an extracted impulse response is obtained by multiplying the Tukey (tapered cosine) window function by a coefficient, the rectangular window can be used with the same effect. Besides, the absolute value of the total sum of tap coefficients is described as being set to “1”, this is by way of example only. For example, an arbitrary gain can be set to double the DC gain (6 dB) by adding compensation coefficients that make the absolute value of the total sum of tap coefficients become 2.
According to the embodiment, the acoustic reproduction device 100 compensates for the tap coefficient of each tap by a compensation coefficient, thereby realizing a filter the amplitude characteristics of which do not degrade in the low frequency range if using a compensation filter (FIR filter) having a few taps.
According to the embodiment, the acoustic reproduction device 100 does not need to additionally have a low-pass filter to set basic sound quality. Thus, it is possible to avoid an increase in arithmetic operations for signal processing and circuit size. Further, the acoustic reproduction device 100 can achieve favorable acoustic pressure characteristics in the low frequency range with less need to rely on acoustic low-frequency enhancement without a cost increase. In other words, the acoustic reproduction device 100 can achieve both processing load reduction and accuracy enhancement.
While the acoustic reproduction device 100 of the embodiment is described as generating a compensation filter as well as performing filtering using the generated compensation filter, it is not so limited. For example, the acoustic reproduction device may comprise an output module that outputs an audio signal and a filter that performs filtering on the audio signal output from the output module using a compensation filter generated and set by another filtering device in a manner as described above.
While the acoustic reproduction device 100 is described by way of example above as being installed in a television receiver, it may be applied to other devices. For example, the acoustic reproduction device 100 may be applied to an external speaker provided to a personal computer or the like. The acoustic reproduction device 100 may also be applied to acoustic equipment such as compact disc (CD) players. The acoustic reproduction device 100 may be built in a mobile telephone, and may also be applied to headphones.
The acoustic reproduction device 100 installed in a television receiver has a hardware configuration comprising a central processing unit (CPU), a read only memory (ROM), and a random access memory (RAM). A computer program (hereinafter, “acoustic processing program”) can be executed on a computer to realize the same function as the acoustic reproduction device 100 of the above embodiment. The acoustic processing program may be provided as being stored in advance in ROM or the like.
The acoustic processing program comprises modules that implement the above constituent elements (including the test audio signal generator, the electric/acoustic output converter, the acoustic/electric input converter, the impulse response calculator, the reverse characteristic calculator, the tap extractor, the coefficient calculator, the adder, and the filter). As real hardware, the CPU loads the acoustic processing program from the ROM into the RAM and executes it. With this, the test audio signal generator, the electric/acoustic output converter, the acoustic/electric input converter, the impulse response calculator, the reverse characteristic calculator, the tap extractor, the coefficient calculator, the adder, and the filter are implemented on the RAM.
The various modules of the systems described herein can be implemented as software applications, hardware and/or software modules, or components on one or more computers, such as servers. While the various modules are illustrated separately, they may share some or all of the same underlying logic or code.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2010-282247 | Dec 2010 | JP | national |