THIS APPLICATION IS A U.S. NATIONAL PHASE APPLICATION OF PCT INTERNATIONAL APPLICATION PCT/JP05/002303.
The present invention relates to a howling detector for automatically detecting howling caused by acoustic coupling between speakers and a microphone in an acoustic device including the microphone and the speakers, and a howling detection method.
In an acoustic device where a microphone and speakers are combined, sound reproduced from the speakers enters the microphone and forms a feedback loop, so that howling may occur.
A conventional howling detector is known which analyzes the frequency component of an input signal and detects, as a howling occurrence band, a band reaching the peak level (for example, Patent document 1). Referring to
The following will describe the operations of the conventional howling detector. A time signal input to the signal input terminal 1001 is divided into plural frequency bands by the band dividing section 1002. The level calculating section 1003 calculates the absolute value of each frequency band signal. This processing corresponds to the measurement of the frequency characteristic of the input signal which changes all the time. The peak value calculating section 1004 calculates the peak value of the absolute values having been output from the level calculating section 1003. The howling deciding section 1005 decides the presence or absence of howling by analyzing each peak value, and outputs a decision result to the signal output terminal 1006.
As described above, in the conventional howling detector, howling can be automatically detected by noting the characteristic of howling reaching its peak on the frequency axis.
In the conventional howling detector, however, howling is detected with reference to the peak value of the absolute values of frequency band signals. Since the accuracy of detecting howling depends on the level of an input signal, when inputting a signal having a strong narrow-band component such as a siren and a ringer tone of a telephone, erroneous detection of howling may occur.
The present invention is designed to solve the conventional problem. It is desirable to provide a howling detector, an acoustic device including the same, and a howling detection method whereby howling can be detected with higher accuracy than the related art.
In order to solve the conventional problem, the howling detector of the present invention includes a frequency analyzing section for analyzing the frequency of a time signal, a level calculating section for calculating the level of a signal output from the frequency analyzing section, a howling detecting section for analyzing the level having been calculated by the level calculating section and deciding whether howling occurs or not, a periodic signal detecting section for deciding whether or not the time progression of the level having been calculated by the level calculating section has periodicity, and a howling deciding section for finally deciding whether howling occurs or not based on the decision results of the howling detecting section and the periodic signal detecting section.
With this configuration, the howling detector of the present invention can reduce erroneous detection of howling by discriminating whether a frequency band signal having reached the peak level is howling or a signal having a strong narrow-band component, so that howling can be detected with higher accuracy than the related art.
According to the howling detector of the present invention, the howling detecting section includes an average level calculating section for calculating a mean value of levels of all frequency bands, a level ratio calculating section for calculating a level ratio which is a magnification difference between the level calculated by the level calculating section and an average level calculated by the average level calculating section, a level ratio analyzing section for analyzing the level ratio having been calculated by the level ratio calculating section, and a level ratio deciding section for deciding whether howling occurs or not based on an analysis result of the level ratio analyzing section.
With this configuration, the howling detector of the present invention refers to the level ratio which is a magnification difference between the average level of all the frequency bands and the level of each frequency band, so that howling can be stably detected even in the presence of ground noise.
According to the howling detector of the present invention, the periodic signal detecting section includes an envelope calculating section for calculating the envelope of the level having been calculated by the level calculating section, a signal condition deciding section for deciding which one of predetermined signal conditions corresponds to the envelope having been calculated by the envelope calculating section, and a periodicity deciding section for deciding, based on a decision result of the signal deciding section, whether the time progression of the envelope has periodicity or not.
With this configuration, the howling detector of the present invention decides whether the time progression of the level of each frequency band has periodicity or not and reduces erroneous detection of howling by discriminating between howling and a signal having a strong narrow-band component, so that howling can be detected with higher accuracy than the related art.
According to the howling detector of the present invention, the signal condition deciding section decides which at least one or more signal conditions of the rising edge (or attack) of a signal, a signal interval, and a non-signal interval correspond to the time progression of the envelope having been calculated by the envelope calculating section.
With this configuration, the howling detector of the present invention decides whether the time progression of the level of each frequency band has periodicity or not by analyzing the rough shape of the time progression of the level for each frequency band, and reduces erroneous detection of howling by discriminating between howling and a signal having a strong narrow-band component, so that howling can be detected with higher accuracy than the related art.
According to the howling detector of the present invention, the periodicity deciding section compares at least one or more of signal interval lengths and non-signal interval lengths between the latest time period and a past time period in the time progression of the envelope having been calculated by the envelope calculating section.
With this configuration, the howling detector of the present invention decides whether or not the time progression of the level has periodicity in each frequency band and reduces erroneous detection of howling by discriminating between howling and a signal having a strong narrow-band component, so that howling can be detected with higher accuracy than the related art.
According to the howling detector of the present invention, the level calculating section, the howling detecting section, the periodic signal detecting section, and the howling deciding section perform processing only on some frequency bands.
With this configuration, the howling detector of the present invention performs processing only on frequency bands where howling is expected to occur, so that an arithmetic quantity can be reduced.
The acoustic device of the present invention includes the howling detector and a howling suppressor.
With this configuration, the acoustic device of the present invention can detect and suppress howling with higher accuracy than the related art. It is thus possible to reduce harsh sound and improve the gain of an amplifier having been limited by howling.
A howling detection method according to the present invention includes a frequency analysis step of analyzing the frequency of a time signal, a level calculation step of calculating the level of a signal output from the frequency analysis step, a howling detection step of analyzing the level having been calculated in the level calculation step and deciding whether howling occurs or not, a periodic signal detection step of deciding whether or not the time progression of the level having been calculated in the level calculation step has periodicity, and a howling decision step of finally deciding whether howling occurs or not based on the decision results of the howling detection step and the periodic signal detection step.
With this configuration, the howling detection method according to the present invention can reduce erroneous detection of howling by discriminating whether a frequency band signal having reached the peak level is howling or a signal having a strong narrow-band component, so that howling can be detected with higher accuracy than the related art.
As described above, the present invention can provide a howling detector, an acoustic device including the same, and a howling detection method whereby erroneous detection of howling can be reduced by discriminating between howling and a signal having a strong narrow-band component, so that howling can be detected with higher accuracy than the related art.
The object and advantage of the present invention will be more apparent from the embodiments described with reference to the accompanying drawings.
The following will describe embodiments of the present invention in accordance with the accompanying drawings.
The howling detecting section 105 includes an average level calculating section 109 for calculating the mean value of the levels of all the frequency bands, the levels having been calculated by the level calculating section 104, a level ratio calculating section 110 for calculating a level ratio which is a magnification difference between the level calculated by the level calculating section 104 and an average level calculated by the average level calculating section 109, a level ratio analyzing section 111 for analyzing the level ratio having been calculated by the level ratio calculating section 110, and a level ratio deciding section 112 for deciding whether howling occurs or not based on the analysis result of the level ratio analyzing section 111.
The periodic signal detecting section 106 includes an envelope calculating section 113 for calculating the envelope of the level having been calculated by the level calculating section 104, a signal condition deciding section 114 for deciding which one of predetermined signal conditions corresponds to the envelope having been calculated by the envelope calculating section 113, and a periodicity deciding section 115 for deciding, based on the decision result of the signal deciding section 114, whether the time progression of the envelope has periodicity or not.
The following will describe the operations of the howling detector according to the present embodiment. In the following explanation, howling is detected at respective frequencies separately and in parallel.
A time signal input from a microphone or the like (not shown) to the signal input terminal 101 is converted from an analog signal to a digital signal by the AD converter 102. And then, the signal is input to the frequency analyzing section 103 and divided into plural frequency signals. The dividing method used in the frequency analyzing section 103 is time-frequency transform such as fast Fourier transform. In the level calculating section 104, a level is calculated for each of the plural frequencies having been output from the frequency analyzing section 103.
The following will discuss the operations of the howling detecting section 105. The average level calculating section 109 calculates a level mean value of all the frequency bands. The level ratio calculating section 110 calculates a level ratio which is a magnification difference between each frequency level value and the level mean value of all the frequency bands. The level ratio analyzing section 111 compares the level ratio with a predetermined first threshold value for detecting howling. When the level ratio at a certain frequency exceeds the first threshold value for detecting howling, a howling detecting counter is incremented. When the howling detecting counter exceeds a predetermined second threshold value for detecting howling, the level ratio deciding section 112 decides that howling occurs and outputs the decision result to the howling deciding section 107. When the incremented counter for detecting howling does not satisfy a howling decision condition in the level ratio analyzing section 111, the howling detecting counter is reset.
The following will discuss the operations of the periodic signal detecting section 106.
The envelope calculating section 113 stores, in a buffer (not shown), the frequency level values of a currently processed frame and Na frames before the current frame. The frequency level values are output from the level calculating section 104. The envelope calculating section 113 calculates the maximum value of the frequency levels of the currently processed frame and the Na frames before the current frame, so that the envelope of the time progression of the level is calculated. The signal condition deciding section 114 decides which one of predetermined three-stage signal conditions of (Step 1) the rising edge of a signal, (Step 2) signal interval, and (Step 3) non-signal interval corresponds to the envelope having been calculated by the envelope calculating section 113. The signal conditions to be decided alternately change in this order every time the signal condition is detected, which corresponds to an analysis of the rough shape of the time progression of the level. The following will discuss the decision of the three-stage signal conditions.
(Step 1) Detection of the Rising Edge of a Signal
The detection of the rising edge of a signal includes two stages of (1) the detection of the rising edge and (2) the detection of a transition to a signal interval after the detection of the rising edge.
First, the operations of (1) the detection of the rising edge will be discussed below.
The following will discuss the operations of (2) the detection of a transition to a signal interval after the detection of the rising edge.
The signal condition decision unit 401 decides whether Step 1 flag is turned on or off. When Step 1 flag is turned on, the frame counter updater 402 starts incrementing the frame counter. The difference comparator 403 compares the second-order difference of the envelope and a threshold value for detecting a transition to a predetermined signal interval, the second order difference having been calculated by the envelope second-order difference computing unit 302. The first frame counter comparator 404 decides whether the frame counter is within a predetermined range when the second-order difference falls below the threshold value for detecting a transition to a signal interval. As a result of the decision of the first frame counter comparator 404, when the frame counter is within the predetermined range, it is decided that the envelope is in a steady state, that is, the envelope makes a transition to a signal interval, the first signal interval detection/decision unit 405 turns off Step 1 flag and turns on Step 1 flag, and the reference level setting unit 407 sets the level of the envelope at that time as the reference level used in the detection of a signal interval (to be described later). When the frame counter is outside the predetermined range, it is decided that the envelope has not made a transition to a signal interval, and the second signal interval detection/decision unit 406 turns off Step 1 flag and resets the rising edge detection counter. Further, the frame counter resetter 408 resets the frame counter. When the frame counter falls outside the predetermined range before the second-order difference falls below the threshold value for detecting a transition to a signal interval, it is decided that the envelope has not made a transition to a signal interval, and the third signal interval detection/decision unit 410 turns off Step 1 flag and resets the rising edge detection counter and the frame counter.
(Step 2) Detection of a Signal Interval
The signal condition decision unit 501 decides whether Step 2 flag is turned on or off. When Step 2 flag is turned on, the envelope comparator 502 compares the envelope with the predetermined range to decide whether the envelope is within the predetermined range relative to the reference level having been set by the reference level setting unit 407. When the envelope is within the predetermined range, the frame counter updater 503 increments the frame counter. When the envelope falls outside the predetermined range, it is decided that a signal interval has come to an end and the envelope has made a transition to a non-signal interval, and the non-signal interval detection/decision unit 504 turns off Step 2 flag and turns on Step 3 flag. The signal interval length setting unit 505 sets the frame counter value at that time as the latest signal interval length and resets the frame counter. The frame counter comparator 506 compares the frame counter with a predetermined threshold value. When the frame counter exceeds the threshold value, it is decided that the envelope has not made a transition to a non-signal interval, the all-parameter resetter 507 turns off Step 2 flag and Step 3 flag, resets the frame counter and the rising edge detection counter, and resets the latest and past signal interval lengths and non-signal interval lengths.
(Step 3) Detection of a Non-Signal Interval
The signal condition decision unit 601 decides whether Step 3 flag is turned on or off. When Step 3 flag is turned on, the frame counter updater 602 starts incrementing the frame counter. The frame counter comparator 603 compares the frame counter and a predetermined threshold value. When the frame counter exceeds the threshold value, the all-parameter resetter 604 turns off Step 2 flag and Step 3 flag, resets the frame counter and the rising edge detection counter, and resets the latest and past signal interval lengths and non-signal interval lengths.
The following will discuss the operations of the periodicity deciding section 115.
The signal condition decision unit 701 decides whether Step 1 flag and Step 3 flag are turned on. When Step 3 flag is turned on and Step 1 flag is turned on, the non-signal interval length setting unit 702 sets the frame counter value at that time as the latest non-signal interval length, resets the frame counter, and turns off Step 3 flag. The signal/non-signal interval length difference computing unit 703 calculates a difference in signal interval length and a difference in non-signal interval length between the latest time period and the previous time period. The rising edge detection counter comparator 704 compares the rising edge detection counter with a predetermined threshold value of the rising edge detection counter. The signal interval length difference comparator 705 compares a predetermined threshold value of a signal interval length difference with the signal interval length difference having been calculated by the signal/non-signal interval length difference computing unit 703. The non-signal interval length difference comparator 706 compares a predetermined threshold value of a non-signal interval length difference with the non-signal interval length difference having been calculated by the signal/non-signal interval length difference computing unit 703. When the rising edge detection counter exceeds the threshold value of the rising edge detection counter, the signal interval length difference is smaller than or equal to the threshold value of the signal interval length difference, and the non-signal interval length difference is smaller than or equal to the threshold value of the non-signal interval length difference, then the first periodicity decision unit 707 decides that the time progression of the level has periodicity; otherwise, the second periodicity decision unit 708 decides that the time progression of the level does not have periodicity, and outputs the decision result to the howling deciding section 107. The signal/non-signal interval length updater 709 sets the latest signal interval length and non-signal interval length as past signal interval length and non-signal interval length, so that the past signal interval length and non-signal interval length are updated.
When the howling detecting section 105 decides that howling occurs and the periodic signal detecting section 106 does not decide that the time progression of the level has periodicity, the howling deciding section 107 decides that howling occurs. After the howling detecting section 105 decides that howling occurs, when the periodic signal detecting section 106 decides that the time progression of the level has periodicity, the howling deciding section 107 decides that the detection of howling is erroneous and howling is absent. The howling decision result of the howling deciding section 107 is output to the signal output terminal 108.
As described above, the howling detector of the present embodiment decides whether a frequency level exceeds the other frequency levels, decides whether the time progression of the level at each frequency has periodicity, and discriminates between howling and a signal having a strong narrow-band component, so that erroneous detection of howling is reduced and howling can be detected with higher accuracy than the related art.
In the present embodiment, the processing of the level calculating section 104, the howling detecting section 105, the periodic signal detecting section 106, and the howling deciding section 107 is limited to some frequency bands (for example, frequency bands or the like where howling is expected to occur), so that an arithmetic quantity can be reduced.
In the present embodiment, howling is detected at respective frequencies separately and in parallel. Frequency signals having been converted by the frequency analyzing section 103 may be added in a fixed number of points to determine frequency bands and processing may be performed for the respective frequency bands separately and in parallel. Further, the time signal having been input to the frequency analyzing section 103 may be divided into time signals of two or more frequency bands by using plural FIR (Finite Impulse Response) band-pass filters or IIR (Infinite Impulse Response) band-pass filters or sub-band signal processing capable of reducing an arithmetic quantity, and the time signals of the frequency bands may be processed separately and in parallel.
The present embodiment described that the envelope calculating section 113 calculates the envelope of the time progression of the level by calculating the maximum value of the levels of the currently processed frame and the Na frames before the current frame. Instead of the maximum value, the minimum value of the levels of the currently processed frame and the Na frames before the current frame may be calculated to obtain the envelope of the time progression of the level.
In the above explanation, the signal condition deciding section 114 decides which one of the three-stage signal conditions of the rising edge of a signal, a signal interval, and a non-signal interval corresponds to the time progression of the level. At least one or more signal conditions may be decided from the rising edge of a signal, a signal interval, and a non-signal interval.
Further, in the present embodiment, the periodicity deciding section 115 compares signal interval lengths and non-signal interval lengths between the latest time period and a past time period of the time progression of the level. Only one of signal interval lengths and non-signal interval lengths may be compared to decide periodicity.
The following will describe the configuration of an acoustic device according to Embodiment 2 of the present invention. In
The following will describe the operations of the acoustic device according to the present embodiment. A time signal input to the microphone 801 is amplified by the microphone amplifier 802, and then the signal is input to the howling detector 803 and the howling suppressor 804. A signal output from the howling suppressor 804 is amplified by the power amplifier 805, and then the signal is output by the speaker 806.
When a sound having a gain of 1.0 or higher is input from the speaker 806 to the microphone 801 and causes howling, the howling detector 803 automatically detects howling and the howling suppressor 804 suppresses howling by reducing the gain of a frequency or a frequency band where howling has been detected. The gain is reduced by using, for example, a notch filter, a bandcut filter, or a parametric equalizer, or multiplying the gain by a multiplier of 1.0 or less. After the howling detector 803 decides that howling occurs and the howling suppressor 804 starts suppressing the howling, when the howling detector 803 decides that the time progression of the level has periodicity, the howling suppressor 804 restores the erroneously reduced gain of the corresponding frequency or frequency band.
As described above, the acoustic device of the present embodiment can detect and suppress howling with higher accuracy than the related art. Thus harsh sound can be reduced and the gain of the power amplifier 805 having been limited by howling can be increased.
The following will describe the configuration of software using a howling detection method according to Embodiment 3. In
The howling detection step 903 includes an average level calculation step 906 of calculating the mean value of the levels of all the frequency bands, a level ratio calculation step 907 of calculating a level ratio which is a magnification difference between the level calculated in the level calculation step 902 and an average level calculated in the average level calculation step 906, a level ratio analysis step 908 of analyzing the level ratio having been calculated in the level ratio calculation step 907, and a level ratio decision step 909 of deciding whether howling occurs or not based on the analysis result of the level ratio analysis step 908.
The periodic signal detection step 904 includes an envelope calculation step 910 of calculating the envelope of the level having been calculated in the level calculation step 902, a signal condition decision step 911 of deciding which one of predetermined signal conditions corresponds to the envelope having been calculated in the envelope calculation step 910, and a periodicity decision step 912 of deciding whether the time progression of the envelope has periodicity or not based on the decision result of the signal condition decision step 911.
The operations of the software using the howling detection method according to the present embodiment are similar to those of the howling detector of Embodiment 1, and thus the explanation thereof is omitted.
As described above, the software using the howling detection method according to the present embodiment decides whether a frequency level exceeds the other frequency levels, decides whether the time progression of the level has periodicity at each frequency of an input signal, and discriminates between howling and a signal having a strong narrow-band component, so that erroneous detection of howling is reduced and howling can be detected with higher accuracy than the related art.
Having described the present invention based on the preferred embodiments shown in the accompanying drawings, it will be obvious to those skilled in the art that various changes and modifications may be readily made without departing from the concept of the present invention. The present invention includes such modifications.
With the howling detector and the howling detection method according to the present invention, it is possible to reduce erroneous detection of howling by discriminating between howling and a signal having a strong narrow-band component, and detect howling with higher accuracy than the related art. Thus the howling detector and the method are applicable to various acoustic devices including microphones and speakers.
Number | Date | Country | Kind |
---|---|---|---|
2004-044026 | Feb 2004 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2005/002303 | 2/16/2005 | WO | 00 | 5/31/2007 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2005/081577 | 9/1/2005 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5677987 | Seki et al. | Oct 1997 | A |
Number | Date | Country |
---|---|---|
1278396 | Jan 2003 | EP |
05188977 | Jul 1993 | JP |
07-058674 | Mar 1995 | JP |
07-147700 | Jun 1995 | JP |
08-149593 | Jun 1996 | JP |
08-223684 | Aug 1996 | JP |
2003-259480 | Sep 2003 | JP |
2004-032387 | Jan 2004 | JP |
2004-200883 | Jul 2004 | JP |
Number | Date | Country | |
---|---|---|---|
20070280487 A1 | Dec 2007 | US |