JP2007328133A - Delay time detection apparatus, method and program - Google Patents

Delay time detection apparatus, method and program Download PDF

Info

Publication number
JP2007328133A
JP2007328133A JP2006159245A JP2006159245A JP2007328133A JP 2007328133 A JP2007328133 A JP 2007328133A JP 2006159245 A JP2006159245 A JP 2006159245A JP 2006159245 A JP2006159245 A JP 2006159245A JP 2007328133 A JP2007328133 A JP 2007328133A
Authority
JP
Japan
Prior art keywords
delay time
correlation
correlation value
audio signal
value
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.)
Pending
Application number
JP2006159245A
Other languages
Japanese (ja)
Inventor
Hiroyuki Suzuki
博之 鈴木
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.)
Tamura Corp
Original Assignee
Tamura 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 Tamura Corp filed Critical Tamura Corp
Priority to JP2006159245A priority Critical patent/JP2007328133A/en
Publication of JP2007328133A publication Critical patent/JP2007328133A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a delay time detection apparatus capable of suppressing the erroneous detection of delay time is suppressed and also enhancing fast-responsiveness compatibly, and to provide a method and a program therefor. <P>SOLUTION: A change determination means 86 determines that the delay time is changed, when a correlation value R of a setup value Rt or more, which is preset in a correlation means 83, is detected at a plurality of times for the same delay time Td, after the delay time Td is calculated at first in a calculation means 85. Preferably, when the correlation value R of the setting value Rt or more is detected at the plurality of times (for example, two times) for the same delay time Td or within a predetermined allowable error range Td±α, within predetermined measurement cycles, it is determined that the delay time is changed. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、遅延時間の検出における誤検出の抑制に関する。   The present invention relates to suppression of erroneous detection in delay time detection.

衛星中継の際に、実際の発音より遅延する放送電波の音声信号を、アナウンサーのモニター用イヤホンから除去して話しやすくするなどのために、一つの音声信号をもとに他方の遅延時間を検出する遅延時間検出装置が用いられる。遅延時間検出装置の動作としては、遅延時間を最初に検出した後は、遅延時間の変化を随時検出してゆくこととなる。   When relaying satellites, the broadcast radio signal delayed from the actual sound is removed from the announcer's monitor earphone to make it easier to talk, etc., and the other delay time is detected based on one audio signal. A delay time detecting device is used. As an operation of the delay time detection device, after the delay time is first detected, a change in the delay time is detected as needed.

本出願人による遅延時間検出装置では、特許文献1の図1に示すように、基準とする第1の音声信号からある長さをサンプリングして取り出し、遅延した第2の音声信号からはそれより長い範囲をサンプリングして取り出し、相関手段83により、二つのサンプルをずらしながら両者の相関値を検出してゆく。   In the delay time detection apparatus by the present applicant, as shown in FIG. 1 of Patent Document 1, a certain length is sampled and extracted from the reference first audio signal, and from the delayed second audio signal, A long range is sampled and extracted, and the correlation value is detected by the correlation means 83 while shifting the two samples.

そして、この相関値が、予め決められている所定の設定値を初めて上回ると、遅延時間の初回の検出として、そのときのずれに応じた遅延時間を計算し、その後の遅延時間の変化については、初回までと同様に随時計算してゆく相関値が、初回に求めた相関値を超えたときに遅延時間が変化したものとして、その時点の新たなずれから新たな遅延時間を再計算していた。
特開2000−307486
Then, when this correlation value exceeds a predetermined set value for the first time, as the first detection of the delay time, the delay time according to the deviation at that time is calculated, and the change in the delay time thereafter As is the case up to the first time, assuming that the correlation value calculated from time to time exceeds the correlation value obtained the first time, the delay time has changed, and a new delay time is recalculated from the new deviation at that time. It was.
JP 2000-307486 A

しかし、上記のような従来技術では、相関値が初回での相関値を一度でも超えた時点で遅延時間の変化と扱っていたため、誤検出が発生しやすいという問題があった。すなわち、第2の音声信号に例えばBGM等の音楽信号がミックスされていた場合のように、最初に求めた相関値が設定値以上ではあっても比較的低い値の場合、その後にその相関値を超えた相関値を検出しただけで、そのたびに遅延時間が変化したと容易に認識することにより、誤検出が発生しやすく、判定される遅延時間やそれに基く機器動作などが不安定になる要因となったり、また、操作者が誤検出時に装置の再検出設定を余儀なくされ機器を監視する負荷が生じるなどの課題があった。   However, the conventional technology as described above has a problem that erroneous detection is likely to occur because the correlation value is treated as a change in delay time when the correlation value exceeds the initial correlation value even once. That is, when the correlation value obtained first is not less than the set value but is a relatively low value, such as when a music signal such as BGM is mixed with the second audio signal, the correlation value is thereafter set. By simply detecting that the delay time has changed each time a correlation value exceeding the value is detected, erroneous detection is likely to occur, and the determined delay time and device operation based on it are unstable. There are problems such as a factor, and an operator is forced to perform re-detection setting of the apparatus when erroneous detection occurs, causing a load to monitor the device.

