[go: up one dir, main page]

JPH0736482A - Playback speed conversion method - Google Patents

Playback speed conversion method

Info

Publication number
JPH0736482A
JPH0736482A JP5176329A JP17632993A JPH0736482A JP H0736482 A JPH0736482 A JP H0736482A JP 5176329 A JP5176329 A JP 5176329A JP 17632993 A JP17632993 A JP 17632993A JP H0736482 A JPH0736482 A JP H0736482A
Authority
JP
Japan
Prior art keywords
data
level difference
register
value
reproduction speed
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.)
Withdrawn
Application number
JP5176329A
Other languages
Japanese (ja)
Inventor
Wataru Imatake
渉 今竹
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5176329A priority Critical patent/JPH0736482A/en
Publication of JPH0736482A publication Critical patent/JPH0736482A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

(57)【要約】 【目的】 本発明は、音声データを一定時間周期に区切
り、データを接合して再生速度を変換する再生速度変換
方法に関し、区切った音声データを接合する際に、区切
ったデータと反転したデータとのうちのレベル差の小さ
い方のデータを接合し、接合部の不連続性を少なくし、
ノイズを低減することを目的とする。 【構成】 音声データを一定時間周期に区切ったデータ
およびこのデータを反転した反転データと、接合しよう
とする直前のデータとのレベル差をそれぞれ算出し、レ
ベル差が小さい方のデータを接合することを繰り返し、
音声データの再生速度を変換するように構成する。
(57) [Abstract] [Object] The present invention relates to a reproduction speed conversion method of dividing audio data into a certain time period, and combining the data to convert a reproduction speed. The data with the smaller level difference between the data and the inverted data is joined to reduce the discontinuity at the joint,
The purpose is to reduce noise. [Constitution] To calculate the level difference between the data obtained by dividing the audio data into fixed time periods and the inverted data obtained by inverting this data, and joining the data with the smaller level difference, respectively. Repeat
It is configured to convert the reproduction speed of the audio data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、音声データを一定時間
周期に区切り、データを接合して再生速度を変換する再
生速度変換方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reproduction speed conversion method in which audio data is divided into fixed time periods and the data is combined to convert the reproduction speed.

【0002】[0002]

【従来の技術】従来、デジタル音声データの再生速度を
音程を変えずに変更する場合、デジタル音声データを一
定時間周期で区切り、区切られたデータを接続あるいは
挿入することによって行っていた。例えば図7の(a)
に示す元のデジタル音声データを一定時間周期で区切
り、1つ毎にデータを接合して図7の(b)のデジタル
音声データとし、再生速度を倍にしていた。逆に、再生
速度を遅くする場合、例えば図8の(a)の元のデジタ
ル音声データを一定時間周期に区切り、区切られたデー
タを繰り返して図7の(b)のデジタル音声データと
し、再生速度を半分に遅くしていた。
2. Description of the Related Art Conventionally, in the case of changing the reproduction speed of digital audio data without changing the pitch, the digital audio data is divided at a fixed time period, and the divided data is connected or inserted. For example, in FIG.
The original digital audio data shown in (4) is divided at a fixed time period and the data is joined one by one to obtain the digital audio data of FIG. 7B, and the reproduction speed is doubled. On the contrary, when the reproduction speed is slowed down, for example, the original digital audio data of (a) of FIG. 8 is divided into a certain period of time, and the divided data is repeated to be the digital audio data of (b) of FIG. I was slowing it in half.

【0003】図7は、従来の再生速度変換例(速くする
場合)を示す。図7の(a)は、元のデジタル音声デー
タを一定時間周期に区切った様子を示す。
FIG. 7 shows a conventional reproduction speed conversion example (in the case of increasing the speed). FIG. 7A shows a state in which the original digital audio data is divided into fixed time periods.

【0004】図7の(b)は、図7の(a)の区切った
データを1つ毎に接合して再生速度を倍にした様子を示
す。図8は、従来の再生速度変換例(遅くする場合)を
示す。
FIG. 7B shows a state in which the divided data of FIG. 7A is joined one by one to double the reproduction speed. FIG. 8 shows a conventional reproduction speed conversion example (when the reproduction speed is slowed).

【0005】図8の(a)は、元のデジタル音声データ
を一定時間周期に区切った様子を示す。図8の(b)
は、図8の(a)の区切ったデータを繰り返して再生速
度を半分に遅くした様子を示す。
FIG. 8A shows a state in which the original digital audio data is divided into fixed time periods. FIG. 8B
8 shows a state in which the segmented data of FIG. 8A is repeated to reduce the reproduction speed by half.

【0006】[0006]

【発明が解決しようとする課題】従来の図7や図8の再
生速度変換方法は、処理内容が簡単であるが、区切られ
たデータの接合部に不連続な部分が生じてしまい、実際
に再生速度を変更した後のデジタル音声データを聞いて
見ると、ノイズが目立つという問題があった。
Although the conventional reproduction speed conversion method shown in FIGS. 7 and 8 has a simple processing content, a discontinuous portion is generated at the joined portion of the separated data. When listening to the digital audio data after changing the playback speed, noise was noticeable.

