This application is based upon and claims the benefit of the priority of the prior Japanese Patent Application No. 2008-196639, filed on Jul. 30, 2008, the entire contents of which are incorporated herein by reference.
The present invention relates to a method of designating clipping of a waveform in a communication network.
When clipping occurs on a path in a telephone line and a VoIP network, harmonic distortion occurs and the audio quality of communications is degraded. For example, as illustrated in
Published technology of the clipping detecting method is described in the following patent document 1. In the prior art, for example as illustrated in
With the above-mentioned configuration, a clipping period detection unit 1705 compares the maximum value and the minimum value of the amplitude level of a signal with the maximum value and the minimum value of the line of audio distortion as illustrated in
The related technology is described in, for example, the following patent document 1.
[Patent Document 1] Japanese Laid-open Patent Publication No. 2001-83998
However, the published technology described in the patent document 1 may not detect the clipping unless the amount of amplification by the digital amplifier 1702, the analog amplifier 1704 etc. at the subsequent stage is known, and therefore it may not applicable in monitoring the sound quality on the path of a telephone line.
According to an aspect of the invention, an amplitude distribution calculation unit calculates the amplitude distribution of an input signal in each period. A deflection degree of the distribution calculation unit calculates a distribution bias level on the basis of the amplitude distribution. The deflection degree of the distribution calculation unit calculates a difference between, for example, a value on the basis of the amplitude distribution calculated by the amplitude distribution calculation unit and a predetermined value of amplitude distribution as a deflection degree of the distribution. Otherwise, the deflection degree of the distribution calculation unit estimates the normal amplitude distribution in the case where no clipping occurs on the basis of the amplitude distribution calculated by the amplitude distribution calculation unit, and calculates a difference between a value based on the amplitude distribution calculated by the amplitude distribution calculation unit and a value of normal amplitude distribution as a deflection degree of the distribution. To be more practical, the deflection degree of the distribution calculation unit estimates the normal amplitude distribution in a high amplitude area in the case where no clipping occurs from a low amplitude area of the amplitude distribution calculated by the amplitude distribution calculation unit, and calculates a difference between a value based on the amplitude distribution calculated by the amplitude distribution calculation unit in the high amplitude area and a value of the normal amplitude distribution as a deflection degree of the distribution. Otherwise, the deflection degree of the distribution calculation unit detects a peak in the amplitude distribution calculated by the amplitude distribution calculation unit, and calculates the deflection degree of the distribution on the basis of the number of peaks. Otherwise, the deflection degree of the distribution calculation unit calculates a deflection degree of the distribution on the basis of the amplitude distribution having a predetermined number or more of amplitude absolute values.
A clipping detection unit detects clipping on the basis of the deflection degree of the distribution. In the above-mentioned configuration of the present invention, the device for detecting the clipping can further include an amplitude distribution normalization unit for normalizing the amplitude distribution, and the deflection degree of the distribution calculation unit can calculate the deflection degree of the distribution on the basis of the normalized amplitude distribution. The amplitude distribution normalization unit normalizes, for example, an amplitude value in the amplitude distribution by a highest frequency value. The amplitude distribution normalization unit normalizes, for example, an amplitude value in the amplitude distribution by a maximum amplitude value.
In the above-mentioned configuration of the present invention, the device for detecting the clipping can further include an voice activity detection unit for detecting whether or not an input signal includes audio data for each of the above-mentioned predetermined periods so that a clipping detecting operation can be performed only when the voice activity detection unit detects a voice period. The voice activity detection unit detects a voice period on the basis of, for example, the amplitude distribution calculated by the amplitude distribution calculation unit.
In the above-mentioned configuration of the present invention, the device for detecting the clipping can further include a high pass filter unit for inputting an input signal to the amplitude distribution calculation unit after removing an low frequency audio component contained in the input signal.
The object and advantages of the present invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
First, an amplitude distribution calculation unit 101 calculates an amplitude distribution (histogram) of input sound. Next, a deflection degree of the distribution calculation unit 102 calculates a deflection degree of the distribution from the amplitude distribution of the input sound calculated by the amplitude distribution calculation unit 101.
Then, a clipping detection unit 103 detects clipping when the deflection degree of the distribution calculated by the deflection degree of the distribution calculation unit 102 exceeds a predetermined threshold. When the amplitude distribution of the input sound is measured, and if no clipping has occurred, then the distribution characteristic substantially indicates the characteristic of the Gaussian distribution as illustrated in
In the configuration illustrated in
With the configuration, clipping can be detected without the information about the amplitude level etc. of the amplifiers in the vicinity at any point of the path of telephone lines etc. On the basis of the detection result, the sound quality of telephone lines can be monitored and the gain control etc. of the communication equipment in the vicinity can be performed.
The embodiment in which the clipping detection device realized according to the configuration as illustrated in
Next, an amplitude distribution calculation unit 402 (corresponding to 101 in
f′(x)=f(x)/f(x′) equation 1
Next, a deflection degree of the distribution calculation unit 404 (corresponding to 102 in
d(x)=f′(x)−f0(x) equation 2
Then, a clipping detection unit 406 (corresponding to 103 in
The clipping detection unit 406 externally notifies of the presence of clipping when a bias level d(x) larger than the threshold THR(x) exists (step S506 in
Next, the embodiment in which the clipping detection device realized according to the configuration as illustrated in
On the other hand, the direct current offset component as a disturbance in detecting the amplitude distribution is removed from the received data by a high pass filter (HPF) 701 removing the frequency components lower than a predetermined frequency (for example, about 100 Hz) from the received data (step S802 in
Next, an amplitude distribution calculation unit 702 (corresponding to 101 in
Then, an amplitude distribution normalization unit 704 calculates the normalization frequency distribution f(x′) by performing normalization such that the absolute value of the maximum amplitude value can be 1 by the following equation 3 on the amplitude distribution f(x) calculated by the amplitude distribution calculation unit 702 (step 804 in
f(x′)=f(x/max(x)) equation 3
Next, a normal frequency distribution estimation unit 705 estimates a normal frequency distribution g(x′) by performing linear approximation in the plus and minus directions from amplitude 0 on the normalization frequency distribution f(x′) calculated by the amplitude distribution normalization unit 704 as illustrated in
Afterwards, a deflection degree of the distribution calculation unit 706 (corresponding to deflection degree of the distribution calculation unit 102 in
d(x′)=f(x′)−g(x′) equation 4
A clipping detection unit 707 (corresponding to 103 in
The clipping detection unit 707 externally notifies of the presence of clipping when a bias level d(x′) larger than the threshold THR(x′) exists (step S809 in
After the above-mentioned processes, control is returned to the clipping detecting process in the next predetermined period (step S809 or S810→S801 in
Described below is the third embodiment. In the third embodiment, the clipping detection device realized according to the configuration as illustrated in
Next, a normal frequency distribution estimation unit 1002 estimates the frequency distribution f′(x) in a high amplitude area in the plus direction at the amplitude of 25000 or more using the frequency distribution in a low amplitude area in the plus direction at the amplitude of 100 through 25000 when it is assumed that no clipping occurs as illustrated in
Similarly, a normal frequency distribution estimation unit 1002 estimates the frequency distribution f′(x) in a high amplitude area in the minus direction at the amplitude of −25000 or less using the frequency distribution in a low amplitude area in the minus direction at the amplitude of −100 through −25000 when it is assumed that no clipping occurs as illustrated in
Then, a deflection degree of the distribution calculation unit 1004 (corresponding to 102 in
In addition, the deflection degree of the distribution calculation unit 1004 calculates the difference between the amplitude distribution f(x) calculated by the amplitude distribution calculation unit 1001 and the normalization frequency distribution f′(x) estimated by the normal frequency distribution estimation unit 1002 by the following equation 6 in the low amplitude area of the amplitude value of 100 or more and 25000 or less or −100 or less and −25000 or more, thereby calculating the bias level d′(x) of each amplitude x in the low amplitude area. Then, a voice activity detection unit 1003 compares the bias level d′(x) of each amplitude x in the low amplitude area with a predetermined threshold of each amplitude x, thereby outputting “no sound” when one or a predetermined number the bias level d′(x) exceed a threshold, and outputs “sound detected” when the threshold is not exceeded (step S1104 in
When the voice activity detection unit 1003 outputs “sound detected”, a clipping detection unit 1005 (corresponding to 103 in
The clipping detection unit 1005 externally notifies of the presence of clipping when there is the bias level d(x) higher than the threshold THR(x) (step S1107 in
After the above-mentioned processes, control is returned to the clipping detecting process in the next period (step S1107 or S1108→S1101). In the third embodiment, as with the second embodiment, it is not necessary to prepare a template of the amplitude distribution when the deflection degree of the distribution is calculated, and a normal frequency distribution in the high amplitude area can be estimated with high precision from the amplitude distribution in the low amplitude area.
Finally described below is the fourth embodiment. In the fourth embodiment, the clipping detection device realized according to the configuration as illustrated in
Next, an amplitude distribution calculation unit 1302 (corresponding to 101 in
Next, a deflection degree of the distribution calculation unit 1303 (corresponding to 102 in
f(x)>f(x−1) and f(x)<f(x+1)
Then, a clipping detection unit 1304 (corresponding to 103 in
On the other hand, the clipping detection unit 1304 externally notifies of no clipping when the number of peaks calculated by the deflection degree of the distribution calculation unit 1303 is a predetermined threshold or less (step S1403→S1405 in
After the processes above, control is returned to the clipping detecting process in the next predetermined period (step S1404 or S1405→S1401 in
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiment(s) of the present inventions have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2008-196689 | Jul 2008 | JP | national |