本発明は、上記のような従来技術の課題を解決するもので、その目的は、遅延時間の誤検出抑制である。本発明の他の目的は、誤検出の抑制に加え即応性も両立させることである。   The present invention solves the problems of the prior art as described above, and its object is to suppress erroneous detection of delay time. Another object of the present invention is to achieve both responsiveness in addition to suppression of false detection.

上記の目的をふまえ、本発明の遅延時間検出装置の一態様は、第1のサンプル数の第1の音声信号を保持する第1の保持手段と、前記第1の音声信号が遅延した第2の音声信号であって前記第1のサンプル数よりも大きい第2のサンプル数の第2の音声信号を保持する第2の保持手段と、前記第1のサンプル数の第1および第2の音声信号の相関値を、前記第2の保持手段に保持された前記第2の音声信号について1サンプルずつずらして順次算出する相関手段と、予め設定された設定値以上の相関値が前記相関手段で算出された場合に、当該相関値が算出されるまでにずらしたサンプル数に基づいて前記第2の音声信号の遅延時間を算出する算出手段と、前記算出手段で前記遅延時間を最初に算出した後に、前記相関手段にて予め設定された設定値以上の相関値を所定の複数回、同じ遅延時間について検出した場合に、前記遅延時間が変化したと判断する変化判断手段と、を有することを特徴とする。   Based on the above object, one aspect of the delay time detecting apparatus according to the present invention includes a first holding unit that holds a first audio signal having a first number of samples, and a second that delays the first audio signal. Second holding means for holding a second audio signal having a second sample number larger than the first sample number, and the first and second audio signals having the first sample number. Correlation means for sequentially calculating a correlation value of a signal by shifting one sample at a time for the second audio signal held in the second holding means; and a correlation value equal to or greater than a preset set value by the correlation means When calculated, a calculation unit that calculates a delay time of the second audio signal based on the number of samples shifted until the correlation value is calculated, and the delay time is first calculated by the calculation unit Later, preset by the correlation means More than the set value of the correlation value a predetermined plurality of times, when it is detected for the same delay time, characterized by having a a change determining means for determining that the delay time is changed.

このように、設定値以上の相関値を所定の複数回、同じ遅延時間について検出したことを判別し、その遅延時間に変化したと扱うことにより、初回の相関値の低さによる誤検出が効果的に抑制できる。   In this way, it is determined that a correlation value equal to or greater than the set value has been detected a predetermined number of times for the same delay time, and by treating that the correlation value has changed to that delay time, erroneous detection due to a low initial correlation value is effective. Can be suppressed.

本発明の他の態様は、さらに、前記変化判断手段は、前記相関手段で前記設定値以上の相関値が、所定の測定回数内で複数回、同じ遅延時間について検出された場合に、前記遅延時間が変化したと判断する、ことを特徴とする。   According to another aspect of the present invention, the change determination unit further includes the delay determination unit when the correlation unit detects a correlation value greater than or equal to the set value for a plurality of times within a predetermined number of measurements for the same delay time. It is judged that time has changed.

このように、連続に限らず、所定の測定回数内でも同じ遅延時間を検出すれば遅延時間の変化と認めることにより、変化の検出が迅速となり即応性との両立も可能となる。   In this way, the detection of the change in the delay time is recognized if the same delay time is detected within a predetermined number of measurements, not limited to the continuous measurement, so that the change can be detected quickly, and both the quick response can be achieved.

本発明の他の態様は、さらに、前記変化判断手段は、最新の前記所定の測定回数について前記相関値及び遅延時間をリングバッファに記録し、その内容との照合により同じ遅延時間について前記複数回の判断を行うことを特徴とする。   In another aspect of the present invention, the change determination unit further records the correlation value and the delay time in the ring buffer for the latest predetermined number of measurements, and performs the plurality of times for the same delay time by collating with the contents. It is characterized by making a judgment.

このように、リングバッファを利用した照合の処理により、有限のメモリ資源と簡易なアルゴリズムで、適切な遅延時間変化の判断を確実に実行可能となる。   As described above, by the collation process using the ring buffer, it is possible to reliably execute an appropriate delay time change determination using a finite memory resource and a simple algorithm.

本発明の他の態様は、さらに、前記変化判断手段は、前記複数回検出されたとの判断が最初に行われる以前に限り、前記相関手段で検出された相関値が、前回遅延時間を設定し又は変化と判断したときの相関値より高い場合に、遅延時間が変化したと判断することを特徴とする。   According to another aspect of the present invention, the change determination means sets the previous delay time for the correlation value detected by the correlation means only before the determination that the change is detected a plurality of times is first made. Alternatively, when the correlation value is higher than that when it is determined to be a change, it is determined that the delay time has changed.

このように、複数回の検出がされる前に前回遅延時間の変化と判断したときより高い相関値が検出されれば一回でも遅延時間が変化したと判断することと組み合わせることにより、初回の相関値を基準とする従来技術の弊害を避けて、即応性ひいては信頼性ある処理が実現可能となる。   In this way, by combining with the determination that the delay time has changed even once, if a higher correlation value is detected than when it was determined that the change in the delay time was detected before multiple detections, the first time By avoiding the negative effects of the prior art based on the correlation value, it is possible to implement a quick response and a reliable process.