【0007】このノイズを抑えるために、ローパスフィ
ルタなどを使用する場合もあるが、不連続な部分はイン
パルスと同様、全ての周波数を含むために効果的でない
という問題があった。
In order to suppress this noise, a low-pass filter or the like may be used, but there is a problem that the discontinuous portion is not effective because it contains all the frequencies, like the impulse.

【0008】本発明は、これらの問題を解決するため、
区切った音声データを接合する際に、区切ったデータと
反転したデータとのうちのレベル差の小さい方のデータ
を接合し、接合部の不連続性を少なくし、ノイズを低減
することを目的としている。
The present invention solves these problems by
When joining delimited audio data, the data with the smaller level difference between the delimited data and the inverted data is joined to reduce the discontinuity at the joint and reduce noise. There is.

【0009】[0009]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、データ反
転処理部3は、一定時間周期に区切ったデータを反転す
るものである。
[Means for Solving the Problems] Means for solving the problems will be described with reference to FIG. In FIG. 1, the data inversion processing unit 3 inverts data divided into fixed time periods.

【0010】レベル差算出部4は、一定時間周期に区切
ったデータおよびこのデータを反転した反転データと、
接合しようとする直前のデータとのレベル差を算出する
ものである。
The level difference calculation unit 4 stores data divided into fixed time periods and inverted data obtained by inverting this data,
The level difference from the data immediately before joining is calculated.

【0011】レベル差判定部5は、レベル差算出部4に
よって算出されたレベル差が小さい方のデータを判定す
るものである。
The level difference judging section 5 judges the data having the smaller level difference calculated by the level difference calculating section 4.

【0012】[0012]

【作用】本発明は、図1に示すように、データ反転処理
部3が一定時間周期に区切ったデータを反転し、レベル
差算出部4が一定時間毎に区切ったデータおよび反転さ
れた反転データと、接合しようとするデータとのレベル
差を算出し、レベル差判定部5がレベル差算出部4によ
って算出されたレベル差の小さい方のデータを判定し、
この判定されたデータと直前のデータとを接合して出力
することを繰り返し、音声データの再生速度を変換する
ようにしている。
According to the present invention, as shown in FIG. 1, the data inversion processing unit 3 inverts data divided into fixed time periods, and the level difference calculation unit 4 divides data into fixed intervals and inverted data. And a level difference from the data to be joined is calculated, and the level difference determination unit 5 determines the data having the smaller level difference calculated by the level difference calculation unit 4,
The determined data and the immediately preceding data are joined and output repeatedly to convert the reproduction speed of the audio data.

【0013】この際、音声データを一定時間周期に区切
ったデータについて、1つ毎あるいは複数毎に接合して
再生速度を速くするようにしている。また、音声データ
を一定時間周期に区切ったデータについて、同じデータ
を1回あるいは複数回、接合して再生速度を遅くするよ
うにしている。
At this time, the data obtained by dividing the audio data into fixed time periods are joined one by one or a plurality of times to increase the reproduction speed. Further, regarding the data obtained by dividing the audio data into a certain time period, the same data is joined once or a plurality of times to reduce the reproduction speed.

【0014】従って、一定時間周期に区切った音声デー
タを接合する際に、区切られたデータと反転したデータ
とのうちのレベル差の少ない方のデータを接合すること
により、接合部の不連続性を少なくし、ノイズを低減す
ることが可能となる。
Therefore, when the audio data divided into a fixed time period is combined, the data having the smaller level difference between the separated data and the inverted data is combined, so that the discontinuity of the connection portion becomes large. And noise can be reduced.

【0015】[0015]

【実施例】次に、図1から図6を用いて本発明の実施例
の構成および動作を順次詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the construction and operation of an embodiment of the present invention will be described in detail with reference to FIGS.

【0016】図1は、本発明の1実施例構成図を示す。
図1の(a)は、構成図を示す。図1の(a)におい
て、音声データ1は、再生速度の変換前のデジタルの音
声データを保存したものである。
FIG. 1 shows a block diagram of an embodiment of the present invention.
FIG. 1A shows a configuration diagram. In FIG. 1A, audio data 1 is digital audio data before conversion of reproduction speed.

【0017】データ読み込み部2は、音声データ1から
一定時間周期に区切ったデータを読み込むものである。
データ反転処理部3は、データ読み込み部2が読み込ん
だ一定時間周期に区切ったデータについて、その振幅方
向に反転した反転データを生成するものである。
The data reading unit 2 reads the data divided from the audio data 1 in a fixed time period.
The data inversion processing unit 3 generates the inversion data, which is the data read by the data reading unit 2 and which is divided into a certain time period, and which is inverted in the amplitude direction.

【0018】レベル差算出部4は、一定時間周期に区切
ったデータについて、接合しようとする直前のデータと
のレベル差(振幅差)を算出するものであって、レベル
差算出部(1)41およびレベル差算出部(2)42か
ら構成されるものである。
The level difference calculation unit 4 calculates the level difference (amplitude difference) from the data immediately before attempting to join the data divided into fixed time periods. The level difference calculation unit (1) 41 And a level difference calculation unit (2) 42.

