JP2003208200A - Received signal reproducing method - Google Patents

Received signal reproducing method

Info

Publication number
JP2003208200A
JP2003208200A JP2002008392A JP2002008392A JP2003208200A JP 2003208200 A JP2003208200 A JP 2003208200A JP 2002008392 A JP2002008392 A JP 2002008392A JP 2002008392 A JP2002008392 A JP 2002008392A JP 2003208200 A JP2003208200 A JP 2003208200A
Authority
JP
Japan
Prior art keywords
frequency
sampling frequency
ratio
compressed data
fifo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002008392A
Other languages
Japanese (ja)
Inventor
Tetsuhiko Kaneaki
哲彦 金秋
Shuji Morita
周司 森田
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 Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002008392A priority Critical patent/JP2003208200A/en
Publication of JP2003208200A publication Critical patent/JP2003208200A/en
Pending legal-status Critical Current

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a received signal reproducing method for correctly reproducing compressed data transmitted by a variable bit rate even when reference frequencies are shifted between a transmission side and a receiving side. <P>SOLUTION: The compressed data transmitted in order are received by a receiver and accumulated in order in FIFO 1. A DSP (digital signal processor) decoder 4 properly reads the compressed data from the FIFO 1 to decode them. A reproducing time detector 2 detects a reproducible time by the compressed data accumulated in the FIFO 1, and a frequency ratio detector 6 detects the ratio of a sampling frequency on the transmission side and that to be outputted actually based on the variation of the reproducible time. On the basis of this ratio, a clock generator 3 generates a reference signal equivalent to the sampling frequency on the transmission side, and an Fs converter 5 converts the sampling frequency of the output of the DSP decoder 4. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、オーディオ信号等
を逐次情報圧縮しながら送信される圧縮データを受信
し、受信された信号を順次デコードしながら再生する受
信信号再生方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a received signal reproducing method for receiving compressed data transmitted while sequentially compressing information of an audio signal or the like, and reproducing while sequentially decoding the received signal.

【0002】[0002]

【従来の技術】近年、ワイヤレスによるオーディオ信号
の伝送が行われるようになったが、伝送帯域を節約する
ため、図4に示すとおり、デジタル信号処理装置(以
下、DSPと称す)100によって入力されるサンプリ
ング周波数fsを有するオーディオ信号列を特定個数毎に
圧縮処理を行い、図5に示すような1フレームを単位と
するデータ列にエンコードする。各フレームはフレーム
長が異なっているが、それぞれはデコードすると同じ時
間分のデータとなっている。各フレームにはヘッダ(図
中“H”と表記している)があり、そのヘッダに同期用
データ、フレーム長やサンプリング周波数といったデコ
ードに必要な情報が書き込まれている。このような圧縮
方式としては、国際標準規格MPEG−2のオーディオ
圧縮方式の中の1方式であるAAC(Advanced Audio C
oding)が知られている。エンコードされたデータ列
は、送信機101を用いて送信され、受信機102によ
り受信し、デコーダ用のDSP103によってフレーム
のヘッダよりサンプリング周波数、フレーム長等の必要
な情報を読み取り、元のオーディオ信号に復調するよう
になっている。
2. Description of the Related Art Recently, audio signals have been wirelessly transmitted. However, in order to save the transmission band, as shown in FIG. 4, a digital signal processing device (hereinafter referred to as DSP) 100 is used for input. The audio signal sequence having the sampling frequency fs is compressed for each specific number and encoded into a data sequence in a unit of one frame as shown in FIG. Although each frame has a different frame length, each frame has the same amount of data when decoded. Each frame has a header (denoted as "H" in the figure), and synchronization information, information necessary for decoding such as frame length and sampling frequency is written in the header. As such a compression method, one of the audio compression methods of the international standard MPEG-2 is AAC (Advanced Audio C).
oding) is known. The encoded data string is transmitted using the transmitter 101, received by the receiver 102, and the decoder DSP 103 reads necessary information such as the sampling frequency and the frame length from the header of the frame to obtain the original audio signal. It is designed to demodulate.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記のよ
うな方法では、DSP100によってエンコードされた
データが図5に示すような可変ビットレートである場
合、送信機101によって転送されてくるデータの転送
レートが受信側では分からず、ヘッダによって指定され
ているサンプリング周波数で再生した場合にそれぞれで
基準としている周波数に微妙なずれがあるために送信デ
ータが過多になる、或いは足りなくなるといった事態が
発生するという課題があった。
However, in the above method, when the data encoded by the DSP 100 has a variable bit rate as shown in FIG. 5, the transfer rate of the data transferred by the transmitter 101 is It is not known on the receiving side, and when reproduced at the sampling frequency specified by the header, there is a problem that the transmission data becomes excessive or insufficient due to a slight deviation in the reference frequency for each. was there.

【0004】本発明は上記の問題点に対して、転送レー
トが不明であっても、或いは、送信側、受信側双方にお
ける基準となる周波数がずれていた場合であっても、正
しくオーディオ信号を再生できる受信信号再生方法を提
供するものである。
The present invention solves the above problems by correctly outputting an audio signal even when the transfer rate is unknown or when the reference frequency on both the transmitting side and the receiving side is deviated. A method of reproducing a received signal that can be reproduced is provided.