以上のように、本発明によれば、設定値以上の相関値を所定の複数回、同じ遅延時間について検出したことを判別し、その遅延時間に変化したと扱うことにより、初回の相関値の低さによる誤検出が効果的に抑制可能となる。   As described above, according to the present invention, it is determined that a correlation value equal to or greater than a set value has been detected for the same delay time a predetermined number of times, and by treating that the correlation value has changed to that delay time, False detection due to lowness can be effectively suppressed.

次に、本発明を実施するための最良の実施形態について、図に沿って説明する。なお、背景技術や課題での説明と共通の前提事項は適宜省略する。まず、本実施形態の遅延時間検出装置(以下「本装置」と呼ぶ)は、図1の構成図に示す各手段71,72,81〜86を有し、以下のように働く。   Next, the best mode for carrying out the present invention will be described with reference to the drawings. Note that assumptions common to the explanation in the background art and problems are omitted as appropriate. First, the delay time detection apparatus (hereinafter referred to as “the present apparatus”) of the present embodiment has each means 71, 72, 81 to 86 shown in the configuration diagram of FIG. 1 and operates as follows.

すなわち、基準となる音声信号をA/D変換手段71でデジタル変換し、そこから切り出す第1のサンプル数N1の第1の音声信号S71を、第1の保持手段81が保持する。また、遅延検出の対象となる音声信号はA/D変換手段72でデジタル変換し、そこから切り出す第2の音声信号S72(音声遅延信号)を第2の保持手段82が保持する。この第2の音声信号S72は、第1の音声信号S71が遅延したもので、第1の音声信号S71の第1のサンプル数N1よりも大きい第2のサンプル数N2を持つ。これらデジタル変換や切り出しの制御は適宜な電子回路や、CPUなどコンピュータの演算制御部で行う。   That is, the first holding means 81 holds the first audio signal S71 of the first sample number N1 that is converted from the reference audio signal by the A / D conversion means 71 and cut out therefrom. The audio signal to be subjected to delay detection is digitally converted by the A / D conversion means 72, and the second holding means 82 holds the second audio signal S72 (audio delay signal) cut out therefrom. The second audio signal S72 is a delayed version of the first audio signal S71 and has a second sample number N2 that is larger than the first sample number N1 of the first audio signal S71. These digital conversion and cut-out control are performed by an appropriate electronic circuit or an arithmetic control unit of a computer such as a CPU.

また、相関手段83が、上記のように保持している第1のサンプル数N1の第1および第2の音声信号S71,S72の相関値Rを、第2の保持手段82に保持された第2の音声信号S72について1サンプルずつずらして順次算出する。そして、算出手段85は、予め設定された設定値Rt以上の相関値Rが相関手段83で算出された場合に、当該相関値Rが算出されるまでにずらしたサンプル数Aに基づいて第2の音声信号S72の遅延時間Tdを算出する。   Further, the correlation means 83 holds the correlation value R of the first and second audio signals S71 and S72 of the first sample number N1 held as described above in the second holding means 82. The second audio signal S72 is sequentially calculated by shifting by one sample. Then, when the correlation value R equal to or greater than the preset set value Rt is calculated by the correlation unit 83, the calculation unit 85 calculates the second value based on the sample number A shifted until the correlation value R is calculated. The delay time Td of the audio signal S72 is calculated.

また、変化判断手段86は、算出手段85で前記遅延時間Tdを最初に算出した後に、相関手段83にて予め設定された設定値Rt以上の相関値Rを所定の複数回、同じ遅延時間Tdについて検出した場合に、遅延時間が変化したと判断する。なお、相関値Rが設定値Rt以上かなどの比較は比較手段84で行う。   Further, the change determining means 86 calculates the delay time Td for the first time by the calculating means 85, and then sets the correlation value R equal to or greater than the preset value Rt preset by the correlation means 83 a predetermined number of times and the same delay time Td. Is detected, the delay time is determined to have changed. Note that the comparison means 84 compares whether the correlation value R is greater than or equal to the set value Rt.

このように、本実施形態では、設定値Rt以上の相関値Rを所定の複数回、同じ遅延時間Tdについて検出したことを判別し、その遅延時間Tdに変化したと扱うことにより、初回の相関値の低さによる誤検出が効果的に抑制できる。   Thus, in this embodiment, it is determined that the correlation value R equal to or greater than the set value Rt has been detected for the same delay time Td a plurality of times, and the first correlation is handled by treating that the correlation value R has changed to the delay time Td. False detection due to low value can be effectively suppressed.

また、変化判断手段86は、相関手段83で設定値Rt以上の相関値Rを、連続には限らず、所定の測定回数内で複数回(例えば2回)、同じ遅延時間Tdについて又は所定の許容誤差範囲内Td±αについて検出した場合に、遅延時間が変化したと判断するように構成することが望ましい。   In addition, the change determination unit 86 is not limited to the correlation value R that is equal to or greater than the set value Rt by the correlation unit 83, and is not limited to a plurality of times (for example, twice) within a predetermined number of times, for the same delay time Td or for a predetermined time It is desirable to configure so that the delay time is determined to be changed when detection is made for the allowable error range Td ± α.

