JPH10210509A - Tone signal detector - Google Patents

Tone signal detector

Info

Publication number
JPH10210509A
JPH10210509A JP902697A JP902697A JPH10210509A JP H10210509 A JPH10210509 A JP H10210509A JP 902697 A JP902697 A JP 902697A JP 902697 A JP902697 A JP 902697A JP H10210509 A JPH10210509 A JP H10210509A
Authority
JP
Japan
Prior art keywords
signal
unit
phase
phase amount
tone signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
JP902697A
Other languages
Japanese (ja)
Inventor
Yukimasa Sugino
幸正 杉野
Hisashi Naito
悠史 内藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP902697A priority Critical patent/JPH10210509A/en
Publication of JPH10210509A publication Critical patent/JPH10210509A/en
Abandoned legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To detect the presence of phase inversion by finding a phase change through an arithmetic operation and comparing the phase change with a prescribed value because a phase of a PCM signal is changed when there is a prescribed relationship between a sample number of the PCM signal and a period of a tone signal being a detection object and phase inversion takes place in the PCM signal. SOLUTION: A discrete Fourier transform DFT arithmetic section 11, once receiving a sample stream of PCM signals performs DFT arithmetic operation to the signal to find the PCM signals is a frequency region and provides outputs of the result, a real part R and an imaginary part Q to a phase calculation section 12. The phase calculation section 12 calculates a phase PH of the PCM signal by using an arithmetic equation relating to the polarity of the real part R and the imaginary part Q. A phase inversion discrimination section 13 calculates a change in the phase PH based on a difference between the current phase PH and the phase PH calculated for a preceding processing frame. When a sampling number and a period of a tone signal have a prescribed relationship and no phase inversion takes place in the PCM signal, since the phase PH is constant, the phase difference is compared with a threshold. When the difference is higher than the threshold, it is discriminated that there is phase inversion.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、電話回線等を用
いて伝送されるパルス符号変調信号(以下、PCM信号
という)からトーン信号を検出するトーン信号検出装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tone signal detecting device for detecting a tone signal from a pulse code modulated signal (hereinafter, referred to as a PCM signal) transmitted using a telephone line or the like.

【0002】[0002]

【従来の技術】図36は例えば特開昭63−23646
0号公報に示された従来のトーン信号検出装置を示す構
成図であり、図において、1は時間領域のPCM信号を
離散的フーリエ変換(以下、DFTという)して、周波
数領域の電力成分のうち周波数がf1の電力W1を抽出
するDFT演算器、2は時間領域のPCM信号を入力信
号としてDFT演算して、周波数領域の電力成分のうち
周波数がf2の電力W2を抽出するDFT演算器、3は
時間領域のPCM信号の全体を積分して、PCM信号全
体の電力Wbを演算する積分器、4は電力W1に対する
電力W2の電力比W2/W1及び電力W2に対する電力
Wbの電力比Wb/W2をそれぞれ所定の閾値a,bと
比較し、その比較結果に基づいてトーン信号の有無を判
定する比較器である。
2. Description of the Related Art FIG.
FIG. 1 is a configuration diagram showing a conventional tone signal detection device disclosed in Japanese Patent Application Publication No. 0-105, in which reference numeral 1 denotes a discrete Fourier transform (hereinafter, referred to as DFT) of a PCM signal in a time domain to obtain a power component of a frequency domain. A DFT calculator for extracting a power W1 having a frequency f1; a DFT calculator 2 for performing a DFT calculation using a PCM signal in a time domain as an input signal; and extracting a power W2 having a frequency f2 among power components in a frequency domain; Reference numeral 3 denotes an integrator for integrating the entire PCM signal in the time domain to calculate the power Wb of the entire PCM signal. Reference numeral 4 denotes a power ratio W2 / W1 of the power W2 to the power W1 and a power ratio Wb / W2 of the power Wb to the power W2. W2 is a comparator that compares W2 with predetermined thresholds a and b and determines the presence or absence of a tone signal based on the comparison result.

【0003】次に動作について説明する。電話回線を用
いて伝送されるPCM信号の中には、ファクシミリ装置
が送受信するモデム信号の他に音声信号等が含まれてい
ることがある。従って、ファクシミリ装置等がモデム信
号の送受信を行う場合には、モデム信号の先頭に現われ
るトレーニング信号を検出したのち、後段の復調等の処
理を実行する必要がある。因みに、図37はPCM信号
のパワースペクトラムであるが、一般に、音声信号の電
力成分は図の実線のように表されるのに対し、V.29
モデムのトレーニング信号の電力成分は図の点線のよう
に表される。図からわかるように、このトレーニング信
号は、0.5kHz,1.7kHz,2.9kHzの各
周波数の電力成分を持つ3つのトーン信号を重ね合せた
ものと実質的に等価である。
Next, the operation will be described. A PCM signal transmitted using a telephone line may include a voice signal and the like in addition to a modem signal transmitted and received by a facsimile apparatus. Therefore, when a facsimile apparatus or the like performs transmission and reception of a modem signal, it is necessary to detect a training signal appearing at the head of the modem signal and then execute a process such as demodulation at a subsequent stage. Incidentally, FIG. 37 shows the power spectrum of the PCM signal. In general, the power component of the audio signal is represented as shown by a solid line in FIG. 29
The power component of the training signal of the modem is represented as a dotted line in the figure. As can be seen from the figure, this training signal is substantially equivalent to a signal obtained by superimposing three tone signals having power components of respective frequencies of 0.5 kHz, 1.7 kHz and 2.9 kHz.

【0004】そして、図37から明らかなように、周波
数が1kHz付近では、音声信号の電力成分が比較的大
きいのに対し、トーン信号の電力成分が存在しないとい
う特徴を有している。一方、周波数が2.9kHz付近
では、トーン信号の電力成分が比較的大きいのに対し、
音声信号の電力成分が極めて小さいという特徴を有して
いる。
As is apparent from FIG. 37, when the frequency is around 1 kHz, the power component of the audio signal is relatively large, but the power component of the tone signal does not exist. On the other hand, when the frequency is around 2.9 kHz, the power component of the tone signal is relatively large.
It has the characteristic that the power component of the audio signal is extremely small.

【0005】そこで、従来のトーン信号検出装置は、か
かる特徴を利用し、以下に示すようにしてトーン信号を
検出している。まず、DFT演算器1は、時間領域のP
CM信号を入力すると、そのPCM信号を入力信号とし
てDFT演算を実行し、周波数領域の電力成分のうち周
波数が1kHzの電力W1を抽出する。
Therefore, a conventional tone signal detecting device detects a tone signal as described below by utilizing such a feature. First, the DFT operator 1 calculates P in the time domain.
When a CM signal is input, a DFT operation is performed using the PCM signal as an input signal, and power W1 having a frequency of 1 kHz is extracted from power components in the frequency domain.

【0006】一方、DFT演算器2は、時間領域のPC
M信号を入力すると、DFT演算器1と同様に、そのP
CM信号を入力信号としてDFT演算を実行し、周波数
領域の電力成分のうち周波数が2.9kHzの電力W2
を抽出する。
[0006] On the other hand, the DFT operation unit 2 has a PC in the time domain.
When the M signal is input, the P signal
A DFT operation is performed using the CM signal as an input signal, and the power W2 having a frequency of 2.9 kHz among the power components in the frequency domain.
Is extracted.

【0007】また、積分器3は、時間領域のPCM信号
の全体を積分して、PCM信号全体の電力Wbを演算す
る。このようにして、電力W1,W2及びWbが求めら
れると、比較器4は、電力W1に対する電力W2の電力
比W2/W1を求めるとともに、電力W2に対する電力
Wbの電力比Wb/W2を求める。そして、比較器4
は、電力比W2/W1が閾値aより大きく、かつ、電力
比Wb/W2が閾値bより小さい場合には、PCM信号
は上述した特徴を具備しているものと判断できるので、
トーン信号が到来したものと判断し、その旨を示す信号
を出力する。
[0007] The integrator 3 integrates the entire PCM signal in the time domain to calculate the power Wb of the entire PCM signal. When the powers W1, W2, and Wb are obtained in this way, the comparator 4 obtains the power ratio W2 / W1 of the power W2 to the power W1, and also obtains the power ratio Wb / W2 of the power Wb to the power W2. And the comparator 4
If the power ratio W2 / W1 is larger than the threshold a and the power ratio Wb / W2 is smaller than the threshold b, it can be determined that the PCM signal has the above-described characteristics.
It determines that the tone signal has arrived, and outputs a signal indicating that fact.

【0008】[0008]

【発明が解決しようとする課題】従来のトーン信号検出
装置は以上のように構成されているので、PCM信号か
らトーン信号を抽出することができるが、トーン信号の
位相反転を検出する手段を具備しておらず、位相反転の
あるトーン信号がPCM信号に含まれていても、位相反
転の有無を判定することができないなどの課題があっ
た。
Since the conventional tone signal detecting device is constructed as described above, the tone signal can be extracted from the PCM signal. However, the tone signal detecting device has means for detecting the phase inversion of the tone signal. However, even if a tone signal with phase inversion is included in the PCM signal, there is a problem that it is not possible to determine the presence or absence of phase inversion.

【0009】この発明は上記のような課題を解決するた
めになされたもので、トーン信号の位相反転の有無を判
定することができるトーン信号検出装置を得ることを目
的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide a tone signal detecting device capable of determining the presence or absence of a phase inversion of a tone signal.

【0010】[0010]

【課題を解決するための手段】請求項1記載の発明に係
るトーン信号検出装置は、位相量演算手段により演算さ
れた位相量の変化を所定値と比較して、入力信号の位相
反転の有無を判定するようにしたものである。
According to a first aspect of the present invention, there is provided a tone signal detecting apparatus for comparing the change in the phase amount calculated by the phase amount calculating means with a predetermined value to determine whether or not the input signal is inverted. Is determined.

【0011】請求項2記載の発明に係るトーン信号検出
装置は、トーン信号有無判定手段及び位相反転有無判定
手段の判定結果に基づいて入力信号の信号形態を特定す
るようにしたものである。
According to a second aspect of the present invention, there is provided a tone signal detecting apparatus for specifying a signal form of an input signal based on a result of determination by a tone signal presence / absence determination means and a phase inversion presence / absence determination means.

【0012】請求項3記載の発明に係るトーン信号検出
装置は、極性判定部の判定結果及び絶対値比較部の比較
結果に応じた演算式を選定するとともに、絶対値演算部
により演算された実数部及び虚数部の絶対値を当該演算
式に代入して入力信号の位相量を演算するようにしたも
のである。
According to a third aspect of the invention, there is provided a tone signal detecting apparatus for selecting an arithmetic expression in accordance with a result of the determination by the polarity determining unit and a result of the comparison by the absolute value comparing unit, and real numbers calculated by the absolute value calculating unit. The absolute value of the part and the imaginary part is substituted into the arithmetic expression to calculate the phase amount of the input signal.

【0013】請求項4記載の発明に係るトーン信号検出
装置は、極性判定部の判定結果及び絶対値比較部の比較
結果に応じた演算式を選定するとともに、絶対値演算部
により演算された実数部又は虚数部の絶対値及び2乗和
演算部により演算された2乗和の平方根を当該演算式に
代入して入力信号の位相量を演算するようにしたもので
ある。
According to a fourth aspect of the present invention, there is provided a tone signal detecting apparatus which selects an arithmetic expression according to a result of the determination by the polarity determining unit and a result of the comparison by the absolute value comparing unit, and a real number calculated by the absolute value calculating unit. The absolute value of the part or the imaginary part and the square root of the sum of squares calculated by the square-sum calculation unit are substituted into the arithmetic expression to calculate the phase amount of the input signal.

【0014】請求項5記載の発明に係るトーン信号検出
装置は、絶対値比較部の比較結果に基づいて実数部を虚
数部で除算し又は虚数部を実数部で除算するとともに、
その除算結果を所定値と比較し、その比較結果に基づい
て選定した演算式に基づき逆三角関数を直線近似するよ
うにしたものである。
According to a fifth aspect of the present invention, there is provided a tone signal detecting apparatus for dividing a real part by an imaginary part or dividing an imaginary part by a real part based on a comparison result of an absolute value comparing part.
The division result is compared with a predetermined value, and the inverse trigonometric function is linearly approximated based on an arithmetic expression selected based on the comparison result.

【0015】請求項6記載の発明に係るトーン信号検出
装置は、絶対値比較部の比較結果に基づいて実数部又は
虚数部を2乗和の平方根で除算するとともに、その除算
結果を所定値と比較し、その比較結果に基づいて選定し
た演算式に基づき逆三角関数を直線近似するようにした
ものである。
According to a sixth aspect of the present invention, there is provided a tone signal detecting apparatus which divides a real part or an imaginary part by a square root of a sum of squares based on a comparison result of an absolute value comparing unit, and sets the division result to a predetermined value. The comparison is performed, and the inverse trigonometric function is linearly approximated based on an arithmetic expression selected based on the comparison result.

【0016】請求項7記載の発明に係るトーン信号検出
装置は、位相量演算手段により演算された現在の位相量
と遅延部により複数フレーム分遅延された過去の位相量
との差分値を所定値と比較して、入力信号の位相反転の
有無を判定するようにしたものである。
According to a seventh aspect of the present invention, there is provided a tone signal detecting device, wherein a difference value between a current phase amount calculated by the phase amount calculating means and a past phase amount delayed by a plurality of frames by the delay unit is set to a predetermined value. And the presence or absence of phase inversion of the input signal is determined.

【0017】請求項8記載の発明に係るトーン信号検出
装置は、位相量演算手段により演算された現在の位相量
と遅延部により遅延された過去の位相量との差分値を平
滑化し、その平滑化した差分値を過去の位相量に加算す
るようにしたものである。
In the tone signal detecting device according to the present invention, the difference value between the current phase amount calculated by the phase amount calculating means and the past phase amount delayed by the delay unit is smoothed. The calculated difference value is added to the past phase amount.

【0018】請求項9記載の発明に係るトーン信号検出
装置は、第1の遅延回路により遅延された位相量と第2
の遅延回路により遅延された位相量との差分値を平滑化
するとともに、その平滑化した差分値に所定の係数を乗
算し、その乗算結果を遅延部により遅延された位相量に
加算するようにしたものである。
According to a ninth aspect of the present invention, there is provided a tone signal detecting device, wherein the phase amount delayed by the first delay circuit and the second
And smoothes the difference value with the phase amount delayed by the delay circuit, multiplies the smoothed difference value by a predetermined coefficient, and adds the multiplication result to the phase amount delayed by the delay unit. It was done.

【0019】請求項10記載の発明に係るトーン信号検
出装置は、互いに異なる手段により過去の位相量を補償
する複数の位相量補償部と、複数の位相量補償部の出力
にそれぞれ基づいて入力信号の位相反転の有無を判定す
る複数の差分値比較部と、複数の差分値比較部の判定結
果に基づいて最終的に入力信号の位相反転の有無を判定
するようにしたものである。
According to a tenth aspect of the present invention, there is provided a tone signal detecting apparatus comprising: a plurality of phase amount compensating units for compensating past phase amounts by means different from each other; and an input signal based on outputs of the plurality of phase amount compensating units. And a plurality of difference value comparing sections for determining the presence or absence of the phase inversion of the input signal, and finally determining the presence or absence of the phase inversion of the input signal based on the determination results of the plurality of difference value comparing sections.

【0020】請求項11記載の発明に係るトーン信号検
出装置は、トーン信号有無判定手段の判定結果がトーン
信号無しから有りに変化して第1の設定時間を経過する
と、位相量演算手段により演算された位相量を記憶する
第1の記憶部と、トーン信号有無判定手段の判定結果が
トーン信号無しから有りに変化して第2の設定時間を経
過すると、位相量演算手段により演算された位相量を記
憶する第2の記憶部とを設け、第1の記憶部により記憶
された位相量と第2の記憶部により記憶された位相量と
の差分値を演算し、その差分値を所定値と比較して入力
信号の位相反転の有無を判定するようにしたものであ
る。
In the tone signal detecting device according to the present invention, when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence and the first set time elapses, the phase amount calculation means calculates the tone signal. A first storage unit for storing the calculated phase amount, and a phase value calculated by the phase amount calculation means when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence and a second set time elapses. A second storage unit for storing the amount, calculating a difference value between the phase amount stored by the first storage unit and the phase amount stored by the second storage unit, and calculating the difference value by a predetermined value. In this case, the presence or absence of the phase inversion of the input signal is determined.

【0021】請求項12記載の発明に係るトーン信号検
出装置は、差分値比較部による現在の判定結果と結果保
持部に保持されている過去の判定結果に基づいて最終的
に入力信号の位相反転の有無を判定するようにしたもの
である。
According to a twelfth aspect of the invention, there is provided a tone signal detecting device which finally inverts the phase of an input signal based on the present judgment result by the difference value comparing section and the past judgment result held in the result holding section. Is determined.

【0022】請求項13記載の発明に係るトーン信号検
出装置は、入力信号の信号形態を位相反転トーン信号,
非位相反転トーン信号又は非トーン信号の何れかに特定
するようにしたものである。
According to a thirteenth aspect of the present invention, there is provided a tone signal detecting device, wherein a signal form of an input signal is changed to a phase inverted tone signal,
The non-phase inverted tone signal or the non-tone signal is specified.

【0023】請求項14記載の発明に係るトーン信号検
出装置は、トーン信号有無判定手段の判定結果がトーン
信号無しから有りに変化すると、その変化後の一定期間
内に入力される位相反転有りを示す位相反転有無判定手
段の判定結果を無効とするようにしたものである。
According to a fourteenth aspect of the present invention, when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence, the presence of phase inversion inputted within a certain period after the change is determined. The determination result of the phase inversion presence / absence determination means shown in FIG.

【0024】請求項15記載の発明に係るトーン信号検
出装置は、位相反転有無判定手段の判定結果を有効なも
のとして信号形態を特定した場合、その判定結果を入力
した後の一定期間内に入力される位相反転有りを示す位
相反転有無判定手段の判定結果を無効とするようにした
ものである。
According to a fifteenth aspect of the present invention, in the case where the signal form is specified as the validity of the determination result of the phase inversion presence / absence determining means, the input is performed within a certain period after the determination result is input. The determination result of the phase inversion presence / absence determination means indicating the presence of the phase inversion is invalidated.

【0025】請求項16記載の発明に係るトーン信号検
出装置は、少なくとも2回以上、位相反転有りを示す位
相反転有無判定手段の判定結果を入力した場合に限り、
位相反転有りとして信号形態を特定するようにしたもの
である。
In the tone signal detecting device according to the present invention, only when the determination result of the phase inversion presence / absence determination means indicating the presence of the phase inversion is input at least twice or more,
The signal form is specified as having phase inversion.

【0026】請求項17記載の発明に係るトーン信号検
出装置は、送信側の電力演算手段により演算された電力
と受信側の電力演算手段により演算された電力を比較
し、電力が大きい側のフーリエ変換手段の出力を選択す
るようにしたものである。
In the tone signal detecting apparatus according to the present invention, the power calculated by the power calculating means on the transmitting side and the power calculated by the power calculating means on the receiving side are compared, and the Fourier on the higher power side is compared. The output of the conversion means is selected.

【0027】請求項18記載の発明に係るトーン信号検
出装置は、全帯域パワー演算手段により演算された送信
側の全帯域電力と受信側の全帯域電力を比較し、全帯域
電力が大きい側のフーリエ変換手段の出力を選択するよ
うにしたものである。
The tone signal detecting device according to the eighteenth aspect compares the total band power on the transmitting side and the total band power on the receiving side calculated by the full band power calculating means, and compares the total band power on the receiving side with the larger total band power. The output of the Fourier transform means is selected.

【0028】請求項19記載の発明に係るトーン信号検
出装置は、雑音比演算手段により演算された送信側の信
号対雑音比と受信側の信号対雑音比を比較し、信号対雑
音比が高い側のフーリエ変換手段の出力を選択するよう
にしたものである。
In the tone signal detecting apparatus according to the nineteenth aspect, the signal-to-noise ratio on the transmitting side and the signal-to-noise ratio on the receiving side calculated by the noise ratio calculating means are compared, and the signal-to-noise ratio is high. The output of the Fourier transform means on the side is selected.

【0029】請求項20記載の発明に係るトーン信号検
出装置は、各チャネル毎にフーリエ変換手段,電力演算
手段,トーン信号有無判定手段及び信号形態特定手段を
備える一方、信号形態を特定するチャネルを選択する選
択手段を備えるようにしたものである。
The tone signal detecting device according to the twentieth aspect of the present invention includes a Fourier transform unit, a power calculating unit, a tone signal presence / absence determining unit, and a signal type specifying unit for each channel, while selecting a channel for specifying a signal type. This is provided with a selecting means for selecting.

【0030】請求項21記載の発明に係るトーン信号検
出装置は、各チャネル毎に電力演算手段,トーン信号有
無判定手段及び信号形態特定手段を備える一方、信号形
態を特定するチャネルを選択する選択手段を備えるよう
にしたものである。
A tone signal detecting apparatus according to a twenty-first aspect of the present invention comprises a power calculating means, a tone signal presence / absence determining means, and a signal form specifying means for each channel, while selecting means for selecting a channel for specifying a signal form. It is provided with.

【0031】[0031]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1によるト
ーン信号検出装置を示す構成図であり、図において、1
1は時間領域のPCM信号を離散的フーリエ変換(以
下、DFTという)して、周波数領域のPCM信号を求
めるDFT演算部(フーリエ変換手段)、12はDFT
演算部11により求められたPCM信号の実数部R及び
虚数部Qの値に基づきPCM信号の位相量PHを演算す
る位相量算出部(位相量演算手段)、13は位相量算出
部12により演算された位相量PHの変化を閾値aと比
較して、PCM信号の位相反転の有無を判定する位相反
転有無判定部(位相反転有無判定手段)である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a block diagram showing a tone signal detecting device according to Embodiment 1 of the present invention.
Reference numeral 1 denotes a DFT operation unit (Fourier transform means) for performing a discrete Fourier transform (hereinafter referred to as DFT) on a time domain PCM signal to obtain a frequency domain PCM signal.
A phase amount calculator (phase amount calculator) that calculates the phase amount PH of the PCM signal based on the values of the real part R and the imaginary part Q of the PCM signal obtained by the calculator 11, and 13 is calculated by the phase amount calculator 12. A phase inversion presence / absence determination unit (phase inversion presence / absence determination means) that determines the presence / absence of phase inversion of the PCM signal by comparing the obtained change in the phase amount PH with the threshold a.

【0032】次に動作について説明する。まず、DFT
演算部11は、時間領域のPCM信号、即ち、PCM信
号のサンプル列x[0],x[1],・・・,x[2N
−1]を入力すると、そのPCM信号のサンプル列を入
力信号としてDFT演算を実行し、周波数領域のPCM
信号X[k]を求める。
Next, the operation will be described. First, DFT
The arithmetic unit 11 generates a PCM signal in the time domain, that is, a sample sequence x [0], x [1],..., X [2N of the PCM signal.
-1], a DFT operation is performed using the sample sequence of the PCM signal as an input signal, and PCM in the frequency domain is performed.
Find the signal X [k].

【0033】[0033]

【数1】 (Equation 1)

【0034】ただし、式(1)のN及びkの値は整数で
あるが、N及びkの値はサンプル数を2Nとするとき、
サンプル数2Nが検出対象であるトーン信号の周期のk
倍となるように選定するものとする。即ち、検出対象の
トーン信号の周波数をf、標本化周波数をfsとすると
き、下記の式(2)を満足するN及びkの値を選定す
る。 2N=(fs/f)×k ・・・(2)
Where the values of N and k in the equation (1) are integers, and the values of N and k are as follows when the number of samples is 2N.
The number of samples 2N is k of the period of the tone signal to be detected.
It shall be selected to be doubled. That is, when the frequency of the tone signal to be detected is f and the sampling frequency is fs, values of N and k satisfying the following equation (2) are selected. 2N = (fs / f) × k (2)

【0035】DFT演算部11は、上記のようにしてD
FT演算を行うと、その演算結果を位相量算出部12に
出力するが、その演算結果は通常複素数となるので、そ
の演算結果の実数部Rと虚数部Qに分けて出力する。な
お、DFT演算部11は、2N個のサンプルを入力する
ごとに、DFT演算を行ってその演算結果を出力するの
で、2N個のサンプルを1つの処理単位とし、以後、こ
の処理単位を処理フレームと称する。
The DFT operation unit 11 calculates D
When the FT operation is performed, the operation result is output to the phase amount calculation unit 12. Since the operation result is usually a complex number, the operation result is divided into a real part R and an imaginary part Q and output. The DFT operation unit 11 performs a DFT operation and outputs the operation result every time 2N samples are input. Therefore, the 2N samples are regarded as one processing unit. Called.

【0036】そして、DFT演算部11から演算結果が
出力されると、位相量算出部12は、その演算結果の実
数部R及び虚数部Qの極性を判定する。そして、実数部
R及び虚数部Qの極性を判定すると、下記に示すよう
に、その判定結果に応じた演算式を選定する。 ・R>0の場合 位相量PH=tan-1(Q/R) ・R<0 かつ Q≧0の場合 位相量PH=π+tan-1(Q/R) ・R<0 かつ Q<0の場合 位相量PH=−π+tan-1(Q/R) ・R=0 かつ Q>0の場合 位相量PH=π/2 ・R=0 かつ Q<0の場合 位相量PH=−π/2
When the calculation result is output from the DFT calculation unit 11, the phase amount calculation unit 12 determines the polarity of the real part R and the imaginary part Q of the calculation result. When the polarities of the real part R and the imaginary part Q are determined, an arithmetic expression according to the determination result is selected as described below. When R> 0 Phase amount PH = tan -1 (Q / R) When R <0 and Q ≧ 0 Phase amount PH = π + tan -1 (Q / R) When R <0 and Q <0 Phase amount PH = −π + tan −1 (Q / R) When R = 0 and Q> 0 Phase amount PH = π / 2 When R = 0 and Q <0 Phase amount PH = −π / 2

【0037】そして、位相量算出部12は、判定結果に
応じて演算式を選定すると、その演算式に実数部R及び
虚数部Qを代入してPCM信号の位相量PHを演算し、
その演算結果である位相量PHを位相反転有無判定部1
3に出力する。
Then, when an operation formula is selected according to the determination result, the phase amount calculation unit 12 calculates the phase amount PH of the PCM signal by substituting the real part R and the imaginary part Q into the operation expression,
The phase amount PH, which is the result of the calculation, is used to determine whether phase inversion exists
Output to 3.

【0038】そして、位相反転有無判定部13は、位相
量算出部12から位相量PHが出力されると、位相量P
Hの変化量を演算する。即ち、位相量算出部12から出
力された現在の位相量PHと、前回の処理フレームにお
いて位相量算出部12から出力された過去の位相量PH
との差分値を変化量として演算する。
When the phase amount PH is output from the phase amount calculation unit 12, the phase inversion presence / absence determination unit 13
The change amount of H is calculated. That is, the current phase amount PH output from the phase amount calculation unit 12 and the past phase amount PH output from the phase amount calculation unit 12 in the previous processing frame.
Is calculated as the amount of change.

