JPH06104849A - Voice sampler - Google Patents

Voice sampler

Info

Publication number
JPH06104849A
JPH06104849A JP25105492A JP25105492A JPH06104849A JP H06104849 A JPH06104849 A JP H06104849A JP 25105492 A JP25105492 A JP 25105492A JP 25105492 A JP25105492 A JP 25105492A JP H06104849 A JPH06104849 A JP H06104849A
Authority
JP
Japan
Prior art keywords
voice
data
resolution
bit
conversion
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
JP25105492A
Other languages
Japanese (ja)
Inventor
Hidenori Hayashi
秀則 林
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 System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP25105492A priority Critical patent/JPH06104849A/en
Publication of JPH06104849A publication Critical patent/JPH06104849A/en
Pending legal-status Critical Current

Links

Landscapes

  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To provide the voice sampler using a dynamic range of a voice coding and decoding device fully and implementing voice sampling without distortion. CONSTITUTION:A voice input section of the voice sampler is provided with an A/D converter 12 having a higher resolution than that of input output data of a voice coder 16 and a voice decoder 18, after voice data are sampled and stored once in a memory 13, the resolution of the data is converted into a resolution in matching with the voice coder 16 in the input stage to the voice coder 16. Thus, the dynamic range of the resolution of input output data in the voice coding device and a voice decoding device is fully used and no distortion is caused to sample the voice signal.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は音声サンプル装置、特に
音声符号化及び復号化器のダイナミックレンジをフルに
使い、しかも歪のない音声サンプリングが行なえる音声
サンプル装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a speech sampler, and more particularly to a speech sampler which makes full use of the dynamic range of a speech coder / decoder and is capable of distortion-free speech sampling.

【0002】[0002]

【従来の技術】従来、この種の音声サンプル装置として
は図5に示すようなものがある。この音声サンプル装置
は、音声信号を入力する音声入力端子1と、入力される
音声のアナログ信号をMビットの分解能でデジタル・デ
ータに変換するMビットA/D変換器2と、Mビット長
のリニアPCM音声データを入力としその符号化を行な
うMビット長ワード入力音声符号化器3と、符号化され
た音声データを蓄積する符号メモリ4と、符号化された
音声データをMビット長のリニアPCM音声データに復
号化するMビット長ワード出力音声復号化器5と、Mビ
ットの分解能のデジタル・データをアナログ信号に変換
するMビットD/A変換器6と、音声信号の出力を行な
う音声出力端子7と、キーを有し各種指令が入力される
操作部8と、これらの統合的な制御を行なう制御部9と
を有し、操作部8を介して音声のサンプリングの起動が
行なわれると、音声入力端子1を通して入力されたアナ
ログ音声信号がMビットA/D変換器2にてMビットの
分解能でA/D変換されてMビット長のリニアPCM音
声データに変換された後、この音声データがMビット長
ワード入力音声符号化器3に入力されて符号化された
後、符号メモリ4に蓄積されて音声サンプリングが行な
われ、また操作部8を介して音声の再生の起動が行なわ
れると、符号メモリ4に蓄積された符号が読み出されて
Mビット長ワード出力音声復号化器5に入力されて音声
の復号化が行なわれ、復元されたMビット長のリニアP
CM音声データがMビットのD/A変換器6に入力され
ることによりサンプリングされた音声の再生が行なわれ
ていた。
2. Description of the Related Art Conventionally, there is an audio sampler of this type as shown in FIG. This audio sampler includes an audio input terminal 1 for inputting an audio signal, an M-bit A / D converter 2 for converting an analog signal of an input audio into digital data with a resolution of M bits, and an M-bit length. Linear PCM audio data is input to encode the M-bit length word input audio encoder 3, a code memory 4 that stores the encoded audio data, and encoded audio data is an M bit long linear encoder. M-bit length word output voice decoder 5 for decoding into PCM voice data, M-bit D / A converter 6 for converting digital data with M-bit resolution into an analog signal, and voice for outputting voice signal An output terminal 7, an operation unit 8 having keys for inputting various commands, and a control unit 9 for performing integrated control of these are provided, and voice sampling is started via the operation unit 8. Then, the analog audio signal input through the audio input terminal 1 is A / D converted by the M-bit A / D converter 2 with M-bit resolution and converted into linear PCM audio data of M-bit length. After that, this voice data is input to the M-bit long word input voice encoder 3 and encoded, and then stored in the code memory 4 for voice sampling, and the voice is reproduced via the operation unit 8. Upon activation, the code stored in the code memory 4 is read out and input to the M-bit length word output voice decoder 5 to decode the voice, and the restored linear P of M-bit length is output.
The CM voice data is input to the M-bit D / A converter 6 to reproduce the sampled voice.