【0005】[0005]

【課題を解決するための手段】この課題を解決するため
に本発明は、送信される第1のサンプリング周波数を有
する圧縮データを受信し、FIFOに蓄積させる手段
と、FIFOより圧縮データを読み出しデコードする手
段と、FIFOに蓄積されている圧縮データによる再生
可能時間を検出する手段と、再生可能時間の変化に基づ
き、第1のサンプリング周波数と実際に出力する第2の
サンプリング周波数の周波数比を検出する手段と、周波
数比に基づき第1のサンプリング周波数に相当する基準
信号を発生するクロック発生手段と、周波数比に基づき
デコードする手段の出力を第2のサンプリング周波数に
変換するサンプリングレート変換手段とを有するように
したものである。
In order to solve this problem, the present invention provides a means for receiving transmitted compressed data having a first sampling frequency and storing it in a FIFO, and reading and decoding the compressed data from the FIFO. Means, a means for detecting the reproducible time by the compressed data stored in the FIFO, and a frequency ratio between the first sampling frequency and the actually output second sampling frequency based on the change in the reproducible time. Means, a clock generation means for generating a reference signal corresponding to the first sampling frequency based on the frequency ratio, and a sampling rate conversion means for converting the output of the decoding means based on the frequency ratio into the second sampling frequency. I had it.

【0006】[0006]

【発明の実施の形態】本発明の請求項1に記載の発明
は、送信される第1のサンプリング周波数を有する圧縮
データを受信し、FIFOに蓄積させる手段と、該FI
FOより圧縮データを読み出しデコードする手段と、前
記FIFOに蓄積されている圧縮データによる再生可能
時間を検出する手段と、該再生可能時間の変化に基づ
き、前記第1のサンプリング周波数と実際に出力する第
2のサンプリング周波数の周波数比を検出する手段と、
該周波数比に基づき前記第1のサンプリング周波数に相
当する基準信号を発生するクロック発生手段と、前記周
波数比に基づき前記デコードする手段の出力を第2のサ
ンプリング周波数に変換するサンプリングレート変換手
段と、を備えるようにしたものであり、これにより実際
に送信されてくるデータ量に関係なく、FIFOに蓄積
されているデータによる再生可能時間より送信側におけ
るサンプリング周波数fsの実際の値と受信側におけるサ
ンプリング周波数の比が推定でき、送信データにおける
サンプリング周波数の関わらず、受信側におけるサンプ
リング周波数によって再生可能になるという作用を有す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The invention according to claim 1 of the present invention comprises means for receiving compressed data having a first sampling frequency to be transmitted and storing the compressed data in a FIFO, and the FI.
Means for reading and decoding the compressed data from the FO, means for detecting the reproducible time by the compressed data stored in the FIFO, and actually outputting the first sampling frequency based on the change in the reproducible time. Means for detecting a frequency ratio of the second sampling frequency;
Clock generation means for generating a reference signal corresponding to the first sampling frequency based on the frequency ratio; sampling rate conversion means for converting the output of the decoding means into a second sampling frequency based on the frequency ratio; Therefore, regardless of the amount of data actually transmitted, the actual value of the sampling frequency fs on the transmission side and the sampling on the reception side from the reproducible time of the data stored in the FIFO The ratio of the frequencies can be estimated, and regardless of the sampling frequency of the transmission data, the sampling frequency on the receiving side enables reproduction.

【0007】また、請求項2に記載の発明は、請求項1
に係る発明おいて、前記圧縮データがヘッダにより区切
られた1フレームを単位とするデータであり、前記再生
可能時間を検出する手段が前記FIFOに蓄積されてい
る圧縮データのフレーム数を計測することによって再生
可能時間を検出する手段とするようにしたものであり、
1フレームをデコードした場合にそれが何サンプルにな
るかが一定であるので、これにより、デコードする手段
により実際にデコードせずとも容易に再生可能時間を検
出できるという作用を有する。
The invention described in claim 2 is the same as claim 1
In the invention according to claim 1, the compressed data is data in a unit of one frame delimited by a header, and the means for detecting the reproducible time measures the number of frames of the compressed data accumulated in the FIFO. Is to detect the reproducible time by
Since the number of samples when one frame is decoded is constant, this has the effect that the reproducible time can be easily detected by the decoding means without actually decoding.

【0008】また、請求項3に記載の発明は、請求項1
に係る発明において、前記クロック発生手段は、マスタ
クロックを分周して前記第1のサンプリング周波数を得
るようにした手段であり、前記周波数比をM1:M2、
前記第1のサンプリング周波数のマスタクロックに対す
る分周比をR1、前記第2のサンプリング周波数のマス
タクロックに対する分周比をR2としたとき、M1・R
2とM2・R1の大小関係に基づくアルゴリズムによっ
て分周比R1を決定するようにしたものであり、これに
より受信側で推定した周波数比に対し、分周比R1のサ
ンプリング周波数と分周比R2のサンプリング周波数の
周波数比が巨視的に見て一致し、送信側のサンプリング
周波数と同期した状態で、受信側で希望するサンプリン
グ周波数に変換されるという作用を有する。
The invention described in claim 3 is the same as claim 1
In the invention according to, the clock generating means is means for dividing the master clock to obtain the first sampling frequency, and the frequency ratio is M1: M2,
Assuming that the frequency division ratio of the first sampling frequency to the master clock is R1 and the frequency division ratio of the second sampling frequency to the master clock is R2, M1 · R
The frequency division ratio R1 is determined by an algorithm based on the magnitude relationship between 2 and M2 · R1. With this, the sampling frequency of the frequency division ratio R1 and the frequency division ratio R2 The sampling ratios of the two are macroscopically identical to each other, and in the state of being synchronized with the sampling frequency of the transmitting side, the sampling frequency is converted into a desired sampling frequency on the receiving side.