【0039】そして、位相反転有無判定部13は、その
変化量と閾値aを比較し、その変化量の方が大きい場合
は、PCM信号に位相反転が有りと判定し、その閾値a
の方が大きい場合には、PCM信号に位相反転が無いと
判定する。式(2)を満足するようにN及びkの値を選
定した場合、通常、PCM信号に位相反転が無ければ、
位相量PHは一定値となるのに対し、PCM信号に位相
反転が有ると、位相量PHは位相反転の前後でπだけ変
化する性質があるからである。そして、位相反転有無判
定部13は、位相反転の有無を判定すると、その判定結
果RJを出力し、一連の処理を終了する。
The phase inversion presence / absence determining unit 13 compares the amount of change with the threshold value a, and if the amount of change is larger, determines that the PCM signal has phase inversion, and determines the threshold value a.
Is larger, it is determined that there is no phase inversion in the PCM signal. When the values of N and k are selected so as to satisfy Equation (2), usually, if there is no phase inversion in the PCM signal,
This is because the phase amount PH has a constant value, whereas if the PCM signal has a phase inversion, the phase amount PH has a property of changing by π before and after the phase inversion. When the phase inversion presence / absence determination unit 13 determines the presence / absence of the phase inversion, the determination result RJ is output, and a series of processing ends.

【0040】以上で明らかなように、この実施の形態1
によれば、位相量算出部12により演算された位相量P
Hの変化を閾値aと比較して、PCM信号の位相反転の
有無を判定するようにしたので、PCM信号にトーン信
号が含まれている場合、そのトーン信号の位相反転の有
無を判定することができる効果を奏する。
As is clear from the above, the first embodiment
According to the above, the phase amount P calculated by the phase amount calculation unit 12
Since the change in H is compared with the threshold value a to determine whether or not the PCM signal has phase inversion, if the PCM signal includes a tone signal, it is determined whether or not the tone signal has phase inversion. It has the effect of being able to.

【0041】実施の形態2.図2はこの発明の実施の形
態2によるトーン信号検出装置を示す構成図であり、図
において、図1のものと同一符号は同一または相当部分
を示すので説明を省略する。14はDFT演算部11に
より求められたPCM信号の実数部R及び虚数部Qから
PCM信号の電力PWを演算するパワー算出部(電力演
算手段)、15はパワー算出部14により演算されたP
CM信号の電力PWを閾値bと比較して、トーン信号の
有無を判定するトーン有無判定部(トーン信号有無判定
手段)、16はトーン有無判定部15の判定結果TJ及
び位相反転有無判定部13の判定結果RJに基づいてP
CM信号の信号形態を特定する判定結果出力部(信号形
態特定手段)である。
Embodiment 2 FIG. 2 is a block diagram showing a tone signal detecting apparatus according to Embodiment 2 of the present invention. In the figure, the same reference numerals as those in FIG. 1 denote the same or corresponding parts, and a description thereof will be omitted. Reference numeral 14 denotes a power calculation unit (power calculation unit) that calculates the power PW of the PCM signal from the real part R and the imaginary part Q of the PCM signal obtained by the DFT calculation unit 11, and 15 denotes the P calculated by the power calculation unit 14.
A tone presence / absence determination unit (tone signal presence / absence determination means) for determining the presence / absence of a tone signal by comparing the power PW of the CM signal with a threshold value b, and a determination result TJ of the tone presence / absence determination unit 15 and a phase inversion presence / absence determination unit 13 P based on the determination result RJ of
It is a determination result output unit (signal form specifying unit) for specifying the signal form of the CM signal.

【0042】次に動作について説明する。DFT演算部
11,位相量算出部12及び位相反転有無判定部13の
動作は上記実施の形態1と同様であるため説明を省略す
る。パワー算出部14は、DFT演算部11から周波数
領域のPCM信号の実数部R及び虚数部Qが出力される
と、その実数部R及び虚数部Qを下記の式(3)に代入
してPCM信号の電力PWを演算する。 電力PW=(実数部R)2 +(虚数部Q)2 ・・・(3)
Next, the operation will be described. The operations of the DFT operation unit 11, the phase amount calculation unit 12, and the phase inversion presence / absence determination unit 13 are the same as those in the first embodiment, and thus the description is omitted. When the real part R and the imaginary part Q of the PCM signal in the frequency domain are output from the DFT operation part 11, the power calculating part 14 substitutes the real part R and the imaginary part Q into the following equation (3), Calculate the signal power PW. Power PW = (real part R) 2 + (imaginary part Q) 2 ... (3)

【0043】そして、トーン有無判定部15は、パワー
算出部14からPCM信号の電力PWが出力されると、
そのPCM信号の電力PWと閾値bと比較し、PCM信
号の電力PWの方が大きい場合には、トーン信号が有り
と判定し、閾値bの方が大きい場合には、トーン信号が
無しと判定する。
When the power calculating section 14 outputs the power PW of the PCM signal, the tone presence / absence determining section 15
The power PW of the PCM signal is compared with the threshold value b. If the power PW of the PCM signal is higher, it is determined that a tone signal is present. If the threshold value b is higher, it is determined that there is no tone signal. I do.

【0044】このようにして、トーン有無判定部15か
らトーン信号の有無を示す判定結果TJが出力され、位
相反転有無判定部13から位相反転の有無を示す判定結
果RJが出力されると、判定結果出力部16は、判定結
果TJ及び判定結果RJに基づいてPCM信号の信号形
態を特定する。
In this manner, when the judgment result TJ indicating the presence / absence of a tone signal is output from the tone presence / absence determination section 15 and the determination result RJ indicating the presence / absence of phase inversion is output from the phase inversion existence determination section 13, The result output unit 16 specifies the signal form of the PCM signal based on the determination result TJ and the determination result RJ.

【0045】具体的には、図3に示すように、判定結果
TJが“1”であり(トーン信号が有りとする判定)、
かつ、判定結果RJが“1”である(位相反転が有りと
する判定)場合には、PCM信号の信号形態を“位相反
転トーン有り”のように特定する。また、判定結果TJ
が“0”であり(トーン信号が無しとする判定)、か
つ、判定結果RJが“1”である(位相反転が有りとす
る判定)場合には、PCM信号の信号形態を“位相反転
トーン無し”のように特定する。
Specifically, as shown in FIG. 3, the determination result TJ is "1" (determination that there is a tone signal),
When the determination result RJ is “1” (determination that the phase inversion exists), the signal form of the PCM signal is specified as “the phase inversion tone is present”. Also, the judgment result TJ
Is "0" (determination that there is no tone signal) and the determination result RJ is "1" (determination that phase inversion is present), the signal form of the PCM signal is changed to "phase inverted tone". None ".

【0046】また、判定結果TJが“1”であり(トー
ン信号が有りとする判定)、かつ、判定結果RJが
“0”である(位相反転が無しとする判定)場合には、
前回の処理フレームにおいて特定した信号形態を保持す
る(例えば、前回の処理フレームにおいて特定した信号
形態が“位相反転トーン有り”であれば、今回も信号形
態を“位相反転トーン有り”のように特定する)。さら
に、判定結果TJが“0”であり(トーン信号が無しと
する判定)、かつ、判定結果RJが“0”である(位相
反転が無しとする判定)場合には、PCM信号の信号形
態を“位相反転トーン無し”のように特定する。
If the judgment result TJ is "1" (judgment that there is a tone signal) and the judgment result RJ is "0" (judgment that there is no phase inversion),
Holds the signal form specified in the previous processing frame (for example, if the signal form specified in the previous processing frame is “with phase inversion tone”, this time also specifies the signal form as “with phase inversion tone” Do). Further, when the determination result TJ is “0” (determination that there is no tone signal) and the determination result RJ is “0” (determination that there is no phase inversion), the signal form of the PCM signal As “no phase inversion tone”.

【0047】以上で明らかなように、この実施の形態2
によれば、トーン有無判定部15の判定結果TJ及び位
相反転有無判定部13の判定結果RJに基づいてPCM
信号の信号形態を特定するようにしたので、PCM信号
に含まれているトーン信号を検出することができるとと
もに、そのトーン信号の位相反転の有無を判定すること
ができる効果を奏する。
As is clear from the above, the second embodiment
According to the above, the PCM based on the determination result TJ of the tone presence / absence determination unit 15 and the determination result RJ of the phase inversion presence / absence determination unit 13
Since the signal form of the signal is specified, it is possible to detect the tone signal included in the PCM signal and to determine whether or not the tone signal has phase inversion.

【0048】実施の形態3.図4はこの発明の実施の形
態3によるトーン信号検出装置の位相量算出部12を示
す構成図であり、図において、21はPCM信号の実数
部Rの絶対値|R|を演算する絶対値演算部、22はP
CM信号の虚数部Qの絶対値|Q|を演算する絶対値演
算部、23は絶対値演算部21により演算された実数部
Rの絶対値|R|と絶対値演算部22により演算された
虚数部Qの絶対値|Q|とを比較する比較器(絶対値比
較部)、24はPCM信号の実数部Rの極性を判定する
極性判定部、25はPCM信号の虚数部Qの極性を判定
する極性判定部である。
Embodiment 3 FIG. 4 is a configuration diagram showing a phase amount calculation unit 12 of a tone signal detection device according to Embodiment 3 of the present invention. In the figure, reference numeral 21 denotes an absolute value for calculating an absolute value | R | of a real part R of a PCM signal. Arithmetic unit, 22 is P
An absolute value calculator 23 calculates the absolute value | Q | of the imaginary part Q of the CM signal. The absolute value | R | of the real part R calculated by the absolute value calculator 21 and the absolute value | R | A comparator (absolute value comparing unit) that compares the absolute value | Q | of the imaginary part Q, 24 is a polarity determining unit that determines the polarity of the real part R of the PCM signal, and 25 is the polarity of the imaginary part Q of the PCM signal. It is a polarity determination unit for determination.

【0049】また、26は極性判定部24の判定結果R
PO,極性判定部25の判定結果QPO及び比較器23
の比較結果CPに応じた演算式を選定するとともに、絶
対値演算部21により演算された実数部Rの絶対値|R
|及び絶対値演算部22により演算された虚数部Qの絶
対値|Q|を当該演算式に代入してPCM信号の位相量
PHを演算する位相量演算部である。
Reference numeral 26 denotes a determination result R of the polarity determination unit 24.
PO, the determination result QPO of the polarity determination unit 25 and the comparator 23
An arithmetic expression is selected according to the comparison result CP, and the absolute value | R of the real part R calculated by the absolute value calculation unit 21
And the absolute value | Q | of the imaginary part Q calculated by the absolute value calculation unit 22 is substituted into the arithmetic expression to calculate the phase amount PH of the PCM signal.

【0050】また、27は比較器23の比較結果CPを
参照し、絶対値|R|又は絶対値|Q|のうち大きくな
い方の絶対値を選択して出力するセレクタ、28は比較
器23の比較結果CPを参照し、絶対値|R|又は絶対
値|Q|のうち小さくない方の絶対値を選択して出力す
るセレクタ、29はセレクタ27から出力された絶対値
をセレクタ28から出力された絶対値で除算する除算
器、30は除算器29の除算結果DVを逆正接関数に代
入し、逆三角関数演算を行う逆三角関数演算部、31は
極性判定部24の判定結果RPO,極性判定部25の判
定結果QPO及び比較器23の比較結果CPに応じた演
算式を選定するとともに、逆三角関数演算部30の演算
結果TFを当該演算式に代入してPCM信号の位相量P
Hを演算する演算結果出力部である。
A selector 27 refers to the comparison result CP of the comparator 23 and selects and outputs the smaller one of the absolute value | R | or the absolute value | Q |. A selector which selects and outputs the absolute value of the absolute value | R | or the absolute value | Q | which is not smaller, and 29 outputs the absolute value output from the selector 27 from the selector. A divider 30 that divides by the obtained absolute value, 30 is an inverse trigonometric function operation unit that substitutes the division result DV of the divider 29 into an arc tangent function, and performs an inverse trigonometric function operation, 31 is a determination result RPO of the polarity determination unit 24, An arithmetic expression according to the determination result QPO of the polarity determination unit 25 and the comparison result CP of the comparator 23 are selected, and the operation result TF of the inverse trigonometric function operation unit 30 is substituted into the operation expression to substitute the phase amount P of the PCM signal.
This is a calculation result output unit for calculating H.

【0051】次に動作について説明する。位相量算出部
12以外は上記実施の形態1等と同様であるので、主に
位相量算出部12の動作について説明する。まず、絶対
値演算部21は、DFT演算部11からPCM信号の実
数部Rが出力されると、その実数部Rの絶対値|R|を
求めて出力する。また、絶対値演算部22は、DFT演
算部11からPCM信号の虚数部Qが出力されると、そ
の虚数部Qの絶対値|Q|を求めて出力する。
Next, the operation will be described. Since the configuration other than the phase amount calculation unit 12 is the same as that of the first embodiment and the like, the operation of the phase amount calculation unit 12 will be mainly described. First, when the real part R of the PCM signal is output from the DFT operation part 11, the absolute value calculating part 21 calculates and outputs the absolute value | R | of the real part R. Further, when the imaginary part Q of the PCM signal is output from the DFT calculating part 11, the absolute value calculating part 22 calculates and outputs the absolute value | Q | of the imaginary part Q.

【0052】一方、極性判定部24は、DFT演算部1
1からPCM信号の実数部Rが出力されると、その実数
部Rの極性を判定し、その判定結果RPOを出力する。
ただし、実数部Rが0以上であれば“0”を出力し、実
数部Rが0より小さければ“1”を出力する。また、極
性判定部25は、DFT演算部11からPCM信号の虚
数部Qが出力されると、その虚数部Qの極性を判定し、
その判定結果QPOを出力する。ただし、虚数部Qが0
以上であれば“0”を出力し、虚数部Qが0より小さけ
れば“1”を出力する。
On the other hand, the polarity judging section 24 includes the DFT calculating section 1
When the real part R of the PCM signal is output from 1, the polarity of the real part R is determined, and the determination result RPO is output.
However, if the real part R is greater than or equal to 0, “0” is output, and if the real part R is smaller than 0, “1” is output. Further, when the imaginary part Q of the PCM signal is output from the DFT operation unit 11, the polarity determination unit 25 determines the polarity of the imaginary part Q,
The result QPO is output. Where the imaginary part Q is 0
If this is the case, “0” is output, and if the imaginary part Q is smaller than 0, “1” is output.

【0053】そして、比較器23は、絶対値演算部21
から実数部Rの絶対値|R|が出力され、絶対値演算部
22から虚数部Qの絶対値|Q|が出力されると、絶対
値|R|と絶対値|Q|を比較し、その比較結果CPを
出力する。ただし、絶対値|R|が絶対値|Q|より大
きければ“0”を出力し、絶対値|R|が絶対値|Q|
より小さければ“1”を出力する。絶対値|R|と絶対
値|Q|が等しい場合は、“0”を出力しても、“1”
を出力しても構わない。
The comparator 23 includes an absolute value calculating section 21
When the absolute value | R | of the real part R is output from the control unit and the absolute value | Q | of the imaginary part Q is output from the absolute value calculation unit 22, the absolute value | R | is compared with the absolute value | Q | The comparison result CP is output. However, if the absolute value | R | is greater than the absolute value | Q |, “0” is output, and the absolute value | R |
If smaller, "1" is output. When the absolute value | R | is equal to the absolute value | Q |, even if “0” is output, “1” is output.
May be output.

【0054】そして、セレクタ27は、比較器23から
比較結果CPが出力されると、その比較結果CPを参照
し、絶対値|R|又は絶対値|Q|のうち大きくない方
の絶対値を選択して出力する。また、セレクタ28は、
比較器23から比較結果CPが出力されると、その比較
結果CPを参照し、絶対値|R|又は絶対値|Q|のう
ち小さくない方の絶対値を選択して出力する。
When the comparison result CP is output from the comparator 23, the selector 27 refers to the comparison result CP and determines the absolute value | R | or the absolute value | Q | Select and output. Also, the selector 28
When the comparison result CP is output from the comparator 23, the comparator 23 refers to the comparison result CP and selects and outputs the absolute value | R | or the absolute value | Q | whichever is smaller.

【0055】そして、除算器29は、セレクタ27及び
セレクタ28の双方から絶対値が出力されると、下記に
示すように、セレクタ27から出力された絶対値をセレ
クタ28から出力された絶対値で除算する。なお、セレ
クタ28が出力する絶対値は、セレクタ27が出力する
絶対値と比較して、等しいか又は大きいので、除算結果
DVは0以上、1以下の値となる。 ・絶対値|R|≧絶対値|Q|の場合 DV=|Q|/|R| ・絶対値|R|<絶対値|Q|の場合 DV=|R|/|Q|
When the absolute value is output from both the selector 27 and the selector 28, the divider 29 converts the absolute value output from the selector 27 by the absolute value output from the selector 28, as described below. Divide. Since the absolute value output from the selector 28 is equal to or greater than the absolute value output from the selector 27, the division result DV becomes a value of 0 or more and 1 or less. When absolute value | R | ≧ absolute value | Q | DV = | Q | / | R | • When absolute value | R | <absolute value | Q | DV = | R | / | Q |

【0056】そして、逆三角関数演算部30は、除算器
29から除算結果DVが出力されると、その除算結果D
Vを下記の逆正接関数に代入し、逆三角関数演算を行
う。 TF=tan-1(DV) ・・・(4) この逆三角関数演算を簡易に行う方法として、たとえば
除算結果DVの代表的な値に対するTFの値をあらかじ
め計算してメモリ等の記憶媒体上に書き込んだテーブル
を作成しておき、除算結果DVが出力されるごとにこの
テーブルの値を読み出すことによりTFの値を求めると
いう方法がある。
When the division result 29 is output from the divider 29, the inverse trigonometric function operation section 30 outputs the division result D
V is substituted into the following inverse tangent function to perform an inverse trigonometric function operation. TF = tan -1 (DV) (4) As a method of easily performing this inverse trigonometric function operation, for example, a TF value for a representative value of the division result DV is calculated in advance and stored on a storage medium such as a memory. Is prepared, and the value of TF is obtained by reading the value of this table every time the division result DV is output.

【0057】そして、演算結果出力部31は、上記のよ
うにして、極性判定部24及び極性判定部25からそれ
ぞれ判定結果RPO,QPOが出力され、比較器23か
ら比較結果CPが出力されると、図5に示すように、こ
れらの判定結果等に応じた演算式を選定する。このよう
にして演算式を選定すると、逆三角関数演算部30の演
算結果TFを当該演算式に代入してPCM信号の位相量
PHを演算し、位相量算出部12の処理を終了する。
The operation result output unit 31 outputs the determination results RPO and QPO from the polarity determination unit 24 and the polarity determination unit 25, respectively, and outputs the comparison result CP from the comparator 23 as described above. As shown in FIG. 5, an arithmetic expression according to these determination results is selected. When the calculation formula is selected in this way, the calculation result TF of the inverse trigonometric function calculation unit 30 is substituted for the calculation formula, the phase amount PH of the PCM signal is calculated, and the processing of the phase calculation unit 12 is completed.

【0058】ここで、演算結果出力部31の動作を図6
〜図8を用いてもう少し具体的に説明する。まず、実数
部R及び虚数部Qの極性が何れも正であって、絶対値|
R|が絶対値|Q|より小さい場合に、PCM信号をX
−Y平面上(Xは実数部、Yは虚数部を示す)にプロッ
トすると、図6の点Aの位置にプロットされ、位相量P
Hは点Aと原点と正側X軸のなす角で表すことができ
る。また、逆三角関数演算部30の演算結果TFは点B
と原点と正側X軸のなす角で表すことができる。従っ
て、位相量PHと演算結果TFの間には、PH=π/2
−TFの関係を有することが幾何学的に明らかとなる
が、この場合には、判定結果RPOは“0”、判定結果
QPOは“0”、比較結果CPは“1”となるので、図
5より、PH=π/2−TFの演算式が選定され、上述
した幾何学的関係を満足した演算式を選定することにな
る。よって、演算結果出力部31は、演算結果TFを当
該演算式に代入して位相量PHを演算することになる。
Here, the operation of the operation result output unit 31 is shown in FIG.
This will be described more specifically with reference to FIG. First, the polarities of the real part R and the imaginary part Q are both positive and the absolute value |
If R | is smaller than the absolute value | Q |
When plotted on the −Y plane (X indicates a real part and Y indicates an imaginary part), the plot is made at the position of point A in FIG.
H can be represented by the angle between the point A, the origin, and the positive X axis. The calculation result TF of the inverse trigonometric function calculation unit 30 is the point B
And the angle between the origin and the positive X-axis. Therefore, between the phase amount PH and the calculation result TF, PH = π / 2
It is geometrically clear that the relationship has a relationship of −TF. In this case, the determination result RPO is “0”, the determination result QPO is “0”, and the comparison result CP is “1”. From 5, the arithmetic expression of PH = π / 2-TF is selected, and an arithmetic expression that satisfies the above-described geometric relationship is selected. Therefore, the calculation result output unit 31 calculates the phase amount PH by substituting the calculation result TF into the calculation formula.

【0059】次に、実数部R及び虚数部Qの極性が何れ
も正であって、絶対値|R|が絶対値|Q|より大きい
場合には、位相量PHと演算結果TFは一致するので、
この場合には、単純にPH=TFの演算式が選定されて
位相量PHが求められる。
Next, when the polarities of the real part R and the imaginary part Q are both positive and the absolute value | R | is larger than the absolute value | Q |, the phase amount PH and the calculation result TF match. So
In this case, an arithmetic expression of PH = TF is simply selected to obtain the phase amount PH.