ここで、遅延時間の初回検出後の変化判断を行うフローチャートを図2と図3に示す。また図4は、検出(算出)した遅延時間と相関値をリングバッファ中に保持してゆく様子を上から下方向に向かって示すもので、斜線部分は、最新5回より以前の分の保持は不要であることを示す。   Here, FIGS. 2 and 3 are flowcharts for determining a change in delay time after the first detection. FIG. 4 shows a state in which the detected (calculated) delay time and correlation value are retained in the ring buffer from the top to the bottom, and the hatched portion retains the portion before the latest five times. Indicates unnecessary.

リングバッファ中の各単位レコードは、図4で検出回数「1」「2」…のように縦列にそれぞれ示すもので、検出した遅延時間(検出時間)と、相関値に加え、その遅延時間の検出が1回目か否かを示す保持回数と、現在本装置が認識している遅延時間である設定遅延時間と、を有する。   Each unit record in the ring buffer is shown in a column such as the number of detections “1”, “2”... In FIG. 4, and in addition to the detected delay time (detection time) and the correlation value, It has a holding number indicating whether or not the detection is the first time, and a set delay time which is a delay time currently recognized by the present apparatus.

また、リングバッファ中のレコードに登場した最大の保持回数「1」又は「2」を所定のカウンタに記録し「カウンタ値」と呼び、図2は、リングバッファ中のどのカウンタ値もまだ「1」でカウンタ値が「1」である間の処理手順を示し、図3は、カウンタ値が「2」になった後の処理手順を示す。カウンタ値は、リングバッファ中の保持回数の最大値を書き込むことになるが、一度「2」になるとリセットされるまで「2」のままとなる。   Further, the maximum number of times “1” or “2” appearing in the record in the ring buffer is recorded in a predetermined counter and called “counter value”. FIG. 2 shows that any counter value in the ring buffer is still “1”. ”Shows a processing procedure while the counter value is“ 1 ”, and FIG. 3 shows a processing procedure after the counter value becomes“ 2 ”. As the counter value, the maximum value of the number of holding times in the ring buffer is written, but once it becomes “2”, it remains “2” until it is reset.

なお、図4の例では、リングバッファには最新5回分のレコードを保持し、その内容と、最新の検出結果との照合により同じ検出時間について複数回の検出がされたかの判断を行うが、実装上の保持レコード数は自由である。   In the example of FIG. 4, the latest five records are stored in the ring buffer, and it is determined whether the same detection time has been detected multiple times by collating the contents with the latest detection result. The number of records held above is free.

そして、カウンタ値が「1」の間は、図2に示すように、算出された相関値Rが(ステップS01)下限閾値である設定値Rt以上のとき(ステップS02)、リングバッファ中に検出時間が同じレコードが有るか判断し、有れば(ステップS03)、カウンタ値を「2」とし(ステップS04)、今回検出された検出時間によってそれまでの設定遅延時間を変更し(ステップS05)、今回の検出結果(検出時間、相関値)は保持回数「2」回としてリングバッファ中にレコードとして記録し(ステップS06)、以降は図3のフローチャートへ移行する。   While the counter value is “1”, as shown in FIG. 2, when the calculated correlation value R is equal to or higher than the set value Rt (step S01), which is the lower limit threshold (step S02), it is detected in the ring buffer. It is determined whether or not there are records having the same time (step S03), the counter value is set to “2” (step S04), and the set delay time is changed according to the detection time detected this time (step S05). The current detection result (detection time, correlation value) is recorded as a record in the ring buffer as the holding count “2” (step S06), and the process proceeds to the flowchart of FIG.

一方、設定値以上の相関値について検出時間が同じレコードがリングバッファに無い場合は(ステップS03)、検出時間を前回変更したときよりも今回の相関値が高ければ(ステップS07)今回の検出時間により遅延時間を変更する(ステップS08)。その後、保持回数を1回とし(ステップS09)、検出回数が6回目以上なら(ステップS10)今回の値を含め最新5回分のレコードをリングバッファで保持し(ステップS11)、検出回数が5回目までは(ステップS10)今回の値をリングバッファにレコードとして追記し保持する(ステップS12)。   On the other hand, if there is no record with the same detection time in the ring buffer for a correlation value greater than or equal to the set value (step S03), if the current correlation value is higher than when the detection time was changed last time (step S07), the current detection time To change the delay time (step S08). Thereafter, the number of times of holding is set to 1 (step S09). If the number of times of detection is 6th or more (step S10), the latest 5 records including the current value are held in the ring buffer (step S11), and the number of times of detection is 5th. Up to (step S10), the current value is added as a record to the ring buffer and held (step S12).

