JP2012147326A - Outside line transfer apparatus for apartment house intercom system - Google Patents

Outside line transfer apparatus for apartment house intercom system Download PDF

Info

Publication number
JP2012147326A
JP2012147326A JP2011005097A JP2011005097A JP2012147326A JP 2012147326 A JP2012147326 A JP 2012147326A JP 2011005097 A JP2011005097 A JP 2011005097A JP 2011005097 A JP2011005097 A JP 2011005097A JP 2012147326 A JP2012147326 A JP 2012147326A
Authority
JP
Japan
Prior art keywords
packet
unit
signal
time
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.)
Granted
Application number
JP2011005097A
Other languages
Japanese (ja)
Other versions
JP5821022B2 (en
Inventor
Minoru Fukushima
実 福島
恵一 ▲吉▼田
Keiichi Yoshida
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.)
Panasonic Corp
Original Assignee
Panasonic 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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2011005097A priority Critical patent/JP5821022B2/en
Publication of JP2012147326A publication Critical patent/JP2012147326A/en
Application granted granted Critical
Publication of JP5821022B2 publication Critical patent/JP5821022B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide an outside line transfer apparatus for apartment house intercom system capable of minimizing the fluctuation of volume level in speech voices.SOLUTION: An automatic sound volume level compensation part 1 compensates the volume level of a sound signal transmitted from an external call device F so as to let the volume level approximate to that of a sound signal transmitted from a control room call device C. For example, when the volume level of a sound signal inputted from a microphone of the control room call device C in standard volume level is assumed to be "LY", and when the volume level of a sound signal transmitted from an external transfer device E to a signal line L4 is assumed to be "LX", the values for gains G1, G2, and G3 are configured so that the LX comes equal or close to the LY in the automatic sound volume level compensation part 1. Consequently, without regard to whether a call device of the other party is the control room call device C or the external call device F, the speaker of a residential call device A always gives a volume of speech voices in a constant level, which minimizes the fluctuation of volume level of speech voices depending on the type of external call device (fixed-line phone or mobile phone), manufacturer, and the model.

Description

本発明は、集合住宅用インターホンシステムに用いられ、システム内の通話装置と、公衆電話網に接続される外部の通話装置との間で音声を転送する外線転送装置に関する。   The present invention relates to an external line transfer device that is used in an intercom system for a housing complex and transfers voice between a call device in the system and an external call device connected to a public telephone network.

従来、各住戸に設置される住戸機と、共用玄関に設置される共用部装置(ロビーインターホン)と、管理室に設置される管理室通話装置と、複数の住戸機が分岐接続される幹線を介して共用部装置及び管理室通話装置と各住戸機との間で通話音声を伝送させる幹線制御装置とを備える集合住宅用インターホンシステムが提供されている。そして、このような集合住宅用インターホンシステムにおいて、システム内の通話装置(住戸機や管理室通話装置など)と、公衆電話網に接続される外部の通話装置(固定電話機や携帯電話機など)との間で音声を転送する外線転送装置を備えるものもある(例えば、特許文献1参照)。例えば、管理人の不在中に住戸機から管理室通話装置が呼び出された場合、外線転送装置が住戸機からの呼出を管理人の携帯電話機に転送し、住戸機と携帯電話機との間で外線転送装置が通話音声を相互に転送する。これにより、住戸の住人と管理人とが住戸機と携帯電話機を用いて通話することができる。   Conventionally, a dwelling unit installed in each dwelling unit, a common unit device (lobby interphone) installed in a common entrance, a control room call device installed in a management room, and a trunk line in which a plurality of dwelling units are branched and connected An intercom system for collective housing is provided, which includes a common line device, a management room call device, and a trunk line control device that transmits call voice between each dwelling unit. In such an apartment intercom system, a communication device (such as a dwelling unit or a control room communication device) in the system and an external communication device (such as a fixed telephone or a mobile phone) connected to the public telephone network. Some have an external line transfer device for transferring voice between them (for example, see Patent Document 1). For example, if a control room call device is called from a dwelling unit in the absence of a manager, the outside line transfer device transfers the call from the dwelling unit to the manager's mobile phone, and the outside line is transferred between the dwelling unit and the mobile phone. The transfer device transfers the call voice to each other. Thereby, the resident and the manager of the dwelling unit can talk using the dwelling unit and the mobile phone.

特開2002−125059号公報JP 2002-125059 A

ところで、外部通話装置から伝送されてくる音声(音声信号)の音量レベルは、外部通話装置の種類(固定電話機や携帯電話機)や製造元(メーカ)あるいは機種によって大きくばらついている。また、アナログ電話回線網を介して通話する場合には、網内における伝送ロスのばらつきも問題となる。そのため、システム内の通話装置のスピーカから鳴動される音声の音量もばらついてしまい、通話品質の低下を招く虞があった。   By the way, the volume level of the voice (audio signal) transmitted from the external call device varies greatly depending on the type of the external call device (fixed telephone or mobile phone), manufacturer (manufacturer), or model. In addition, when talking over an analog telephone line network, variations in transmission loss within the network also become a problem. For this reason, the volume of the sound ringed from the speaker of the call device in the system also varies, and there is a possibility that the call quality is deteriorated.

本発明は、上記課題に鑑みて為されたものであり、通話音声の音量のばらつきを抑えることを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to suppress variations in the volume of call voice.

本発明の集合住宅用インターホンシステムの外線転送装置は、幹線を介して集合住宅内の通話装置に接続されるとともに公衆電話網の局線を介して集合住宅外の外部通話装置に接続され、前記通話装置と前記外部通話装置との間で相互に音響信号を転送してなり、前記外部通話装置から送信されてくる音響信号の音量レベルを、前記通話装置から送信されてくる音響信号の音量レベルに近付けるように補正する音量補正手段を備えることを特徴とする。   The external line transfer device of the intercom system for an apartment house of the present invention is connected to a call device in the apartment house via a trunk line and is connected to an external call device outside the apartment house via a local line of a public telephone network, A sound signal is transmitted between the call device and the external call device, and the volume level of the sound signal transmitted from the external call device is set to the volume level of the sound signal transmitted from the call device. It is characterized by comprising a volume correction means for correcting so as to be close to.

この外線転送装置において、前記音量補正手段は、前記音響信号の信号レベルを調整して出力する信号出力部と、前記音響信号の信号レベルの短時間平均値及び長時間平均値を算出する時間平均値算出部と、前記短時間平均値又は前記長時間平均値に応じて前記信号出力部の調整量を設定する設定部とを備え、当該設定部は、前記音響信号の信号レベル上昇中は前記短時間平均値に応じて前記調整量を設定し、前記音響信号の信号レベル下降中は前記長時間平均値に応じて前記調整量を設定することが好ましい。   In this external line transfer device, the volume correction means adjusts and outputs the signal level of the acoustic signal, and a time average for calculating a short-time average value and a long-time average value of the signal level of the acoustic signal. A value calculating unit and a setting unit that sets an adjustment amount of the signal output unit according to the short-time average value or the long-time average value, and the setting unit is configured to increase the signal level of the acoustic signal while the signal level is increasing. Preferably, the adjustment amount is set according to the short-time average value, and the adjustment amount is set according to the long-time average value while the signal level of the acoustic signal is decreasing.

この外線転送装置において、前記局線を介して生じる回線エコーを抑圧するエコーキャンセラを備えることが好ましい。   The outside line transfer apparatus preferably includes an echo canceller that suppresses line echo generated through the office line.

この外線転送装置において、前記入力信号に含まれる音声以外の雑音を抑制する雑音抑制部を備えることが好ましい。   In this external line transfer device, it is preferable to include a noise suppression unit that suppresses noise other than voice included in the input signal.

この外線転送装置において、前記幹線を介して前記通話装置との間でディジタルの音響信号をパケット伝送する伝送処理部と、当該伝送処理部における伝送遅延の揺らぎを吸収する揺らぎ吸収部とを備えることが好ましい。   The external line transfer apparatus includes a transmission processing unit that packet-transmits a digital acoustic signal to and from the call device via the trunk line, and a fluctuation absorbing unit that absorbs fluctuations in transmission delay in the transmission processing unit. Is preferred.

この外線転送装置において、前記幹線を介して前記通話装置との間でディジタルの音響信号をパケット伝送する伝送処理部と、当該伝送処理部で受信した前記音響パケットに含まれている音響データの全部又は一部が欠落した場合、欠落していない音響データを利用して、欠落した前記音響データの全部又は一部を補償する音響データ欠落補償部とを備えることが好ましい。   In this external line transfer device, a transmission processing unit that packet-transmits a digital acoustic signal to and from the call device via the trunk line, and all of the acoustic data contained in the acoustic packet received by the transmission processing unit Alternatively, it is preferable to include an acoustic data missing compensation unit that compensates for all or part of the missing acoustic data using missing acoustic data when a part is missing.

本発明の集合住宅用インターホンシステムの外線転送装置は、通話音声の音量のばらつきを抑えることができるという効果がある。   The outside line transfer device of the intercom system for multi-dwelling houses of the present invention has an effect that it is possible to suppress the variation in the volume of the call voice.

本発明に係る外線転送装置の実施形態1の要部を示すブロック図である。It is a block diagram which shows the principal part of Embodiment 1 of the external line transfer apparatus which concerns on this invention. 同上の外線転送装置を含む集合住宅用インターホンシステムのシステム構成図である。It is a system block diagram of the intercom system for apartment houses containing the external line transfer apparatus same as the above. 同上における設定部の動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the setting part in the same as the above. (a)は音響信号の波形図、(b)は音響信号を入力信号としたときの短時間平均値の包絡線及び選択部から出力される時間平均値の包絡線を示す波形図である。(a) is a waveform diagram of an acoustic signal, and (b) is a waveform diagram illustrating an envelope of a short-time average value and an envelope of a time average value output from a selection unit when the acoustic signal is an input signal. 同上における設定部の動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the setting part in the same as the above. 同上における設定部の動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the setting part in the same as the above. 同上における設定部の動作を説明するための説明図である。It is explanatory drawing for demonstrating operation | movement of the setting part in the same as the above. 別の実施形態を示すブロック図である。It is a block diagram which shows another embodiment. さらに別の実施形態を示すブロック図である。It is a block diagram which shows another embodiment. 本発明に係る外線転送装置の実施形態2の要部を示すブロック図である。It is a block diagram which shows the principal part of Embodiment 2 of the external line transfer apparatus which concerns on this invention. 同上における音声データ欠落補償処理部を示すブロック図である。It is a block diagram which shows the audio | voice data missing compensation processing part in the same as the above. 同上における音声データ欠落補償処理の基本原理を説明するための音声信号(受話音声信号)の波形図である。FIG. 4 is a waveform diagram of an audio signal (received audio signal) for explaining the basic principle of the audio data loss compensation processing in the same as above. 同上におけるテンプレート設定部及びピッチ検出部の処理を説明するための受話音声信号の波形図である。It is a wave form diagram of a received voice signal for demonstrating the process of the template setting part and pitch detection part in the same as the above. 従来のテンプレートを用いたときのテンプレートと受話音声信号との相関値の演算結果を示したグラフである。It is the graph which showed the calculation result of the correlation value of a template when using the conventional template, and an incoming voice signal. 同上におけるテンプレート設定部及びピッチ検出部の処理を説明する図である。It is a figure explaining the process of the template setting part and pitch detection part in the same as the above. 同上における相関値を示すグラフである。It is a graph which shows the correlation value in the same as the above. 同上における音声データ欠落補償処理を示すフローチャートである。It is a flowchart which shows the audio | voice data missing compensation process same as the above. 同上における揺らぎ吸収処理部を示すブロック図である。It is a block diagram which shows the fluctuation absorption process part in the same as the above. 同上におけるカウント部によるパケットカウント値の算出処理の説明図である。It is explanatory drawing of the calculation process of the packet count value by the count part in the same as the above. 同上におけるジッタバッファの役割を説明するための図である。It is a figure for demonstrating the role of the jitter buffer in the same as the above. 伝送遅延と発生頻度との関係を示す伝送遅延特性の一例を示す図である。It is a figure which shows an example of the transmission delay characteristic which shows the relationship between transmission delay and occurrence frequency. 同上におけるジッタバッファの最適なバッファサイズを説明するための図である。It is a figure for demonstrating the optimal buffer size of a jitter buffer in the same as the above. 同上における揺らぎ吸収処理を示すフローチャートである。It is a flowchart which shows the fluctuation | variation absorption process in the same as the above. 同上におけるパケットカウント値の算出処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the calculation process of a packet count value in the same as the above. 同上におけるパケットカウント値と、パケットカウント値の算出時刻との関係を示したグラフである。It is the graph which showed the relationship between the packet count value in the same as the above, and the calculation time of a packet count value. (a)はバッファサイズ変更部によるパケット挿入時の処理を示した模式図であり、(b)はバッファサイズ変更部によるパケット削除時の処理を示した模式図である。(A) is the schematic diagram which showed the process at the time of packet insertion by the buffer size change part, (b) is the schematic diagram which showed the process at the time of packet deletion by the buffer size change part. 同上におけるパケットカウント値の別の算出手法の説明図である。It is explanatory drawing of another calculation method of the packet count value in the same as the above. 同上におけるパケットカウント値の別の算出処理を示すフローチャートである。It is a flowchart which shows another calculation process of the packet count value in the same as the above. 同上におけるスパイク遅延の有無の判定処理を説明するためのグラフである。It is a graph for demonstrating the determination process of the presence or absence of spike delay in the same as the above. 同上におけるスパイク遅延が発生している場合のパケットカウント値とインデックスとの関係を示すグラフである。It is a graph which shows the relationship between a packet count value and index when the spike delay in the same as the above has occurred. 同上におけるカウント部の処理を説明する図である。It is a figure explaining the process of the count part in the same as the above. バッファサイズ変更部がオーバーラップ加算により1つのパケットを削除する処理の説明図である。It is explanatory drawing of the process which a buffer size change part deletes one packet by overlap addition. バッファサイズ変更部が1つの無効パケットを削除する処理の説明図である。It is explanatory drawing of the process in which a buffer size change part deletes one invalid packet. バッファサイズ変更部がオーバーラップ加算により1つのパケットを挿入する処理の説明図である。It is explanatory drawing of the process which a buffer size change part inserts one packet by overlap addition. ジッタバッファに5つのパケットを一度に挿入する場合の処理を説明するための図である。It is a figure for demonstrating the process in the case of inserting five packets at a time into a jitter buffer. 無効パケットを削除した後に、削除した無効パケットに対応する有効パケットを受信した場合の処理を説明する図である。It is a figure explaining the process at the time of receiving the valid packet corresponding to the deleted invalid packet after deleting an invalid packet. バッファサイズ変更部が無効パケットに代えて隠蔽処理されたパケットをジッタバッファに挿入させる場合の処理を説明する図である。It is a figure explaining the process in case the buffer size change part inserts the packet by which concealment processing was carried out instead of the invalid packet in a jitter buffer. バッファサイズ変更部による削除処理を示したフローチャートである。It is the flowchart which showed the deletion process by the buffer size change part. バッファサイズ変更部による挿入処理を示したフローチャートである。It is the flowchart which showed the insertion process by the buffer size change part. 本発明に係る外線転送装置の実施形態3の要部を示すブロック図である。It is a block diagram which shows the principal part of Embodiment 3 of the external line transfer apparatus which concerns on this invention.

(実施形態1)
図2は、本実施形態の外線転送装置Eを含む集合住宅用インターホンシステムのシステム構成例を示している。この集合住宅用インターホンシステムは、集合住宅の各住戸に設置される複数台(図示は1台のみ)の住戸通話装置A、集合住宅の共用玄関に設置される共用部通話装置(図示せず)、幹線制御装置B、管理室通話装置Cなどで構成されている。
(Embodiment 1)
FIG. 2 shows a system configuration example of an intercom system for apartment houses including the external line transfer device E of the present embodiment. This intercom system for collective housing is composed of a plurality of units (only one in the figure) dwelling unit communication device A installed in each dwelling unit of a condominium and a common unit communication device (not shown) installed in a common entrance of the collective housing. , Main line control device B, management room communication device C, and the like.

各住戸通話装置Aは、住戸別線L2並びに分岐器Dを介して幹線L1に分岐接続されている。幹線L1は幹線制御装置Bに接続され、この幹線L1に複数(図示は1つのみ)の分岐器Dが設けられている。また、幹線制御装置Bには信号線L3を介して管理室通話装置Cが接続されている。管理室通話装置Cは集合住宅の管理室に設置されており、管理人が各住戸の住人と通話する際に使用される。   Each dwelling unit call device A is branched and connected to the trunk line L1 via a dwelling unit separate line L2 and a branching unit D. The trunk line L1 is connected to the trunk line control device B, and a plurality (only one in the figure) of branching devices D are provided on the trunk line L1. In addition, a management room call device C is connected to the main line control device B through a signal line L3. The management room call device C is installed in the management room of the apartment house, and is used when the manager calls the resident of each dwelling unit.

本実施形態における集合住宅用インターホンシステムでは、ディジタル変調された音声情報(音声データ)、映像情報(映像データ)、制御情報(制御データ)が伝送路(幹線L1,住戸別線L2,信号線L3,L4)を介してパケット伝送される。例えば、共用部通話装置(ロビーインターホン)では、来訪者がテンキースイッチ又はタッチパネルを操作して何れかの住戸の住戸番号の操作入力を受け付けると、データフィールドに当該住戸番号を格納したパケット、並びに撮像装置で撮像した来訪者の映像(映像データ)をデータフィールドに格納したパケットを信号線を介して幹線制御装置Bのアドレス宛に送信(パケット伝送)する。幹線制御装置Bは、ロビーインターホンからの呼出を通知するための呼出コマンドをデータフィールドに格納した制御パケット並びに前記映像データをデータフィールドに格納した映像パケットを幹線L1に送出する。前記住戸番号の住戸に設置されている住戸通話装置Aでは、幹線L1及び住戸別線L2を介して制御パケット及び映像パケットを受信すると、制御パケットのデータフィールドに格納されている呼出コマンド(制御信号)に応じてスピーカから呼出音を鳴動させる。また、映像パケットのデータフィールドに格納されている映像データを処理して液晶ディスプレイなどの表示デバイスに来訪者の映像を表示させる。そして、呼出音を聞いた住人が住戸通話装置Aの応答釦(図示せず)を操作すると、マイクロホンから出力される音声信号(送話音声信号)が住戸別線L2を介してパケット伝送される。同様に、ロビーインターホンにおいてもマイクロホンから出力される音声信号(送話音声信号)が幹線制御装置Cを経由して住戸通話装置Aにパケット伝送される。その結果、住戸の住人と来訪者が住戸通話装置A及びロビーインターホンを用いてインターホン通話することができる。   In the intercom system for apartment buildings in this embodiment, digitally modulated audio information (audio data), video information (video data), and control information (control data) are transmitted through transmission lines (main line L1, unit-specific line L2, signal line L3). , L4). For example, in a common area communication device (lobby intercom), when a visitor receives an operation input of a dwelling unit number of any dwelling unit by operating a numeric key switch or a touch panel, a packet storing the dwelling unit number in a data field, and imaging A packet in which a video (video data) of a visitor imaged by the apparatus is stored in a data field is transmitted (packet transmission) to the address of the trunk control apparatus B via a signal line. The main line control apparatus B sends a control packet storing a call command for notifying a call from the lobby intercom in the data field and a video packet storing the video data in the data field to the main line L1. When the control unit and the video packet are received via the trunk line L1 and the unit-specific line L2, the unit communication apparatus A installed in the unit having the unit number receives a call command (control signal) stored in the data field of the control packet. ) Ring the ringer from the speaker. Further, the video data stored in the data field of the video packet is processed to display the video of the visitor on a display device such as a liquid crystal display. When the resident who hears the ringing tone operates a response button (not shown) of the dwelling unit communication apparatus A, a voice signal (sending voice signal) output from the microphone is packet-transmitted via the dwelling unit separate line L2. . Similarly, also in the lobby intercom, a voice signal (transmitted voice signal) output from the microphone is packet-transmitted to the dwelling unit call device A via the trunk line control device C. As a result, a resident of the dwelling unit and a visitor can make an interphone call using the dwelling unit call device A and the lobby intercom.

また、住戸通話装置Aから管理室通話装置Cを呼び出し、住人と管理人が住戸通話装置A及び管理室通話装置Cを用いて通話することもできる。この場合、住戸通話装置Aから管理室通話装置Cを呼び出すための制御データを含むパケットが送信され、当該パケットが幹線制御装置Bを経由して管理室通話装置Cに伝送される。そして、管理室通話装置Cの送受話器(ハンドセット)がオフフック(あるいは通話釦が操作)されると、ロビーインターホンの場合と同様に住戸通話装置Aと管理室通話装置Cとの間で音声データが相互にパケット伝送される。但し、上述した住戸通話装置A、幹線制御装置B、ロビーインターホン、管理室通話装置Cは従来周知の技術を利用して実現可能であるから、詳細な構成の図示並びに説明は省略する。   In addition, the management room call device C can be called from the dwelling unit call device A, and the resident and the manager can talk using the dwelling unit call device A and the control room call device C. In this case, a packet including control data for calling the control room call device C from the dwelling unit call device A is transmitted, and the packet is transmitted to the control room call device C via the trunk line control device B. Then, when the handset of the control room call device C is off-hook (or the call button is operated), voice data is transferred between the dwelling unit call device A and the control room call device C as in the case of the lobby intercom. Packets are transmitted to each other. However, since the dwelling unit call device A, the main line control device B, the lobby intercom, and the management room call device C described above can be realized by using a conventionally known technique, detailed illustration and description of the configuration are omitted.

ここで、管理人の留守中に住戸通話装置Aから管理室通話装置Cに呼出があった場合、管理人が所持する携帯電話機や管理会社の受付センターに住戸通話装置Aの呼出が転送され、転送先の携帯電話機や受付センターの電話機(以下、これらを外部通話装置Fと呼ぶ。)と住戸通話装置Aとの間で音声を伝送して通話可能とすることが望ましい。そのために本実施形態における集合住宅用インターホンシステムでは、住戸通話装置Aと外部通話装置Fとの間で音声を相互に転送する外線転送装置Eを備えている。   Here, when a call is made from the dwelling unit call device A to the control room call unit C while the manager is away, the call of the dwelling unit call unit A is transferred to the mobile phone possessed by the manager or the reception center of the management company, It is desirable to be able to talk by transmitting voice between the transfer destination mobile phone or the reception center phone (hereinafter referred to as the external call device F) and the dwelling unit call device A. For this purpose, the intercom system for collective housing in this embodiment includes an external line transfer device E that transfers audio between the dwelling unit call device A and the external call device F.