【0003】ここで、Mは正の整数であり、また音声符
号化器3/音声復号化器5における符号化/復号化アル
ゴリズムは例えばADPCM方式等であるが、リニアP
CM音声データを入出力するものであればこれに限定さ
れず、さらにリニアPCM音声データそのものを符号メ
モリに格納するPCM方式も含まれる。ここで、前記P
CMとは、Pulse Code Modulatio
nを示す。また、ADPCMとはAdaptive D
ifferential Pulse CodeMod
ulationを示す。
Here, M is a positive integer, and the encoding / decoding algorithm in the speech encoder 3 / speech decoder 5 is, for example, the ADPCM system, but the linear P
The present invention is not limited to this as long as the CM voice data is input and output, and the PCM method of storing the linear PCM voice data itself in the code memory is also included. Where P
CM is Pulse Code Modulatio
n is shown. In addition, ADPCM is Adaptive D
differential Pulse CodeMod
indicates the ration.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の音声サンプル装置にあっては、音声入力時の
A/D変換器2の分解能が音声符号化器3及び音声復号
化器5における入出力データの分解能と同一であるた
め、入力音声信号の振幅が小さい場合にはS/N比が低
下し、また入力音声信号の振幅が大きい場合には歪が発
生してしまうため、音声符号化器3及び音声復号化器5
における入出力データの分解能のダイナミク・レンジを
フルに使いきり、且つ歪が発生しないように音声信号の
サンプリングを行なうことが困難であるという問題があ
った。
However, in such a conventional voice sampling device, the resolution of the A / D converter 2 at the time of voice input is set in the voice encoder 3 and the voice decoder 5. Since the resolution is the same as the resolution of the output data, the S / N ratio decreases when the amplitude of the input audio signal is small, and distortion occurs when the amplitude of the input audio signal is large. 3 and speech decoder 5
There is a problem that it is difficult to sample the audio signal so that the dynamic range of the resolution of the input / output data is fully used and the distortion does not occur.

【0005】また、従来の音声サンプル装置では、入力
される音声の+方向の振幅と−方向の振幅の差が大きい
場合、過大入力に対する歪を避けるためには+又は−の
振幅の大きい一方の方向の入力レベルに合わせて入力レ
ベルを設定しなければならないため、音声符号化器3及
び音声復号化器5における入出力データの分解能のダイ
ナミック・レンジは+又は−の片方向のみしか使いきれ
ず、音声符号化器3及び音声復号化器5における入出力
データの分解能のダイナミック・レンジを+方向、−方
向ともフルに生かしきり、かつ歪が発生しないように音
声信号のサンプリングを行なうことができずS/N比の
低下を招いたり或いは歪を発生してしまうという不具合
があった。
Further, in the conventional voice sampling apparatus, when the difference between the amplitude in the + direction and the amplitude in the-direction of the input voice is large, one of the large + or-amplitude is used in order to avoid distortion due to excessive input. Since the input level must be set according to the input level in the direction, the dynamic range of the resolution of the input / output data in the voice encoder 3 and the voice decoder 5 can be used only in one direction of + or −. , The voice encoder 3 and the voice decoder 5 can fully utilize the dynamic range of the resolution of input / output data in both the + direction and the-direction, and can sample a voice signal so that no distortion occurs. However, there is a problem that the S / N ratio is lowered or distortion is generated.

【0006】本発明は前記問題点に鑑みてなされたもの
で、その目的は、音声符号化及び復号化器のダイナミッ
クレンジをフルに使い、しかも歪のない音声サンプリン
グが行なえる音声サンプル装置を提供することである。
The present invention has been made in view of the above problems, and an object thereof is to provide an audio sample apparatus which can fully use the dynamic range of an audio encoder / decoder and can perform audio sampling without distortion. It is to be.

【0007】[0007]

【課題を解決するための手段】本発明は、前記目的を達
成するため、音声サンプル装置に、アナログ音声信号を
Nビットの分解能でA/D変換する手段と、このA/D
変換器から出力されるNビットの分解能のデータを格納
する記憶手段と、定数をNビットの分解能のデータに乗
算することによりNビット分解能からMビット分解能へ
のデータ変換を行なう分解能変換手段とを設けたことを
要旨とする。
In order to achieve the above-mentioned object, the present invention provides a voice sampling device for A / D converting an analog voice signal with N-bit resolution, and the A / D converter.
A storage means for storing N-bit resolution data output from the converter, and a resolution conversion means for converting data from N-bit resolution to M-bit resolution by multiplying N-bit resolution data by a constant. The main point is the provision.

【0008】また本願第2の発明は、音声サンプル装置
に、アナログ音声信号をNビットの分解能でA/D変換
する手段と、このA/D変換器から出力されるNビット
の分解能のデータを格納する記憶手段と、前記記憶手段
に格納されたNビット分解能のデータに対し振幅の±方
向で最大振幅がほぼ同一となるように変換した後Nビッ
ト分解能からMビット分解能へのデータ変換を行なう音
声データ変換手段とを設けたことを要旨とする。
According to a second aspect of the present invention, means for A / D converting an analog voice signal with N-bit resolution, and N-bit resolution data output from the A / D converter are provided to a voice sampling device. The storage means for storing the data and the N-bit resolution data stored in the storage means are converted so that the maximum amplitude becomes substantially the same in the ± direction of the amplitude, and then the data conversion from the N-bit resolution to the M-bit resolution is performed. The gist is that a voice data conversion means is provided.