カウンタ値が「2」の場合は(図3)、検出した相関値が(ステップS21)設定値以上で(ステップS22)検出時間が同じレコードが無い場合に(ステップS23)、今回の保持回数を1回とする(ステップS24)。一方、検出時間が同じレコードがあって(ステップS23)その保持回数が1回なら(ステップS25)今回の検出時間で遅延時間を変更する(ステップS26)。その後、検出時間が同じレコードの(ステップS23)保持回数が既に2回の場合も含め(ステップS25)今回の保持回数は2回と設定する(ステップS27)。いずれの場合も、今回を含む検出回数に応じて(ステップS28)5回分までのレコードをリングバッファで保持する(ステップS29,S30)。   When the counter value is “2” (FIG. 3), when the detected correlation value is (step S21) equal to or greater than the set value (step S22) and there is no record with the same detection time (step S23), the current number of holdings is set. Once (step S24). On the other hand, if there are records with the same detection time (step S23) and the number of holding times is one (step S25), the delay time is changed with the current detection time (step S26). Thereafter, including the case where the record having the same detection time (step S23) has already been held twice (step S25), the current hold count is set to 2 (step S27). In either case, up to five records are held in the ring buffer according to the number of detections including this time (step S28) (steps S29 and S30).

以上の処理により、図4の例で見ると、検出回数2回目の検出時間1.22秒は、相関値が0.7で1回目の0.65より高いため設定遅延時間に反映している。また、カウンタ値が2となる検出回数7回目からは、設定値以上の相関値で同じ遅延時間が2回以上検出されれば遅延時間の変化と認識するので、例えば、検出回数10回目の検出時間1.33秒は保持回数2回目として設定遅延時間に反映される一方、検出回数9回目の検出時間1.89秒は保持回数1回目であるため設定遅延時間には反映されない。   With the above processing, in the example of FIG. 4, the detection time 1.22 seconds for the second detection count is reflected in the set delay time because the correlation value is 0.7 and higher than 0.65 for the first time. . In addition, from the seventh detection count when the counter value is 2, if the same delay time is detected twice or more with a correlation value greater than or equal to the set value, it is recognized that the delay time has changed. The time 1.33 seconds is reflected in the set delay time as the second holding count, while the detection time 1.89 seconds at the ninth detection count is not reflected in the set delay time because it is the first holding count.

以上のように、設定値以上の相関値を所定の複数回、同じ遅延時間について検出したことを判別し、その遅延時間に変化したと扱うことにより、初回の相関値の低さによる誤検出が効果的に抑制できる。より具体的には、本実施形態では、ある測定回数の中から同じ時間を2回検出するまでは遅延時間が変更されていないと判断し、外部へ提供する遅延値すなわち設定遅延時間についてそのままの状態を保持し、ある測定回数の中から同じ時間を2回検出すると、遅延時間が変化したと認識して実際の遅延値を変更することとなる。   As described above, it is determined that a correlation value equal to or greater than the set value has been detected for the same delay time a predetermined number of times, and it is treated as having changed to that delay time. It can be effectively suppressed. More specifically, in the present embodiment, it is determined that the delay time has not been changed until the same time is detected twice from a certain number of measurements, and the delay value provided to the outside, that is, the set delay time is left as it is. If the state is held and the same time is detected twice from a certain number of measurements, it is recognized that the delay time has changed, and the actual delay value is changed.

特に、同じ遅延時間で所定以上の相関値について、続けて複数回の検出では変化の認識に時間がかかり即応性を損なうデメリットがあるところ、本実施形態では上記のように、所定の測定回数内で連続でなくとも同じ遅延時間で複数回検出すれば遅延時間の変化と扱うことにより、遅延時間の検出精度が向上すると共に、遅延時間の変化についても長時間要さず検出可能となった。これにより操作者が誤検出時に装置の再検出設定を行うことが少なくなり、機器を監視する負荷が軽減された。   In particular, with respect to a correlation value that is equal to or greater than a predetermined value with the same delay time, there is a demerit that it takes a long time to recognize the change and the quick response is impaired in a plurality of detections. Therefore, if the detection is performed multiple times with the same delay time even if it is not continuous, the detection accuracy of the delay time is improved by treating it as a change in the delay time, and the change in the delay time can be detected without requiring a long time. As a result, the operator is less likely to perform re-detection setting when an error is detected, and the load for monitoring the device is reduced.

さらに、本実施形態では、リングバッファを利用した照合の処理により、有限のメモリ資源と簡易なアルゴリズムで、適切な遅延時間変化の判断を確実に実行可能となる。   Furthermore, in the present embodiment, it is possible to reliably execute an appropriate change in delay time by using a finite memory resource and a simple algorithm by performing a matching process using a ring buffer.

加えて、本実施形態では、複数回の検出がされる前については、前回遅延時間の変化と判断したときより高い相関値が検出されれば一回でも遅延時間が変化したと判断することも組み合わせることにより、初回の相関値を基準とする従来技術の弊害を避けて、即応性ひいては信頼性ある処理が実現可能となる。   In addition, in this embodiment, before a plurality of times of detection, if a higher correlation value is detected than when it was determined that the previous delay time has changed, it may be determined that the delay time has changed even once. By combining them, it is possible to avoid the adverse effects of the prior art based on the first correlation value, and to realize a quick response and a reliable process.