外線転送装置Eは、図1に示すように自動音量補正部1、伝送処理部2、2線4線変換部3、受話アンプ4、送話アンプ5、A/D変換器6、D/A変換器7などを備える。伝送処理部2は信号線L4を介して幹線制御装置Bに接続されており、幹線制御装置Bを経由して住戸通話装置Aとの間でパケット伝送を行う。   As shown in FIG. 1, the external line transfer device E includes an automatic sound volume correction unit 1, a transmission processing unit 2, a 2-wire 4-wire conversion unit 3, a reception amplifier 4, a transmission amplifier 5, an A / D converter 6, and a D / A. A converter 7 is provided. The transmission processing unit 2 is connected to the trunk line control device B via the signal line L4, and performs packet transmission with the dwelling unit call device A via the trunk line control device B.

伝送処理部2は、自動音量補正部1から出力される音声信号(受話音声データ)を分割してパケットを作成し、当該パケット(音声パケット)を符号化するとともに符号化されたビット列を電気信号に変換(変調)して信号線L4に送出する。また伝送処理部2は、信号線L4に伝送される電気信号をビット列に変換(復調)し、復調されたビット列から音声パケットを復号化するとともに復号化された音声信号(送話音声データ)をD/A変換器7に出力する。そして、D/A変換器7でアナログ信号に変換された音声信号が送話アンプ5で増幅された後に2線4線変換部3に出力される。2線4線変換部3は局線(電話線)Lxによって公衆電話網Nに接続されており、送話アンプ5で増幅された音声信号(送話音声信号)を電話線Lxに送出するとともに、電話線Lxを伝送されてくる音声信号(受話音声信号)を受話アンプ4へ出力する。受話アンプ4で増幅された受話音声信号は、A/D変換器6でディジタル信号(受話音声データ)に変換されて自動音量補正部1に入力される。   The transmission processing unit 2 divides the voice signal (received voice data) output from the automatic sound volume correction unit 1 to create a packet, encodes the packet (voice packet), and converts the encoded bit string into an electric signal. Is converted (modulated) into the signal line L4. The transmission processing unit 2 converts (demodulates) the electrical signal transmitted to the signal line L4 into a bit string, decodes the voice packet from the demodulated bit string, and transmits the decoded voice signal (transmitted voice data). Output to the D / A converter 7. The voice signal converted into an analog signal by the D / A converter 7 is amplified by the transmission amplifier 5 and then output to the two-wire / four-wire converter 3. The two-wire / four-wire conversion unit 3 is connected to the public telephone network N by a local line (telephone line) Lx, and sends out the voice signal (transmission voice signal) amplified by the transmission amplifier 5 to the telephone line Lx. The voice signal (received voice signal) transmitted through the telephone line Lx is output to the receiver amplifier 4. The reception voice signal amplified by the reception amplifier 4 is converted into a digital signal (reception voice data) by the A / D converter 6 and input to the automatic volume correction unit 1.

自動音量補正部1は、ディジタル・シグナル・プロセッサ(DSP)またはマイクロコンピュータ(CPU)で専用のソフトウェアを実行することによって実現される、信号出力部10、時間平均値算出部11、設定部12、選択部13、雑音検出部14を有している。但し、これらの各部10〜14が独立した回路部品で構成されても構わない。また、以下の説明では音声信号、及び音声以外の音を含む信号を総称して音響信号と呼ぶ。   The automatic sound volume correction unit 1 is realized by executing dedicated software on a digital signal processor (DSP) or a microcomputer (CPU), a signal output unit 10, a time average value calculation unit 11, a setting unit 12, A selection unit 13 and a noise detection unit 14 are provided. However, each of these units 10 to 14 may be composed of independent circuit components. In the following description, a signal including a sound signal and a sound other than sound is collectively referred to as an acoustic signal.

信号出力部10は、A/D変換器6から出力される音響信号(音響データ)の信号レベルを調整して伝送処理部2に出力する。ここで、「信号レベル」とは音響データにおいて音量(音の大きさ)を示すデータであり、信号出力部10では、後述するように設定部12が設定する調整量に応じて前記データを変更することによって信号レベルを調整する。なお、以下の説明では「調整量」を「利得」と呼び、「利得」が大きいほど、信号レベルが高く(音量が大きく)なるものとする。   The signal output unit 10 adjusts the signal level of the acoustic signal (acoustic data) output from the A / D converter 6 and outputs the adjusted signal level to the transmission processing unit 2. Here, the “signal level” is data indicating sound volume (sound volume) in the acoustic data, and the signal output unit 10 changes the data according to the adjustment amount set by the setting unit 12 as will be described later. To adjust the signal level. In the following description, the “adjustment amount” is referred to as “gain”, and it is assumed that the greater the “gain”, the higher the signal level (the louder the volume).

時間平均値算出部11は、入力信号(A/D変換器6から出力される音響信号。以下、同じ。)の比較的長い時間における時間平均値(長時間平均値PL)と、入力信号の比較的短い時間における時間平均値(短時間平均値PS)と、長時間平均値PLと短時間平均値PSの中間の時間における時間平均値(中時間平均値Pn)とを算出する。ここで、時間平均値算出部11では、例えば16ミリ秒程度の短い時間(バッファ時間)に入力された入力信号を記憶し、バッファ時間分の入力信号レベルの算術平均値を短時間平均値PSとし、バッファ時間の定倍(例えば、16倍)の入力信号レベルの算術平均値を長時間平均値PLとし、バッファ時間の数倍(例えば、7〜8倍)の入力信号レベルの算術平均値を中時間平均値Pnとしている。但し、時間平均値算出部11は、短時間平均値PSの変化の傾きが音響信号波形(図4(a)参照)の上昇時における包絡線の傾きに略一致するように短時間平均値PSを算出するときの時間幅を設定することが好ましい。同様に、時間平均値算出部11は、長時間平均値PLの変化の傾きが音響信号波形の下降時における包絡線の傾きに略一致するように長時間平均値PLを算出するときの時間幅を設定することが好ましい。   The time average value calculation unit 11 calculates a time average value (long-time average value PL) in a relatively long time of the input signal (acoustic signal output from the A / D converter 6; the same applies hereinafter) and the input signal. A time average value in a relatively short time (short-time average value PS) and a time average value in a middle time between the long-time average value PL and the short-time average value PS (medium time average value Pn) are calculated. Here, the time average value calculation unit 11 stores the input signal input in a short time (buffer time) of, for example, about 16 milliseconds, and calculates the arithmetic average value of the input signal level for the buffer time as the short-time average value PS. The arithmetic average value of the input signal level that is a fixed multiple of the buffer time (for example, 16 times) is defined as the long-term average value PL, and the arithmetic average value of the input signal level that is several times the buffer time (for example, 7 to 8 times). Is the medium time average value Pn. However, the time average value calculation unit 11 does not change the short time average value PS so that the slope of the change in the short time average value PS substantially matches the slope of the envelope when the acoustic signal waveform rises (see FIG. 4A). It is preferable to set a time width when calculating. Similarly, the time average value calculation unit 11 calculates the time width when calculating the long time average value PL so that the slope of the change in the long time average value PL substantially matches the slope of the envelope when the acoustic signal waveform falls. Is preferably set.

選択部13は、時間平均値算出部11で算出される長時間平均値PLと短時間平均値PSとを比較し、PS≧PLのときは短時間平均値PSを選択し、PS<PLのときは長時間平均値PLを選択して設定部12に出力する。   The selection unit 13 compares the long-time average value PL calculated by the time average value calculation unit 11 with the short-time average value PS. When PS ≧ PL, the short-time average value PS is selected, and PS <PL At this time, the long-term average value PL is selected and output to the setting unit 12.

一般に、短時間平均値は主に入力信号(音響信号)に含まれる音声成分によってそのレベルが決まると考えられ、中時間平均値は主に入力信号に含まれる雑音成分(音声以外の音成分)によってそのレベルが決まると考えられる。故に雑音検出部14では、時間平均値算出部11で算出される短時間平均値PSと中時間平均値Pnとの比PS/Pnが1以上(PS/Pn≧1)であれば雑音が少ない(S/N比が高い)と検出(推定)し、比PS/Pnが1未満(PS/Pn<1)であれば雑音が多い(S/N比が低い)と検出(推定)する。そして、雑音検出部14は、雑音が少ないと検出すれば「1」を、雑音が多いと検出すれば「0」を、それぞれ設定部12に出力する。   Generally, it is considered that the short-time average value is determined mainly by the audio component contained in the input signal (acoustic signal), and the medium-time average value is mainly the noise component (non-voice sound component) contained in the input signal. It is thought that the level is decided by. Therefore, the noise detection unit 14 has less noise if the ratio PS / Pn between the short time average value PS calculated by the time average value calculation unit 11 and the medium time average value Pn is 1 or more (PS / Pn ≧ 1). (S / N ratio is high) is detected (estimated), and if the ratio PS / Pn is less than 1 (PS / Pn <1), it is detected (estimated) that there is a lot of noise (S / N ratio is low). Then, the noise detection unit 14 outputs “1” to the setting unit 12 if it detects that the noise is low and “0” if it detects that the noise is high.

設定部12は、選択部13から出力される時間平均値(長時間平均値PL又は短時間平均値PS)に応じて、3段階の利得G1,G2,G3(G1>G2>G3)のいずれかを信号レベルの調整量に設定して信号出力部10に出力する。そして、信号出力部10では入力信号の信号レベルに設定部12で設定される利得を乗じることにより、信号レベルが調整された音響信号を伝送処理部2に出力する。   The setting unit 12 selects one of three gains G1, G2, and G3 (G1> G2> G3) according to the time average value (long-time average value PL or short-time average value PS) output from the selection unit 13. Is set as a signal level adjustment amount and output to the signal output unit 10. The signal output unit 10 multiplies the signal level of the input signal by the gain set by the setting unit 12 to output an acoustic signal whose signal level is adjusted to the transmission processing unit 2.

図3は、自動音量補正部1における音量補正特性を示しており、横軸が入力信号の信号レベル、縦軸が音量補正後の出力信号の信号レベルを表している。設定部12は、図3に示すように入力信号の信号レベルがしきい値Th1以下のときは利得をG1に設定して音量を増大させ、入力信号の信号レベルがしきい値Th1よりも大きく且つしきい値Th2(>Th1)以下のときは利得をG2に設定して音量をほとんど調整しない。また、入力信号の信号レベルがしきい値Th2よりも大きいとき、設定部12は、利得をG3(=0)に設定して音量を減少させる。ここで、自動音量補正部1は、外部通話装置Fから送信されてくる音響信号の音量レベル(出力信号の信号レベル)を、システム内の通話装置(例えば、管理室通話装置C)から送信されてくる音響信号の音量レベルに近付けるように補正している。例えば、管理室通話装置Cのマイクロホンから標準音量で入力されて信号線L3に送出される音響信号の音量レベルをLYとし、外線転送装置Eから信号線L4に送出される音響信号の音量レベルをLXとしたとき、自動音量補正部1では、LX≒LYとなるように利得G1,G2,G3の値が設定されている。   FIG. 3 shows the volume correction characteristic in the automatic volume correction unit 1, where the horizontal axis represents the signal level of the input signal and the vertical axis represents the signal level of the output signal after volume correction. As shown in FIG. 3, when the signal level of the input signal is less than or equal to the threshold value Th1, the setting unit 12 sets the gain to G1 to increase the volume, and the signal level of the input signal is greater than the threshold value Th1. When the threshold value is less than Th2 (> Th1), the gain is set to G2 and the volume is hardly adjusted. When the signal level of the input signal is greater than the threshold value Th2, the setting unit 12 sets the gain to G3 (= 0) and decreases the volume. Here, the automatic volume correction unit 1 transmits the volume level (signal level of the output signal) of the acoustic signal transmitted from the external call device F from the call device in the system (for example, the control room call device C). It is corrected so as to be close to the volume level of the incoming acoustic signal. For example, let LY be the volume level of an acoustic signal that is input at a standard volume from a microphone of the control room communication apparatus C and sent to the signal line L3, and the volume level of the acoustic signal sent from the external line transfer apparatus E to the signal line L4 is LY. When LX is set, the automatic sound volume correction unit 1 sets the gains G1, G2, and G3 so that LX≈LY.

したがって、相手の通話装置が管理室通話装置Cと外部通話装置Fの何れであっても、住戸通話装置Aのスピーカから鳴動される通話音声の音量が常に同程度になるので、外部通話装置の種類(固定電話機や携帯電話機)や製造元(メーカ)あるいは機種による通話音声の音量のばらつきを抑えることができる。   Therefore, regardless of whether the other party's call device is the control room call device C or the external call device F, the volume of the call voice ringed from the speaker of the dwelling unit call device A is always approximately the same. It is possible to suppress variation in the volume of call voice depending on the type (fixed phone or mobile phone), manufacturer (maker), or model.

図4(a)は実際の音響信号の波形を示し、同図(b)は同図(a)の音響信号を入力信号としたときの短時間平均値PSの包絡線(実線X1)及び選択部13から出力される時間平均値f(PL,PS)の包絡線(実線X2)を示している。例えば、図4(b)に実線X1で示した短時間平均値PSに応じて利得(調整量)が設定されると、信号レベルの急激な変化に短時間で追従して利得が次々と変化するため、音響信号が抑揚(音量が増減)してしまう虞がある。反対に、短時間平均値PSに応じて利得(調整量)が設定されると、音響信号の抑揚は抑えられるものの、信号レベルの急激な立ち上がりを抑制できずに音量が大きくなり過ぎてしまう虞がある。   4A shows the waveform of the actual acoustic signal, and FIG. 4B shows the envelope (solid line X1) and selection of the short-time average value PS when the acoustic signal of FIG. 4A is used as the input signal. The envelope (solid line X2) of the time average value f (PL, PS) output from the unit 13 is shown. For example, when the gain (adjustment amount) is set according to the short-time average value PS indicated by the solid line X1 in FIG. 4B, the gain changes one after another following a rapid change in the signal level. Therefore, there is a possibility that the acoustic signal is inflated (the volume is increased or decreased). On the other hand, if the gain (adjustment amount) is set according to the short-time average value PS, the acoustic signal inflection can be suppressed, but the sudden rise of the signal level cannot be suppressed, and the volume may become too high. There is.

一方、本実施形態においては、入力信号の信号レベル上昇中は選択部13で選択される短時間平均値PSに応じて設定部12が利得を設定し、入力信号の信号レベル下降中は選択部13で選択される長時間平均値PLに応じて設定部12が利得を設定するので、利得の変動幅を少なくして音響信号の抑揚を低減するとともに音量のピークを適正な範囲内に収めることができる。つまり、本実施形態における自動音量補正部1によれば、音響信号の抑揚を抑えて聞き取り易い音量に自動的に補正することができる。   On the other hand, in the present embodiment, the setting unit 12 sets the gain according to the short-time average value PS selected by the selection unit 13 while the signal level of the input signal is increasing, and the selection unit when the signal level of the input signal is decreasing. The setting unit 12 sets the gain according to the long-term average value PL selected in 13, so that the fluctuation range of the gain is reduced, the inflection of the acoustic signal is reduced, and the volume peak is within an appropriate range. Can do. That is, according to the automatic sound volume correction unit 1 of the present embodiment, it is possible to automatically correct the sound volume to be easy to hear by suppressing the inflection of the acoustic signal.

ところで、信号レベルの上昇時と下降時とで設定部12が利得Gi(i=1,2,3)の設定を変える条件(しきい値Th1,Th2)が同じであると、信号レベルがしきい値Th1,Th2の近辺で変動した場合に利得Giが頻繁に変更されることで音量が増減する可能性がある。そこで、設定部12では、しきい値Th1,Th2にヒステリシスを持たせ、信号レベルの上昇時と下降時とでしきい値Th11,Th12,Th21,Th22を異ならせることが好ましい。例えば、図5に示すように信号レベルの下降時におけるしきい値Th12,Th22を、信号レベルの上昇時におけるしきい値Th11,Th21よりも小さく(低く)すればよい。このようにすれば、信号レベルがしきい値の近辺で変動した場合でも音量の急激な増減(音響信号の抑揚)を抑えることができる。   By the way, if the conditions (threshold values Th1, Th2) for the setting unit 12 to change the setting of the gain Gi (i = 1, 2, 3) are the same when the signal level is rising and when the signal level is falling, the signal level is reduced. When the frequency fluctuates in the vicinity of the threshold values Th1 and Th2, there is a possibility that the sound volume may increase or decrease by frequently changing the gain Gi. Therefore, it is preferable that the setting unit 12 has hysteresis in the threshold values Th1 and Th2, and the threshold values Th11, Th12, Th21, and Th22 are different depending on whether the signal level is rising or falling. For example, as shown in FIG. 5, the threshold values Th12 and Th22 when the signal level decreases may be smaller (lower) than the threshold values Th11 and Th21 when the signal level increases. In this way, even when the signal level fluctuates in the vicinity of the threshold value, it is possible to suppress a sudden increase / decrease in volume (induction of the acoustic signal).

ここで、信号レベルの下降中には長時間平均値PLに応じて利得が調整されるのであるが、長時間平均値PLの算出時間よりも遙かに短い時間で利得がG2からG1に変更されると、音量が必要以上に増大されて音響信号が抑揚してしまう虞がある。そこで、設定部12が信号レベルを増大する向きに利得を変える際、図6に示すように緩やかに利得を変化させれば、音量が必要以上に増大されて音響信号が抑揚してしまうことが防止できる。   Here, while the signal level is falling, the gain is adjusted according to the long-term average value PL, but the gain is changed from G2 to G1 in a time much shorter than the calculation time of the long-term average value PL. Then, the sound volume may be increased more than necessary and the acoustic signal may be inflated. Therefore, when the setting unit 12 changes the gain in the direction of increasing the signal level, if the gain is gradually changed as shown in FIG. 6, the sound volume may be increased more than necessary and the acoustic signal may be suppressed. Can be prevented.

一方、信号レベルの上昇中には短時間平均値PSに応じて利得が調整されるため、短時間平均値PSの算出時間よりも長い時間をかけて利得がG2からG3へゆっくりと変更されると、音量の増減に追随できずに音響信号を抑揚させてしまう虞がある。そこで、設定部12が信号レベルを減少する向きに利得を変える際、図7に示すように急速に利得を変化させれば、音量の増減に追随できずに音響信号を抑揚させてしまうことが防止できる。   On the other hand, since the gain is adjusted according to the short time average value PS while the signal level is rising, the gain is slowly changed from G2 to G3 over a longer time than the calculation time of the short time average value PS. Then, there is a risk that the acoustic signal may be inflated without being able to follow the increase or decrease in volume. Therefore, when the setting unit 12 changes the gain in the direction of decreasing the signal level, if the gain is changed rapidly as shown in FIG. 7, the acoustic signal may be lifted without following the increase or decrease in volume. Can be prevented.

ところで、入力信号の信号レベルが調整されると当該入力信号に含まれる雑音成分(周囲騒音)の信号レベルも同時に調整されるので、目的とする音声が周囲騒音に邪魔されて聴き取り難くなってしまう可能性がある。そこで本実施形態では、雑音検出部14で雑音が多いと推定されているときは設定部12が利得の設定を行わずに入力信号をそのまま出力(スルー)させ、雑音検出部14で雑音が少ないと推定されているときにだけ、設定部12が利得の設定を行うようにしている。つまり、設定部12は雑音検出部14の出力信号が「0」のときは利得の設定を行わず、雑音検出部14の出力信号が「1」のときにだけ利得の設定を行っている。これにより、目的とする音声が周囲騒音に邪魔されて聴き取り難くなってしまうという音量補正の弊害を抑制することができる。   By the way, if the signal level of the input signal is adjusted, the signal level of the noise component (ambient noise) included in the input signal is also adjusted at the same time, so that the target sound is disturbed by the ambient noise and is difficult to hear. There is a possibility. Therefore, in the present embodiment, when it is estimated that there is a lot of noise in the noise detection unit 14, the setting unit 12 outputs (through) the input signal as it is without setting the gain, and the noise detection unit 14 has little noise. Only when it is estimated that the setting unit 12 sets the gain. That is, the setting unit 12 does not set the gain when the output signal of the noise detection unit 14 is “0”, and sets the gain only when the output signal of the noise detection unit 14 is “1”. As a result, it is possible to suppress the adverse effect of volume correction that the target sound is disturbed by ambient noise and is difficult to hear.

ここで、図8に示すように、入力信号に含まれる音声以外の雑音(周囲騒音)を抑制する雑音抑制部(ノイズサプレッサ)15を設けてもよい。ノイズサプレッサ15は従来周知であって、通話音声と周囲騒音とが混在する入力信号から周囲騒音の信号成分のみを抑圧して出力するものである。したがって、ノイズサプレッサ15が入力信号から周囲騒音の信号成分のみを抑圧することにより、後段の自動音量補正部1における音声信号レベル算出などの演算精度の向上およびS/N比改善による音質の向上が図れる。   Here, as shown in FIG. 8, a noise suppression unit (noise suppressor) 15 that suppresses noise (ambient noise) other than speech included in the input signal may be provided. The noise suppressor 15 is well known in the art, and suppresses and outputs only the signal component of the ambient noise from the input signal in which the call voice and the ambient noise are mixed. Therefore, the noise suppressor 15 suppresses only the signal component of the ambient noise from the input signal, thereby improving the calculation accuracy such as the calculation of the audio signal level in the subsequent automatic volume correction unit 1 and the sound quality by improving the S / N ratio. I can plan.

さらに、図9に示すように電話線Lxを介して生じる回線エコーを抑圧するエコーキャンセラ8を設けてもよい。このエコーキャンセラ8は適応フィルタ80と減算器81からなる従来周知の構成を有している。適応フィルタ80は、インピーダンスの不整合による反射及び外部通話装置Fにおけるスピーカ−マイクロホン間の音響結合とにより形成される帰還経路(回線エコー経路)のインパルス応答を適応的に同定する。そして、減算器81は、適応フィルタ80によって推定されるエコー成分(回線エコー)を受話音声信号から減算する。   Furthermore, as shown in FIG. 9, an echo canceller 8 that suppresses line echo generated via the telephone line Lx may be provided. The echo canceller 8 has a conventionally known configuration including an adaptive filter 80 and a subtracter 81. The adaptive filter 80 adaptively identifies the impulse response of the feedback path (line echo path) formed by reflection due to impedance mismatch and acoustic coupling between the speaker and the microphone in the external communication device F. Then, the subtracter 81 subtracts the echo component (line echo) estimated by the adaptive filter 80 from the received voice signal.

(実施形態2)
本実施形態の外線転送装置Eは、図10に示すように音声データ欠落補償処理部VCと揺らぎ吸収処理部JAを備える点に特徴がある。但し、その他の構成については、図9に示した実施形態1の構成と共通であるから、共通の構成要素には同一の符号を付して図示並びに説明を適宜省略する。
(Embodiment 2)
The external line transfer apparatus E of the present embodiment is characterized in that it includes a voice data loss compensation processing unit VC and a fluctuation absorption processing unit JA as shown in FIG. However, since the other configuration is the same as the configuration of the first embodiment shown in FIG. 9, the same components are denoted by the same reference numerals, and the illustration and description thereof are omitted as appropriate.