【0019】レベル差算出部(1)41は、データ読み
込み部2によって読み込んだ一定時間周期に区切ったデ
ータと、接合しようとする直前のデータとのレベル差を
算出するものである。
The level difference calculation unit (1) 41 is for calculating the level difference between the data read by the data reading unit 2 and divided into fixed time periods, and the data immediately before joining.

【0020】レベル差算出部(2)42は、反転データ
と、接合しようとする直前のデータとのレベル差を算出
するものである。レベル差判定部5は、レベル差算出部
(1)41およびレベル差算出部(2)42によってそ
れぞれ算出されたレベル差のうち、小さい方のデータ
が、データ読み込み部2によって読み込んだ一定時間周
期に区切ったデータあるいはこれを反転した反転データ
のいずれかと判定するものである。レベル差が小さい方
のデータを、直前のデータに接合し、音声データ(変換
後)6として出力し、保存する。
The level difference calculation unit (2) 42 calculates the level difference between the inverted data and the data immediately before joining. The level difference determination unit 5 has a fixed time period in which the smaller data of the level differences calculated by the level difference calculation unit (1) 41 and the level difference calculation unit (2) 42 is read by the data reading unit 2. It is determined to be either the data delimited by the above or the inverted data obtained by inverting the data. The data with the smaller level difference is joined to the immediately preceding data, output as audio data (after conversion) 6, and stored.

【0021】以上によって、デジタル音声データを一定
時間毎に区切ったデータを読み込み、このデータと接合
しようとする直前のデータとのレベル差と、このデータ
を反転した反転データと接合しようとする直前のデータ
とのレベル差を比較して小さい方のデータを、直前のデ
ータと接合する。これにより、接合しようとする直前の
データと、レベル差が小さいデータあるいは反転データ
とを接合することにより、接合部における不連続性を小
さくし、ノイズレベルを低減することが可能となる。
As described above, the data obtained by dividing the digital audio data at regular time intervals is read, and the level difference between this data and the data immediately before attempting to join the data and the level difference immediately before attempting to join the inverted data obtained by inverting this data. The level difference from the data is compared, and the smaller data is joined to the immediately preceding data. This makes it possible to reduce discontinuity at the junction and reduce the noise level by joining the data immediately before joining and the data having a small level difference or the inverted data.