【0009】[0009]

【作用】前記構成により、入力音声信号は先ずA/D変
換手段によりNビットの分解能でA/D変換され、一旦
記憶手段に格納される。その後A/D変換されたNビッ
トの分解能のデータに或る定数が乗算され、前記データ
はNビット分解能からMビット分解能へデータ変換され
る。そして、この分解能変換を行なった後のデータを符
号化手段により符号化する。 本願第2の発明では、入
力音声信号は先ずA/D変換手段によりNビットの分解
能でA/D変換され、一旦記憶手段に格納される。その
後、このデータに対 し、音声データ変換が手段振幅の
±方向で最大振幅がほぼ同一となるように変換し、Nビ
ット分解能からMビット分解能へのデータ変換を行な
う。そして、この分解能変換を行なった後のデータを符
号化手段により符号化する。
With the above construction, the input audio signal is first A / D converted by the A / D conversion means with N-bit resolution and temporarily stored in the storage means. After that, the A / D-converted N-bit resolution data is multiplied by a certain constant, and the data is converted from the N-bit resolution to the M-bit resolution. Then, the data after this resolution conversion is encoded by the encoding means. In the second invention of the present application, the input audio signal is first A / D converted by the A / D conversion means with N-bit resolution and temporarily stored in the storage means. Thereafter, this data is converted so that the maximum amplitude becomes substantially the same in the ± direction of the amplitude of the means, and the data conversion from N-bit resolution to M-bit resolution is performed. Then, the data after this resolution conversion is encoded by the encoding means.

【0010】[0010]

【実施例】図1及び図2は本願第1発明による音声サン
プル装置の一実施例を示す図である。図1において、符
号11は音声信号を入力する音声入力端子、12は入力
される音声のアナログ信号をNビットの分解能でデジタ
ル・データに変換する手段であるNビットA/D変換
器、13はA/D変換されたNビット分解能の音声デー
タを格納するA/Dデータ記憶メモリ、14はA/Dデ
ータ記憶メモリ13に蓄積されたデータの中で絶対値が
最大であるデータの検出を行なう最大絶対値検出部、1
5はA/Dデータ記憶メモリ13内に記憶された1ワー
ドがNビット構成のデータを読み出して1ワードがMビ
ット構成のデータに変換するN−Mビットデータ変換
部、16はMビット長のリニアPCM音声データを入力
としその符号化を行なうMビット長ワード入力音声符号
化器、17は符号化された音声データを蓄積する符号メ
モリ、18は符号化された音声データをMビット長のリ
ニアPCM音声データに復号化するMビット長ワード出
力音声復号化器、19はMビットの分解能のデジタル・
データをアナログ信号に変換するMビットD/A変換
器、20は音声信号の出力を行なう音声出力端子、21
はキーを有しオペレータの操作を受け付けて各種指令が
入力される操作部、22は以上の各機能部を統合的に制
御する制御部である。
1 and 2 are views showing an embodiment of a voice sampling apparatus according to the first invention of the present application. In FIG. 1, reference numeral 11 is an audio input terminal for inputting an audio signal, 12 is an N-bit A / D converter which is a means for converting an analog signal of an input audio into digital data with N-bit resolution, and 13 is An A / D data storage memory for storing A / D-converted audio data of N-bit resolution, and 14 detects data having the maximum absolute value among the data stored in the A / D data storage memory 13. Maximum absolute value detector, 1
Reference numeral 5 is an NM bit data conversion unit for reading out data of one word stored in the A / D data storage memory 13 and having N bits, and converting one word into data having M bits. Linear PCM M-bit word input voice encoder for inputting and encoding voice data, 17 is a code memory for accumulating the encoded voice data, 18 is a linear encoder of M-bit length for the encoded voice data M bit length word output voice decoder for decoding into PCM voice data, 19 is a digital decoder with M bit resolution
An M-bit D / A converter for converting data into an analog signal, 20 is an audio output terminal for outputting an audio signal, 21
Reference numeral 22 denotes an operation unit that has keys and receives various commands when an operator operates, and 22 is a control unit that integrally controls the above-described functional units.