図12は、音声データ欠落補償処理(以下、「補償処理」と略す。)の基本原理を説明するための音声信号の波形図である。図12において縦軸は伝送処理部2から出力される受話音声信号の強度を示し、横軸は時間を示している。音声パケットの受信に失敗し、パケットロス(音声データの欠落)が発生すると、音声データ欠落補償処理部VCは、パケットロスが発生する直前の所定期間の受話音声信号を基準信号(テンプレート)として設定する。   FIG. 12 is a waveform diagram of an audio signal for explaining the basic principle of audio data loss compensation processing (hereinafter abbreviated as “compensation processing”). In FIG. 12, the vertical axis indicates the intensity of the received voice signal output from the transmission processing unit 2, and the horizontal axis indicates time. When reception of a voice packet fails and a packet loss (voice data loss) occurs, the voice data loss compensation processing unit VC sets the received voice signal of a predetermined period immediately before the packet loss as a reference signal (template). To do.

次に、このテンプレートを受話音声信号に対してパケットロスが発生した時点から過去に向けてスライドさせるとともに、テンプレートと受話音声信号との相関演算を実行し、パケットロスが発生する直前の受話音声信号の基本周期(ピッチ)を検出する。そして、パケットロスが発生してから過去に遡って、1ピッチ分の受話音声信号を取り出し、その受話音声信号をロス期間に繰り返し当てはめることでロス期間(音声データが欠落している期間。以下、同じ。)を補償する。ここで、1ピッチ分の受話音声信号でロス期間を補償するのは、話者が例えば「あ」という音声を発した場合、この「あ」の音声は、20msec程度に区切られて(パケット化されて)1つの音声パケットにのせて送信されるため、ロス期間ではパケットロスが発生する直前の1ピッチ分の受話音声信号が繰り返されている可能性が高いからである。   Next, the template is slid toward the past from the time when the packet loss occurs with respect to the reception voice signal, and the correlation calculation between the template and the reception voice signal is performed, and the reception voice signal immediately before the packet loss occurs The basic period (pitch) is detected. Then, from the occurrence of packet loss, the received voice signal for one pitch is extracted retroactively, and the received voice signal is repeatedly applied to the loss period, whereby a loss period (period in which voice data is missing. The same.) Here, the loss period is compensated by the received voice signal for one pitch. For example, when the speaker utters the voice “A”, the voice “A” is divided into about 20 msec (packetization). This is because the received voice signal for one pitch immediately before the occurrence of the packet loss is likely to be repeated in the loss period because it is transmitted on one voice packet.

音声データ欠落補償処理部VCは、図11に示すように遅延揺らぎ吸収バッファ(ジッタバッファ)20、タイマ21、パケットロス検出部22、検出処理部23、補償処理部24を備えている。但し、これらの各部は、自動音量補正部1と同様にDSPで音声データ欠落補償処理プログラムを実行することによって実現されている。   As shown in FIG. 11, the audio data loss compensation processing unit VC includes a delay fluctuation absorbing buffer (jitter buffer) 20, a timer 21, a packet loss detection unit 22, a detection processing unit 23, and a compensation processing unit 24. However, each of these units is realized by executing an audio data loss compensation processing program by the DSP as in the case of the automatic sound volume correction unit 1.

ここで、音声パケットのヘッダには、元の音声信号を分割(パケット化)する際に順番に割り当てられる番号(シーケンス番号)が格納されており、音声パケットの音声データ(受話音声信号)をシーケンス番号の順番通りにつなぎ合わせることで元の音声信号を復元することができる。そして、伝送処理部2はシーケンス番号に従って、受信した受話音声信号(受話音声データ)を時系列順にジッタバッファ20に出力する。なお、音声パケットのヘッダにはシーケンス番号の他にタイムスタンプが含まれている。シーケンス番号は音声パケットの送信順序を示し、タイムスタンプは、元の音声波形における音声信号の相対的な位置を示している。   Here, in the header of the voice packet, a number (sequence number) assigned in order when the original voice signal is divided (packetized) is stored, and the voice data (received voice signal) of the voice packet is sequenced. The original audio signal can be restored by connecting them in the order of the numbers. Then, the transmission processing unit 2 outputs the received received voice signal (received voice data) to the jitter buffer 20 in chronological order according to the sequence number. The voice packet header includes a time stamp in addition to the sequence number. The sequence number indicates the transmission order of the voice packets, and the time stamp indicates the relative position of the voice signal in the original voice waveform.

ジッタバッファ20は、伝送処理部2から出力された受話音声データを一旦保持し、所定時間遅延させて検出処理部23に出力することで音声パケットの遅延ゆらぎを吸収する。   The jitter buffer 20 temporarily holds the received voice data output from the transmission processing unit 2, delays it for a predetermined time, and outputs it to the detection processing unit 23, thereby absorbing the delay fluctuation of the voice packet.

タイマ21は、パケットロス検出部22がパケットロスを検出する際に用いられる。パケットロス検出部22は、ジッタバッファ20が検出処理部23に受話音声データを出力した時点でタイマ21の計時を開始させ、ジッタバッファ20が次の受話音声データを出力する前に、タイマ21による計時時間がパケットロスが発生したと想定される所定時間を超えた場合、パケットロスが発生したと判定する。   The timer 21 is used when the packet loss detection unit 22 detects a packet loss. The packet loss detection unit 22 starts the timer 21 timing when the jitter buffer 20 outputs the reception voice data to the detection processing unit 23, and before the jitter buffer 20 outputs the next reception voice data, the timer 21 If the measured time exceeds a predetermined time in which packet loss is assumed to occur, it is determined that packet loss has occurred.

検出処理部23は、パケットロス検出部22によりパケットロスが検出された場合、ジッタバッファ20から出力された受話音声データに対して基本周期(ピッチ)の検出処理を行い、パケットロス検出部22によりパケットロスが検出されなかった場合、受話音声データに対して何も行わない。なお、検出処理部23は、過去一定期間の受話音声データを保持している。   When a packet loss is detected by the packet loss detection unit 22, the detection processing unit 23 performs a basic period (pitch) detection process on the received voice data output from the jitter buffer 20, and the packet loss detection unit 22 If no packet loss is detected, nothing is performed on the received voice data. The detection processing unit 23 holds received voice data for a certain period in the past.

ここで、検出処理部23は、テンプレート設定部23a及びピッチ検出部23bを備えている。テンプレート設定部23aは、パケットロスが発生したロス発生時点から過去に向けて所定時間幅の受話音声データをテンプレートとして設定する。ここで、テンプレート設定部23aは、ピッチ検出部23bがテンプレートのスライド量を増大させるにつれてテンプレートの前記時間幅を増大させる。   Here, the detection processing unit 23 includes a template setting unit 23a and a pitch detection unit 23b. The template setting unit 23a sets received voice data having a predetermined time width as a template from the loss occurrence time to the past when the packet loss has occurred. Here, the template setting unit 23a increases the time width of the template as the pitch detection unit 23b increases the slide amount of the template.

ピッチ検出部23bは、テンプレート設定部23aにより設定されたテンプレートを受話音声データに対してロス発生時点から過去に向けてスライドさせ、テンプレートと受話音声データとの相互相関を求め、テンプレートと受話音声データとの相関ピークが最も強く現れたときのスライド量からロス発生時点の直前の受話音声信号のピッチを検出する。   The pitch detection unit 23b slides the template set by the template setting unit 23a toward the past from the point of occurrence of loss with respect to the reception voice data, obtains the cross-correlation between the template and the reception voice data, and calculates the template and the reception voice data. The pitch of the received voice signal immediately before the point of occurrence of loss is detected from the amount of slide when the correlation peak with the maximum appears.

図13は、テンプレート設定部23a及びピッチ検出部23bの処理を説明するための受話音声信号の波形図である。なお、図13に示す縦軸は受話音声信号の強度を示し、横軸は時間をサンプル数で示したものである。また、図13に示すテンプレートTJは従来の補償処理に使用されていたテンプレートを示している。   FIG. 13 is a waveform diagram of a received voice signal for explaining the processing of the template setting unit 23a and the pitch detection unit 23b. Note that the vertical axis shown in FIG. 13 indicates the intensity of the received voice signal, and the horizontal axis indicates time in number of samples. Further, a template TJ shown in FIG. 13 indicates a template used in the conventional compensation processing.

パケットロスが発生すると、従来では、例えば、ロス発生時点RTから過去の所定期間分の受話音声信号をテンプレートTJとして設定する。そして、このテンプレートTJを受話音声信号に対してロス発生時点RTから過去に向けてスライドさせることで、受話音声信号とテンプレートTJの相互相関を求め、最も強い相関ピークが得られたときのテンプレートTJのスライド量から受話音声信号のピッチを検出していた。   When a packet loss occurs, conventionally, for example, received voice signals for a predetermined period in the past from the loss occurrence time RT are set as the template TJ. Then, by sliding the template TJ toward the past from the loss occurrence time RT with respect to the received voice signal, the cross-correlation between the received voice signal and the template TJ is obtained, and the template TJ when the strongest correlation peak is obtained. The pitch of the received voice signal was detected from the slide amount.

図14は、従来のテンプレートTJを用いたときのテンプレートTJと受話音声信号との相関値の演算結果を示したグラフである。なお、図14においては、従来周知である平均振幅差関数(Average Magnitude Difference Function)を用いて相関値が算出されている。また、図14において、縦軸は相関値を示し、横軸はロス発生時点RTを0としたときの時間をサンプル数で示したものである。また、図14はAMDFによる相関値であるため、値が小さいほど受話音声信号とテンプレートTJとの相関が強い。   FIG. 14 is a graph showing the calculation result of the correlation value between the template TJ and the received voice signal when the conventional template TJ is used. In FIG. 14, the correlation value is calculated using a conventionally known average amplitude difference function (Average Magnitude Difference Function). In FIG. 14, the vertical axis indicates the correlation value, and the horizontal axis indicates the time when the loss occurrence time RT is 0 as the number of samples. Further, since FIG. 14 shows the correlation value by AMDF, the smaller the value, the stronger the correlation between the received voice signal and the template TJ.

図14では、まず、37サンプルの時点で下に凸の相関ピークPK1が現れ、次に、47サンプルの時点で下に凸の相関ピークPK2が現れ、以後、およそ37サンプルの周期で下に凸の相関ピークが繰り返し現れている。そして、相関ピークPK1の方が相関ピークPK2よりも小さく現れている。そのため、従来の手法では37サンプルが受話音声信号のピッチとして検出されてしまう。   In FIG. 14, a convex correlation peak PK1 appears first at 37 samples, then a downward correlation peak PK2 appears at 47 samples, and thereafter convex downward at a period of approximately 37 samples. The correlation peak of appears repeatedly. The correlation peak PK1 appears smaller than the correlation peak PK2. Therefore, in the conventional method, 37 samples are detected as the pitch of the received voice signal.

一方、図13に示すようにロス発生時点RTの直前の受話音声信号のピッチは、47サンプルである。そのため、従来の手法では、ロス発生時点RTの直前の受話音声信号のピッチが精度良く検出されていないことが分かる。   On the other hand, as shown in FIG. 13, the pitch of the received voice signal immediately before the loss occurrence time RT is 47 samples. Therefore, it can be seen that in the conventional method, the pitch of the received voice signal immediately before the loss occurrence time RT is not accurately detected.

これは、テンプレートTJの時間幅が47サンプルより遙かに大きく、テンプレートTJには検出対象となるピッチが47サンプルの受話音声信号は1周期分しか含まれていないが、検出対象でないピッチが37サンプルの受話音声信号は3周期分も含まれているため、37サンプルで強い相関ピークが現れたことが原因と考えられる。   This is because the time width of the template TJ is much larger than 47 samples, and the template TJ includes only one period of the received voice signal whose pitch to be detected is 47 samples, but the pitch that is not to be detected is 37. Since the sample received voice signal includes three periods, it is considered that a strong correlation peak appeared at 37 samples.

この場合、ロス発生時点RTから過去に遡って37サンプル分の受話音声信号を取り出し、この受話音声信号をロス期間に繰り返し当てはめることで、補償処理が行われる。   In this case, the received voice signal for 37 samples is extracted retroactively from the loss occurrence point RT, and the received voice signal is repeatedly applied to the loss period to perform compensation processing.

そのため、ロス期間の波形とロス期間以外の波形とを滑らかに繋ぐことが困難となり、補償処理を精度良く行うことが困難となってしまう。   Therefore, it is difficult to smoothly connect the waveform of the loss period and the waveform other than the loss period, and it is difficult to perform the compensation process with high accuracy.

一方、テンプレートの時間幅が47サンプルより小さい場合、47サンプルのピッチを検出することはできない。   On the other hand, when the time width of the template is smaller than 47 samples, the pitch of 47 samples cannot be detected.

そこで、本実施形態における検出処理部23では、図13に示すようにテンプレートTMのスライド量を増大するにつれて、テンプレートTMの時間幅を増大している。   Therefore, in the detection processing unit 23 in the present embodiment, the time width of the template TM is increased as the slide amount of the template TM is increased as shown in FIG.

そのため、例えば図13の3段目に示すテンプレートTMのように、ある程度テンプレートTMをスライドさせたとき、そのテンプレートには、ほぼ検出対象となる47サンプルの受話音声信号のみが含まれるようになる。一方、図13の4段目のテンプレートTMにおいては、ピッチが47サンプルの受話音声信号に加えて、ピッチが37サンプルの受話音声信号も含まれている。そのため、3段目のテンプレートTMと受話音声信号との相関の方が、4段目のテンプレートTMと受話音声信号との相関よりも強く表れ、ロス発生時点RTの直前の受話音声信号のピッチを精度良く検出することが可能となる。   Therefore, for example, when the template TM is slid to some extent as in the template TM shown in the third row of FIG. 13, the template includes only 47 samples of received voice signals that are to be detected. On the other hand, the template TM in the fourth row in FIG. 13 includes a received voice signal with a pitch of 37 samples in addition to a received voice signal with a pitch of 47 samples. Therefore, the correlation between the third-stage template TM and the received voice signal is stronger than the correlation between the fourth-stage template TM and the received voice signal, and the pitch of the received voice signal immediately before the loss occurrence time RT is increased. It becomes possible to detect with high accuracy.

ここで、ピッチ検出部23bは、相関演算として、例えば式(1)に示すAMDFを採用することが好ましい。   Here, it is preferable that the pitch detection unit 23b employs, for example, AMDF represented by Expression (1) as the correlation calculation.


但し、φ(τ)は相関値、NはテンプレートTMの時間幅、x(j)はテンプレートTM、x(j-τ)は受話音声信号、k+1はテンプレートTMの開始点、aは予め定められた係数、τはテンプレートTMのスライド量、jは受話音声信号の各サンプリング点のサンプリング番号をそれぞれ示している。   Where φ (τ) is the correlation value, N is the time width of the template TM, x (j) is the template TM, x (j−τ) is the received voice signal, k + 1 is the starting point of the template TM, and a is in advance The determined coefficient, τ indicates the slide amount of the template TM, and j indicates the sampling number of each sampling point of the received voice signal.

また、テンプレート設定部23aは、テンプレートTMのスライド量が所定のスライド基準値になるまで、テンプレートTMの時間幅を所定の初期時間幅に設定することが好ましい。   Further, it is preferable that the template setting unit 23a sets the time width of the template TM to a predetermined initial time width until the slide amount of the template TM reaches a predetermined slide reference value.

こうすることで、テンプレートTMのスライド量が比較的小さい場合は、テンプレートTMの時間幅が初期時間幅に設定され、スライド量が小さい場合であってもテンプレートTMの時間幅を一定の大きさ以上確保することが可能となり、テンプレートTMと受話音声信号(入力信号)の間の相関をより精度良く求めることができる。   By doing this, when the slide amount of the template TM is relatively small, the time width of the template TM is set to the initial time width, and even when the slide amount is small, the time width of the template TM is larger than a certain amount. The correlation between the template TM and the received voice signal (input signal) can be obtained with higher accuracy.

更に、テンプレートTMのスライド量がスライド基準値になるまで、テンプレートTMの時間幅は初期時間幅に設定されるが、この初期時間幅を比較的短くすることで、計算量を少なくすることができる。   Furthermore, the time width of the template TM is set to the initial time width until the slide amount of the template TM reaches the slide reference value, but the amount of calculation can be reduced by relatively shortening the initial time width. .

なお、初期時間幅としては、想定される受話音声信号のピッチの最小値程度を採用することが好ましい。また、スライド基準値としては、例えば初期時間幅を採用すればよい。   In addition, as the initial time width, it is preferable to employ the assumed minimum value of the pitch of the received voice signal. As the slide reference value, for example, an initial time width may be adopted.

図15は、テンプレート設定部23a及びピッチ検出部23bの処理を説明する図である。図15に示す直線上の各点は受話音声信号のサンプリング点を示している。また、右端のサンプリング点はロス発生時点RTを示し、各サンプリング点は、左に向かうにつれて過去のサンプリング点を示している。また、ロス発生時点RTを0番目のサンプリング点とする。受話音声信号のピッチは、短い場合で3msec程度であり、サンプリング周波数が8kHzとすると、24サンプルに相当する。したがって、初期時間幅として、例えば24サンプルとすればよいが、図15では、説明の便宜上、テンプレートTMの初期時間幅を4とし、a=1とし、スライド基準値を5とする。   FIG. 15 is a diagram for explaining the processing of the template setting unit 23a and the pitch detection unit 23b. Each point on the straight line shown in FIG. 15 indicates a sampling point of the received voice signal. The rightmost sampling point indicates a loss occurrence time RT, and each sampling point indicates a past sampling point toward the left. The loss occurrence time RT is set as the 0th sampling point. The pitch of the received voice signal is about 3 msec in a short case, and if the sampling frequency is 8 kHz, it corresponds to 24 samples. Accordingly, the initial time width may be 24 samples, for example. In FIG. 15, for convenience of explanation, the initial time width of the template TM is set to 4, a = 1, and the slide reference value is set to 5.

まず、パケットロスが発生すると、ピッチ検出部23bは、τ=0に設定し、テンプレートTMの初期時間幅が4であるため、ロス発生時点RTから左に4番目のサンプリング点を基準サンプリング点kとして設定し、kからロス発生時点RTに向かうにつれて、1ずつ増えるように各サンプリング点にサンプリング番号を付与し、kから過去に向かうにつれて、1ずつ減少するように各サンプリング点にサンプリング番号を付与する。   First, when a packet loss occurs, the pitch detection unit 23b sets τ = 0 and the initial time width of the template TM is 4. Therefore, the fourth sampling point on the left from the loss occurrence time RT is set as the reference sampling point k. And set the sampling number to each sampling point so that it increases by 1 from k to the loss occurrence time RT, and assign the sampling number to each sampling point so that it decreases by 1 from k to the past. To do.

そして、テンプレート設定部23aは、受話音声信号x(k+1)〜x(k+4)をテンプレートTM0として設定する。   Then, the template setting unit 23a sets the received voice signals x (k + 1) to x (k + 4) as the template TM0.

そして、ピッチ検出部23bは、式(1)を用いて、テンプレートTM0と受話音声信号x(j-0)との相関値φ(0)を算出する。この場合テンプレートTM0は、音声信号x(k+1)〜x(k+4)に当てはめられる。   Then, the pitch detection unit 23b calculates a correlation value φ (0) between the template TM0 and the received voice signal x (j-0) using Expression (1). In this case, the template TM0 is applied to the audio signals x (k + 1) to x (k + 4).

次に、ピッチ検出部23bは、τ=1に設定し、τ=0と同様にして、式(1)を用いて、テンプレートTM0と音声信号x(j-1)との相関値φ(1)を算出する。この場合、テンプレートTM0は、音声信号x(k)〜x(k+3)に当てはめられる。  Next, the pitch detection unit 23b sets τ = 1, and similarly to τ = 0, using the equation (1), the correlation value φ (1) between the template TM0 and the audio signal x (j−1). ) Is calculated. In this case, the template TM0 is applied to the audio signals x (k) to x (k + 3).

以下、τ=4になるまで、テンプレートTM0が受話音声信号に対して過去に向けてスライドされ、式(1)を用いてφ(2),φ(3),φ(4)が算出される。   Thereafter, the template TM0 is slid toward the past with respect to the received voice signal until τ = 4, and φ (2), φ (3), φ (4) are calculated using Equation (1). .

次に、ピッチ検出部23bは、τ=5に設定すると、τ≧スライド基準値(=5)であるため、ロス発生時点RTから左に5番目のサンプリング点を基準サンプリング点kとして設定する。そして、テンプレート設定部23aは、音声信号x(k+1)〜x(k+5)をテンプレートTM5として設定する。そして、ピッチ検出部23bは、式(1)を用いてテンプレートTM5と音声信号x(j-5)との相関値φ(5)を求める。この場合、テンプレートTM5は、音声信号x(k-4)〜x(k)に当てはめられる。   Next, when τ = 5, the pitch detection unit 23b sets τ ≧ slide reference value (= 5), and therefore sets the fifth sampling point to the left from the loss occurrence time RT as the reference sampling point k. Then, the template setting unit 23a sets the audio signals x (k + 1) to x (k + 5) as the template TM5. Then, the pitch detection unit 23b obtains a correlation value φ (5) between the template TM5 and the audio signal x (j-5) using Expression (1). In this case, the template TM5 is applied to the audio signals x (k-4) to x (k).

次に、ピッチ検出部23bは、τ=6に設定し、ロス発生時点RTから左に6番目のサンプリング点を基準サンプリング点kとして設定する。そして、テンプレート設定部23aは、受話音声信号x(k+1)〜x(k+6)をテンプレートTM6として設定する。そして、ピッチ検出部23bは、式(1)を用いてテンプレートTM6と受話音声信号x(j-6)との相関値φ(6)を求める。この場合、テンプレートTM6は、音声信号x(k-5)〜x(k)に当てはめられる。  Next, the pitch detector 23b sets τ = 6, and sets the sixth sampling point to the left from the loss occurrence time RT as the reference sampling point k. Then, the template setting unit 23a sets the received voice signals x (k + 1) to x (k + 6) as the template TM6. Then, the pitch detection unit 23b obtains a correlation value φ (6) between the template TM6 and the received voice signal x (j-6) using Expression (1). In this case, the template TM6 is applied to the audio signals x (k-5) to x (k).

以後、ピッチ検出部23bは、τが最大スライド量であるτmaxになるまで、上記処理を繰り返し、φ(τ)を求める。これにより、テンプレートTMは、スライド量が増大するにつれて、時間幅が増大されることになる。   Thereafter, the pitch detector 23b repeats the above processing until τ reaches the maximum slide amount τmax, and obtains φ (τ). As a result, the time width of the template TM is increased as the slide amount increases.

図16は、図13に示す受話音声信号に対して本実施形態による手法を用いて相関値φ(τ)を求めたときの相関値φ(τ)のグラフを示している。なお、図13において、縦軸は相関値φ(τ)を示し、横軸は時間をサンプル数で示したものである。また、図13においては、AMDFにより相関値φ(τ)が算出されている。したがって、図14と同様、相関値の低い相関ピークほど受話音声信号とテンプレートTMとの相関が強い。   FIG. 16 shows a graph of the correlation value φ (τ) when the correlation value φ (τ) is obtained for the received voice signal shown in FIG. 13 using the method according to the present embodiment. In FIG. 13, the vertical axis indicates the correlation value φ (τ), and the horizontal axis indicates the time as the number of samples. In FIG. 13, the correlation value φ (τ) is calculated by AMDF. Therefore, as in FIG. 14, the correlation peak with the lower correlation value has a stronger correlation between the received voice signal and the template TM.