【0009】以下、本発明の実施形態について図面を用
いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0010】(実施の形態)図1は本発明の実施の形態
による受信信号再生方法を実現するための一構成例を示
すブロック図である。この図を説明すると、受信器7が
送信されてくる圧縮データを受信し、FIFO(Fast I
n Fast Out Memory)1に入力する。受信器7に送信さ
れてくる信号は、送信側エンコーダ(図4に示したDS
P100に相当)においてサンプリング周波数fs1であ
る信号をエンコードしたものである。FIFO1は、こ
こでは1024サンプルのデータが圧縮されて1フレー
ムとなっているデータが入力されている。FIFO1に
4フレーム分のデータが蓄積されると、FIFO1は入
力された順にデータ出力を開始する。出力開始後はデコ
ード用のDSP4が発生するリクエスト信号rqに応じ
てデータを放出するとともに入力に与えられてくるデー
タを順次蓄積していく。
(Embodiment) FIG. 1 is a block diagram showing a configuration example for realizing a received signal reproducing method according to an embodiment of the present invention. To explain this figure, the receiver 7 receives the transmitted compressed data, and receives the FIFO (Fast I
n Fast Out Memory) 1 input. The signal transmitted to the receiver 7 is the encoder on the transmission side (DS shown in FIG. 4).
(Corresponding to P100), the signal having the sampling frequency fs1 is encoded. The FIFO 1 is input with data in which 1024 sample data is compressed to form one frame. When four frames of data are stored in the FIFO1, the FIFO1 starts outputting data in the order of input. After the output is started, the data is released according to the request signal rq generated by the decoding DSP 4 and the data supplied to the input is sequentially accumulated.

【0011】クロック発生器3が発生するクロック信号
CK1に基づき、DSP4がFIFO1より蓄積された
データを順次読み出し、所定のデコード処理を行ってF
s変換器5へ出力する。ここで、クロック発生器3が発
生するクロック信号CK1はサンプリング周波数fs1に
相当する信号であり、DSP4はFIFO1に4フレー
ム分のデータが蓄えられるとデコード動作を開始し、リ
クエスト信号rqによってFIFO1よりフレーム単位
でデータを要求し、サンプリング周波数fs1のレートで
デコードされた信号をFs変換器5に対して送出してい
る。
Based on the clock signal CK1 generated by the clock generator 3, the DSP 4 sequentially reads the accumulated data from the FIFO 1 and performs a predetermined decoding process to perform F
Output to the s converter 5. Here, the clock signal CK1 generated by the clock generator 3 is a signal corresponding to the sampling frequency fs1, and the DSP 4 starts the decoding operation when 4 frames of data are stored in the FIFO 1, and the frame is transmitted from the FIFO 1 by the request signal rq. Data is requested in units, and a signal decoded at the sampling frequency fs1 rate is sent to the Fs converter 5.

【0012】Fs変換器5は周波数比検出器6より与え
られる周波数比M1とサンプリング周波数fs2を有する
クロック信号CK2に基づき、DSP4出力のサンプリ
ング周波数であるfs1をfs2に変換して出力する。後述の
通りクロック信号CK1はその周波数が細かく変動す
る、つまり多くのジッタを有した信号であり、その信号
に基づいて動作するDSP4出力もジッタを有してい
る。このFs変換器5はそのジッタを吸収し、マスタク
ロックに同期した信号を取り出すようにしたものであ
る。なお、すべてのブロックは、与えられたマスタクロ
ックに基づいて動作しているものとする。また、このよ
うに動作するFs変換器としては、例えば、株式会社ア
イエー出版発行のラジオ技術誌1993年12月号の1
73〜180ページに記載されている。
The Fs converter 5 converts the sampling frequency fs1 of the DSP4 output to fs2 based on the clock signal CK2 having the frequency ratio M1 and the sampling frequency fs2 provided from the frequency ratio detector 6, and outputs the fs2. As will be described later, the frequency of the clock signal CK1 varies finely, that is, a signal having a lot of jitter, and the DSP4 output operating based on the signal also has a jitter. The Fs converter 5 absorbs the jitter and extracts a signal synchronized with the master clock. It is assumed that all blocks are operating based on the given master clock. An Fs converter that operates in this manner is, for example, 1 in the December 1993 issue of Radio Technical Magazine published by AIA Publishing Co., Ltd.
It is described on pages 73-180.