【0011】以上のように構成された音声サンプル装置
について以下動作を説明する。はじめに音声サンプリン
グ/符号化時の動作について説明すると、先ず、操作部
21を介して音声のサンプリングの開始要求が行なわれ
ると、制御部22はNビットA/D変換器12を起動
し、入力された音声信号はNビットA/D変換器12に
よりNビットの分解能でデジタル・データに変換されて
A/Dデータ記憶メモリ13に順次格納される。この動
作は、次に操作部21を介して音声のサンプリングの停
止要求が行なわれるまで継続する。
The operation of the voice sampler configured as above will be described below. First, the operation at the time of voice sampling / encoding will be described. First, when a voice sampling start request is made through the operation unit 21, the control unit 22 activates the N-bit A / D converter 12 and receives the input. The audio signal is converted into digital data by the N-bit A / D converter 12 with N-bit resolution and sequentially stored in the A / D data storage memory 13. This operation continues until the next voice sampling stop request is issued via the operation unit 21.

【0012】そして、操作部21を介して音声のサンプ
リングの停止要求が行なわれると、制御部22はこの音
声のサンプリング動作を中断し、次に最大絶対値検出部
14に起動をかけてA/Dデータ記憶メモリ13に蓄積
されたサンプリング・データ中の絶対値が最大の値の検
出を行なう。ここで検出された絶対値の最大値MAXn
をもとに、制御部12は、Mビットで表現できる最大の
絶対値をMAXmとしたとき、 MAXm/MAXn の値(以下、この値をMULという)を計算し、 N−M (ビット) のデータ変換部15に対してMULをセットしてその起
動を行なうと共に、Mビット長ワード入力音声符号化器
16の起動も行なう。
When a voice sampling stop request is issued via the operation unit 21, the control unit 22 interrupts the voice sampling operation, and then activates the maximum absolute value detection unit 14 for A / A conversion. The maximum absolute value in the sampling data accumulated in the D data storage memory 13 is detected. Maximum value MAXn of the absolute value detected here
Based on, when the maximum absolute value that can be represented by M bits is MAXm, the control unit 12 calculates a value of MAXm / MAXn (hereinafter, this value is referred to as MUL), and calculates NM (bits). The MUL is set in the data conversion unit 15 and activated, and at the same time, the M-bit long word input speech encoder 16 is activated.

【0013】N−Mビットデータ変換部15が起動され
ると、A/Dデータ記憶メモリ13から1ワードNビッ
ト幅のA/Dデータが1ワードづつ順次読み出されてM
UL倍された後Mビット長ワード入力音声符号化器16
に入力される。Mビット長ワード入力音声符号化器16
では、Mビット幅のリニアA/Dデータを入力とする音
声の符号化が行なわれて生成された符号化データは符号
メモリ17に蓄積される。
When the NM bit data conversion unit 15 is activated, A / D data of 1 word N bit width is sequentially read from the A / D data storage memory 13 word by word, and M
UL-multiplied M-bit word input speech coder 16
Entered in. M-bit long word input speech coder 16
Then, the encoded data generated by encoding the audio with the input of the linear A / D data having the M bit width is stored in the code memory 17.

【0014】以上のようにして、音声のサンプリング及
び符号化が行なわれる。このときのN−Mビットデータ
変換部15での変換前後の音声データの概念図を音声波
形で示したものが図2である。
As described above, the voice is sampled and coded. FIG. 2 shows a conceptual diagram of the audio data before and after conversion in the N-M bit data conversion unit 15 at this time with an audio waveform.

【0015】次に、音声の復号化及び再生時の動作につ
いて説明する。操作部21を介して音声の再生開始要求
が行なわれると、制御部22はMビット長ワード出力音
声復号化器18、及びMビットD/A変換器19を起動
し、符号メモリ17に蓄積された音声の符号データは読
み出されてMビット長ワード出力音声復号化器18に入
りMビットのリニア・データに復号化された後、Mビッ
トD/A変換器19によりD/A変換されて音声の再生
が行なわれる。
Next, the operation at the time of decoding and reproducing the voice will be described. When a voice reproduction start request is issued via the operation unit 21, the control unit 22 activates the M-bit long word output voice decoder 18 and the M-bit D / A converter 19, and is stored in the code memory 17. The encoded voice data is read out, enters the M-bit long word output voice decoder 18, is decoded into M-bit linear data, and is then D / A converted by the M-bit D / A converter 19. The voice is reproduced.

【0016】ここで、M及びNは正の整数で且つ、M<
Nであり、またMビット長ワード入力音声符号化器16
の符号化アルゴリズム及びMビット長ワード出力音声復
号化器18の復号化アルゴリズムは、例えばADPCM
方式等であるが、リニアPCM音声データ処理装置を入
出力とするものであれば、この方式に限定されず、さら
にリニアPCM音声データそのものを符号メモリに格納
するPCM方式も含まれる。
Here, M and N are positive integers, and M <
N and M bit word input speech coder 16
And the decoding algorithm of the M-bit long word output speech decoder 18 is, for example, ADPCM.
The method is not limited to this method as long as the linear PCM audio data processing device is used as an input / output, and a PCM method of storing linear PCM audio data itself in a code memory is also included.