図16においては、ロス発生時点RT(=0)からおよそ47サンプル経過したときに下に凸の相関ピークPK1が現れ、次に、相関ピークPK1が現れてからおよそ37サンプル経過したときに下に凸の相関ピークPK2が現れ、以後、およそ37サンプル経過する毎に下に凸の相関ピークが現れている。また、相関ピークは時間が経過するにつれて値が大きくなっており、テンプレートTMと受話音声信号との相関が弱くなっている。なお、サンプリング周波数を8kHzとすると、37サンプルは、37×0.125msec=4.625msecに相当し、47サンプルは、47×0.125=5.875msecに相当する。   In FIG. 16, a convex correlation peak PK1 appears when approximately 47 samples have elapsed since the loss occurrence time RT (= 0), and then when approximately 37 samples have elapsed since the correlation peak PK1 appeared. A convex correlation peak PK2 appears, and thereafter a convex correlation peak appears every approximately 37 samples. Further, the value of the correlation peak increases with time, and the correlation between the template TM and the received voice signal is weakened. If the sampling frequency is 8 kHz, 37 samples correspond to 37 × 0.125 msec = 4.625 msec, and 47 samples correspond to 47 × 0.125 = 5.875 msec.

つまり、図16に示す相関ピークのうち、テンプレートTMを47サンプル分ずらしたときの相関ピークPK1が最小となっている。   That is, among the correlation peaks shown in FIG. 16, the correlation peak PK1 when the template TM is shifted by 47 samples is the smallest.

そのため、ピッチ検出部23bは、最小の相関ピークPK1が現れた時刻である47サンプルをロス発生時点RTの直前の受話音声信号のピッチとして検出する。したがって、ピッチ検出部23bは、図13に示すロス発生時点RTの直前の受話音声信号のピッチである47サンプルを検出できていることが分かる。   Therefore, the pitch detector 23b detects 47 samples, which is the time when the minimum correlation peak PK1 appears, as the pitch of the received voice signal immediately before the loss occurrence time RT. Therefore, it can be seen that the pitch detection unit 23b can detect 47 samples, which are the pitches of the received voice signal immediately before the loss occurrence time RT shown in FIG.

補償処理部24は、ロス発生時点RTから過去に向けてピッチ検出部23bにより検出された1ピッチ分の受話音声信号を取り出し、取り出した受話音声信号でパケットロスが発生したロス期間を補償する補償処理を行う。   The compensation processing unit 24 extracts a reception voice signal for one pitch detected by the pitch detection unit 23b from the loss occurrence time point RT to the past, and compensates for a loss period in which a packet loss has occurred in the extracted reception voice signal Process.

ここで、補償処理部24は、例えば、図13に示す受話音声信号が入力され、ピッチ検出部23bがピッチとして47サンプルを検出したとすると、ロス発生時点RTから過去に向けて47サンプルの受話音声信号を取り出し、取り出された受話音声信号をロス期間の最後まで繰り返し当てはめてロス期間を補償する。   Here, for example, if the reception voice signal shown in FIG. 13 is input to the compensation processing unit 24 and the pitch detection unit 23b detects 47 samples as the pitch, the reception of 47 samples from the loss occurrence time RT to the past is performed. A voice signal is extracted, and the received reception voice signal is repeatedly applied to the end of the loss period to compensate for the loss period.

図17は、音声データ欠落補償処理部VCの動作(音声データ欠落補償処理)の手順を示すフローチャートである。なお、図17のフローチャートでは、説明の便宜上、a=1としている。まず、ステップS1において、パケットロス検出部22が、パケットロスを検出すると(ステップS1)、ピッチ検出部23bは、τ=0に設定する(ステップS2)。   FIG. 17 is a flowchart showing the procedure of the operation of the audio data loss compensation processing unit VC (audio data loss compensation processing). In the flowchart of FIG. 17, a = 1 is set for convenience of explanation. First, in step S1, when the packet loss detection unit 22 detects a packet loss (step S1), the pitch detection unit 23b sets τ = 0 (step S2).

次に、テンプレート設定部23aは、τの値に応じた時間幅のテンプレートTMを受話音声信号から設定する(ステップS3)。このとき、テンプレート設定部23aは、τ<スライド基準値の場合は、テンプレートTMの時間幅を初期時間幅に設定し、τ≧スライド基準値の場合、テンプレートTMの時間幅をN=τに設定する。   Next, the template setting unit 23a sets a template TM having a time width corresponding to the value of τ from the received voice signal (step S3). At this time, the template setting unit 23a sets the time width of the template TM to the initial time width if τ <slide reference value, and sets the time width of the template TM to N = τ if τ ≧ slide reference value. To do.

次に、ピッチ検出部23bは、k+1がテンプレートTMの開始点となるように、基準サンプリング点kを設定し、各サンプリング点にサンプリング番号を付与する(ステップS4)。   Next, the pitch detection unit 23b sets a reference sampling point k so that k + 1 is the starting point of the template TM, and assigns a sampling number to each sampling point (step S4).

次に、ピッチ検出部23bは、式(1)を用いてテンプレートTMと受話音声信号との相関値を算出する(ステップS5)。   Next, the pitch detection unit 23b calculates a correlation value between the template TM and the received voice signal using Expression (1) (step S5).

次に、ピッチ検出部23bは、τ=τ+1とする(ステップS6)。次に、ピッチ検出部23bは、τ≧スライド基準値の場合(ステップS7)、すなわち、テンプレートTMのスライド量がスライド基準値を超えた場合、処理をステップS8に進め、τ<スライド基準値の場合(ステップS7)、処理をステップS5に戻す。ステップS5〜S7の処理が繰り返されることで、初期時間幅のテンプレートTMは、スライド基準値となるまで、受話音声信号に対して過去に向けてスライドされる。   Next, the pitch detector 23b sets τ = τ + 1 (step S6). Next, when τ ≧ slide reference value (step S7), that is, when the slide amount of the template TM exceeds the slide reference value, the pitch detection unit 23b advances the process to step S8, where τ <slide reference value If so (step S7), the process returns to step S5. By repeating the processes of steps S5 to S7, the template TM having the initial time width is slid toward the past with respect to the received voice signal until the slide TM becomes the slide reference value.

ステップS8において、τ<τmaxである場合(ステップS8)、処理がステップS3に戻され、τ≧τmaxとなるまで、ステップS3〜S8の処理が繰り返される。これにより、テンプレートTMは、スライド量であるτが増大するにつれて時間幅が増大される。   If τ <τmax in step S8 (step S8), the process returns to step S3, and the processes in steps S3 to S8 are repeated until τ ≧ τmax. Thereby, the time width of the template TM is increased as τ which is the slide amount increases.

ステップS8において、τ≧τmaxとなった場合(ステップS8)、ピッチ検出部23bは、ステップS5で算出した相関値から相関ピークを検出し、検出した相関ピークのうち、テンプレートTMと受話音声信号との相関が最も強い相関ピークのスライド量を特定し、特定したスライド量からピッチを検出する(ステップS9)。ここで、式(1)を採用した場合、相関値が最小の値を示す相関ピークがテンプレートTMと受話音声信号との最も強い相関を示す。   In step S8, when τ ≧ τmax (step S8), the pitch detector 23b detects a correlation peak from the correlation value calculated in step S5, and among the detected correlation peaks, the template TM and the received voice signal The slide amount of the correlation peak with the strongest correlation is identified, and the pitch is detected from the identified slide amount (step S9). Here, when Equation (1) is adopted, the correlation peak indicating the minimum correlation value indicates the strongest correlation between the template TM and the received voice signal.

また、ピッチ検出部23bは、特定したスライド量に音声信号のサンプリング周期を乗じることで、ピッチを算出すればよい。   The pitch detector 23b may calculate the pitch by multiplying the specified slide amount by the sampling period of the audio signal.

次に、補償処理部24は、ステップS9で検出されたピッチに従って受話音声信号を取り出し、取り出した受話音声信号を用いてロス期間を補償する(ステップS10)。   Next, the compensation processing unit 24 extracts the received voice signal according to the pitch detected in step S9, and compensates for the loss period using the received received voice signal (step S10).

なお、図15の説明では、テンプレート設定部23aは、a=1に設定したが、これに限定されず、テンプレートTMのスライド量が所定の変更基準値を超えるまで、aを1≦a<2の範囲内の所定の固定値に設定し、スライド量が変更基準値を超えると、スライド量が最大スライド量(τmax)に近づくにつれて、1に近づくようにaの値を漸次減少させてもよい。変更基準値としては、例えば上記のスライド基準値を採用することができる。   In the description of FIG. 15, the template setting unit 23a sets a = 1. However, the present invention is not limited to this, and a is set to 1 ≦ a <2 until the slide amount of the template TM exceeds a predetermined change reference value. When the slide amount exceeds the change reference value, the value of a may be gradually decreased so as to approach 1 as the slide amount approaches the maximum slide amount (τmax). . As the change reference value, for example, the above-described slide reference value can be adopted.

これにより、スライド量が小さい場合、テンプレートTMの時間幅をスライド量に対して大きめに設定することができ、スライド量が大きい場合、テンプレートTMの時間幅をスライド量程度の値に設定することができる。そのため、スライド量が小さい場合において、テンプレートTMの時間幅が小さくなりすぎることによる相関演算精度の低下を防止することができる。   As a result, when the slide amount is small, the time width of the template TM can be set larger than the slide amount, and when the slide amount is large, the time width of the template TM can be set to a value about the slide amount. it can. Therefore, when the slide amount is small, it is possible to prevent the correlation calculation accuracy from being lowered due to the time width of the template TM becoming too small.

また、相関演算としては、式(1)に示すAMDFに代えて、従来周知である相互相関や平均自乗差関数(Average Squre Difference Function)等の手法を採用してもよい。   Further, as the correlation calculation, instead of the AMDF shown in the equation (1), a conventionally known method such as a cross-correlation or a mean square difference function may be adopted.

このように、本実施形態における音声データ欠落補償処理部VCによれば、パケットロスの発生時点RTから過去に向けてある時間幅の受話音声信号がテンプレートTMとして設定される。そして、設定されたテンプレートTMが受話音声信号に対して現時点から過去に向けてスライドされる。そして、テンプレートTMと受話音声信号との相関が求められ、受話音声信号のピッチが検出される。   As described above, according to the voice data loss compensation processing unit VC in the present embodiment, a received voice signal having a certain width from the packet loss occurrence time point RT to the past is set as the template TM. Then, the set template TM is slid toward the past from the present time with respect to the received voice signal. Then, the correlation between the template TM and the received voice signal is obtained, and the pitch of the received voice signal is detected.

ここで、テンプレートTMはスライド量が増大するにつれて時間幅が増大される。したがって、スライド量が小さい比較的初期の段階において、現時点のほぼ直前の1ピッチ分の受話音声信号がテンプレートTMとされるタイミングが発生する。このとき、テンプレートTMと受話音声信号との間で強い相関ピークが現れる。一方、スライド量が大きくなると、それに応じてテンプレートTMの時間幅も増大され、テンプレートTMには複数の周波数成分が含まれるようになる。そのため、上記のタイミングで得られる相関ピークほど強い相関ピークを得ることはできなくなる。よって、現時点のほぼ直前の受話音声信号のピッチを精度良く検出することが可能となる。   Here, the time width of the template TM is increased as the slide amount increases. Therefore, at a relatively early stage where the slide amount is small, a timing occurs when the received voice signal for one pitch almost immediately before the current time is used as the template TM. At this time, a strong correlation peak appears between the template TM and the received voice signal. On the other hand, when the slide amount increases, the time width of the template TM increases accordingly, and the template TM includes a plurality of frequency components. Therefore, it becomes impossible to obtain a stronger correlation peak as the correlation peak obtained at the above timing. Therefore, it is possible to accurately detect the pitch of the received voice signal almost immediately before the current time.

揺らぎ吸収処理部JAは、図18に示すようにジッタバッファ30、カウント部31、バッファサイズ変更部32、受信時刻記録部33、基準値記憶部34、隠蔽処理部35、出力部36、観測履歴保持部37を備えている。但し、これらの各部は、音声データ欠落補償処理部VCと同様にDSPが揺らぎ吸収処理プログラムを実行することで実現される。また、ジッタバッファ30は音声データ欠落補償処理部VCのジッタバッファ20と共用される。   As shown in FIG. 18, the fluctuation absorption processing unit JA includes a jitter buffer 30, a count unit 31, a buffer size changing unit 32, a reception time recording unit 33, a reference value storage unit 34, a concealment processing unit 35, an output unit 36, and an observation history. A holding part 37 is provided. However, these units are realized by the DSP executing the fluctuation absorption processing program in the same manner as the audio data loss compensation processing unit VC. The jitter buffer 30 is shared with the jitter buffer 20 of the audio data loss compensation processing unit VC.

受信時刻記録部33は、伝送処理部2が音声パケット(受話音声パケット)を受信した時刻(タイムスタンプ)を、受信したパケットのシーケンス番号に対応付けて記録する。   The reception time recording unit 33 records the time (time stamp) when the transmission processing unit 2 receives the voice packet (received voice packet) in association with the sequence number of the received packet.

ジッタバッファ30は、例えばリングバッファにより構成され、伝送処理部2により受信されたパケットを時系列順で蓄積する。これにより、幹線L1を介して伝送される音声パケットの伝送遅延の揺らぎが吸収される。なお、ジッタバッファ30のサイズとしては、後述する基準値よりも大きなサイズが採用されている。   The jitter buffer 30 is constituted by, for example, a ring buffer, and accumulates packets received by the transmission processing unit 2 in chronological order. As a result, fluctuations in transmission delay of voice packets transmitted via the trunk line L1 are absorbed. As the size of the jitter buffer 30, a size larger than a reference value described later is adopted.

カウント部31は、音声がパケット化される周期(パケット化周期)以下の所定周期(カウント周期)で、ジッタバッファ30に蓄積されている蓄積パケット数をカウントすることでパケットカウント値を算出する。そして、カウント部31が算出したパケットカウント値は観測履歴保持部37に保持される。観測履歴保持部37は、例えば、揮発性の半導体メモリにより構成され、カウント部31により算出された過去N(Nは正の整数)回のパケットカウント値を保持する。   The counting unit 31 calculates a packet count value by counting the number of accumulated packets accumulated in the jitter buffer 30 at a predetermined period (count period) that is equal to or less than the period in which voice is packetized (packetization period). The packet count value calculated by the count unit 31 is held in the observation history holding unit 37. The observation history holding unit 37 is composed of, for example, a volatile semiconductor memory, and holds the packet count value of the past N (N is a positive integer) calculated by the counting unit 31.

図19は、カウント部31によるパケットカウント値の算出処理の説明図である。図19に示すように、カウント部31は、カウント周期Tbでパケットカウント値を算出している。   FIG. 19 is an explanatory diagram of packet count value calculation processing by the count unit 31. FIG. As shown in FIG. 19, the count unit 31 calculates a packet count value at the count cycle Tb.

ここで、カウント部31は、パケットカウント値の算出タイミングである算出時刻Tkから、過去、パケット化周期Ta内に受信したパケットPSについては、カウント値をΔT/Taにより得られる値に設定し、算出時刻Tkから、過去、パケット化周期Ta以前に受信したパケットPLについては、カウント値を1に設定することでパケットカウント値を算出する。つまり、パケットPSのパケットカウント値は、受信時刻が算出時刻Tkに近づくにつれて差分ΔTが小さくなるため、値が小さくなる。   Here, the counting unit 31 sets the count value to a value obtained by ΔT / Ta for the packet PS received in the past in the packetization period Ta from the calculation time Tk that is the calculation timing of the packet count value, For the packet PL received before the packetization period Ta from the calculation time Tk, the packet count value is calculated by setting the count value to 1. That is, the packet count value of the packet PS decreases as the difference ΔT decreases as the reception time approaches the calculation time Tk.

ここで、パケットPSについては、パケットカウント値を算出するにあたって受信時刻が用いられているため、受信時刻を保持しておく必要がある。一方、パケットPLについては、パケットカウント値を算出するにあたって受信時刻が不要であるため、受信時刻を記録しておく必要はない。   Here, for the packet PS, since the reception time is used in calculating the packet count value, it is necessary to hold the reception time. On the other hand, for the packet PL, since the reception time is not necessary for calculating the packet count value, it is not necessary to record the reception time.

そこで、カウント部31は、パケットカウント値の算出処理が終了すると、算出時刻Tkから、過去、パケット化周期Taとカウント周期Tbとの差分(=Ta-Tb)以前に受信したパケットについては、受信時刻を受信時刻記録部33から削除する。   Therefore, when the packet count value calculation process ends, the counting unit 31 receives the packet received before the difference (= Ta−Tb) between the packetization period Ta and the count period Tb from the calculation time Tk. The time is deleted from the reception time recording unit 33.

これにより、パケットカウント値の次の算出時刻である時刻Tk+1において、過去、パケット化周期Taに受信したパケットの受信時刻が受信時刻記録部33に保持されている結果、カウント部31は、時刻Tk+1において、過去、パケット化周期Taに受信したパケットの受信時刻を取得することができる。こうすることで、受信時刻記録部33の容量を節約することが可能となる。   Thereby, at the time Tk + 1 which is the next calculation time of the packet count value, as a result of the reception time of the packet received in the past in the packetization period Ta being held in the reception time recording unit 33, the counting unit 31 is At time Tk + 1, the reception time of the packet received in the past in the packetization period Ta can be acquired. In this way, the capacity of the reception time recording unit 33 can be saved.

バッファサイズ変更部32は、カウント部31により算出されたパケットカウント値の過去のN回のパケットカウント値を観測履歴保持部37から読み出し、読み出したN回のパケットカウント値から、n番目に小さいパケットカウント値をパケットカウント値の代表値として算出し、算出した代表値が所定の基準値より大きければ、ジッタバッファ30に蓄積されているパケットを削除し、代表値が基準値より小さければ、ジッタバッファ30にパケットを挿入する。なお、基準値は基準値記憶部34に記憶されている。   The buffer size changing unit 32 reads the past N packet count values of the packet count value calculated by the counting unit 31 from the observation history holding unit 37, and the nth smallest packet from the read N packet count values The count value is calculated as a representative value of the packet count value. If the calculated representative value is larger than a predetermined reference value, the packet stored in the jitter buffer 30 is deleted. If the representative value is smaller than the reference value, the jitter buffer Insert packet into 30. The reference value is stored in the reference value storage unit 34.

ここで、バッファサイズ変更部32は、代表値が基準値より小さい場合は、代表値が、基準値以上かつ基準値+1未満となるように、ジッタバッファ30にパケットを挿入すればよい。例えば、代表値が2.1、基準値が4の場合、代表値が4.1となるように2つのパケットがジッタバッファ30に挿入される。また、バッファサイズ変更部32は、代表値が基準値より大きい場合は、代表値が基準値以上かつ基準値+1未満となるように、ジッタバッファ30からパケットを削除すればよい。例えば、代表値が4.2、基準値が2の場合、代表値が2.2となるように2つのパケットがジッタバッファ30から削除される。   Here, when the representative value is smaller than the reference value, the buffer size changing unit 32 may insert the packet into the jitter buffer 30 so that the representative value is not less than the reference value and less than the reference value + 1. For example, when the representative value is 2.1 and the reference value is 4, two packets are inserted into the jitter buffer 30 so that the representative value is 4.1. In addition, when the representative value is larger than the reference value, the buffer size changing unit 32 may delete the packet from the jitter buffer 30 so that the representative value is not less than the reference value and less than the reference value + 1. For example, when the representative value is 4.2 and the reference value is 2, two packets are deleted from the jitter buffer 30 so that the representative value is 2.2.

なお、nとしては、N×αにより整数値に丸め込んだ値を採用することが好ましい。また、基準値としては、集合住宅用インターホンシステムがインターホン通話(パケット伝送方式による通話)において許容する通話遅延時間に基づいて予め定められた値が採用されている。つまり、ジッタバッファ30の蓄積パケット数が基準値よりも大きければ、ジッタバッファ30において、出力待ちのパケット数が増大するため、通話遅延が発生する。そこで、上述のようにn番目のパケットカウント値である代表値が基準値よりも大きい場合は、ジッタバッファ30からパケットを削除することにより、通話遅延を防止することができる。   As n, it is preferable to adopt a value rounded to an integer value by N × α. In addition, as the reference value, a value determined in advance based on a call delay time allowed by the intercom system for collective housing in an interphone call (call using a packet transmission method) is adopted. That is, if the number of packets stored in the jitter buffer 30 is larger than the reference value, the number of packets waiting for output in the jitter buffer 30 increases, so that a call delay occurs. Therefore, as described above, when the representative value that is the nth packet count value is larger than the reference value, it is possible to prevent call delay by deleting the packet from the jitter buffer 30.

一方、n番目のパケットカウント値である代表値が基準値よりも小さい場合は、ジッタバッファ30にパケットを挿入している。これにより、蓄積パケット数が基準値以下になる確率を、α(=n/N)%にすることができる。   On the other hand, when the representative value which is the nth packet count value is smaller than the reference value, the packet is inserted into the jitter buffer 30. As a result, the probability that the number of stored packets is equal to or less than the reference value can be set to α (= n / N)%.

隠蔽処理部35は、ジッタバッファ30に挿入された無効パケット(音声が含まれないパケット。以下、同じ。)に対して、パケットロス隠蔽処理を行うとともに、ジッタバッファ30においてパケットが枯渇した場合にパケットロス隠蔽処理を行う。ここで、パケットロス隠蔽処理としては、例えば、無効パケットより過去の受話音声信号から受話音声信号のピッチを検出し、無効パケットの直前の有効パケット(音声が含まれるパケット。以下、同じ。)の受話音声信号において、終端から1ピッチ分前の区間の音声波形を取り出し、この音声波形をパケット化周期(例えば、20msec)の期間、繰り返すことで得られる音声波形を無効パケットの受話音声信号として生成する手法を採用すればよい。なお、ピッチの検出については、上述した音声データ欠落補償処理におけるピッチ検出処理と共通の手法を採用すればよい。   The concealment processing unit 35 performs a packet loss concealment process on invalid packets (packets that do not include voice; the same applies hereinafter) inserted into the jitter buffer 30 and when the packets are depleted in the jitter buffer 30. Perform packet loss concealment processing. Here, as the packet loss concealment process, for example, the pitch of the received voice signal is detected from the received voice signal in the past from the invalid packet, and the valid packet immediately before the invalid packet (packet including voice; the same applies hereinafter). In the received voice signal, the voice waveform of the section one pitch before the end is taken out, and the voice waveform obtained by repeating this voice waveform for the period of packetization period (for example, 20 msec) is generated as the received voice signal of the invalid packet. It is sufficient to adopt a technique to do this. As for the pitch detection, a method common to the pitch detection process in the audio data loss compensation process described above may be employed.