【0022】図1の(b)は、データ接合方法を示す。
ここで、横軸は時間を表し、縦軸は振幅を表す。Tiの
時刻のデータを直前のデータT(i−1)に接合しよう
とする場合、Tiの時刻の元と同じデータと、振幅方向
に反転した反転データと、接合しようとする直前のデー
タ(時刻T(i−1)のデータ)とのレベル差を求める
と、 ・元と同じデータと、直前のデータとの差はA(QとP
のレベル差A) ・反転データと、直前のデータとの差はB(RとPのレ
ベル差B) となる。ここでは、A>Bと判明し、小さいレベル差の
反転データを直前のデータと接合する。
FIG. 1B shows a data joining method.
Here, the horizontal axis represents time and the vertical axis represents amplitude. When joining the data of the time of Ti to the immediately preceding data T (i-1), the same data as the source of the time of Ti, the inversion data inverted in the amplitude direction, and the data immediately before the attempt to join (time The level difference with the data of T (i-1) is as follows: -The difference between the same data as the original and the immediately preceding data is A (Q and P
Level difference A) The difference between the inverted data and the immediately preceding data is B (level difference B between R and P). Here, it is found that A> B, and the inverted data having a small level difference is joined to the immediately preceding data.

【0023】以上によって、直前のデータと、元と同じ
データあるいは反転データのうちのレベル差が小さいデ
ータを接合することを繰り返し、データ接合を行なうこ
とにより、データの接合部の不連続性を低減でき、ノイ
ズレベルを小さくすることが可能となる。
As described above, the data immediately before and the data having the same level as the original data or the inverted data, which has a small level difference, are repeatedly joined to perform the data joining, thereby reducing the discontinuity of the joined portion of the data. Therefore, the noise level can be reduced.

【0024】次に、図2のフローチャートに示す順序に
従い、図1の構成における音声データの接合について詳
細に説明する。図2は、本発明の全体制御フローチャー
トを示す。
Next, the joining of the audio data in the configuration of FIG. 1 will be described in detail according to the order shown in the flowchart of FIG. FIG. 2 shows an overall control flowchart of the present invention.

【0025】図2において、S1は、アナログ音声デー
タをサンプリングし、そのデジタル値をメモリに格納す
る。S2は、再生速度を指定する。速い場合は1より大
の値を指定し、遅い場合は1より小さい値を指定する。
In FIG. 2, S1 samples analog voice data and stores the digital value in a memory. In S2, the reproduction speed is designated. A value larger than 1 is specified for fast, and a value smaller than 1 is specified for slow.

【0026】S3は、再生速度が速い(>1)あるいは
遅い(<1)か判別する。速い(>1)場合には、S4
で速度変換処理(速い)を実行し(図3)、デジタルの
音声データを1つ毎、あるいは複数毎に取り出して接合
を行ない、再生速度を速める。一方、遅い(<1)場合
には、S5で速度変換処理(遅い)を実行し(図4)、
デジタルの音声データを1回あるいは複数回、接合を行
い、再生速度を遅くする。
In step S3, it is determined whether the reproduction speed is fast (> 1) or slow (<1). If fast (> 1), S4
Then, speed conversion processing (fast) is executed (FIG. 3), digital audio data is taken out one by one or plural times and joined to perform a reproduction speed. On the other hand, if it is slow (<1), the speed conversion process (slow) is executed in S5 (FIG. 4),
Digital audio data is spliced once or multiple times to slow down the playback speed.

【0027】S6は、接合後の音声データを出力する。
以上によって、再生速度を速い(>1)あるいは再生速
度を遅い(<1)を指定したことに対応して、デジタル
の一定時間周期に区切った音声データについて、1つ毎
あるいは複数毎に取り出してレベル差の少ないデータあ
るいは反転データとの接合を行い、再生速度を速めた
り、音声データについて1つあるいは複数同じデータを
繰り返し、この際にレベル差の少ないデータあるいは反
転データとの接合を行い、再生速度を遅くしたりする。
これらにより、接合部のレベル差を小さくし、ノイズレ
ベルを低減することが可能となる。以下順次詳細に説明
する。
In step S6, the voice data after joining is output.
As described above, in response to designation of a high reproduction speed (> 1) or a low reproduction speed (<1), audio data divided into digital constant time periods are extracted one by one or a plurality of times. Data with little level difference or inverted data is spliced to increase the playback speed, and one or more same data with audio data are repeated, and at this time, data with little level difference or inverted data is spliced and played. Slow down or
As a result, it is possible to reduce the level difference at the joint and reduce the noise level. The details will be sequentially described below.

【0028】図3は、本発明の速度変換処理(速くす
る)フローチャートを示す。ここで、レジスタは下記を
表す。 レジスタA:出力データの最後の値を格納するレジスタ
である(接合しようとする直前の音声データを格納する
レジスタ) レジスタB:読み込んだデータの値を格納するレジスタ
である。
FIG. 3 shows a speed conversion processing (acceleration) flowchart of the present invention. Here, the register represents the following. Register A: a register that stores the last value of output data (register that stores audio data immediately before attempting to join) Register B: a register that stores the value of the read data.

【0029】レジスタC:振幅方向に反転した反転デー
タを格納するレジスタである。図3において、S11
は、レジスタAを0に初期化する。S12は、テジタル
音声データを1ブロック分、バッファに読み込む。
Register C: A register for storing inverted data inverted in the amplitude direction. In FIG. 3, S11
Initializes register A to 0. In S12, one block of digital audio data is read into the buffer.

【0030】S13は、データ終了か判別する。YES
の場合(データの終了によってS12の読み込みが失敗
した場合)には、終了する。一方、NOの場合には、S
14に進む。
In step S13, it is determined whether the data has ended. Yes
In the case of (when the reading of S12 fails due to the end of data), the process ends. On the other hand, if NO, S
Proceed to 14.

【0031】S14は、スキップするデータか判別す
る。YESの場合には、スキップするデータであって、
接合する対象のデータでないので、S12に戻る。NO
の場合には、S15に進む。
In S14, it is determined whether the data is skipped. If YES, the data is skipped,
Since it is not the data to be joined, the process returns to S12. NO
In the case of, it progresses to S15.

【0032】S15は、バッファの先頭の値をレジスタ
Bに記憶する。S16は、レジスタAの値とレジスタB
の値が等しいか判別する。これは、レジスタAに保存さ
れている出力データの最後の値(接合しようとする直前
のデータの値)と、レジスタBに格納した読み込んだ最
初の値とが等しい(=レベル差が零)か判別する。YE
Sの場合には、S21で読み込んだデータを出力し、S
22で出力データの最後の値をレジスタAに保存し、S
12に戻る。一方、S16のNOの場合には、S17に
進む。
In step S15, the value at the head of the buffer is stored in the register B. S16 is the value of register A and register B
Determine if the values of are equal. This is because the last value of the output data stored in the register A (the value of the data immediately before trying to join) is equal to the first value read in the register B (= the level difference is zero). Determine. YE
In the case of S, the data read in S21 is output, and S
At 22, the last value of the output data is saved in register A and S
Return to 12. On the other hand, if NO in S16, the process proceeds to S17.

【0033】S17は、S16のNOで、読み込んだレ
ジスタBに保存した値と、レジスタAの値とが等しくな
いと判明したので、レジスタBの値を振幅方向に反転
し、レジスタCに記憶する。
In S17, since the value stored in the read register B is not equal to the value stored in the register A in NO in S16, the value of the register B is inverted in the amplitude direction and stored in the register C. .

【0034】S18は、レジスタAの値と、レジスタC
の値とが等しいか判別する。これは、レジスタAに保存
されている出力データの最後の値(接合しようとする直
前のデータの値)と、レジスタCに格納した反転データ
の最初の値とが等しい(=レベル差が零)か判別する。
YESの場合には、S21で反転データを出力し、S2
2で出力データの最後の値をレジスタAに保存し、S1
2に戻る。一方、S18のNOの場合には、S19に進
む。
In S18, the value of register A and the value of register C
It is determined whether the value of is equal to. This is because the last value of the output data stored in the register A (the value of the data immediately before trying to join) is equal to the first value of the inverted data stored in the register C (= the level difference is zero). Determine whether.
In the case of YES, the inverted data is output in S21 and S2 is output.
The last value of the output data is saved in register A in 2 and S1
Return to 2. On the other hand, if NO in S18, the process proceeds to S19.

【0035】S19は、|C−A|>|B−A|か判別
する。これは、(反転データ)と(接合しようとする直
前のデータの値)のレベル差の絶対値|C−A|が、
(読み込んだ最初のデータの値)と(接合しようとする
直前のデータの値)のレベル差の絶対値|B−A|より
も大きいか判別する。YESの場合には、S21でレベ
ル差が小さい読み込んだデータを出力し、S22で出力
データの最後の値をレジスタAに保存し、S12に戻
る。一方、NOの場合には、S20でレベル差が小さい
反転データを出力し、S22で出力データの最後の値を
レジスタAに保存し、S12に戻る。
In step S19, it is determined whether or not | C-A |> | B-A |. This is because the absolute value | C-A | of the level difference between (reversed data) and (value of data immediately before attempting to join) is
It is determined whether or not it is larger than the absolute value | B-A | of the level difference between (the value of the first data read) and (the value of the data immediately before joining). In the case of YES, the read data having a small level difference is output in S21, the last value of the output data is stored in the register A in S22, and the process returns to S12. On the other hand, in the case of NO, inverted data having a small level difference is output in S20, the last value of the output data is stored in the register A in S22, and the process returns to S12.

【0036】以上によって、読み込んだデータの最初の
値をレジスタBに保存したり、反転したデータの最初の
値をレジスタCに保存したり、前回の出力データの最後
の値をレジスタAに保存したりし、これらを比較し、 レジスタAの値≡レジスタBの値のとき、あるいは
|C−A|>|B−A|のとき、読み込んだデータを接
合する。
As described above, the first value of the read data is stored in the register B, the first value of the inverted data is stored in the register C, and the last value of the previous output data is stored in the register A. However, these are compared, and when the value of the register A is equal to the value of the register B or | C−A |> | B−A |, the read data are joined.

【0037】 レジスタAの値≡レジスタCの値のと
き、あるいは|C−A|<|B−A|のとき、反転デー
タを接合する。 これらにより、読み込んだデータあるいは反転データの
うち、接合したときのレベル差が小さい方を選択して接
合することにより、接合部のレベル差を小さくし、ノイ
ズレベルを低減して速度を速くすることが可能となる。
When the value of the register A is equal to the value of the register C, or when | C−A | <| B−A |, the inverted data is joined. With these, by selecting one of the read data or inverted data that has the smallest level difference at the time of joining, and joining it, the level difference at the joint can be made smaller, the noise level can be reduced, and the speed can be increased. Is possible.

【0038】図4は、本発明の速度変換処理(遅くす
る)フローチャートを示す。ここで、レジスタは下記を
表す。 レジスタA:出力データの最後の値を格納するレジスタ
である(接合しようとする直前の音声データを格納する
レジスタ) レジスタB:読み込んだデータの値を格納するレジスタ
である。
FIG. 4 shows a flow chart of the speed conversion process (slow down) of the present invention. Here, the register represents the following. Register A: a register that stores the last value of output data (register that stores audio data immediately before attempting to join) Register B: a register that stores the value of the read data.

【0039】レジスタC:振幅方向に反転した反転デー
タを格納するレジスタである。図4において、S31
は、レジスタAを0に初期化する。S32は、テジタル
音声データを1ブロック分、バッファに読み込む。
Register C: A register for storing inverted data inverted in the amplitude direction. In FIG. 4, S31
Initializes register A to 0. In S32, one block of digital audio data is read into the buffer.

【0040】S33は、データ終了か判別する。YES
の場合(データの終了によってS32の読み込みが失敗
した場合)には、終了する。一方、NOの場合には、S
34に進む。
In step S33, it is determined whether the data has ended. Yes
In the case of (when the reading of S32 fails due to the end of the data), the processing ends. On the other hand, if NO, S
Proceed to 34.

【0041】S34は、バッファの先頭の値をレジスタ
Bに記憶する。S35は、レジスタAの値とレジスタB
の値が等しいか判別する。これは、レジスタAに保存さ
れている出力データの最後の値(接合しようとする直前
のデータの値)と、レジスタBに格納した読み込んだ最
初の値とが等しい(=レベル差が零)か判別する。YE
Sの場合には、S40で読み込んだデータを出力し、S
41で出力データの最後の値をレジスタAに保存し、S
42に進む。一方、S35のNOの場合には、S36に
進む。
In S34, the value at the head of the buffer is stored in the register B. S35 is the value of register A and register B
Determine if the values of are equal. This is because the last value of the output data stored in the register A (the value of the data immediately before trying to join) is equal to the first value read in the register B (= the level difference is zero). Determine. YE
In the case of S, the data read in S40 is output, and S
The last value of the output data is stored in register A at 41, and S
Proceed to 42. On the other hand, in the case of NO in S35, the process proceeds to S36.

【0042】S36は、S35のNOで、読み込んだレ
ジスタBに保存した値と、レジスタAの値とが等しくな
いと判明したので、レジスタBの値を振幅方向に反転
し、レジスタCに記憶する。
In S36, since the value stored in the read register B and the value in the register A are not equal to each other in NO in S35, the value in the register B is inverted in the amplitude direction and stored in the register C. .

【0043】S37は、レジスタAの値と、レジスタC
の値とが等しいか判別する。これは、レジスタAに保存
されている出力データの最後の値(接合しようとする直
前のデータの値)と、レジスタCに格納した反転データ
の最初の値とが等しい(=レベル差が零)か判別する。
YESの場合には、S39でバッファのデータを振幅方
向に反転し、S40でブロックのデータを出力し、S4
1で出力データの最後の値をレジスタAに保存し、S4
2に進む。一方、S37のNOの場合には、S38に進
む。
In S37, the value of register A and the value of register C
It is determined whether the value of is equal to. This is because the last value of the output data stored in the register A (the value of the data immediately before trying to join) is equal to the first value of the inverted data stored in the register C (= the level difference is zero). Determine whether.
If YES, the buffer data is inverted in the amplitude direction in S39, the block data is output in S40, and S4 is output.
The last value of the output data is saved in register A by 1 and S4
Go to 2. On the other hand, if NO in S37, the process proceeds to S38.

【0044】S38は、|C−A|>|B−A|か判別
する。これは、(反転データ)と(接合しようとする直
前のデータの値)のレベル差の絶対値|C−A|が、
(読み込んだ最初のデータの値)と(接合しようとする
直前のデータの値)のレベル差の絶対値|B−A|より
も大きいか判別する。YESの場合には、S40でブロ
ックのデータを出力し、S41で出力データの最後の値
をレジスタAに保存し、S42に進む。一方、NOの場
合には、S39でバッファのデータを振幅方向に反転
し、S40でブロックのデータを出力し、S41で出力
データの最後の値をレジスタAに保存し、S42に進
む。
In step S38, it is determined whether or not | C-A |> | B-A |. This is because the absolute value | C-A | of the level difference between (reversed data) and (value of data immediately before attempting to join) is
It is determined whether or not it is larger than the absolute value | B-A | of the level difference between (the value of the first data read) and (the value of the data immediately before joining). If YES, the block data is output in S40, the last value of the output data is stored in the register A in S41, and the process proceeds to S42. On the other hand, in the case of NO, the data in the buffer is inverted in the amplitude direction in S39, the block data is output in S40, the last value of the output data is stored in the register A in S41, and the process proceeds to S42.

【0045】S42は、ブロックの出力終了か判別す
る。これは、指定された再生速度に応じてバッファの出
力が終了したかを判定、例えば元のデータに対して半分
の再生速度が指定されたときに1つのバッファを2度出
力したかを判定する。YESの場合には、終了したの
で、S32に戻る。NOの場合には、終了していないの
で、S34に戻る。
A step S42 decides whether or not the output of the block is completed. This determines whether the output of the buffer is completed according to the specified reproduction speed, for example, whether one buffer is output twice when half the reproduction speed of the original data is specified. . In the case of YES, the process is finished, and the process returns to S32. In the case of NO, since it has not ended, the process returns to S34.

【0046】以上によって、読み込んだデータの最初の
値をレジスタBに保存したり、反転したデータの最初の
値をレジスタCに保存したり、前回の出力データの最後
の値をレジスタAに保存したりし、これらを比較し、 レジスタAの値≡レジスタBの値のとき、あるいは
|C−A|>|B−A|のとき、読み込んだデータを指
定された回数だけ接合する。
As described above, the first value of the read data is stored in the register B, the first value of the inverted data is stored in the register C, and the last value of the previous output data is stored in the register A. However, these are compared, and when the value of the register A is equal to the value of the register B, or when | CA->> | BA-, the read data is joined a specified number of times.

【0047】 レジスタAの値≡レジスタCの値のと
き、あるいは|C−A|<|B−A|のとき、反転デー
タを指定された回数だけ接合する。 これらにより、読み込んだデータあるいは反転データの
うち、接合したときのレベル差が小さい方を選択して指
定された回数だけ接合することにより、接合部のレベル
差を小さくし、ノイズレベルを低減して速度を遅くする
ことが可能となる。
When the value of the register A is equal to the value of the register C, or when | C−A | <| B−A |, the inverted data is joined a specified number of times. With these, the read data or the inverted data, whichever has the smallest level difference when joined, is selected and joined a specified number of times to reduce the level difference at the joint and reduce the noise level. It is possible to slow down the speed.

【0048】図5は、本発明の再生速度変換例(速くす
る場合)を示す。この再生速度変換例は、再生速度を2
倍に変換した例を示す。横軸は時間を表し、縦軸は振幅
を表す。
FIG. 5 shows an example of reproducing speed conversion (for increasing speed) of the present invention. This playback speed conversion example sets the playback speed to 2
An example of double conversion is shown below. The horizontal axis represents time and the vertical axis represents amplitude.

【0049】図5の(a)は、元のデータ(オリジナル
データ)を示す。図5の(b)は、再生速度を2倍に速
くした例を示す。これは、図5の(a)のオリジナルデ
ータを1つおきに、オリジナルデータあるいはこのオリ
ジナルデータの反転データのうちの、直前のデータとの
レベル差が小さいものを選択したものである。ここで、
反転と記載した部分が、反転データを接合したものであ
る。
FIG. 5A shows original data (original data). FIG. 5B shows an example in which the reproduction speed is doubled. In this case, every other original data shown in FIG. 5A, the original data or the inverted data of this original data, which has a small level difference from the immediately preceding data, is selected. here,
The part described as inversion is a combination of inversion data.

【0050】以上のように、再生速度を速くする場合
に、オリジナルのデジタルデータを一定時間周期に区切
り、区切ったデータをここでは1つおきに接合する際
に、直前のデータとのレベル差が小さいオリジナルのデ
ータのそのままあるいは反転した反転データのいずれか
を選択して接合する。これにより、接合時に不連続な部
分が生じる頻度と、不連続な部分のレベルが下がり、ノ
イズレベルを低減できる。
As described above, when the reproduction speed is increased, the original digital data is divided into a certain time period, and when the divided data is joined every other here, the level difference from the immediately preceding data is generated. Either the small original data as it is or the inverted data that has been inverted is selected and joined. As a result, the frequency of discontinuity at the time of joining and the level of the discontinuity are lowered, and the noise level can be reduced.

【0051】図6は、本発明の再生速度変換例(遅くす
る場合)を示す。この再生速度変換例は、再生速度を1
/2倍に変換した例を示す。横軸は時間を表し、縦軸は
振幅を表す。
FIG. 6 shows an example of reproduction speed conversion of the present invention (when it is slowed down). This playback speed conversion example sets the playback speed to 1
An example of conversion to / 2 is shown. The horizontal axis represents time and the vertical axis represents amplitude.

【0052】図5の(a)は、元のデータ(オリジナル
データ)を示す。図5の(b)は、再生速度を1/2倍
に遅くした例を示す。これは、図6の(a)のオリジナ
ルデータあるいはこのオリジナルデータの反転データの
うちの、直前のデータとのレベル差が小さいものを選択
して2回接合したものである。
FIG. 5A shows original data (original data). FIG. 5B shows an example in which the reproduction speed is reduced to 1/2. This is one in which the original data of FIG. 6A or the inverted data of this original data, which has a small level difference from the immediately preceding data, is selected and joined twice.

【0053】以上のように、再生速度を遅くする場合
に、オリジナルのデジタルデータを一定時間周期に区切
り、区切ったデータを接合する際に、直前のデータとの
レベル差が小さいオリジナルのデータのそのままあるい
は反転した反転データのいずれかを選択して例えば2回
接合する。これにより、接合時に不連続な部分が生じる
頻度と、不連続な部分のレベルが下がり、ノイズレベル
を低減できる。
As described above, when the reproduction speed is slowed down, the original digital data is divided into a certain time period, and when the divided data are joined, the original data having a small level difference from the immediately preceding data is kept as it is. Alternatively, one of the inverted data which has been inverted is selected and joined twice, for example. As a result, the frequency of discontinuity at the time of joining and the level of the discontinuity are lowered, and the noise level can be reduced.

【0054】[0054]

【発明の効果】以上説明したように、本発明によれば、
一定時間周期に区切った音声データを接合する際に、直
前のデータと区切られたデータあるいは反転したデータ
のうちのレベル差の小さい方のデータを接合して再生速
度を速くしたり、遅くしたりする構成を採用しているた
め、接合部の不連続性な部分が発生する頻度を少なくす
ると共に不連続な部分のレベルが下がり、ノイズを低減
することができる。
As described above, according to the present invention,
When synthesizing audio data that has been segmented into fixed time periods, the data that has the smaller level difference between the immediately preceding data and the segmented or inverted data can be spliced to speed up or slow down the playback speed. By adopting the configuration described above, it is possible to reduce the frequency of occurrence of discontinuous portions of the joint portion, reduce the level of the discontinuous portions, and reduce noise.

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

【図1】本発明の1実施例構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】本発明の全体制御フローチャートである。FIG. 2 is an overall control flowchart of the present invention.

【図3】本発明の速度変換処理(速くする)フローチャ
ートである。
FIG. 3 is a flow chart of speed conversion processing (speeding up) of the present invention.

【図4】本発明の速度変換処理(遅くする)フローチャ
ートである。
FIG. 4 is a speed conversion processing (slowing) flowchart of the present invention.

【図5】本発明の再生速度変換例(速くする場合)であ
る。
FIG. 5 is an example of reproduction speed conversion (when increasing the speed) of the present invention.

【図6】本発明の再生速度変換例(遅くする場合)であ
る。
FIG. 6 is an example of reproduction speed conversion (when slowing down) according to the present invention.

【図7】従来の再生速度変換例(速くする場合)であ
る。
FIG. 7 is an example of a conventional reproduction speed conversion (when increasing the speed).

【図8】従来の再生速度変換例(遅くする場合)であ
る。
FIG. 8 is an example of a conventional reproduction speed conversion (when it is slowed down).

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

1、6:音声データ 2:データ読み込み部 3:データ反転処理部 4、41、42:レベル差算出部 5:レベル差判定部 1, 6: Audio data 2: Data reading unit 3: Data inversion processing unit 4, 41, 42: Level difference calculation unit 5: Level difference determination unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】音声データを一定時間周期に区切り、デー
タを接合して再生速度を変換する再生速度変換方法にお
いて、 音声データを一定時間周期に区切ったデータおよびこの
データを反転した反転データと、接合しようとするデー
タとのレベル差をそれぞれ算出し、レベル差が小さい方
のデータを接合することを繰り返し、音声データの再生
速度を変換するように構成したことを特徴とする再生速
度変換方法。
1. A reproduction speed conversion method for dividing audio data into fixed time periods, joining the data, and converting the reproduction speed, wherein the audio data is divided into constant time periods, and inverted data obtained by inverting the data. A reproduction speed conversion method, characterized in that the reproduction speed of audio data is converted by repeating the calculation of the level difference from the data to be combined and combining the data with the smaller level difference.
【請求項2】上記音声データを一定時間周期に区切った
データについて、1つ毎あるいは複数毎に接合して再生
速度を速くするように構成したことを特徴とする請求項
1記載の再生速度変換方法。
2. The reproduction speed conversion according to claim 1, wherein the data obtained by dividing the audio data into a predetermined time period is joined one by one or a plurality of times to increase the reproduction speed. Method.
【請求項3】上記音声データを一定時間周期に区切った
データについて、同じデータを1回あるいは複数回、接
合して再生速度を遅くするように構成したことを特徴と
する請求項1記載の再生速度変換方法。
3. The reproduction according to claim 1, characterized in that, with respect to data obtained by dividing the audio data into a certain time period, the same data is joined once or a plurality of times to reduce the reproduction speed. Speed conversion method.
JP5176329A 1993-07-16 1993-07-16 Playback speed conversion method Withdrawn JPH0736482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5176329A JPH0736482A (en) 1993-07-16 1993-07-16 Playback speed conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5176329A JPH0736482A (en) 1993-07-16 1993-07-16 Playback speed conversion method

Publications (1)

Publication Number Publication Date
JPH0736482A true JPH0736482A (en) 1995-02-07

Family

ID=16011692

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5176329A Withdrawn JPH0736482A (en) 1993-07-16 1993-07-16 Playback speed conversion method

Country Status (1)

Country Link
JP (1) JPH0736482A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009175440A (en) * 2008-01-24 2009-08-06 Sega Corp Sound reproducing device and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009175440A (en) * 2008-01-24 2009-08-06 Sega Corp Sound reproducing device and program

Similar Documents

Publication Publication Date Title
US5952596A (en) Method of changing tempo and pitch of audio by digital signal processing
EP1276241A1 (en) Compression method and device, decompression method and device, compression/decompression system, and recorded medium
CA2271463C (en) Sound processing method, sound processor, and recording/reproduction device
JPH0562495A (en) Sampling frequency converter
EP1367724A1 (en) Method and apparatus for compression, method and apparatus for decompression, compression/decompression system, recored medium
JPH0736482A (en) Playback speed conversion method
US5621851A (en) Method of expanding differential PCM data of speech signals
JP2001136073A (en) Compression method and device, compression and expansion system, and recording medium
JP2002217740A (en) Compression method and device, expansion method and device, companding system, and recording medium
WO1998044730A1 (en) Recording and reproducing device and method for reproducing video information at variable speed
JP3147562B2 (en) Audio speed conversion method
JPS6029800A (en) Voice analysis system
JP2624538B2 (en) Audio synchronization method for television format conversion
JP2596349B2 (en) Compression rate adjustment method
JP4392560B2 (en) Image processing apparatus and method, and recording medium
JPH0636462A (en) Digital signal recording and reproducing device
JP3875201B2 (en) Data playback method
JPS63125073A (en) Characteristic correcting device
JP2684820B2 (en) Surround circuit
JPH11501785A (en) Digital to analog converter
JPH10282991A (en) Speech rate converting device
JP2778415B2 (en) Distortion effect device
JPS62217730A (en) Frequency companding method
JPS59162595A (en) Musical tone sythesizer
JPH06150579A (en) Digital data reproducing method and digital data reproducing apparatus

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20001003