【0013】再生時間検出器2は、FIFO1に入力さ
れていくデータ量をその再生可能時間で管理している。
ここではFIFO1に対して新たに1フレーム分のデー
タが入力されると、フレームパルスの情報を周波数比検
出器6に出力する。周波数比検出器6は、フレームパル
スとクロック発生器3が発生する基準信号となるクロッ
ク信号CK1に基づいて周波数比M1を検出する。この
値はFs変換器5出力におけるサンプリング周波数fs2
と送信側エンコーダの実際のサンプリング周波数との比
に相当する。
The reproduction time detector 2 manages the amount of data input to the FIFO 1 by the reproduction possible time.
Here, when one frame of data is newly input to the FIFO 1, the frame pulse information is output to the frequency ratio detector 6. The frequency ratio detector 6 detects the frequency ratio M1 based on the frame pulse and the clock signal CK1 which is a reference signal generated by the clock generator 3. This value is the sampling frequency fs2 at the output of Fs converter 5.
And the actual sampling frequency of the transmitter encoder.

【0014】周波数比検出方法を図2と共に説明する。
再生時間検出器2より与えられるフレームパルスの数を
カウンタ20が計測する。クロック発生器3が発生する
クロック信号CK1は、ここでは1フレームが1024
サンプルにデコードされるので、変換器29によって1
024クロック毎に1パルスが出力されるよう構成され
ている。カウンタ21が変換器29の出力を計測し、減
算器22を用いてカウンタ20の出力とカウンタ21の
出力の差Dを検出する。判定器23〜26により、差D
が6より大きいときは判定器23が“1”のパルスを出
力し、差Dが5より大きく6以下の時は判定器24が
“1”のパルスを出力し、差Dが2以上3未満の時は判
定器25が“1”のパルスを出力し、差Dが2より小さ
い時は判定器26が“1”のパルスを出力する。
The frequency ratio detecting method will be described with reference to FIG.
The counter 20 counts the number of frame pulses given by the reproduction time detector 2. The clock signal CK1 generated by the clock generator 3 is 1024 for one frame here.
1 is converted by the converter 29 as it is decoded into samples.
One pulse is output every 024 clocks. The counter 21 measures the output of the converter 29, and the subtracter 22 is used to detect the difference D between the output of the counter 20 and the output of the counter 21. The difference D is determined by the determiners 23 to 26.
Is greater than 6, the determiner 23 outputs a pulse of "1", and when the difference D is greater than 5 and is 6 or less, the determiner 24 outputs a pulse of "1", and the difference D is 2 or more and less than 3 When the difference D is smaller than 2, the determiner 25 outputs a pulse of "1" when the difference is smaller than 2.

【0015】レジスタ27には動作開始時に予め想定さ
れた周波数比M1が設定される。ここでは19ビットの
データで262144(218)を基準としている。仮
に、Fs変換器5によるサンプリング周波数変換後のサ
ンプリング周波数fs2が44.1kHzであり、入力させる
信号がそのヘッダにサンプリング周波数が48kHzとし
てあったとすると、レジスタ27の値は285327が
セットされる。一定時間毎に判定器23〜26出力をチ
ェックし、パルスが出力されているとそれに応じて格納
されている値に対して+2〜−2の値を加算する。
In the register 27, a frequency ratio M1 which is assumed in advance at the start of the operation is set. Here, 262144 (2 18 ) is used as the reference with 19-bit data. If the sampling frequency fs2 after the sampling frequency conversion by the Fs converter 5 is 44.1 kHz and the signal to be input has a sampling frequency of 48 kHz in its header, the value of the register 27 is set to 285327. The outputs of the determiners 23 to 26 are checked at regular time intervals, and if a pulse is output, the value of +2 to -2 is added to the value stored accordingly.

【0016】仮に送信側エンコーダの実際のサンプリン
グ周波数が正確に48kHzであったとすると、実際にF
IFO1に書き込まれるフレーム数はDSP4がFIF
O1より読み出すフレーム数は等しくなり、受信器7に
よって4フレーム分のデータが受信されるとDSP4が
データ要求を開始するのでフレーム数を計測しているカ
ウンタ20、21の値の差Dは常に4〜3の範囲に収ま
る。
If the actual sampling frequency of the transmitter encoder is exactly 48 kHz, the actual F
The number of frames written in IFO 1
The number of frames read from O1 becomes equal, and when the receiver 7 receives the data of four frames, the DSP 4 starts a data request, so the difference D between the values of the counters 20 and 21 for measuring the number of frames is always 4 Within the range of ~ 3.

【0017】しかし、送信側エンコーダの実際のサンプ
リング周波数が48kHzよりも少し高かったとすると、
実際にFIFO1に書き込まれるフレーム数はDSP4
がFIFO1より読み出すフレーム数より多くなるた
め、フレーム数を計測しているカウンタ20、21の値
の差Dは徐々に拡大し、5を超えると周波数比M1の値
が+1される。一定時間経過後、減算器22出力の変化
を判定器23〜26によってチェックし、差Dが拡大
し、6を超えていれば周波数比M1の値に対し、更に+
2加算する。差Dが5以下になるまでこの動作が繰り返
される。
However, if the actual sampling frequency of the transmitter encoder is slightly higher than 48 kHz,
The number of frames actually written in FIFO1 is DSP4
Is greater than the number of frames read from the FIFO 1, the difference D between the values of the counters 20 and 21 that measure the number of frames is gradually increased, and when it exceeds 5, the value of the frequency ratio M1 is incremented by one. After a lapse of a fixed time, the changes in the output of the subtractor 22 are checked by the determiners 23 to 26, and if the difference D increases and exceeds 6, the value of the frequency ratio M1 is further increased by +.
Add 2. This operation is repeated until the difference D becomes 5 or less.