出力部36は、ジッタバッファ30の蓄積パケット数が基準値以上となった場合、ジッタバッファ30からパケット化周期Taに同期してパケット(受話音声データ)を時系列順に読み出して受話音声信号の信号経路に出力する。ここで、出力部36は、ジッタバッファ30から取り出したパケットが音声を含まない無効パケットである場合、隠蔽処理部35にパケットロス隠蔽処理を実行させ、実行処理後の音声データを出力する。   When the number of packets stored in the jitter buffer 30 exceeds the reference value, the output unit 36 reads packets (received voice data) from the jitter buffer 30 in chronological order in synchronization with the packetization period Ta, and receives the received voice signal Output to the route. Here, when the packet extracted from the jitter buffer 30 is an invalid packet that does not include voice, the output unit 36 causes the concealment processing unit 35 to execute the packet loss concealment process, and outputs the voice data after the execution process.

観測履歴保持部37は、例えば不揮発性の半導体メモリにより構成され、カウント部31により算出された過去N回のパケットカウント値を保持する。   The observation history holding unit 37 is configured by, for example, a non-volatile semiconductor memory, and holds the past N packet count values calculated by the counting unit 31.

図20は、ジッタバッファ30の役割を説明するための図である。図20に示すように、受話音声信号を含むパケットは、パケット化周期(図示例では20msec)で住戸通話装置Aから送信される。図20では、1〜8の番号(シーケンス番号)が付された8個のパケットが20msecの間隔で送信されている状況を表している。   FIG. 20 is a diagram for explaining the role of the jitter buffer 30. As shown in FIG. 20, the packet including the received voice signal is transmitted from the dwelling unit communication apparatus A at a packetization period (20 msec in the illustrated example). FIG. 20 shows a situation in which 8 packets with numbers 1 to 8 (sequence numbers) are transmitted at intervals of 20 msec.

住戸通話装置Aから送信されたパケットは幹線L1を介して外線転送装置Eで受信されることになる。ここで、多数のパケット(音声パケット、映像パケット、制御パケット)が幹線L1を介して多重伝送されるため、住戸通話装置Aからパケット化周期で送信される音声パケットが外線転送装置Eに到達するまでの時間(伝送遅延)は、個々の音声パケット毎に大きく相違し、いわゆる伝送遅延の揺らぎが発生する。よって、外線転送装置Eによる音声パケットの受信間隔は不等間隔になる。   The packet transmitted from the dwelling unit communication apparatus A is received by the external line transfer apparatus E via the trunk line L1. Here, since a large number of packets (voice packets, video packets, and control packets) are multiplexed and transmitted through the trunk line L1, voice packets transmitted from the dwelling unit call device A at the packetization period reach the external line transfer device E. The time until the transmission time (transmission delay) is greatly different for each voice packet, and so-called transmission delay fluctuation occurs. Therefore, the voice packet reception intervals by the outside line transfer device E are unequal.

そこで、この伝送遅延の揺らぎを吸収するためにジッタバッファ30が設けられている。図20においては、ジッタバッファ30のバッファサイズはパケット3個分とされている。また、出力部36は、1番目のパケットを受信してから、遅延時間Tdが経過した時刻T1において、1番目のパケットに復号化処理及びD/A変換処理を施して出力を開始している。   Therefore, a jitter buffer 30 is provided to absorb this transmission delay fluctuation. In FIG. 20, the jitter buffer 30 has a buffer size of three packets. Further, the output unit 36 starts the output by performing the decoding process and the D / A conversion process on the first packet at the time T1 when the delay time Td has elapsed since the reception of the first packet. .

図20の場合、時刻T1から20msec経過後の2番目のパケットの出力時刻である時刻T2において、ジッタバッファ30は、2番目のパケットを蓄積している。よって、出力部36は、時刻T2において2番目のパケットを出力することができる。   In the case of FIG. 20, at time T2, which is the output time of the second packet after 20 msec from time T1, the jitter buffer 30 stores the second packet. Therefore, the output unit 36 can output the second packet at time T2.

一方、3番目のパケットは、伝送遅延が極端に大きいため、時刻T3において、外線転送装置Eに到達しておらず、ジッタバッファ30において、パケットの枯渇が生じている。そのため、出力部36は、時刻T3において3番目のパケットを出力することができず、音抜け(音声データの欠落)が発生する。   On the other hand, since the third packet has an extremely large transmission delay, it does not reach the external line transfer device E at time T3, and the jitter buffer 30 is depleted. For this reason, the output unit 36 cannot output the third packet at time T3, and sound loss (voice data loss) occurs.

また、3〜7番目のパケットは輻輳解消後に短時間で連続して外線転送装置Eに到達しており、7番目のパケットが外線転送装置Eに到達したとき、ジッタバッファ30には、5、6番目のパケットが存在するが、ジッタバッファ30に空きがあるため、7番目のパケットは破棄されず、ジッタバッファ30に格納される。よって、時刻T7において、7番目のパケットが出力部36から出力される。   The third to seventh packets reach the outside line transfer device E continuously in a short time after the congestion is eliminated, and when the seventh packet reaches the outside line transfer device E, the jitter buffer 30 has 5 Although the sixth packet exists, the seventh buffer is not discarded but is stored in the jitter buffer 30 because the jitter buffer 30 is empty. Therefore, the seventh packet is output from the output unit 36 at time T7.

このように、伝送遅延の揺らぎの特性は動的に変化するため、ジッタバッファ30のバッファサイズを固定サイズにすると、想定される伝送遅延の揺らぎよりも充分に長くせざるを得ない。また、ジッタバッファ30のバッファサイズを充分に長くし、かつ、遅延時間Tdを充分に長くすれば、音抜けの発生は防止できるが、遅延時間Tdが長いと、ジッタバッファ30において、出力待ちのパケットが増大し、通話遅延が発生してしまう。   As described above, the fluctuation characteristic of the transmission delay dynamically changes. Therefore, if the buffer size of the jitter buffer 30 is fixed, the transmission delay fluctuation must be sufficiently longer than the assumed fluctuation of the transmission delay. Moreover, if the buffer size of the jitter buffer 30 is made sufficiently long and the delay time Td is made sufficiently long, the occurrence of sound omission can be prevented, but if the delay time Td is long, the jitter buffer 30 waits for output. Packets increase and call delay occurs.

図21は、伝送遅延と伝送遅延の発生頻度との関係を示す伝送遅延特性のグラフの一例を示している。なお、図21において、縦軸は、発生頻度を示し、横軸は伝送遅延を示している。また、図22は、ジッタバッファ30の最適なバッファサイズを説明するための図である。図21において、dminは最小の伝送遅延を示し、dmaxは最大の伝送遅延を示している。図22では、k-1番目のパケットの伝送遅延はdminであり、k番目のパケットの伝送遅延はdであり、k+1番目のパケットの伝送遅延はdmaxである。   FIG. 21 shows an example of a graph of transmission delay characteristics showing the relationship between the transmission delay and the frequency of occurrence of the transmission delay. In FIG. 21, the vertical axis represents the occurrence frequency, and the horizontal axis represents the transmission delay. FIG. 22 is a diagram for explaining an optimum buffer size of the jitter buffer 30. In FIG. 21, dmin indicates the minimum transmission delay, and dmax indicates the maximum transmission delay. In FIG. 22, the transmission delay of the (k-1) th packet is dmin, the transmission delay of the kth packet is d, and the transmission delay of the (k + 1) th packet is dmax.

この場合、出力部36による最適な出力の待ち時間は下記のようになる。i)dmaxで届いたパケットは直ちに出力する。ii)dminで届いたパケットは、dmax-dmin待ってから出力する。iii)dで届いたパケットはdmax-d待ってから出力する。   In this case, the optimum output waiting time by the output unit 36 is as follows. i) Packets received with dmax are output immediately. ii) Wait for dmax-dmin before outputting packets that arrive at dmin. iii) The packet arrived at d is output after waiting dmax-d.

よって、ジッタバッファ30におけるパケットの枯渇を回避するためには、ジッタバッファ30のバッファサイズbufをbuf≧dmax−dminとすればよいが、伝送遅延特性のdmaxが極端に大きくなると、つまり、図21のグラフの右端の尾が極端に長くなると、バッファサイズbufの値が大きくなってしまう。また、図21のグラフに示すように、伝送遅延が増大するにつれて発生頻度が低下しているため、真のdmaxを観測するには、膨大な数のパケットの伝送遅延を観測する必要がある。そのため、図21のグラフでは、真のdmaxではなく、伝送特性の分布の上位数%を切り捨てる値がdmaxとみなされている。この場合、dmaxとみなす値以上の伝送遅延が発生するとパケットの枯渇が発生する。   Therefore, in order to avoid packet depletion in the jitter buffer 30, the buffer size buf of the jitter buffer 30 may be set to buf ≧ dmax−dmin. However, when dmax of the transmission delay characteristic becomes extremely large, that is, FIG. If the tail at the right end of the graph becomes extremely long, the buffer size buf will increase. Further, as shown in the graph of FIG. 21, since the occurrence frequency decreases as the transmission delay increases, in order to observe the true dmax, it is necessary to observe the transmission delay of a huge number of packets. For this reason, in the graph of FIG. 21, not the true dmax, but a value that rounds down the upper few percent of the distribution of transmission characteristics is regarded as dmax. In this case, when a transmission delay exceeding the value considered as dmax occurs, packet depletion occurs.

したがって、パケットの枯渇を防止するためには、dmaxとみなす値を大きく設定することが好ましいが、逆にdmaxとみなす値が大きすぎるとバッファサイズbufが増大し、ジッタバッファ30において、出力待ちの待ちパケットが増大する結果、出力遅延が生じてしまう。このような出力遅延は、パケット伝送方式のインターホン通話においては通話遅延となって現れるため、極力低く抑える方が好ましい。そこで、上述の処理を実行することで、パケットの枯渇を防止すると同時に、通話遅延の防止を図っているのである。   Therefore, in order to prevent packet depletion, it is preferable to set a large value to be regarded as dmax, but conversely, if the value regarded as dmax is too large, the buffer size buf increases, and the jitter buffer 30 waits for output. As a result of the increase in waiting packets, an output delay occurs. Such an output delay appears as a call delay in a packet transmission interphone call, and is preferably suppressed as low as possible. Therefore, by executing the above-described processing, packet depletion is prevented and at the same time, call delay is prevented.

図23は、揺らぎ吸収処理部JAの揺らぎ吸収処理を示すフローチャートである。まず、ステップS1において、カウント部31は、前回、パケットカウント値の算出タイミングを算出してから、カウント周期Tbが経過して、パケットカウント値の算出タイミングとなったか否かを判定する。そして、カウント部31は、パケットカウント値の算出タイミングになったと判定すると(ステップS1でYES)、現在、ジッタバッファ30に蓄積されているパケット数である蓄積パケット数をカウントする(ステップS2)。一方、カウント部31は、パケットカウント値の算出タイミングになっていないと判定すると(ステップS1でNO)、処理をステップS1に戻す。   FIG. 23 is a flowchart showing the fluctuation absorbing process of the fluctuation absorbing processor JA. First, in step S1, the counting unit 31 determines whether or not the packet count value calculation timing comes after the count period Tb has elapsed since the packet count value calculation timing was calculated last time. If the counting unit 31 determines that the packet count value calculation timing has come (YES in step S1), the counting unit 31 counts the number of accumulated packets that are currently accumulated in the jitter buffer 30 (step S2). On the other hand, when determining that the packet count value calculation timing has not come (NO in step S1), the counting unit 31 returns the process to step S1.

次に、カウント部31は、パケットカウント値の算出処理を実行して、パケットカウント値を算出する(ステップS3)。   Next, the count unit 31 executes a packet count value calculation process to calculate a packet count value (step S3).

図24は、パケットカウント値の算出処理の詳細を示すフローチャートである。まず、カウント部31は、現在時刻をパケットカウント値の算出時刻として特定する(ステップS21)。   FIG. 24 is a flowchart showing details of a packet count value calculation process. First, the count unit 31 specifies the current time as the packet count value calculation time (step S21).

次に、カウント部31は、ジッタバッファ30に蓄積されているパケットのうち、図19に示すように算出時刻Tkから、過去、パケット化周期Ta内に受信された各パケットの受信時刻を特定する(ステップS22)。この場合、カウント部31は、受信時刻記録部33に記録された受信時刻に対応付けられたシーケンス番号を特定することで、各パケットの受信時刻を特定する。   Next, the counting unit 31 specifies the reception time of each packet received in the past in the packetization period Ta from the calculation time Tk as shown in FIG. 19 among the packets stored in the jitter buffer 30. (Step S22). In this case, the count unit 31 specifies the reception time of each packet by specifying the sequence number associated with the reception time recorded in the reception time recording unit 33.

次に、カウント部31は、算出時刻Tkから、過去、パケット化周期Ta内に受信された各パケットについて、算出時刻Tkと受信時刻との差分ΔTを算出する(ステップS23)。次に、カウント部31は、過去、パケット化周期Ta内に受信された各パケットについて、ΔT/Taを算出し、このΔT/Taを、各パケットのカウント値として設定する(ステップS24)。   Next, the counting unit 31 calculates a difference ΔT between the calculation time Tk and the reception time for each packet received in the past in the packetization period Ta from the calculation time Tk (step S23). Next, the counting unit 31 calculates ΔT / Ta for each packet received in the past in the packetization period Ta, and sets this ΔT / Ta as the count value of each packet (step S24).

次に、カウント部31は、ジッタバッファ30に蓄積されているパケットのうち、算出時刻Tkから、過去、パケット化周期Ta以前に受信されたパケットについては、カウント値を1として設定する(ステップS25)。   Next, the count unit 31 sets the count value to 1 for packets received from the calculation time Tk before the packetization period Ta among the packets stored in the jitter buffer 30 (step S25). ).

次に、カウント部31は、ステップS24,S25で設定したカウント値を用いて、ジッタバッファ30の蓄積パケット数をカウントすることで、パケットカウント値を算出する(ステップS26)。例えば、算出時刻Tkから、過去、パケット化周期Ta以前に受信されたパケット数が1個、算出時刻Tkから、過去、パケット化周期Ta内に受信されたパケット数が2個であり、この2個のパケットの受信時刻がTi,Tjとすると、パケットカウント値は、1+(Tk-Ti)/Ta+(Tk-Tj)/Taとなる。   Next, the count unit 31 calculates the packet count value by counting the number of packets stored in the jitter buffer 30 using the count value set in steps S24 and S25 (step S26). For example, from the calculation time Tk, the number of packets received before the packetization cycle Ta in the past is 1, and from the calculation time Tk, the number of packets received in the past within the packetization cycle Ta is two. When the reception time of each packet is Ti and Tj, the packet count value is 1+ (Tk−Ti) / Ta + (Tk−Tj) / Ta.

次に、カウント部31は、算出時刻Tkから、過去、Ta-Tb以前に受信したパケットについては、受信時刻記録部33から受信時刻を削除する(ステップS27)。   Next, the count unit 31 deletes the reception time from the reception time recording unit 33 for packets received in the past and before Ta-Tb from the calculation time Tk (step S27).

図23のフローチャートに戻り、ステップS4において、カウント部31は、算出時刻Tkにおけるパケットカウント値を観測履歴保持部37に保持させる。この場合、カウント部31は、観測履歴保持部37に保持されているパケットカウント値の個数がN個となるように、最古のパケットカウント値を観測履歴保持部37から削除する。   Returning to the flowchart of FIG. 23, in step S4, the counting unit 31 causes the observation history holding unit 37 to hold the packet count value at the calculation time Tk. In this case, the count unit 31 deletes the oldest packet count value from the observation history holding unit 37 so that the number of packet count values held in the observation history holding unit 37 is N.

次に、バッファサイズ変更部32は、観測履歴保持部37に記憶されているN個のパケットカウント値のうち、n番目に小さいパケットカウント値を代表値として特定する(ステップS5)。   Next, the buffer size changing unit 32 specifies the nth smallest packet count value among the N packet count values stored in the observation history holding unit 37 as a representative value (step S5).

図25は、パケットカウント値と、パケットカウント値の算出時刻との関係を示した模式図であり、縦軸がパケットカウント値を示し、横軸がパケットカウント値の算出時刻を示している。図25では、N=9,n=3とされている。したがって、バッファサイズ変更部32は、図25で示す左端から2番目の時刻Tk-7のパケットカウント値が、3番目に小さいため、時刻Tk-7のパケットカウント値を代表値として特定する。   FIG. 25 is a schematic diagram illustrating the relationship between the packet count value and the calculation time of the packet count value. The vertical axis indicates the packet count value, and the horizontal axis indicates the packet count value calculation time. In FIG. 25, N = 9 and n = 3. Therefore, since the packet count value at the second time Tk-7 from the left end shown in FIG. 25 is the third smallest, the buffer size changing unit 32 specifies the packet count value at the time Tk-7 as a representative value.

次に、バッファサイズ変更部32は、代表値が基準値より大きいか否かを判定し、代表値≧基準値+1の場合(ステップS6でYES)、代表値が基準値以上かつ基準値+1未満となる個数のパケットをジッタバッファ30から削除する(ステップS7)。   Next, the buffer size changing unit 32 determines whether or not the representative value is greater than the reference value.If representative value ≧ reference value + 1 (YES in step S6), the representative value is greater than or equal to the reference value and the reference value + The number of packets that is less than 1 is deleted from the jitter buffer 30 (step S7).

次に、バッファサイズ変更部32は、観測履歴保持部37に保持されているN個のパケットカウント値のそれぞれから、ステップS7で削除したパケット数を差し引き、N個のパケットカウント値を更新し、観測履歴を更新する(ステップS8)。例えば、削除したパケット数が1個であるとすると、N個のパケットカウント値の全てから1が減算される。これにより、ジッタバッファ30からパケットを削除した事実が観測履歴に反映される。   Next, the buffer size changing unit 32 subtracts the number of packets deleted in step S7 from each of the N packet count values held in the observation history holding unit 37, and updates the N packet count values. The observation history is updated (step S8). For example, assuming that the number of deleted packets is 1, 1 is subtracted from all N packet count values. Thereby, the fact that the packet is deleted from the jitter buffer 30 is reflected in the observation history.

一方、ステップS6において、代表値が基準値+1未満であり(ステップS6でNO)、かつ、代表値が基準値以上(ステップS9でNO)の場合、バッファサイズ変更部32は、ジッタバッファ30に対してパケットの削除及び挿入を行わない(ステップS10)。   On the other hand, in step S6, when the representative value is less than the reference value +1 (NO in step S6) and the representative value is equal to or larger than the reference value (NO in step S9), the buffer size changing unit 32 is configured to use the jitter buffer 30. The packet is not deleted or inserted in step S10.

一方、代表値<基準値の場合(ステップS9でYES)、バッファサイズ変更部32は、代表値が基準値以上かつ基準値+1未満となる個数のパケットをジッタバッファ30に挿入する(ステップS11)。   On the other hand, if representative value <reference value (YES in step S9), the buffer size changing unit 32 inserts into the jitter buffer 30 a number of packets whose representative value is greater than or equal to the reference value and less than the reference value + 1 (step S11). ).

次に、バッファサイズ変更部32は、観測履歴保持部37に保持されているN個のパケットカウント値のそれぞれに対し、ステップS11で挿入したパケット数を加算し、N個のパケットカウント値を更新し、観測履歴を更新する(ステップS12)。例えば、挿入したパケット数が1個であるとすると、N個のパケットカウント値の全てに1が加算される。これにより、ジッタバッファ30にパケットを挿入した事実が観測履歴に反映される。   Next, the buffer size changing unit 32 adds the number of packets inserted in step S11 to each of the N packet count values held in the observation history holding unit 37, and updates the N packet count values. Then, the observation history is updated (step S12). For example, if the number of inserted packets is 1, 1 is added to all N packet count values. Thereby, the fact that the packet is inserted into the jitter buffer 30 is reflected in the observation history.

そして、ステップS8,S10又はS12の処理が終了すると、処理がステップS1に戻され、次のパケットカウント値の算出時刻が到来すると、ステップS2以降の処理が実行される。   Then, when the process of step S8, S10 or S12 is completed, the process returns to step S1, and when the next packet count value calculation time arrives, the processes after step S2 are executed.

図26(a)はバッファサイズ変更部32によるパケット挿入時の処理を示した模式図であり、図26(b)はバッファサイズ変更部32によるパケット削除時の処理を示した模式図である。図26(a)の例では、バッファサイズ変更部32は、有効パケットである4番目のパケットと5番目のパケットとの間に無効パケットを挿入している。図26(b)の例では、バッファサイズ変更部32は、有効パケットである4番目のパケットと5番目のパケットとをオーバーラップ加算して2つのパケット長を1つのパケット長にすることで、1つのパケットを削除している。   FIG. 26A is a schematic diagram showing processing at the time of packet insertion by the buffer size changing unit 32, and FIG. 26B is a schematic diagram showing processing at the time of packet deletion by the buffer size changing unit 32. In the example of FIG. 26A, the buffer size changing unit 32 inserts an invalid packet between the fourth packet and the fifth packet which are valid packets. In the example of FIG. 26B, the buffer size changing unit 32 adds the fourth packet and the fifth packet, which are valid packets, to overlap each other to make one packet length, One packet is deleted.

このように揺らぎ吸収処理部JAでは、ジッタバッファ30の蓄積パケット数からパケットカウント値が算出され、過去N回のパケットカウント値のうち、n番目に小さいパケットカウント値が代表値として特定される。そして、特定した代表値が基準値よりも大きければジッタバッファ30からパケットが削除される。そのため、パケットカウント値の過去の履歴からジッタバッファ30の蓄積パケット数が基準値と比べて大きい傾向にあり、出力遅延が生じる場合は、ジッタバッファ30からパケットが削除されるため、出力遅延が低減される。一方、パケットカウント値の過去の履歴からジッタバッファ30の蓄積パケット数が基準値に比べて小さい傾向にあり、パケットの枯渇が発生する可能性が高い場合は、ジッタバッファ30にパケットが挿入されるため、パケットの枯渇を防止することができる。   In this way, the fluctuation absorption processing unit JA calculates a packet count value from the number of packets stored in the jitter buffer 30, and among the past N packet count values, the nth smallest packet count value is specified as a representative value. If the identified representative value is larger than the reference value, the packet is deleted from the jitter buffer 30. For this reason, the number of packets stored in the jitter buffer 30 tends to be larger than the reference value from the past history of the packet count value, and if output delay occurs, the packet is deleted from the jitter buffer 30 and the output delay is reduced. Is done. On the other hand, if the number of packets stored in the jitter buffer 30 tends to be smaller than the reference value from the past history of the packet count value, and there is a high possibility that the packet will be exhausted, the packet is inserted into the jitter buffer 30. Therefore, it is possible to prevent packet depletion.