【0017】さらに、この実施例ではNビットからMビ
ットへの音声データの変換を、 MUL=MAXm/MAXn なる値をNビットデータに乗算することによって行なっ
ているが、MAXnの有効MSB(1であるビットのう
ち最上位のビット)位置を、Mビットの2の補数表現で
の正の最大値の最上位ビット位置になるように、各Nビ
ットデータを算術計算により右へシフトすることも可能
である。
Further, in this embodiment, the conversion of the audio data from N bits to M bits is performed by multiplying the N bit data by the value MUL = MAXm / MAXn. It is also possible to shift each N-bit data to the right by arithmetic calculation so that the position of the most significant bit of a certain bit) becomes the most significant bit position of the maximum positive value in the 2's complement representation of M bits. Is.

【0018】図3及び図4は本願第2発明による音声サ
ンプル装置の一実施例を示す図である。図3において、
符号31は音声信号を入力する音声入力端子、22は入
力される音声のアナログ信号をNビットの分解能でデジ
タル・データに変換する手段であるNビットA/D変換
器、33はNビットA/D変換器32によってNビット
の分解能でデジタル・データに変換された音声データを
格納するA/Dデータ記憶メモリ、34はA/Dデータ
記憶メモリ33内に蓄積されたデータ中の最大値の検出
を行なう最大値検出部、35はA/Dデータ記憶メモリ
33内に蓄積されたデータ中の最小値の検出を行なう最
小値検出部、36は入力されるデータに対し、定数の加
算処理を行なって出力する定数加算器、37は入力され
るデータ列に対して直流除去のデジタル・フィルタリン
グ処理を行なう直流除去デジタル・フィルター、38は
入力されるデータに対して定数の乗算処理を行なって1
ワードの有効ビット長をNビットからMビットに変換し
て出力する定数乗算器、である。また、符号39はMビ
ット長のリニアPCM音声データを入力としその符号化
を行なうMビット長ワード入力音声符号化器、40は符
号化された音声データを蓄積する符号メモリ、41は符
号化された音声データをMビット長のリニアPCM音声
データに復号化するMビット長ワード出力音声復号化
器、42はMビットの分解能のデジタル・データをアナ
ログ信号に変換するMビットD/A変換器、43は音声
信号の出力を行なう音声出力端子、44はキーを有しオ
ペレータの操作を受け付けて各種指令が入力される操作
部、45は以上の各機能部を統合的に制御する制御部で
ある。
FIGS. 3 and 4 are views showing an embodiment of a voice sampling device according to the second invention of the present application. In FIG.
Reference numeral 31 is an audio input terminal for inputting an audio signal, 22 is an N-bit A / D converter which is a means for converting an analog signal of the input audio into digital data with N-bit resolution, and 33 is an N-bit A / D converter. A / D data storage memory for storing voice data converted into digital data by the D converter 32 with N-bit resolution, and 34 for detecting the maximum value in the data stored in the A / D data storage memory 33. A maximum value detecting unit 35 for detecting the minimum value in the data stored in the A / D data storage memory 33, and a minimum value detecting unit 36 for adding a constant to the input data. Is a constant adder for outputting, and 37 is a direct current removing digital filter for performing a direct current removing digital filtering process on the input data string, and 38 is input data 1 performs a process of multiplying a constant for
A constant multiplier that converts the effective bit length of a word from N bits to M bits and outputs the result. Further, reference numeral 39 is an M-bit length word input voice encoder for inputting M-bit length linear PCM voice data, 40 is a code memory for accumulating the encoded voice data, and 41 is an encoder. M-bit word output voice decoder for decoding the voice data into M-bit linear PCM voice data, 42 is an M-bit D / A converter for converting M-bit resolution digital data into an analog signal, Reference numeral 43 is a voice output terminal for outputting a voice signal, 44 is an operation unit which has a key and receives various commands by receiving an operation of an operator, and 45 is a control unit which integrally controls the above functional units. .

【0019】以上のように構成された音声サンプル装置
について以下動作を説明する。はじめに音声サンプリン
グ/符号化時の動作について説明すると、先ず、操作部
44を介して音声のサンプリングの開始要求が行なわれ
ると、制御部45はNビットA/D変換器32を起動
し、音声入力端子31から入力された音声信号はNビッ
トA/D変換器32によりNビットの分解能でデジタル
・データに変換されてA/Dデータ記憶メモリ33に順
次格納される。この動作は、次に操作部44を介して音
声のサンプリングの停止要求が行なわれるまで継続す
る。
The operation of the voice sampler configured as described above will be described below. First, the operation at the time of voice sampling / encoding will be described. First, when a voice sampling start request is made via the operation unit 44, the control unit 45 activates the N-bit A / D converter 32 and inputs voice. The audio signal input from the terminal 31 is converted into digital data by the N-bit A / D converter 32 with N-bit resolution and sequentially stored in the A / D data storage memory 33. This operation continues until the next voice sampling stop request is issued via the operation unit 44.