【0018】逆に、送信側エンコーダの実際のサンプリ
ング周波数が48kHzよりも少し低い場合は、FIFO
1に書き込まれるフレーム数はDSP4がFIFO1よ
り読み出すフレーム数より少なくなるため、フレーム数
を計測しているカウンタ20、21の値の差Dは徐々に
縮小し、3を下回ると周波数比M1の値が1減じられ
る。一定時間経過後、減算器22出力の変化を判定器2
3〜26によってチェックし、差Dが更に小さくなり、
2未満になっていれば周波数比M1の値に対し、更に−
2される。差Dが3以上になるまでこの動作が繰り返さ
れる。
On the contrary, if the actual sampling frequency of the transmitter encoder is slightly lower than 48 kHz, the FIFO
Since the number of frames written in 1 is smaller than the number of frames read by the DSP 4 from the FIFO 1, the difference D between the values of the counters 20 and 21 measuring the number of frames is gradually reduced, and when it is less than 3, the value of the frequency ratio M1 is reduced. Is reduced by 1. After a certain period of time, the change of the output of the subtractor 22 is judged by the judging device
Check with 3 to 26, the difference D becomes smaller,
If it is less than 2, the value of the frequency ratio M1 is further reduced to −
2. This operation is repeated until the difference D becomes 3 or more.

【0019】以上のように動作することで、送信側エン
コーダの実際のサンプリング周波数が未知であっても、
また、送信側、受信側のサンプリング周波数が、例え
ば、温度ドリフト等によって変動しても常にそれらの変
化に追従した正しい周波数比M1が求められる。
By operating as described above, even if the actual sampling frequency of the transmitter encoder is unknown,
Further, even if the sampling frequencies on the transmitting side and the receiving side fluctuate due to temperature drift or the like, for example, the correct frequency ratio M1 that always follows these changes can be obtained.

【0020】クロック発生器3では周波数比M1に基づ
いてDSP4に対して送出するクロック信号CK1を発
生している。クロック信号CK1は巨視的に見てfs1と
等しい周波数を有すべく発生された信号であり、ここで
はマスタクロックを分周して得られる信号を用いてい
る。今、送信側のサンプリング周波数fs1とFs変換器
5出力のサンプリング周波数fs2との比が周波数比M1
であるので、マスタクロックに対するサンプリング周波
数fs2の分周比をR2、同じくクロック信号CK1の分
周比をR1とすると、所望の分周比R1の値は、R1=
R2×262144/M1(以下、式1とする)とな
る。しかし、分周比R1は整数値しか取り得ないので、
ここでは分周比R1を変動させ、巨視的に見て{R2×
262144/M1}に等しくなるようにしている。
The clock generator 3 generates a clock signal CK1 to be sent to the DSP 4 based on the frequency ratio M1. The clock signal CK1 is a signal generated macroscopically so as to have a frequency equal to fs1, and here, a signal obtained by dividing the master clock is used. Now, the ratio of the sampling frequency fs1 on the transmission side to the sampling frequency fs2 of the output of the Fs converter 5 is the frequency ratio M1.
Therefore, if the frequency division ratio of the sampling frequency fs2 to the master clock is R2 and the frequency division ratio of the clock signal CK1 is R1, the desired frequency division ratio R1 is R1 =
It becomes R2 × 262144 / M1 (hereinafter, referred to as Expression 1). However, since the division ratio R1 can take only an integer value,
Here, the frequency division ratio R1 is changed, and macroscopically {R2 ×
262144 / M1}.

【0021】この手法を図3とともに説明する。ここで
は送信側エンコーダのサンプリング周波数を48kHzと
想定しているので、周波数比M1:M2は28532
7:262144となる。また、サンプリング周波数fs
2はマスタクロックを256分周して得られているとす
る。即ち、分周比R2は256としている。
This method will be described with reference to FIG. Since the sampling frequency of the transmission side encoder is assumed to be 48 kHz here, the frequency ratio M1: M2 is 28532.
7: 262144. Also, the sampling frequency fs
2 is obtained by dividing the master clock by 256. That is, the frequency division ratio R2 is 256.

【0022】上述の式1より、分周比R1=235.2
であるが、分周比R1は整数値しか取れないので、送信
側のサンプリング周波数fs1が48kHzと推定された場合
には、R1=235、R2=256、M2=26214
4がステップ31で設定される。M1には周波数比検出
器6で得られた値がセットされる。通常285327付
近の値になる。また、位相差Sの値がクリアされる。
From the above equation 1, the frequency division ratio R1 = 235.2
However, since the division ratio R1 can take only an integer value, when the sampling frequency fs1 on the transmission side is estimated to be 48 kHz, R1 = 235, R2 = 256, M2 = 26214.
4 is set in step 31. The value obtained by the frequency ratio detector 6 is set in M1. Usually, the value is around 285327. Further, the value of the phase difference S is cleared.