次に、揺らぎ吸収処理におけるパケットカウント値の別の算出方法について説明する。ここで、受信時刻記録部33には、最新のパケットの受信時刻のみが記録される。   Next, another method for calculating the packet count value in the fluctuation absorbing process will be described. Here, in the reception time recording unit 33, only the reception time of the latest packet is recorded.

カウント部31は、最新のパケットについては、カウント値を、算出時刻Tkと最新のパケットの受信時刻との差分ΔT/Taにより得られる値に設定し、それ以外のパケットはカウント値を1に設定してパケットカウント値を算出する。    The count unit 31 sets the count value for the latest packet to a value obtained by the difference ΔT / Ta between the calculation time Tk and the reception time of the latest packet, and sets the count value to 1 for other packets. To calculate a packet count value.

図27に示すように、カウント部31は、ジッタバッファ30において、算出時刻Tkから、過去、パケット化周期Ta内に受信されたパケットが蓄積されている場合、パケット化周期Ta内に受信されたパケットの中から受信時刻が最新のパケットPSを特定し、最新のパケットPSのカウント値をΔT/Taに設定する。一方、カウント部31は、ジッタバッファ30に蓄積されたパケットのうち、最新のパケットPS以外のパケットPL1,PL2については、カウント値を一律に1に設定する。この場合、カウント部31は、算出時刻Tkから、過去、パケット化周期Ta内に受信されたパケットであって、最新のパケットPSの受信時刻のみが分かればよいので、パケットカウント値の算出処理が終了した後、受信時刻記録部33に記録されている受信記録を削除する。   As shown in FIG. 27, when the packet received in the past in the packetization period Ta has been accumulated in the jitter buffer 30 from the calculation time Tk in the past, the counting unit 31 has received the packet in the packetization period Ta. The packet PS having the latest reception time is identified from the packets, and the count value of the latest packet PS is set to ΔT / Ta. On the other hand, the count unit 31 uniformly sets the count value to 1 for the packets PL1 and PL2 other than the latest packet PS among the packets stored in the jitter buffer 30. In this case, since the counting unit 31 only needs to know the reception time of the latest packet PS that is a packet received within the packetization period Ta in the past from the calculation time Tk, the packet count value calculation process is performed. After the completion, the reception record recorded in the reception time recording unit 33 is deleted.

上記パケットカウント値の算出処理を、図28のフローチャートを参照して詳細に説明する。図28におけるステップS31,S33,S34,S36は、図24におけるステップS21,S23,S24,S26と同一であるため、説明を省く。図28におけるステップS32では、カウント部31は、ジッタバッファ30において、算出時刻Tkから、過去、パケット化周期Ta内に受信したパケットのうち最新のパケットの受信時刻を特定する。また、カウント部31は、算出時刻Tkから、最新のパケット以外のパケットについては、カウント値を一律に1に設定する(ステップS35)。そして、ステップS37において、カウント部31は、最新のパケットの受信時刻を受信時刻記録部33から削除する。   The packet count value calculation process will be described in detail with reference to the flowchart of FIG. Steps S31, S33, S34, and S36 in FIG. 28 are the same as steps S21, S23, S24, and S26 in FIG. In step S32 in FIG. 28, the count unit 31 specifies the reception time of the latest packet among the packets received in the past in the packetization period Ta from the calculation time Tk in the jitter buffer 30. Further, the count unit 31 uniformly sets the count value to 1 for packets other than the latest packet from the calculation time Tk (step S35). In step S37, the count unit 31 deletes the latest packet reception time from the reception time recording unit 33.

上述した方法でパケットカウント値を算出すれば、最新のパケットについてのみ、受信時刻を記録しておけばよいため、受信時刻記録部33の容量を更に節約することができる。   If the packet count value is calculated by the above-described method, it is only necessary to record the reception time for only the latest packet, so that the capacity of the reception time recording unit 33 can be further saved.

ところで、パケット伝送方式による音声伝送においては、伝送路でパケットの滞留が突然起こることによるスパイク性遅延変動(スパイク遅延)により、500msec以上の音切れが発生することがある。したがって、揺らぎ吸収処理部JAにおいて、スパイク遅延の発生の有無を判定し、スパイク遅延が発生している場合は、参照する過去のパケットカウント値のウインドウ幅を短くし、短くしたウインドウ幅内のパケットカウント値から代表値を算出することが好ましい。   By the way, in voice transmission by the packet transmission method, sound interruption of 500 msec or more may occur due to spike delay delay (spike delay) caused by sudden accumulation of packets in the transmission path. Therefore, the fluctuation absorption processing unit JA determines whether or not a spike delay has occurred. If a spike delay has occurred, the window width of the past packet count value to be referred to is shortened, and packets within the shortened window width are detected. It is preferable to calculate the representative value from the count value.

そこで、カウント部31は、算出したパケットカウント値を、各パケットカウント値の時系列順序を示すためのインデックスと対応づけて観測履歴保持部37に保持させる。具体的には、観測履歴保持部37は過去N回のパケットカウント値を保持するため、カウント部31は、最新のパケットカウント値のインデックスがN、最古のパケットカウント値のインデックスが1となるように、算出時刻が新しくなるにつれてインデックスが増大するように過去N回のパケットカウント値にインデックスを付す。また、カウント部31は、観測履歴保持部37に保持された過去N回のパケットカウント値に基づいて、スパイク遅延の有無を判定し、スパイク遅延が発生していると判定した場合は、過去N回のパケットカウント値のうち、過去M(M<N)回のパケットカウント値を抽出する。   Therefore, the count unit 31 stores the calculated packet count value in the observation history storage unit 37 in association with an index for indicating the time series order of each packet count value. Specifically, since the observation history holding unit 37 holds the packet count value of the past N times, the count unit 31 has an index of N for the latest packet count value and an index of 1 for the oldest packet count value. Thus, an index is added to the past N packet count values so that the index increases as the calculation time becomes new. The counting unit 31 determines the presence or absence of a spike delay based on the past N packet count values held in the observation history holding unit 37, and determines that the spike delay has occurred. From the packet count value of the number of times, the packet count value of the past M (M <N) times is extracted.

ここで、カウント部31は、下記のようにしてスパイク遅延の有無を判定する。図29は、スパイク遅延の有無の判定処理を説明するためのグラフである。図29において、縦軸はパケットカウント値を示し、横軸はインデックスを示している。また、N=100としている。   Here, the count unit 31 determines the presence or absence of a spike delay as follows. FIG. 29 is a graph for explaining processing for determining the presence or absence of spike delay. In FIG. 29, the vertical axis represents the packet count value, and the horizontal axis represents the index. Also, N = 100.

まず、カウント部31は、基準値以下のパケットカウント値を特定する。図29の例では点PP1〜PP6のパケットカウント値が基準値以下となっている。次に、カウント部31は、基準値以下のパケットカウント値のうち、インデックスが最小、つまり最古の点と、インデックスが最大、つまり最新の点とを特定する。図29の例では、カウント部31は、点PP1と点PP6とを特定する。   First, the count unit 31 specifies a packet count value that is equal to or less than a reference value. In the example of FIG. 29, the packet count values at points PP1 to PP6 are below the reference value. Next, the count unit 31 specifies the smallest index, that is, the oldest point, and the largest index, that is, the latest point among packet count values equal to or less than the reference value. In the example of FIG. 29, the counting unit 31 specifies the points PP1 and PP6.

次に、カウント部31は、最小のインデックスと最大のインデックスとの差分ΔIを求める。そして、カウント部31は、この差分ΔIが予め定められた閾値より小さければ、スパイク遅延が発生したと判定し、この差分ΔIが閾値より大きければスパイク遅延が発生していないと判定する。   Next, the count unit 31 obtains a difference ΔI between the minimum index and the maximum index. The counting unit 31 determines that a spike delay has occurred if the difference ΔI is smaller than a predetermined threshold, and determines that no spike delay has occurred if the difference ΔI is larger than the threshold.

図30は、スパイク遅延が発生している場合のパケットカウント値とインデックスとの関係を示すグラフである。図30において縦軸はパケットカウント値を示し、横軸はインデックスを示している。図30の例では、点PP1〜点PP5のパケットカウント値が基準値以下である。そして、点PP1はインデックスが最小であり、点PP5はインデックスが最大である。そして、点PP1のインデックスと点PP5のインデックスとの差分ΔIが閾値より小さい。そのため、カウント部31は、スパイク遅延が発生していると判定する。   FIG. 30 is a graph showing a relationship between a packet count value and an index when a spike delay occurs. In FIG. 30, the vertical axis represents the packet count value, and the horizontal axis represents the index. In the example of FIG. 30, the packet count values at points PP1 to PP5 are equal to or less than the reference value. The point PP1 has the smallest index, and the point PP5 has the largest index. The difference ΔI between the index of the point PP1 and the index of the point PP5 is smaller than the threshold value. Therefore, the count unit 31 determines that a spike delay has occurred.

そして、カウント部31は、図30に示すように、スパイク遅延が発生していると判定すると、算出時刻Tkから過去M個のパケットカウント値を抽出する。ここで、Mとしては、ΔIに所定の係数β(0<β≦1)を乗じた値(=β・ΔI)を、整数で丸め込んだ値を採用することができる。   Then, as shown in FIG. 30, when the counting unit 31 determines that the spike delay has occurred, the counting unit 31 extracts the past M packet count values from the calculation time Tk. Here, as M, a value obtained by multiplying ΔI by a predetermined coefficient β (0 <β ≦ 1) (= β · ΔI) rounded by an integer can be adopted.

そして、バッファサイズ変更部32は、過去M個のパケットカウント値のうち、m番目に小さなパケットカウント値を代表値として算出する。以下、バッファサイズ変更部32は、代表値を基準値と比較して、ジッタバッファ30にパケットを挿入又は削除する。ここで、mとしては、M×αを整数で丸め込んだ値を採用することができる。   Then, the buffer size changing unit 32 calculates the mth smallest packet count value among the M past packet count values as a representative value. Thereafter, the buffer size changing unit 32 compares the representative value with the reference value, and inserts or deletes the packet in the jitter buffer 30. Here, as m, a value obtained by rounding M × α with an integer can be adopted.

このように、スパイク遅延が発生した場合、参照する過去のパケットカウント値のウインドウ幅が狭められてジッタバッファ30にパケットの挿入又は削除が行われる。そのため、稀にしか発生しないスパイク遅延が排除されるようにして、代表値を算出することができる。   As described above, when a spike delay occurs, the window width of the past packet count value to be referred to is narrowed, and a packet is inserted into or deleted from the jitter buffer 30. Therefore, the representative value can be calculated in such a manner that spike delays that rarely occur are eliminated.

また、揺らぎ吸収処理部JAにおいては、0の蓄積パケット数が連続して発生した場合、以下のようにパケットカウント値を算出することが好ましい。   Further, in the fluctuation absorption processing unit JA, it is preferable to calculate the packet count value as follows when the number of accumulated packets of 0 occurs continuously.

具体的には、カウント部31は、0の蓄積パケット数が連続して発生した場合、0の蓄積パケット数が連続した回数が増大するにつれて絶対値が増大する負の値を前記パケットカウント値として算出する。   Specifically, the count unit 31 sets, as the packet count value, a negative value that increases in absolute value as the number of consecutive 0 stored packet numbers increases when the number of 0 stored packet numbers continues. calculate.

図31は、上記カウント部31の処理を説明する図である。図31(a)においては、カウント周期Tbの各区間において、パケットカウント値の算出時刻Tk-4〜Tkの直後にパケットが受信されている。また、出力部36は、各区間において、パケットを受信してから、次のパケットカウント値の算出時刻Tk-4〜Tkが経過するまでに、ジッタバッファ30からパケット(受話音声データ)を読み出している。そのため、各算出時刻Tk-4〜Tkにおいて、ジッタバッファ30における蓄積パケット数は0となっている。そのため、カウント部31は、算出時刻Tk-4〜Tkのそれぞれにおいてパケットカウント値を0と算出してしまう。   FIG. 31 is a diagram illustrating the processing of the counting unit 31. In FIG. 31 (a), packets are received immediately after packet count value calculation times Tk-4 to Tk in each section of the count cycle Tb. The output unit 36 reads the packet (received voice data) from the jitter buffer 30 until the next packet count value calculation time Tk-4 to Tk elapses after receiving the packet in each section. Yes. Therefore, at each calculation time Tk-4 to Tk, the number of accumulated packets in the jitter buffer 30 is zero. Therefore, the count unit 31 calculates the packet count value as 0 at each of the calculation times Tk-4 to Tk.

一方、図31(b)においては、算出時刻Tk-4の少し前に1つのパケットを受信してから以降、パケットは受信されていない。この場合においても、各算出時刻Tk-3〜Tkにおける蓄積パケット数は0となっているため、カウント部31は、算出時刻Tk-3〜Tkのそれぞれにおいてパケットカウント値を0と算出してしまう。   On the other hand, in FIG. 31B, no packet has been received since one packet was received slightly before the calculation time Tk-4. Even in this case, since the number of accumulated packets at each calculation time Tk-3 to Tk is 0, the counting unit 31 calculates the packet count value to 0 at each of the calculation times Tk-3 to Tk. .

しかしながら、図31(a)と(b)とでは、幹線L1の状況が大きく異なっている。すなわち、図31(a)においては、パケットは定期的に住戸通話装置Aに到達しており、出力部36は連続して出力することが可能となるが、図31(b)においては、パケットは定期的に住戸通話装置Aに到達していないため、出力部36は連続して出力することができない。   However, the situation of the trunk line L1 is greatly different between FIGS. 31 (a) and (b). That is, in FIG. 31 (a), the packet regularly reaches the dwelling unit communication device A, and the output unit 36 can continuously output the packet, but in FIG. 31 (b), the packet Does not reach the dwelling unit communication device A regularly, the output unit 36 cannot output continuously.

これを区別するため、カウント部31は、下記の処理を行う。つまり、図31(b)に示すように、算出時刻Tk-3で蓄積パケット数が0であり、算出時刻Tk-2でも蓄積パケット数が0となっており、算出時刻Tk-2において、0の蓄積パケット数の連続回数が1回となっている。この場合、カウント部31は、0を算出時刻Tk-2におけるパケットカウント値として算出する。   In order to distinguish this, the counting unit 31 performs the following processing. That is, as shown in FIG. 31 (b), the number of accumulated packets is 0 at the calculation time Tk-3, the number of accumulated packets is 0 at the calculation time Tk-2, and 0 at the calculation time Tk-2. The number of consecutive stored packets is one. In this case, the count unit 31 calculates 0 as the packet count value at the calculation time Tk-2.

また、算出時刻Tk-1においては、0の蓄積パケット数の連続回数が2回となっている。そこで、カウント部31は、連続回数である2回から1を差し引いた値に-1を乗じた値である-1を、算出時刻Tk-1におけるパケットカウント値として算出する。算出時刻Tkにおいて、0の蓄積パケット数の連続回数は3であるため、カウント部23は、連続回数である3回から1を差し引いた値に-1を乗じた値である-2を算出時刻Tkにおけるパケットカウント値として算出する。ゆえに、カウント部31は、(連続回数-1)・(-1)をパケットカウント値として算出する。   In addition, at the calculation time Tk-1, the continuous number of 0 stored packets is two. Therefore, the count unit 31 calculates −1, which is a value obtained by multiplying the value obtained by subtracting 1 from 2 that is the number of consecutive times by −1, as the packet count value at the calculation time Tk−1. At the calculation time Tk, since the number of consecutive 0 stored packet numbers is 3, the count unit 23 calculates -2, which is a value obtained by multiplying the value obtained by subtracting 1 from 3 which is the number of consecutive times, and -1. Calculated as the packet count value at Tk. Therefore, the counting unit 31 calculates (number of consecutive times−1) · (−1) as the packet count value.

これにより、図31(a)のように、パケットは定期的に受信できているものの、算出時刻において、蓄積パケット数がたまたま0になっている場合と、図31(b)のように、パケットを定期的に受信できていない場合との差を考慮してパケットカウント値を算出することが可能となる。したがって、図31(b)の場合は、図31(a)の場合よりもジッタバッファ30からパケットが削除され難くなる。   As a result, although packets can be received periodically as shown in FIG. 31 (a), the number of stored packets happens to be zero at the calculation time, and as shown in FIG. 31 (b) Thus, it is possible to calculate the packet count value in consideration of the difference from the case where the packet cannot be received regularly. Therefore, in the case of FIG. 31 (b), packets are less likely to be deleted from the jitter buffer 30 than in the case of FIG. 31 (a).

次に、ジッタバッファ30にパケットを挿入又は削除を行う処理を具体的に説明する。バッファサイズ変更部32は、ジッタバッファ30から1つのパケットを削除する場合、音声を含む有効パケットが連続して2つ以上存在すれば、これら連続する有効パケットのうち、中間に位置する連続する2つの有効パケットをオーバーラップ加算して削除する。   Next, a process for inserting or deleting a packet in the jitter buffer 30 will be specifically described. When the buffer size changing unit 32 deletes one packet from the jitter buffer 30, if there are two or more valid packets including voice in succession, two consecutive consecutive packets located in the middle of these consecutive valid packets will be described. Two valid packets are overlapped and deleted.

図32は、バッファサイズ変更部32がオーバーラップ加算により1つのパケットを削除する処理の説明図であり、(a)は削除前のジッタバッファ30を示し、(b)は削除後のジッタバッファ30を示している。   FIG. 32 is an explanatory diagram of a process in which the buffer size changing unit 32 deletes one packet by overlap addition. (A) shows the jitter buffer 30 before deletion, and (b) shows the jitter buffer 30 after deletion. Is shown.

図32に示すリードポインタRPは、リングバッファ構造を有するジッタバッファ30の開始アドレスを示し、ライトポインタWPは、ジッタバッファ30の終了アドレスを示している。また、図32において、各升は1つのパケットを示しており、升内の数字はパケットの時系列の順序を示している。また、内部が白色の升は無効パケットを示し、内部がグレーの升は有効パケットを示している。   32 indicates the start address of the jitter buffer 30 having a ring buffer structure, and the write pointer WP indicates the end address of the jitter buffer 30. In FIG. 32, each 升 indicates one packet, and the numbers in 升 indicate the time-series order of the packets. In addition, a white wrinkle indicates an invalid packet, and a gray wrinkle indicates a valid packet.

図32(a)の場合、1番目〜2番目の有効パケットの区間ではなく、4番目〜7番目の有効パケットの区間に位置する5番目と6番目との有効パケットが、図32(b)に示すようにオーバーラップ加算により1つのパケットに纏められ、1つのパケットが削除されている。   In the case of FIG. 32A, the fifth and sixth valid packets located in the fourth to seventh valid packet sections are not shown in the first to second valid packet sections. As shown in FIG. 5, one packet is collected by overlapping addition, and one packet is deleted.

ここで、図32(a)に示す1番目〜2番目の有効パケットの区間でオーバーラップ加算を行うと、オーバーラップ加算により生成された1つのパケットの次に無効パケットが存在することになるため、パケットロス隠蔽処理を行った場合の音声劣化が大きくなる可能性がある。一方、5番目の有効パケットと6番目の有効パケットとをオーバーラップ加算すると、オーバーラップ加算により生成された1つのパケットの前後のパケットは有効パケットであるため、パケットロス隠蔽処理による音声劣化を小さくすることができる。   Here, if overlap addition is performed in the first to second valid packet sections shown in FIG. 32 (a), an invalid packet exists after one packet generated by overlap addition. There is a possibility that voice degradation will increase when packet loss concealment processing is performed. On the other hand, if the fifth valid packet and the sixth valid packet are overlap-added, the packets before and after one packet generated by overlap addition are valid packets, so that the voice deterioration due to the packet loss concealment process is reduced. can do.

つまり、有効パケットが2つ以上連続していれば、オーバーラップ加算により1つのパケットを削除することができるが、有効パケットの連続数が多い区間でオーバーラップ加算した方がパケットロス隠蔽処理を行ったときの音声劣化を少なくすることができる。   In other words, if two or more valid packets are consecutive, one packet can be deleted by overlap addition, but packet loss concealment processing is performed when overlap addition is performed in a section where there are many consecutive valid packets. It is possible to reduce voice deterioration when

よって、ジッタバッファ30において、有効パケットが連続する区間が複数存在する場合、有効パケットの連続数が多い区間の中間の有効パケットを用いてオーバーラップ加算を行うようにしている。   Therefore, in the jitter buffer 30, when there are a plurality of sections in which valid packets are continuous, overlap addition is performed using a valid packet in the middle of a section in which the number of consecutive valid packets is large.

ここで、オーバーラップ加算としては、図32(c)に示すように、三角窓関数RF1,RF2を用いたオーバーラップ加算を採用することができる。具体的には、バッファサイズ変更部32は、5番目のパケットの音声信号に対して、三角窓関数RF1を用いた窓関数処理を行い、6番目のパケットの音声信号に対しては、三角窓関数RF2を用いた窓関数処理を行い、窓関数処理後の両音声信号を加算して1つの音声信号を生成し、これを1つにパケット化することで、オーバーラップ加算を行えばよい。   Here, as the overlap addition, overlap addition using triangular window functions RF1 and RF2 can be employed as shown in FIG. 32 (c). Specifically, the buffer size changing unit 32 performs window function processing using the triangular window function RF1 on the audio signal of the fifth packet, and applies the triangular window to the audio signal of the sixth packet. The window function processing using the function RF2 is performed, the two audio signals after the window function processing are added to generate one audio signal, and this is packetized into one to perform overlap addition.

ここで、三角窓関数RF1としては、時間幅が20msec、最大値が1、最小値が0であり、時間が経過するにつれて値が減少する一次関数を採用することができる。また、三角窓関数RF2としては、時間幅が20msec、最大値が1、最小値が0であり、時間が経過するにつれて値が増大する一次関数を採用することができる。   Here, as the triangular window function RF1, a linear function having a time width of 20 msec, a maximum value of 1 and a minimum value of 0 and decreasing in value as time passes can be employed. As the triangular window function RF2, a linear function having a time width of 20 msec, a maximum value of 1 and a minimum value of 0 and increasing in value as time passes can be adopted.

また、バッファサイズ変更部32は、ジッタバッファ30からパケットを削除する場合、過去に挿入した無効パケットがあれば、当該無効パケットを削除する。   Further, when deleting a packet from the jitter buffer 30, the buffer size changing unit 32 deletes the invalid packet if there is an invalid packet inserted in the past.

図33は、バッファサイズ変更部32が1つの無効パケットを削除する処理の説明図であり、(a)は削除前のジッタバッファ30を示し、(b)は削除後のジッタバッファ30を示している。   FIGS. 33A and 33B are explanatory diagrams of processing in which the buffer size changing unit 32 deletes one invalid packet. FIG. 33A shows the jitter buffer 30 before deletion, and FIG. 33B shows the jitter buffer 30 after deletion. Yes.