【0020】そして、操作部44を介して音声のサンプ
リングの停止要求が行なわれると、制御部45はこの音
声のサンプリング動作を中断し、次に最大値検出部34
及び最小値検出部35に起動をかけてA/Dデータ記憶
メモリ33に蓄積されたサンプリング・データ中の最大
値と最小値の検出を行なう。ここで検出された最大値M
AXnと最小値MINnをもとに、制御部45は、 OFFSET=(MAXn+MINn)/2 を計算して、定数加算器36に対して−OFFSETを
セットする。また、Mビットで表現できる最大の絶対値
をMAXmとしたとき、 MUL=MAXm/(MAXn−OFFSET) の値を計算して定数乗算器38に対してMULをセット
する。その後、制御部45は、定数加算器36、直流除
去デジタル・フィルター37、定数乗算器38、及びM
ビット長ワード入力音声符号化器39の起動を行なう。
When a voice sampling stop request is issued via the operation unit 44, the control unit 45 interrupts the voice sampling operation, and then the maximum value detection unit 34.
Also, the minimum value detection unit 35 is activated to detect the maximum value and the minimum value in the sampling data accumulated in the A / D data storage memory 33. Maximum value M detected here
Based on AXn and the minimum value MINn, the control unit 45 calculates OFFSET = (MAXn + MINn) / 2 and sets -OFFSET to the constant adder 36. Further, when the maximum absolute value that can be represented by M bits is MAXm, the value of MUL = MAXm / (MAXn-OFFSET) is calculated and MUL is set in the constant multiplier 38. After that, the control unit 45 controls the constant adder 36, the direct-current removal digital filter 37, the constant multiplier 38, and M.
The bit length word input speech coder 39 is activated.

【0021】定数加算器36、直流除去デジタル・フィ
ルター37、定数乗算器38、及びMビット長ワード入
力音声符号化器39が起動されると、A/Dデータ記憶
メモリ33から1ワードNビット幅のA/Dデータが1
ワードづつ順次読み出されて定数加算器36に入り、−
OFFSETが加算される。次に直流除去デジタル・フ
ィルター37を通って直流成分が除去された後、定数乗
算器38によりMUL倍されて1ワードの有効ビットが
NビットからMビット変換された後、Mビット長ワード
入力音声符号化器39に入力される。Mビット長ワード
入力音声符号化器39では、Mビット幅のリニアA/D
データを入力とする音声の符号化が行なわれて生成され
た符号化データは符号メモリ40に蓄積される。
When the constant adder 36, the DC removal digital filter 37, the constant multiplier 38, and the M-bit-length word input speech encoder 39 are activated, the A / D data storage memory 33 stores one word N-bit width. A / D data of 1
Words are sequentially read and entered into the constant adder 36, −
OFFSET is added. Next, after the DC component is removed through the DC removal digital filter 37, it is MUL-multiplied by the constant multiplier 38 to convert the effective bits of one word from N bits to M bits, and then the M bit long word input voice. It is input to the encoder 39. In the M-bit long word input speech coder 39, a linear A / D having an M-bit width is used.
Encoded data generated by encoding voice with data as input is stored in the code memory 40.

【0022】以上のようにして、音声のサンプリング及
び符号化が行なわれる。このときのA/Dデータ記憶メ
モリ33上の音声データ(変換前)とMビット長ワード
入力音声符号化器39に入力される音声データ(変換
後)の概念図を音声波形で示したものが図4である。
As described above, the voice is sampled and encoded. A voice waveform is a conceptual diagram of the voice data (before conversion) on the A / D data storage memory 33 at this time (before conversion) and the voice data (after conversion) input to the M-bit long word input voice encoder 39. It is FIG.

【0023】次に、音声の復号化及び再生時の動作につ
いて説明する。操作部44を介して音声の再生開始要求
が行なわれると、制御部45はMビット長ワード出力音
声復号化器41、及びMビットD/A変換器42を起動
し、符号メモリ40に蓄積された音声符号データは読み
出されてMビット長ワード出力音声復号化器41に入り
Mビットのリニア・データに復号化された後、Mビット
D/A変換器42によりD/A変換されて音声の再生が
行なわれる。
Next, the operation at the time of decoding and reproducing the voice will be described. When a voice reproduction start request is issued via the operation unit 44, the control unit 45 activates the M-bit long word output voice decoder 41 and the M-bit D / A converter 42 and is stored in the code memory 40. The voice code data is read out, enters the M-bit length word output voice decoder 41, is decoded into M-bit linear data, and is D / A converted by the M-bit D / A converter 42 to output the voice. Is played.

【0024】ここで、M及びNの関係、及びMビット長
ワード入力音声符号化器とMビット長ワード出力音声復
号化器18のアルゴリズムに関しては、前記第1の実施
例について述べたのと同様である。
Here, regarding the relationship between M and N, and the algorithms of the M-bit long word input speech encoder and the M-bit long word output speech decoder 18, they are the same as those described in the first embodiment. Is.

