JP3776004B2 - Encoding method of digital data - Google Patents
Encoding method of digital data Download PDFInfo
- Publication number
- JP3776004B2 JP3776004B2 JP2001158767A JP2001158767A JP3776004B2 JP 3776004 B2 JP3776004 B2 JP 3776004B2 JP 2001158767 A JP2001158767 A JP 2001158767A JP 2001158767 A JP2001158767 A JP 2001158767A JP 3776004 B2 JP3776004 B2 JP 3776004B2
- Authority
- JP
- Japan
- Prior art keywords
- frequency
- masking
- masking threshold
- power
- digital data
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、ミニディスク等の記録媒体に楽音や音声等のディジタルデータを記録するにあたって、前記楽音や音声等に適応して各周波数帯域のスペクトルに対するビット割り当てを行い、データ量を圧縮する符号化方法に関する。
【0002】
【従来の技術】
楽音や音声等のディジタルデータを高能率で圧縮符号化する方法として、ミニディスクで用いられているATRAC(Adaptive TRansform Acoustic Coding)が挙げられる。このATRACでは、ディジタルデータを高能率で圧縮するために、入力ディジタルデータは複数の周波数帯域(以下、適宜サブバンドフレームと呼ぶ)に分割され、可変長の単位時間でブロック化される。ブロック化されたディジタルデータはMDCT(Modified Discrete Cosine Transform)処理によってスペクトル信号に変換され、さらに聴覚心理特性を利用して割り当てられたビット数で各スペクトル信号がそれぞれ符号化される。
【0003】
上記の圧縮符号化に適用することができる聴覚心理特性には、等ラウドネス特性やマスキング効果が挙げられる。等ラウドネス特性とは、同じ音圧レベルの音であっても、人間が感じ取る音の大きさが周波数によって変化することを表すものである。従って、人間が感じ取ることのできる音の大きさを示す最小可聴限がその音の周波数によって変化することを表している。
【0004】
一方、マスキング効果には同時マスキング効果と経時マスキング効果がある。同時マスキング効果とは、複数の周波数成分の音が同時に発生しているときに、ある音が別の音を聴き取り難くさせる現象を言う。また、経時マスキング効果とは、大きな音の時間軸方向の前後では、別の音が聞き取り難くなる現象を言う。
【0005】
このような聴覚心理特性を利用したビット割り当て法、例えば反復法と呼ばれる割り当て法では、入力されたディジタルデータに適応した実際のビット割り当てを、次のようにして行っている。
【0006】
まず、各周波数帯域のパワーSを求め、そのパワーSによる他の周波数帯域に対するマスキング閾値Mを求める。次に、このマスキング閾値Mと、各周波数帯域をnビットで量子化したときの量子化雑音パワーN(n)とから、マスキング閾値対雑音比MNR(n)=M/N(n)を求める。続いて、そのマスキング閾値対雑音比MNR(n)が最小となる周波数帯域にビットの割当てを行った後、該マスキング閾値対雑音比MNR(n)を更新し、再び最小の周波数帯域にビットの割り当てが行われる。
【0007】
【発明が解決しようとする課題】
確かに、上記で説明した従来の符号化方法によれば、楽音や音声等のディジタルデータを高能率で圧縮符号化することができる。
【0008】
しかしながら、正弦波のように純音性の高いディジタルデータに対してマスキング閾値対雑音比MNR(n)を用いたビット割り当てを行うと、自身のパワー或いはエネルギーによって自身がマスキングの影響を受けてしまうため、信号対雑音比SNR(n)=S/N(n)を用いたビット割り当てを行った場合と比べて、符号化・復号化時の歪み率、S/N特性、及びダイナミックレンジといったオーディオ特性が悪化するという課題があった。
【0009】
また、超低域や超高域の正弦波に対してマスキング閾値対雑音比MNR(n)を用いたビット割り当てを行うと、最小可聴限もオーディオ特性の悪化要因となるおそれがあった。なお、超低域の正弦波に対して信号対雑音比SNR(n)を用いたビット割り当てを行った場合には、隣接するサブバンドフレーム間の分析窓のクロスポイントで、知覚可能な量子化誤差が生じるおそれがあった。
【0010】
一方、ホワイトノイズのように純音性の低いディジタルデータに対してマスキング閾値対雑音比MNR(n)を用いたビット割り当てを行うと、自身のパワー或いはエネルギーによって、マスキング閾値対雑音比MNR(n)が広帯域でフラットにならないため、信号対雑音比SNR(n)を用いたビット割り当てを行った場合と比べて、符号化・復号化時の音質が悪化するという課題があった。また、最小可聴限も音質の悪化要因となるおそれがあった。
【0011】
この点、本件出願人は、特開平10−207489号公報において、純音性の高いディジタルデータ或いは純音性の低いディジタルデータを符号化する場合、各周波数帯域の相互に隣接するスペクトルのパワーS(或いはエネルギー)の差から求めたピーク及びローカルピークとマスキング閾値Mとの関係に対応して、マスキング閾値対雑音比MNR(n)を用いたビット割り当てを行うビットレートと、信号対雑音比SNR(n)を用いたビット割り当てを行うビットレートとを、可変させる構成のディジタルデータ符号化方法を提案している。
【0012】
確かに、上記の符号化方法によれば、正弦波のように狭帯域なディジタルデータから、ホワイトノイズのように広帯域なディジタルデータに至るまで、最適なビット割り当てを自動的に行うことができるので、マスキング閾値対雑音比MNR(n)等の同時マスキングを利用したビット割り当てに不向きな楽音に対しても音質の劣化を防止することができる。しかしながら、マスキング閾値対雑音比MNR(n)と信号対雑音比SNR(n)とを併用する上記の符号化方法では、アルゴリズムが複雑なものとなっていた。
【0013】
本発明は上記の問題点に鑑み、アルゴリズムを複雑化することなく、純音性の高いディジタルデータから純音性の低いディジタルデータまで、高忠実に符号化することが可能なディジタルデータの符号化方法を提供することを第1の目的とする。また、本発明は、超低域であってかつ純音性の高いディジタルデータを符号化する際であっても、隣接するサブバンドフレーム間の分析窓のクロスポイントで、知覚可能な量子化誤差が生じるおそれの少ないディジタルデータの符号化方法を提供することを第2の目的とする。
【0014】
【課題を解決するための手段】
上記した第1の目的を達成するために、本発明に係るディジタルデータの符号化装置は、楽音や音声等のディジタルデータを周波数領域に変換する手段を有するディジタルデータの符号化装置において、
前記周波数領域を複数の周波数帯域に分割する手段と、
前記各周波数帯域のパワーまたはエネルギーを算出する手段と、
前記算出された各周波数帯域のパワーまたはエネルギーの最大値及び平均値に基づき前記ディジタルデータの純音性を判定する純音性判定手段と、
聴覚心理特性を反映した基準マスキング特性に基づきマスキング閾値を決定する第一のマスキング算出手段と、
周波数に重み付けを行っていない平坦なマスキング特性に基づきマスキング閾値を決定する第二のマスキング算出手段と、
前記純音性判定手段の判定結果に基づき前記第一のマスキング算出手段と前記第二のマスキング算出手段とを切換える切換手段と、
前記算出されたパワーまたはエネルギーと前記マスキング閾値とに基づきマスキング閾値対雑音比を算出する手段と、
前記マスキング閾値対雑音比に基づき前記各周波数帯域にビットを割り当てる手段と、を備えることを特徴とする。
【0016】
また、上記した第2の目的を達成するために、本発明に係るディジタルデータの符号化装置は、楽音や音声等のディジタルデータを複数のサブバンドフレームに分割する手段と、
前記サブバンドフレーム単位毎に周波数領域に変換する手段と、
前記周波数領域を複数の周波数帯域に分割する手段と、
前記各周波数帯域のパワーを算出する手段と、
マスキング閾値を決定する手段と、
前記算出されたパワーと前記マスキング閾値とに基づきマスキング閾値対雑音比を算出する手段と、
前記マスキング閾値対雑音比に基づき前記各周波数帯域にビット割り当てを行う割り当て手段と、を備える符号化装置において、
前記算出されたパワーの最大値と平均値の差分値が所定値以上であり、かつ、前記パワーの最大値が存在する周波数が所定周波数以下である場合、前記パワーの最大値が存在するサブバンドフレームの全ての周波数帯域に、少なくとも最低量子化ビット数以上のビットを割り当てるよう前記割り当て手段に指示を行う手段を備えることを特徴とする。
【0017】
【発明の実施の形態】
本発明に係るディジタルデータの符号化方法を採用したディジタル録音再生装置として、ここでは、ミニディスク録音再生装置を例に挙げて説明を行う。図1は本発明に係るディジタルデータの符号化方法を採用したミニディスク録音再生装置の一構成例を示すブロック図である。
【0018】
本図に示すミニディスク録音再生装置1に設けられた入力端子2には、コンパクトディスク再生装置や衛星放送受信装置などのディジタル音声信号源から出力されたディジタル音声データが、例えば光信号としてシリアル入力される。入力端子2に入力された光信号は、光電素子3によって電気信号に変換された後、ディジタルPLL(Phase-Locked-Loop)回路4に入力される。
【0019】
ディジタルPLL回路4は、入力されたディジタル音声データからクロックの抽出を行うとともに、サンプリング周波数および量子化ビット数に対応したマルチビットデータを再現する。このマルチビットデータは信号源毎に異なるサンプリングレート(コンパクトディスク;44.1kHz、ディジタルオーディオテープレコーダ;48kHz、衛星放送(Aモード);32kHzなど)で標本化されたディジタルデータである。そこで、ディジタルPLL回路4から出力されたマルチビットデータは、周波数変換回路5によってそのサンプリングレートをミニディスクの規格に対応した44.1kHzに変換される。
【0020】
音声圧縮回路6は、ATRAC(Adaptive TRansform Acoustic Coding)方式によって入力されたディジタル音声データの圧縮符号化を行い、符号化されたディジタル音声データをショックプルーフメモリコントローラ7を介して信号処理回路8に送出する。なお、音声圧縮回路6におけるディジタルデータの符号化方法については、後ほど詳細に説明を行う。
【0021】
ショックプルーフメモリコントローラ7で制御されるショックプルーフメモリ9は、音声圧縮回路6から出力されるディジタル音声データの転送速度と、信号処理回路8に入力されるディジタル音声データの転送速度との差を吸収するとともに、再生時における振動等の外乱による再生信号の中断を補間し、ディジタル音声データを保護するためのものである。
【0022】
信号処理回路8は、エンコーダおよびデコーダとしての機能を備えており、入力されたディジタル音声データをシリアルの磁界変調信号にエンコードしてヘッド駆動回路10に与える。ヘッド駆動回路10は、記録ヘッド11をミニディスク12上の所定記録位置に移動させるとともに、前記磁界変調信号に対応した磁界を発生させる。このとき、ミニディスク12上の所定記録位置には、光ピックアップ13からレーザ光が照射されており、これによって前記磁界に対応した磁化パターンがミニディスク12上に形成される。
【0023】
一方、光ピックアップ13は、ミニディスク12から前記磁化パターンに対応したシリアル信号を再生する。再生されたシリアル信号は高周波アンプ14(以下、RFアンプ14と呼ぶ)で増幅された後、信号処理回路8によってディジタル音声データにデコードされる。デコードされたディジタル音声データは、ショックプルーフメモリコントローラ7及びショックプルーフメモリ9で外乱による影響を除去された後、音声伸長回路15に送出される。
【0024】
音声伸長回路15は、ATRAC方式による圧縮符号化の逆変換処理を行い、フルビットのディジタル音声データを復調する。復調されたディジタル音声データは、ディジタル/アナログ変換回路16(以下、D/A変換回路16と呼ぶ)によってアナログ音声データに変換され、出力端子17から外部へ出力される。
【0025】
なお、RFアンプ14で増幅されたシリアル信号は、サーボ回路18にも入力されている。サーボ回路18は、再生されたシリアル信号に応じてドライバ回路19に制御信号を送出し、該ドライバ回路19を介してスピンドルモータ20の回転速度をフィードバック制御する。このようなフィードバック制御により、ミニディスク12を線速度一定で回転させることができる。
【0026】
また、サーボ回路18は、ドライバ回路19を介して送りモータ21の回転速度もフィードバック制御している。このようなフィードバック制御により、ミニディスク12の半径方向に対する光ピックアップ13の変移制御、すなわちトラッキング制御を行うことができる。さらに、サーボ回路18は、ドライバ回路19を介して光ピックアップ13のフォーカシング制御も行っている。
【0027】
上記した信号処理回路8、光ピックアップ13、RFアンプ14、サーボ回路18、及びドライバ回路19等には、図示しない電源回路から電力供給が行われるが、このような電力供給動作や後述する信号処理動作は、全てシステムコントロールマイコン22によって集中管理されている。なお、システムコントロールマイコン22には、曲名入力や選曲操作、或いは音質調整動作等を行うための入力装置23が接続されている。
【0028】
続いて、上記した音声圧縮回路6におけるディジタルデータ符号化処理の第1実施形態について説明する。図2は音声圧縮回路6の第1実施形態を示すブロック図であり、特に、スペクトル変換部に続くビット割当処理部を模式化したものである。
【0029】
本図に示すビット割当処理部の入力端には、その前段に設けられたスペクトル変換部(図示せず)で得られたMDCT係数(ディジタル音声データを構成する周波数成分(スペクトル))が入力される。なお、スペクトル変換部は、周波数変換回路5から入力されたディジタル音声データ(44.1kHz)を、帯域分割フィルタであるQMF(Quadrature Mirror Filter)によって複数の周波数帯域(サブバンドフレーム)に分割し、そのサブバンドフレーム単位毎にMDCT(Modified Discrete Cosine Transform)処理を施すことで、ディジタル音声データのスペクトル変換を行っている。
【0030】
パワー算出部31は、入力されたMDCT係数をさらにi個の周波数帯域(臨界帯域等)に分割し、各周波数帯域に属するMDCT係数の2乗和から、各周波数帯域のスペクトルパワーSi(i=1,2,…,I、例えばI=25)を算出する。なお、臨界帯域とは、周波数選択性・マスキング閾値等の特定の音響心理学的規則性が有効な広帯域オーディオスペクトルの特性的部分のことである。
【0031】
純音性判定部32は、パワー算出部31で算出されたスペクトルパワーSiの最大値Smaxと平均値Sav(=ΣSi/I)との差分値(Smax−Sav)を求めるとともに、該差分値の大小からディジタル音声データの純音性の高低を判定し、その判定結果に基づいて切換部33の切換制御を行う。
【0032】
図3はパワー算出部31で算出されたスペクトルパワーSiの一例を示す図である。本図中(a)に示すように、スペクトルパワーSiの最大値Smaxと平均値Savとの差分値(Smax−Sav)が非常に大きい場合、例えばSmax−Sav≧40dBを満たす場合、純音性判定部32は、入力されたディジタル音声データの純音性が高いと判定して、平坦マスキング算出部35を選択するように切換部33の切換制御を行う。
【0033】
また、本図中(b)に示すように、スペクトルパワーSiの最大値Smaxと平均値Savとの差分値(Smax−Sav)が非常に小さい場合、例えばSmax−Sav≦6dBを満たす場合、純音性判定部32は、入力されたディジタル音声データの純音性が低いと判定して、上記と同様、平坦マスキング算出部35を選択するように切換部33の切換制御を行う。
【0034】
一方、スペクトルパワーSiの最大値Smaxと平均値Savとの差分値(Smax−Sav)が上記のいずれにも該当しない場合、例えば6dB<Smax−Sav<40dBを満たす場合、純音性判定部32は、入力されたディジタル音声データに対する聴覚心理、すなわちマスキング効果が有効であると判断して、基準マスキング算出部34を選択するように切換部33の切換制御を行う。
【0035】
上記の純音性判定動作により、基準マスキング算出部34が選択された場合、最小可聴限合成部36は、音声圧縮部6のテーブルROM(図示せず)に予め格納されている基準マスキング特性と最小可聴限特性とを合成することで、最終的なマスキング閾値Miを決定する。一方、平坦マスキング算出部35が選択された場合、最小可聴限合成部36は、周波数に重み付けを行っていない平坦なマスキング特性と最小可聴限特性とを合成することで、最終的なマスキング閾値Miを決定する。
【0036】
SMR算出部37は、各周波数帯域のインデックスを前記iとするとき、パワー算出部31で算出されたスペクトルパワーSiと、最小可聴限合成部36で決定された各周波数帯域のマスキング閾値Miとの比SMRi(=Si/Mi)を、全ての周波数帯域に亘って計算する。
【0037】
MNR算出部38は、まず各周波数帯域のスペクトルパワーSiと、該スペクトルパワーSiをnビットで量子化したときに生じる量子化雑音パワーNi(n)との比、すなわち信号対雑音比SNRi(n)(=Si/Ni(n))を求める。なお、この信号対雑音比SNRi(n)は、統計的には信号特性に応じた定数となるので、予め統計処理によって求めておいてもよい。さらに、MNR算出部38は、この信号対雑音比SNRi(n)と、SMR算出部37で得られた比SMRiから、マスキング閾値Miと量子化雑音パワーNiとの比、すなわちマスキング閾値対雑音比MNRi(n)(=SNRi(n)/SMRi)を算出する。
【0038】
量子化ビット数算出部39は、各周波数帯域の量子化ビット数nを0から順に大きくしていき、その都度、各周波数帯域のマスキング閾値対雑音比MNRi(n)を計算する。そして、マスキング閾値対雑音比MNRi(n)が最小となる周波数帯域から順にビットを割り当てていく。その後、量子化ビット数nを更新する度毎に、マスキング閾値対雑音比MNRi(n)が最小となる周波数帯域に対する同様のビット割り当てを行う。所定の割り当て可能ビット数となるまで割り当てを行うと、各周波数帯域の語長が決定されて出力が行われる。すなわち、スペクトルパワーSiの絶対値が、マスキング閾値Miを超えた部分の長さが最も長い周波数帯域から順にビット割り当てが行われることになる。
【0039】
上記したディジタルデータの符号化方法であれば、正弦波のように純音性の高いディジタルデータ、或いはホワイトノイズのように純音性の低いディジタルデータに対して、マスキング閾値対雑音比MNRi(n)のみを用いてビット割り当てを行った場合であっても、信号対雑音比SNRi(n)を用いてビット割り当てを行った場合と同等のオーディオ特性及び音質を得ることができる。
【0040】
また、本実施形態におけるディジタルデータの符号化方法であれば、楽音や音声のように、聴覚心理を利用した方が好ましい音源には、通常のマスキング閾値対雑音比MNRi(n)を用いたビット割り当てを行うので、信号対雑音比SNRi(n)を用いてビット割り当てを行うよりも、聴覚的に優れた音質を得ることができる。さらに、マスキング閾値対雑音比MNRi(n)と信号対雑音比SNRi(n)とを併用する従来の符号化方法に比べて、アルゴリズムを容易に実現することが可能である。
【0041】
続いて、音声圧縮回路6におけるディジタルデータ符号化処理の第2実施形態について説明する。図4は音声圧縮回路6の第2実施形態を示すブロック図であり、説明の理解を深めるために音声伸長回路15も合わせて示している。
【0042】
本図に示す音声圧縮回路6の入力端には、周波数変換回路5で得られたディジタル音声データ(44.1kHz)が入力される。音声圧縮回路6の最前段に設けられた周波数帯域分割部41は、入力されたディジタル音声データを複数の周波数帯域(サブバンドフレーム)に分割する。
【0043】
時間周波数変換部42は、周波数帯域分割部41で得られたサブバンドフレーム単位毎にMDCT処理を施すことで、ディジタル音声データをMDCT係数に変換する。このときのMDCT処理によって得られる変換データXm(k)は、次の(1)式で示される。
【数1】
【0044】
なお、上式中の変数mはブロック番号を表しており、関数xm(i)は入力信号を表している。また、関数h(i)は順変換用窓関数を表している。図5は順変換窓関数h(i)の時間特性の一例を示す概念図であり、図6は順変換窓関数h(i)の周波数特性の一例を示す概念図である。
【0045】
パワー算出部43は、時間周波数変換部42で得られたMDCT係数をさらにi個の周波数帯域(臨界帯域等)に分割し、各周波数帯域に属するMDCT係数の2乗和から、各周波数帯域のスペクトルパワーSi(i=1,2,…,I、例えばI=25)を算出する。
【0046】
純音性判定部44は、パワー算出部43で算出されたスペクトルパワーSiの最大値Smaxと平均値Sav(=ΣSi/I)との差分値(Smax−Sav)を求めるとともに、該差分値の大小からディジタル音声データの純音性の高低を判定し、その判定結果に基づいて量子化ビット数算出部49における量子化ビット数の割り当て制御を行う。
【0047】
図7は本実施形態における量子化ビット数の割り当て制御を説明するための図であり、パワー算出部31で算出されたスペクトルパワーSiの一例(a)と、その際に割り当てられる量子化ビット数の一例(b)と、を示している。なお、本図では、入力されたディジタル音声データが4つのサブバンドフレームSB1〜SB4に分割されている場合を例に挙げて説明を行う。
【0048】
本図中(a)に示すように、スペクトルパワーSiの最大値Smaxと平均値Savとの差分値(Smax−Sav)が非常に大きく(例えばSmax−Sav≧40dB)、かつスペクトルパワーSiの最大値Smaxが存在する周波数が所定周波数(例えば100Hz)以下である場合、純音性判定部44は、入力されたディジタル音声データが超低域であるとともに純音性が高いと判定して、本図中(b)に示すように、スペクトルパワーSiの最大値Smaxが存在するサブバンドフレームSB1に、少なくとも最低の量子化ビット数を割り当てるよう、量子化ビット数算出部49に対する指示を行う。
【0049】
このようなビット割り当てを行うことにより、特定周波数のノイズを低減することが可能となる。従って、超低域であるとともに純音性が高いディジタル音声データ(例えば、超低域の正弦波)を符号化する場合であっても、隣接するサブバンドフレーム間の分析窓のクロスポイントで、知覚可能な量子化誤差が生じるおそれが少なくなる。
【0050】
パワー算出部43の後段に接続されたマスキング算出部45、最小可聴限合成部46、SMR算出部47、MNR算出部48、及び量子化ビット数算出部49は、前述の第1実施形態と同様、マスキング閾値対雑音比MNRi(n)を用いたビット割り当てを行い、量子化ビット数を決定する。
【0051】
量子化部50及びパッキング部51は、量子化ビット数算出部49で得られた量子化ビット数に従って、入力されたディジタル音声データを圧縮符号化する。このようにして圧縮符号化されたディジタル音声データは、信号処理回路8などを介してミニディスク12に記録される。
【0052】
一方、ミニディスク12を再生する際、音声伸長回路15のアンパッキング部52及び逆量子化部53は、圧縮符号化されたディジタル音声データを元のMDCT係数に復元する。
【0053】
周波数時間変換部54は、復元されたMDCT係数に対して、サブバンドフレーム単位毎にIMDCT(Inverse Modified Discrete Cosine Transform)処理を施す。このときのIMDCT処理によって得られる復元信号x^m(i)は、次の(2)式で示される。
【数2】
【0054】
なお、上式中の変数mはブロック番号を表しており、関数Xm(k)は変換データ(復元されたMDCT係数)を表している。また、関数ym(i)は逆変換信号を表しており、関数f(i)は逆変換用窓関数を表している。
【0055】
続く周波数帯域合成部55は、周波数時間変換部54によって得られた復元信号x^m(i)を合成することで元のディジタル音声データを復元し、該ディジタル音声データを次段のD/A変換回路16に送出する。
【0056】
なお、変換データXm(k)が量子化による影響を受けることなく、復元信号x^m(i)から元のディジタル音声データを復元できるように、上記した時間周波数変換部42及び周波数時間変換部54は、次の(3)式を満たすように設計されるべきである。本条件はCAS90−10やDSP90−14等により既に公知とされている。
【数3】
【0057】
一方、変換データXm(k)が量子化による影響を受けた場合について、参考までに説明する。図8は変換データXm(k)が量子化による影響を受けた場合を説明する図であり、周波数帯域合成部55から出力されるディジタル音声データの一例(a)と、該ディジタル音声データの符号化時におけるビット割り当ての一例(b)と、を示している。
【0058】
本図中(b)に示すように、サブバンドフレームSB1の低域から1/3程度の周波数成分にのみビット割り当てを行った場合、復元信号x^m(i)の周波数特性は本図中(a)のようになり、窓関数の周波数特性のノイズが発生する。このような量子化ノイズは、サブバンドフレームSB1のどの周波数にでも少なからず発生するが、この例ではサブバンドフレームSB1の低域から1/3程度に集中してビットを割り当てているため、残りの2/3の周波数成分における量子化ノイズが知覚されやすい。従って、前述した通り、スペクトルパワーSiの最大値Smaxが存在するサブバンドフレームSB1に、少なくとも最低の量子化ビット数を割り当てれば、特定周波数のノイズを低減することが可能となる。
【0059】
なお、上記の実施形態では、本発明に係るディジタルデータの符号化方法をミニディスク録音再生装置に適用した例を挙げて説明を行ったが、本発明の適用範囲がこれに限定されないことは言うまでもない。
【0060】
【発明の効果】
本発明に係るディジタルデータの符号化装置は、楽音や音声等のディジタルデータを周波数領域に変換する手段を有するディジタルデータの符号化装置において、
前記周波数領域を複数の周波数帯域に分割する手段と、
前記各周波数帯域のパワーまたはエネルギーを算出する手段と、
前記算出された各周波数帯域のパワーまたはエネルギーの最大値及び平均値に基づき前記ディジタルデータの純音性を判定する純音性判定手段と、
聴覚心理特性を反映した基準マスキング特性に基づきマスキング閾値を決定する第一のマスキング算出手段と、
周波数に重み付けを行っていない平坦なマスキング特性に基づきマスキング閾値を決定する第二のマスキング算出手段と、
前記純音性判定手段の判定結果に基づき前記第一のマスキング算出手段と前記第二のマスキング算出手段とを切換える切換手段と、
前記算出されたパワーまたはエネルギーと前記マスキング閾値とに基づきマスキング閾値対雑音比を算出する手段と、
前記マスキング閾値対雑音比に基づき前記各周波数帯域にビットを割り当てる手段と、を備える。
【0062】
このようなディジタルデータの符号化方法であれば、正弦波のように純音性の高いディジタルデータ、或いはホワイトノイズのように純音性の低いディジタルデータに対して、マスキング閾値対雑音比のみを用いてビット割り当てを行った場合であっても、信号対雑音比を用いてビット割り当てを行った場合と同等のオーディオ特性及び音質を得ることができる。
【0063】
また、本発明に係るディジタルデータの符号化方法であれば、楽音や音声のように、聴覚心理を利用した方が好ましい音源には、通常のマスキング閾値対雑音比を用いたビット割り当てを行うので、信号対雑音比を用いてビット割り当てを行うよりも、聴覚的に優れた音質を得ることができる。さらに、マスキング閾値対雑音比と信号対雑音比とを併用する従来の符号化方法に比べて、アルゴリズムを容易に実現することが可能である。
【0064】
また、本発明に係るディジタルデータの符号化装置は、楽音や音声等のディジタルデータを複数のサブバンドフレームに分割する手段と、
前記サブバンドフレーム単位毎に周波数領域に変換する手段と、
前記周波数領域を複数の周波数帯域に分割する手段と、
前記各周波数帯域のパワーを算出する手段と、
前記各周波数帯域にビット割り当てを行う割り当て手段と、を備える符号化装置において、
前記算出されたパワーの最大値と平均値の差分値が所定値以上であり、かつ、前記パワーの最大値が存在する周波数が所定周波数以下である場合、前記パワーの最大値が存在するサブバンドフレームの全ての周波数帯域に、少なくとも最低量子化ビット数以上のビットを割り当てるよう前記割り当て手段に指示を行う手段を備える。
【0065】
このようなディジタルデータの符号化方法であれば、特定周波数のノイズを低減することが可能となる。従って、超低域であるとともに純音性が高いディジタル音声データ(例えば、超低域の正弦波)を符号化する場合であっても、隣接するサブバンドフレーム間の分析窓のクロスポイントで、知覚可能な量子化誤差が生じるおそれが少なくなる。
【図面の簡単な説明】
【図1】 本発明に係るディジタルデータの符号化方法を採用したミニディスク録音再生装置の一構成例を示すブロック図である。
【図2】 音声圧縮回路6の第1実施形態を示すブロック図である。
【図3】 パワー算出部31で算出されたスペクトルパワーSiの一例を示す図である。
【図4】 音声圧縮回路6の第2実施形態を示すブロック図である。
【図5】 順変換窓関数h(i)の時間特性の一例を示す概念図である。
【図6】 順変換窓関数h(i)の周波数特性の一例を示す概念図である。
【図7】 第2実施形態における量子化ビット数の割り当て制御を説明するための図である。
【図8】 変換データXm(k)が量子化による影響を受けた場合を説明する図である。
【符号の説明】
1 ミニディスク録音再生装置
2 入力端子
3 光電素子
4 ディジタルPLL回路
5 周波数変換回路
6 音声圧縮回路
7 ショックプルーフメモリコントローラ
8 信号処理回路
9 ショックプルーフメモリ
10 記録ヘッド駆動回路
11 記録ヘッド
12 ミニディスク
13 光ピックアップ
14 高周波アンプ(RFアンプ)
15 音声伸長回路
16 ディジタル/アナログ変換回路(D/A変換回路)
17 出力端子
18 サーボ回路
19 ドライバ回路
20 スピンドルモータ
21 送りモータ
22 システムコントロールマイコン
23 入力装置
31 パワー算出部
32 純音性判定部
33 切換部
34 基準マスキング算出部
35 平坦マスキング算出部
36 最小可聴限合成部
37 SMR算出部
38 MNR算出部
39 量子化ビット数算出部
41 周波数帯域分割部
42 時間周波数変換部
43 パワー算出部
44 純音性判定部
45 マスキング算出部
46 最小可聴限合成部
47 SMR算出部
48 MNR算出部
49 量子化ビット数算出部
50 量子化部
51 パッキング部
52 アンパッキング部
53 逆量子化部
54 周波数時間変換部
55 周波数帯域合成部[0001]
BACKGROUND OF THE INVENTION
In recording digital data such as music and voice on a recording medium such as a mini disk, the present invention assigns bits to the spectrum of each frequency band in accordance with the music and voice and compresses the data amount. Regarding the method.
[0002]
[Prior art]
As a method of compressing and encoding digital data such as musical sounds and voices with high efficiency, there is ATRAC (Adaptive TRansform Acoustic Coding) used in minidiscs. In this ATRAC, in order to compress digital data with high efficiency, input digital data is divided into a plurality of frequency bands (hereinafter, referred to as subband frames as appropriate) and is blocked in variable length unit times. Blocked digital data is converted into a spectrum signal by MDCT (Modified Discrete Cosine Transform) processing, and each spectrum signal is encoded with the number of bits assigned using the psychoacoustic characteristics.
[0003]
Examples of the psychoacoustic characteristics that can be applied to the above compression coding include an equal loudness characteristic and a masking effect. The equal loudness characteristic represents that the volume of sound perceived by humans varies depending on the frequency even for sounds having the same sound pressure level. Therefore, it represents that the minimum audible limit indicating the volume of sound that humans can perceive changes depending on the frequency of the sound.
[0004]
On the other hand, the masking effect includes a simultaneous masking effect and a temporal masking effect. The simultaneous masking effect is a phenomenon that makes it difficult for one sound to hear another sound when sounds of a plurality of frequency components are generated simultaneously. The temporal masking effect refers to a phenomenon in which it is difficult to hear another sound before and after a loud sound in the time axis direction.
[0005]
In a bit allocation method using such psychoacoustic characteristics, for example, an allocation method called an iterative method, actual bit allocation adapted to input digital data is performed as follows.
[0006]
First, the power S of each frequency band is obtained, and the masking threshold M for other frequency bands based on the power S is obtained. Next, a masking threshold-to-noise ratio MNR (n) = M / N (n) is obtained from the masking threshold M and the quantization noise power N (n) when each frequency band is quantized with n bits. . Subsequently, after assigning bits to the frequency band where the masking threshold-to-noise ratio MNR (n) is minimum, the masking threshold-to-noise ratio MNR (n) is updated, and the bit is again set to the minimum frequency band. Allocation is done.
[0007]
[Problems to be solved by the invention]
Certainly, according to the conventional encoding method described above, digital data such as musical sounds and voices can be compression-encoded with high efficiency.
[0008]
However, if bit allocation using a masking threshold-to-noise ratio MNR (n) is performed on digital data having a high pure tone such as a sine wave, it is affected by masking by its own power or energy. , Audio characteristics such as distortion rate, S / N characteristics, and dynamic range at the time of encoding / decoding compared to the case where bit allocation using signal-to-noise ratio SNR (n) = S / N (n) is performed There was a problem of getting worse.
[0009]
In addition, when bit allocation using the masking threshold-to-noise ratio MNR (n) is performed on a sine wave in the ultra-low frequency range or the ultra-high frequency range, the minimum audible limit may be a cause of deterioration of audio characteristics. When bit allocation using the signal-to-noise ratio SNR (n) is performed on a very low frequency sine wave, perceptible quantization at the analysis window crosspoint between adjacent subband frames There was a risk of errors.
[0010]
On the other hand, when bit allocation using the masking threshold-to-noise ratio MNR (n) is performed on digital data with low pure tone such as white noise, the masking threshold-to-noise ratio MNR (n) depends on its own power or energy. Has a problem that the sound quality at the time of encoding / decoding deteriorates compared to the case where bit allocation using the signal-to-noise ratio SNR (n) is performed. In addition, the minimum audible limit may cause a deterioration in sound quality.
[0011]
In this regard, in the case of encoding digital data with high pureness or digital data with low pureness in Japanese Patent Laid-Open No. 10-207489, the applicant of the present application has the power S (or spectrum power S) of each frequency band adjacent to each other. The bit rate for bit allocation using the masking threshold-to-noise ratio MNR (n) and the signal-to-noise ratio SNR (n) corresponding to the relationship between the peak and local peaks obtained from the difference in energy) and the masking threshold M The digital data encoding method of the structure which makes variable the bit rate which performs the bit allocation which uses () is proposed.
[0012]
Certainly, according to the above encoding method, optimum bit allocation can be automatically performed from digital data having a narrow band such as a sine wave to digital data having a wide band such as white noise. Further, it is possible to prevent deterioration of sound quality even for a musical sound unsuitable for bit allocation using simultaneous masking such as a masking threshold-to-noise ratio MNR (n). However, the above-described encoding method using both the masking threshold-to-noise ratio MNR (n) and the signal-to-noise ratio SNR (n) has a complicated algorithm.
[0013]
In view of the above-described problems, the present invention provides a digital data encoding method capable of high-fidelity encoding from high-pure digital data to low-pure digital data without complicating the algorithm. The first purpose is to provide it. In addition, the present invention has a perceptible quantization error at the cross-point of the analysis window between adjacent subband frames even when encoding digital data having a very low frequency range and a high pure tone. A second object is to provide a digital data encoding method that is less likely to occur.
[0014]
[Means for Solving the Problems]
In order to achieve the first object described above, encoding of digital data according to the present invention is performed.The apparatus is a digital data encoding apparatus having means for converting digital data such as musical sounds and voices into a frequency domain.
Means for dividing the frequency domain into a plurality of frequency bands;
Means for calculating the power or energy of each frequency band;
Pure tone determination means for determining the pure tone of the digital data based on the maximum and average values of the power or energy of each calculated frequency band;
A first masking calculation means for determining a masking threshold based on a reference masking characteristic reflecting the psychoacoustic characteristic;
A second masking calculation means for determining a masking threshold based on a flat masking characteristic that does not weight the frequency;
Switching means for switching between the first masking calculation means and the second masking calculation means based on the determination result of the pure tone determination means;
Means for calculating a masking threshold to noise ratio based on the calculated power or energy and the masking threshold;
Means for allocating bits to each frequency band based on the masking threshold to noise ratio.
[0016]
In order to achieve the second object described above, the digital data encoding apparatus according to the present invention comprises means for dividing digital data such as musical sounds and voices into a plurality of subband frames,
Means for converting to the frequency domain for each subband frame unit;
Means for dividing the frequency domain into a plurality of frequency bands;
Means for calculating the power of each frequency band;
Means for determining a masking threshold;
Means for calculating a masking threshold to noise ratio based on the calculated power and the masking threshold;
Based on the masking threshold to noise ratioIn an encoding device comprising: allocation means for performing bit allocation to each frequency band,
When the calculated difference value between the maximum value and the average value is equal to or greater than a predetermined value, and the frequency at which the maximum power value exists is equal to or less than the predetermined frequency, the subband in which the maximum power value exists It is characterized by comprising means for instructing the assigning means to assign at least the minimum quantization bit number to all frequency bands of the frame.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Here, as a digital recording / reproducing apparatus employing the digital data encoding method according to the present invention, a mini-disc recording / reproducing apparatus will be described as an example. FIG. 1 is a block diagram showing an example of the configuration of a mini-disc recording / reproducing apparatus employing the digital data encoding method according to the present invention.
[0018]
A digital audio data output from a digital audio signal source such as a compact disc reproducing device or a satellite broadcast receiving device is serially input as an optical signal, for example, to an
[0019]
The digital PLL circuit 4 extracts a clock from the input digital audio data and reproduces multi-bit data corresponding to the sampling frequency and the number of quantization bits. This multi-bit data is digital data sampled at different sampling rates for each signal source (compact disc; 44.1 kHz, digital audio tape recorder; 48 kHz, satellite broadcast (A mode); 32 kHz, etc.). Therefore, the multi-bit data output from the digital PLL circuit 4 is converted by the frequency conversion circuit 5 into a sampling rate of 44.1 kHz corresponding to the minidisk standard.
[0020]
The audio compression circuit 6 compresses and encodes the digital audio data input by the ATRAC (Adaptive TRansform Acoustic Coding) method, and sends the encoded digital audio data to the signal processing circuit 8 via the shock
[0021]
The shock proof memory 9 controlled by the shock
[0022]
The signal processing circuit 8 has functions as an encoder and a decoder. The signal processing circuit 8 encodes the input digital audio data into a serial magnetic field modulation signal and supplies the serial magnetic field modulation signal to the head driving circuit 10. The head drive circuit 10 moves the recording head 11 to a predetermined recording position on the mini disk 12 and generates a magnetic field corresponding to the magnetic field modulation signal. At this time, a predetermined recording position on the mini disk 12 is irradiated with laser light from the
[0023]
On the other hand, the
[0024]
The
[0025]
The serial signal amplified by the
[0026]
The servo circuit 18 also feedback-controls the rotation speed of the
[0027]
The signal processing circuit 8, the
[0028]
Next, a first embodiment of the digital data encoding process in the audio compression circuit 6 will be described. FIG. 2 is a block diagram showing a first embodiment of the audio compression circuit 6, and in particular, schematically shows a bit allocation processing unit following the spectrum conversion unit.
[0029]
The MDCT coefficient (frequency component (spectrum) constituting digital audio data) obtained by a spectrum conversion unit (not shown) provided in the preceding stage is input to the input end of the bit allocation processing unit shown in the figure. The The spectrum conversion unit divides the digital audio data (44.1 kHz) input from the frequency conversion circuit 5 into a plurality of frequency bands (subband frames) by a QMF (Quadrature Mirror Filter) that is a band division filter, Spectrum conversion of digital audio data is performed by performing MDCT (Modified Discrete Cosine Transform) processing for each subband frame unit.
[0030]
The power calculation unit 31 further divides the input MDCT coefficient into i frequency bands (critical bands, etc.), and the spectral power S of each frequency band is obtained from the square sum of the MDCT coefficients belonging to each frequency band.i(I = 1, 2,..., I, for example, I = 25) is calculated. The critical band is a characteristic part of a wideband audio spectrum in which specific psychoacoustic regularity such as frequency selectivity and masking threshold is effective.
[0031]
The pure
[0032]
FIG. 3 shows the spectrum power S calculated by the power calculator 31.iIt is a figure which shows an example. As shown in FIG.iMaximum value SmaxAnd mean value SavDifference value with (Smax-Sav) Is very large, eg Smax-SavWhen ≧ 40 dB is satisfied, the pure
[0033]
In addition, as shown in FIG.iMaximum value SmaxAnd mean value SavDifference value with (Smax-Sav) Is very small, eg Smax-SavWhen ≦ 6 dB is satisfied, the pure
[0034]
On the other hand, spectral power SiMaximum value SmaxAnd mean value SavDifference value with (Smax-Sav) Does not correspond to any of the above, for example, 6 dB <Smax-SavWhen <40 dB is satisfied, the pure
[0035]
When the reference masking
[0036]
The
[0037]
First, the
[0038]
The quantization bit
[0039]
With the digital data encoding method described above, the masking threshold-to-noise ratio MNR is applied to digital data with a high pure tone such as a sine wave or digital data with a low pure tone such as white noise.iEven if only (n) is used for bit allocation, the signal-to-noise ratio SNRiAudio characteristics and sound quality equivalent to those obtained when bit allocation is performed using (n) can be obtained.
[0040]
In the digital data encoding method according to the present embodiment, a normal masking threshold-to-noise ratio MNR is preferably used for a sound source that preferably uses auditory psychology, such as music and voice.iSince bit allocation using (n) is performed, the signal-to-noise ratio SNRiIt is possible to obtain a sound quality superior to that of the bit allocation using (n). In addition, the masking threshold to noise ratio MNRi(N) and signal-to-noise ratio SNRiCompared to the conventional encoding method using (n) together, the algorithm can be easily realized.
[0041]
Next, a second embodiment of the digital data encoding process in the audio compression circuit 6 will be described. FIG. 4 is a block diagram showing a second embodiment of the voice compression circuit 6, and a
[0042]
The digital audio data (44.1 kHz) obtained by the frequency conversion circuit 5 is input to the input terminal of the audio compression circuit 6 shown in the figure. A frequency
[0043]
The time-frequency converter 42 converts the digital audio data into MDCT coefficients by performing MDCT processing for each subband frame unit obtained by the
[Expression 1]
[0044]
Note that the variable m in the above formula represents the block number, and the function xm(I) represents an input signal. The function h (i) represents a forward conversion window function. FIG. 5 is a conceptual diagram illustrating an example of time characteristics of the forward conversion window function h (i), and FIG. 6 is a conceptual diagram illustrating an example of frequency characteristics of the forward conversion window function h (i).
[0045]
The
[0046]
The pure
[0047]
FIG. 7 is a diagram for explaining the quantization bit number allocation control in the present embodiment. The spectrum power S calculated by the power calculation unit 31 is shown in FIG.iAn example (a) and an example (b) of the number of quantization bits allocated at that time are shown. In the figure, the case where the input digital audio data is divided into four subband frames SB1 to SB4 will be described as an example.
[0048]
As shown in FIG.iMaximum value SmaxAnd mean value SavDifference value with (Smax-Sav) Is very large (eg Smax-Sav≧ 40 dB) and spectral power SiMaximum value SmaxWhen the frequency in which the sound is present is equal to or lower than a predetermined frequency (for example, 100 Hz), the pure
[0049]
By performing such bit allocation, it is possible to reduce noise at a specific frequency. Therefore, even when digital audio data (for example, a very low frequency sine wave) having a very low frequency and a high pure tone is encoded, it is perceived at the analysis window cross point between adjacent subband frames. There is less risk of possible quantization errors.
[0050]
The masking calculation unit 45, the minimum audible limit synthesis unit 46, the
[0051]
The quantization unit 50 and the
[0052]
On the other hand, when the mini-disc 12 is reproduced, the unpacking
[0053]
The frequency
[Expression 2]
[0054]
Note that the variable m in the above formula represents the block number, and the function Xm(K) represents converted data (reconstructed MDCT coefficient). The function ym(I) represents an inverse transformation signal, and function f (i) represents an inverse transformation window function.
[0055]
The subsequent
[0056]
Conversion data Xm(K) is not affected by quantization, and the restored signal x ^mThe time frequency conversion unit 42 and the frequency
[Equation 3]
[0057]
On the other hand, conversion data XmThe case where (k) is affected by quantization will be described for reference. FIG. 8 shows the conversion data Xm(K) is a figure explaining the case where it receives to the influence by quantization, and is an example of the digital audio | voice data (a) output from the frequency band synthetic |
[0058]
As shown in (b) in this figure, when bits are assigned only to the frequency components of about 1/3 from the low frequency of the subband frame SB1, the restored signal x ^mThe frequency characteristic of (i) is as shown in (a) in the figure, and noise of the frequency characteristic of the window function is generated. Such quantization noise is generated not a little at any frequency of the subband frame SB1, but in this example, bits are concentrated from the low frequency of the subband frame SB1 to about 1/3, and the remaining noise is left. Quantization noise in 2/3 frequency components is easily perceived. Therefore, as described above, the spectral power SiMaximum value SmaxIf at least the minimum number of quantization bits is assigned to the subband frame SB1 in which the noise exists, noise at a specific frequency can be reduced.
[0059]
In the above embodiment, the example in which the digital data encoding method according to the present invention is applied to a mini-disc recording / playback apparatus has been described. However, it goes without saying that the scope of the present invention is not limited to this. Yes.
[0060]
【The invention's effect】
Encoding digital data according to the present inventionThe apparatus is a digital data encoding apparatus having means for converting digital data such as musical sounds and voices into a frequency domain.
Means for dividing the frequency domain into a plurality of frequency bands;
Means for calculating the power or energy of each frequency band;
Pure tone determination means for determining the pure tone of the digital data based on the maximum and average values of the power or energy of each calculated frequency band;
A first masking calculation means for determining a masking threshold based on a reference masking characteristic reflecting the psychoacoustic characteristic;
A second masking calculation means for determining a masking threshold based on a flat masking characteristic that does not weight the frequency;
Switching means for switching between the first masking calculation means and the second masking calculation means based on the determination result of the pure tone determination means;
Means for calculating a masking threshold to noise ratio based on the calculated power or energy and the masking threshold;
Means for allocating bits to each frequency band based on the masking threshold to noise ratio.
[0062]
With such a digital data encoding method, only the masking threshold-to-noise ratio is used for digital data with high purity such as a sine wave, or digital data with low purity such as white noise. Even when bit allocation is performed, audio characteristics and sound quality equivalent to those obtained when bit allocation is performed using a signal-to-noise ratio can be obtained.
[0063]
In addition, in the digital data encoding method according to the present invention, a bit allocation using a normal masking threshold-to-noise ratio is performed for a sound source that preferably uses auditory psychology, such as a musical sound or voice. As a result, it is possible to obtain a sound quality superior to that of the bit allocation using the signal-to-noise ratio. Furthermore, the algorithm can be easily realized as compared with the conventional coding method using both the masking threshold-to-noise ratio and the signal-to-noise ratio.
[0064]
Also, the encoding of digital data according to the present inventionThe apparatus includes means for dividing digital data such as musical sounds and voices into a plurality of subband frames;
Means for converting to the frequency domain for each subband frame unit;
Means for dividing the frequency domain into a plurality of frequency bands;
Means for calculating the power of each frequency band;
In an encoding device comprising: allocation means for performing bit allocation to each frequency band,
When the calculated difference value between the maximum value and the average value is equal to or greater than a predetermined value, and the frequency at which the maximum power value exists is equal to or less than the predetermined frequency, the subband in which the maximum power value exists Means for instructing the assigning means to assign at least the minimum quantization bit number to all frequency bands of the frame;
[0065]
With such a digital data encoding method, it is possible to reduce noise at a specific frequency. Therefore, even when digital audio data (for example, a very low frequency sine wave) having a very low frequency and a high pure tone is encoded, it is perceived at the analysis window cross point between adjacent subband frames. There is less risk of possible quantization errors.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an example of the configuration of a mini-disc recording / playback apparatus employing a digital data encoding method according to the present invention.
FIG. 2 is a block diagram showing a first embodiment of an audio compression circuit 6;
FIG. 3 shows the spectral power S calculated by the power calculator 31.iIt is a figure which shows an example.
FIG. 4 is a block diagram showing a second embodiment of the audio compression circuit 6;
FIG. 5 is a conceptual diagram showing an example of time characteristics of a forward conversion window function h (i).
FIG. 6 is a conceptual diagram showing an example of frequency characteristics of a forward conversion window function h (i).
FIG. 7 is a diagram for explaining quantization bit number allocation control in the second embodiment.
[Figure 8] Conversion data XmIt is a figure explaining the case where (k) receives the influence by quantization.
[Explanation of symbols]
1 Mini-disc recording / playback device
2 input terminals
3 photoelectric elements
4 Digital PLL circuit
5 Frequency conversion circuit
6 Voice compression circuit
7 Shockproof memory controller
8 Signal processing circuit
9 Shockproof memory
10 Recording head drive circuit
11 Recording head
12 Mini Disc
13 Optical pickup
14 High frequency amplifier (RF amplifier)
15 Voice decompression circuit
16 Digital / analog conversion circuit (D / A conversion circuit)
17 Output terminal
18 Servo circuit
19 Driver circuit
20 Spindle motor
21 Feed motor
22 System control microcomputer
23 Input device
31 Power calculator
32 Pureness judgment part
33 switching part
34. Reference masking calculator
35 Flat masking calculator
36 Minimum audible limit synthesis unit
37 SMR calculator
38 MNR calculator
39 Quantization Bit Number Calculation Unit
41 Frequency band division unit
42 Time frequency converter
43 Power calculator
44 Pure tone judgment unit
45 Masking calculator
46 Minimum audible limit synthesis unit
47 SMR calculator
48 MNR calculator
49 Quantization bit number calculation section
50 Quantizer
51 Packing part
52 Unpacking part
53 Inverse quantization part
54 Frequency time converter
55 Frequency Band Synthesizer
Claims (2)
前記周波数領域を複数の周波数帯域に分割する手段と、
前記各周波数帯域のパワーまたはエネルギーを算出する手段と、
前記算出された各周波数帯域のパワーまたはエネルギーの最大値及び平均値に基づき前記ディジタルデータの純音性を判定する純音性判定手段と、
聴覚心理特性を反映した基準マスキング特性に基づきマスキング閾値を決定する第一のマスキング算出手段と、
周波数に重み付けを行っていない平坦なマスキング特性に基づきマスキング閾値を決定する第二のマスキング算出手段と、
前記純音性判定手段の判定結果に基づき前記第一のマスキング算出手段と前記第二のマスキング算出手段とを切換える切換手段と、
前記算出されたパワーまたはエネルギーと前記マスキング閾値とに基づきマスキング閾値対雑音比を算出する手段と、
前記マスキング閾値対雑音比に基づき前記各周波数帯域にビットを割り当てる手段と、を備えることを特徴とする符号化装置。 In a digital data encoding apparatus having means for converting digital data such as music and voice into the frequency domain ,
Means for dividing the frequency domain into a plurality of frequency bands;
Means for calculating the power or energy of each frequency band;
Pure tone determination means for determining the pure tone of the digital data based on the maximum and average values of the power or energy of each calculated frequency band;
A first masking calculation means for determining a masking threshold based on a reference masking characteristic reflecting the psychoacoustic characteristic;
A second masking calculation means for determining a masking threshold based on a flat masking characteristic that does not weight the frequency;
Switching means for switching between the first masking calculation means and the second masking calculation means based on the determination result of the pure tone determination means;
Means for calculating a masking threshold to noise ratio based on the calculated power or energy and the masking threshold;
Means for allocating bits to each of the frequency bands based on the masking threshold-to-noise ratio.
前記サブバンドフレーム単位毎に周波数領域に変換する手段と、
前記周波数領域を複数の周波数帯域に分割する手段と、
前記各周波数帯域のパワーを算出する手段と、
マスキング閾値を決定する手段と、
前記算出されたパワーと前記マスキング閾値とに基づきマスキング閾値対雑音比を算出する手段と、
前記マスキング閾値対雑音比に基づき前記各周波数帯域にビット割り当てを行う割り当て手段と、を備える符号化装置において、
前記算出されたパワーの最大値と平均値の差分値が所定値以上であり、かつ、前記パワーの最大値が存在する周波数が所定周波数以下である場合、前記パワーの最大値が存在するサブバンドフレームの全ての周波数帯域に、少なくとも最低量子化ビット数以上のビットを割り当てるよう前記割り当て手段に指示を行う手段を備えることを特徴とする符号化装置。Means for dividing digital data such as music and voice into a plurality of subband frames;
Means for converting to the frequency domain for each subband frame unit;
Means for dividing the frequency domain into a plurality of frequency bands;
Means for calculating the power of each frequency band;
Means for determining a masking threshold;
Means for calculating a masking threshold to noise ratio based on the calculated power and the masking threshold;
In an encoding device comprising: allocation means for performing bit allocation to each frequency band based on the masking threshold-to-noise ratio ;
When the calculated difference value between the maximum value and the average value is equal to or greater than a predetermined value, and the frequency at which the maximum power value exists is equal to or less than the predetermined frequency, the subband in which the maximum power value exists An encoding apparatus comprising: means for instructing the assigning means to assign at least the minimum quantization bit number to all frequency bands of a frame.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001158767A JP3776004B2 (en) | 2001-05-28 | 2001-05-28 | Encoding method of digital data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2001158767A JP3776004B2 (en) | 2001-05-28 | 2001-05-28 | Encoding method of digital data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002351500A JP2002351500A (en) | 2002-12-06 |
| JP3776004B2 true JP3776004B2 (en) | 2006-05-17 |
Family
ID=19002438
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2001158767A Expired - Fee Related JP3776004B2 (en) | 2001-05-28 | 2001-05-28 | Encoding method of digital data |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3776004B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1618763B1 (en) * | 2003-04-17 | 2007-02-28 | Koninklijke Philips Electronics N.V. | Audio signal synthesis |
| EP1870880B1 (en) | 2006-06-19 | 2010-04-07 | Sharp Kabushiki Kaisha | Signal processing method, signal processing apparatus and recording medium |
| JP5189760B2 (en) * | 2006-12-15 | 2013-04-24 | シャープ株式会社 | Signal processing method, signal processing apparatus, and program |
| JP4698688B2 (en) | 2007-02-27 | 2011-06-08 | シャープ株式会社 | Transmission / reception method, transmission / reception apparatus, and program |
| CN104575508B (en) * | 2013-10-15 | 2018-07-13 | 京微雅格(北京)科技有限公司 | A kind of processing method and its device of audio signal modified tone |
| CN111724800B (en) * | 2020-06-18 | 2023-05-12 | 长沙深之瞳信息科技有限公司 | Moss code audio noise reduction method and noise reduction earphone using same |
-
2001
- 2001-05-28 JP JP2001158767A patent/JP3776004B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2002351500A (en) | 2002-12-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3328532B2 (en) | Digital data encoding method | |
| US6169973B1 (en) | Encoding method and apparatus, decoding method and apparatus and recording medium | |
| JP3123290B2 (en) | Compressed data recording device and method, compressed data reproducing method, recording medium | |
| JP3123286B2 (en) | Digital signal processing device or method, and recording medium | |
| JP3173218B2 (en) | Compressed data recording method and apparatus, compressed data reproducing method, and recording medium | |
| JP3186307B2 (en) | Compressed data recording apparatus and method | |
| JPH08190764A (en) | Digital signal processing method, digital signal processing device and recording medium | |
| JPH06180948A (en) | Method and unit for processing digital signal and recording medium | |
| JP3531177B2 (en) | Compressed data recording apparatus and method, compressed data reproducing method | |
| JPH07154265A (en) | Information compression method and device, compressed information decompression method and device, compressed information recording / transmission device, compressed information reproducing device, compressed information receiving device, and recording medium | |
| JP3776004B2 (en) | Encoding method of digital data | |
| JP4271588B2 (en) | Encoding method and encoding apparatus for digital data | |
| JP3942882B2 (en) | Digital signal encoding apparatus and digital signal recording apparatus having the same | |
| JP4470304B2 (en) | Compressed data recording apparatus, recording method, compressed data recording / reproducing apparatus, recording / reproducing method, and recording medium | |
| JP3531178B2 (en) | Digital signal processing apparatus and method | |
| JP4822697B2 (en) | Digital signal encoding apparatus and digital signal recording apparatus | |
| JP3334374B2 (en) | Digital signal compression method and apparatus | |
| JP4293833B2 (en) | Digital signal recording / reproducing apparatus and control program therefor | |
| JP3186489B2 (en) | Digital signal processing method and apparatus | |
| JP3175456B2 (en) | Digital signal processor | |
| JP4627737B2 (en) | Digital data decoding device | |
| JP4649351B2 (en) | Digital data decoding device | |
| JP4732478B2 (en) | Digital signal reproducing apparatus and control program therefor | |
| JPH11330974A (en) | Encoding method, decoding method, encoding device, decoding device, digital signal recording method, digital signal recording device, recording medium, digital signal transmission method, and digital signal transmission device | |
| JP3477735B2 (en) | Compressed data conversion apparatus and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20041227 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050125 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050308 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051213 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060118 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20060221 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060221 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100303 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100303 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110303 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120303 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120303 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130303 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130303 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140303 Year of fee payment: 8 |
|
| LAPS | Cancellation because of no payment of annual fees |