図33(a)においては、3番目と4番目とのパケットが無効パケットである。そのため、バッファサイズ変更部32は、3番目又は4番目のパケットのいずれかを削除することで、1つのパケットを削除する。ここで、ジッタバッファ30に複数の無効パケットが存在する場合は、例えば、ランダムに1つの無効パケットを選択し、選択した無効パケットを削除するようにしてもよい。あるいは、バッファサイズ変更部32は、無効パケットが2つ以上連続して存在する場合は、連続している領域の無効パケットを優先して抽出し、抽出した無効パケットのうち、ランダムに1つの無効パケットを選択して削除するようにしてもよい。   In FIG. 33 (a), the third and fourth packets are invalid packets. Therefore, the buffer size changing unit 32 deletes one packet by deleting either the third or the fourth packet. Here, when there are a plurality of invalid packets in the jitter buffer 30, for example, one invalid packet may be selected at random, and the selected invalid packet may be deleted. Alternatively, when two or more invalid packets are continuously present, the buffer size changing unit 32 preferentially extracts invalid packets in a continuous area, and randomly selects one invalid packet from the extracted invalid packets. A packet may be selected and deleted.

また、バッファサイズ変更部32は、ジッタバッファ30にパケットを挿入する場合、連続する2つの有効パケットが存在すれば、これら2つの有効パケットの間に無効パケットを挿入する。   In addition, when inserting a packet into the jitter buffer 30, the buffer size changing unit 32 inserts an invalid packet between these two valid packets if there are two consecutive valid packets.

図34は、バッファサイズ変更部32が1つのパケットを挿入する処理の説明図であり、(a)は挿入前のジッタバッファ30を示し、(b)は挿入後のジッタバッファ30を示している。   FIG. 34 is an explanatory diagram of a process in which the buffer size changing unit 32 inserts one packet. (A) shows the jitter buffer 30 before insertion, and (b) shows the jitter buffer 30 after insertion. .

図34(a)、(b)に示すように、5番目の有効パケットと6番目の有効パケットとの間に1つの無効パケットが挿入されている。これは、5番目の有効パケットと6番目の有効パケットとの間に1つの無効パケットを挿入するのが、連続する有効パケットの個数がより多くなるためである。   As shown in FIGS. 34 (a) and 34 (b), one invalid packet is inserted between the fifth valid packet and the sixth valid packet. This is because inserting one invalid packet between the fifth valid packet and the sixth valid packet increases the number of consecutive valid packets.

例えば、1番目の有効パケットと2番目の有効パケットとの間に無効パケットを挿入したとしても、挿入した無効パケットの前後に有効パケットが存在するため、パケット隠蔽処理を行うことは可能である。   For example, even if an invalid packet is inserted between the first valid packet and the second valid packet, the packet concealing process can be performed because the valid packet exists before and after the inserted invalid packet.

しかしながら、2番目の有効パケットの前後が無効パケットとなってしまうため、有効パケットの連続数が小さくなってしまう。一方、5番目の有効パケットと6番目の有効パケットとの間に、無効パケットを挿入すると、全ての有効パケットが連続することになる。ここで、パケットロス隠蔽処理を行う場合、有効パケットの連続数が多い方が音声劣化を小さくすることができる。そこで、バッファサイズ変更部32は、ジッタバッファ30において有効パケットが連続する区間が複数存在する場合、有効パケットの連続数が多い区間の中間に無効パケットを挿入している。   However, before and after the second valid packet become invalid packets, the number of consecutive valid packets becomes small. On the other hand, if an invalid packet is inserted between the fifth valid packet and the sixth valid packet, all the valid packets are continuous. Here, when packet loss concealment processing is performed, voice deterioration can be reduced as the number of consecutive valid packets increases. Therefore, when there are a plurality of sections where valid packets continue in the jitter buffer 30, the buffer size changing unit 32 inserts invalid packets in the middle of a section where the number of consecutive valid packets is large.

また、バッファサイズ変更部32は、一度に挿入又は削除することができるパケット数の上限値が予め定められている。   The buffer size changing unit 32 has a predetermined upper limit value for the number of packets that can be inserted or deleted at a time.

図35は、ジッタバッファ30に5つのパケットを一度に挿入する場合の処理を説明するための図であり、(a)は挿入前のジッタバッファ30を示し、(b)は挿入後のジッタバッファ30を示している。図35(a)、(b)においては、1番目の有効パケットと2番目の有効パケットとの間に5つの無効パケットが挿入されている。この場合、無効パケットが連続して存在しているため、音声劣化が増大する虞がある。そこで、無効パケットの挿入個数に上限値が設けられている。ここで、「一度に」とは、上述したカウント周期Tbが到達した時に実行される1回の処理を指している。   FIGS. 35A and 35B are diagrams for explaining processing when five packets are inserted into the jitter buffer 30 at once. FIG. 35A shows the jitter buffer 30 before insertion, and FIG. 35B shows the jitter buffer after insertion. 30 is shown. In FIGS. 35A and 35B, five invalid packets are inserted between the first valid packet and the second valid packet. In this case, since there are continuous invalid packets, there is a risk that voice deterioration will increase. Therefore, an upper limit is set for the number of invalid packets inserted. Here, “at once” refers to one process executed when the above-described count cycle Tb has been reached.

例えば、図35(a)において、上限値=3に設定されていたとすると、5つの無効パケットを挿入する必要がある場合であっても、3個の無効パケットしか挿入されなくなる。   For example, in FIG. 35A, if the upper limit value is set to 3, even if it is necessary to insert five invalid packets, only three invalid packets are inserted.

これにより、無効パケットの連続数が一定個数以上になることが防止され、パケットロス隠蔽処理による音声劣化を小さくすることができる。   As a result, the number of consecutive invalid packets is prevented from exceeding a certain number, and voice degradation due to packet loss concealment processing can be reduced.

また、バッファサイズ変更部32は、無効パケットを削除した場合において、削除した無効パケットに対応する有効パケットを後から受信した場合、削除した無効パケットの他に無効パケットが存在すれば、他の無効パケットと受信した有効パケットとを入れ換える。   In addition, when the invalid packet is deleted, the buffer size changing unit 32 receives another valid packet corresponding to the deleted invalid packet. Replace the packet with the received valid packet.

図36は、無効パケットを削除した後に、削除した無効パケットに対応する有効パケットを受信した場合の処理を説明する図であり、(a)は削除前のジッタバッファ30を示し、(b)は削除後のジッタバッファ30を示し、(c)は入れ換え後のジッタバッファ30を示している。   FIG. 36 is a diagram for explaining processing when a valid packet corresponding to a deleted invalid packet is received after deleting the invalid packet. FIG. 36A shows the jitter buffer 30 before deletion, and FIG. The jitter buffer 30 after deletion is shown, and (c) shows the jitter buffer 30 after replacement.

図36(a)、(b)に示すように3番目の無効パケットが削除されている。その後、図36(c)に示すように3番目の無効パケットに対応する3番目の有効パケットが受信されている。   As shown in FIGS. 36A and 36B, the third invalid packet is deleted. Thereafter, as shown in FIG. 36C, the third valid packet corresponding to the third invalid packet is received.

この場合、バッファサイズ変更部32は、3番目の無効パケットの次の4番目のパケットが無効パケットであるため、この4番目の無効パケットを受信した3番目の有効パケットに入れ換える。これにより、3番目の有効パケットを復活させることができ、音声劣化を低減させることができる。   In this case, since the fourth packet next to the third invalid packet is an invalid packet, the buffer size changing unit 32 replaces the fourth invalid packet with the received third valid packet. As a result, the third valid packet can be restored, and voice deterioration can be reduced.

ここで、バッファサイズ変更部32は、ジッタバッファ30にパケットが蓄積されると蓄積されたパケットに対応する無効パケットがジッタバッファ30に蓄積されているか否かを判定する。そして、バッファサイズ変更部32は、対応する無効パケットがジッタバッファ30に蓄積されている場合は、当該無効パケットの次に無効パケットが格納されているか否かを判定し、無効パケットが格納されている場合は、次の無効パケットを削除し、削除した箇所に受信した有効パケットを挿入することで、次の無効パケットと受信した有効パケットとを入れ換えればよい。   Here, when the packet is accumulated in the jitter buffer 30, the buffer size changing unit 32 determines whether or not invalid packets corresponding to the accumulated packet are accumulated in the jitter buffer 30. Then, if the corresponding invalid packet is accumulated in the jitter buffer 30, the buffer size changing unit 32 determines whether the invalid packet is stored next to the invalid packet, and the invalid packet is stored. If it is, the next invalid packet is deleted, and the received valid packet is inserted into the deleted location, so that the next invalid packet and the received valid packet are exchanged.

一方、バッファサイズ変更部32は、ジッタバッファ30に蓄積されたパケットに対応する無効パケットがジッタバッファ30に蓄積されていない場合、あるいは、対応する無効パケットの次に無効パケットが格納されていない場合、上記の入れ換えを行わない。なお、バッファサイズ変更部32は、無効パケットのシーケンス番号と同じシーケンス番号を有するパケットがジッタバッファ30に蓄積された場合、無効パケットに対応する有効パケットが受信されたと判断すればよい。   On the other hand, when the invalid packet corresponding to the packet accumulated in the jitter buffer 30 is not accumulated in the jitter buffer 30, or the invalid packet is not stored next to the corresponding invalid packet, the buffer size changing unit 32 The above replacement is not performed. The buffer size changing unit 32 may determine that a valid packet corresponding to an invalid packet has been received when a packet having the same sequence number as that of the invalid packet is accumulated in the jitter buffer 30.

また、バッファサイズ変更部32は、連続する2つの有効パケットの間にパケットを挿入する場合、隠蔽処理部35に対して、前に位置する有効パケットを用いてパケットロス隠蔽処理を実行させ、隠蔽処理されたパケットを生成させ、このパケットをジッタバッファ30に挿入するようにしてもよい。   Also, when inserting a packet between two consecutive valid packets, the buffer size changing unit 32 causes the concealment processing unit 35 to execute a packet loss concealment process using the previous valid packet, thereby concealing. A processed packet may be generated and inserted into the jitter buffer 30.

図37は、バッファサイズ変更部32が無効パケットに代えて隠蔽処理されたパケットをジッタバッファ30に挿入させる場合の処理を説明する図であり、(a)は挿入前のジッタバッファ30を示し、(b)は挿入後のジッタバッファ30を示している。   FIG. 37 is a diagram for explaining processing when the buffer size changing unit 32 inserts a concealed packet in place of an invalid packet into the jitter buffer 30, and (a) shows the jitter buffer 30 before insertion, (b) shows the jitter buffer 30 after insertion.

図37(a)、(b)に示すように、3番目の有効パケットと4番目の有効パケットとの間に隠蔽処理されたパケットが挿入されている。   As shown in FIGS. 37A and 37B, a concealed packet is inserted between the third valid packet and the fourth valid packet.

これにより、出力部36がジッタバッファ30からパケット(音声データ)を読み出す際に、パケットロス隠蔽処理を実行する必要がなくなり、出力時におけるパケットロス隠蔽処理の処理遅延を低減することができる。   Thus, when the output unit 36 reads a packet (voice data) from the jitter buffer 30, it is not necessary to execute the packet loss concealment process, and the processing delay of the packet loss concealment process at the time of output can be reduced.

なお、バッファサイズ変更部32は、無効パケットを挿入する場合、母音の音声を含む連続する2つのパケットの間に、無効パケットを挿入することが好ましい。これにより、挿入した無効パケットに対してパケットロス隠蔽処理を実行することで生成された音声が、前後のパケットに含まれる音声と連続的に繋げられ、音声劣化を低減させることができる。   In addition, when inserting an invalid packet, the buffer size changing unit 32 preferably inserts an invalid packet between two consecutive packets including vowel sounds. Thereby, the voice generated by executing the packet loss concealment process on the inserted invalid packet is continuously connected to the voice included in the preceding and succeeding packets, and voice deterioration can be reduced.

図38は、バッファサイズ変更部32による削除処理を示したフローチャートである。   FIG. 38 is a flowchart showing the deletion process by the buffer size changing unit 32.

まず、ステップS51において、バッファサイズ変更部32は、パケットの削除要求数が予め定められたパケット最大削除数(上限値)以下であるか否かを判定し、削除要求数が上限値以下である場合(ステップS51でYES)、削除カウント値DNを削除要求数に設定する(ステップS52)。一方、削除要求数が上限値より大きい場合(ステップS51でNO)、削除カウント値DNを上限値に設定する(ステップS53)。   First, in step S51, the buffer size changing unit 32 determines whether or not the number of packet deletion requests is equal to or less than a predetermined maximum packet deletion number (upper limit), and the number of deletion requests is equal to or less than the upper limit value. If so (YES in step S51), the deletion count value DN is set to the number of deletion requests (step S52). On the other hand, when the number of deletion requests is larger than the upper limit value (NO in step S51), the deletion count value DN is set to the upper limit value (step S53).

次に、バッファサイズ変更部32は、ジッタバッファ30において、連続する有効パケットの最大連続数が2以上の場合(ステップS54で2以上)、最大連続数が削除カウント値DNの2倍以上であるか否かを判定する(ステップS55)。ここで、最大連続数が削除カウント値DNの2倍であるか否かを判定するのは、1つのパケットを削除する場合は、2つのパケットがオーバーラップ加算されるため、有効パケットが削除カウント値DNの2倍必要になるからである。   Next, when the maximum continuous number of consecutive valid packets is 2 or more (2 or more in step S54) in the jitter buffer 30, the buffer size changing unit 32 has a maximum continuous number that is twice or more the deletion count value DN. It is determined whether or not (step S55). Here, it is determined whether or not the maximum continuous number is twice the deletion count value DN. When one packet is deleted, two packets are overlap-added. This is because twice the value DN is required.

そして、バッファサイズ変更部32は、最大連続数が削除カウント値DNの2倍以上であると判定すると(ステップS55でYES)、オーバーラップ加算により削除カウント値DN分のパケットを削除し、削除カウント値DNから削除したパケット数を減じ、削除カウント値DNを更新する(ステップS58)。   When the buffer size changing unit 32 determines that the maximum number of consecutive times is twice or more the deletion count value DN (YES in step S55), the buffer size changing unit 32 deletes the packet corresponding to the deletion count value DN by overlap addition, and deletes the deletion count. The delete count value DN is updated by subtracting the number of deleted packets from the value DN (step S58).

一方、ステップS55において、最大連続数が削除カウント値DNの2倍未満である場合(ステップS55でNO)、バッファサイズ変更部32は、削除可能なパケットをオーバーラップ加算によって削除し、削除カウント値DNから削除したパケット数を減じ、削除カウント値DNを更新し(ステップS56)、処理をステップS54に戻す。   On the other hand, when the maximum continuous number is less than twice the deletion count value DN in step S55 (NO in step S55), the buffer size changing unit 32 deletes the deleteable packet by overlap addition, and deletes the deletion count value. The number of deleted packets is subtracted from the DN, the deletion count value DN is updated (step S56), and the process returns to step S54.

例えば、最大連続数が7、削除カウント値DN(=4)×2が8の場合、連続する7個の有効パケットのうち、6個の有効パケットを2個ずつオーバーラップ加算して、3個のパケットを削除する。そして、削除カウント値DNを、DN=1(=4-3)に更新する。   For example, when the maximum consecutive number is 7 and the deletion count value DN (= 4) × 2 is 8, 3 valid packets are overlapped by adding 6 valid packets of 7 consecutive valid packets. Delete the packet. Then, the deletion count value DN is updated to DN = 1 (= 4-3).

一方、ステップS54において、連続する有効パケットの最大連続数が1以下である場合(ステップS54で1以下)、無効パケットを削除し、削除カウント値DNから削除したパケット数を減じ、削除カウント値DNを更新する(ステップS57)。   On the other hand, in step S54, if the maximum number of consecutive valid packets is 1 or less (1 or less in step S54), invalid packets are deleted, and the deleted count value DN is subtracted from the deleted count value DN. Is updated (step S57).

例えば、削除カウント値DNが4、無効パケットの個数が3とすると、3個の無効パケットが削除され、DN=1(=4-3)に更新される。   For example, if the deletion count value DN is 4 and the number of invalid packets is 3, three invalid packets are deleted and updated to DN = 1 (= 4-3).

ステップS59において、バッファサイズ変更部32は、削除カウント値DNが0となったか否かを判定し、削除カウント値DNが0である場合(ステップS59でYES)、処理を終了する。   In step S59, the buffer size changing unit 32 determines whether or not the deletion count value DN is 0. If the deletion count value DN is 0 (YES in step S59), the process is terminated.

一方、ステップS59において、バッファサイズ変更部32は、削除カウント値DNが0になっていない場合(ステップS59でNO)、有効パケットがあれば(ステップS60でYES)、有効パケットを削除して処理を終了する(ステップS61)。この場合、削除される有効パケットは他の有効パケットと連続していないため、オーバーラップ加算によらず、単純に削除される。一方、有効パケットが無ければ(ステップS60でNO)、そのまま処理が終了される。   On the other hand, in step S59, if the deletion count value DN is not 0 (NO in step S59), the buffer size changing unit 32 deletes the effective packet and processes it if there is a valid packet (YES in step S60). Is finished (step S61). In this case, since the valid packet to be deleted is not continuous with other valid packets, it is simply deleted regardless of overlap addition. On the other hand, if there is no valid packet (NO in step S60), the process is terminated as it is.

図39は、バッファサイズ変更部32による挿入処理を示したフローチャートである。    FIG. 39 is a flowchart showing the insertion processing by the buffer size changing unit 32.

まず、ステップS71において、バッファサイズ変更部32は、パケットの挿入要求数が予め定められたパケット最大挿入数(上限値)以下であるか否かを判定し、削除要求数が最大挿入数以下である場合(ステップS71でYES)、挿入数を挿入要求数に設定する(ステップS72)。一方、挿入要求数が最大挿入数より大きい場合(ステップS71でNO)、挿入数を最大挿入数に設定する(ステップS73)。   First, in step S71, the buffer size changing unit 32 determines whether or not the number of packet insertion requests is equal to or less than a predetermined maximum packet insertion number (upper limit), and the number of deletion requests is equal to or less than the maximum number of insertions. If there is (YES in step S71), the number of insertions is set to the number of insertion requests (step S72). On the other hand, if the number of insertion requests is larger than the maximum number of insertions (NO in step S71), the number of insertions is set to the maximum number of insertions (step S73).

次に、バッファサイズ変更部32は、ジッタバッファ30において、連続する有効パケットの最大連続数が0の場合(ステップS74で0)、ジッタバッファ30の先頭から挿入数分の無効パケットを挿入し(ステップS75)、処理を終了する。   Next, when the maximum number of consecutive valid packets is 0 in the jitter buffer 30, the buffer size changing unit 32 inserts as many invalid packets as the number of insertions from the beginning of the jitter buffer 30 (0 in step S74). Step S75), the process is terminated.

また、バッファサイズ変更部32は、ジッタバッファ30において、連続する有効パケットの最大連続数が2以上の場合(ステップS74で2以上)、連続する有効パケットの区間の真ん中に挿入数分、無効パケットを挿入し(ステップS76)、処理を終了する。   Further, when the maximum number of consecutive valid packets in the jitter buffer 30 is 2 or more (2 or more in step S74), the buffer size changing unit 32 inserts invalid packets by the number of insertions in the middle of the continuous valid packet section. Is inserted (step S76), and the process is terminated.

また、バッファサイズ変更部32は、ジッタバッファ30において、連続する有効パケットの最大連続数が1の場合(ステップS74で1)、有効パケットの直後に挿入数分、無効パケットを挿入し(ステップS77)、処理を終了する。   When the maximum number of consecutive valid packets is 1 in the jitter buffer 30 (1 in step S74), the buffer size changing unit 32 inserts invalid packets for the number of insertions immediately after the valid packets (step S77). ), The process ends.

このように、ジッタバッファ30から1つのパケットを削除する場合、有効パケットが2つ以上連続する区間の真ん中に位置する2つのパケットをオーバーラップ加算して1つのパケットを生成することにより1つのパケットを削除しているため、音声の品質劣化を低減させることができる。   As described above, when one packet is deleted from the jitter buffer 30, one packet is generated by overlapping and adding two packets located in the middle of a section where two or more valid packets are continuous. Therefore, voice quality degradation can be reduced.

また、ジッタバッファ30にパケットを挿入する場合、連続する2つの有効パケットが存在すれば、これら2つの有効パケットの間に無効パケットが挿入されるため、無効パケットは、2つの有効パケットの間に挟まれることになり、この無効パケットに対してパケットロス隠蔽処理を実行した場合、前後の有効パケットから無効パケットが隠蔽でき、音声の連続性が保たれ、音声を滑らかに再生することができる。   Further, when a packet is inserted into the jitter buffer 30, if there are two consecutive valid packets, an invalid packet is inserted between these two valid packets. When packet loss concealment processing is executed for this invalid packet, the invalid packet can be concealed from the preceding and succeeding valid packets, the continuity of the voice is maintained, and the voice can be reproduced smoothly.

なお、揺らぎ吸収処理部JAの隠蔽処理部35が行うパケットロス隠蔽処理は、上述した音声データ欠落補償処理部VCによる音声データ欠落補償処理で代用することができる。   Note that the packet loss concealment processing performed by the concealment processing unit 35 of the fluctuation absorption processing unit JA can be replaced by the voice data loss compensation processing by the voice data loss compensation processing unit VC described above.

(実施形態3)
実施形態1,2における集合住宅用インターホンシステムは、ディジタル変調された音声情報(音声データ)、映像情報(映像データ)、制御情報(制御データ)をパケット伝送するものであった。これに対して本実施形態における集合住宅用インターホンシステムは、アナログの音声信号(音響信号)、映像信号、制御信号を適宜アナログ変調(例えば、周波数変調)して伝送する点に特徴がある。
(Embodiment 3)
The intercom systems for apartment houses in the first and second embodiments transmit packet information of digitally modulated audio information (audio data), video information (video data), and control information (control data). On the other hand, the intercom system for apartment buildings in this embodiment is characterized in that analog audio signals (acoustic signals), video signals, and control signals are appropriately analog-modulated (for example, frequency-modulated) and transmitted.

本実施形態における集合住宅用インターホンシステムのシステム構成は実施形態1とほぼ共通である(図2参照)。ただし、本実施形態における幹線制御装置は実施形態1における幹線制御装置Bと異なり、幹線L1を複数系統に分配するためのものである。なお、アナログ伝送方式の集合住宅用インターホンシステムについては従来周知であるから、システム構成の詳細な説明及び図示は省略する。   The system configuration of the intercom system for collective housing in this embodiment is almost the same as that in Embodiment 1 (see FIG. 2). However, unlike the main line control device B in the first embodiment, the main line control device in the present embodiment is for distributing the main line L1 to a plurality of systems. Since an analog transmission type intercom system for apartment houses is well known in the art, detailed description and illustration of the system configuration will be omitted.