【0025】[0025]

【発明の効果】以上説明したように、本発明によれば、
音声入力時に音声符号化器及び音声復号化器における入
出力データの分解能よりも高い分解能のA/D変換器で
音声データをサンプリングして一旦メモリに蓄積した
後、音声符号化器に入力する段階でデータの分解能を音
声符号化器に合う分解能に変換するようにしたため、大
きい振幅の音声入力信号に対してマージンをもって入力
レベルの設定を行なった場合でも入力音声信号の振幅が
小さい場合のS/N比の低下を招くことがなくなる。ま
た、音声符号化器及び音声復号化器における入出力デー
タの分解能のダイナミック・レンジをフルに使い、且つ
歪が発生しないようにして音声信号のサンプリングが行
なえる。
As described above, according to the present invention,
When voice is input, the voice data is sampled by an A / D converter having a resolution higher than the resolution of input / output data in the voice encoder and the voice decoder, temporarily stored in a memory, and then input to the voice encoder. Since the data resolution is converted to a resolution suitable for the voice encoder in S, even if the input level is set with a margin for a voice input signal with a large amplitude, the S / The N ratio is not lowered. In addition, the voice signal can be sampled by making full use of the dynamic range of the resolution of the input / output data in the voice encoder and the voice decoder and without causing distortion.

【0026】また、第2発明では、前記と同様、音声デ
ータをA/Dデータ記憶メモリに蓄積した後、+方向と
−方向とで最大振幅が同一となるように音声データに対
して演算を行なった後、音声符号化器に入力する段階で
データの分解能を音声符号化器に合う分解能に変換する
ことによって、音声符号化器及び音声復号化器における
入出力データの分解能のダイナミック・レンジを+方
向、−方向ともフルに生かし、且つ歪が発生しないよう
にして音声信号のサンプリングが行なえるため、入力さ
れる音声の+方向の振幅と−方向の振幅の差が大きい場
合でもS/N比の低下或いは歪を招くことなく音声信号
のサンプリングが行なえるという効果が得られる。
In the second aspect of the invention, similarly to the above, after the voice data is stored in the A / D data storage memory, the voice data is calculated so that the maximum amplitude is the same in the + direction and the-direction. After that, the dynamic range of the resolution of the input and output data in the speech coder and the speech decoder is converted by converting the resolution of the data into the resolution suitable for the speech coder at the stage of inputting to the speech coder. Since the voice signal can be sampled by making full use of both + and − directions and without causing distortion, the S / N ratio is large even when the difference between the + direction amplitude and the − direction amplitude of the input voice is large. The effect that the audio signal can be sampled without lowering the ratio or causing distortion is obtained.

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

【図1】本願第1発明による音声サンプル装置の一実施
例を示すブロック図
FIG. 1 is a block diagram showing an embodiment of a voice sampling device according to the first invention of the present application.

【図2】前記実施例におけるN−Mビットデータ変換の
前後の音声データを示す概念図
FIG. 2 is a conceptual diagram showing audio data before and after NM bit data conversion in the embodiment.

【図3】本願第2発明による音声サンプル装置の一実施
例を示すブロック図
FIG. 3 is a block diagram showing an embodiment of a voice sampling device according to the second invention of the present application.

【図4】前記実施例におけるA/Dデータ記憶メモリ上
の音声データ(変換前)とMビット長ワード入力音声符
号化器に入力される音声データ(変換後)の概念図
FIG. 4 is a conceptual diagram of voice data (before conversion) on an A / D data storage memory and voice data (after conversion) input to an M-bit word input voice encoder in the above embodiment.

【図5】従来の音声サンプル装置の一例を示すブロック
FIG. 5 is a block diagram showing an example of a conventional voice sampling device.

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