【0060】次に、実数部Rの極性が負、虚数部Qの極
性が正であって、絶対値|R|が絶対値|Q|より大き
い場合に、PCM信号をX−Y平面上(Xは実数部、Y
は虚数部を示す)にプロットすると、図7の点Aの位置
にプロットされ、位相量PHは点Aと原点と正側X軸の
なす角で表すことができる。また、逆三角関数演算部3
0の演算結果TFは点Bと原点と正側X軸のなす角で表
すことができる。従って、位相量PHと演算結果TFの
間には、PH=π−TFの関係を有することが幾何学的
に明らかとなるが、この場合には、判定結果RPOは
“1”、判定結果QPOは“0”、比較結果CPは
“0”となるので、図5より、PH=π−TFの演算式
が選定され、上述した幾何学的関係を満足した演算式を
選定することになる。よって、演算結果出力部31は、
演算結果TFを当該演算式に代入して位相量PHを演算
することになる。
Next, when the polarity of the real part R is negative and the polarity of the imaginary part Q is positive and the absolute value | R | is larger than the absolute value | Q |, the PCM signal is expressed on the XY plane ( X is the real part, Y
Is plotted at the position of point A in FIG. 7, and the phase amount PH can be represented by the angle between point A, the origin, and the positive X axis. The inverse trigonometric function operation unit 3
The calculation result TF of 0 can be represented by the angle between the point B, the origin, and the positive X axis. Accordingly, it is geometrically clear that the phase amount PH and the calculation result TF have a relationship of PH = π-TF. In this case, the determination result RPO is “1” and the determination result QPO Is "0" and the comparison result CP is "0", so that the arithmetic expression of PH = π-TF is selected from FIG. 5, and an arithmetic expression satisfying the above-described geometric relationship is selected. Therefore, the calculation result output unit 31
The calculation result TF is substituted into the calculation formula to calculate the phase amount PH.

【0061】次に、実数部Rの極性が正、虚数部Qの極
性が負であって、絶対値|R|が絶対値|Q|より大き
い場合に、PCM信号をX−Y平面上(Xは実数部、Y
は虚数部を示す)にプロットすると、図8の点Aの位置
にプロットされ、位相量PHは点Aと原点と正側X軸の
なす角で表すことができる。また、逆三角関数演算部3
0の演算結果TFは点Bと原点と正側X軸のなす角で表
すことができる。従って、位相量PHと演算結果TFの
間には、PH=−TFの関係を有することが幾何学的に
明らかとなるが、この場合には、判定結果RPOは
“0”、判定結果QPOは“1”、比較結果CPは
“0”となるので、図5より、PH=−TFの演算式が
選定され、上述した幾何学的関係を満足した演算式を選
定することになる。よって、演算結果出力部31は、演
算結果TFを当該演算式に代入して位相量PHを演算す
ることになる。
Next, when the polarity of the real part R is positive and the polarity of the imaginary part Q is negative and the absolute value | R | is larger than the absolute value | Q |, the PCM signal is expressed on the XY plane ( X is the real part, Y
Is plotted at the position of the point A in FIG. 8, and the phase amount PH can be represented by the angle between the point A, the origin, and the positive X-axis. The inverse trigonometric function operation unit 3
The calculation result TF of 0 can be represented by the angle between the point B, the origin, and the positive X axis. Therefore, it is geometrically clear that there is a relationship of PH = −TF between the phase amount PH and the calculation result TF. In this case, the determination result RPO is “0” and the determination result QPO is Since “1” and the comparison result CP are “0”, the arithmetic expression of PH = −TF is selected from FIG. 5, and an arithmetic expression satisfying the above-described geometric relationship is selected. Therefore, the calculation result output unit 31 calculates the phase amount PH by substituting the calculation result TF into the calculation formula.

【0062】なお、他の判定結果等の組み合わせについ
ては特に言及しないが、上述した幾何学関係を考慮し
て、すべての判定結果等を組み合わせると図5に示す結
果が得られる。
It should be noted that although other combinations of the determination results and the like are not particularly described, the results shown in FIG. 5 can be obtained by combining all the determination results and the like in consideration of the above-described geometric relationship.

【0063】以上で明らかなように、この実施の形態3
によれば、除算器29から出力されるDVに対し、逆三
角関数演算を行う方法として、あらかじめ記憶媒体に作
成したテーブルの値を読み出すという方法を用いる場合
に、除算結果DVの値が0以上、1以下の範囲に制限さ
れるため、上記記憶媒体に作成する上記テーブルの容量
を小さくできる効果を奏する。
As is apparent from the above, the third embodiment
According to the method described above, when a method of reading a value of a table created in a storage medium in advance is used as a method of performing an inverse trigonometric function operation on a DV output from the divider 29, the value of the division result DV is 0 or more. , The size of the table created in the storage medium can be reduced.

【0064】実施の形態4.図9はこの発明の実施の形
態4によるトーン信号検出装置の位相量算出部12を示
す構成図であり、図において図4と同一符号は同一また
は相当部分を示すので説明を省略する。32はPCM信
号の実数部R及び虚数部Qの2乗和の平方根SQを演算
する2乗和演算部、33は極性判定部24,25の判定
結果RPO,QPO及び比較器23の比較結果CPに応
じた演算式を選定するとともに、絶対値演算部21によ
り演算された実数部Rの絶対値|R|又は絶対値演算部
22により演算された虚数部Qの絶対値|Q|及び2乗
和演算部32により演算された2乗和の平方根SQを当
該演算式に代入してPCM信号の位相量PHを演算する
位相量演算部である。
Embodiment 4 FIG. 9 is a configuration diagram showing the phase amount calculation unit 12 of the tone signal detection device according to the fourth embodiment of the present invention. In the figure, the same reference numerals as in FIG. Reference numeral 32 denotes a square-sum operation unit for calculating the square root SQ of the sum of squares of the real part R and the imaginary part Q of the PCM signal, and 33 denotes the determination results RPO and QPO of the polarity determination units 24 and 25 and the comparison result CP of the comparator 23. And the absolute value | R | of the real part R calculated by the absolute value calculation unit 21 or the absolute value | Q | of the imaginary part Q calculated by the absolute value calculation unit 22 and the square. This is a phase amount calculation unit that calculates the phase amount PH of the PCM signal by substituting the square root SQ of the sum of squares calculated by the sum calculation unit 32 into the calculation expression.

【0065】また、34はセレクタ27から出力された
絶対値を2乗和演算部32により演算された2乗和の平
方根SQで除算する除算器、35は除算器34の除算結
果DVを逆正弦関数に代入し、逆三角関数演算を行う逆
三角関数演算部、36は極性判定部24の判定結果RP
O,極性判定部25の判定結果QPO及び比較器23の
比較結果CPに応じた演算式を選定するとともに、逆三
角関数演算部35の演算結果TFを当該演算式に代入し
てPCM信号の位相量PHを演算する演算結果出力部で
ある。
A divider 34 divides the absolute value output from the selector 27 by the square root SQ of the sum of squares calculated by the square sum calculator 32, and 35 denotes an inverse sine of the division result DV of the divider 34. An inverse trigonometric function operation unit that substitutes for a function and performs an inverse trigonometric function operation.
O, an arithmetic expression according to the determination result QPO of the polarity determination unit 25 and the comparison result CP of the comparator 23 are selected, and the arithmetic result TF of the inverse trigonometric function arithmetic unit 35 is substituted into the arithmetic expression to determine the phase of the PCM signal. This is a calculation result output unit for calculating the quantity PH.

【0066】次に動作について説明する。上記実施の形
態3では、除算器29の除算結果DVを逆正接関数に代
入して、逆三角関数演算を行い、その演算結果TFに基
づいて位相量PHを求めるものについて示したが、逆三
角関数演算は必ずしも逆正接関数の演算である必要はな
く、例えば、逆正弦関数の演算や逆余弦関数の演算であ
ってもよい。そこで、この実施の形態4では、逆正弦関
数を用いて逆三角関数演算を実行するものについて説明
する。
Next, the operation will be described. In the third embodiment, the division result DV of the divider 29 is substituted for the arctangent function to perform an inverse trigonometric function operation, and the phase amount PH is obtained based on the operation result TF. The function operation does not necessarily need to be the operation of the arctangent function, and may be, for example, the operation of the inverse sine function or the operation of the inverse cosine function. Therefore, a fourth embodiment will be described in which an inverse trigonometric function operation is performed using an inverse sine function.

【0067】まず、絶対値演算部21は、DFT演算部
11からPCM信号の実数部Rが出力されると、その実
数部Rの絶対値|R|を求めて出力する。また、絶対値
演算部22は、DFT演算部11からPCM信号の虚数
部Qが出力されると、その虚数部Qの絶対値|Q|を求
めて出力する。さらに、2乗和演算部32は、PCM信
号の実数部R及び虚数部Qが出力されると、下記に示す
ように、実数部R及び虚数部Qの2乗和の平方根SQを
演算する。 SQ=(R2 +Q21/2 ・・・(5)
First, when the real part R of the PCM signal is output from the DFT operation part 11, the absolute value calculating part 21 calculates and outputs the absolute value | R | of the real part R. Further, when the imaginary part Q of the PCM signal is output from the DFT calculating part 11, the absolute value calculating part 22 calculates and outputs the absolute value | Q | of the imaginary part Q. Further, when the real part R and the imaginary part Q of the PCM signal are output, the square sum calculating part 32 calculates the square root SQ of the square sum of the real part R and the imaginary part Q as described below. SQ = (R 2 + Q 2 ) 1/2 (5)

【0068】一方、極性判定部24は、DFT演算部1
1からPCM信号の実数部Rが出力されると、その実数
部Rの極性を判定し、その判定結果RPOを出力する。
ただし、実数部Rが0以上であれば“0”を出力し、実
数部Rが0より小さければ“1”を出力する。また、極
性判定部25は、DFT演算部11からPCM信号の虚
数部Qが出力されると、その虚数部Qの極性を判定し、
その判定結果QPOを出力する。ただし、虚数部Qが0
以上であれば“0”を出力し、虚数部Qが0より小さけ
れば“1”を出力する。
On the other hand, the polarity judging section 24 has the DFT operation section 1
When the real part R of the PCM signal is output from 1, the polarity of the real part R is determined, and the determination result RPO is output.
However, if the real part R is greater than or equal to 0, “0” is output, and if the real part R is smaller than 0, “1” is output. Further, when the imaginary part Q of the PCM signal is output from the DFT operation unit 11, the polarity determination unit 25 determines the polarity of the imaginary part Q,
The result QPO is output. Where the imaginary part Q is 0
If this is the case, “0” is output, and if the imaginary part Q is smaller than 0, “1” is output.

【0069】そして、比較器23は、絶対値演算部21
から実数部Rの絶対値|R|が出力され、絶対値演算部
22から虚数部Qの絶対値|Q|が出力されると、絶対
値|R|と絶対値|Q|を比較し、その比較結果CPを
出力する。ただし、絶対値|R|が絶対値|Q|より大
きければ“0”を出力し、絶対値|R|が絶対値|Q|
より小さければ“1”を出力する。絶対値|R|と絶対
値|Q|が等しい場合は、“0”を出力しても“1”を
出力しても構わない。
The comparator 23 includes an absolute value calculating section 21
When the absolute value | R | of the real part R is output from the control unit and the absolute value | Q | of the imaginary part Q is output from the absolute value calculation unit 22, the absolute value | R | is compared with the absolute value | Q | The comparison result CP is output. However, if the absolute value | R | is greater than the absolute value | Q |, “0” is output, and the absolute value | R |
If smaller, "1" is output. When the absolute value | R | is equal to the absolute value | Q |, either "0" or "1" may be output.

【0070】そして、セレクタ27は、比較器23から
比較結果CPが出力されると、その比較結果CPを参照
し、絶対値|R|又は絶対値|Q|のうち大きくない方
の絶対値を選択して出力する。そして、除算器34は、
セレクタ27から絶対値が出力されると、下記に示すよ
うに、セレクタ27から出力された絶対値を2乗和演算
部32により演算された2乗和の平方根SQで除算す
る。なお、2乗和演算部32が出力する2乗和の平方根
SQは、セレクタ27が出力する絶対値と比較して、 (セレクタ27が出力する絶対値)×√2≦2乗和の平
方根SQ の関係を満たすので、除算結果DVは0以上、1/√2
以下の値となる。 ・絶対値|R|≧絶対値|Q|の場合 DV=|Q|/SQ ・絶対値|R|<絶対値|Q|の場合 DV=|R|/SQ
When the comparison result CP is output from the comparator 23, the selector 27 refers to the comparison result CP and determines the absolute value | R | or the absolute value | Q | Select and output. Then, the divider 34
When the absolute value is output from the selector 27, the absolute value output from the selector 27 is divided by the square root SQ of the sum of squares calculated by the square sum calculation unit 32, as described below. The square root SQ of the sum of squares output by the square sum operation unit 32 is compared with the absolute value output by the selector 27, and is calculated by (absolute value output by the selector 27) ×) 2 ≦ square root SQ of the sum of squares. Is satisfied, the division result DV is 0 or more, and 1 / √2
The values are as follows. If absolute value | R | ≧ absolute value | Q | DV = | Q | / SQ · If absolute value | R | <absolute value | Q | DV = | R | / SQ

【0071】そして、逆三角関数演算部35は、除算器
34から除算結果DVが出力されると、その除算結果D
Vを下記の逆正弦関数に代入し、逆三角関数演算を行
う。 TF=sin-1(DV) ・・・(6) この逆三角関数演算を簡易に行う方法として、上記実施
の形態3と同様にして、あらかじめ記憶媒体に作成した
テーブルの値を読み出すという方法がある。
When the division result DV is output from the divider 34, the inverse trigonometric function operation section 35 outputs the division result D
V is substituted into the following inverse sine function to perform an inverse trigonometric function operation. TF = sin -1 (DV) (6) As a simple method of performing the inverse trigonometric function operation, a method of reading a value of a table created in a storage medium in advance in the same manner as in the third embodiment is used. is there.

【0072】そして、演算結果出力部36は、上記のよ
うにして、極性判定部24及び極性判定部25からそれ
ぞれ判定結果RPO,QPOが出力され、比較器23か
ら比較結果CPが出力されると、図5に示すように、こ
れらの判定結果等に応じた演算式を選定する。このよう
にして演算式を選定すると、逆三角関数演算部35の演
算結果TFを当該演算式に代入してPCM信号の位相量
PHを演算し、位相量算出部12の処理を終了する。
The operation result output unit 36 outputs the determination results RPO and QPO from the polarity determination unit 24 and the polarity determination unit 25, respectively, and outputs the comparison result CP from the comparator 23, as described above. As shown in FIG. 5, an arithmetic expression according to these determination results is selected. When the calculation formula is selected in this way, the calculation result TF of the inverse trigonometric function calculation unit 35 is substituted for the calculation formula, the phase amount PH of the PCM signal is calculated, and the processing of the phase calculation unit 12 is completed.

【0073】以上で明らかなように、この実施の形態4
によれば、除算器34から出力される除算結果DVに対
し、逆三角関数演算を行う方法として、あらかじめ記憶
媒体に作成したテーブルの値を読み出すという方法を用
いる場合に、除算結果DVの値が0以上、1/√2以下
の範囲に制限されるので、上記記憶媒体に作成する上記
テーブルの容量を小さくできる効果を奏する。
As is apparent from the above, the fourth embodiment
According to the above, when a method of reading a value of a table created in a storage medium in advance is used as a method of performing an inverse trigonometric function operation on the division result DV output from the divider 34, the value of the division result DV is Since it is limited to the range of 0 or more and 1 / √2 or less, there is an effect that the capacity of the table created in the storage medium can be reduced.

【0074】実施の形態5.図10はこの発明の実施の
形態5によるトーン信号検出装置の逆三角関数演算部3
0を示す構成図であり、図において、41は除算器29
の除算結果DVと閾値cを比較する比較器、42は比較
器41の比較結果C1に基づいて係数d又は係数eを選
択するセレクタ、43は比較器41の比較結果C1に基
づいて係数f又は係数gを選択するセレクタ、44は除
算器29の除算結果DVに対してセレクタ42により選
択された係数を乗算する乗算器、45は乗算器44の乗
算結果MUに対してセレクタ43により選択された係数
を加算する加算器である。
Embodiment 5 FIG. 10 shows an inverse trigonometric function operation unit 3 of the tone signal detecting device according to the fifth embodiment of the present invention.
0 is a block diagram showing the configuration of the divider 29 in FIG.
The comparator 42 compares the division result DV with the threshold value c, 42 is a selector that selects the coefficient d or the coefficient e based on the comparison result C1 of the comparator 41, and 43 is the coefficient f or the coefficient f based on the comparison result C1 of the comparator 41. A selector for selecting a coefficient g; 44, a multiplier for multiplying the division result DV of the divider 29 by the coefficient selected by the selector 42; 45, a selector 43 for the multiplication result MU of the multiplier 44; This is an adder for adding coefficients.

【0075】次に動作について説明する。逆三角関数演
算部30以外は上記実施の形態3と同様であるので、主
に逆三角関数演算部30の動作について説明する。ま
ず、比較器41は、除算器29から除算結果DVが出力
されると、その除算結果DVと閾値cを比較し、その比
較結果C1を出力する。なお、除算結果DVが閾値cよ
り大きい場合には“1”を出力し、除算結果DVが閾値
cより小さいか又は等しい場合には“0”を出力する。
Next, the operation will be described. Since the configuration other than the inverse trigonometric function operation unit 30 is the same as that of the third embodiment, the operation of the inverse trigonometric function operation unit 30 will be mainly described. First, when the division result DV is output from the divider 29, the comparator 41 compares the division result DV with the threshold value c and outputs the comparison result C1. When the division result DV is larger than the threshold value c, “1” is output, and when the division result DV is smaller than or equal to the threshold value c, “0” is output.

【0076】そして、セレクタ42は、比較器41の比
較結果C1を参照し、除算結果DVが閾値cより大きい
場合には係数dを選択し、それ以外の場合には係数eを
選択する。また、セレクタ43は、比較器41の比較結
果C1を参照し、除算結果DVが閾値cより大きい場合
には係数fを選択し、それ以外の場合には係数gを選択
する。
Then, the selector 42 refers to the comparison result C1 of the comparator 41, and selects the coefficient d when the division result DV is larger than the threshold value c, and otherwise selects the coefficient e. Further, the selector 43 refers to the comparison result C1 of the comparator 41, and selects the coefficient f when the division result DV is larger than the threshold c, and selects the coefficient g otherwise.

【0077】このようにして、セレクタ42及びセレク
タ43から係数が選択されると、まず、乗算器44が除
算器29の除算結果DVに対してセレクタ42により選
択された係数を乗算したのち、加算器45が乗算器44
の乗算結果MUに対してセレクタ43により選択された
係数を加算し、その加算結果を逆三角関数演算部30の
演算結果TFとして出力する。
When the coefficient is selected from the selector 42 and the selector 43 in this way, first, the multiplier 44 multiplies the division result DV of the divider 29 by the coefficient selected by the selector 42 and then adds Unit 45 is a multiplier 44
And the coefficient selected by the selector 43 is added to the multiplication result MU, and the addition result is output as the calculation result TF of the inverse trigonometric function calculation unit 30.

【0078】従って、逆三角関数演算部30の演算結果
TFは、直線近似されたことと等価となるが、その理由
を明確にするため、逆三角関数演算部30の動作をもう
少し具体的に説明する。まず、説明の便宜上、例えば、
閾値c,係数d,係数e,係数f及び係数gを下記に示
すように設定する。 閾値c=0.5 係数d=0.642 係数e=0.928 係数f=0.143 係数g=0
Accordingly, the operation result TF of the inverse trigonometric function operation unit 30 is equivalent to linear approximation. To clarify the reason, the operation of the inverse trigonometric function operation unit 30 will be described more specifically. I do. First, for convenience of explanation, for example,
The threshold value c, coefficient d, coefficient e, coefficient f, and coefficient g are set as shown below. Threshold c = 0.5 Coefficient d = 0.542 Coefficient e = 0.929 Coefficient f = 0.143 Coefficient g = 0

【0079】逆三角関数演算部30の本来の演算式は上
述したように、式(4)の通りであるが、上記のように
閾値c等の値を設定すると、除算結果DVが0.5以下
の場合、係数eと係数gが選択されるため、式(4)は
下記の直線近似式に置換されることになる。 TF=tan-1(DV) ・・・(4) TF=0.928×DV ・・・(7) 一方、除算結果DVが0.5より大きい場合、係数dと
係数fが選択されるため、式(4)は下記の直線近似式
に置換されることになる。 TF=0.642×DV+0.143 ・・・(8)
The original operation expression of the inverse trigonometric function operation unit 30 is as shown in Expression (4) as described above. However, when the value of the threshold value c or the like is set as described above, the division result DV becomes 0.5. In the following case, since the coefficient e and the coefficient g are selected, the equation (4) is replaced by the following linear approximation equation. TF = tan -1 (DV) (4) TF = 0.928 x DV (7) On the other hand, when the division result DV is larger than 0.5, the coefficient d and the coefficient f are selected. , (4) is replaced by the following linear approximation. TF = 0.642 × DV + 0.143 (8)

【0080】因みに、図11は直線近似を説明する説明
図であるが、図において、実線Aは式(4)を示し、点
線Bは式(7)を示し、点線Cは式(8)を示してい
る。
FIG. 11 is an explanatory diagram for explaining the linear approximation. In the drawing, the solid line A shows the equation (4), the dotted line B shows the equation (7), and the dotted line C shows the equation (8). Is shown.

【0081】以上で明らかなように、除算器29の除算
結果DVを閾値cと比較し、その比較結果C1に基づい
て選定した演算式に基づき逆三角関数を直線近似するよ
うにしたので、逆三角関数演算を簡易に計算できる効果
を奏する。
As is clear from the above, the division result DV of the divider 29 is compared with the threshold value c, and the inverse trigonometric function is linearly approximated based on the operation formula selected based on the comparison result C1. This has the effect of easily calculating trigonometric function operations.

【0082】なお、上記実施の形態5では、閾値cとの
比較により、除算結果DVの範囲を2つに分割し、逆三
角関数を2つの直線で近似するものについて示したが、
分割数はこれに限るものではなく、例えば、分割数を3
つ以上にするようにしてもよい。また、分割を行わなく
てもよい。
In the fifth embodiment, the range of the division result DV is divided into two by comparison with the threshold value c, and the inverse trigonometric function is approximated by two straight lines.
The number of divisions is not limited to this.
You may make it more than one. Further, the division need not be performed.

【0083】また、上記実施の形態5では、逆正接関数
を直線近似するものについて示したが、必ずしも、逆正
接関数に限るものではなく、例えば、逆正弦関数や逆余
弦関数の場合も、同様の方法で直線近似することができ
る。因みに、実施の形態4における逆三角関数演算部3
5の逆正弦関数を直線近似する場合には、除算器34の
除算結果DVを閾値cと比較し、その比較結果C1に基
づいて逆正弦関数を直線近似するようにすればよい。
In the fifth embodiment, the linear tangent function of the inverse tangent function is shown. However, the present invention is not necessarily limited to the arc tangent function. Can be approximated by a straight line. Incidentally, the inverse trigonometric function operation unit 3 in the fourth embodiment
When the inverse sine function of No. 5 is linearly approximated, the division result DV of the divider 34 may be compared with a threshold value c, and the inverse sine function may be linearly approximated based on the comparison result C1.

【0084】実施の形態6.図12はこの発明の実施の
形態6によるトーン信号検出装置の位相反転有無判定部
13を示す構成図であり、図において、51は位相量算
出部12により演算された位相量PHを1フレーム分遅
延するディレイメモリ(遅延部)、52はディレイメモ
リ51により遅延された位相量PHを1フレーム分遅延
するディレイメモリ(遅延部)、53は位相量算出部1
2により演算された現在の位相量PHとディレイメモリ
51,52により遅延された過去の位相量PHとの差分
値△PHを求める差分器(差分値比較部)、54は差分
器53により求められた差分値△PHを閾値aと比較し
て、PCM信号の位相反転の有無を判定する比較器(差
分値比較部)である。
Embodiment 6 FIG. FIG. 12 is a block diagram showing the phase inversion presence / absence determining unit 13 of the tone signal detecting apparatus according to Embodiment 6 of the present invention. In the figure, reference numeral 51 denotes a phase amount PH calculated by the phase amount A delay memory (delay section) 52 for delaying, a delay memory (delay section) for delaying the phase amount PH delayed by the delay memory 51 by one frame, and 53 a phase amount calculation section 1
A difference unit (difference value comparison unit) for obtaining a difference value ΔPH between the current phase amount PH calculated by 2 and the past phase amount PH delayed by the delay memories 51 and 52, and 54 is obtained by the difference unit 53. A comparator (difference value comparison unit) that compares the difference value ΔPH with the threshold value a and determines whether or not the phase of the PCM signal is inverted.

【0085】次に動作について説明する。位相反転有無
判定部13以外は上記実施の形態1等と同様であるの
で、主に位相反転有無判定部13の動作について説明す
る。位相量算出部12から現在の位相量PHが出力され
ると、まず、ディレイメモリ51が現在の位相量PHを
1フレーム分遅延したのち、ディレイメモリ52が更に
その位相量PHを1フレーム分遅延する。従って、ディ
レイメモリ52から出力される位相量PHは、現在の位
相量PHより2フレーム分遅延したものとなる。
Next, the operation will be described. Since the configuration other than the phase inversion presence / absence determination unit 13 is the same as that in the first embodiment, the operation of the phase inversion presence / absence determination unit 13 will be mainly described. When the current phase amount PH is output from the phase amount calculation unit 12, first, the delay memory 51 delays the current phase amount PH by one frame, and then the delay memory 52 further delays the phase amount PH by one frame. I do. Accordingly, the phase amount PH output from the delay memory 52 is delayed by two frames from the current phase amount PH.

【0086】このようにして、現在の位相量PHが2フ
レーム分遅延されると、差分器53は、位相量算出部1
2から出力された現在の位相量PHとディレイメモリ5
2の出力である2フレーム前の位相量PHとの差分値△
PHを演算する。ただし、差分値△PHが常に下記の範
囲内に収まるようにすべく、差分値△PHがπより大き
い場合には、その差分値△PHから2πを減じ、差分値
△PHが−π以下の場合には、その差分値△PHに2π
を加算する。 π≧差分値△PH>−π ・・・(9)
In this way, when the current phase amount PH is delayed by two frames, the differentiator 53 sets the phase amount
2 and the delay memory 5
The difference value from the phase amount PH two frames before, which is the output of 2 2
Calculate PH. However, in order to keep the difference value ΔPH always within the following range, when the difference value ΔPH is larger than π, 2π is subtracted from the difference value ΔPH, and the difference value ΔPH is −π or less. In this case, the difference value △ PH is 2π
Is added. π ≧ difference value △ PH> −π (9)

【0087】そして、比較器54は、差分器53から差
分値△PHが出力されると、上記実施の形態1と同様に
して、その差分値△PHを閾値aと比較して、PCM信
号の位相反転の有無を判定するが、上記実施の形態1と
比較して、ノイズ等の影響による誤判定を減らし、より
正確に位相反転を検出できる効果を奏する。
When the difference value ΔPH is output from the differentiator 53, the comparator 54 compares the difference value ΔPH with the threshold value a in the same manner as in the first embodiment, and Although the presence / absence of phase inversion is determined, erroneous determination due to the influence of noise or the like is reduced as compared with the first embodiment, and an effect that phase inversion can be detected more accurately is achieved.

【0088】その理由は、上記実施の形態1では、現在
の位相量PHと1フレーム前の位相量PHとの差分値△
PHを閾値aと比較するようにしていたので、図14に
示すように、処理フレームnの途中において位相反転が
生じた場合、差分値△PHは最大でπ/2にしかなら
ず、位相反転が処理フレームの途中で生じた場合でも位
相反転を検出できるようにするためには、閾値aをπ/
2より小さくしなければならない。これに対して、実施
の形態6では、現在の位相量PHと2フレーム前の位相
量PHとの差分値△PHを閾値aと比較するようにして
いたので、図13に示すように、処理フレームnの途中
において位相反転が生じた場合でも、差分値△PHは最
大でπまで増加し、閾値aをπ/2より大きくしても位
相反転を検出することができ、上記実施の形態1と比較
して閾値aを大きくすることができるため、ノイズ等の
影響により差分値△PHの値が増大した場合に、差分値
△PHが閾値aを越えて誤って位相反転が有りと判定す
る危険が減るからである。
The reason is that, in the first embodiment, the difference value △ between the current phase amount PH and the phase amount PH one frame before is given by
Since the PH is compared with the threshold a, when the phase inversion occurs in the middle of the processing frame n as shown in FIG. 14, the difference value ΔPH becomes only π / 2 at the maximum, and In order to be able to detect the phase inversion even when it occurs in the middle of a frame, the threshold value a is set to π /
Must be less than 2. On the other hand, in the sixth embodiment, the difference value ΔPH between the current phase amount PH and the phase amount PH two frames before is compared with the threshold value a. Even when the phase inversion occurs in the middle of the frame n, the difference value ΔPH increases up to π at the maximum, and the phase inversion can be detected even when the threshold value a is larger than π / 2. Since the threshold value a can be increased as compared with the above, when the value of the difference value ΔPH increases due to the influence of noise or the like, the difference value ΔPH exceeds the threshold value a and is erroneously determined to have phase inversion. The danger is reduced.

【0089】なお、上記実施の形態6では、現在の位相
量PHと2フレーム前の位相量PHとの差分値△PHを
求めるものについて示したが、これに限るものではな
く、3フレーム以上前の位相量との差分値△PHを求め
るようにしてもよい。
Although the sixth embodiment has been described with reference to the case where the difference value ΔPH between the current phase amount PH and the phase amount PH two frames before is obtained, the present invention is not limited to this. A difference value ΔPH from the phase amount of the above may be obtained.

【0090】実施の形態7.図15はこの発明の実施の
形態7によるトーン信号検出装置の位相反転有無判定部
13を示す構成図であり、図において図12のものと同
一符号は同一または相当部分を示すので説明を省略す
る。55は位相量算出部12により演算された現在の位
相量PHとディレイメモリ51により遅延された過去の
位相量PHとの差分値△P1を平滑化し、その平滑化し
た差分値△P1Aを過去の位相量PHに加算する位相量
補償部、56は位相量算出部12により演算された現在
の位相量PHとディレイメモリ51により遅延された過
去の位相量PHとの差分値△P1を求める減算器、57
は差分値△P1を平滑化する低域通過フィルタ等から構
成された平滑化回路、58はディレイメモリ51により
遅延された過去の位相量PHに対して平滑化回路57に
より平滑化された差分値△P1Aを加算する加算器、5
9は位相量算出部12により演算された現在の位相量P
Hと加算器58の加算結果PH+△P1Aとの差分値△
PHを求める差分器(差分値比較部)である。
Embodiment 7 FIG. 15 is a block diagram showing the phase inversion presence / absence determining unit 13 of the tone signal detecting apparatus according to Embodiment 7 of the present invention. In the figure, the same reference numerals as those in FIG. . 55 smoothes the difference value ΔP1 between the current phase amount PH calculated by the phase amount calculation unit 12 and the past phase amount PH delayed by the delay memory 51, and converts the smoothed difference value ΔP1A into the past value. A phase amount compensator 56 to be added to the phase amount PH is a subtractor for calculating a difference value ΔP1 between the current phase amount PH calculated by the phase amount calculator 12 and the past phase amount PH delayed by the delay memory 51. , 57
Is a smoothing circuit composed of a low-pass filter or the like for smoothing the difference value ΔP1, and 58 is a difference value obtained by smoothing the past phase amount PH delayed by the delay memory 51 by the smoothing circuit 57. Adder for adding ΔP1A, 5
Reference numeral 9 denotes a current phase amount P calculated by the phase amount calculation unit 12.
H + addition result PH of the adder 58+ {difference value between P1A}
This is a differentiator (difference value comparison unit) for obtaining PH.

【0091】次に動作について説明する。上記実施の形
態1では、サンプル数2Nが検出対象であるトーン信号
の周期のk倍となるように、N及びkの値を選定したも
のについて説明したが、この場合は、上述したように、
PCM信号に位相反転が無ければ、位相量PHは一定値
となる。しかし、このようなN及びkの値を選定できな
い場合、即ち、式(2)を満足するN及びkの値を選定
できない場合は、できる限り式(2)の関係を近似的に
満足するN及びkの値を選定する必要があるが、この場
合は、PCM信号に位相反転が無くても、位相量PHは
一定の割合で増加又は減少する。
Next, the operation will be described. In the first embodiment described above, the values of N and k are selected such that the number of samples 2N is k times the period of the tone signal to be detected. In this case, however, as described above,
If there is no phase inversion in the PCM signal, the phase amount PH becomes a constant value. However, when the values of N and k cannot be selected, that is, when the values of N and k that satisfy Expression (2) cannot be selected, N that approximately satisfies the relationship of Expression (2) as much as possible is used. And the value of k must be selected. In this case, the phase amount PH increases or decreases at a constant rate even if the PCM signal does not have phase inversion.

【0092】従って、このような場合には、上記実施の
形態1等のように、単に現在の位相量PHと過去の位相
量PHの差分値△PHを求めて閾値aと比較しても、位
相量PHが一定の割合で変化する分が誤差となり、位相
反転の有無を正確に検出することができない。そこで、
この実施の形態7は、かかる誤差を補償して、位相反転
の有無を正確に検出できるようにしたものである。
Therefore, in such a case, the difference value ΔPH between the current phase amount PH and the past phase amount PH is simply obtained and compared with the threshold value a as in the first embodiment. An error occurs when the phase amount PH changes at a constant rate, and the presence or absence of phase inversion cannot be accurately detected. Therefore,
The seventh embodiment compensates for such an error so that the presence or absence of phase inversion can be accurately detected.

【0093】具体的には、位相量算出部12から現在の
位相量PHが出力されると、まず、ディレイメモリ51
が現在の位相量PHを1フレーム分遅延する。そして、
減算器56は、ディレイメモリ51から1フレーム分遅
延された過去の位相量PHが出力されると、位相量算出
部12から出力された現在の位相量PHと当該1フレー
ム前の過去の位相量PHとの差分値△P1を演算する。
Specifically, when the current phase amount PH is output from the phase amount calculating section 12, first, the delay memory 51
Delays the current phase amount PH by one frame. And
When the past phase amount PH delayed by one frame from the delay memory 51 is output from the delay memory 51, the subtractor 56 compares the current phase amount PH output from the phase amount calculation unit 12 with the past phase amount one frame before. The difference value ΔP1 from the PH is calculated.

【0094】そして、平滑化回路57は、減算器56か
ら差分値△P1が出力されると、1処理フレーム間の平
均的位相変化量を得るため、差分値△P1を平滑化す
る。そして、加算器58は、平滑化回路57から平均的
位相変化量である平滑化された差分値△P1Aが出力さ
れると、ディレイメモリ51から出力された1フレーム
前の位相量PHに対して当該平滑化された差分値△P1
Aを加算する。これにより、差分器59に入力される1
フレーム前の過去の位相量PH+△P1Aは、1処理フ
レーム間で増加または減少する変化分が考慮された値と
なる。従って、差分器59が現在の位相量PHと過去の
位相量PHを比較する上で、当該変化分の影響が除去さ
れることになる。
When the difference value ΔP1 is output from the subtractor 56, the smoothing circuit 57 smoothes the difference value ΔP1 in order to obtain an average phase change amount between one processing frame. When the smoothed difference value ΔP1A, which is the average amount of phase change, is output from the smoothing circuit 57, the adder 58 compares the phase amount PH of the previous frame output from the delay memory 51 with respect to the phase amount PH output from the delay memory 51. The smoothed difference value △ P1
Add A. As a result, 1 input to the differentiator 59
The past phase amount PH + ΔP1A before the frame is a value in which a change that increases or decreases between one processing frame is considered. Therefore, when the differentiator 59 compares the current phase amount PH with the past phase amount PH, the influence of the change is removed.

【0095】以上で明らかなように、この実施の形態7
によれば、位相量算出部12により演算された現在の位
相量PHとディレイメモリ51により遅延された1フレ
ーム前の過去の位相量PHとの差分値△P1を平滑化
し、その平滑化した差分値△P1Aを過去の位相量PH
に加算するようにしたので、位相反転が無いにも拘わら
ず、位相量PHが一定の割合で増加又は減少する場合で
も、正確に位相反転を検出することができる効果を奏す
る。
As is apparent from the above, the seventh embodiment
According to this, the difference value ΔP1 between the current phase amount PH calculated by the phase amount calculation unit 12 and the past phase amount PH one frame before delayed by the delay memory 51 is smoothed, and the smoothed difference The value △ P1A is converted to the past phase amount PH.
, The phase inversion can be accurately detected even when the phase amount PH increases or decreases at a constant rate even though there is no phase inversion.

【0096】実施の形態8.図16はこの発明の実施の
形態8によるトーン信号検出装置の位相反転有無判定部
13を示す構成図であり、図において図15のものと同
一符号は同一または相当部分を示すので説明を省略す
る。61〜63は位相量PHを1フレーム分遅延するデ
ィレイメモリ(遅延部)であり、ディレイメモリ61〜
63により現在の位相量PHをhフレーム分遅延してい
る。64はディレイメモリ63により遅延された位相量
PHを少なくとも1フレーム分遅延するディレイメモリ
(第1の遅延回路)、65はディレイメモリ64により
遅延された位相量PHを1フレーム分遅延するディレイ
メモリ(第2の遅延回路)である。
Embodiment 8 FIG. FIG. 16 is a block diagram showing the phase inversion presence / absence determining unit 13 of the tone signal detecting device according to the eighth embodiment of the present invention. In the figure, the same reference numerals as those in FIG. . Reference numerals 61 to 63 denote delay memories (delay units) for delaying the phase amount PH by one frame.
63 delays the current phase amount PH by h frames. Reference numeral 64 denotes a delay memory (first delay circuit) that delays the phase amount PH delayed by the delay memory 63 by at least one frame, and 65 denotes a delay memory that delays the phase amount PH delayed by the delay memory 64 by one frame ( (A second delay circuit).

【0097】また、66はディレイメモリ64により遅
延された位相量PHとディレイメモリ65により遅延さ
れた位相量PHとの差分値△P1を平滑化するととも
に、その平滑化した差分値△P1Aに係数hを乗算し、
その乗算結果△P1A×hをディレイメモリ63により
遅延された位相量PHに加算する位相量補償回路、67
はディレイメモリ64により遅延された位相量PHとデ
ィレイメモリ65により遅延された位相量PHとの差分
値△P1を求める減算器、68は差分値△P1を平滑化
する低域通過フィルタ等から構成された平滑化回路、6
9は平滑化回路68により平滑化された差分値△P1A
に対して係数hを乗算する乗算器、70はディレイメモ
リ63により遅延された過去の位相量PHに対して乗算
器69の乗算結果△P1A×hを加算する加算器であ
る。
The reference numeral 66 smoothes the difference value ΔP1 between the phase amount PH delayed by the delay memory 64 and the phase amount PH delayed by the delay memory 65, and adds a coefficient to the smoothed difference value ΔP1A. h,
A phase amount compensation circuit 67 for adding the multiplication result △ P1A × h to the phase amount PH delayed by the delay memory 63;
Is a subtractor that calculates a difference value ΔP1 between the phase amount PH delayed by the delay memory 64 and the phase amount PH delayed by the delay memory 65, and 68 is a low-pass filter or the like that smoothes the difference value ΔP1. Smoothing circuit, 6
9 is a difference value ΔP1A smoothed by the smoothing circuit 68
Is a multiplier which multiplies the multiplication result △ P1A × h of the multiplier 69 to the past phase amount PH delayed by the delay memory 63.

【0098】次に動作について説明する。上記実施の形
態7では、1フレーム前の位相量PHを補償して現在の
位相量PHとの差分値△PHを求めるものについて示し
たが、hフレーム前の位相量PHを補償して現在の位相
量PHとの差分値△PHを求めるようにしてもよく、上
記実施の形態7と同様の効果を奏することができる。
Next, the operation will be described. In the seventh embodiment, the case where the phase value PH one frame before is compensated for and the difference value ΔPH from the current phase amount PH is calculated is described. The difference value ΔPH from the phase amount PH may be obtained, and the same effect as in the seventh embodiment can be obtained.

【0099】具体的には、まず、ディレイメモリ61〜
63が現在の位相量PHをhフレーム分遅延させたの
ち、ディレイメモリ64,65がさらに当該位相量を遅
延させ、現在の位相量PHよりn−1フレーム分遅延し
ている位相量PHと、現在の位相量PHよりnフレーム
分遅延している位相量PHとを減算器67に出力する。
Specifically, first, the delay memories 61 to 61
63 delays the current phase amount PH by h frames, then the delay memories 64 and 65 further delay the phase amount, and a phase amount PH delayed by n-1 frames from the current phase amount PH; The phase amount PH delayed by n frames from the current phase amount PH is output to the subtractor 67.

【0100】そして、減算器67は、n−1フレーム分
遅延された過去の位相量PHとnフレーム分遅延された
過去の位相量PHが出力されると、n−1フレーム分遅
延された過去の位相量PHとnフレーム分遅延された過
去の位相量PHとの差分値△P1を演算する。
When the past phase amount PH delayed by n-1 frames and the past phase amount PH delayed by n frames are output, the subtracter 67 outputs the past phase amount delayed by n-1 frames. The difference value ΔP1 between the phase amount PH and the past phase amount PH delayed by n frames is calculated.

【0101】このようにして、減算器67から差分値△
P1が出力されると、h処理フレーム間の変化量を得る
ため、平滑化回路68が差分値△P1を平滑化して1処
理フレーム間の平均的位相変化量を求めたのち、乗算器
69が平滑化された差分値△P1Aに対して所定の係数
hを乗算する。そして、加算器70は、乗算器69から
h処理フレーム間の変化量である乗算結果△P1A×h
が出力されると、ディレイメモリ63から出力されたh
フレーム前の位相量PHに対して当該乗算結果△P1A
×hを加算する。これにより、差分器59に入力される
hフレーム前の過去の位相量PH+△P1A×hは、h
処理フレーム間で増加または減少する変化分が考慮され
た値となる。従って、差分器59が現在の位相量PHと
過去の位相量PHを比較する上で、当該変化分の影響が
除去されることになる。
Thus, the difference value △
When P1 is output, a smoothing circuit 68 smoothes the difference value ΔP1 to obtain an average phase change amount between one processing frame in order to obtain a change amount between the h processing frames. The smoothed difference value ΔP1A is multiplied by a predetermined coefficient h. Then, the adder 70 calculates the multiplication result {P1A × h} which is the change amount between the h processing frames from the multiplier 69.
Is output, h output from the delay memory 63 is output.
The multiplication result △ P1A for the phase amount PH before the frame
× h is added. As a result, the past phase amount PH + 1P1A × h before the h frame input to the differentiator 59 is represented by h
The value takes into account a change that increases or decreases between processing frames. Therefore, when the differentiator 59 compares the current phase amount PH with the past phase amount PH, the influence of the change is removed.

【0102】以上で明らかなように、この実施の形態8
によれば、n−1フレーム前の位相量PHとnフレーム
前の位相量PHとの差分値△P1を平滑化するととも
に、その平滑化した差分値△P1Aに係数hを乗算し、
その乗算結果△P1A×hをディレイメモリ63により
遅延された位相量PHに加算するようにしたので、位相
反転が無いにも拘わらず、位相量PHが一定の割合で増
加又は減少する場合でも、正確に位相反転を検出するこ
とができる効果を奏する。
As is clear from the above, the eighth embodiment
According to, the difference value △ P1 between the phase amount PH before the (n-1) th frame and the phase amount PH before the nth frame is smoothed, and the smoothed difference value △ P1A is multiplied by a coefficient h,
Since the multiplication result △ P1A × h is added to the phase amount PH delayed by the delay memory 63, even if the phase amount PH increases or decreases at a constant rate despite no phase inversion, There is an effect that the phase inversion can be accurately detected.

【0103】実施の形態9.図17はこの発明の実施の
形態9によるトーン信号検出装置の位相反転有無判定部
13を示す構成図であり、図において図16のものと同
一符号は同一または相当部分を示すので説明を省略す
る。71はディレイメモリ(遅延部)、72は平滑化回
路68により平滑化された差分値△P1Aに対して係数
(h−1)を乗算する乗算器、73はディレイメモリ7
1により遅延されたh−1フレーム前の位相量PHに対
して乗算器72の乗算結果△P1A×(h−1)を加算
する加算器、74は位相量算出部12により演算された
現在の位相量PHと加算器73の加算結果PH+△P1
A×(h−1)との差分値△PHを求める差分器(差分
値比較部)、75は差分器74により求められた差分値
△PHを閾値mと比較して、PCM信号の位相反転の有
無を判定する比較器(差分値比較部)、76は比較器5
4の比較結果C2と比較器75の比較結果C3との論理
積をとる判定回路(最終判定部)である。
Embodiment 9 FIG. FIG. 17 is a block diagram showing a phase inversion presence / absence determining section 13 of a tone signal detecting device according to Embodiment 9 of the present invention. In the figure, the same reference numerals as those in FIG. . 71 is a delay memory (delay unit), 72 is a multiplier for multiplying the difference value △ P1A smoothed by the smoothing circuit 68 by a coefficient (h-1), and 73 is a delay memory 7
The adder 74 adds the multiplication result △ P1A × (h−1) of the multiplier 72 to the phase amount PH before the h−1 frame delayed by 1. The reference numeral 74 denotes a current value calculated by the phase amount calculation unit 12. Addition result PH + 加 算 P1 of phase amount PH and adder 73
A difference unit (difference value comparison unit) for obtaining a difference value ΔPH from A × (h−1), 75 compares the difference value ΔPH obtained by the difference unit 74 with a threshold value m, and inverts the phase of the PCM signal. (Differential value comparing unit) for determining the presence or absence of
4 is a determination circuit (final determination unit) that calculates the logical product of the comparison result C2 of No. 4 and the comparison result C3 of the comparator 75.

【0104】次に動作について説明する。上記実施の形
態8では、位相量補償回路66,差分器59及び比較器
54を一組設け、hフレーム前の位相量PHの変化分を
補償するものについて示したが、図17に示すように、
これらを更にもう一組設け、2つの比較器54,75の
比較結果に基づいて最終的な判定をするようにしてもよ
く、更に確実に位相反転の有無を判定することができる
効果を奏する。
Next, the operation will be described. In the eighth embodiment, the phase compensation circuit 66, the differentiator 59, and the comparator 54 are provided as a set to compensate for the change in the phase PH before h frame. However, as shown in FIG. ,
Another set of these may be provided to make a final determination based on the comparison result of the two comparators 54 and 75, and it is possible to more reliably determine the presence or absence of phase inversion.

【0105】具体的には、上記実施の形態8と同様にし
て、hフレーム前の位相量PHの変化分を補償した位相
量PH+△P1A×hを求めたのち、現在の位相量PH
とhフレーム前の位相量PH+△P1A×hとの差分値
△PHを求め、比較器54がその差分値△PHと閾値a
を比較し、その比較結果C2を出力する。一方、h−1
フレーム前の位相量PHの変化分を補償した位相量PH
+△P1A×(h−1)を求めたのち、現在の位相量P
Hとh−1フレーム前の位相量PH+△P1A×(h−
1)との差分値△PHを求め、比較器75がその差分値
△PHと閾値mを比較し、その比較結果C3を出力す
る。
Specifically, in the same manner as in the eighth embodiment, the phase amount PH + △ P1A × h in which the variation of the phase amount PH before the h-frame is compensated is obtained, and then the current phase amount PH is calculated.
And the phase amount PH + ΔP1A × h before the h frame are calculated, and the comparator 54 calculates the difference ΔPH and the threshold a
And outputs the comparison result C2. On the other hand, h-1
Phase amount PH that compensates for the change in phase amount PH before the frame
+ △ P1A × (h−1), and then the current phase amount P
H and the phase amount PH before the h−1 frame PH + ΔP1A × (h−
The comparator 75 compares the difference value ΔPH with the threshold value m, and outputs a comparison result C3.

【0106】このようにして、比較器54及び比較器7
5からそれぞれ比較結果C2,C3が出力されると、判
定回路76は、比較結果C2と比較結果C3の論理積を
とり、位相反転の有無の最終的な判定を行う。即ち、双
方の比較器54,75が位相反転有りとする旨の判定結
果を示している場合に限り、位相反転有りとする最終的
な判定結果RJを出力する。
Thus, the comparator 54 and the comparator 7
When the comparison results C2 and C3 are output from No. 5 respectively, the determination circuit 76 calculates the logical product of the comparison result C2 and the comparison result C3, and makes a final determination on the presence or absence of phase inversion. That is, only when both the comparators 54 and 75 indicate the determination result indicating that the phase is inverted, the final determination result RJ indicating that the phase is inverted is output.

【0107】以上で明らかなように、この実施の形態9
によれば、双方の比較器54,75の判定結果に基づい
て位相反転の有無の最終的な判定を行うようにしたの
で、ノイズ等の影響を受けることなく、更に確実に位相
反転の有無を判定することができる効果を奏する。
As is clear from the above, the ninth embodiment
According to the method described above, the final determination of the presence or absence of phase inversion is performed based on the determination results of the comparators 54 and 75. An effect that can be determined is achieved.

【0108】なお、上記実施の形態9では、位相量補償
回路、差分器および比較器を二組設ける構成について説
明したが、二組に限るものではなく、三組以上であって
もよい。また、上記実施の形態9では、比較結果C2と
比較結果C3の論理積をとるものについて示したが、こ
れに限るものではなく、例えば、論理和をとるようにし
てもよい。また、位相量補償回路、差分器および比較器
を三組以上設ける場合には、判定回路76において、複
数の比較結果の多数決をとることで位相反転の有無を判
定するようにしてもよい。
In the ninth embodiment, the configuration in which two sets of the phase amount compensating circuit, the differentiator, and the comparator are provided has been described. Further, in the ninth embodiment, the logical product of the comparison result C2 and the comparison result C3 has been described. However, the present invention is not limited to this. For example, a logical sum may be obtained. When three or more sets of the phase amount compensating circuit, the differentiator, and the comparator are provided, the determination circuit 76 may determine the presence or absence of phase inversion by taking a majority decision of a plurality of comparison results.

【0109】実施の形態10.図18はこの発明の実施
の形態10によるトーン信号検出装置を示す構成図であ
り、図において図2のものと同一符号は同一または相当
部分を示すので説明を省略する。81は位相量算出部1
2により演算された位相量PHとトーン有無判定部15
の判定結果TJとに基づいて位相反転の有無を判定する
位相反転有無判定部(位相反転有無判定手段)である。
Embodiment 10 FIG. FIG. 18 is a block diagram showing a tone signal detecting apparatus according to Embodiment 10 of the present invention. In the figure, the same reference numerals as those in FIG. 2 denote the same or corresponding parts, and a description thereof will be omitted. 81 is a phase amount calculation unit 1
2 and the tone presence / absence determination unit 15
Is a phase inversion presence / absence determination unit (phase inversion presence / absence determination means) based on the determination result TJ.

【0110】また、図19はこの発明の実施の形態10
によるトーン信号検出装置の位相反転有無判定部81を
示す構成図であり、図において、82はトーン有無判定
部15の判定結果TJがトーン信号無しから有りに変化
(“0”から“1”に変化)すると、設定時間T4(第
1の設定時間)の間に限り“0”レベルの信号を出力す
るタイマ、83はタイマ82の信号レベルが“0”から
“1”に変化すると、その変化時の位相量PHを記憶す
るデータ保持回路(第1の記憶部)、84はトーン有無
判定部15の判定結果TJがトーン信号無しから有りに
変化(“0”から“1”に変化)すると、設定時間T5
(第2の設定時間)の間に限り“0”レベルの信号を出
力するタイマ、85はタイマ84の信号レベルが“0”
から“1”に変化すると、その変化時の位相量PHを記
憶するデータ保持回路(第2の記憶部)である。
FIG. 19 shows a tenth embodiment of the present invention.
Is a configuration diagram showing a phase inversion presence / absence determination unit 81 of the tone signal detection device according to the present invention. In FIG. When the signal level of the timer 82 changes from “0” to “1”, the timer 83 outputs the “0” level signal only during the set time T4 (first set time). The data holding circuit (first storage unit) 84 for storing the phase amount PH at the time when the determination result TJ of the tone presence / absence determination unit 15 changes from no tone signal to presence (changes from “0” to “1”). , Set time T5
A timer that outputs a signal of “0” level only during the (second set time).
When the data changes from “1” to “1”, the data holding circuit (second storage unit) stores the phase amount PH at the time of the change.

【0111】また、86はデータ保持回路83により記
憶された位相量PHとデータ保持回路85により記憶さ
れた位相量PHとの差分値△PHを演算する差分器(差
分値比較部)、87は差分器86により演算された差分
値△PHを閾値aと比較してPCM信号の位相反転の有
無を判定する比較器(差分値比較部)である。
Reference numeral 86 denotes a difference unit (difference value comparison unit) for calculating a difference value ΔPH between the phase amount PH stored by the data holding circuit 83 and the phase amount PH stored by the data holding circuit 85. A comparator (difference value comparison unit) that compares the difference value ΔPH calculated by the differentiator 86 with a threshold value a to determine whether or not the PCM signal is inverted.

【0112】次に動作について説明する。位相反転有無
判定部81以外は上記実施の形態2と同様であるので、
主に位相反転有無判定部81の動作について説明する。
まず、タイマ82は、トーン有無判定部15の判定結果
TJを常時監視し、その判定結果TJがトーン信号無し
から有りに変化(“0”から“1”に変化)すると、図
20に示すように、設定時間T4の間に限り“0”レベ
ルの信号を出力する。また、タイマ84もタイマ82と
同様に、トーン有無判定部15の判定結果TJを常時監
視し、その判定結果TJがトーン信号無しから有りに変
化(“0”から“1”に変化)すると、図20に示すよ
うに、設定時間T5の間に限り“0”レベルの信号を出
力する。
Next, the operation will be described. Since the configuration other than the phase inversion presence / absence determination unit 81 is the same as that of the second embodiment,
The operation of the phase inversion presence / absence determination section 81 will be mainly described.
First, the timer 82 constantly monitors the judgment result TJ of the tone presence / absence judging section 15, and when the judgment result TJ changes from no tone signal to present (changes from "0" to "1"), as shown in FIG. Then, a signal of "0" level is output only during the set time T4. Similarly to the timer 82, the timer 84 constantly monitors the determination result TJ of the tone presence / absence determining unit 15, and when the determination result TJ changes from no tone signal to presence (changes from "0" to "1"), As shown in FIG. 20, a "0" level signal is output only during the set time T5.

【0113】ただし、設定時間T4,T5は、下記の関
係が成立するような値に設定されている。 0<T4<T2−T3 T2−T3<T5<T2×2−T3 なお、T2は、トーン信号の位相反転の周期であり、T
3は、トーン信号が入力されてからトーン有無判定部1
5が判定結果TJをトーン信号有りに変化させるまでの
応答時間である。
However, the set times T4 and T5 are set to values that satisfy the following relationship. 0 <T4 <T2−T3 T2−T3 <T5 <T2 × 2−T3 Here, T2 is a period of the phase inversion of the tone signal.
Reference numeral 3 denotes a tone presence / absence determining unit 1 after a tone signal is input.
Reference numeral 5 denotes a response time until the determination result TJ is changed to the presence of a tone signal.

【0114】そして、データ保持回路83は、タイマ8
2の出力信号の信号レベルが“0”から“1”に変化す
ると、その変化時(図中、Aの時点)の位相量PHを記
憶する。また、データ保持回路85は、タイマ84の出
力信号の信号レベルが“0”から“1”に変化すると、
その変化時(図中、Bの時点)の位相量PHを記憶す
る。
The data holding circuit 83 is connected to the timer 8
When the signal level of the output signal of No. 2 changes from "0" to "1", the phase amount PH at the time of the change (at point A in the figure) is stored. When the signal level of the output signal of the timer 84 changes from “0” to “1”, the data holding circuit 85
The phase amount PH at the time of the change (time B in the figure) is stored.

【0115】このようにして、変化時の位相量PHが記
憶されると、差分器86は、データ保持回路83により
記憶されている位相量PH(Aの時点の位相量PH)と
データ保持回路85により記憶されている位相量PH
(Bの時点の位相量PH)との差分値△PHを演算す
る。そして、比較器87は、差分器86から差分値△P
Hが出力されると、上記実施の形態2と同様に、その差
分値△PHを閾値aと比較してPCM信号の位相反転の
有無を判定する。
When the phase amount PH at the time of change is stored in this way, the differentiator 86 sets the phase amount PH (the phase amount PH at the time point A) stored by the data holding circuit 83 and the data holding circuit PH. The phase amount PH stored by 85
A difference value ΔPH from (the phase amount PH at the time point B) is calculated. Then, the comparator 87 outputs the difference value ΔP
When H is output, the difference value ΔPH is compared with a threshold value a to determine whether or not the PCM signal is inverted, as in the second embodiment.

【0116】以上で明らかなように、この実施の形態1
0によれば、Aの時点の位相量PHとBの時点の位相量
PHとの差分値△PHを演算して位相反転の有無を判定
するようにしたので、設定時間T4,T5を適切な値に
設定すれば、位相反転前後における位相不安定時の位相
量PHではなく、位相安定時の位相量PHに基づいて位
相反転の有無を判定できるようになり、その結果、位相
反転が瞬時に起こらず、ある時間をかけて緩やかに位相
が反転するような場合でも、正確に位相反転を検出でき
る効果を奏する。
As is apparent from the above, the first embodiment
According to 0, the difference value ΔPH between the phase amount PH at the time point A and the phase amount PH at the time point B is calculated to determine the presence or absence of the phase inversion. If the value is set to a value, the presence / absence of phase inversion can be determined based on the phase amount PH when the phase is stable, instead of the phase amount PH when the phase is unstable before and after the phase inversion. As a result, the phase inversion occurs instantaneously. However, even when the phase is gradually inverted over a certain period of time, the effect of accurately detecting the phase inversion can be obtained.

【0117】実施の形態11.図21はこの発明の実施
の形態11によるトーン信号検出装置の位相反転有無判
定部13を示す構成図であり、図において図12のもの
と同一符号は同一または相当部分を示すので説明を省略
する。88は比較器54の判定結果RJを1フレーム分
遅延するディレイメモリ(結果保持部)、89はディレ
イメモリ88により遅延された判定結果RJを1フレー
ム分遅延するディレイメモリ(結果保持部)、90は比
較器54から出力された現在の判定結果RJとディレイ
メモリ88,89からそれぞれ出力された過去の判定結
果RJとの多数決により最終的にPCM信号の位相反転
の有無を判定する判定回路(最終判定部)である。
Embodiment 11 FIG. FIG. 21 is a block diagram showing the phase inversion presence / absence determining unit 13 of the tone signal detecting device according to the eleventh embodiment of the present invention. In the figure, the same reference numerals as those in FIG. . Reference numeral 88 denotes a delay memory (result holding unit) for delaying the judgment result RJ of the comparator 54 by one frame, 89 denotes a delay memory (result holding unit) for delaying the judgment result RJ delayed by the delay memory 88 by 1 frame, 90 Is a decision circuit (final decision circuit) which finally decides the presence or absence of phase inversion of the PCM signal by a majority decision of the current decision result RJ outputted from the comparator 54 and the past decision results RJ outputted from the delay memories 88 and 89, respectively. Determination unit).

【0118】次に動作について説明する。ディレイメモ
リ88,89及び判定回路90以外は上記実施の形態6
と同様であるので、主にディレイメモリ88,89及び
判定回路90の動作について説明する。上記実施の形態
6と同様にして、比較器54から判定結果RJが出力さ
れると、まず、ディレイメモリ88がその判定結果RJ
を1フレーム分遅延し、さらにディレイメモリ89がそ
の判定結果RJを1フレーム分遅延する。
Next, the operation will be described. Embodiment 6 except for the delay memories 88 and 89 and the judgment circuit 90.
Therefore, the operations of the delay memories 88 and 89 and the determination circuit 90 will be mainly described. When the judgment result RJ is output from the comparator 54 in the same manner as in the sixth embodiment, first, the delay memory 88 stores the judgment result RJ in the delay memory 88.
Is delayed by one frame, and the delay memory 89 further delays the determination result RJ by one frame.

【0119】これにより、判定回路90には、現在の判
定結果RJと、現在より1処理フレーム前の過去の判定
結果RJと、現在より2処理フレーム前の過去の判定結
果RJとが入力されることになる。このようにして、3
つの判定結果RJが入力されると、判定回路90は、そ
の3つの判定結果RJの多数決により最終的に位相反転
の有無を判定し、その判定結果RJを出力する。
As a result, the current judgment result RJ, the past judgment result RJ one processing frame before the present, and the past judgment result RJ two processing frames before the present are input to the judgment circuit 90. Will be. Thus, 3
When one determination result RJ is input, the determination circuit 90 finally determines the presence or absence of phase inversion based on the majority of the three determination results RJ, and outputs the determination result RJ.

【0120】以上で明らかなように、この実施の形態1
1によれば、処理フレームの異なる複数の判定結果RJ
に基づいて最終的に位相反転の有無を判定するようにし
たので、ノイズ等の影響等による誤判定を招くことな
く、正確に位相反転の有無を判定できる効果を奏する。
なお、上記実施の形態11では、3つの判定結果RJの
多数決をとることで最終的に位相反転の有無を判定する
ものについて示したが、複数の判定結果RJであればよ
く、3つの判定結果RJに限るものではない。また、必
ずしも多数決である必要はなく、論理積や論理和等の論
理演算であってもよい。
As is clear from the above, the first embodiment
According to No. 1, a plurality of determination results RJ with different processing frames
, The presence / absence of phase inversion is finally determined, so that there is an effect that the presence / absence of phase inversion can be accurately determined without causing erroneous determination due to the influence of noise or the like.
In the eleventh embodiment, the case where the majority of the three determination results RJ are determined to finally determine the presence or absence of the phase inversion has been described. However, a plurality of determination results RJ may be used. It is not limited to RJ. Also, it is not always necessary to make a majority decision, and a logical operation such as a logical product or logical sum may be used.

【0121】実施の形態12.上記実施の形態2〜11
では、判定結果出力部16の判定結果KJを、図3に示
すように、2つの信号形態(位相反転トーン有り、位相
反転トーン無し)の何れかに特定するものについて示し
たが、図22に示すように、3つの信号形態(位相反転
トーン信号、非位相反転トーン信号、非トーン信号)の
何れかに特定するようにしてもよい。
Embodiment 12 FIG. Embodiments 2 to 11 above
In FIG. 22, the determination result KJ of the determination result output unit 16 is specified for one of two signal forms (with phase inversion tone and without phase inversion tone) as shown in FIG. As shown, it may be specified to one of three signal forms (a phase-inverted tone signal, a non-phase-inverted tone signal, and a non-tone signal).

【0122】具体的には、図22に示すように、判定結
果TJが“1”であり(トーン信号が有りとする判
定)、かつ、判定結果RJが“1”である(位相反転が
有りとする判定)場合には、PCM信号の信号形態を
“位相反転トーン信号”のように特定する。また、判定
結果TJが“0”であり(トーン信号が無しとする判
定)、かつ、判定結果RJが“1”である(位相反転が
有りとする判定)場合には、PCM信号の信号形態を
“非トーン信号”のように特定する。
Specifically, as shown in FIG. 22, the determination result TJ is "1" (determination that there is a tone signal), and the determination result RJ is "1" (phase inversion is present). In this case, the signal form of the PCM signal is specified as “phase inverted tone signal”. If the determination result TJ is “0” (determination that there is no tone signal) and the determination result RJ is “1” (determination that phase inversion is present), the signal form of the PCM signal Is specified as a “non-tone signal”.

【0123】また、判定結果TJが“1”であり(トー
ン信号が有りとする判定)、かつ、判定結果RJが
“0”であり(位相反転が無しとする判定)、かつ、前
状態の信号形態が“位相反転トーン信号”の場合には、
前回の処理フレームにおいて特定した信号形態を保持
し、PCM信号の信号形態を“位相反転トーン信号”の
ように特定する。また、判定結果TJが“1”であり
(トーン信号が有りとする判定)、かつ、判定結果RJ
が“0”であり(位相反転が無しとする判定)、かつ、
前状態の信号形態が“位相反転トーン信号”以外の場合
には、PCM信号の信号形態を“非位相反転トーン信
号”のように特定する。さらに、判定結果TJが“0”
であり(トーン信号が無しとする判定)、かつ、判定結
果RJが“0”である(位相反転が無しとする判定)場
合には、PCM信号の信号形態を“非トーン信号”のよ
うに特定する。
Further, the judgment result TJ is "1" (judgment that there is a tone signal), the judgment result RJ is "0" (judgment that there is no phase inversion), and When the signal form is “phase inverted tone signal”,
The signal form specified in the previous processing frame is held, and the signal form of the PCM signal is specified as “phase inverted tone signal”. The determination result TJ is “1” (determination that there is a tone signal) and the determination result RJ
Is “0” (determined that there is no phase inversion), and
If the signal form in the previous state is other than the “phase inverted tone signal”, the signal form of the PCM signal is specified as “non-phase inverted tone signal”. Further, the judgment result TJ is “0”
(The determination that there is no tone signal) and the determination result RJ is “0” (the determination that there is no phase inversion), the signal form of the PCM signal is changed to “non-tone signal”. Identify.

【0124】実施の形態13.図23はこの発明の実施
の形態13によるトーン信号検出装置の判定結果出力部
16を示す構成図であり、図において、91はトーン有
無判定部15の判定結果TJを監視し、トーン信号無し
から有りに変化(信号レベルが“0”から“1”に変
化)すると変化情報を出力する変化点検出部、92は変
化点検出部91から変化情報が出力されると、一定時間
T6の間に限り信号レベル“0”の信号を出力するタイ
マ、93は位相反転有無判定部13の判定結果RJとタ
イマ92の出力との論理積をとる論理積回路、94はト
ーン有無判定部15の判定結果TJと論理積回路93の
出力S1に基づいてPCM信号の信号形態を特定する判
定回路である。
Embodiment 13 FIG. FIG. 23 is a block diagram showing a judgment result output unit 16 of the tone signal detection device according to the thirteenth embodiment of the present invention. In FIG. When the change information is output from the change point detection unit 91, the change point detection unit 92 outputs the change information when the change is made (the signal level changes from “0” to “1”). Timer 93 outputs a signal of signal level “0” as long as possible, 93 is a logical product circuit for calculating the logical product of the determination result RJ of phase inversion presence / absence determination section 13 and the output of timer 92, 94 is the determination result of tone presence / absence determination section 15 The determination circuit specifies the signal form of the PCM signal based on the TJ and the output S1 of the AND circuit 93.

【0125】次に動作について説明する。判定結果出力
部16以外は上記実施の形態2と同様であるので、主に
判定結果出力部16の動作について説明する。まず、変
化点検出部91は、トーン有無判定部15の判定結果T
Jを監視し、トーン信号無しから有りに変化(信号レベ
ルが“0”から“1”に変化)すると変化情報を出力す
る。そして、タイマ92は、変化点検出部91から変化
情報が出力されると、図24に示すように、その変化情
報を受けた時点から一定時間T6の間に限り、出力信号
の信号レベルを“1”から“0”にする。ただし、一定
時間T6は、下記の関係が成立するような値に設定され
ている。 0<T6<T2−T3
Next, the operation will be described. Since the configuration other than the determination result output unit 16 is the same as that of the second embodiment, the operation of the determination result output unit 16 will be mainly described. First, the change point detecting section 91 determines the determination result T of the tone presence / absence determining section 15.
J is monitored, and when there is a change from no tone signal to present (signal level changes from "0" to "1"), change information is output. Then, when the change information is output from the change point detecting section 91, the timer 92 changes the signal level of the output signal to "for a certain period of time T6 from the time when the change information is received, as shown in FIG. Change from "1" to "0". However, the fixed time T6 is set to a value that satisfies the following relationship. 0 <T6 <T2-T3

【0126】一方、論理積回路93は、位相反転有無判
定部13の判定結果RJとタイマ92の出力との論理積
をとり、その結果をS1として判定回路94に出力する
が、具体的には、図24に示すように、判定結果RJが
“1”であり(位相反転有りとする判定)、かつ、タイ
マ92の出力が“1”である場合に限り(Aの時点)、
位相反転有無判定部13の判定結果RJが有効なものと
して、その判定結果RJをそのまま出力する。従って、
Bの時点において、判定結果RJが“1”であるが、タ
イマ92の出力が“0”であるので、位相反転有無判定
部13の判定結果RJを無効とし、PCM信号の位相反
転が無い旨を示す信号を出力する(“0”レベルの信
号)。
On the other hand, the logical product circuit 93 calculates the logical product of the determination result RJ of the phase inversion presence / absence determining section 13 and the output of the timer 92, and outputs the result to the determination circuit 94 as S1. As shown in FIG. 24, only when the determination result RJ is “1” (determination that phase inversion is present) and the output of the timer 92 is “1” (at the time of A),
Assuming that the determination result RJ of the phase inversion presence / absence determination unit 13 is valid, the determination result RJ is output as it is. Therefore,
At the time point B, the determination result RJ is “1”, but the output of the timer 92 is “0”, so that the determination result RJ of the phase inversion presence / absence determination unit 13 is invalidated and there is no phase inversion of the PCM signal. Is output (“0” level signal).

【0127】そして、判定回路94は、トーン有無判定
部15の判定結果TJと論理積回路93の出力S1に基
づいてPCM信号の信号形態を特定する。具体的には、
図25に示すように、判定結果TJが“1”であり(ト
ーン信号が有りとする判定)、かつ、論理積回路93の
出力S1が“1”である場合には、PCM信号の信号形
態を“位相反転トーン有り”のように特定する。また、
判定結果TJが“0”であり(トーン信号が無しとする
判定)、かつ、論理積回路93の出力S1が“1”であ
る場合には、PCM信号の信号形態を“位相反転トーン
無し”のように特定する。
The determination circuit 94 specifies the signal form of the PCM signal based on the determination result TJ of the tone presence / absence determination section 15 and the output S1 of the AND circuit 93. In particular,
As shown in FIG. 25, when the determination result TJ is “1” (determination that there is a tone signal) and the output S1 of the AND circuit 93 is “1”, the signal form of the PCM signal Is specified as “with phase inversion tone”. Also,
If the determination result TJ is “0” (determination that there is no tone signal) and the output S1 of the AND circuit 93 is “1”, the signal form of the PCM signal is changed to “no phase-inversion tone”. Specify as follows.

【0128】また、判定結果TJが“1”であり(トー
ン信号が有りとする判定)、かつ、論理積回路93の出
力S1が“0”である場合には、前回の処理フレームに
おいて特定した信号形態を保持する(例えば、前回の処
理フレームにおいて特定した信号形態が“位相反転トー
ン有り”であれば、今回も信号形態を“位相反転トーン
有り”のように特定する)。さらに、判定結果TJが
“0”であり(トーン信号が無しとする判定)、かつ、
論理積回路93の出力S1が“0”である場合には、P
CM信号の信号形態を“位相反転トーン無し”のように
特定する。
When the judgment result TJ is "1" (judgment that there is a tone signal) and the output S1 of the AND circuit 93 is "0", it is specified in the previous processing frame. The signal form is retained (for example, if the signal form specified in the previous processing frame is “with phase inversion tone”, the signal form is also specified as “with phase inversion tone” this time). Further, the determination result TJ is “0” (determination that there is no tone signal), and
When the output S1 of the AND circuit 93 is “0”, P
The signal form of the CM signal is specified as “no phase inversion tone”.

【0129】以上で明らかなように、この実施の形態1
3によれば、トーン有無判定部15の判定結果TJがト
ーン信号無しから有りに変化すると、その変化後の一定
時間T6内に入力された位相反転有りを示す位相反転有
無判定部13の判定結果RJを無効とするようにしたの
で、通常は位相反転があり得ない期間、即ち、トーン信
号が検出されて間もない期間においては、位相反転有り
を示す判定結果RJをノイズ等の影響による誤判定とみ
なすことができ、更に正確に位相反転の有無を判定でき
る効果を奏する。
As is clear from the above, the first embodiment
According to No. 3, when the determination result TJ of the tone presence / absence determination unit 15 changes from no tone signal to presence, the determination result of the phase inversion presence / absence determination unit 13 indicating the presence of phase inversion input within a fixed time T6 after the change. Since the RJ is invalidated, the determination result RJ indicating the presence of the phase inversion is erroneously made due to the influence of noise or the like during a period during which phase inversion cannot normally occur, that is, a period immediately after the tone signal is detected. This can be regarded as determination, and an effect that the presence / absence of phase inversion can be determined more accurately.

【0130】実施の形態14.図26はこの発明の実施
の形態14によるトーン信号検出装置の判定結果出力部
16を示す構成図であり、図において図23のものと同
一符号は同一または相当部分を示すので説明を省略す
る。95は変化点検出部91又は変化点検出部97から
変化情報が出力されると、一定時間T6又はT7の間に
限り信号レベル“0”の信号を出力するタイマ、96は
位相反転有無判定部13の判定結果RJとタイマ95の
出力との論理積をとる論理積回路、97は論理積回路9
6の出力S2を監視し、信号レベルが“1”から“0”
に変化すると変化情報を出力する変化点検出部、98は
トーン有無判定部15の判定結果TJと論理積回路96
の出力S2に基づいてPCM信号の信号形態を特定する
判定回路である。
Embodiment 14 FIG. FIG. 26 is a configuration diagram showing the determination result output unit 16 of the tone signal detection device according to the fourteenth embodiment of the present invention. In the figure, the same reference numerals as those in FIG. A timer 95 outputs a signal of a signal level "0" only when the change information is output from the change point detection unit 91 or the change point detection unit 97 for a certain period of time T6 or T7. An AND circuit for calculating the logical product of the judgment result RJ of 13 and the output of the timer 95, and 97 is the logical product circuit 9
6 is monitored, and the signal level is changed from “1” to “0”.
The change point detecting section 98 which outputs change information when the state changes to "1."
Is a determination circuit for specifying the signal form of the PCM signal on the basis of the output S2.

【0131】次に動作について説明する。判定結果出力
部16以外は上記実施の形態2と同様であるので、主に
判定結果出力部16の動作について説明する。まず、変
化点検出部91は、トーン有無判定部15の判定結果T
Jを監視し、トーン信号無しから有りに変化(信号レベ
ルが“0”から“1”に変化)すると変化情報を出力す
る。一方、変化点検出部97は、論理積回路96の出力
S2を監視し、信号レベルが“1”から“0”に変化す
ると変化情報を出力する。
Next, the operation will be described. Since the configuration other than the determination result output unit 16 is the same as that of the second embodiment, the operation of the determination result output unit 16 will be mainly described. First, the change point detecting section 91 determines the determination result T of the tone presence / absence determining section 15.
J is monitored, and when there is a change from no tone signal to present (signal level changes from "0" to "1"), change information is output. On the other hand, the change point detecting section 97 monitors the output S2 of the AND circuit 96 and outputs change information when the signal level changes from “1” to “0”.

【0132】そして、タイマ95は、変化点検出部91
から変化情報が出力されると、図27に示すように、そ
の変化情報を受けた時点から一定時間T6の間に限り、
出力信号の信号レベルを“1”から“0”にする。ただ
し、一定時間T6は、下記の関係が成立するような値に
設定されている。 0<T6<T2−T3 また、タイマ95は、変化点検出部97から変化情報が
出力されると、図27に示すように、その変化情報を受
けた時点から一定時間T7の間に限り、出力信号の信号
レベルを“1”から“0”にする。ただし、一定時間T
7は、下記の関係が成立するような値に設定されてい
る。 0<T7<T2−T8
Then, the timer 95 is connected to the change point detecting section 91.
When the change information is output from, as shown in FIG. 27, only during a certain time T6 from the time when the change information is received,
The signal level of the output signal is changed from “1” to “0”. However, the fixed time T6 is set to a value that satisfies the following relationship. 0 <T6 <T2−T3 When the change information is output from the change point detecting unit 97, the timer 95 sets the time limit for a certain period of time T7 from the time when the change information is received, as shown in FIG. The signal level of the output signal is changed from “1” to “0”. However, the fixed time T
7 is set to a value that satisfies the following relationship. 0 <T7 <T2-T8

【0133】そして、論理積回路96は、位相反転有無
判定部13の判定結果RJとタイマ95の出力との論理
積をとり、その結果をS2として変化点検出部97及び
判定回路98に出力するが、具体的には、図27に示す
ように、判定結果RJが“1”であり(位相反転有りと
する判定)、かつ、タイマ95の出力が“1”である場
合に限り(A1,A2の時点)、位相反転有無判定部1
3の判定結果RJが有効なものとして、その判定結果R
Jをそのまま出力する。従って、B1,B2の時点にお
いて、判定結果RJが“1”であるが、タイマ95の出
力が“0”であるので、位相反転有無判定部13の判定
結果RJを無効とし、PCM信号の位相反転が無い旨を
示す信号を出力する(“0”レベルの信号)。
The logical product circuit 96 calculates the logical product of the determination result RJ of the phase inversion presence / absence determining section 13 and the output of the timer 95, and outputs the result to the change point detecting section 97 and the determining circuit 98 as S2. However, specifically, as shown in FIG. 27, only when the determination result RJ is “1” (determination that there is phase inversion) and the output of the timer 95 is “1”, (A1, A2), phase inversion presence / absence determination unit 1
The judgment result RJ of 3 is regarded as valid, and the judgment result RJ
J is output as it is. Therefore, at the time points B1 and B2, the determination result RJ is “1”, but the output of the timer 95 is “0”. Therefore, the determination result RJ of the phase inversion presence / absence determination unit 13 is invalidated, and the phase of the PCM signal is A signal indicating that there is no inversion is output (“0” level signal).

【0134】そして、判定回路98は、トーン有無判定
部15の判定結果TJと論理積回路96の出力S2に基
づいてPCM信号の信号形態を特定する。具体的には、
図27に示すように、判定結果TJが“1”であり(ト
ーン信号が有りとする判定)、かつ、論理積回路96の
出力S2が“1”である場合には、原則として、PCM
信号の信号形態を“位相反転トーン有り”のように特定
するが、図28に示すように、トーン信号を検出後、初
めて位相反転有りとする判定結果を得た段階では、信号
形態を“位相反転トーン有り”とはせず、2回位相反転
有りとする判定結果を得たとき、信号形態を“位相反転
トーン有り”とする。
The determination circuit 98 specifies the signal form of the PCM signal based on the determination result TJ of the tone presence / absence determination section 15 and the output S2 of the AND circuit 96. In particular,
As shown in FIG. 27, when the determination result TJ is “1” (determination that there is a tone signal) and the output S2 of the AND circuit 96 is “1”, in principle, the PCM
Although the signal form of the signal is specified as “with phase inversion tone”, as shown in FIG. 28, when the determination result indicating that phase inversion is present for the first time after the tone signal is detected, the signal form is set to “phase inversion”. When a determination result indicating that there is phase inversion twice is obtained instead of "with inverted tone", the signal form is set to "with phase inverted tone".

【0135】その理由は、2回目の位相反転を見つけて
初めて位相反転トーン有りとする判定方法は、ノイズ等
の影響による誤判定を防ぐのに有効な方法としてITU
勧告G.165にも記述されているからである。因み
に、図28は、トーン不検出の状態からトーンを検出し
たのち、1回目の位相反転を検出しても信号形態を“位
相反転トーン有り”とはしないが、2回目の位相反転を
検出したら信号形態を“位相反転トーン有り”とする旨
を示す状態遷移図である。図において、位相反転トーン
検出状態にある時だけ、信号形態を“位相反転トーン有
り”とし、その他の3つの状態にある時は、信号形態を
“位相反転トーン無し”とするように動作する。
The reason for this is that the method of determining that there is a phase inversion tone only after finding the second phase inversion is an effective method for preventing erroneous determination due to the influence of noise or the like.
Recommendation G. 165. Incidentally, FIG. 28 shows that the signal form is not determined to be “with phase inversion tone” even if the first phase inversion is detected after the tone is detected from the tone non-detection state. FIG. 10 is a state transition diagram showing that the signal form is “with phase inversion tone”. In the drawing, the signal form is set to "with phase inverted tone" only when in the phase inverted tone detection state, and the signal form is set to "without phase inverted tone" when in the other three states.

【0136】また、判定回路98は、判定結果TJが
“0”であり(トーン信号が無しとする判定)、かつ、
論理積回路96の出力S2が“1”である場合には、P
CM信号の信号形態を“位相反転トーン無し”のように
特定する。また、判定結果TJが“1”であり(トーン
信号が有りとする判定)、かつ、論理積回路96の出力
S2が“0”である場合には、前回の処理フレームにお
いて特定した信号形態を保持する(例えば、前回の処理
フレームにおいて特定した信号形態が“位相反転トーン
有り”であれば、今回も信号形態を“位相反転トーン有
り”のように特定する)。さらに、判定結果TJが
“0”であり(トーン信号が無しとする判定)、かつ、
論理積回路96の出力S2が“0”である場合には、P
CM信号の信号形態を“位相反転トーン無し”のように
特定する。
The determination circuit 98 determines that the determination result TJ is “0” (determination that there is no tone signal), and
When the output S2 of the AND circuit 96 is “1”, P
The signal form of the CM signal is specified as “no phase inversion tone”. When the determination result TJ is “1” (determination that there is a tone signal) and the output S2 of the AND circuit 96 is “0”, the signal form specified in the previous processing frame is changed. It is held (for example, if the signal form specified in the previous processing frame is “with phase inversion tone”, the signal form is specified as “with phase inversion tone” this time). Further, the determination result TJ is “0” (determination that there is no tone signal), and
When the output S2 of the AND circuit 96 is “0”, P
The signal form of the CM signal is specified as “no phase inversion tone”.

【0137】以上で明らかなように、この実施の形態1
4によれば、位相反転有無判定部13の判定結果RJを
有効なものとして信号形態を特定した場合、その判定結
果RJを入力した後の一定期間T7内に入力される位相
反転有りを示す位相反転有無判定部13の判定結果RJ
を無効とするようにしたので、通常は位相反転があり得
ない期間、即ち、位相反転が検出されて間もない期間に
おいては、位相反転有りを示す判定結果RJをノイズ等
の影響による誤判定とみなすことができ、更に正確に位
相反転の有無を判定できる効果を奏する。また、少なく
とも2回以上、位相反転有りを示す位相反転有無判定部
13の判定結果RJを入力した場合に限り、位相反転有
りとして信号形態を特定するようにしたので、更にノイ
ズ等の影響による誤判定を有効に防止することができる
効果を奏する。
As is clear from the above, the first embodiment
According to No. 4, when the signal form is specified with the determination result RJ of the phase inversion presence / absence determination unit 13 as valid, the phase indicating the presence of phase inversion input within a certain period T7 after the input of the determination result RJ Decision result RJ of reversal presence / absence judgment unit 13
Is invalidated, the determination result RJ indicating the presence of phase inversion is erroneously determined by the influence of noise or the like during a period during which phase inversion cannot normally occur, that is, during a period immediately after phase inversion is detected. Thus, it is possible to determine the presence / absence of phase inversion more accurately. Further, the signal form is identified as having phase inversion only when the determination result RJ of the phase inversion presence / absence determination section 13 indicating that phase inversion is present is input at least twice, so that an error caused by noise or the like is further caused. An effect that the determination can be effectively prevented is achieved.

【0138】なお、上記実施の形態14では、トーン有
無判定部15の判定結果TJが“0”となると(トーン
信号が無しとする判定)、トーン不検出の状態に遷移す
るものについて示したが(図28参照)、PCM信号の
パワーを監視し、そのパワーが所定の閾値より小さくな
ったとき、トーン不検出の状態に遷移するようにしても
よい。
In the above-described fourteenth embodiment, when the determination result TJ of the tone presence / absence determining unit 15 becomes “0” (determination that there is no tone signal), the state transits to the tone non-detection state. (See FIG. 28) Alternatively, the power of the PCM signal may be monitored, and when the power becomes smaller than a predetermined threshold, the state may be changed to a tone non-detection state.

【0139】実施の形態15.図29はこの発明の実施
の形態15によるトーン信号検出装置を示す構成図であ
り、図において図2と同一符号は同一または相当部分を
示すので説明を省略する。101はトーン信号検出装置
の送信部、102はトーン信号検出装置の受信部、10
3は送信部101のパワー算出部14により演算された
電力PWと受信部102のパワー算出部14により演算
された電力PWを比較するとともに、電力PWが大きい
側の判定結果出力部16の判定結果KJのみを有効とす
る比較器(選択手段)、104は比較器103の比較結
果C4に基づいて電力PWが大きい側のDFT演算部1
1により求められたPCM信号の実数部R及び虚数部Q
を選択するセレクタ(選択手段)である。
Embodiment 15 FIG. FIG. 29 is a block diagram showing a tone signal detecting apparatus according to Embodiment 15 of the present invention. In the figure, the same reference numerals as those in FIG. 2 denote the same or corresponding parts, and a description thereof will be omitted. 101 is a transmitting unit of the tone signal detecting device, 102 is a receiving unit of the tone signal detecting device, 10
3 compares the power PW calculated by the power calculation unit 14 of the transmission unit 101 with the power PW calculated by the power calculation unit 14 of the reception unit 102, and determines the determination result of the determination result output unit 16 on the side where the power PW is larger. A comparator (selecting means) 104 that makes only KJ effective, a DFT operation unit 104 on the side where the power PW is higher based on the comparison result C4 of the comparator 103
1 and the real part R and imaginary part Q of the PCM signal
Is a selector (selecting means) for selecting.

【0140】次に動作について説明する。トーン信号検
出装置が送信側PCM信号と受信側PCM信号を入力
し、これらの双方に対して信号形態を特定する必要があ
る場合に、検出対象のトーン信号が送信側PCM信号と
受信側PCM信号の双方に同時には存在しないという条
件下(例えば半2重通信)においては、トーン信号検出
装置を図29に示すように構成すれば、トーン信号検出
装置の処理量を軽減できるとともに、構成を簡素化する
ことができる。
Next, the operation will be described. When a tone signal detecting device inputs a transmitting PCM signal and a receiving PCM signal, and it is necessary to specify a signal form for both of them, the tone signals to be detected are the transmitting PCM signal and the receiving PCM signal. Under the condition that they do not simultaneously exist (for example, half-duplex communication), if the tone signal detecting device is configured as shown in FIG. 29, the processing amount of the tone signal detecting device can be reduced and the configuration can be simplified. Can be

【0141】即ち、DFT演算部11,パワー算出部1
4,トーン有無判定部15及び判定結果出力部16につ
いては送信部101及び受信部102の双方にそれぞれ
設けるが、位相量算出部12及び位相反転有無判定部1
3については共用化することができる。具体的には、ま
ず、比較器103が送信部101のパワー算出部14に
より演算された電力PWと受信部102のパワー算出部
14により演算された電力PWを比較し、何れの側の電
力PWが大きいかを示す比較結果C4を出力する。
That is, the DFT operation unit 11 and the power calculation unit 1
4, the tone presence / absence determination unit 15 and the determination result output unit 16 are provided in both the transmission unit 101 and the reception unit 102, respectively, but the phase amount calculation unit 12 and the phase inversion presence / absence determination unit 1
3 can be shared. Specifically, first, the comparator 103 compares the power PW calculated by the power calculation unit 14 of the transmission unit 101 with the power PW calculated by the power calculation unit 14 of the reception unit 102. Is output as the comparison result C4 indicating whether is larger.

【0142】そして、比較器103が比較結果C4を出
力すると、セレクタ104がその比較結果C4に基づい
て電力PWが大きい側のDFT演算部11により求めら
れたPCM信号の実数部R及び虚数部Qを選択し、その
実数部R及び虚数部Qを位相量算出部12に出力する。
これにより、位相量算出部12は電力PWが大きい側の
DFT演算部11により求められたPCM信号の実数部
R及び虚数部Qに基づいて位相量PHを演算することに
なる。
When the comparator 103 outputs the comparison result C4, the selector 104 selects the real part R and the imaginary part Q of the PCM signal obtained by the DFT operation unit 11 having the higher power PW based on the comparison result C4. And outputs the real part R and the imaginary part Q to the phase amount calculation unit 12.
As a result, the phase amount calculation unit 12 calculates the phase amount PH based on the real part R and the imaginary part Q of the PCM signal obtained by the DFT calculation unit 11 on the side where the power PW is large.

【0143】また、比較器103の比較結果C4は、送
信部101の判定結果出力部16及び受信部102の判
定結果出力部16にも出力され、電力PWが大きい側の
判定結果出力部16は、自己側のトーン有無判定部15
及び位相反転有無判定部13の判定結果に基づいて信号
形態を特定するが、電力PWが小さい側の判定結果出力
部16は、自己側のトーン有無判定部15等の判定結果
に拘わらず、信号形態を強制的に“位相反転トーン無
し”とする。
The comparison result C4 of the comparator 103 is also output to the determination result output unit 16 of the transmission unit 101 and the determination result output unit 16 of the reception unit 102. , Own tone presence / absence determination unit 15
The signal form is specified based on the determination result of the phase inversion presence / absence determination unit 13, and the determination result output unit 16 on the side where the power PW is low, regardless of the determination result of the tone presence / absence determination unit 15 on its own side, The form is forcibly set to “no phase inversion tone”.

【0144】以上で明らかなように、この実施の形態1
5によれば、送信部101のパワー算出部14により演
算された電力PWと受信部102のパワー算出部14に
より演算された電力PWを比較し、電力PWが大きい側
のDFT演算部11により求められたPCM信号の実数
部R及び虚数部Qを選択して、位相量算出部12に出力
するようにしたので、位相量算出部12及び位相反転有
無判定部13については共用化することができるように
なり、その結果、トーン信号検出装置の処理量を軽減で
きるとともに、構成を簡素化することができる効果を奏
する。
As is apparent from the above, the first embodiment
According to No. 5, the power PW calculated by the power calculation unit 14 of the transmission unit 101 is compared with the power PW calculated by the power calculation unit 14 of the reception unit 102, and the power PW calculated by the DFT calculation unit 11 on the side where the power PW is larger is calculated. Since the real part R and the imaginary part Q of the obtained PCM signal are selected and output to the phase amount calculating unit 12, the phase amount calculating unit 12 and the phase inversion existence determining unit 13 can be shared. As a result, the processing amount of the tone signal detecting device can be reduced, and the configuration can be simplified.

【0145】実施の形態16.図30はこの発明の実施
の形態16によるトーン信号検出装置を示す構成図であ
り、図において図29と同一符号は同一または相当部分
を示すので説明を省略する。105はPCM信号の全帯
域電力APWを演算する全帯域パワー算出部(全帯域パ
ワー演算手段)、106は送信部101の全帯域パワー
算出部105により演算された全帯域電力APWと受信
部102の全帯域パワー算出部105により演算された
全帯域電力APWを比較するとともに、全帯域電力AP
Wが大きい側の判定結果出力部16の判定結果KJのみ
を有効とする比較器(選択手段)である。
Embodiment 16 FIG. FIG. 30 is a block diagram showing a tone signal detecting apparatus according to Embodiment 16 of the present invention. In the figure, the same reference numerals as those in FIG. 29 denote the same or corresponding parts, and a description thereof will be omitted. Reference numeral 105 denotes an all-band power calculation unit (all-band power calculation means) for calculating the entire-band power APW of the PCM signal. The whole band power APW calculated by the whole band power calculation unit 105 is compared, and the whole band power APW is calculated.
This is a comparator (selection unit) that validates only the determination result KJ of the determination result output unit 16 on the side where W is large.

【0146】次に動作について説明する。トーン信号検
出装置が送信側PCM信号と受信側PCM信号を入力
し、これらの双方に対して信号形態を特定する必要があ
る場合に、検出対象のトーン信号が送信側PCM信号と
受信側PCM信号の双方に同時には存在しないという条
件下(例えば半2重通信)においては、トーン信号検出
装置を図30に示すように構成すれば、トーン信号検出
装置の処理量を軽減できるとともに、構成を簡素化する
ことができる。
Next, the operation will be described. When a tone signal detecting device inputs a transmitting PCM signal and a receiving PCM signal, and it is necessary to specify a signal form for both of them, the tone signals to be detected are the transmitting PCM signal and the receiving PCM signal. Under the condition that they do not exist at the same time (for example, half duplex communication), if the tone signal detecting device is configured as shown in FIG. 30, the processing amount of the tone signal detecting device can be reduced and the configuration can be simplified. Can be

【0147】即ち、DFT演算部11,パワー算出部1
4,トーン有無判定部15及び判定結果出力部16につ
いては送信部101及び受信部102の双方にそれぞれ
設けるが、位相量算出部12及び位相反転有無判定部1
3については共用化することができる。具体的には、ま
ず、送信部101及び受信部102の全帯域パワー算出
部105が下記に示すようにPCM信号の全帯域電力A
PWを演算する。
That is, the DFT operation unit 11 and the power calculation unit 1
4, the tone presence / absence determination unit 15 and the determination result output unit 16 are provided in both the transmission unit 101 and the reception unit 102, respectively, but the phase amount calculation unit 12 and the phase inversion presence / absence determination unit 1
3 can be shared. Specifically, first, the full-band power calculating section 105 of the transmitting section 101 and the receiving section 102 transmits the full-band power A
Calculate PW.

【0148】[0148]

【数2】 (Equation 2)

【0149】そして、送信部101及び受信部102の
全帯域パワー算出部105がPCM信号の全帯域電力A
PWを演算すると、比較器106が送信部101の全帯
域パワー算出部105により演算された全帯域電力AP
Wと受信部102の全帯域パワー算出部105により演
算された全帯域電力APWを比較し、何れの側の全帯域
電力APWが大きいかを示す比較結果C5を出力する。
Then, the full-band power calculating section 105 of the transmitting section 101 and the receiving section 102 outputs the full-band power A of the PCM signal.
When the PW is calculated, the comparator 106 calculates the total band power AP calculated by the full band power calculation unit 105 of the transmission unit 101.
W is compared with the whole band power APW calculated by the whole band power calculation unit 105 of the receiving unit 102, and a comparison result C5 indicating which side of the whole band power APW is larger is output.

【0150】そして、比較器106が比較結果C5を出
力すると、セレクタ104がその比較結果C5に基づい
て全帯域電力APWが大きい側のDFT演算部11によ
り求められたPCM信号の実数部R及び虚数部Qを選択
し、その実数部R及び虚数部Qを位相量算出部12に出
力する。これにより、位相量算出部12は全帯域電力A
PWが大きい側のDFT演算部11により求められたP
CM信号の実数部R及び虚数部Qに基づいて位相量PH
を演算することになる。
When the comparator 106 outputs the comparison result C5, the selector 104 selects the real part R and the imaginary part of the PCM signal obtained by the DFT operation unit 11 having the larger total band power APW based on the comparison result C5. The part Q is selected, and its real part R and imaginary part Q are output to the phase amount calculating part 12. As a result, the phase amount calculation unit 12 outputs the entire band power A
P calculated by the DFT operation unit 11 on the side where PW is large
Phase amount PH based on real part R and imaginary part Q of CM signal
Is calculated.

【0151】また、比較器106の比較結果C5は、送
信部101の判定結果出力部16及び受信部102の判
定結果出力部16にも出力され、全帯域電力APWが大
きい側の判定結果出力部16は、自己側のトーン有無判
定部15及び位相反転有無判定部13の判定結果に基づ
いて信号形態を特定するが、全帯域電力APWが小さい
側の判定結果出力部16は、自己側のトーン有無判定部
15等の判定結果に拘わらず、信号形態を強制的に“位
相反転トーン無し”とする。
The comparison result C5 of the comparator 106 is also output to the determination result output unit 16 of the transmission unit 101 and the determination result output unit 16 of the reception unit 102, and the determination result output unit on the side where the total band power APW is large. 16 specifies the signal form based on the determination results of the tone presence / absence determination unit 15 and the phase inversion presence / absence determination unit 13 on its own side. Regardless of the determination result of the presence / absence determination unit 15 or the like, the signal form is forcibly set to “no phase inversion tone”.

【0152】以上で明らかなように、この実施の形態1
6によれば、送信部101の全帯域パワー算出部105
により演算された全帯域電力APWと受信部102の全
帯域パワー算出部105により演算された全帯域電力A
PWを比較し、全帯域電力APWが大きい側のDFT演
算部11により求められたPCM信号の実数部R及び虚
数部Qを選択して、位相量算出部12に出力するように
したので、位相量算出部12及び位相反転有無判定部1
3については共用化することができるようになり、その
結果、トーン信号検出装置の処理量を軽減できるととも
に、構成を簡素化することができる効果を奏する。
As is clear from the above, the first embodiment
According to No. 6, the entire band power calculation unit 105 of the transmission unit 101
And the total band power AW calculated by the whole band power calculator 105 of the receiver 102.
Since the PWs are compared, the real part R and the imaginary part Q of the PCM signal obtained by the DFT operation unit 11 on the side where the total band power APW is large are selected and output to the phase amount calculation unit 12. Amount calculation unit 12 and phase inversion presence / absence determination unit 1
3 can be shared, and as a result, the processing amount of the tone signal detection device can be reduced and the configuration can be simplified.

【0153】実施の形態17.図31はこの発明の実施
の形態17によるトーン信号検出装置を示す構成図であ
り、図において図30と同一符号は同一または相当部分
を示すので説明を省略する。107はパワー算出部14
により演算された電力PWと全帯域パワー算出部105
により演算された全帯域電力APWに基づいてPCM信
号の信号対雑音比(以下、S/N比という)を演算する
S/N算出部(雑音比演算手段)、108は送信部10
1のS/N算出部107により演算されたS/N比と受
信部102のS/N算出部107により演算されたS/
N比を比較するとともに、S/N比が高い側の判定結果
出力部16の判定結果KJのみを有効とする比較器(選
択手段)である。
Embodiment 17 FIG. FIG. 31 is a block diagram showing a tone signal detecting device according to a seventeenth embodiment of the present invention. In the drawing, the same reference numerals as those in FIG. 30 denote the same or corresponding parts, and a description thereof will be omitted. 107 is a power calculator 14
PW calculated by the above and the entire band power calculation section 105
An S / N calculator (noise ratio calculator) that calculates a signal-to-noise ratio (hereinafter, referred to as an S / N ratio) of the PCM signal based on the total band power APW calculated by
1 and the S / N ratio calculated by the S / N calculation section 107 of the receiving section 102 and the S / N ratio calculated by the S / N calculation section 107 of FIG.
A comparator (selecting means) that compares the N ratio and validates only the determination result KJ of the determination result output unit 16 on the higher S / N ratio side.

【0154】次に動作について説明する。トーン信号検
出装置が送信側PCM信号と受信側PCM信号を入力
し、これらの双方に対して信号形態を特定する必要があ
る場合に、検出対象のトーン信号が送信側PCM信号と
受信側PCM信号の双方に同時には存在しないという条
件下(例えば半2重通信)においては、トーン信号検出
装置を図31に示すように構成すれば、トーン信号検出
装置の処理量を軽減できるとともに、構成を簡素化する
ことができる。
Next, the operation will be described. When a tone signal detecting device inputs a transmitting PCM signal and a receiving PCM signal, and it is necessary to specify a signal form for both of them, the tone signals to be detected are the transmitting PCM signal and the receiving PCM signal. Under the condition that they do not exist at the same time (for example, half-duplex communication), if the tone signal detector is configured as shown in FIG. 31, the processing amount of the tone signal detector can be reduced and the configuration can be simplified. Can be

【0155】即ち、DFT演算部11,パワー算出部1
4,トーン有無判定部15及び判定結果出力部16につ
いては送信部101及び受信部102の双方にそれぞれ
設けるが、位相量算出部12及び位相反転有無判定部1
3については共用化することができる。具体的には、ま
ず、送信部101及び受信部102のS/N算出部10
7が下記に示すようにPCM信号のS/N比を演算す
る。 S/N比=PW/(APW−PW) ・・・(11)
That is, the DFT operation unit 11 and the power calculation unit 1
4, the tone presence / absence determination unit 15 and the determination result output unit 16 are provided in both the transmission unit 101 and the reception unit 102, respectively, but the phase amount calculation unit 12 and the phase inversion presence / absence determination unit 1
3 can be shared. Specifically, first, the S / N calculation unit 10 of the transmission unit 101 and the reception unit 102
7 calculates the S / N ratio of the PCM signal as shown below. S / N ratio = PW / (APW-PW) (11)

【0156】そして、送信部101及び受信部102の
S/N算出部107がPCM信号のS/N比を演算する
と、比較器108が送信部101のS/N算出部107
により演算されたS/N比と受信部102のS/N算出
部107により演算されたS/N比を比較し、何れの側
のS/N比が高いかを示す比較結果C6を出力する。
When the S / N calculating section 107 of the transmitting section 101 and the receiving section 102 calculates the S / N ratio of the PCM signal, the comparator 108 sets the S / N calculating section 107 of the transmitting section 101.
Is compared with the S / N ratio calculated by the S / N calculation unit 107 of the receiving unit 102, and a comparison result C6 indicating which side has a higher S / N ratio is output. .

【0157】そして、比較器108が比較結果C6を出
力すると、セレクタ104がその比較結果C6に基づい
てS/N比が高い側のDFT演算部11により求められ
たPCM信号の実数部R及び虚数部Qを選択し、その実
数部R及び虚数部Qを位相量算出部12に出力する。こ
れにより、位相量算出部12はS/N比が大きい側のD
FT演算部11により求められたPCM信号の実数部R
及び虚数部Qに基づいて位相量PHを演算することにな
る。
When the comparator outputs the comparison result C6, the selector 104 outputs the real part R and the imaginary part of the PCM signal obtained by the DFT operation unit 11 having the higher S / N ratio based on the comparison result C6. The part Q is selected, and its real part R and imaginary part Q are output to the phase amount calculating part 12. As a result, the phase amount calculation unit 12 sets the D / S on the side with the larger S / N ratio.
The real part R of the PCM signal obtained by the FT operation unit 11
Then, the phase amount PH is calculated based on the imaginary part Q.

【0158】また、比較器108の比較結果C6は、送
信部101の判定結果出力部16及び受信部102の判
定結果出力部16にも出力され、S/N比が高い側の判
定結果出力部16は、自己側のトーン有無判定部15及
び位相反転有無判定部13の判定結果に基づいて信号形
態を特定するが、S/N比が低い側の判定結果出力部1
6は、自己側のトーン有無判定部15等の判定結果に拘
わらず、信号形態を強制的に“位相反転トーン無し”と
する。
The comparison result C6 of the comparator 108 is also output to the determination result output unit 16 of the transmission unit 101 and the determination result output unit 16 of the reception unit 102, and the determination result output unit of the higher S / N ratio is output. Reference numeral 16 specifies the signal form based on the determination results of the tone presence / absence determination section 15 and the phase inversion presence / absence determination section 13 on its own side.
No. 6 forcibly sets the signal form to "no phase-inversion tone" irrespective of the judgment result of the tone presence / absence judgment unit 15 or the like on its own side.

【0159】以上で明らかなように、この実施の形態1
7によれば、送信部101のS/N算出部107により
演算されたS/N比と受信部102のS/N算出部10
7により演算されたS/N比を比較し、S/N比が高い
側のDFT演算部11により求められたPCM信号の実
数部R及び虚数部Qを選択して、位相量算出部12に出
力するようにしたので、位相量算出部12及び位相反転
有無判定部13については共用化することができるよう
になり、その結果、トーン信号検出装置の処理量を軽減
できるとともに、構成を簡素化することができる効果を
奏する。
As is clear from the above, the first embodiment
According to 7, the S / N ratio calculated by the S / N calculation unit 107 of the transmission unit 101 and the S / N calculation unit 10 of the reception unit 102
7, the real part R and the imaginary part Q of the PCM signal obtained by the DFT operation unit 11 on the higher S / N ratio side are selected, and the phase amount calculation unit 12 Since the output is performed, the phase amount calculation unit 12 and the phase inversion presence / absence determination unit 13 can be shared. As a result, the processing amount of the tone signal detection device can be reduced and the configuration can be simplified. It has an effect that can be done.

【0160】実施の形態18.図32はこの発明の実施
の形態18によるトーン信号検出装置を示す構成図であ
り、図において図2と同一符号は同一または相当部分を
示すので説明を省略する。11aはDFT演算部11と
同様の機能を有するDFT演算部(フーリエ変換手段)
であり、チャネル1のPCM信号を入力信号とする。1
1bはDFT演算部11と同様の機能を有するDFT演
算部(フーリエ変換手段)であり、チャネル2のPCM
信号を入力信号とする。11cはDFT演算部11と同
様の機能を有するDFT演算部(フーリエ変換手段)で
あり、チャネル3のPCM信号を入力信号とする。
Embodiment 18 FIG. FIG. 32 is a configuration diagram showing a tone signal detecting apparatus according to Embodiment 18 of the present invention. In the figure, the same reference numerals as those in FIG. 2 denote the same or corresponding parts, and a description thereof will be omitted. 11a is a DFT operation unit (Fourier transform means) having the same function as the DFT operation unit 11.
And the PCM signal of channel 1 is used as an input signal. 1
Reference numeral 1b denotes a DFT operation unit (Fourier transform means) having the same function as the DFT operation unit 11;
Let the signal be the input signal. Reference numeral 11c denotes a DFT operation unit (Fourier transform means) having a function similar to that of the DFT operation unit 11, and uses the PCM signal of channel 3 as an input signal.

【0161】また、111は信号形態を特定するチャネ
ルを特定するカウンタ(選択手段)、112はカウンタ
111の出力SCHに基づいてDFT演算部11a,1
1b,11cの何れかの出力を選択するセレクタ(選択
手段)、113はカウンタ111の出力DCHに基づい
て位相反転有無判定部13の判定結果RJを該当チャネ
ルの判定結果出力部16に出力するデマルチプレクサ
(選択手段)である。
Reference numeral 111 denotes a counter (selection means) for specifying a channel for specifying a signal form. Reference numeral 112 denotes a DFT operation unit 11a, 1 based on the output SCH of the counter 111.
A selector (selecting means) 113 for selecting any one of the outputs 1b and 11c outputs a determination result RJ of the phase inversion presence / absence determination unit 13 to the determination result output unit 16 of the corresponding channel based on the output DCH of the counter 111. It is a multiplexer (selection means).

【0162】次に動作について説明する。トーン信号検
出装置が複数のチャネルのPCM信号の信号形態を特定
する場合、トーン信号検出装置を図32に示すように構
成すれば、トーン信号検出装置の処理量を軽減できると
ともに、構成を簡素化することができる。
Next, the operation will be described. When the tone signal detecting device specifies the signal form of the PCM signal of a plurality of channels, if the tone signal detecting device is configured as shown in FIG. 32, the processing amount of the tone signal detecting device can be reduced and the configuration is simplified. can do.

【0163】即ち、DFT演算部11,パワー算出部1
4,トーン有無判定部15及び判定結果出力部16につ
いては各チャネル毎にそれぞれ設けるが、位相量算出部
12及び位相反転有無判定部13については共用化する
ことができる。具体的には、各チャネルのDFT演算部
11a,11b,11cは、図33に示すように、カウ
ンタ111の出力CH1,CH2,CH3が“1”から
“0”へ変化するとDFT演算を開始し、次にカウンタ
111の出力CH1,CH2,CH3が“1”から
“0”へ変化すると、当該DFT演算を終了する。な
お、カウンタ111の出力CH1,CH2,CH3は、
図33に示すように、同時に変化することはなく、各チ
ャネル毎に順番に変化する。
That is, the DFT operation unit 11 and the power calculation unit 1
4, the tone presence / absence determination unit 15 and the determination result output unit 16 are provided for each channel, but the phase amount calculation unit 12 and the phase inversion presence / absence determination unit 13 can be shared. Specifically, the DFT calculation units 11a, 11b, and 11c of each channel start the DFT calculation when the outputs CH1, CH2, and CH3 of the counter 111 change from "1" to "0", as shown in FIG. Then, when the outputs CH1, CH2, and CH3 of the counter 111 change from "1" to "0", the DFT operation ends. The outputs CH1, CH2, CH3 of the counter 111 are
As shown in FIG. 33, they do not change at the same time, but change sequentially for each channel.

【0164】そして、セレクタ112は、カウンタ11
1の出力SCHに基づいてDFT演算部11a,11
b,11cの何れかの出力を選択するが、カウンタ11
1は、図33に示すように、セレクタ112に対して、
ある処理フレームにおけるDFT演算が終了したDFT
演算部の出力を選択させるため、CH1〜CH3のう
ち、選択するチャネルを示すSCHをセレクタ112に
出力する。具体的には、カウンタ111の出力SCHが
“1”であれば、DFT演算部11aの出力を選択して
位相量算出部12に出力し、カウンタ111の出力SC
Hが“2”であれば、DFT演算部11bの出力を選択
して位相量算出部12に出力し、カウンタ111の出力
SCHが“3”であれば、DFT演算部11cの出力を
選択して位相量算出部12に出力する。
Then, the selector 112 sets the counter 11
1 based on the output SCH.
b or 11c is selected, but the counter 11
1 is, as shown in FIG.
DFT for which DFT operation has been completed in a certain processing frame
In order to select the output of the arithmetic unit, the SCH indicating the channel to be selected among CH1 to CH3 is output to the selector 112. Specifically, if the output SCH of the counter 111 is “1”, the output of the DFT operation unit 11a is selected and output to the phase amount calculation unit 12, and the output SC of the counter 111 is output.
If H is "2", the output of the DFT operation unit 11b is selected and output to the phase amount calculation unit 12, and if the output SCH of the counter 111 is "3", the output of the DFT operation unit 11c is selected. And outputs it to the phase amount calculator 12.

【0165】これにより、位相量算出部12が位相量P
Hを演算したのち、位相反転有無判定部13が判定結果
RJをデマルチプレクサ113に出力すると、デマルチ
プレクサ113がカウンタ111の出力DCHに基づい
て位相反転有無判定部13の判定結果RJを該当チャネ
ルの判定結果出力部16に出力するが、カウンタ111
は、図33に示すように、デマルチプレクサ113に対
して、位相反転有無判定部13の判定結果RJを該当チ
ャネルの判定結果出力部16に出力させるため、CH1
〜CH3のうち、出力するチャネルを示すDCHをデマ
ルチプレクサ113に出力する。具体的には、カウンタ
111の出力DCHが“1”であれば、位相反転有無判
定部13の判定結果RJをチャネル1の判定結果出力部
16に出力し、カウンタ111の出力DCHが“2”で
あれば、位相反転有無判定部13の判定結果RJをチャ
ネル2の判定結果出力部16に出力し、カウンタ111
の出力DCHが“3”であれば、位相反転有無判定部1
3の判定結果RJをチャネル3の判定結果出力部16に
出力する。
As a result, the phase amount calculating section 12 sets the phase amount P
After calculating H, the phase inversion presence / absence determination unit 13 outputs the determination result RJ to the demultiplexer 113, and the demultiplexer 113 outputs the determination result RJ of the phase inversion presence / absence determination unit 13 based on the output DCH of the counter 111 to the corresponding channel. Output to the judgment result output unit 16,
As shown in FIG. 33, CH1 is used to cause the demultiplexer 113 to output the determination result RJ of the phase inversion presence / absence determination unit 13 to the determination result output unit 16 of the corresponding channel.
Among them, the DCH indicating the channel to be output is output to the demultiplexer 113. Specifically, when the output DCH of the counter 111 is “1”, the determination result RJ of the phase inversion presence / absence determination unit 13 is output to the determination result output unit 16 of the channel 1, and the output DCH of the counter 111 is “2”. Then, the determination result RJ of the phase inversion presence / absence determination unit 13 is output to the determination result output unit 16 of the channel 2 and the counter 111
Is "3", the phase inversion presence / absence determination unit 1
The determination result RJ of No. 3 is output to the determination result output unit 16 of channel 3.

【0166】以上で明らかなように、この実施の形態1
8によれば、カウンタ111の出力SCHに基づいてD
FT演算部11a,11b,11cの何れかの出力を選
択するとともに、カウンタ111の出力DCHに基づい
て位相反転有無判定部13の判定結果RJを該当チャネ
ルの判定結果出力部16に出力するようにしたので、ト
ーン信号検出装置が複数のチャネルのPCM信号の信号
形態を特定する場合に、位相量算出部12及び位相反転
有無判定部13については共用化することができるよう
になり、その結果、トーン信号検出装置の処理量を軽減
できるとともに、構成を簡素化することができる効果を
奏する。
As is clear from the above, the first embodiment
8, according to the output SCH of the counter 111, D
One of the outputs of the FT calculation units 11a, 11b, and 11c is selected, and the determination result RJ of the phase inversion presence / absence determination unit 13 is output to the determination result output unit 16 of the corresponding channel based on the output DCH of the counter 111. Therefore, when the tone signal detection device specifies the signal form of the PCM signals of a plurality of channels, the phase amount calculation unit 12 and the phase inversion presence / absence determination unit 13 can be shared, and as a result, It is possible to reduce the processing amount of the tone signal detection device and to simplify the configuration.

【0167】なお、上記実施の形態18では、チャネル
の数が3つのものについて示したが、チャネルの数が2
以上であればよく、上記実施の形態18と同様の効果を
奏することができる。
Although the eighteenth embodiment has shown the case where the number of channels is three, the number of channels is two.
The same effects as those of the eighteenth embodiment can be obtained.

【0168】実施の形態19.図34はこの発明の実施
の形態19によるトーン信号検出装置を示す構成図であ
り、図において図32と同一符号は同一または相当部分
を示すので説明を省略する。114aはチャネル1のP
CM信号を保持するバッファ、114bはチャネル2の
PCM信号を保持するバッファ、114cはチャネル3
のPCM信号を保持するバッファ、115はカウンタ1
11の出力SCHに基づいてバッファ114a,114
b,114cの何れかの出力を選択するセレクタ(選択
手段)である。
Embodiment 19 FIG. FIG. 34 is a configuration diagram showing a tone signal detecting apparatus according to Embodiment 19 of the present invention. In the figure, the same reference numerals as those in FIG. 32 denote the same or corresponding parts, and a description thereof will be omitted. 114a is the channel 1 P
A buffer for holding the CM signal, a buffer for holding the PCM signal of channel 2, and a buffer for holding the PCM signal of channel 2
Buffer 115 holds the PCM signal of
11 based on the output SCH.
A selector (selecting means) for selecting any one of the outputs b and 114c.

【0169】次に動作について説明する。トーン信号検
出装置が複数のチャネルのPCM信号の信号形態を特定
する場合、トーン信号検出装置を図34に示すように構
成すれば、トーン信号検出装置の処理量を軽減できると
ともに、構成を簡素化することができる。
Next, the operation will be described. When the tone signal detecting device specifies the signal form of the PCM signal of a plurality of channels, if the tone signal detecting device is configured as shown in FIG. 34, the processing amount of the tone signal detecting device can be reduced and the configuration is simplified. can do.

【0170】即ち、パワー算出部14,トーン有無判定
部15及び判定結果出力部16については各チャネル毎
にそれぞれ設けるが、DFT演算部11,位相量算出部
12及び位相反転有無判定部13については共用化する
ことができる。具体的には、各チャネルのバッファ11
4a,114b,114cには、処理フレーム長に相当
する数の過去のPCM信号が保持されているが、カウン
タ111は、図35に示すように、セレクタ115に対
して、順次、各チャネルのPCM信号を選択して、DF
T演算部11に出力させるため、SCHの値を順番に変
化させる(例えば、“1”→“2”→“3”のように変
化させる)。なお、カウンタ111の出力SCHが
“1”であれば、バッファ114aの出力を選択してD
FT演算部11に出力し、カウンタ111の出力SCH
が“2”であれば、バッファ114bの出力を選択して
DFT演算部11に出力し、カウンタ111の出力SC
Hが“3”であれば、バッファ114cの出力を選択し
てDFT演算部11に出力する。
That is, the power calculation unit 14, the tone presence / absence determination unit 15, and the determination result output unit 16 are provided for each channel, but the DFT operation unit 11, the phase amount calculation unit 12, and the phase inversion presence / absence determination unit 13 are provided. Can be shared. Specifically, the buffer 11 of each channel
4a, 114b, and 114c hold the number of past PCM signals corresponding to the processing frame length. As shown in FIG. Select the signal and DF
The SCH value is sequentially changed (for example, “1” → “2” → “3”) so as to be output to the T calculation unit 11. If the output SCH of the counter 111 is "1", the output of the buffer 114a is selected and D
Output to the FT operation unit 11 and output SCH of the counter 111
Is "2", the output of the buffer 114b is selected and output to the DFT operation unit 11, and the output SC of the counter 111 is output.
If H is “3”, the output of the buffer 114 c is selected and output to the DFT operation unit 11.

【0171】これにより、DFT演算部11がPCM信
号の実数部R及び虚数部Qを演算して、位相量算出部1
2が位相量PHを演算したのち、位相反転有無判定部1
3が判定結果RJをデマルチプレクサ113に出力する
と、デマルチプレクサ113がカウンタ111の出力D
CHに基づいて位相反転有無判定部13の判定結果RJ
を該当チャネルの判定結果出力部16に出力するが、カ
ウンタ111は、図35に示すように、デマルチプレク
サ113に対して、位相反転有無判定部13の判定結果
RJを該当チャネルの判定結果出力部16に出力させる
ため、SCHに同期してDCHの値を変化させる。具体
的には、カウンタ111の出力DCHが“1”であれ
ば、位相反転有無判定部13の判定結果RJをチャネル
1の判定結果出力部16に出力し、カウンタ111の出
力DCHが“2”であれば、位相反転有無判定部13の
判定結果RJをチャネル2の判定結果出力部16に出力
し、カウンタ111の出力DCHが“3”であれば、位
相反転有無判定部13の判定結果RJをチャネル3の判
定結果出力部16に出力する。
As a result, the DFT calculator 11 calculates the real part R and the imaginary part Q of the PCM signal, and
2 calculates the phase amount PH, and then determines whether or not phase inversion exists 1
3 outputs the determination result RJ to the demultiplexer 113, and the demultiplexer 113 outputs
Determination result RJ of phase inversion presence / absence determination unit 13 based on CH
Is output to the determination result output unit 16 of the corresponding channel, and the counter 111 sends the determination result RJ of the phase inversion presence / absence determination unit 13 to the demultiplexer 113 as shown in FIG. In order to output to DCH 16, the value of DCH is changed in synchronization with SCH. Specifically, when the output DCH of the counter 111 is “1”, the determination result RJ of the phase inversion presence / absence determination unit 13 is output to the determination result output unit 16 of the channel 1, and the output DCH of the counter 111 is “2”. Then, the determination result RJ of the phase inversion presence / absence determination unit 13 is output to the determination result output unit 16 of the channel 2. If the output DCH of the counter 111 is “3”, the determination result RJ of the phase inversion presence / absence determination unit 13 is output. Is output to the determination result output unit 16 of the channel 3.

【0172】以上で明らかなように、この実施の形態1
9によれば、カウンタ111の出力SCHに基づいてバ
ッファ114a,114b,114cの何れかの出力を
選択するとともに、カウンタ111の出力DCHに基づ
いて位相反転有無判定部13の判定結果RJを該当チャ
ネルの判定結果出力部16に出力するようにしたので、
トーン信号検出装置が複数のチャネルのPCM信号の信
号形態を特定する場合に、DFT演算部11,位相量算
出部12及び位相反転有無判定部13については共用化
することができるようになり、その結果、トーン信号検
出装置の処理量を軽減できるとともに、構成を簡素化す
ることができる効果を奏する。
As is apparent from the above, the first embodiment
According to No. 9, any one of the buffers 114a, 114b, and 114c is selected based on the output SCH of the counter 111, and the determination result RJ of the phase inversion presence / absence determination unit 13 is determined based on the output DCH of the counter 111. Is output to the determination result output unit 16 of
When the tone signal detection device specifies the signal form of the PCM signal of a plurality of channels, the DFT operation unit 11, the phase amount calculation unit 12, and the phase inversion presence / absence determination unit 13 can be shared. As a result, the processing amount of the tone signal detection device can be reduced, and the configuration can be simplified.

【0173】なお、上記実施の形態19では、チャネル
の数が3つのものについて示したが、チャネルの数が2
以上であればよく、上記実施の形態19と同様の効果を
奏することができる。
Although the nineteenth embodiment has been described for the case where the number of channels is three, the number of channels is two.
The same effect as that of the nineteenth embodiment can be obtained as long as the above is satisfied.

【0174】[0174]

【発明の効果】以上のように、請求項1記載の発明によ
れば、位相量演算手段により演算された位相量の変化を
所定値と比較して、入力信号の位相反転の有無を判定す
るように構成したので、入力信号にトーン信号が含まれ
ている場合、そのトーン信号の位相反転の有無を判定す
ることができる効果がある。
As described above, according to the first aspect of the present invention, the change of the phase amount calculated by the phase amount calculating means is compared with a predetermined value to determine whether or not the input signal is inverted. With such a configuration, when a tone signal is included in the input signal, it is possible to determine the presence or absence of phase inversion of the tone signal.

【0175】請求項2記載の発明によれば、トーン信号
有無判定手段及び位相反転有無判定手段の判定結果に基
づいて入力信号の信号形態を特定するように構成したの
で、入力信号に含まれているトーン信号を検出すること
ができるとともに、そのトーン信号の位相反転の有無を
判定することができる効果がある。
According to the second aspect of the present invention, the signal form of the input signal is specified based on the results of the determination by the tone signal presence / absence determination means and the phase inversion presence / absence determination means. This has the effect of being able to detect the tone signal that is present and to determine the presence or absence of phase inversion of the tone signal.

【0176】請求項3記載の発明によれば、除算器から
出力される除算結果に対し、逆三角関数演算を行う方法
として、あらかじめ記憶媒体に作成したテーブルの値を
読み出すという方法を用いる場合に、除算結果の値の範
囲が制限されるため、テーブルの容量を小さくできる効
果がある。
According to the third aspect of the present invention, as a method of performing an inverse trigonometric function operation on a division result output from a divider, a method of reading a value of a table created in a storage medium in advance is used. Since the range of the value of the division result is limited, there is an effect that the capacity of the table can be reduced.

【0177】請求項4記載の発明によれば、除算器から
出力される除算結果に対し、逆三角関数演算を行う方法
として、あらかじめ記憶媒体に作成したテーブルの値を
読み出すという方法を用いる場合に、除算結果の値の範
囲が制限されるため、テーブルの容量を小さくできる効
果がある。
According to the fourth aspect of the present invention, as a method of performing an inverse trigonometric function operation on a division result output from a divider, a method of reading a value of a table created in a storage medium in advance is used. Since the range of the value of the division result is limited, there is an effect that the capacity of the table can be reduced.

【0178】請求項5記載の発明によれば、絶対値比較
部の比較結果に基づいて実数部を虚数部で除算し又は虚
数部を実数部で除算するとともに、その除算結果を所定
値と比較し、その比較結果に基づいて選定した演算式に
基づき逆三角関数を直線近似するように構成したので、
逆三角関数演算を簡易に計算できる効果がある。
According to the present invention, the real part is divided by the imaginary part or the imaginary part is divided by the real part based on the comparison result of the absolute value comparing part, and the result of the division is compared with a predetermined value. Since the inverse trigonometric function is configured to be linearly approximated based on the operation formula selected based on the comparison result,
There is an effect that the inverse trigonometric function operation can be easily calculated.

【0179】請求項6記載の発明によれば、絶対値比較
部の比較結果に基づいて実数部又は虚数部を2乗和の平
方根で除算するとともに、その除算結果を所定値と比較
し、その比較結果に基づいて選定した演算式に基づき逆
三角関数を直線近似するように構成したので、逆三角関
数演算を簡易に計算できる効果がある。
According to the invention of claim 6, the real part or the imaginary part is divided by the square root of the sum of squares based on the comparison result of the absolute value comparing section, and the division result is compared with a predetermined value. Since the inverse trigonometric function is configured to be linearly approximated based on the arithmetic expression selected based on the comparison result, there is an effect that the inverse trigonometric function operation can be easily calculated.

【0180】請求項7記載の発明によれば、位相量演算
手段により演算された現在の位相量と遅延部により複数
フレーム分遅延された過去の位相量との差分値を所定値
と比較して、入力信号の位相反転の有無を判定するよう
に構成したので、ノイズ等の影響を減らし、正確に位相
反転の有無を判定できる効果がある。
According to the present invention, the difference value between the current phase amount calculated by the phase amount calculating means and the past phase amount delayed by a plurality of frames by the delay unit is compared with a predetermined value. Since the configuration is such that the presence or absence of the phase inversion of the input signal is determined, there is an effect that the influence of noise or the like is reduced and the presence or absence of the phase inversion can be accurately determined.

【0181】請求項8記載の発明によれば、位相量演算
手段により演算された現在の位相量と遅延部により遅延
された過去の位相量との差分値を平滑化し、その平滑化
した差分値を過去の位相量に加算するように構成したの
で、位相反転が無いにも拘わらず、位相量が一定の割合
で増加又は減少する場合でも、正確に位相反転の有無を
判定することができる効果がある。
According to the present invention, the difference between the current phase calculated by the phase calculator and the past phase delayed by the delay unit is smoothed, and the smoothed difference is calculated. Is added to the past phase amount, so that the presence / absence of phase inversion can be accurately determined even when the phase amount increases or decreases at a constant rate despite no phase inversion. There is.

【0182】請求項9記載の発明によれば、第1の遅延
回路により遅延された位相量と第2の遅延回路により遅
延された位相量との差分値を平滑化するとともに、その
平滑化した差分値に所定の係数を乗算し、その乗算結果
を遅延部により遅延された位相量に加算するように構成
したので、位相反転が無いにも拘わらず、位相量が一定
の割合で増加又は減少する場合でも、正確に位相反転の
有無を判定することができる効果がある。
According to the ninth aspect of the present invention, the difference between the phase amount delayed by the first delay circuit and the phase amount delayed by the second delay circuit is smoothed, and the smoothed value is obtained. The difference value is multiplied by a predetermined coefficient, and the multiplication result is added to the phase amount delayed by the delay unit, so that the phase amount increases or decreases at a constant rate despite no phase inversion. Even in the case of performing, there is an effect that the presence or absence of phase inversion can be accurately determined.

【0183】請求項10記載の発明によれば、互いに遅
延フレーム数が異なる過去の位相量を補償する複数の位
相量補償部と、複数の位相量補償部の出力にそれぞれ基
づいて入力信号の位相反転の有無を判定する複数の差分
値比較部と、複数の差分値比較部の判定結果に基づいて
最終的に入力信号の位相反転の有無を判定する最終判定
部とを設けるように構成したので、ノイズ等の影響を受
けることなく、更に確実に位相反転の有無を判定するこ
とができる効果がある。
According to the tenth aspect of the present invention, a plurality of phase amount compensators for compensating for past phase amounts having different numbers of delay frames from each other, and a phase of an input signal based on outputs of the plurality of phase amount compensators, respectively. Since there are provided a plurality of difference value comparison units for determining the presence or absence of inversion and a final determination unit for finally determining the presence or absence of phase inversion of the input signal based on the determination results of the plurality of difference value comparison units. There is an effect that the presence or absence of the phase inversion can be determined more reliably without being affected by noise or the like.

【0184】請求項11記載の発明によれば、トーン信
号有無判定手段の判定結果がトーン信号無しから有りに
変化して第1の設定時間を経過すると、位相量演算手段
により演算された位相量を記憶する第1の記憶部と、ト
ーン信号有無判定手段の判定結果がトーン信号無しから
有りに変化して第2の設定時間を経過すると、位相量演
算手段により演算された位相量を記憶する第2の記憶部
とを設け、第1の記憶部により記憶された位相量と第2
の記憶部により記憶された位相量との差分値を演算し、
その差分値を所定値と比較して入力信号の位相反転の有
無を判定するように構成したので、第1及び第2の設定
時間を適切な値に設定すれば、位相反転前後における位
相不安定時の位相量ではなく、位相安定時の位相量に基
づいて位相反転の有無を判定できるようになり、その結
果、位相反転が瞬時に起こらず、ある時間をかけて緩や
かに位相が反転するような場合でも、正確に位相反転の
有無を判定することができる効果がある。
According to the eleventh aspect, when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence and the first set time has elapsed, the phase amount calculated by the phase amount calculation means is obtained. And a phase amount calculated by the phase amount calculation means when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence and a second set time elapses. A second storage unit, wherein the phase amount stored by the first storage unit and the second
Calculate the difference value with the phase amount stored by the storage unit of
Since the difference value is compared with a predetermined value to determine the presence or absence of the phase inversion of the input signal, if the first and second set times are set to appropriate values, the phase instability before and after the phase inversion may be reduced. Phase inversion can be determined based on the phase amount when the phase is stable instead of the amount of phase inversion. As a result, the phase inversion does not occur instantaneously, and the phase is gradually inverted over a certain period of time. Even in this case, there is an effect that the presence or absence of phase inversion can be accurately determined.

【0185】請求項12記載の発明によれば、差分値比
較部による現在の判定結果と結果保持部に保持されてい
る過去の判定結果に基づいて最終的に入力信号の位相反
転の有無を判定するように構成したので、ノイズ等の影
響等による誤判定を招くことなく、正確に位相反転の有
無を判定することができる効果がある。
According to the twelfth aspect of the present invention, it is finally determined whether or not the phase of the input signal is inverted based on the current determination result by the difference value comparison unit and the past determination result held in the result holding unit. With this configuration, it is possible to accurately determine the presence / absence of phase inversion without causing erroneous determination due to the influence of noise or the like.

【0186】請求項13記載の発明によれば、入力信号
の信号形態を位相反転トーン信号,非位相反転トーン信
号又は非トーン信号の何れかに特定するように構成した
ので、信号形態を細かく分類することができる効果があ
る。
According to the thirteenth aspect of the present invention, the signal form of the input signal is specified to be either a phase-inverted tone signal, a non-phase-inverted tone signal, or a non-tone signal. There is an effect that can be.

【0187】請求項14記載の発明によれば、トーン信
号有無判定手段の判定結果がトーン信号無しから有りに
変化すると、その変化後の一定期間内に入力される位相
反転有りを示す位相反転有無判定手段の判定結果を無効
とするように構成したので、通常は位相反転があり得な
い期間、即ち、トーン信号が検出されて間もない期間に
おいては、位相反転有りを示す判定結果をノイズ等の影
響による誤判定とみなすことができるようになり、その
結果、更に正確に位相反転の有無を判定することができ
る効果がある。
According to the fourteenth aspect of the present invention, when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence, the phase inversion presence / absence input within a certain period after the change indicates the presence of phase inversion. Since the determination result of the determination means is configured to be invalid, the determination result indicating the presence of the phase inversion is usually given as noise or the like in a period in which phase inversion cannot normally occur, that is, in a period immediately after the tone signal is detected. Can be regarded as an erroneous determination due to the effect of the above, and as a result, there is an effect that the presence / absence of the phase inversion can be more accurately determined.

【0188】請求項15記載の発明によれば、位相反転
有無判定手段の判定結果を有効なものとして信号形態を
特定した場合、その判定結果を入力した後の一定期間内
に入力される位相反転有りを示す位相反転有無判定手段
の判定結果を無効とするように構成したので、通常は位
相反転があり得ない期間、即ち、位相反転が検出されて
間もない期間においては、位相反転有りを示す判定結果
をノイズ等の影響による誤判定とみなすことができるよ
うになり、その結果、更に正確に位相反転の有無を判定
することができる効果がある。
According to the fifteenth aspect, when the signal form is specified with the determination result of the phase inversion presence / absence determination means as valid, the phase inversion input within a certain period after the determination result is input. Since the determination result of the phase inversion presence / absence determination means indicating presence is configured to be invalid, the period in which phase inversion cannot normally occur, that is, in the period immediately after phase inversion is detected, the presence of phase inversion is determined. The determination result shown can be regarded as an erroneous determination due to the influence of noise or the like, and as a result, there is an effect that the presence or absence of phase inversion can be determined more accurately.

【0189】請求項16記載の発明によれば、少なくと
も2回以上、位相反転有りを示す位相反転有無判定手段
の判定結果を入力した場合に限り、位相反転有りとして
信号形態を特定するように構成したので、ノイズ等の影
響による誤判定を有効に防止することができる効果があ
る。
According to the sixteenth aspect of the present invention, the signal form is identified as having phase inversion only when the determination result of the phase inversion presence / absence determining means indicating that phase inversion is present is input at least twice or more. Therefore, there is an effect that erroneous determination due to the influence of noise or the like can be effectively prevented.

【0190】請求項17記載の発明によれば、送信側の
電力演算手段により演算された電力と受信側の電力演算
手段により演算された電力を比較し、電力が大きい側の
フーリエ変換手段の出力を選択するように構成したの
で、トーン信号検出装置が送信側信号と受信側信号を入
力し、これらの双方に対して入力信号の信号形態を特定
する場合に、位相量演算手段及び位相反転有無判定手段
については共用化することができるようになり、その結
果、トーン信号検出装置の処理量を軽減できるととも
に、構成を簡素化することができる効果がある。
According to the seventeenth aspect, the power calculated by the power calculating means on the transmitting side is compared with the power calculated by the power calculating means on the receiving side, and the output of the Fourier transforming means on the higher power side is compared. When the tone signal detection device inputs the transmission side signal and the reception side signal and specifies the signal form of the input signal for both of them, the phase amount calculation means and the presence or absence of the phase inversion are selected. The determination means can be shared, and as a result, the processing amount of the tone signal detection device can be reduced and the configuration can be simplified.

【0191】請求項18記載の発明によれば、全帯域パ
ワー演算手段により演算された送信側の全帯域電力と受
信側の全帯域電力を比較し、全帯域電力が大きい側のフ
ーリエ変換手段の出力を選択するように構成したので、
トーン信号検出装置が送信側信号と受信側信号を入力
し、これらの双方に対して入力信号の信号形態を特定す
る場合に、位相量演算手段及び位相反転有無判定手段に
ついては共用化することができるようになり、その結
果、トーン信号検出装置の処理量を軽減できるととも
に、構成を簡素化することができる効果がある。
According to the eighteenth aspect of the present invention, the whole band power on the transmitting side and the whole band power on the receiving side calculated by the whole band power calculating means are compared with each other. Since we have configured to select the output,
When the tone signal detection device inputs the transmission side signal and the reception side signal and specifies the signal form of the input signal for both of them, the phase amount calculation means and the phase inversion presence / absence determination means may be shared. As a result, the processing amount of the tone signal detection device can be reduced, and the configuration can be simplified.

【0192】請求項19記載の発明によれば、雑音比演
算手段により演算された送信側の信号対雑音比と受信側
の信号対雑音比を比較し、信号対雑音比が高い側のフー
リエ変換手段の出力を選択するように構成したので、送
信側信号と受信側信号を入力し、これらの双方に対して
入力信号の信号形態を特定する場合に、位相量演算手段
及び位相反転有無判定手段については共用化することが
できるようになり、その結果、トーン信号検出装置の処
理量を軽減できるとともに、構成を簡素化することがで
きる効果がある。
According to the nineteenth aspect of the present invention, the signal-to-noise ratio on the transmitting side and the signal-to-noise ratio on the receiving side calculated by the noise ratio calculating means are compared, and the Fourier transform on the higher signal-to-noise ratio is performed. Since the output of the means is selected, the transmission side signal and the reception side signal are input, and when the signal form of the input signal is specified for both of them, the phase amount calculation means and the phase inversion presence / absence determination means Can be shared, and as a result, the processing amount of the tone signal detecting device can be reduced and the configuration can be simplified.

【0193】請求項20記載の発明によれば、各チャネ
ル毎にフーリエ変換手段,電力演算手段,トーン信号有
無判定手段及び信号形態特定手段を備える一方、信号形
態を特定するチャネルを選択する選択手段を備えるよう
に構成したので、トーン信号検出装置が複数のチャネル
の入力信号の信号形態を特定する場合に、位相量演算手
段及び位相反転有無判定手段については共用化すること
ができるようになり、その結果、トーン信号検出装置の
処理量を軽減できるとともに、構成を簡素化することが
できる効果がある。
According to the twentieth aspect of the present invention, each channel includes a Fourier transforming means, a power calculating means, a tone signal presence / absence determining means, and a signal form specifying means, while selecting means for selecting a channel for specifying a signal form. When the tone signal detection device specifies the signal form of the input signals of a plurality of channels, the phase amount calculation means and the phase inversion presence / absence determination means can be shared, As a result, there is an effect that the processing amount of the tone signal detection device can be reduced and the configuration can be simplified.

【0194】請求項21記載の発明によれば、各チャネ
ル毎に電力演算手段,トーン信号有無判定手段及び信号
形態特定手段を備える一方、信号形態を特定するチャネ
ルを選択する選択手段を備えるように構成したので、ト
ーン信号検出装置が複数のチャネルの入力信号の信号形
態を特定する場合に、フーリエ変換手段,位相量演算手
段及び位相反転有無判定手段については共用化すること
ができるようになり、その結果、トーン信号検出装置の
処理量を軽減できるとともに、構成を簡素化することが
できる効果がある。
According to the twenty-first aspect of the present invention, each channel is provided with a power calculating means, a tone signal presence / absence determining means, and a signal form specifying means, and is provided with a selecting means for selecting a channel for specifying a signal form. With this configuration, when the tone signal detection device specifies the signal forms of the input signals of the plurality of channels, the Fourier transform means, the phase amount calculation means, and the phase inversion presence / absence determination means can be shared, As a result, there is an effect that the processing amount of the tone signal detection device can be reduced and the configuration can be simplified.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 この発明の実施の形態1によるトーン信号検
出装置を示す構成図である。
FIG. 1 is a configuration diagram showing a tone signal detection device according to a first embodiment of the present invention.

【図2】 この発明の実施の形態2によるトーン信号検
出装置を示す構成図である。
FIG. 2 is a configuration diagram showing a tone signal detection device according to a second embodiment of the present invention.

【図3】 判定結果出力部の判定結果を説明する説明図
である。
FIG. 3 is an explanatory diagram illustrating a determination result of a determination result output unit.

【図4】 この発明の実施の形態3によるトーン信号検
出装置の位相量算出部を示す構成図である。
FIG. 4 is a configuration diagram illustrating a phase amount calculation unit of a tone signal detection device according to a third embodiment of the present invention.

【図5】 演算結果出力部の動作を説明する説明図であ
る。
FIG. 5 is an explanatory diagram illustrating an operation of a calculation result output unit.

【図6】 演算結果出力部の動作を説明する説明図であ
る。
FIG. 6 is an explanatory diagram illustrating an operation of a calculation result output unit.

【図7】 演算結果出力部の動作を説明する説明図であ
る。
FIG. 7 is an explanatory diagram illustrating an operation of a calculation result output unit.

【図8】 演算結果出力部の動作を説明する説明図であ
る。
FIG. 8 is an explanatory diagram illustrating an operation of a calculation result output unit.

【図9】 この発明の実施の形態4によるトーン信号検
出装置の位相量算出部を示す構成図である。
FIG. 9 is a configuration diagram illustrating a phase amount calculation unit of a tone signal detection device according to a fourth embodiment of the present invention.

【図10】 この発明の実施の形態5によるトーン信号
検出装置の逆三角関数演算部を示す構成図である。
FIG. 10 is a configuration diagram illustrating an inverse trigonometric function operation unit of a tone signal detection device according to a fifth embodiment of the present invention.

【図11】 直線近似を説明する説明図である。FIG. 11 is an explanatory diagram illustrating linear approximation.

【図12】 この発明の実施の形態6によるトーン信号
検出装置の位相反転有無判定部を示す構成図である。
FIG. 12 is a configuration diagram illustrating a phase inversion presence / absence determination unit of a tone signal detection device according to a sixth embodiment of the present invention.

【図13】 位相反転有無判定部の動作を説明する説明
図である。
FIG. 13 is an explanatory diagram illustrating an operation of a phase inversion presence / absence determination unit.

【図14】 位相反転有無判定部の動作を説明する説明
図である。
FIG. 14 is an explanatory diagram illustrating an operation of a phase inversion presence / absence determination unit.

【図15】 この発明の実施の形態7によるトーン信号
検出装置の位相反転有無判定部を示す構成図である。
FIG. 15 is a configuration diagram illustrating a phase inversion presence / absence determination unit of a tone signal detection device according to a seventh embodiment of the present invention.

【図16】 この発明の実施の形態8によるトーン信号
検出装置の位相反転有無判定部を示す構成図である。
FIG. 16 is a configuration diagram illustrating a phase inversion presence / absence determination unit of a tone signal detection device according to an eighth embodiment of the present invention.

【図17】 この発明の実施の形態9によるトーン信号
検出装置の位相反転有無判定部を示す構成図である。
FIG. 17 is a configuration diagram showing a phase inversion presence / absence determination unit of a tone signal detection device according to Embodiment 9 of the present invention.

【図18】 この発明の実施の形態10によるトーン信
号検出装置を示す構成図である。
FIG. 18 is a configuration diagram showing a tone signal detection device according to a tenth embodiment of the present invention.

【図19】 この発明の実施の形態10によるトーン信
号検出装置の位相反転有無判定部を示す構成図である。
FIG. 19 is a configuration diagram illustrating a phase inversion presence / absence determination unit of the tone signal detection device according to the tenth embodiment of the present invention.

【図20】 位相反転有無判定部の動作を説明する説明
図である。
FIG. 20 is an explanatory diagram illustrating an operation of a phase inversion presence / absence determination unit.

【図21】 この発明の実施の形態11によるトーン信
号検出装置の位相反転有無判定部を示す構成図である。
FIG. 21 is a configuration diagram showing a phase inversion presence / absence determination unit of a tone signal detection device according to Embodiment 11 of the present invention.

【図22】 判定結果出力部の判定結果を説明する説明
図である。
FIG. 22 is an explanatory diagram illustrating a determination result of a determination result output unit.

【図23】 この発明の実施の形態13によるトーン信
号検出装置の判定結果出力部を示す構成図である。
FIG. 23 is a configuration diagram illustrating a determination result output unit of the tone signal detection device according to Embodiment 13 of the present invention;

【図24】 判定結果出力部の動作を説明する説明図で
ある。
FIG. 24 is an explanatory diagram illustrating an operation of a determination result output unit.

【図25】 判定結果出力部の判定結果を説明する説明
図である。
FIG. 25 is an explanatory diagram illustrating a determination result of a determination result output unit.

【図26】 この発明の実施の形態14によるトーン信
号検出装置の判定結果出力部を示す構成図である。
FIG. 26 is a configuration diagram illustrating a determination result output unit of the tone signal detection device according to Embodiment 14 of the present invention;

【図27】 判定結果出力部の動作を説明する説明図で
ある。
FIG. 27 is an explanatory diagram illustrating an operation of a determination result output unit.

【図28】 判定結果出力部の状態遷移を説明する説明
図である。
FIG. 28 is an explanatory diagram illustrating a state transition of a determination result output unit.

【図29】 この発明の実施の形態15によるトーン信
号検出装置を示す構成図である。
FIG. 29 is a configuration diagram showing a tone signal detection device according to Embodiment 15 of the present invention.

【図30】 この発明の実施の形態16によるトーン信
号検出装置を示す構成図である。
FIG. 30 is a configuration diagram showing a tone signal detection device according to Embodiment 16 of the present invention.

【図31】 この発明の実施の形態17によるトーン信
号検出装置を示す構成図である。
FIG. 31 is a configuration diagram showing a tone signal detection device according to a seventeenth embodiment of the present invention.

【図32】 この発明の実施の形態18によるトーン信
号検出装置を示す構成図である。
FIG. 32 is a configuration diagram showing a tone signal detection device according to Embodiment 18 of the present invention.

【図33】 セレクタ等の動作を説明する説明図であ
る。
FIG. 33 is an explanatory diagram illustrating an operation of a selector and the like.

【図34】 この発明の実施の形態19によるトーン信
号検出装置を示す構成図である。
FIG. 34 is a configuration diagram showing a tone signal detection device according to a nineteenth embodiment of the present invention.

【図35】 セレクタ等の動作を説明する説明図であ
る。
FIG. 35 is an explanatory diagram illustrating an operation of a selector and the like.

【図36】 従来のトーン信号検出装置を示す構成図で
ある。
FIG. 36 is a configuration diagram showing a conventional tone signal detection device.

【図37】 PCM信号のパワースペクトラムを示す波
形図である。
FIG. 37 is a waveform diagram showing a power spectrum of a PCM signal.

【符号の説明】[Explanation of symbols]

11,11a,11b,11c DFT演算部(フーリ
エ変換手段)、12位相量算出部(位相量演算手段)、
13,81 位相反転有無判定部(位相反転有無判定手
段)、14 パワー算出部(電力演算手段)、15 ト
ーン有無判定部(トーン信号有無判定手段)、16 判
定結果出力部(信号形態特定手段)、21,22 絶対
値演算部、23 比較器(絶対値比較部)、24,25
極性判定部、26,33 位相量演算部、32 2乗
和演算部、51,52,61,62,63,71 ディ
レイメモリ(遅延部)、53,59,74,86 差分
器(差分値比較部)、54,75,87 比較器(差分
値比較部)、55 位相量補償部、64 ディレイメモ
リ(第1の遅延回路)、65 ディレイメモリ(第2の
遅延回路)、66 位相量補償回路、76,90 判定
回路(最終判定部)、83 データ保持回路(第1の記
憶部)、85 データ保持回路(第2の記憶部)、8
8,89 ディレメモリ(結果保持部)、103,10
6,108比較器(選択手段)、104,112,11
5 セレクタ(選択手段)、105全帯域パワー算出部
(全帯域パワー演算手段)、107 S/N算出部(雑
音比演算手段)、111 カウンタ(選択手段)、11
3 デマルチプレクサ(選択手段)。
11, 11a, 11b, 11c DFT calculation unit (Fourier transform means), 12 phase amount calculation unit (phase amount calculation means),
13, 81 Phase inversion presence / absence determination section (phase inversion presence / absence determination means), 14 power calculation section (power calculation means), 15 tone presence / absence determination section (tone signal presence / absence determination means), 16 determination result output section (signal form identification means) , 21, 22 Absolute value calculation unit, 23 comparator (absolute value comparison unit), 24, 25
Polarity determination section, 26, 33 Phase amount calculation section, 32 sum of squares calculation section, 51, 52, 61, 62, 63, 71 Delay memory (delay section), 53, 59, 74, 86 Differentiator (difference value comparison) , 54, 75, 87 Comparator (difference value comparison unit), 55 phase amount compensation unit, 64 delay memory (first delay circuit), 65 delay memory (second delay circuit), 66 phase amount compensation circuit , 76, 90 determination circuit (final determination section), 83 data holding circuit (first storage section), 85 data holding circuit (second storage section), 8
8,89 delay memory (result holding unit), 103,10
6,108 comparators (selection means), 104,112,11
5 selector (selection means), 105 all-band power calculation section (all-band power calculation means), 107 S / N calculation section (noise ratio calculation means), 111 counter (selection means), 11
3 Demultiplexer (selection means).

Claims (21)

【特許請求の範囲】[Claims] 【請求項1】 入力信号をフーリエ変換して、周波数領
域の信号を求めるフーリエ変換手段と、上記フーリエ変
換手段により求められた周波数領域の信号の実数部及び
虚数部に基づき当該入力信号の位相量を演算する位相量
演算手段と、上記位相量演算手段により演算された位相
量の変化を所定値と比較して、入力信号の位相反転の有
無を判定する位相反転有無判定手段とを備えたトーン信
号検出装置。
1. A Fourier transform means for performing a Fourier transform on an input signal to obtain a signal in a frequency domain, and a phase amount of the input signal based on a real part and an imaginary part of the signal in the frequency domain obtained by the Fourier transform means. And a phase inversion presence / absence determination means for comparing the change in the phase amount calculated by the phase amount operation means with a predetermined value to determine whether or not the input signal is inverted. Signal detection device.
【請求項2】 フーリエ変換手段により求められた周波
数領域の信号の実数部及び虚数部から入力信号の電力を
演算する電力演算手段と、上記電力演算手段により演算
された入力信号の電力を所定値と比較して、トーン信号
の有無を判定するトーン信号有無判定手段と、上記トー
ン信号有無判定手段及び位相反転有無判定手段の判定結
果に基づいて入力信号の信号形態を特定する信号形態特
定手段とを備えたことを特徴とする請求項1記載のトー
ン信号検出装置。
2. A power calculating means for calculating the power of the input signal from a real part and an imaginary part of the signal in the frequency domain obtained by the Fourier transform means, and the power of the input signal calculated by the power calculating means being a predetermined value. A tone signal presence / absence determining means for determining the presence / absence of a tone signal; and a signal form identification means for identifying the signal form of the input signal based on the determination results of the tone signal presence / absence determination means and the phase inversion presence / absence determination means. The tone signal detecting device according to claim 1, further comprising:
【請求項3】 位相量演算手段は、フーリエ変換手段に
より求められた周波数領域の信号の実数部及び虚数部の
極性を判定する極性判定部と、上記周波数領域の信号の
実数部及び虚数部の絶対値を演算する絶対値演算部と、
上記絶対値演算部により演算された実数部の絶対値と虚
数部の絶対値を比較する絶対値比較部と、上記極性判定
部の判定結果及び上記絶対値比較部の比較結果に応じた
演算式を選定するとともに、上記絶対値演算部により演
算された実数部及び虚数部の絶対値を当該演算式に代入
して入力信号の位相量を演算する位相量演算部とを備え
たことを特徴とする請求項1または請求項2記載のトー
ン信号検出装置。
3. A phase amount calculating means for determining a polarity of a real part and an imaginary part of a signal in a frequency domain obtained by a Fourier transform means, and a polarity determining part for determining a polarity of a real part and an imaginary part of the signal in the frequency domain. An absolute value calculator for calculating an absolute value;
An absolute value comparison unit that compares the absolute value of the real part and the absolute value of the imaginary part calculated by the absolute value calculation unit, and an arithmetic expression corresponding to the determination result of the polarity determination unit and the comparison result of the absolute value comparison unit And a phase amount calculating unit that calculates the phase amount of the input signal by substituting the absolute values of the real part and the imaginary part calculated by the absolute value calculating unit into the arithmetic expression. 3. The tone signal detecting device according to claim 1, wherein
【請求項4】 位相量演算手段は、フーリエ変換手段に
より求められた周波数領域の信号の実数部及び虚数部の
極性を判定する極性判定部と、上記周波数領域の信号の
実数部及び虚数部の2乗和の平方根を演算する2乗和演
算部と、上記周波数領域の信号の実数部及び虚数部の絶
対値を演算する絶対値演算部と、上記絶対値演算部によ
り演算された実数部の絶対値と虚数部の絶対値を比較す
る絶対値比較部と、上記極性判定部の判定結果及び上記
絶対値比較部の比較結果に応じた演算式を選定するとと
もに、上記絶対値演算部により演算された実数部又は虚
数部の絶対値及び上記2乗和演算部により演算された2
乗和の平方根を当該演算式に代入して入力信号の位相量
を演算する位相量演算部とを備えたことを特徴とする請
求項1または請求項2記載のトーン信号検出装置。
4. A phase amount calculating means for determining a polarity of a real part and an imaginary part of a frequency domain signal obtained by a Fourier transform means, and a real part and an imaginary part of the frequency domain signal. A sum-of-squares calculator for calculating the square root of the sum of squares, an absolute-value calculator for calculating the absolute values of the real part and the imaginary part of the signal in the frequency domain, and a real-number part calculated by the absolute value calculator. An absolute value comparing unit that compares the absolute value and the absolute value of the imaginary part, and an arithmetic expression according to the determination result of the polarity determining unit and the comparison result of the absolute value comparing unit are selected and calculated by the absolute value calculating unit. The absolute value of the real part or the imaginary part obtained by the calculation and the 2
3. The tone signal detection device according to claim 1, further comprising: a phase amount calculation unit that calculates a phase amount of the input signal by substituting the square root of the sum of squares into the calculation expression.
【請求項5】 位相量演算部は、絶対値比較部の比較結
果に基づいて実数部を虚数部で除算し又は虚数部を実数
部で除算するとともに、その除算結果を所定値と比較
し、その比較結果に基づいて選定した演算式に基づき逆
三角関数を直線近似することを特徴とする請求項3記載
のトーン信号検出装置。
5. The phase amount calculating section divides a real part by an imaginary part or divides an imaginary part by a real part based on a comparison result of the absolute value comparing section, and compares the division result with a predetermined value. 4. The tone signal detecting device according to claim 3, wherein the inverse trigonometric function is linearly approximated based on an arithmetic expression selected based on the comparison result.
【請求項6】 位相量演算部は、絶対値比較部の比較結
果に基づいて実数部又は虚数部を2乗和の平方根で除算
するとともに、その除算結果を所定値と比較し、その比
較結果に基づいて選定した演算式に基づき逆三角関数を
直線近似することを特徴とする請求項4記載のトーン信
号検出装置。
6. A phase amount calculating unit for dividing a real part or an imaginary part by a square root of a sum of squares based on a comparison result of an absolute value comparing unit, comparing the division result with a predetermined value, and comparing the comparison result. 5. The tone signal detecting device according to claim 4, wherein the inverse trigonometric function is linearly approximated based on an arithmetic expression selected on the basis of:
【請求項7】 位相反転有無判定手段は、位相量演算手
段により演算された位相量を複数フレーム分遅延する遅
延部と、上記位相量演算手段により演算された現在の位
相量と上記遅延部により遅延された過去の位相量との差
分値を所定値と比較して入力信号の位相反転の有無を判
定する差分値比較部とを備えたことを特徴とする請求項
1または請求項2記載のトーン信号検出装置。
7. A phase inversion presence / absence determination means, comprising: a delay unit for delaying the phase amount calculated by the phase amount calculation unit by a plurality of frames, a current phase amount calculated by the phase amount calculation unit, and the delay unit. 3. The apparatus according to claim 1, further comprising: a difference value comparison unit that compares a difference value with the delayed past phase amount with a predetermined value to determine whether or not the input signal is inverted. Tone signal detection device.
【請求項8】 位相反転有無判定手段は、位相量演算手
段により演算された位相量を遅延する遅延部と、上記位
相量演算手段により演算された現在の位相量と上記遅延
部により遅延された過去の位相量との差分値を平滑化
し、その平滑化した差分値を過去の位相量に加算する位
相量補償部と、上記位相量演算手段により演算された現
在の位相量と上記位相量補償部により差分値が加算され
た過去の位相量との差分値を演算し、その差分値を所定
値と比較して入力信号の位相反転の有無を判定する差分
値比較部とを備えたことを特徴とする請求項1または請
求項2記載のトーン信号検出装置。
8. A phase inversion determining means for delaying a phase amount calculated by the phase amount calculating means, a current phase amount calculated by the phase amount calculating means, and a delay by the delay part. A phase amount compensator for smoothing a difference value with respect to a past phase amount and adding the smoothed difference value to a past phase amount; a current phase amount calculated by the phase amount calculating means and the phase amount compensation; And a difference value comparison unit that calculates a difference value with respect to the past phase amount to which the difference value is added by the unit, and compares the difference value with a predetermined value to determine whether or not the input signal is inverted. The tone signal detection device according to claim 1 or 2, wherein
【請求項9】 位相量補償部は、遅延部により遅延され
た位相量を遅延する第1の遅延回路と、上記第1の遅延
回路により遅延された位相量を1フレーム分遅延する第
2の遅延回路と、上記第1の遅延回路により遅延された
位相量と上記第2の遅延回路により遅延された位相量と
の差分値を平滑化するとともに、その平滑化した差分値
に所定の係数を乗算し、その乗算結果を上記遅延部によ
り遅延された位相量に加算する位相量補償回路とを備え
たことを特徴とする請求項8記載のトーン信号検出装
置。
9. A first delay circuit for delaying a phase amount delayed by the delay unit, and a second delay unit for delaying the phase amount delayed by the first delay circuit by one frame. A delay circuit that smoothes a difference value between the phase amount delayed by the first delay circuit and the phase amount delayed by the second delay circuit, and adds a predetermined coefficient to the smoothed difference value. 9. The tone signal detecting device according to claim 8, further comprising: a phase amount compensating circuit for multiplying and multiplying a result of the multiplication to a phase amount delayed by the delay unit.
【請求項10】 位相反転有無判定手段は、互いに異な
る手段により過去の位相量を補償する複数の位相量補償
部と、上記複数の位相量補償部の出力にそれぞれ基づい
て入力信号の位相反転の有無を判定する複数の差分値比
較部とを有し、さらに上記複数の差分値比較部の判定結
果に基づいて最終的に入力信号の位相反転の有無を判定
する最終判定部を有することを特徴とする請求項8記載
のトーン信号検出装置。
10. A phase inversion presence / absence judging means, comprising: a plurality of phase amount compensators for compensating past phase amounts by means different from each other; and a phase inversion of an input signal based on outputs of the plurality of phase amount compensators, respectively. A plurality of difference value comparing units for determining the presence / absence of the input signal, and a final determining unit for finally determining the presence / absence of phase inversion of the input signal based on the determination results of the plurality of difference value comparing units. The tone signal detecting device according to claim 8, wherein
【請求項11】 位相反転有無判定手段は、トーン信号
有無判定手段の判定結果がトーン信号無しから有りに変
化して第1の設定時間を経過すると、位相量演算手段に
より演算された位相量を記憶する第1の記憶部と、上記
トーン信号有無判定手段の判定結果がトーン信号無しか
ら有りに変化して第2の設定時間を経過すると、上記位
相量演算手段により演算された位相量を記憶する第2の
記憶部と、上記第1の記憶部により記憶された位相量と
上記第2の記憶部により記憶された位相量との差分値を
演算し、その差分値を所定値と比較して入力信号の位相
反転の有無を判定する差分値比較部とを備えたことを特
徴とする請求項2記載のトーン信号検出装置。
11. A phase inversion presence / absence determination means, wherein when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence and a first set time elapses, the phase amount calculated by the phase amount calculation means is obtained. A first storage unit for storing, and when the determination result of the tone signal presence / absence determination means changes from no tone signal to presence, and a second set time has elapsed, the phase amount calculated by the phase amount calculation means is stored. A second storage unit that calculates a difference value between the phase amount stored by the first storage unit and the phase amount stored by the second storage unit, and compares the difference value with a predetermined value. 3. The tone signal detecting device according to claim 2, further comprising: a difference value comparing unit that determines whether or not the input signal is inverted.
【請求項12】 位相反転有無判定手段は、差分値比較
部の判定結果を保持する結果保持部と、上記差分値比較
部による現在の判定結果と上記結果保持部に保持されて
いる過去の判定結果に基づいて最終的に入力信号の位相
反転の有無を判定する最終判定部とを備えたことを特徴
とする請求項7から請求項11のうちのいずれか1項記
載のトーン信号検出装置。
12. A phase inversion presence / absence determination unit, comprising: a result holding unit for holding a determination result of a difference value comparison unit; a current determination result by the difference value comparison unit; and a past determination held by the result holding unit. The tone signal detecting device according to any one of claims 7 to 11, further comprising a final determining unit that finally determines the presence or absence of phase inversion of the input signal based on the result.
【請求項13】 信号形態特定手段は、入力信号の信号
形態を位相反転トーン信号,非位相反転トーン信号又は
非トーン信号の何れかに特定することを特徴とする請求
項2記載のトーン信号検出装置。
13. The tone signal detecting device according to claim 2, wherein the signal form specifying means specifies the signal form of the input signal as one of a phase-inverted tone signal, a non-phase-inverted tone signal, and a non-tone signal. apparatus.
【請求項14】 信号形態特定手段は、トーン信号有無
判定手段の判定結果がトーン信号無しから有りに変化す
ると、その変化後の一定期間内に入力される位相反転有
りを示す位相反転有無判定手段の判定結果を無効とする
ことを特徴とする請求項2記載のトーン信号検出装置。
14. The signal form identifying means, when the tone signal presence / absence determination means changes from no tone signal to presence, indicates that phase inversion is present within a certain period after the change. 3. The tone signal detection device according to claim 2, wherein the determination result is invalidated.
【請求項15】 信号形態特定手段は、位相反転有無判
定手段の判定結果を有効なものとして信号形態を特定し
た場合、その判定結果を入力した後の一定期間内に入力
される位相反転有りを示す位相反転有無判定手段の判定
結果を無効とすることを特徴とする請求項2記載のトー
ン信号検出装置。
15. When the signal form is specified with the determination result of the phase inversion presence / absence determination means as valid, the signal form identification means determines that phase inversion is input within a certain period after the input of the determination result. 3. The tone signal detection device according to claim 2, wherein the determination result of said phase inversion presence / absence determination means is invalidated.
【請求項16】 信号形態特定手段は、少なくとも2回
以上、位相反転有りを示す位相反転有無判定手段の判定
結果を入力した場合に限り、位相反転有りとして信号形
態を特定することを特徴とする請求項15記載のトーン
信号検出装置。
16. The signal form specifying unit specifies a signal form as having phase inversion only when a determination result of the phase inversion existence determining unit indicating that phase inversion is present is input at least twice or more. The tone signal detection device according to claim 15.
【請求項17】 送信側信号と受信側信号を入力し、こ
れらの双方に対し入力信号の信号形態を特定する場合、
送信側専用のフーリエ変換手段,電力演算手段,トーン
信号有無判定手段及び信号形態特定手段と、受信側専用
のフーリエ変換手段,電力演算手段,トーン信号有無判
定手段及び信号形態特定手段とを備える一方、上記送信
側の電力演算手段により演算された電力と上記受信側の
電力演算手段により演算された電力を比較し、電力が大
きい側のフーリエ変換手段の出力を選択する選択手段を
備え、位相量演算手段は、上記選択手段により選択され
た側のフーリエ変換手段の出力に基づいて実行すること
を特徴とする請求項2記載のトーン信号検出装置。
17. When a transmission side signal and a reception side signal are input and the signal form of the input signal is specified for both of them,
A transmitting side dedicated Fourier transforming means, power calculating means, tone signal presence / absence determining means and signal form specifying means, and a receiving side dedicated Fourier transforming means, power calculating means, tone signal presence / absence determining means and signal form specifying means; Selecting means for comparing the power calculated by the power calculating means on the transmitting side with the power calculated by the power calculating means on the receiving side, and selecting the output of the Fourier transforming means on the side with the larger power; 3. The tone signal detecting device according to claim 2, wherein the calculating means is executed based on an output of the Fourier transform means on the side selected by the selecting means.
【請求項18】 送信側信号と受信側信号を入力し、こ
れらの双方に対して入力信号の信号形態を特定する場
合、送信側専用のフーリエ変換手段,電力演算手段,ト
ーン信号有無判定手段及び信号形態特定手段と、受信側
専用のフーリエ変換手段,電力演算手段,トーン信号有
無判定手段及び信号形態特定手段とを備える一方、送信
側及び受信側のパルス符号変調信号の全帯域電力を演算
する全帯域パワー演算手段と、上記全帯域パワー演算手
段により演算された送信側の全帯域電力と受信側の全帯
域電力を比較し、全帯域電力が大きい側のフーリエ変換
手段の出力を選択する選択手段を備え、位相量演算手段
は、上記選択手段により選択された側のフーリエ変換手
段の出力に基づいて実行することを特徴とする請求項2
記載のトーン信号検出装置。
18. A transmitter-side signal and a receiver-side signal are input, and when the signal form of the input signal is specified for both of them, a Fourier transform unit dedicated to the transmitter, a power calculator, a tone signal presence / absence determiner, A signal form specifying unit, a Fourier transform unit dedicated to the receiving side, a power calculating unit, a tone signal presence / absence determining unit, and a signal form specifying unit, and calculate the entire band power of the pulse code modulation signal on the transmitting side and the receiving side A selection unit that compares the total band power on the transmitting side and the total band power on the receiving side calculated by the full band power calculating unit with the whole band power calculating unit, and selects the output of the Fourier transform unit on the side with the larger total band power; 3. The apparatus according to claim 2, further comprising means for executing the phase amount calculation means based on an output of the Fourier transform means on the side selected by the selection means.
The tone signal detection device according to any one of the preceding claims.
【請求項19】 送信側信号と受信側信号を入力し、こ
れらの双方に対し入力信号の信号形態を特定する場合、
送信側専用のフーリエ変換手段,電力演算手段,トーン
信号有無判定手段及び信号形態特定手段と、受信側専用
のフーリエ変換手段,電力演算手段,トーン信号有無判
定手段及び信号形態特定手段とを備える一方、送信側及
び受信側のパルス符号変調信号の信号対雑音比を演算す
る雑音比演算手段と、上記雑音比演算手段により演算さ
れた送信側の信号対雑音比と受信側の信号対雑音比を比
較し、信号対雑音比が高い側のフーリエ変換手段の出力
を選択する選択手段を備え、位相量演算手段は、上記選
択手段により選択された側のフーリエ変換手段の出力に
基づいて実行することを特徴とする請求項2記載のトー
ン信号検出装置。
19. When a transmission side signal and a reception side signal are input and the signal form of the input signal is specified for both of them,
A transmitting side dedicated Fourier transforming means, power calculating means, tone signal presence / absence determining means and signal form specifying means, and a receiving side dedicated Fourier transforming means, power calculating means, tone signal presence / absence determining means and signal form specifying means; A noise ratio calculating means for calculating a signal-to-noise ratio of the pulse code modulation signal on the transmitting side and the receiving side; and a signal-to-noise ratio on the transmitting side and a signal-to-noise ratio on the receiving side calculated by the noise ratio calculating means. Comparing means for selecting an output of the Fourier transform means having a higher signal-to-noise ratio, wherein the phase amount calculating means executes based on an output of the Fourier transform means on the side selected by the select means. 3. The tone signal detecting device according to claim 2, wherein:
【請求項20】 複数のチャネルの入力信号の信号形態
を特定する場合、各チャネル毎にフーリエ変換手段,電
力演算手段,トーン信号有無判定手段及び信号形態特定
手段を備える一方、信号形態を特定するチャネルを選択
する選択手段を備え、位相量演算手段は、上記選択手段
により選択されたチャネルのフーリエ変換手段の出力に
基づいて実行することを特徴とする請求項2記載のトー
ン信号検出装置。
20. When specifying the signal forms of input signals of a plurality of channels, each of the channels is provided with a Fourier transforming means, a power calculating means, a tone signal presence / absence determining means and a signal form specifying means, while specifying a signal form. 3. The tone signal detecting device according to claim 2, further comprising a selecting unit for selecting a channel, wherein the phase amount calculating unit executes the phase amount calculating unit based on an output of the Fourier transform unit of the channel selected by the selecting unit.
【請求項21】 複数のチャネルの入力信号の信号形態
を特定する場合、各チャネル毎に電力演算手段,トーン
信号有無判定手段及び信号形態特定手段を備える一方、
信号形態を特定するチャネルを選択する選択手段を備
え、フーリエ変換手段は、上記選択手段により選択され
たチャネルの入力信号に基づいて実行することを特徴と
する請求項2記載のトーン信号検出装置。
21. When specifying the signal forms of input signals of a plurality of channels, each of the channels includes a power calculating means, a tone signal presence / absence determining means, and a signal form specifying means.
3. The tone signal detecting device according to claim 2, further comprising a selecting unit for selecting a channel for specifying a signal form, wherein the Fourier transforming unit executes based on an input signal of the channel selected by the selecting unit.
JP902697A 1997-01-21 1997-01-21 Tone signal detector Abandoned JPH10210509A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP902697A JPH10210509A (en) 1997-01-21 1997-01-21 Tone signal detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP902697A JPH10210509A (en) 1997-01-21 1997-01-21 Tone signal detector

Publications (1)

Publication Number Publication Date
JPH10210509A true JPH10210509A (en) 1998-08-07

Family

ID=11709159

Family Applications (1)

Application Number Title Priority Date Filing Date
JP902697A Abandoned JPH10210509A (en) 1997-01-21 1997-01-21 Tone signal detector

Country Status (1)

Country Link
JP (1) JPH10210509A (en)

Similar Documents

Publication Publication Date Title
CA2275662C (en) Double talk and echo path change detection in a telephony system
KR101599083B1 (en) Receiver second order intermodulation correction system and method
SE520613C2 (en) Radio receiver demodulating wideband and narrowband FM signals
JPH0618331B2 (en) Device for digitally erasing echo generated in wiring having aging characteristics
AU8418798A (en) Method of determining clock timing error in multicarrier system
JPH03236652A (en) Adaptive phase detection synchronization system
CN1228895A (en) Method and apparatus for compensating for varying D. C. offset in sampled signal
KR20060132926A (en) Tone event detector and method therefor
EP0534384B1 (en) Cross-polarization interference canceller
EP1683316B1 (en) Apparatus for determining a frequency offset error and receiver based thereon
EP1395065A1 (en) Tone detector and method therefor
US8687734B1 (en) Non-causal orthogonal frequency division multiplexing tapered peak suppression
JPH10210509A (en) Tone signal detector
JP2023040159A (en) Phase shift detector and phase shift detection method
JP4410098B2 (en) Delay time estimation for equalization
US6546237B1 (en) Differential FM detector for radio receivers
KR100725486B1 (en) Apparatus and method for detecting timing synchronization and ommunication device employing the same
JP5639777B2 (en) DC offset compensation system and method
US20220190930A1 (en) Reception apparatus and non-transitory computer readable medium
JPS6232731A (en) Signal energy drop detector
CN103281472B (en) Detection device for faxing ANSam signal and detection method thereof
JP3237322B2 (en) CN ratio measuring means
US6560304B1 (en) Apparatus for reducing pattern jitter by using locally symmetry forcing wave generating unit and method using the same
KR100348669B1 (en) Transmission system with improved equalizer
JP3402115B2 (en) Tone signal detector

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20031209

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060207

A762 Written abandonment of application

Free format text: JAPANESE INTERMEDIATE CODE: A762

Effective date: 20060328