【0023】ステップ32において、{(M1・R2−
M2・R1)+S}が計算され、位相差Sを更新する。
{(M1・R2−M2・R1)+S}の値は暫定的に決
定している分周比R1の値によって本来あるべきサンプ
リング周波数fs1の位相とどれだけずれているかを示す
ものである。位相差Sの極性、即ち、本来あるべき位相
より進んでいるのか遅れているのか、及び()内の値の
大小に応じて、ステップ33〜35によって4通りの処
理を行う。
In step 32, {(M1.R2-
M2 · R1) + S} is calculated, and the phase difference S is updated.
The value of {(M1 · R2−M2 · R1) + S} indicates how much the phase of the sampling frequency fs1 should deviate due to the provisionally determined value of the frequency division ratio R1. Depending on the polarity of the phase difference S, that is, whether it leads or lags the originally intended phase, and the magnitude of the value in (), four types of processing are performed in steps 33 to 35.

【0024】()内がプラスであり、位相差Sもプラス
である場合は、周波数が本来あるべき値よりも高く、ま
た、位相は本来あるべき位相よりも進んでいるので分周
比R1をプラス1して周波数を下げる(ステップ3
6)。
When the value in () is positive and the phase difference S is also positive, the frequency is higher than the original value and the phase is ahead of the original value. Add 1 to lower the frequency (step 3)
6).

【0025】()内がプラスであり、位相差Sはマイナ
スである場合は、周波数は本来あるべき値よりも高い
が、位相は本来あるべき位相よりも遅れているので元に
戻すために分周比R1をそのままにしておく(ステップ
34のNo)。
When the value in () is positive and the phase difference S is negative, the frequency is higher than the original value, but the phase lags behind the original value. The ratio R1 is left unchanged (No in step 34).

【0026】()内がマイナスであり、位相差Sもマイ
ナスである場合は、周波数が本来あるべき値よりも低
く、また、位相は本来あるべき位相よりも遅れているの
で分周比R1をマイナス1して周波数を上げる(ステッ
プ37)。
When the value in () is negative and the phase difference S is also negative, the frequency is lower than the original value, and the phase is behind the original phase. Decrease by 1 to increase the frequency (step 37).

【0027】()内がマイナスであり、位相差Sはプラ
スである場合は、周波数は本来あるべき値よりも低い
が、位相は本来あるべき位相よりも進んでいるので元に
戻すために分周比R1をそのままにしておく(ステップ
35のNo)。
When the value in () is negative and the phase difference S is positive, the frequency is lower than the original value, but since the phase is ahead of the original value, it is necessary to restore the original value. The ratio R1 remains unchanged (No in step 35).

【0028】このような処理を行うことで周波数比検出
器6により与えられる周波数比M1が変動しても、この
変動に追随して分周比R1が適切に設定される。
Even if the frequency ratio M1 given by the frequency ratio detector 6 fluctuates by performing such processing, the frequency division ratio R1 is set appropriately in accordance with this fluctuation.

【0029】ここで、クロック発生器3によるクロック
信号CK1について考えると、この信号はマスタクロッ
クを細かく変動する分周比で分周して得られるものであ
るので微視的に見ればその周波数は細かく変動、即ちジ
ッタを有している。しかし、周波数比M1によって定ま
る位相から大きくは外れないようになっているので、巨
視的に見れば正確に周波数比M1によって定まる周波数
となっている。このクロック信号CK1に基づいてDS
P4より出力された信号をFs変換器5によって所望の
サンプリング周波数fs2に変換するが、fs変換の基準と
なるクロック信号CK2はマスタクロックを固定値で分
周されたものであるので、ジッタの無い信号を得ること
ができる。
Here, considering the clock signal CK1 generated by the clock generator 3, since this signal is obtained by dividing the master clock with a dividing ratio that finely changes, its frequency is microscopically determined. It has fine fluctuations, that is, jitter. However, since it does not largely deviate from the phase determined by the frequency ratio M1, the frequency is accurately determined by the frequency ratio M1 from a macroscopic viewpoint. DS based on this clock signal CK1
The signal output from P4 is converted to a desired sampling frequency fs2 by the Fs converter 5, but since the clock signal CK2 that is the reference of fs conversion is the master clock divided by a fixed value, there is no jitter. You can get a signal.

【0030】以上のように、FIFO1における余裕度
をそのデータ量ではなく再生可能時間で管理し、その値
がほぼ一定となるように周波数比を設定することによ
り、転送レートが可変である場合であっても送信側にお
けるエンコーダのサンプリング周波数に同期してデコー
ド処理を行うことができ、しかも、直接周波数比を求め
ることができるので受信側において再生用のサンプリン
グ周波数を自由に設定することも可能となる。
As described above, the margin in the FIFO 1 is managed not by the data amount but by the reproducible time, and the frequency ratio is set so that the value becomes almost constant, whereby the transfer rate is variable. Even if there is, the decoding process can be performed in synchronization with the sampling frequency of the encoder on the transmitting side, and since the frequency ratio can be directly calculated, it is also possible to freely set the sampling frequency for reproduction on the receiving side. Become.