なお、本発明は上記実施形態に限定されるものではなく、例えば、同じ検出時間の繰り返し検出して遅延時間変更を認めるための回数は、2回に限らず3回以上でもよいし、また、カウンタ値1回の場合に、相関値が前回遅延時間を設定又は変更したときより高い場合に遅延時間の変更を認識する処理は必須ではない。また、上記の例では、相関値が下限閾値以下の場合は保持しないが、保持してもよい。   The present invention is not limited to the above-described embodiment. For example, the number of times for repeatedly detecting the same detection time and allowing the delay time change is not limited to two, and may be three or more. When the counter value is once, the process of recognizing the change in the delay time is not essential when the correlation value is higher than when the previous delay time was set or changed. Further, in the above example, the correlation value is not retained when it is equal to or lower than the lower limit threshold, but may be retained.

本発明の実施形態の構成を示す図。The figure which shows the structure of embodiment of this invention. 本発明の実施形態における処理手順を示すフローチャート(カウンタ値1)。The flowchart (counter value 1) which shows the process sequence in embodiment of this invention. 本発明の実施形態における処理手順を示すフローチャート(カウンタ値2)。The flowchart (counter value 2) which shows the process sequence in embodiment of this invention. 本発明の実施形態におけるリングバッファの内容を示す図。The figure which shows the content of the ring buffer in embodiment of this invention.

符号の説明Explanation of symbols

71,72…A/D変換回路
81,82…保持手段
83…相関手段
84…比較手段
85…算出手段
86…変化判断手段
71, 72 ... A / D conversion circuits 81, 82 ... holding means 83 ... correlation means 84 ... comparison means 85 ... calculation means 86 ... change judgment means

Claims (12)