11、31 音声入力端子 12、32 NビットA/D変換器 13、33 A/Dデータ記憶メモリ 14 最大絶対値検出部 15 N−Mビットデータ変換部 16、39 Mビット長ワード入力音声符号化器 17、40 符号メモリ 18、41 Mビット長ワード出力音声復号化器 19、42 MビットD/A変換器 20、43 音声出力端子 21、44 操作部 22、45 制御部 34 最大値検出部 35 最小値検出部 36 定数加算器 37 直流除去デジタル・フィルター 38 定数乗算器 11, 31 voice input terminal 12, 32 N-bit A / D converter 13, 33 A / D data storage memory 14 maximum absolute value detection unit 15 NM bit data conversion unit 16, 39 M-bit long word input voice encoding Device 17, 40 Code memory 18, 41 M-bit long word output audio decoder 19, 42 M-bit D / A converter 20, 43 Audio output terminal 21, 44 Operation unit 22, 45 Control unit 34 Maximum value detection unit 35 Minimum value detector 36 Constant adder 37 DC removal digital filter 38 Constant multiplier

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 アナログ音声信号をNビットの分解能で
A/D変換する手段と、このA/D変換手段から出力さ
れるNビットの分解能のデータを格納する記憶手段と、
Mビット(M<N)の分解能のA/D変換後のデータを
入力とする音声符号化手段と、定数をNビットの分解能
のデータに乗算することによりNビット分解能からMビ
ット分解能へのデータ変換を行なう分解能変換手段とを
有し、入力音声信号をNビットの分解能でA/D変換
後、一旦記憶手段に蓄積後、前記分解能変換手段により
NビットからMビットへのデータの分解能変換を行なっ
て前記音声符号化手段により音声信号を符号化すること
を特徴とする音声サンプル装置。
1. A means for A / D converting an analog audio signal with a resolution of N bits, and a storage means for storing data of a resolution of N bits output from the A / D conversion means.
Data from N-bit resolution to M-bit resolution by multiplying N-bit resolution data by a voice encoding means that inputs data after A / D conversion with M-bit (M <N) resolution A resolution conversion means for performing conversion, and A / D-converts the input audio signal with a resolution of N bits, temporarily stores it in the storage means, and then performs resolution conversion of data from N bits to M bits by the resolution conversion means. A voice sample device characterized in that the voice signal is encoded by the voice encoding means.
【請求項2】 アナログ音声信号をNビットの分解能で
A/D変換する手段と、このA/D変換手段から出力さ
れるNビットの分解能のデータを格納する記憶手段と、
Mビット(M<N)の分解能のA/D変換後のデータを
入力とする音声符号化手段と、前記記憶手段に格納され
たNビット分解能のデータに対し振幅の±方向で最大振
幅がほぼ同一となるように変換した後Nビット分解能か
らMビット分解能へのデータ変換を行なう音声データ変
換手段とを有し、入力音声信号をNビットの分解能でA
/D変換後、一旦記憶手段に蓄積し、前記音声データ変
換手段により音声データの変換を行なった後前記音声符
号化手段により音声信号を符号化することを特徴とする
音声サンプル装置。
2. Means for A / D converting an analog audio signal with N-bit resolution, and storage means for storing data of N-bit resolution output from this A / D conversion means.
A voice encoding means for inputting data after A / D conversion having a resolution of M bits (M <N), and a maximum amplitude in the ± direction of the amplitude with respect to the data of the N bit resolution stored in the storage means. Audio data conversion means for performing data conversion from N-bit resolution to M-bit resolution after conversion so that the input audio signal has an A-bit resolution of A.
A voice sampling device characterized in that after D / D conversion, it is temporarily stored in a storage means, the voice data is converted by the voice data converting means, and then a voice signal is encoded by the voice encoding means.
JP25105492A 1992-09-21 1992-09-21 Voice sampler Pending JPH06104849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25105492A JPH06104849A (en) 1992-09-21 1992-09-21 Voice sampler

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25105492A JPH06104849A (en) 1992-09-21 1992-09-21 Voice sampler

Publications (1)

Publication Number Publication Date
JPH06104849A true JPH06104849A (en) 1994-04-15

Family

ID=17216937

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25105492A Pending JPH06104849A (en) 1992-09-21 1992-09-21 Voice sampler

Country Status (1)

Country Link
JP (1) JPH06104849A (en)

Similar Documents

Publication Publication Date Title
KR970011728B1 (en) Error chache apparatus of audio signal
US5594443A (en) D/A converter noise reduction system
JPH07199996A (en) Device and method for waveform data encoding, decoding device for waveform data, and encoding and decoding device for waveform data
JPH06104849A (en) Voice sampler
JP3227929B2 (en) Speech encoding apparatus and decoding apparatus for encoded signal
JPH0516101B2 (en)
JP3223281B2 (en) Waveform data encoding device, waveform data encoding method, waveform data decoding device, and waveform data encoding / decoding device
JP3134509B2 (en) Audio encoding / decoding device
KR0141237B1 (en) Audio signal recording/reproducing method
JP2947685B2 (en) Audio codec device
JPH08223039A (en) Linear error reduction device and linear error detection device for analog-digital converter
JP2582947Y2 (en) Audio signal coding device
KR100326892B1 (en) A structure-improved data compression encoder and decoder
JP2617207B2 (en) Adaptive differential pulse code modulation encoding / decoding device
JP2602641B2 (en) Audio coding method
JP2848610B2 (en) Voice analysis and synthesis device
JP2626236B2 (en) ADPCM decoder
JP2601440B2 (en) Digital audio recording and playback device
JPS62252288A (en) Coding device
JPH07154267A (en) Adpcm reproducing device
JPH0467200B2 (en)
JPH0936740A (en) Bit length extension method and device therefor
KR970032133A (en) Digital Audio Signal Inverter
JPH10322205A (en) Device and method for correcting nonlinear distortion
JP3875746B2 (en) Digital recording device