【0031】なお、上記の説明では周波数比を、262
144を基準とし、またサンプリング周波数fs2のマス
タクロックに対する分周比を256、1フレーム当たり
1024サンプルとしたが、無論この値に限ったもので
はない。また、FIFO1において4フレーム分のデー
タが蓄積されると、FIFO1は入力された順にデータ
出力を開始する、としたが、FIFO1の容量が大きい
場合には更に多くのデータを蓄積しても良い。要は入力
されるデータ量の変動によってアンダーフローを起こさ
ない程度に満たされていれば良いものである。
In the above description, the frequency ratio is 262.
Although 144 is used as a reference and the frequency division ratio of the sampling frequency fs2 to the master clock is 256, 1024 samples per frame, of course, it is not limited to this value. Further, when the data of four frames is accumulated in the FIFO1, the FIFO1 starts outputting the data in the input order, but if the capacity of the FIFO1 is large, more data may be accumulated. The point is that it should be satisfied to the extent that underflow does not occur due to fluctuations in the amount of input data.

【0032】また、上記実施の形態において、受信信号
再生方法を実現する一例として、受信信号再生装置とし
ての構成を示したが、本発明に係る方法は、ソフトウェ
アにより実施可能であることは言うまでもない。
In the above embodiment, the configuration of the received signal reproducing apparatus is shown as an example of realizing the received signal reproducing method, but it goes without saying that the method according to the present invention can be implemented by software. .

【0033】[0033]

【発明の効果】以上のように本発明によれば、送信され
る第1のサンプリング周波数を有する圧縮データを受信
し、FIFOに蓄積させる手段と、該FIFOより圧縮
データを読み出しデコードする手段と、FIFOに蓄積
されている圧縮データによる再生可能時間を検出する手
段と、該再生可能時間の変化に基づき、第1のサンプリ
ング周波数と実際に出力する第2のサンプリング周波数
の周波数比を検出する手段と、該周波数比に基づき第1
のサンプリング周波数に相当する基準信号を発生するク
ロック発生手段と、周波数比に基づきデコードする手段
の出力を第2のサンプリング周波数に変換するサンプリ
ングレート変換手段と、を備えるようにしたことによ
り、送信側におけるサンプリング周波数が未知であり、
しかも送信されて来るデータ量が一定しない場合であっ
ても正確に送信側におけるサンプリング周波数を推定し
て正しく再生できるという効果が得られる。
As described above, according to the present invention, means for receiving the compressed data having the first sampling frequency to be transmitted and storing it in the FIFO, and means for reading and decoding the compressed data from the FIFO, A means for detecting a reproducible time by the compressed data stored in the FIFO, and a means for detecting a frequency ratio between the first sampling frequency and the second sampling frequency to be actually output based on the change in the reproducible time. , The first based on the frequency ratio
By providing a clock generating means for generating a reference signal corresponding to the sampling frequency of S1 and a sampling rate converting means for converting the output of the means for decoding based on the frequency ratio into the second sampling frequency. The sampling frequency at is unknown,
Moreover, even if the amount of data transmitted is not constant, the sampling frequency on the transmission side can be accurately estimated and the reproduction can be performed correctly.

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

【図1】本発明の実施の形態による受信信号再生方法の
一構成例を示すブロック図
FIG. 1 is a block diagram showing a configuration example of a received signal reproducing method according to an embodiment of the present invention.

【図2】同実施の形態における周波数比検出器の構成を
示すブロック図
FIG. 2 is a block diagram showing a configuration of a frequency ratio detector according to the same embodiment.

【図3】同実施の形態におけるクロック発生器の動作を
示す流れ図
FIG. 3 is a flowchart showing the operation of the clock generator in the same embodiment.

【図4】従来の受信信号再生方法を説明するためのブロ
ック図
FIG. 4 is a block diagram for explaining a conventional received signal reproducing method.

【図5】データストリームを示す説明図FIG. 5 is an explanatory diagram showing a data stream.

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