第1のサンプル数の第1の音声信号を保持する第1の保持手段と、
前記第1の音声信号が遅延した第2の音声信号であって前記第1のサンプル数よりも大きい第2のサンプル数の第2の音声信号を保持する第2の保持手段と、
前記第1のサンプル数の第1および第2の音声信号の相関値を、前記第2の保持手段に保持された前記第2の音声信号について1サンプルずつずらして順次算出する相関手段と、
予め設定された設定値以上の相関値が前記相関手段で算出された場合に、当該相関値が算出されるまでにずらしたサンプル数に基づいて前記第2の音声信号の遅延時間を算出する算出手段と、
前記算出手段で前記遅延時間を最初に算出した後に、前記相関手段にて予め設定された設定値以上の相関値を所定の複数回、同じ遅延時間について検出した場合に、前記遅延時間が変化したと判断する変化判断手段と、
を有することを特徴とする遅延時間検出装置。
First holding means for holding a first audio signal of a first number of samples;
Second holding means for holding a second audio signal having a second number of samples larger than the first number of samples, the second audio signal being delayed by the first audio signal;
Correlation means for sequentially calculating the correlation value of the first and second audio signals of the first number of samples by shifting one sample at a time for the second audio signal held in the second holding means;
Calculation that calculates the delay time of the second audio signal based on the number of samples shifted until the correlation value is calculated when a correlation value that is equal to or greater than a preset setting value is calculated by the correlation means Means,
After the delay time is first calculated by the calculating means, the delay time changes when a correlation value equal to or higher than a preset value preset by the correlation means is detected for the same delay time a plurality of times. Change judging means for judging,
A delay time detection apparatus comprising:
前記変化判断手段は、前記相関手段で前記設定値以上の相関値が、所定の測定回数内で複数回、同じ遅延時間について検出された場合に、前記遅延時間が変化したと判断する、ことを特徴とする請求項1記載の遅延時間検出装置。   The change determining means determines that the delay time has changed when a correlation value equal to or greater than the set value is detected for the same delay time a plurality of times within a predetermined number of measurements. The delay time detecting apparatus according to claim 1, wherein: 前記変化判断手段は、最新の前記所定の測定回数について前記相関値及び遅延時間をリングバッファに記録し、その内容との照合により同じ遅延時間について前記複数回の判断を行うことを特徴とする請求項2記載の遅延時間検出装置。   The change determining means records the correlation value and delay time for the latest predetermined number of measurements in a ring buffer, and makes the determination for the same delay time a plurality of times by collating with the contents. Item 3. The delay time detecting device according to Item 2. 前記変化判断手段は、前記複数回検出されたとの判断が最初に行われる以前に限り、前記相関手段で検出された相関値が、前回遅延時間を設定し又は変化と判断したときの相関値より高い場合に、遅延時間が変化したと判断することを特徴とする請求項1から3のいずれか一項に記載の遅延時間検出装置。   The change determination means is based on the correlation value when the correlation value detected by the correlation means is set to the previous delay time or is determined to be changed only before the determination that the detection is made a plurality of times is first performed. The delay time detection apparatus according to claim 1, wherein when it is high, it is determined that the delay time has changed. 音声信号の遅延時間を検出する遅延時間検出方法において、電子制御回路又はコンピュータの演算制御部で、第1の保持手段と、第2の保持手段と、相関手段と、算出手段と、変化判断手段と、を実現するとともに、
第1のサンプル数の第1の音声信号を前記第1の保持手段で保持するステップと、
前記第1の音声信号が遅延した第2の音声信号であって前記第1のサンプル数よりも大きい第2のサンプル数の第2の音声信号を前記第2の保持手段で保持するステップと、
前記相関手段により、前記第1のサンプル数の第1および第2の音声信号の相関値を、前記第2の保持手段に保持された前記第2の音声信号について1サンプルずつずらして順次算出するステップと、
予め設定された設定値以上の相関値が前記相関手段で算出された場合に、前記算出手段により、当該相関値が算出されるまでにずらしたサンプル数に基づいて前記第2の音声信号の遅延時間を算出するステップと、
前記変化判断手段により、前記算出手段で前記遅延時間を最初に算出した後に、前記相関手段にて予め設定された設定値以上の相関値を所定の複数回、同じ遅延時間について検出した場合に、前記遅延時間が変化したと判断するステップと、
を有することを特徴とする遅延時間検出方法。
In a delay time detecting method for detecting a delay time of an audio signal, an electronic control circuit or an arithmetic control unit of a computer uses a first holding unit, a second holding unit, a correlating unit, a calculating unit, and a change determining unit. And realizing
Holding a first audio signal of a first number of samples with the first holding means;
Holding the second audio signal, which is a delayed second audio signal, the second sample number being larger than the first sample number, by the second holding means;
The correlation means sequentially calculates the correlation values of the first and second audio signals of the first number of samples by shifting one sample at a time for the second audio signal held in the second holding means. Steps,
When a correlation value equal to or greater than a preset set value is calculated by the correlation unit, the delay of the second audio signal based on the number of samples shifted by the calculation unit until the correlation value is calculated Calculating a time;
After the delay time is first calculated by the calculation means by the change determination means, and when a correlation value equal to or higher than a preset value set in advance by the correlation means is detected for the same delay time a plurality of times, Determining that the delay time has changed;
A delay time detection method comprising:
前記変化判断手段により、前記相関手段で前記設定値以上の相関値が、所定の測定回数内で複数回、同じ遅延時間について検出された場合に、前記遅延時間が変化したと判断することを特徴とする請求項5記載の遅延時間検出方法。   The change determining means determines that the delay time has changed when a correlation value equal to or greater than the set value is detected by the correlation means a plurality of times within a predetermined number of measurements for the same delay time. The delay time detecting method according to claim 5. 前記変化判断手段により、
最新の前記所定の測定回数について前記相関値及び遅延時間をリングバッファに記録するステップと、
そのリングバッファの内容との照合により同じ遅延時間について前記複数回の判断を行うステップと、
を実行することを特徴とする請求項6記載の遅延時間検出方法。
By the change judging means,
Recording the correlation value and delay time in a ring buffer for the latest predetermined number of measurements;
Performing the plurality of determinations for the same delay time by collating with the contents of the ring buffer;
The delay time detecting method according to claim 6, wherein:
前記変化判断手段により、前記複数回検出されたとの判断が最初に行われる以前に限り、前記相関手段で検出された相関値が、前回遅延時間を設定し又は変化と判断したときの相関値より高い場合に、遅延時間が変化したと判断するステップを有することを特徴とする請求項5から7のいずれか一項に記載の遅延時間検出方法。   The correlation value detected by the correlation unit is set to the previous delay time or from the correlation value when it is determined to be changed only before the change determination unit first determines that the detection is made a plurality of times. 8. The delay time detection method according to claim 5, further comprising a step of determining that the delay time has changed when the delay time is high. 音声信号の遅延時間を検出する遅延時間検出プログラムにおいて、コンピュータの演算制御部を制御することにより、第1の保持手段と、第2の保持手段と、相関手段と、算出手段と、変化判断手段と、を実現させるとともに、
第1のサンプル数の第1の音声信号を前記第1の保持手段で保持させ、
前記第1の音声信号が遅延した第2の音声信号であって前記第1のサンプル数よりも大きい第2のサンプル数の第2の音声信号を前記第2の保持手段で保持させ、
前記相関手段により、前記第1のサンプル数の第1および第2の音声信号の相関値を、前記第2の保持手段に保持された前記第2の音声信号について1サンプルずつずらして順次算出させ、
予め設定された設定値以上の相関値が前記相関手段で算出された場合に、前記算出手段により、当該相関値が算出されるまでにずらしたサンプル数に基づいて前記第2の音声信号の遅延時間を算出させ、
前記変化判断手段により、前記算出手段で前記遅延時間を最初に算出した後に、前記相関手段にて予め設定された設定値以上の相関値を所定の複数回、同じ遅延時間について検出した場合に、前記遅延時間が変化したと判断させる
ことを特徴とする遅延時間検出プログラム。
In a delay time detection program for detecting a delay time of an audio signal, a first holding means, a second holding means, a correlating means, a calculating means, and a change judging means are controlled by controlling an arithmetic control unit of a computer. And realizing
Holding the first audio signal of the first number of samples by the first holding means;
A second audio signal in which the first audio signal is delayed, and a second audio signal having a second sample number larger than the first sample number is held by the second holding unit;
The correlation means sequentially calculates the correlation values of the first and second audio signals of the first number of samples by shifting one sample at a time for the second audio signal held in the second holding means. ,
When a correlation value equal to or greater than a preset set value is calculated by the correlation unit, the delay of the second audio signal based on the number of samples shifted by the calculation unit until the correlation value is calculated Let the time be calculated,
After the delay time is first calculated by the calculation means by the change determination means, and when a correlation value equal to or higher than a preset value set in advance by the correlation means is detected for the same delay time a plurality of times, A delay time detection program for determining that the delay time has changed.
前記変化判断手段により、前記相関手段で前記設定値以上の相関値が、所定の測定回数内で複数回、同じ遅延時間について検出された場合に、前記遅延時間が変化したと判断させることを特徴とする請求項9記載の遅延時間検出プログラム。   The change determining means causes the correlation means to determine that the delay time has changed when a correlation value equal to or greater than the set value is detected for the same delay time a plurality of times within a predetermined number of measurements. The delay time detection program according to claim 9. 前記変化判断手段により、最新の前記所定の測定回数について前記相関値及び遅延時間をリングバッファに記録させ、そのリングバッファの内容との照合により同じ遅延時間について前記複数回の判断を行わせることを特徴とする請求項10記載の遅延時間検出プログラム。   The change determination means causes the correlation value and delay time to be recorded in a ring buffer for the latest predetermined number of measurements, and to make a plurality of determinations for the same delay time by collating with the contents of the ring buffer. 11. The delay time detection program according to claim 10, wherein 前記変化判断手段により、前記複数回検出されたとの判断が最初に行われる以前に限り、前記相関手段で検出された相関値が、前回遅延時間を設定し又は変化と判断したときの相関値より高い場合に、遅延時間が変化したと判断させることを特徴とする請求項9から11のいずれか一項に記載の遅延時間検出プログラム。   The correlation value detected by the correlation unit is set to the previous delay time or from the correlation value when it is determined to be changed only before the change determination unit first determines that the detection is made a plurality of times. The delay time detection program according to any one of claims 9 to 11, wherein when it is high, the delay time is determined to have changed.
JP2006159245A 2006-06-08 2006-06-08 Delay time detection apparatus, method and program Pending JP2007328133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006159245A JP2007328133A (en) 2006-06-08 2006-06-08 Delay time detection apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006159245A JP2007328133A (en) 2006-06-08 2006-06-08 Delay time detection apparatus, method and program