図40は本実施形態の外線転送装置Eを示している。ただし、図9に示した実施形態1の外線転送装置Eと共通の構成要素には同一の符号を付して説明を省略する。本実施形態の外線転送装置Eは、パケット伝送のための伝送処理部2に代えて、エコーキャンセラ100、D/A変換器105、受話アンプ106、2線4線変換部107、送話アンプ108、A/D変換器109を備えている。エコーキャンセラ100は適応フィルタ101と減算器102からなる従来周知の構成を有し、伝送路(幹線L1,住戸別線L2,信号線L4)を介して生じる回線エコーを抑圧する。   FIG. 40 shows an external line transfer device E of the present embodiment. However, the same components as those in the external line transfer device E of the first embodiment shown in FIG. The external line transfer apparatus E of the present embodiment replaces the transmission processing unit 2 for packet transmission with an echo canceller 100, a D / A converter 105, a reception amplifier 106, a two-wire four-wire conversion unit 107, and a transmission amplifier 108. , An A / D converter 109 is provided. The echo canceller 100 has a conventionally well-known configuration including an adaptive filter 101 and a subtractor 102, and suppresses line echo generated via the transmission path (main line L1, dwelling unit separate line L2, signal line L4).

而して、アナログ伝送方式の集合住宅用インターホンシステムにおいても、外線転送装置Eの自動音量補正部1が自動的に音量を補正するので、外部通話装置の種類(固定電話機や携帯電話機)や製造元(メーカ)あるいは機種による通話音声の音量のばらつきを抑えることができる。   Thus, even in an analog transmission type intercom system for an apartment house, since the automatic volume correction unit 1 of the external line transfer device E automatically corrects the volume, the type of external call device (fixed telephone or mobile phone) and the manufacturer Variations in the volume of call voice by (manufacturer) or model can be suppressed.

ところで、従来の集合住宅用インターホンシステムには、一部又は全部の住戸通話装置Aに対して一斉に音声を放送する一斉放送装置を備えたものがあった。本実施形態の集合住宅用インターホンシステムにおいても、管理室通話装置C又は外部通話装置Fから一部又は全部の住戸通話装置Aに対して一斉放送を行うことが可能である。なお、外部通話装置Fから一斉放送が行われる場合、システム内においては外線転送装置Eから一部又は全部の住戸通話装置Aに対して一斉放送が行われることになる。   By the way, the conventional intercom system for collective housing has what was equipped with the simultaneous broadcasting apparatus which broadcasts an audio | voice simultaneously with respect to one part or all the dwelling unit call apparatus A. Also in the intercom system for apartment houses of this embodiment, it is possible to broadcast simultaneously to some or all of the dwelling unit communication devices A from the control room communication device C or the external communication device F. In addition, when a broadcast is performed from the external call device F, the broadcast is performed from the external line transfer device E to a part or all of the dwelling unit call devices A in the system.

ここで、集合住宅の規模によっては外線転送装置Eから各住戸通話装置Aまでの伝送路の配線長が数百メートルから数キロメートルにも及ぶ場合がある。また住戸通話装置Aの接続台数も集合住宅の規模によって異なるため、配線並びに住戸通話装置A等のインピーダンスに起因した伝送路の伝送ロスが悪化して住戸通話装置Aにおける一斉放送の音量が低下してしまい、住戸通話装置A間に音量のばらつきが生じる虞がある。なお、音量の低下に対しては一斉放送用の音響信号を増幅することで対処可能であるが、個々の住戸通話装置A間における音量のばらつきを抑えることはできない。ここで、「伝送ロス」とは、伝送系の2地点間(外線転送装置Eと各住戸通話装置Aの間)において、送信信号に対する受信信号の振幅や位相の変化及びその変化量と定義される。   Here, depending on the scale of the apartment house, the wiring length of the transmission line from the external line transfer device E to each dwelling unit communication device A may reach several hundred meters to several kilometers. In addition, since the number of units connected to the dwelling unit communication device A varies depending on the scale of the apartment house, the transmission loss of the transmission path due to the impedance of the wiring and the dwelling unit call unit A etc. deteriorates, and the volume of the simultaneous broadcasting in the dwelling unit call unit A decreases. Therefore, there is a possibility that the volume of sound varies between the dwelling unit communication devices A. Note that the decrease in volume can be dealt with by amplifying the sound signal for simultaneous broadcasting, but the variation in volume between the individual dwelling unit call devices A cannot be suppressed. Here, “transmission loss” is defined as changes in the amplitude and phase of the received signal with respect to the transmission signal and the amount of change between the two points in the transmission system (between the external line transfer device E and each dwelling unit communication device A). The

これに対して本出願人は、伝送路の伝送ロスを推定するとともに推定した伝送ロスを補償して一斉放送の音量が所定範囲の値となるように補正する音量補正手段を各住戸通話装置Aに備えた集合住宅用インターホンシステムを既に提案している(例えば、特開2006-270877号公報参照)。故に、本実施形態における集合住宅用インターホンシステムにも当該技術を適用し、複数の住戸通話装置A間における一斉放送の音量のばらつきを抑えることが望ましい。   On the other hand, the present applicant estimates the transmission loss of the transmission path and compensates the estimated transmission loss so that the volume of the broadcast broadcast is corrected so that the volume of the broadcast is within a predetermined range. Has already proposed an intercom system for collective housing in preparation (see, for example, JP-A-2006-270877). Therefore, it is desirable to apply the technique to the intercom system for collective housing in the present embodiment to suppress the variation in the volume of the broadcast broadcast among the plurality of dwelling unit communication devices A.

そこで本実施形態の外線転送装置Eには、図40に示すようにトレーニング信号生成部120、第1切換部104、第2切換部110、可変利得アンプ103、一斉放送用アンプ111が設けられている。トレーニング信号生成部120は、単一周波数のトーン信号からなるトレーニング信号を生成して出力する。第1切換部104は、D/A変換器105の入力端をエコーキャンセラ100及び自動音量補正部1に接続する状態とトレーニング信号生成部120に接続する状態とに択一的に切り換える。第2切換部110は、D/A変換器105の出力端を受話アンプ106に接続する状態と一斉放送用アンプ111に接続する状態とに択一的に切り換える。そして、トレーニング信号生成部120から出力されるトレーニング信号は、第1切換部104からD/A変換器105及び第2切換部110を経て一斉放送用アンプ111で増幅された後に伝送路を介して各住戸通話装置Aに伝送される。   Therefore, in the external line transfer apparatus E of the present embodiment, as shown in FIG. 40, a training signal generation unit 120, a first switching unit 104, a second switching unit 110, a variable gain amplifier 103, and a broadcast broadcasting amplifier 111 are provided. Yes. The training signal generation unit 120 generates and outputs a training signal composed of a single frequency tone signal. The first switching unit 104 selectively switches between a state where the input end of the D / A converter 105 is connected to the echo canceller 100 and the automatic volume correction unit 1 and a state where it is connected to the training signal generation unit 120. Second switching section 110 selectively switches between a state in which the output terminal of D / A converter 105 is connected to receiver amplifier 106 and a state in which it is connected to broadcast amplifier 111. The training signal output from the training signal generation unit 120 is amplified by the broadcast broadcast amplifier 111 from the first switching unit 104 via the D / A converter 105 and the second switching unit 110 and then transmitted through the transmission line. It is transmitted to each dwelling unit communication device A.

一方、各住戸通話装置Aは、伝送路を介して受信したトレーニング信号に基づいて外線転送装置Eから住戸通話装置Aに至るまでの伝送路の伝送ロスを推定する伝送ロス推定手段と、一斉放送用の音響信号に対して伝送ロス推定手段で推定した伝送ロスを補償する伝送ロス補償手段とを備える。ただし、伝送ロス推定手段並びに伝送ロス補償手段の詳細な構成並びに動作については、既に周知であるから省略する(例えば、特開2006-270877号公報等参照)。   On the other hand, each dwelling unit communication apparatus A includes transmission loss estimation means for estimating a transmission loss of the transmission path from the external line transfer apparatus E to the dwelling unit communication apparatus A based on a training signal received via the transmission path, Transmission loss compensating means for compensating the transmission loss estimated by the transmission loss estimating means for the acoustic signal for use. However, the detailed configuration and operation of the transmission loss estimation unit and the transmission loss compensation unit are already known, and thus are omitted (see, for example, JP-A-2006-270877).

次に、本実施形態において外部通話装置Fより外線転送装置Eを介して複数台の住戸通話装置Aに対して一斉放送を行う際の外線転送装置Eの動作を説明する。まず、外部通話装置Fより外線転送装置Eの外線番号(電話番号)に発呼されて電話線Lxが閉結された後、外部通話装置Fから外線転送装置Eに特定のPB信号(一斉放送の開始を通知するための信号)が伝送される。当該PB信号を受け取った外線転送装置Eでは、伝送路を介して各住戸通話装置Aに一斉放送の開始を通知するための制御信号が送信され、第1切換部104がトレーニング信号生成部120の側へ切り換えられるとともに第2切換部110が一斉放送用アンプ111の側に切り換えられる。その後、トレーニング信号生成部120からトレーニング信号が出力され、当該トレーニング信号が第1切換部104、D/A変換器105、第2切換部110、一斉放送用アンプ111を介して伝送路に送出される。このとき、伝送路に対して不要な通話ノイズが出力されないように、受話アンプ106がミュート(停止)されていることが望ましい。   Next, the operation of the external line transfer device E when performing simultaneous broadcasting from the external call device F to the plurality of dwelling unit call devices A via the external line transfer device E in the present embodiment will be described. First, after the external call device F is called to the external line number (telephone number) of the external line transfer device E and the telephone line Lx is closed, a specific PB signal (broadcasting) is sent from the external call device F to the external line transfer device E. Is transmitted). In the external line transfer device E that has received the PB signal, a control signal for notifying the start of simultaneous broadcasting to each dwelling unit communication device A is transmitted via the transmission line, and the first switching unit 104 is connected to the training signal generating unit 120. The second switching unit 110 is switched to the broadcast broadcasting amplifier 111 side. Thereafter, a training signal is output from the training signal generation unit 120, and the training signal is sent to the transmission line via the first switching unit 104, the D / A converter 105, the second switching unit 110, and the broadcast broadcasting amplifier 111. The At this time, it is desirable that the reception amplifier 106 is muted (stopped) so that unnecessary call noise is not output to the transmission line.

外線転送装置Eから送信された制御信号には一斉放送開始コマンドが含まれており、当該一斉放送開始コマンドが一斉放送の対象である全ての住戸通話装置Aで受信される。各住戸通話装置Aでは一斉放送開始コマンドに応じて一斉放送開始のための準備を行う。すなわち、外線転送装置Eから送信されるトレーニング信号に基づいて、伝送ロス推定手段が外線転送装置Eから住戸通話装置Aに至るまでの伝送路の伝送ロスを推定する。そして、伝送ロス補償手段が、伝送ロス推定手段で推定された伝送ロスを補償するために必要な補正量(利得)を演算し、当該補正量を図示しない受話アンプのゲインに設定する。   The control signal transmitted from the external line transfer device E includes a broadcast start command, and the broadcast start command is received by all the dwelling unit communication devices A that are the targets of the broadcast. Each dwelling unit communication device A makes preparations for starting a broadcast in response to a broadcast start command. That is, based on the training signal transmitted from the external line transfer device E, the transmission loss estimation means estimates the transmission loss of the transmission path from the external line transfer device E to the dwelling unit communication device A. Then, the transmission loss compensation means calculates a correction amount (gain) necessary for compensating the transmission loss estimated by the transmission loss estimation means, and sets the correction amount as a gain of a receiving amplifier (not shown).

外線転送装置Eでは、送信開始から所定時間経過後にトレーニング信号生成部120によるトレーニング信号の生成(出力)が停止される。さらに、第1切換部104がトレーニング信号生成部120からエコーキャンセラ100の側へ切り換えられる。そして、外部通話装置Fから伝送されてくる一斉放送の音響信号(一斉放送用音響信号)が伝送路を介して各住戸通話装置Aに転送される。このとき、外線転送装置EではA/D変換器109からD/A変換器7に至る経路に挿入されている可変利得アンプ103の利得がゼロに設定されて、外部通話装置Fには音響信号が送信されないようになっている。あるいは、送話アンプ108がミュートされ、且つエコーキャンセラ100において適応フィルタ101からの出力信号が強制的にゼロにされてもよい。このような処理により、外部通話装置Fの話者(一斉放送を行う者)に対して不快なエコーや通話ノイズが伝送されることが防止できる。   In the external line transfer device E, the generation (output) of the training signal by the training signal generation unit 120 is stopped after a predetermined time has elapsed from the start of transmission. Further, the first switching unit 104 is switched from the training signal generation unit 120 to the echo canceller 100 side. The broadcast broadcast sound signal (broadcast sound signal) transmitted from the external call device F is transferred to each dwelling unit call device A via the transmission path. At this time, in the external line transfer device E, the gain of the variable gain amplifier 103 inserted in the path from the A / D converter 109 to the D / A converter 7 is set to zero, and an acoustic signal is sent to the external communication device F. Is not sent. Alternatively, the transmission amplifier 108 may be muted and the output signal from the adaptive filter 101 may be forced to zero in the echo canceller 100. By such processing, it is possible to prevent an unpleasant echo or call noise from being transmitted to a speaker of the external call device F (a person who broadcasts simultaneously).

そして、外線転送装置Eから伝送路を介して伝送される一斉放送用音響信号は、各住戸通話装置Aの伝送ロス補償手段で伝送ロスが補償されるため、住戸通話装置Aのスピーカから適切な音量で一斉放送の音声が鳴動されることになる。   And since the transmission loss is compensated for by the transmission loss compensation means of each dwelling unit call device A, the sound signal for simultaneous broadcasting transmitted from the outside line transfer device E via the transmission line is appropriately transmitted from the speaker of the dwelling unit call unit A. The broadcast sound is played at the volume.

なお、外部通話装置Fでオンフックされて電話線Lxが開放されると、外線転送装置Eでは、一斉放送の終了を指示する制御信号(一斉放送終了コマンド)が各住戸通話装置Aに伝送される。その後、第1切換部104がエコーキャンセラ100の側へ切り換えられるとともに第2切換部110が受話アンプ106の側へ切り換えられる。   When the telephone line Lx is released by being on-hooked by the external call device F, the external line transfer device E transmits a control signal (broadcast end command) instructing the end of the broadcast to each dwelling unit call device A. . Thereafter, the first switching unit 104 is switched to the echo canceller 100 side, and the second switching unit 110 is switched to the receiver amplifier 106 side.

上述のように本実施形態によれば、外部通話装置Fから外線転送装置Eを介して一斉放送が行われる場合においても、複数の住戸通話装置A間における一斉放送の音量のばらつきを抑えることができる。   As described above, according to the present embodiment, even when simultaneous broadcasting is performed from the external communication device F via the external line transfer device E, it is possible to suppress variation in the volume of the simultaneous broadcasting between the plurality of dwelling unit communication devices A. it can.

1 自動音量補正部(音量補正手段)
L1 幹線
Lx 電話線(局線)
A 住戸通話装置
C 管理室通話装置
1 Automatic volume correction (volume correction means)
L1 main line
Lx telephone line (office line)
A Dwelling unit call device C Control room call device

Claims (6)

幹線を介して集合住宅内の通話装置に接続されるとともに公衆電話網の局線を介して集合住宅外の外部通話装置に接続され、前記通話装置と前記外部通話装置との間で相互に音響信号を転送してなり、前記外部通話装置から送信されてくる音響信号の音量レベルを、前記通話装置から送信されてくる音響信号の音量レベルに近付けるように補正する音量補正手段を備えることを特徴とする集合住宅用インターホンシステムの外線転送装置。   Connected to a telephone device in the apartment house via the trunk line and connected to an external telephone device outside the apartment house via a public telephone network office line, and the mutual sound between the telephone device and the external telephone device A volume correction unit is provided that corrects the volume level of the acoustic signal transmitted from the external communication device so as to approach the volume level of the acoustic signal transmitted from the communication device. External line transfer device for intercom system for apartment houses. 前記音量補正手段は、前記音響信号の信号レベルを調整して出力する信号出力部と、前記音響信号の信号レベルの短時間平均値及び長時間平均値を算出する時間平均値算出部と、前記短時間平均値又は前記長時間平均値に応じて前記信号出力部の調整量を設定する設定部とを備え、当該設定部は、前記音響信号の信号レベル上昇中は前記短時間平均値に応じて前記調整量を設定し、前記音響信号の信号レベル下降中は前記長時間平均値に応じて前記調整量を設定することを特徴とする請求項1記載の集合住宅用インターホンシステムの外線転送装置。   The sound volume correcting means adjusts and outputs a signal level of the acoustic signal, a short time average value and a long time average value of the signal level of the acoustic signal, a time average value calculating unit, A setting unit that sets an adjustment amount of the signal output unit according to the short-time average value or the long-time average value, and the setting unit responds to the short-time average value while the signal level of the acoustic signal is rising 2. The outside line transfer apparatus for an intercom system for an apartment house according to claim 1, wherein the adjustment amount is set, and the adjustment amount is set according to the long-term average value while the signal level of the acoustic signal is decreasing. . 前記局線を介して生じる回線エコーを抑圧するエコーキャンセラを備えることを特徴とする請求項1又は2記載の集合住宅用インターホンシステムの外線転送装置。   3. The outside line transfer apparatus for an intercom system for an apartment house according to claim 1 or 2, further comprising an echo canceller that suppresses a line echo generated through the office line. 前記入力信号に含まれる音声以外の雑音を抑制する雑音抑制部を備えることを特徴とする請求項1〜3の何れか1項に記載の集合住宅用インターホンシステムの外線転送装置。   The external line transfer apparatus for an intercom system for an apartment house according to any one of claims 1 to 3, further comprising a noise suppression unit that suppresses noise other than voice included in the input signal. 前記幹線を介して前記通話装置との間でディジタルの音響信号をパケット伝送する伝送処理部と、当該伝送処理部における伝送遅延の揺らぎを吸収する揺らぎ吸収部とを備えることを特徴とする請求項1〜4の何れか1項に記載の集合住宅用インターホンシステムの外線転送装置。   A transmission processing unit that packet-transmits a digital acoustic signal to and from the call device via the trunk line, and a fluctuation absorbing unit that absorbs fluctuations in transmission delay in the transmission processing unit. The outside line transfer apparatus of the intercom system for apartment houses of any one of 1-4. 前記幹線を介して前記通話装置との間でディジタルの音響信号をパケット伝送する伝送処理部と、当該伝送処理部で受信した前記音響パケットに含まれている音響データの全部又は一部が欠落した場合、欠落していない音響データを利用して、欠落した前記音響データの全部又は一部を補償する音響データ欠落補償部とを備えることを特徴とする請求項1〜5の何れか1項に記載の集合住宅用インターホンシステムの外線転送装置。   A transmission processing unit that packet-transmits a digital acoustic signal to and from the telephone device via the trunk line, and all or a part of the acoustic data included in the acoustic packet received by the transmission processing unit is missing In any case, the sound data missing compensation part which compensates all or a part of the missing sound data using the missing sound data is provided. An outside line transfer device for an intercom system for apartment houses as described.
JP2011005097A 2010-12-20 2011-01-13 External line transfer device for intercom system for apartment houses Active JP5821022B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011005097A JP5821022B2 (en) 2010-12-20 2011-01-13 External line transfer device for intercom system for apartment houses

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2010283629 2010-12-20
JP2010283629 2010-12-20
JP2011005097A JP5821022B2 (en) 2010-12-20 2011-01-13 External line transfer device for intercom system for apartment houses

Publications (2)

Publication Number Publication Date
JP2012147326A true JP2012147326A (en) 2012-08-02
JP5821022B2 JP5821022B2 (en) 2015-11-24

Family

ID=46790416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011005097A Active JP5821022B2 (en) 2010-12-20 2011-01-13 External line transfer device for intercom system for apartment houses

Country Status (1)

Country Link
JP (1) JP5821022B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052553A (en) * 2012-09-07 2014-03-20 Panasonic Corp Sound volume correction device
JP2014183389A (en) * 2013-03-18 2014-09-29 Oki Electric Ind Co Ltd Signal level change device and program
JP2014200056A (en) * 2013-03-13 2014-10-23 パナソニック株式会社 Mobile terminal, program, and call system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04346504A (en) * 1991-05-24 1992-12-02 Toshiba Corp Sound volume controller
JPH09261331A (en) * 1996-03-20 1997-10-03 Kenwood Corp Telephone set
JP2002125059A (en) * 2000-10-13 2002-04-26 Matsushita Electric Ind Co Ltd Interphone system and interphone system transfer method for multiple dwelling house

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04346504A (en) * 1991-05-24 1992-12-02 Toshiba Corp Sound volume controller
JPH09261331A (en) * 1996-03-20 1997-10-03 Kenwood Corp Telephone set
JP2002125059A (en) * 2000-10-13 2002-04-26 Matsushita Electric Ind Co Ltd Interphone system and interphone system transfer method for multiple dwelling house

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014052553A (en) * 2012-09-07 2014-03-20 Panasonic Corp Sound volume correction device
JP2014200056A (en) * 2013-03-13 2014-10-23 パナソニック株式会社 Mobile terminal, program, and call system
JP2014183389A (en) * 2013-03-18 2014-09-29 Oki Electric Ind Co Ltd Signal level change device and program

Also Published As

Publication number Publication date
JP5821022B2 (en) 2015-11-24

Similar Documents

Publication Publication Date Title
US5646990A (en) Efficient speakerphone anti-howling system
KR102031023B1 (en) Sequenced adaptation of anti-noise generator response and secondary path response in an adaptive noise canceling system
JP5332733B2 (en) Echo canceller
JP5061853B2 (en) Echo canceller and echo cancel program
FR2722627A1 (en) METHOD AND DEVICE FOR CANCELLATION OF ECHO WITH INSENSITIVITY TO AMBIGOUS SPEECH SIGNALS
SK60694A3 (en) Network with suppressed echo
JP5834948B2 (en) Reverberation suppression apparatus, reverberation suppression method, and computer program for reverberation suppression
JP4204754B2 (en) Method and apparatus for adaptive signal gain control in a communication system
JP6903884B2 (en) Signal processing equipment, programs and methods, and communication equipment
JP2009105666A (en) Loudspeaker call device
US20150086006A1 (en) Echo suppressor using past echo path characteristics for updating
JP5821022B2 (en) External line transfer device for intercom system for apartment houses
US11496627B2 (en) Telephone apparatus, method of controlling telephone apparatus, and program
JP5544012B2 (en) Apartment unit intercom system dwelling unit and apartment house intercom system
JP5923705B2 (en) Call signal processing device
JP2009021658A (en) Sound emission and collection device
JP2009017029A (en) Device and method for processing sound signal
JP5771774B2 (en) Automatic volume correction device, audio transfer device, and intercom system
EP0515242A1 (en) Method for optimizing the quality of telephone communications
JP5255358B2 (en) Audio transmission system
JPS58134557A (en) Delay control system for voice packet transmission
JP2006279191A (en) Echo canceller
JP2008124678A (en) Echo processing processor and voice communication apparatus
JP2006148375A (en) Echo cancellation method, echo canceller, and telephone repeater
AU759535B2 (en) Transmission system with echo cancellation

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140708

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20141008

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20141104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150204

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20150213

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150414

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150508

R151 Written notification of patent or utility model registration

Ref document number: 5821022

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151