1 FIFO 2 再生時間検出器 3 クロック発生器 4 DSP 5 Fs変換器 6 周波数比検出器 7 受信器 1 FIFO 2 Playback time detector 3 clock generator 4 DSP 5 Fs converter 6 Frequency ratio detector 7 receiver

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5D045 DA20 5K047 AA05 LL01 MM02 MM11 MM26 MM27 MM38 MM49 MM56 MM62   ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5D045 DA20                 5K047 AA05 LL01 MM02 MM11 MM26                       MM27 MM38 MM49 MM56 MM62

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 送信される第1のサンプリング周波数を
有する圧縮データを受信し、FIFOに蓄積させる手段
と、該FIFOより圧縮データを読み出しデコードする
手段と、前記FIFOに蓄積されている圧縮データによ
る再生可能時間を検出する手段と、該再生可能時間の変
化に基づき、前記第1のサンプリング周波数と実際に出
力する第2のサンプリング周波数の周波数比を検出する
手段と、該周波数比に基づき前記第1のサンプリング周
波数に相当する基準信号を発生するクロック発生手段
と、前記周波数比に基づき前記デコードする手段の出力
を第2のサンプリング周波数に変換するサンプリングレ
ート変換手段と、を備えることを特徴とする受信信号再
生方法。
1. A method for receiving compressed data having a first sampling frequency to be transmitted, storing the compressed data in a FIFO, reading the compressed data from the FIFO and decoding the compressed data, and compressing the compressed data stored in the FIFO. A means for detecting a reproducible time, a means for detecting a frequency ratio between the first sampling frequency and a second sampling frequency to be actually output based on a change in the reproducible time, and a means for detecting the frequency ratio based on the frequency ratio. Clock generating means for generating a reference signal corresponding to a sampling frequency of 1; and sampling rate converting means for converting an output of the decoding means into a second sampling frequency based on the frequency ratio. Receiving signal reproduction method.
【請求項2】 前記圧縮データがヘッダにより区切られ
た1フレームを単位とするデータであり、前記再生可能
時間を検出する手段が前記FIFOに蓄積されている圧
縮データのフレーム数を計測することによって再生可能
時間を検出する手段であることを特徴とする請求項1記
載の受信信号再生方法。
2. The compressed data is data in units of one frame delimited by a header, and the means for detecting the reproducible time measures the number of frames of the compressed data stored in the FIFO. 2. The received signal reproducing method according to claim 1, which is means for detecting a reproducible time.
【請求項3】 前記クロック発生手段は、マスタクロッ
クを分周して前記第1のサンプリング周波数を得るよう
にした手段であり、前記周波数比をM1:M2、前記第
1のサンプリング周波数のマスタクロックに対する分周
比をR1、前記第2のサンプリング周波数のマスタクロ
ックに対する分周比をR2としたとき、M1・R2とM
2・R1の大小関係に基づくアルゴリズムによって分周
比R1を決定するようにしたことを特徴とする請求項1
記載の受信信号再生方法。
3. The clock generating means is a means for dividing the master clock to obtain the first sampling frequency, and the frequency ratio is M1: M2, and the master clock having the first sampling frequency. Is R1 and the frequency division ratio of the second sampling frequency to the master clock is R2, M1.R2 and M1
The frequency division ratio R1 is determined by an algorithm based on the magnitude relationship of 2 · R1.
The received signal reproduction method described.
JP2002008392A 2002-01-17 2002-01-17 Received signal reproducing method Pending JP2003208200A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002008392A JP2003208200A (en) 2002-01-17 2002-01-17 Received signal reproducing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002008392A JP2003208200A (en) 2002-01-17 2002-01-17 Received signal reproducing method

Publications (1)

Publication Number Publication Date
JP2003208200A true JP2003208200A (en) 2003-07-25

Family

ID=27646667

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002008392A Pending JP2003208200A (en) 2002-01-17 2002-01-17 Received signal reproducing method

Country Status (1)

Country Link
JP (1) JP2003208200A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008159238A (en) * 2006-11-30 2008-07-10 Matsushita Electric Ind Co Ltd Voice data transmitting device and voice data receiving device
US8089837B2 (en) 2005-11-24 2012-01-03 Funai Electric Co., Ltd. Optical disk player

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8089837B2 (en) 2005-11-24 2012-01-03 Funai Electric Co., Ltd. Optical disk player
JP2008159238A (en) * 2006-11-30 2008-07-10 Matsushita Electric Ind Co Ltd Voice data transmitting device and voice data receiving device

Similar Documents

Publication Publication Date Title
JP4037361B2 (en) Bitstream conversion system
JP3655249B2 (en) Data receiving / reproducing method and data communication apparatus
JPH09275420A (en) Packet transmitting method
EP1724960A1 (en) Data reception device and data reception method
CN100411423C (en) Data synchronousely regenerating device and terminal device
EP1229690A1 (en) Data stream processing device and method, and program storage medium
JP6040220B2 (en) Adjusting the clock signal recovered from the data stream
JPH07254895A (en) Method and equipment for synchronization of bit stream
JP2007501428A (en) Buffer management system, digital audio receiver, headphones, speaker, buffer management method
EP2355387A1 (en) Sample rate converter for encoded data streams
US7158187B2 (en) Audio video reproduction apparatus, audio video reproduction method, program, and medium
JP3052824B2 (en) Audio playback time adjustment circuit
US6243032B1 (en) Decode apparatus that can accommodate dynamic change in sample data attribute during decoding process
JP2003208200A (en) Received signal reproducing method
JP3499818B2 (en) Time stamp offset adjusting method and packet transmission device using the same
JP2006135657A (en) Device and method for receiving data
US7274863B2 (en) Data stream processing device and method and program storage medium
JP4240880B2 (en) Reception signal reproduction method and reception signal reproduction apparatus
JP2004158925A (en) Digital data processing apparatus and digital data processing method
JP2004023136A (en) Digital broadcast receiver
JP2003258784A (en) Communication terminal with digital broadcasting receiving and reproducing function
JP2005303713A (en) Video and audio transmission system, video and audio transmitter, transmitter, video and audio receiver. and video and audio transmission method
JPH10336602A (en) Image and sound encoded data multiplexing method and device therefor
JP3165661B2 (en) Audio synchronized playback device
JPH11234634A (en) Data transmitter and data multiplexer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050117

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050704

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070112

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20070112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070220

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070410

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070612