Publications (1)

Publication Number Publication Date
JP2007328133A true JP2007328133A (en) 2007-12-20

Family

ID=38928652

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006159245A Pending JP2007328133A (en) 2006-06-08 2006-06-08 Delay time detection apparatus, method and program

Country Status (1)

Country Link
JP (1) JP2007328133A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015056798A (en) * 2013-09-12 2015-03-23 アルプス電気株式会社 Broadcasting receiver
JP2019502310A (en) * 2015-12-11 2019-01-24 アイビクィティ デジタル コーポレイション Method and apparatus for automatic voice matching in a hybrid radio system
CN114915574A (en) * 2021-12-17 2022-08-16 天翼数字生活科技有限公司 Method and system for automatically detecting response delay of intelligent doorbell through sound

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015056798A (en) * 2013-09-12 2015-03-23 アルプス電気株式会社 Broadcasting receiver
JP2019502310A (en) * 2015-12-11 2019-01-24 アイビクィティ デジタル コーポレイション Method and apparatus for automatic voice matching in a hybrid radio system
CN114915574A (en) * 2021-12-17 2022-08-16 天翼数字生活科技有限公司 Method and system for automatically detecting response delay of intelligent doorbell through sound
CN114915574B (en) * 2021-12-17 2024-01-09 天翼数字生活科技有限公司 Method and system for automatically detecting response delay of intelligent doorbell through sound

Similar Documents

Publication Publication Date Title
JP2011254188A5 (en)
JP6374936B2 (en) Speech recognition method, speech recognition apparatus, and program
JP2007328133A (en) Delay time detection apparatus, method and program
US20150142430A1 (en) Pre-processing apparatus and method for speech recognition
JP6067391B2 (en) Peak detection when adapting signal gain based on signal volume
JP6277327B2 (en) Combined active noise cancellation and noise compensation in headphones
US20150043753A1 (en) Systems and Methods for Noise Reduction
WO2016017229A1 (en) Speech segment detection device, voice processing system, speech segment detection method, and program
EP3709299B1 (en) Digital audio processing device, method for processing digital audio, and digital audio processing program
US10418959B2 (en) Noise suppression apparatus, noise suppression method, and non-transitory recording medium
JP2021005776A (en) Reception device and reception processing program
JP2004056173A (en) Noise suppressing apparatus
US10360922B2 (en) Noise reduction device and method for reducing noise
KR101969908B1 (en) System for Calibration of Engine Knock and Method Thereof
JP2018006892A5 (en) Signal processing apparatus and signal processing method
JP5287642B2 (en) Sound / silence determination device, sound / silence determination method, and sound / silence determination program
JP4910925B2 (en) Receiving machine
JP2009192725A (en) Music piece recording device
JP2012129839A5 (en)
JP7187994B2 (en) Receiving device, program, sonication system, and sonication method
JPH0593772A (en) Detecting device for underwater acoustic signal
JP2009163182A (en) Speech processing device, speech processing method and speech processing program
JP6299057B2 (en) Receiver and receiving method
JP2008171119A (en) System, method and program for detecting failure of terminal device
US20210241772A1 (en) Continuous utterance estimation apparatus, continuous utterance estimation method, and program