JP2009180893A - Content playback device controlled with acoustic signal - Google Patents

Content playback device controlled with acoustic signal Download PDF

Info

Publication number
JP2009180893A
JP2009180893A JP2008019151A JP2008019151A JP2009180893A JP 2009180893 A JP2009180893 A JP 2009180893A JP 2008019151 A JP2008019151 A JP 2008019151A JP 2008019151 A JP2008019151 A JP 2008019151A JP 2009180893 A JP2009180893 A JP 2009180893A
Authority
JP
Japan
Prior art keywords
content
frame
code
sound
acoustic signal
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
JP2008019151A
Other languages
Japanese (ja)
Inventor
Toshio Motegi
敏雄 茂出木
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2008019151A priority Critical patent/JP2009180893A/en
Publication of JP2009180893A publication Critical patent/JP2009180893A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a content playback device controlled with acoustic signals for providing a guide terminal inexpensive and easy to operate using with a general purpose terminal. <P>SOLUTION: When a person holds this device materialized as a portable terminal device and approaches an exhibit, an acoustic signal input means 210 obtains sound emitted from a speaker installed near the exhibit as an acoustic signal, and an ID extraction means 220 extracts an embedded content ID from the acoustic signal. A playback list holding means 230 obtains a content playback list of the content corresponding to the extracted content ID from a content storage means 200 and holds it. Meanwhile, a playback means 240 refers to the playback list holding means 230, extracts the content from the content storage means 200, and plays back it according to the playback list. A different content is played back at each time when the person approaches the exhibit by making the sound in which the ID for specifying the content related to the exhibit is embedded be emitted from the speaker near the exhibit. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、博物館、美術館、テーマパーク、イベント会場における携帯端末を用いた展示物のガイドシステムで、展示物に連動した関連情報を画像(静止画・動画)、文字情報、音声情報により携帯端末へサービスする技術に関する。   The present invention is a guide system for exhibits using portable terminals in museums, art galleries, theme parks, and event venues, and related information linked to the exhibits is displayed using images (still images / moving images), text information, and voice information. Related to the technology to service.

近年、博物館等においては、音声ガイド端末を来館者に貸与する手法が普及している。この音声ガイド端末では、音声ファイルにランダムアクセス可能としており、展示会場内の説明ポイントに明示された番号を端末上でボタン指示することにより、来館者のペースに合わせて解説を聞く手法がとられている。しかし、従来の音声ガイド端末は、年配者、子供にはボタン操作が難しいという問題や、専用端末であるため、重く、高価であるという問題がある。   In recent years, in a museum or the like, a method of lending a voice guide terminal to a visitor has become widespread. This audio guide terminal allows random access to audio files, and a method of listening to explanations at the pace of the visitor by giving a button on the terminal to the number specified for the explanation point in the exhibition hall. ing. However, the conventional voice guidance terminal has a problem that it is difficult for an elderly person and a child to operate buttons, and a dedicated terminal, so that it is heavy and expensive.

ボタン操作が難しいという問題に対しては、説明ポイントのID番号や赤外線やICタグを用いて端末に送信し、来館者が作品の前に近付くと端末側で自動的に解説を切り替えるシステムが開発されている(特許文献1参照)。また、専用端末であるため、重く、高価であるという問題に対しては、汎用の携帯電話で音声ガイドを実現しようという提案がなされている(特許文献2参照)。
特開2005−316851号公報 実用新案登録第3124080号
To solve the problem of difficult button operation, a system has been developed that uses the ID number of the explanation points, infrared rays, and IC tags to send to the terminal, and automatically switches the explanation on the terminal side when the visitor approaches the work. (See Patent Document 1). Moreover, since it is a dedicated terminal, a proposal has been made to realize voice guidance with a general-purpose mobile phone for the problem of being heavy and expensive (see Patent Document 2).
JP 2005-316851 A Utility model registration No. 3124080

しかしながら、上記特許文献1に記載の技術では、展示場内にID送信設備を設置する必要があり、端末側も赤外線やICタグリーダを備えなければならず、システム運用コストが割高になるという問題がある。また、上記特許文献2に記載の技術では、装置コストは下がるものの操作性は逆に悪くなるという問題がある。   However, in the technique described in Patent Document 1, it is necessary to install an ID transmission facility in the exhibition hall, and the terminal side must also be provided with an infrared ray or an IC tag reader. . Further, the technique described in Patent Document 2 has a problem that the operability is adversely affected although the apparatus cost is reduced.

そこで、本発明は、汎用端末を利用して、操作が簡単で、かつ安価なガイド端末を提供することが可能な、音響信号で制御されるコンテンツ再生装置を提供することを課題とする。   Accordingly, an object of the present invention is to provide a content reproduction apparatus controlled by an acoustic signal, which can provide a guide terminal that is easy to operate and inexpensive using a general-purpose terminal.

上記課題を解決するため、本発明では、コンテンツを特定するコンテンツIDがあらかじめ埋め込まれた音響信号を入力し、前記入力された音響信号より前記コンテンツIDを抽出し、前記抽出されたコンテンツIDに対応する複数のフレームで構成されるコンテンツを検索し、所定の順序で各フレームを再生するコンテンツの再生装置であって、静止画、動画、音声の少なくとも1つを含む複数のフレームで構成されるコンテンツと、各コンテンツにおける再生順序を示した再生リストを、前記コンテンツIDと対応付けて記憶するコンテンツ記憶手段と、前記音響信号の所定区間を録音し、音声ファイルを作成する音響信号入力手段と、前記音声ファイルから埋め込まれているコンテンツIDを抽出するID抽出手段と、前記ID抽出手段により抽出されたコンテンツIDに対応する再生リストを保持する再生リスト保持手段と、再生リスト保持手段に保持されている再生リストに従って、前記コンテンツ記憶手段よりコンテンツを取得するとともに、コンテンツ内のフレームを再生する再生手段を有する音響信号で制御されるコンテンツの再生装置を提供する。   In order to solve the above problem, in the present invention, an acoustic signal in which a content ID for specifying content is embedded is input, the content ID is extracted from the input acoustic signal, and the extracted content ID is supported. A content playback device that searches for content composed of a plurality of frames and reproduces each frame in a predetermined order, the content composed of a plurality of frames including at least one of a still image, a moving image, and audio A content storage means for storing a reproduction list indicating a reproduction order in each content in association with the content ID, an acoustic signal input means for recording a predetermined section of the acoustic signal and creating an audio file, ID extracting means for extracting the content ID embedded from the audio file, and the ID extracting means In accordance with the playlist holding means for holding the playlist corresponding to the content ID extracted by the above, and the playlist stored in the playlist holding means, the content is acquired from the content storage means and the frame in the content is played back. Provided is a content playback apparatus controlled by an acoustic signal having playback means for performing the above-described operation.

本発明によれば、コンテンツIDが埋め込まれた音を録音して、コンテンツIDを抽出し、そのコンテンツIDに対応するコンテンツを所定の順序で再生するようにしたので、汎用端末を利用して、操作が簡単で、かつ安価なガイド端末を提供することが可能となる。特に、携帯型端末にコンテンツを記憶しておき、各展示物付近から展示物に対応したコンテンツIDを埋め込んだ音を発するようにした場合、各展示物の付近に移動するたびに異なるコンテンツが再生され、各展示物のガイドとしての役割を果たす。   According to the present invention, the sound in which the content ID is embedded is recorded, the content ID is extracted, and the content corresponding to the content ID is reproduced in a predetermined order. It is possible to provide a guide terminal that is easy to operate and inexpensive. In particular, when content is stored in a portable terminal and a sound is embedded from the vicinity of each exhibit with a content ID corresponding to the exhibit, a different content is played each time it moves to the vicinity of each exhibit. And serve as a guide for each exhibit.

以下、本発明の実施形態について図面を参照して詳細に説明する。
(1.コンテンツIDの埋め込み)
本発明に係るコンテンツ再生装置では、音響信号を音楽プレーヤで再生することで発せられた音を音響信号として取得し、この音響信号から、もとの音響信号に埋め込まれていたコンテンツIDを抽出する処理を行う。そこで、まず、音響信号に対するコンテンツIDの埋め込みについて説明する。図1は、音響信号にコンテンツIDを埋め込むための埋め込み装置の構成を示す機能ブロック図である。図1において、10は音響フレーム読込手段、20は周波数変換手段、30は周波数成分変更手段、40は周波数逆変換手段、50は改変音響フレーム出力手段、60は記憶手段、61は音響信号記憶部、62は付加情報記憶部、63は改変音響信号記憶部、70はビット配列作成手段、80は変換テーブル作成手段である。なお、図1に示す装置は、ステレオ音響信号、モノラル音響信号の両方に対応可能であるが、ここでは、ステレオ音響信号に対して処理を行う場合について説明していく。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(1. Embedding content ID)
In the content reproduction apparatus according to the present invention, a sound generated by reproducing an acoustic signal with a music player is acquired as an acoustic signal, and a content ID embedded in the original acoustic signal is extracted from the acoustic signal. Process. Therefore, first, embedding of the content ID into the acoustic signal will be described. FIG. 1 is a functional block diagram showing a configuration of an embedding device for embedding a content ID in an acoustic signal. In FIG. 1, 10 is an acoustic frame reading means, 20 is a frequency converting means, 30 is a frequency component changing means, 40 is a frequency inverse converting means, 50 is a modified acoustic frame output means, 60 is a storage means, and 61 is an acoustic signal storage section. , 62 is an additional information storage unit, 63 is a modified acoustic signal storage unit, 70 is a bit array creation unit, and 80 is a conversion table creation unit. The apparatus shown in FIG. 1 can deal with both a stereo sound signal and a monaural sound signal. Here, a case where processing is performed on a stereo sound signal will be described.

音響フレーム読込手段10は、付加情報の埋め込み対象とする元のステレオ音響信号の各チャンネルから所定数のサンプルを1フレームとして読み込む機能を有している。周波数変換手段20は、音響フレーム読込手段10が読み込んだ音響信号のフレームをフーリエ変換等により周波数変換してスペクトルを生成する機能を有している。周波数成分変更手段30は、生成されたスペクトルから所定の周波数範囲に相当するスペクトル集合を複数抽出し、付加情報記憶部62から抽出した付加情報よりビット配列作成手段70が作成したビット配列に基づいて、スペクトル集合の状態を変更する機能を有している。周波数逆変換手段40は、変更されたスペクトル集合を含む複数のスペクトルに対して周波数逆変換を行うことにより、改変音響フレームを生成する機能を有している。改変音響フレーム出力手段50は、生成された改変音響フレームを順次出力する機能を有している。   The sound frame reading means 10 has a function of reading a predetermined number of samples as one frame from each channel of the original stereo sound signal to be embedded with additional information. The frequency conversion means 20 has a function of generating a spectrum by frequency-converting the frame of the acoustic signal read by the acoustic frame reading means 10 by Fourier transformation or the like. The frequency component changing unit 30 extracts a plurality of spectrum sets corresponding to a predetermined frequency range from the generated spectrum, and based on the bit arrangement created by the bit arrangement creating unit 70 from the additional information extracted from the additional information storage unit 62. The function of changing the state of the spectrum set is provided. The frequency inverse transform means 40 has a function of generating a modified acoustic frame by performing frequency inverse transform on a plurality of spectra including the changed spectrum set. The modified sound frame output means 50 has a function of sequentially outputting the generated modified sound frames.

記憶手段60は、付加情報を埋め込む対象とするステレオ音響信号を記憶した音響信号記憶部61と、ビット列として構成され、ステレオ音響信号に埋め込まれる付加情報を記憶した付加情報記憶部62と、付加情報埋め込み後の改変音響信号を記憶する改変音響信号記憶部63を有しており、その他処理に必要な各種情報を記憶するものである。ビット配列作成手段70は、付加情報記憶部62から付加情報を抽出し、付加情報の各ワードについて、変換テーブル作成手段80を参照し、対応するビット配列を作成する機能を有している。変換テーブル作成手段80は、Nwビットが取り得る2のNw乗個の全ての登録順位に対して、互いにハミング距離が少なくとも4以上となるNh(>Nw)ビットのハミング符号を割り当てることにより、Nwビットの登録順位とNhビットのハミング符号が対応付けられた符号変換テーブルを作成する機能を有している。ここで、登録順位とは、Nwビットを10進で表現した場合の値を示しており、Nw=7の場合、登録順位は、0〜127で表現される。   The storage means 60 includes an acoustic signal storage unit 61 that stores a stereo acoustic signal to be embedded as additional information, an additional information storage unit 62 that is configured as a bit string and stores additional information embedded in the stereo acoustic signal, and additional information. It has a modified acoustic signal storage unit 63 for storing the modified acoustic signal after embedding, and stores various information necessary for other processing. The bit array creating unit 70 has a function of extracting additional information from the additional information storage unit 62 and referring to the conversion table creating unit 80 for each word of the additional information to create a corresponding bit array. The conversion table creating means 80 assigns Nw (> Nw) bits of a Hamming code having a Hamming distance of at least 4 to all registration ranks of 2 Nw powers that can be taken by Nw bits. It has a function of creating a code conversion table in which bit registration ranks are associated with Nh-bit Hamming codes. Here, the registration order indicates a value when Nw bits are expressed in decimal. When Nw = 7, the registration order is expressed by 0 to 127.

なお、付加情報とは、音響情報に付加して埋め込むべき情報であり、具体的には、コンテンツを特定するコンテンツIDである。また、本実施形態では、上記Nw、NhをそれぞれNw=7、Nh=12としている。本実施形態では、付加情報のコード形式としてASCIIコードを採用するため、付加情報においてはNw=7となり、7ビットが1ワードとなる。また、ビット配列作成手段70が作成するビット配列は、12ビットとなり、ビット配列作成後は、これを1ワードとして処理している。図1に示した各構成手段は、現実にはコンピュータおよびその周辺機器等のハードウェアに専用のプログラムを搭載することにより実現される。すなわち、コンピュータが、専用のプログラムに従って各手段の内容を実行することになる。   The additional information is information that should be added to the acoustic information and embedded, and is specifically a content ID that identifies the content. In this embodiment, Nw and Nh are set to Nw = 7 and Nh = 12, respectively. In the present embodiment, since the ASCII code is adopted as the code format of the additional information, Nw = 7 in the additional information, and 7 bits are one word. The bit array created by the bit array creating means 70 is 12 bits, and after the bit array is created, this is processed as one word. Each component shown in FIG. 1 is actually realized by installing a dedicated program in hardware such as a computer and its peripheral devices. That is, the computer executes the contents of each means according to a dedicated program.

次に、図1に示した埋め込み装置の処理動作について説明する。音響フレーム読込手段10は、音響信号記憶部61に記憶されたステレオ音響信号の左右の各チャンネルから、それぞれ所定数Nのサンプルを1音響フレームとして読み込む。音響フレーム読込手段10が読み込む1音響フレームのサンプル数Nは、適宜設定することができるが、サンプリング周波数が44.1kHzの場合、4096サンプル程度とすることが望ましい。したがって、音響フレーム読込手段10は、左チャンネル、右チャンネルについてそれぞれ4096サンプルずつ、順次音響フレームとして読み込んでいくことになる。   Next, the processing operation of the embedding device shown in FIG. 1 will be described. The sound frame reading means 10 reads a predetermined number N of samples as one sound frame from each of the left and right channels of the stereo sound signal stored in the sound signal storage unit 61. The number N of samples of one acoustic frame read by the acoustic frame reading means 10 can be set as appropriate, but is desirably about 4096 samples when the sampling frequency is 44.1 kHz. Therefore, the acoustic frame reading means 10 sequentially reads 4096 samples for each of the left channel and the right channel as acoustic frames.

音響フレームとしては、AタイプとBタイプが存在する。Aタイプの音響フレーム、Bタイプの音響フレームは、それぞれ同タイプの先行する音響フレームの最後のサンプルの次のサンプルを先頭サンプルとして設定される。そして、AタイプとBタイプの音響フレームは互いに所定数(本実施形態では2048)のサンプルを重複して設定される。例えば、Aタイプの音響フレームを先頭からA1、A2、A3…とし、Bタイプの音響フレームを先頭からB1、B2、B3…とすると、A1はサンプル1〜4096、A2はサンプル4097〜8192、A3はサンプル8193〜12288、B1はサンプル2049〜6144、B2はサンプル6145〜10240、B3はサンプル10241〜14336となる。なお、AタイプとBタイプは相対的なものであるので、どちらが先であっても良い。すなわち、上記とは逆にA1がサンプル2049〜6144、A2がサンプル6145〜10240、A3がサンプル10241〜14336、B1がサンプル1〜4096、B2がサンプル4097〜8192、B3がサンプル8193〜12288であっても良い。   There are A type and B type as acoustic frames. In the A-type acoustic frame and the B-type acoustic frame, the next sample after the last sample of the preceding acoustic frame of the same type is set as the first sample. The A-type and B-type sound frames are set by overlapping a predetermined number (2048 in this embodiment) of samples. For example, if the A type acoustic frame is A1, A2, A3... From the top and the B type acoustic frame is B1, B2, B3... From the top, A1 is samples 1 to 4096, A2 is samples 4097 to 8192, A3. Is samples 8193-12288, B1 is samples 2049-6144, B2 is samples 6145-10240, and B3 is samples 10241-14336. Since the A type and the B type are relative, either one may be first. In other words, A1 is samples 2049 to 6144, A2 is samples 6145 to 10240, A3 is samples 10241 to 14336, B1 is samples 1 to 4096, B2 is samples 4097 to 8192, and B3 is samples 8193 to 12288. May be.

周波数変換手段20は、振幅変換後の音響フレームに対して周波数変換を行って、その音響フレームのスペクトルを得る。具体的には、窓関数を利用して周波数変換を行う。周波数変換としては、フーリエ変換、ウェーブレット変換その他公知の種々の手法を用いることができる。本実施形態では、フーリエ変換を用いた場合を例にとって説明する。   The frequency converting means 20 performs frequency conversion on the acoustic frame after amplitude conversion, and obtains the spectrum of the acoustic frame. Specifically, frequency conversion is performed using a window function. As frequency conversion, Fourier transform, wavelet transform, and other various known methods can be used. In the present embodiment, a case where Fourier transform is used will be described as an example.

一般に、所定の信号に対してフーリエ変換を行う場合、信号を所定の長さに区切って行う必要があるが、この場合、所定長さの信号に対してそのままフーリエ変換を行うと、擬似高調波成分が発生する。そこで、一般にフーリエ変換を行う場合には、ハニング窓と呼ばれる窓関数を用いて、信号の値を変化させた後、変化後の値に対してフーリエ変換を実行する。   In general, when Fourier transform is performed on a predetermined signal, it is necessary to divide the signal into predetermined lengths. In this case, if Fourier transform is performed on a signal of a predetermined length as it is, a pseudo-harmonic wave is generated. Ingredients are generated. Therefore, in general, when performing Fourier transform, a signal value is changed using a window function called a Hanning window, and then Fourier transform is performed on the changed value.

本実施形態においても、窓関数を利用しているが、Aタイプの音響フレーム、Bタイプの音響フレームで、使用する窓関数を分けている。本実施形態では、図2(a)(b)に示したような第1窓関数W(1,i)、第2窓関数W(2,i)を用意し、抽出側で認識し易いようにした。第1窓関数W(1,i)は、Aタイプの音響フレームに対して用いるためのものであり、図2(a)に示すように所定のサンプル番号iの位置において、最大値1をとり、後部においては、最小値0をとるように設定されている。どのサンプル番号の場合に最大値をとるかについては、窓関数W(1,i)の設計によって異なってくるが、本実施形態では、後述する〔数式1〕で定義される。Aタイプの音響フレームについてのフーリエ変換は、この窓関数W(1,i)を乗じたものに対して行われることになる。   In this embodiment, the window function is used, but the window function to be used is divided into the A type acoustic frame and the B type acoustic frame. In the present embodiment, the first window function W (1, i) and the second window function W (2, i) as shown in FIGS. 2A and 2B are prepared so that the extraction side can easily recognize them. I made it. The first window function W (1, i) is for use with an A type acoustic frame, and has a maximum value of 1 at the position of a predetermined sample number i as shown in FIG. In the rear part, the minimum value is set to 0. Which sample number takes the maximum value depends on the design of the window function W (1, i), but in this embodiment, it is defined by [Equation 1] described later. The Fourier transform for the A type acoustic frame is performed on the product of the window function W (1, i).

また、第2窓関数W(2,i)は、Bタイプの音響フレームに対して用いるためのものであり、図2(b)に示すように、所定のサンプル番号iの位置において、最大値1をとり、前部においては、最小値0をとるように設定されている。どのサンプル番号の場合に最大値をとるかについては、窓関数W(2,i)の設計によって異なってくるが、本実施形態では、後述する〔数式2〕で定義される。Bタイプの音響フレームについてのフーリエ変換は、この窓関数W(2,i)を乗じたものに対して行われることになる。   The second window function W (2, i) is for use with a B-type acoustic frame, and has a maximum value at the position of a predetermined sample number i as shown in FIG. 1 is set, and the front portion is set to have a minimum value of 0. Which sample number takes the maximum value depends on the design of the window function W (2, i), but in this embodiment, it is defined by [Expression 2] described later. The Fourier transform for the B type acoustic frame is performed on the product of the window function W (2, i).

なお、上述のように、本実施形態においては、音響フレームは重複して読み込まれる。すなわち、奇数番目の音響フレームと偶数番目の音響フレームは、所定数のサンプルを重複して読み込む。上記のように、奇数フレームと偶数フレームでは、用いられる窓関数が異なるが、奇数フレームと偶数フレームは単に奇数か偶数かの違いだけであるため、どちらに対してどちらの処理を行っても良い。したがって、本明細書では、奇数フレーム、偶数フレームの一方をAタイプフレーム、他方をBタイプフレームと呼ぶことにする。本実施形態では、奇数フレームをAタイプフレーム、偶数フレームをBタイプフレームとして説明するが、逆に偶数フレームをAタイプフレーム、奇数フレームをBタイプフレームとしても良い。   As described above, in the present embodiment, the sound frame is read in duplicate. That is, a predetermined number of samples are redundantly read in the odd-numbered sound frames and the even-numbered sound frames. As described above, the window function used is different between the odd frame and the even frame, but since either the odd frame or the even frame is simply the difference between the odd frame and the even frame, either process may be performed on either. . Therefore, in this specification, one of the odd-numbered frame and the even-numbered frame is referred to as an A-type frame, and the other is referred to as a B-type frame. In the present embodiment, an odd frame is described as an A type frame and an even frame is described as a B type frame. Conversely, an even frame may be an A type frame and an odd frame may be a B type frame.

本実施形態では、窓関数W(1,i)、W(2,i)は、以下の〔数式1〕〔数式2〕で定義される。なお、図2において、横軸は時間軸(i)である。iは、後述するように、各音響フレーム内のN個のサンプルに付した通し番号であるため時刻tに比例している。また、図2(a)(b)において縦軸は信号の振幅値(レベル)を示す。図2(a)(b)において縦軸は窓関数W(1,i)、W(2,i)の値を示しており、W(1,i)、W(2,i)の最大値はいずれも1である。   In the present embodiment, the window functions W (1, i) and W (2, i) are defined by the following [Equation 1] and [Equation 2]. In FIG. 2, the horizontal axis is the time axis (i). As described later, i is a serial number assigned to N samples in each acoustic frame, and is proportional to time t. 2A and 2B, the vertical axis indicates the amplitude value (level) of the signal. 2A and 2B, the vertical axis indicates the values of the window functions W (1, i) and W (2, i), and the maximum values of W (1, i) and W (2, i). Are all 1.

〔数式1〕
i≦N/8のとき、W(1,i)=0.0
N/8<i≦3N/8のとき、W(1,i)=0.5−0.5cos(4π(i−N/8)/N)
3N/8<i≦11N/16のとき、W(1,i)=1.0
11N/16<i≦13N/16のとき、W(1,i)=0.5+0.5cos(8π(i−11N/16)/N)
i>13N/16のとき、W(1,i)=0.0
[Formula 1]
When i ≦ N / 8, W (1, i) = 0.0
When N / 8 <i ≦ 3N / 8, W (1, i) = 0.5−0.5 cos (4π (i−N / 8) / N)
When 3N / 8 <i ≦ 11N / 16, W (1, i) = 1.0
When 11N / 16 <i ≦ 13N / 16, W (1, i) = 0.5 + 0.5 cos (8π (i-11N / 16) / N)
When i> 13N / 16, W (1, i) = 0.0

〔数式2〕
i≦3N/16のとき、W(2,i)=0.0
3N/16<i≦5N/16のとき、W(2,i)=0.5−0.5cos(8π(i−3N/16)/N)
5N/16<i≦5N/8のとき、W(2,i)=1.0
5N/8<i≦7N/8のとき、W(2,i)=0.5+0.5cos(4π(i−5N/8)/N)
i>7N/8のとき、W(1,i)=0.0
[Formula 2]
When i ≦ 3N / 16, W (2, i) = 0.0
When 3N / 16 <i ≦ 5N / 16, W (2, i) = 0.5−0.5 cos (8π (i−3N / 16) / N)
When 5N / 16 <i ≦ 5N / 8, W (2, i) = 1.0
When 5N / 8 <i ≦ 7N / 8, W (2, i) = 0.5 + 0.5 cos (4π (i−5N / 8) / N)
When i> 7N / 8, W (1, i) = 0.0

なお、図2および上記〔数式1〕〔数式2〕から明らかなように、窓関数W(1,i)とW(2,i)は、互いに非対称な形状である。これは、後述する抽出側において、両者の識別を容易にするためである。   As is clear from FIG. 2 and [Formula 1] and [Formula 2], the window functions W (1, i) and W (2, i) are asymmetrical to each other. This is for facilitating identification between the two on the extraction side described later.

本発明においては、奇数フレームと偶数フレームを、所定サンプルずつ重複して読み込むため、情報の埋め込みを行った後、音響信号に復元する際に、窓関数を乗じた奇数フレームと、窓関数を乗じた偶数フレームの重複サンプルを加算した場合に、ほぼ元の値に戻るようにしなければならない。このため、奇数フレームと偶数フレームの重複部分において、窓関数W(1,i)、W(2,i)を加算すると、全区間固定値1になるように定義されている。   In the present invention, since odd frames and even frames are redundantly read by a predetermined number of samples, after embedding information and then restoring to an acoustic signal, the odd frame multiplied by the window function and the window function are multiplied. When overlapping samples of even frames are added, it is necessary to return almost to the original value. For this reason, when the window functions W (1, i) and W (2, i) are added in the overlapping portion of the odd frame and the even frame, it is defined to be a fixed value 1 for all sections.

周波数変換手段20が、Aタイプの音響フレームに対してフーリエ変換を行う場合は、左チャンネル信号Xl(i)、右チャンネル信号Xr(i)(i=0,…,N−1)に対して、窓関数W(1,i)を用いて、以下の〔数式3〕に従った処理を行い、左チャンネルに対応する変換データの実部Al(1,j)、虚部Bl(1,j)、右チャンネルに対応する変換データの実部Ar(1,j)、虚部Br(1,j)を得る。   When the frequency conversion means 20 performs Fourier transform on the A type sound frame, the left channel signal Xl (i) and the right channel signal Xr (i) (i = 0,..., N−1). The window function W (1, i) is used to perform processing according to the following [Equation 3], and real part Al (1, j) and imaginary part Bl (1, j) of the conversion data corresponding to the left channel are performed. ), Real part Ar (1, j) and imaginary part Br (1, j) of the conversion data corresponding to the right channel are obtained.

〔数式3〕
Al(1,j)=Σi=0,…,N-1W(1,i)・Xl(i)・cos(2πij/N)
Bl(1,j)=Σi=0,…,N-1W(1,i)・Xl(i)・sin(2πij/N)
Ar(1,j)=Σi=0,…,N-1W(1,i)・Xr(i)・cos(2πij/N)
Br(1,j)=Σi=0,…,N-1W(1,i)・Xr(i)・sin(2πij/N)
[Formula 3]
Al (1, j) = Σi = 0,..., N-1 W (1, i) .Xl (i) .cos (2πij / N)
Bl (1, j) = Σi = 0,..., N-1 W (1, i) · Xl (i) · sin (2πij / N)
Ar (1, j) = Σi = 0,..., N-1 W (1, i) .Xr (i) .cos (2πij / N)
Br (1, j) = Σ i = 0,..., N-1 W (1, i) · Xr (i) · sin (2πij / N)

周波数変換手段20が、Bタイプの音響フレームに対してフーリエ変換を行う場合は、左チャンネル信号Xl(i+N/2)、右チャンネル信号Xr(i+N/2)(i=0,…,N−1)に対して、窓関数W(2,i)を用いて、以下の〔数式4〕に従った処理を行い、左チャンネルに対応する変換データの実部Al(2,j)、虚部Bl(2,j)、右チャンネルに対応する変換データの実部Ar(2,j)、虚部Br(2,j)を得る。   When the frequency converting means 20 performs Fourier transform on the B type sound frame, the left channel signal Xl (i + N / 2), the right channel signal Xr (i + N / 2) (i = 0,..., N−1) ) Is processed using the window function W (2, i) according to the following [Equation 4], and the real part Al (2, j) and imaginary part Bl of the conversion data corresponding to the left channel are performed. (2, j), real part Ar (2, j) and imaginary part Br (2, j) of the conversion data corresponding to the right channel are obtained.

〔数式4〕
Al(2,j)=Σi=0,…,N-1W(2,i)・Xl(i+N/2)・cos(2πij/N)
Bl(2,j)=Σi=0,…,N-1W(2,i)・Xl(i+N/2)・sin(2πij/N)
Ar(2,j)=Σi=0,…,N-1W(2,i)・Xr(i+N/2)・cos(2πij/N)
Br(2,j)=Σi=0,…,N-1W(2,i)・Xr(i+N/2)・sin(2πij/N)
[Formula 4]
Al (2, j) = Σi = 0,..., N-1 W (2, i) · Xl (i + N / 2) · cos (2πij / N)
Bl (2, j) = Σi = 0,..., N-1 W (2, i) .Xl (i + N / 2) .sin (2πij / N)
Ar (2, j) = Σi = 0,..., N-1 W (2, i) .Xr (i + N / 2) .cos (2πij / N)
Br (2, j) = Σi = 0,..., N-1 W (2, i) .Xr (i + N / 2) .sin (2πij / N)

上記〔数式3〕〔数式4〕において、iは、各音響フレーム内のN個のサンプルに付した通し番号であり、i=0,1,2,…N−1の整数値をとる。また、jは周波数の値について、値の小さなものから順に付した通し番号であり、iと同様にj=0,1,2,…N/2−1の整数値をとる。サンプリング周波数が44.1kHz、N=4096の場合、jの値が1つ異なると、周波数が10.8Hz異なることになる。   In the above [Expression 3] and [Expression 4], i is a serial number assigned to N samples in each acoustic frame, and takes an integer value of i = 0, 1, 2,... N−1. Further, j is a serial number assigned in order from the smallest value of the frequency value, and takes an integer value of j = 0, 1, 2,... N / 2-1 like i. When the sampling frequency is 44.1 kHz and N = 4096, if the value of j is different by one, the frequency will be different by 10.8 Hz.

上記〔数式3〕〔数式4〕に従った処理を実行することにより、各音響フレームの各窓関数に対応するスペクトルが得られる。続いて、周波数成分変更手段30が、生成されたスペクトルから所定周波数範囲のスペクトル集合を抽出する。本実施形態では、F1以上F2以下の範囲のものを抽出する。   By executing the processing according to the above [Equation 3] and [Equation 4], a spectrum corresponding to each window function of each acoustic frame is obtained. Subsequently, the frequency component changing unit 30 extracts a spectrum set in a predetermined frequency range from the generated spectrum. In the present embodiment, a range between F1 and F2 is extracted.

周波数変換手段20は、周波数変換を実行した後に、各スペクトル集合の平均値が設定値になるように変換する。いわゆる振幅を変換する処理を行う。この振幅変換は、各フレームごとのレベル差を軽減し、適切な情報の埋め込みが可能になるようにすることを目的としているため、設定値としては適宜設定することができるが、本実施形態では、128に設定するようにしている。   After performing the frequency conversion, the frequency conversion means 20 performs conversion so that the average value of each spectrum set becomes a set value. A so-called amplitude conversion process is performed. The purpose of this amplitude conversion is to reduce the level difference for each frame so that appropriate information can be embedded. Therefore, the set value can be set as appropriate. , 128 is set.

周波数変換手段20は、得られたスペクトル集合に対して、振幅変換を行うにあたり、まず変換倍率の算出を行う。変換倍率の算出は、所定周波数範囲のスペクトル集合の実効強度値の平均である平均実効値で上記設定値を除算することにより行う。具体的には、LチャンネルのAタイプの音響フレーム、Bタイプの音響フレーム、RチャンネルのAタイプの音響フレーム、Bタイプの音響フレームのスペクトル集合についての変換倍率Zl(1)、Zl(2)、Zr(1)、Zr(2)は、以下の〔数式5〕に従った処理により算出される。対象音響フレームが無音に近く、分母の二乗総和値が所定の値に満たない場合は、変換倍率を1.0に設定し、振幅変換は行わないようにする。振幅変換が実行されることにより、全ての音響フレームは、元の状態における信号強度に関わらず、各音響フレームのスペクトル集合の平均実効値が設定値となるように振幅変換された状態で、情報の埋め込みが行われることになる。   The frequency conversion means 20 first calculates the conversion magnification when performing the amplitude conversion on the obtained spectrum set. The conversion magnification is calculated by dividing the set value by an average effective value that is an average of effective intensity values of a spectrum set in a predetermined frequency range. Specifically, conversion magnifications Zl (1) and Zl (2) for spectrum sets of the L-channel A-type acoustic frame, the B-type acoustic frame, the R-channel A-type acoustic frame, and the B-type acoustic frame. , Zr (1), Zr (2) are calculated by processing according to the following [Equation 5]. When the target sound frame is close to silence and the square sum of the denominator is less than a predetermined value, the conversion magnification is set to 1.0 and the amplitude conversion is not performed. By performing the amplitude conversion, all the sound frames are in the state of amplitude conversion so that the average effective value of the spectrum set of each sound frame becomes the set value regardless of the signal intensity in the original state. Will be embedded.

〔数式5〕
Zl(1)=Zo/[Σj=m,…,m+2G-1{Al(1,j)2+Bl(1,j)2}]1/2
Zl(2)=Zo/[Σj=m,…,m+2G-1{Al(2,j)2+Bl(2,j)2}]1/2
Zr(1)=Zo/[Σj=m,…,m+2G-1{Ar(1,j)2+Br(1,j)2}]1/2
Zr(2)=Zo/[Σj=m,…,m+2G-1{Ar(2,j)2+Br(2,j)2}]1/2
[Formula 5]
Zl (1) = Zo / [Σ j = m,..., M + 2G−1 {Al (1, j) 2 + Bl (1, j) 2 }] 1/2
Zl (2) = Zo / [Σ j = m,..., M + 2G−1 {Al (2, j) 2 + Bl (2, j) 2 }] 1/2
Zr (1) = Zo / [Σ j = m,..., M + 2G−1 {Ar (1, j) 2 + Br (1, j) 2 }] 1/2
Zr (2) = Zo / [Σ j = m,..., M + 2G−1 {Ar (2, j) 2 + Br (2, j) 2 }] 1/2

上記〔数式5〕において、Zo=2Gであり、本実施形態では、G=80であるため、Zo=160である。   In the above [Equation 5], Zo = 2G, and in this embodiment, G = 80, so Zo = 160.

さらに、j=m,…,m+2G−1(周波数F1,...,F2に相当)の範囲で、Al(1,j)およびBl(1,j)の各々の要素に対してZl(1)を乗じ、Al(2,j)およびBl(2,j)の各々の要素に対してZl(2)を乗じ、Ar(1,j)およびBr(1,j)の各々の要素に対してZr(1)を乗じ、Ar(2,j)およびBr(2,j)の各々の要素に対してZr(2)を乗じることにより、振幅変換を行う。以下説明において、Al(1,j)、Bl(1,j)、Al(2,j)、Bl(2,j)、Ar(1,j)、Br(1,j)、Ar(2,j)、Br(2,j)はこれらの振幅変換を行った値とする。   Further, in the range of j = m,..., M + 2G−1 (corresponding to the frequencies F1,..., F2), Zl (1 for each element of Al (1, j) and Bl (1, j) ), Multiply each element of Al (2, j) and Bl (2, j) by Zl (2), and multiply each element of Ar (1, j) and Br (1, j) The amplitude is converted by multiplying Zr (1) and multiplying each element of Ar (2, j) and Br (2, j) by Zr (2). In the following description, Al (1, j), Bl (1, j), Al (2, j), Bl (2, j), Ar (1, j), Br (1, j), Ar (2, j) and Br (2, j) are values obtained by performing these amplitude conversions.

周波数成分変更手段30は、Aタイプの音響フレームについて、ビット配列作成手段70が作成したビット配列に応じて、所定周波数成分の割合を変更する処理を行う。本発明では、ビット配列を1ビットずつ読み込み、Aタイプ、Bタイプの1対の音響フレームに対して1ビットの情報を埋め込む。埋め込まれる1ビットの値は、“0” “1”の2通りがある。本実施形態では、これらを値1、値2と定義する。2種類の符号を埋め込むことができるという点で、これらを符号1、符号2と表現することも可能である。この際、“0”“1”の2通りのうち、いずれを値1、値2(符号1、符号2)と定義しても良い。抽出側において、埋め込み側で埋め込まれた1ビットが特定できれば良いためである。したがって、この定義は、埋め込み側と抽出側で一致している必要がある。   The frequency component changing unit 30 performs a process of changing the ratio of the predetermined frequency component for the A type sound frame according to the bit arrangement created by the bit arrangement creating unit 70. In the present invention, the bit array is read bit by bit, and 1-bit information is embedded in a pair of acoustic frames of A type and B type. There are two 1-bit values to be embedded: “0” and “1”. In the present embodiment, these are defined as value 1 and value 2. These can be expressed as code 1 and code 2 in that two types of codes can be embedded. At this time, any one of “0” and “1” may be defined as a value 1 and a value 2 (reference numerals 1 and 2). This is because it is sufficient that one bit embedded on the extraction side can be specified on the extraction side. Therefore, this definition must match between the embedding side and the extraction side.

周波数成分の変更の手法としては、様々なものが考えられるが、本実施形態では、人間の聴覚心理特性である音脈分凝の原理を利用する。ここで、音脈分凝について説明しておく。音脈分凝とは、時系列に高い音と低い音が交互に進行するパターンに対して、人間が、あたかも高低2つのトラックが連続して流れるように音を補間して聞いてしまう錯覚現象である。   Various methods of changing the frequency component are conceivable, but in this embodiment, the principle of sound pulse condensation, which is a human auditory psychological characteristic, is used. Here, a description will be given of the sound pulse concentration. The syllable segregation is an illusion that humans interpolate and hear sounds as if two tracks of high and low are flowing continuously against a pattern in which high and low sounds alternate in time series. It is.

たとえば、図3(a)に示すように、3つの低い音である低音1、低音3、低音5と3つの高い音である高音2、高音4、高音6が、低音1、高音2、低音3、高音4、低音5、高音6の順に演奏されている場合を考えてみる。低音1、低音3、低音5と高音2、高音4、高音6は1オクターブ程度離れており、低い音と高い音は同時に演奏されることはないが、時間的間隔は、ほぼ連続しているものとする。この場合、人間には、図3(b)に示すように、低い音と高い音が演奏されていない部分も補間されて演奏されているように聞こえる。すなわち、実際の演奏は単旋律であるのに、人間には、図3(b)に示すように、高音1´、高音3´、高音5´、低音2´、低音4´、低音6´が補間されて複旋律であるように聞こえる。例えば、高音3´は高音2と高音4が連続的につながるように、高音2と高音4の平均的な成分に聞こえる。また、末端部の高音1´と低音6´についても、隣接する高音2と低音5に近い成分で、各々低音1と高音6に対応するように聞こえる。しかし、マイクロフォン等の電気音響装置は、図3(a)に示したものをそのままの音として取得することになる。本実施形態では、このような性質を利用する。なお、補間された音は、前後に演奏されている音と必ずしも同じレベルに補間されて聴こえるのではなく、大雑把に言って、前後に演奏されている音の50%程度があたかも補間されているように聞こえる。   For example, as shown in FIG. 3 (a), three low sounds, low 1, high 3, and low 5, and three high, high 2, high 4, and high 6, are low 1, high 2, and low. Consider a case in which 3, 3 high sounds, 5 low sounds, and 6 high sounds are played in this order. Low pitch 1, low pitch 3, low pitch 5 and high pitch 2, high pitch 4, high pitch 6 are about 1 octave apart, and the low and high sounds are not played at the same time, but the time intervals are almost continuous. Shall. In this case, as shown in FIG. 3 (b), it sounds to humans that the parts where the low and high sounds are not played are interpolated and played. That is, although the actual performance is a single melody, as shown in FIG. 3 (b), a human being can play a high tone 1 ', a high tone 3', a high tone 5 ', a low tone 2', a low tone 4 ', and a low tone 6'. Sounds like it is interpolated. For example, the high sound 3 ′ is heard as an average component of the high sound 2 and the high sound 4 so that the high sound 2 and the high sound 4 are continuously connected. Further, the high pitch 1 'and the low pitch 6' at the end also sound like components corresponding to the low tone 1 and the high tone 6 with components close to the adjacent high tone 2 and low tone 5, respectively. However, an electroacoustic apparatus such as a microphone acquires the sound shown in FIG. 3A as it is. In this embodiment, such a property is used. Note that the interpolated sound is not necessarily interpolated to the same level as the sound played back and forth, but roughly speaking, about 50% of the sound played back and forth is interpolated. Sounds like

具体的には、埋め込み装置で、音響信号から抽出した所定数のサンプルで構成される音響フレーム内の所定周波数範囲の周波数成分を変更するに際し、その強弱が音脈分凝を発生させるような状態に変更する。これにより、人間には、音が途切れたようには聞こえないが、抽出装置では、その明確な変化を認識することができる。   Specifically, when the frequency component of a predetermined frequency range in an acoustic frame composed of a predetermined number of samples extracted from an acoustic signal is changed by the embedding device, the strength and weakness generate a sound pulse fraction. Change to As a result, although it does not sound as if the sound is interrupted by a human, the extraction device can recognize the clear change.

本実施形態では、音脈分凝の原理を利用して、音響フレームの変更対象周波数帯の成分を2つの状態に変更し、1ビットの情報を埋め込むようにしている。ここで、埋め込み処理の前後における音響フレームの所定周波数成分の変化の状態について説明する。図4に、本実施形態によるAタイプ、Bタイプの各チャンネル1音響フレームの所定周波数成分の状態を示す。図4に示す各音響フレームにおいて、横軸は時間方向、縦軸は周波数方向を示している。   In the present embodiment, using the principle of sound pulse segregation, the components of the change target frequency band of the acoustic frame are changed to two states, and 1-bit information is embedded. Here, the state of change of the predetermined frequency component of the acoustic frame before and after the embedding process will be described. FIG. 4 shows a state of a predetermined frequency component of each channel 1 sound frame of A type and B type according to the present embodiment. In each acoustic frame shown in FIG. 4, the horizontal axis indicates the time direction, and the vertical axis indicates the frequency direction.

図4においては、縦軸の周波数方向において、周波数領域が4つに区分されているが、上から2番目と3番目の領域、すなわち、周波数F1以上F2以下の間が変更対象周波数帯であり、最上部すなわち周波数F2超、最下部すなわちF1未満は、変更対象でない周波数帯である。すなわち、本実施形態では、周波数F1以上F2以下を所定周波数範囲として、スペクトル集合の強度を変更することになる。図4(a)に示すように、LチャンネルのAタイプ音響フレームの変更対象周波数帯については、高周波側におけるスペクトルをL1U、低周波側におけるスペクトルをL1Dで表現し、RチャンネルのAタイプ音響フレームの変更対象周波数帯については、高周波側におけるスペクトルをR1U、低周波側におけるスペクトルをR1Dで表現することとする。また、図4(b)に示すように、LチャンネルのBタイプ音響フレームの変更対象周波数帯については、高周波側におけるスペクトルをL2U、低周波側におけるスペクトルをL2Dで表現し、RチャンネルのBタイプ音響フレームの変更対象周波数帯については、高周波側におけるスペクトルをR2U、低周波側におけるスペクトルをR2Dで表現することとする。   In FIG. 4, the frequency region is divided into four in the frequency direction of the vertical axis, but the second and third regions from the top, that is, the frequency band from F1 to F2 is the frequency band to be changed. The uppermost part, that is, the frequency exceeding F2, and the lowermost part, that is, less than F1, are frequency bands not to be changed. That is, in the present embodiment, the intensity of the spectrum set is changed by setting the frequency F1 to F2 as a predetermined frequency range. As shown in FIG. 4 (a), for the change target frequency band of the L channel A type acoustic frame, the spectrum on the high frequency side is represented by L1U, the spectrum on the low frequency side is represented by L1D, and the A type acoustic frame of the R channel is represented. For the frequency band to be changed, the spectrum on the high frequency side is represented by R1U and the spectrum on the low frequency side is represented by R1D. Further, as shown in FIG. 4B, for the change target frequency band of the L-channel B-type acoustic frame, the spectrum on the high-frequency side is represented by L2U, the spectrum on the low-frequency side is represented by L2D, and the B-type of the R-channel is represented. For the frequency band to be changed of the acoustic frame, the spectrum on the high frequency side is represented by R2U, and the spectrum on the low frequency side is represented by R2D.

本実施形態で、符号1を埋め込む場合、図4(c)(e)に示すように、L1DとL2Uの強度の積、R1DとR2Uの強度の積を相対的に強い状態に変更し、L1UとL2Dの強度の積、R1UとR2Dの強度の積を相対的に弱い状態に変更する。この状態を“状態1”と呼ぶことにする。符号2を埋め込む場合は、図4(d)(f)に示すように、L1UとL2Dの強度の積、R1UとR2Dの強度の積を相対的に強い状態に変更し、L1DとL2Uの強度の積、R1DとR2Uの強度の積を相対的に弱い状態に変更する。この状態を“状態2”と呼ぶことにする。網掛けされた部分の濃さは、同濃度のものは、積を求めるための組となるスペクトルであることを示している。網掛けの色が濃い方が相対的に強度が強い状態に変更される組を示している。   In the present embodiment, when the code 1 is embedded, as shown in FIGS. 4C and 4E, the product of the strengths of L1D and L2U and the product of the strengths of R1D and R2U are changed to a relatively strong state. And the product of the intensity of L2D and the product of the intensity of R1U and R2D are changed to a relatively weak state. This state is referred to as “state 1”. When embedding the code 2, as shown in FIGS. 4D and 4F, the product of the intensity of L1U and L2D and the product of the intensity of R1U and R2D are changed to a relatively strong state, and the intensity of L1D and L2U is changed. And the product of the intensity of R1D and R2U is changed to a relatively weak state. This state is referred to as “state 2”. The shaded portions have the same density, indicating that the spectrum is a set for obtaining a product. The darker shaded color indicates a group that is changed to a relatively strong state.

本実施形態では、図4(c)(e)または(d)(f)に示すような2つの状態にAタイプ、Bタイプの音響フレームの周波数成分を変更することにより、情報の埋め込みを行っている。2つの状態であるので1ビット分の情報量に相当する。   In the present embodiment, information is embedded by changing the frequency components of the A-type and B-type sound frames into two states as shown in FIGS. 4C, 4E, 4D, and 4F. ing. Since there are two states, this corresponds to an information amount of 1 bit.

本実施形態では、上記変更対象周波数帯F1〜F2を、“1.7kHz〜3.4kHz”に設定する。これは、以下のような理由による。すなわち、音声通信として普及度の高い携帯電話機を受信端末として利用する場合、上限については、電話回線帯域および携帯電話機の上限である3.4kHzとする必要がある。これは、携帯電話機の内部に搭載されているローパスフィルターが、電話交換機に合わせて、3.4kHz以下に対応したものとなっているためである。そこで、下限については、上限の3.4kHzから1オクターブ下がった1.7kHzとすることとした。なお、“1.7kHz”“3.4kHz”という値は、代表的な値であり、必ずしも正確な値である必要はなく、そこから若干ずれた値であっても良い。   In the present embodiment, the change target frequency bands F1 to F2 are set to “1.7 kHz to 3.4 kHz”. This is due to the following reasons. That is, when a mobile phone having a high degree of spread as voice communication is used as a receiving terminal, the upper limit needs to be 3.4 kHz which is the upper limit of the telephone line band and the mobile phone. This is because the low-pass filter mounted inside the mobile phone corresponds to 3.4 kHz or less in accordance with the telephone exchange. Therefore, the lower limit is set to 1.7 kHz, which is one octave lower than the upper limit of 3.4 kHz. Note that the values “1.7 kHz” and “3.4 kHz” are representative values, and are not necessarily accurate values, and may be slightly deviated from them.

図4に示した例では、相対的に強い状態と弱い状態に変更することについて説明したが、この強弱の程度については、状況に応じて設定することが可能である。両者の割合は、以下に述べるように、大きいほど抽出時の精度が高くなるが、補間される割合は不完全になり、再生時に不連続成分によるノイズが聞こえる。一方、両者の割合が均等であるほど再生品質は原音に近付くが、埋め込んだビットの抽出ができなくなり、再生品質と抽出精度はトレードオフの関係になる。例えば、強い方を100%、弱い方を0%とした場合、音脈分凝により、補間される部分の音は図4のような変更を行なう前に原音響信号で鳴っていた音の50%程度となることが確認されている。   In the example shown in FIG. 4, the change to the relatively strong state and the weak state has been described. However, the strength can be set according to the situation. As will be described below, the larger the ratio between the two, the higher the accuracy at the time of extraction. However, the ratio of interpolation becomes incomplete, and noise due to discontinuous components is heard during reproduction. On the other hand, as the ratio between the two is equal, the reproduction quality approaches the original sound, but the embedded bits cannot be extracted, and the reproduction quality and extraction accuracy are in a trade-off relationship. For example, when the strong side is set to 100% and the weak side is set to 0%, the sound of the portion to be interpolated due to the sound wave segmentation is 50% of the sound that was played in the original sound signal before the change as shown in FIG. % Has been confirmed.

そこで、強い方を70%、弱い方を30%とした場合、音脈分凝により、補間される部分の音は図4のような変更を行なう前に原音響信号で鳴っていた音とほぼ同程度となり、この割合が抽出精度を維持できる限界であることが確認されている。このため、相対的に強いスペクトル集合と、相対的に弱いスペクトル集合の強度の割合を70%と30%とすることを目標に設定することが好ましい。これを実現するため、本実施形態では、後述する具体的な処理において、強い状態を設定するための係数α=0.7、弱い状態を設定するための係数β=0.3とする。ただし、強い状態に変更すべきスペクトル集合の強度が元々小さい場合には、係数α、βを補正する必要が生じる。このため、周波数成分変更手段30は、まず、以下の〔数式6〕に従った処理を実行することにより、弱い状態に変更すべきスペクトル集合に対する強い状態に変更すべきスペクトル集合の強度割合γを算出する。   Therefore, if the strong side is set to 70% and the weak side is set to 30%, the sound of the portion to be interpolated is almost the same as the sound that was played in the original sound signal before the change as shown in FIG. It has been confirmed that this ratio is the limit that can maintain the extraction accuracy. For this reason, it is preferable to set the intensity ratio of the relatively strong spectrum set and the relatively weak spectrum set as 70% and 30%. In order to realize this, in this embodiment, in a specific process described later, a coefficient α = 0.7 for setting a strong state and a coefficient β = 0.3 for setting a weak state are set. However, when the intensity of the spectrum set to be changed to a strong state is originally small, it is necessary to correct the coefficients α and β. For this reason, the frequency component changing means 30 first executes the processing according to the following [Equation 6] to obtain the intensity ratio γ of the spectrum set to be changed to a strong state with respect to the spectrum set to be changed to a weak state. calculate.

〔数式6〕
E1d=Σj=m,…,m+G-1{Al(1,j)2+Bl(1,j)2
E2d=Σj=m,…,m+G-1{Al(2,j)2+Bl(2,j)2
E1u=Σj=m+G,…,m+2G-1{Al(1,j)2+Bl(1,j)2
E2u=Σj=m+G,…,m+2G-1{Al(2,j)2+Bl(2,j)2
埋め込みデータが値1の場合、γ=(E1d・E2u)/(E1u・E2d)
埋め込みデータが値2の場合、γ=(E1u・E2d)/(E1d・E2u)
[Formula 6]
E1d = Σ j = m,..., M + G−1 {Al (1, j) 2 + Bl (1, j) 2 }
E2d = Σ j = m,..., M + G−1 {Al (2, j) 2 + Bl (2, j) 2 }
E1u = Σ j = m + G,..., M + 2G-1 {Al (1, j) 2 + Bl (1, j) 2 }
E2u = Σ j = m + G,..., M + 2G-1 {Al (2, j) 2 + Bl (2, j) 2 }
When the embedded data is a value 1, γ = (E1d · E2u) / (E1u · E2d)
When the embedded data is 2, γ = (E1u · E2d) / (E1d · E2u)

上記〔数式6〕において、mは変更対象周波数帯の下限の成分の番号、m+2Gは変更対象周波数帯の上限の成分の番号である。例えば、変更対象周波数帯として、1.7kHz〜3.4kHzを設定する場合、m=160、m+2G=320となる。したがって、1つの周波数領域の幅G=80である。   In the above [Expression 6], m is the number of the lower limit component of the change target frequency band, and m + 2G is the number of the upper limit component of the change target frequency band. For example, when 1.7 kHz to 3.4 kHz is set as the change target frequency band, m = 160 and m + 2G = 320. Therefore, the width G of one frequency region is 80.

そして、さらに強度割合γの値に応じて、周波数成分変更手段30は、以下の〔数式7〕に従った処理を実行することにより、係数α、βを補正して係数α´、β´を得る。   Further, according to the value of the intensity ratio γ, the frequency component changing unit 30 corrects the coefficients α and β by executing the processing according to the following [Equation 7], thereby obtaining the coefficients α ′ and β ′. obtain.

〔数式7〕
0.01≦γ<1.0の場合、α´=α・γ-1/2、β´=β・γ1/2
γ<0.01の場合、α´=10.0・α、β´=0.1・β
[Formula 7]
When 0.01 ≦ γ <1.0, α ′ = α · γ −1/2 , β ′ = β · γ 1/2
When γ <0.01, α ′ = 10.0 · α, β ′ = 0.1 · β

なお、γ≧1.0の場合は、補正を行わない。さらに、周波数成分変更手段30は、埋め込むべき情報が“値1”である場合、以下の〔数式8〕に従った処理を実行することにより、周波数成分の状態を“状態1”、すなわち、図4(c)(e)に示したような状態に変更する。   If γ ≧ 1.0, no correction is performed. Further, when the information to be embedded is “value 1”, the frequency component changing unit 30 executes the processing according to the following [Equation 8] to change the frequency component state to “state 1”, that is, 4 (c) Change to the state shown in (e).

〔数式8〕
j=m〜m+G−1の各成分に対して
E(1,j)={Al(1,j)2+Bl(1,j)2+Ar(1,j)2+Br(1,j)21/2
Al´(1,j)=Al(1,j)・E(1,j)・α/{Al(1,j)2+Bl(1,j)21/2
Bl´(1,j)=Bl(1,j)・E(1,j)・α/{Al(1,j)2+Bl(1,j)21/2
Ar´(1,j)=Ar(1,j)・E(1,j)・α/{Ar(1,j)2+Br(1,j)21/2
Br´(1,j)=Br(1,j)・E(1,j)・α/{Ar(1,j)2+Br(1,j)21/2
E(2,j)={Al(2,j)2+Bl(2,j)2+Ar(2,j)2+Br(2,j)21/2
Al´(2,j)=Al(2,j)・E(2,j)・β/{Al(2,j)2+Bl(2,j)21/2
Bl´(2,j)=Bl(2,j)・E(2,j)・β/{Al(2,j)2+Bl(2,j)21/2
Ar´(2,j)=Ar(2,j)・E(2,j)・β/{Ar(2,j)2+Br(2,j)21/2
Br´(2,j)=Br(2,j)・E(2,j)・β/{Ar(2,j)2+Br(2,j)21/2
j=m+G〜m+2G−1の各成分に対して
E(1,j)={Al(1,j)2+Bl(1,j)2+Ar(1,j)2+Br(1,j)21/2
Al´(1,j)=Al(1,j)・E(1,j)・β/{Al(1,j)2+Bl(1,j)21/2
Bl´(1,j)=Bl(1,j)・E(1,j)・β/{Al(1,j)2+Bl(1,j)21/2
Ar´(1,j)=Ar(1,j)・E(1,j)・β/{Ar(1,j)2+Br(1,j)21/2
Br´(1,j)=Br(1,j)・E(1,j)・β/{Ar(1,j)2+Br(1,j)21/2
E(2,j)={Al(2,j)2+Bl(2,j)2+Ar(2,j)2+Br(2,j)21/2
Al´(2,j)=Al(2,j)・E(2,j)・α/{Al(2,j)2+Bl(2,j)21/2
Bl´(2,j)=Bl(2,j)・E(2,j)・α/{Al(2,j)2+Bl(2,j)21/2
Ar´(2,j)=Ar(2,j)・E(2,j)・α/{Ar(2,j)2+Br(2,j)21/2
Br´(2,j)=Br(2,j)・E(2,j)・α/{Ar(2,j)2+Br(2,j)21/2
[Formula 8]
j = m~m + G-1 of E for each component (1, j) = {Al (1, j) 2 + Bl (1, j) 2 + Ar (1, j) 2 + Br (1, j) 2} 1/2
Al ′ (1, j) = Al (1, j) · E (1, j) · α / {Al (1, j) 2 + Bl (1, j) 2 } 1/2
Bl ′ (1, j) = Bl (1, j) · E (1, j) · α / {Al (1, j) 2 + Bl (1, j) 2 } 1/2
Ar ′ (1, j) = Ar (1, j) · E (1, j) · α / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
Br ′ (1, j) = Br (1, j) · E (1, j) · α / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
E (2, j) = {Al (2, j) 2 + Bl (2, j) 2 + Ar (2, j) 2 + Br (2, j) 2 } 1/2
Al ′ (2, j) = Al (2, j) · E (2, j) · β / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Bl ′ (2, j) = Bl (2, j) · E (2, j) · β / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Ar ′ (2, j) = Ar (2, j) · E (2, j) · β / {Ar (2, j) 2 + Br (2, j) 2 } 1/2
Br ′ (2, j) = Br (2, j) · E (2, j) · β / {Ar (2, j) 2 + Br (2, j) 2 } 1/2
j = m + G~m + 2G- 1 of E for each component (1, j) = {Al (1, j) 2 + Bl (1, j) 2 + Ar (1, j) 2 + Br (1, j) 2} 1/2
Al ′ (1, j) = Al (1, j) · E (1, j) · β / {Al (1, j) 2 + Bl (1, j) 2 } 1/2
Bl ′ (1, j) = B1 (1, j) · E (1, j) · β / {Al (1, j) 2 + B1 (1, j) 2 } 1/2
Ar ′ (1, j) = Ar (1, j) · E (1, j) · β / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
Br ′ (1, j) = Br (1, j) · E (1, j) · β / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
E (2, j) = {Al (2, j) 2 + Bl (2, j) 2 + Ar (2, j) 2 + Br (2, j) 2 } 1/2
Al ′ (2, j) = Al (2, j) · E (2, j) · α / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Bl ′ (2, j) = Bl (2, j) · E (2, j) · α / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Ar ′ (2, j) = Ar (2, j) · E (2, j) · α / {Ar (2, j) 2 + Br (2, j) 2 } 1/2
Br ′ (2, j) = Br (2, j) · E (2, j) · α / {Ar (2, j) 2 + Br (2, j) 2 } 1/2

埋め込むべき情報が“値2”である場合は、以下の〔数式9〕に従った処理を実行することにより、周波数成分の状態を“状態2” 、すなわち、図4(d)(f)に示したような状態に変更する。   When the information to be embedded is “value 2”, the state of the frequency component is changed to “state 2”, that is, FIG. 4D and FIG. Change to the state shown.

〔数式9〕
j=m〜m+G−1の各成分に対して
E(1,j)={Al(1,j)2+Bl(1,j)2+Ar(1,j)2+Br(1,j)21/2
Al´(1,j)=Al(1,j)・E(1,j)・β/{Al(1,j)2+Bl(1,j)21/2
Bl´(1,j)=Bl(1,j)・E(1,j)・β/{Al(1,j)2+Bl(1,j)21/2
Ar´(1,j)=Ar(1,j)・E(1,j)・β/{Ar(1,j)2+Br(1,j)21/2
Br´(1,j)=Br(1,j)・E(1,j)・β/{Ar(1,j)2+Br(1,j)21/2
E(2,j)={Al(2,j)2+Bl(2,j)2+Ar(2,j)2+Br(2,j)21/2
Al´(2,j)=Al(2,j)・E(2,j)・α/{Al(2,j)2+Bl(2,j)21/2
Bl´(2,j)=Bl(2,j)・E(2,j)・α/{Al(2,j)2+Bl(2,j)21/2
Ar´(2,j)=Ar(2,j)・E(2,j)・α/{Ar(2,j)2+Br(2,j)21/2
Br´(2,j)=Br(2,j)・E(2,j)・α/{Ar(2,j)2+Br(2,j)21/2
j=m+G〜m+2G−1の各成分に対して
E(1,j)={Al(1,j)2+Bl(1,j)2+Ar(1,j)2+Br(1,j)21/2
Al´(1,j)=Al(1,j)・E(1,j)・α/{Al(1,j)2+Bl(1,j)21/2
Bl´(1,j)=Bl(1,j)・E(1,j)・α/{Al(1,j)2+Bl(1,j)21/2
Ar´(1,j)=Ar(1,j)・E(1,j)・α/{Ar(1,j)2+Br(1,j)21/2
Br´(1,j)=Br(1,j)・E(1,j)・α/{Ar(1,j)2+Br(1,j)21/2
E(2,j)={Al(2,j)2+Bl(2,j)2+Ar(2,j)2+Br(2,j)21/2
Al´(2,j)=Al(2,j)・E(2,j)・β/{Al(2,j)2+Bl(2,j)21/2
Bl´(2,j)=Bl(2,j)・E(2,j)・β/{Al(2,j)2+Bl(2,j)21/2
Ar´(2,j)=Ar(2,j)・E(2,j)・β/{Ar(2,j)2+Br(2,j)21/2
Br´(2,j)=Br(2,j)・E(2,j)・β/{Ar(2,j)2+Br(2,j)21/2
[Formula 9]
j = m~m + G-1 of E for each component (1, j) = {Al (1, j) 2 + Bl (1, j) 2 + Ar (1, j) 2 + Br (1, j) 2} 1/2
Al ′ (1, j) = Al (1, j) · E (1, j) · β / {Al (1, j) 2 + Bl (1, j) 2 } 1/2
Bl ′ (1, j) = B1 (1, j) · E (1, j) · β / {Al (1, j) 2 + B1 (1, j) 2 } 1/2
Ar ′ (1, j) = Ar (1, j) · E (1, j) · β / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
Br ′ (1, j) = Br (1, j) · E (1, j) · β / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
E (2, j) = {Al (2, j) 2 + Bl (2, j) 2 + Ar (2, j) 2 + Br (2, j) 2 } 1/2
Al ′ (2, j) = Al (2, j) · E (2, j) · α / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Bl ′ (2, j) = Bl (2, j) · E (2, j) · α / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Ar ′ (2, j) = Ar (2, j) · E (2, j) · α / {Ar (2, j) 2 + Br (2, j) 2 } 1/2
Br ′ (2, j) = Br (2, j) · E (2, j) · α / {Ar (2, j) 2 + Br (2, j) 2 } 1/2
j = m + G~m + 2G- 1 of E for each component (1, j) = {Al (1, j) 2 + Bl (1, j) 2 + Ar (1, j) 2 + Br (1, j) 2} 1/2
Al ′ (1, j) = Al (1, j) · E (1, j) · α / {Al (1, j) 2 + Bl (1, j) 2 } 1/2
Bl ′ (1, j) = Bl (1, j) · E (1, j) · α / {Al (1, j) 2 + Bl (1, j) 2 } 1/2
Ar ′ (1, j) = Ar (1, j) · E (1, j) · α / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
Br ′ (1, j) = Br (1, j) · E (1, j) · α / {Ar (1, j) 2 + Br (1, j) 2 } 1/2
E (2, j) = {Al (2, j) 2 + Bl (2, j) 2 + Ar (2, j) 2 + Br (2, j) 2 } 1/2
Al ′ (2, j) = Al (2, j) · E (2, j) · β / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Bl ′ (2, j) = Bl (2, j) · E (2, j) · β / {Al (2, j) 2 + Bl (2, j) 2 } 1/2
Ar ′ (2, j) = Ar (2, j) · E (2, j) · β / {Ar (2, j) 2 + Br (2, j) 2 } 1/2
Br ′ (2, j) = Br (2, j) · E (2, j) · β / {Ar (2, j) 2 + Br (2, j) 2 } 1/2

なお、上記〔数式7〕に従った処理を実行して係数α´、β´を得た場合は、上記〔数式8〕〔数式9〕において、係数α、βに代えて係数α´、β´を用いる。   When the coefficients α ′ and β ′ are obtained by executing the processing according to the above [Expression 7], the coefficients α ′ and β are replaced with the coefficients α and β in the above [Expression 8] and [Expression 9]. 'Is used.

周波数逆変換手段40は、上記のようにして、周波数成分の状態が変更されたフレームスペクトルを周波数逆変換して改変音響フレームを得る処理を行う。この周波数逆変換は、当然のことながら、周波数変換手段20が実行した手法に対応していることが必要となる。本実施形態では、周波数変換手段20において、フーリエ変換を施しているため、周波数逆変換手段40は、フーリエ逆変換を実行することになる。   As described above, the frequency inverse transform means 40 performs the process of obtaining the modified sound frame by performing the frequency inverse transform on the frame spectrum in which the state of the frequency component is changed. Naturally, the inverse frequency conversion needs to correspond to the method executed by the frequency conversion means 20. In the present embodiment, since the frequency transform unit 20 performs the Fourier transform, the frequency inverse transform unit 40 executes the Fourier inverse transform.

具体的には、Aタイプの音響フレームに対しては、周波数逆変換手段40は、上記〔数式8〕〔数式9〕のいずれかにより得られたスペクトルの左チャンネルの実部Al´(1,j)等、虚部Bl´(1,j)等、右チャンネルの実部Ar´(1,j)等、虚部Br´(1,j)等を用いて、以下の〔数式10〕に従った処理を行い、Xl´(i)、Xr´(i)を算出する。なお、上記〔数式8〕〔数式9〕において改変されていない周波数成分については、Al´(1,j)等として、元の周波数成分であるAl(1,j)等を用いる。周波数逆変換を計算するにあたり、Al´(1,j)およびBl´(1,j)に対しては〔数式5〕におけるZl(1)を、Ar´(1,j)およびBr´(1,j)に対しては〔数式5〕におけるZr(1)を除することにより、同時に振幅逆変換を施す必要がある。   Specifically, for the A type sound frame, the frequency inverse transform means 40 performs the real part Al ′ (1,1) of the left channel of the spectrum obtained by any of the above [Formula 8] and [Formula 9]. j), imaginary part Bl ′ (1, j), etc., real part Ar ′ (1, j), etc. of the right channel, imaginary part Br ′ (1, j), etc. The process according to this is performed and Xl '(i) and Xr' (i) are calculated. For the frequency components that are not modified in the above [Equation 8] and [Equation 9], Al (1, j), which is the original frequency component, is used as Al ′ (1, j). In calculating the inverse frequency transform, for Al ′ (1, j) and Bl ′ (1, j), Zl (1) in [Formula 5] is replaced with Ar ′ (1, j) and Br ′ (1 , J), it is necessary to simultaneously perform inverse amplitude transformation by dividing Zr (1) in [Formula 5].

〔数式10〕
Xl´(i)=1/N・{ΣjAl´(1,j)・cos(2πij/N)/Zl(1)−ΣjBl´(1,j)・sin(2πij/N)/Zl(1)}+Xlp(i+N/2)
Xr´(i)=1/N・{ΣjAr´(1,j)・cos(2πij/N)/Zr(1)−ΣjBr´(1,j)・sin(2πij/N)/Zr(1)}+Xrp(i+N/2)
[Formula 10]
Xl' (i) = 1 / N · {Σ j Al' (1, j) · cos (2πij / N) / Zl (1) -Σ j Bl' (1, j) · sin (2πij / N) / Zl (1)} + Xlp (i + N / 2)
Xr' (i) = 1 / N · {Σ j Ar' (1, j) · cos (2πij / N) / Zr (1) -Σ j Br' (1, j) · sin (2πij / N) / Zr (1)} + Xrp (i + N / 2)

上記〔数式10〕においては、式が繁雑になるのを防ぐため、Σj=0,,N-1をΣjとして示している。上記〔数式10〕における第1式の“+Xlp(i+N/2)”、第2式の“+Xrp(i+N/2)”の項は、直前に改変された改変音響フレームのデータXlp(i)、Xrp(i)が存在する場合に、時間軸上N/2サンプル分重複することを考慮して加算するためのものである。上記〔数式10〕によりAタイプの改変音響フレームの左チャンネルの各サンプルXl´(i)、右チャンネルの各サンプルXr´(i)、が得られることになる。 In the above [Expression 10], Σ j = 0, ... , N−1 is shown as Σ j in order to prevent the expression from becoming complicated. The terms “+ Xlp (i + N / 2)” in the first equation and “+ Xrp (i + N / 2)” in the second equation in the above [Equation 10] indicate the data Xlp (i) of the modified acoustic frame modified immediately before, When Xrp (i) exists, the addition is performed in consideration of the overlap of N / 2 samples on the time axis. By the above [Equation 10], each sample Xl ′ (i) of the left channel and each sample Xr ′ (i) of the right channel of the A type modified acoustic frame are obtained.

Bタイプの音響フレームに対しては、周波数逆変換手段40は、上記〔数式8〕〔数式9〕のいずれかにより得られたスペクトルの左チャンネルの実部Al´(2,j)、虚部Bl´(2,j)、右チャンネルの実部Ar´(2,j)、虚部Br´(2,j)を用いて、以下の〔数式11〕に従った処理を行い、Xl´(i)、Xr´(i)を算出する。なお、上記〔数式8〕〔数式9〕において改変されていない周波数成分については、以下の〔数式11〕においてはAl´(2,j)、Bl´(2,j)、Ar´(2,j)、Br´(2,j)として、元の値であるAl(2,j)、Bl(2,j)、Ar(2,j)、Br(2,j)を用いる。周波数逆変換を計算するにあたり、Al´(2,j)およびBl´(2,j)に対しては〔数式5〕におけるZl(2)を、Ar´(2,j)およびBr´(2,j)に対しては〔数式5〕におけるZr(2)を除することにより、同時に振幅逆変換を施す必要がある。   For the B type acoustic frame, the frequency inverse transform means 40 performs the real part Al ′ (2, j) and the imaginary part of the left channel of the spectrum obtained by any one of the above [Formula 8] and [Formula 9]. Using Bl ′ (2, j), the real part Ar ′ (2, j) of the right channel, and the imaginary part Br ′ (2, j), processing according to the following [Equation 11] is performed, and Xl ′ ( i) and Xr ′ (i) are calculated. Note that the frequency components not modified in the above [Equation 8] and [Equation 9] are represented by Al ′ (2, j), Bl ′ (2, j), Ar ′ (2, The original values Al (2, j), Bl (2, j), Ar (2, j), and Br (2, j) are used as j) and Br ′ (2, j). In calculating the frequency inverse transform, for Al ′ (2, j) and Bl ′ (2, j), Zl (2) in [Equation 5] is replaced with Ar ′ (2, j) and Br ′ (2 , J), it is necessary to simultaneously perform inverse amplitude transformation by dividing Zr (2) in [Equation 5].

〔数式11〕
Xl´(i+N/2)=1/N・{ΣjAl´(2,j)・cos(2πij/N)/Zl(2)−ΣjBl´(2,j)・sin(2πij/N)/Zl(2)}+Xlp(i+N)
Xr´(i+N/2)=1/N・{ΣjAr´(2,j)・cos(2πij/N)/Zr(2)−ΣjBr´(2,j)・sin(2πij/N)/Zr(2)}+Xrp(i+N)
[Formula 11]
Xl' (i + N / 2) = 1 / N · {Σ j Al' (2, j) · cos (2πij / N) / Zl (2) -Σ j Bl' (2, j) · sin (2πij / N ) / Zl (2)} + Xlp (i + N)
Xr' (i + N / 2) = 1 / N · {Σ j Ar' (2, j) · cos (2πij / N) / Zr (2) -Σ j Br' (2, j) · sin (2πij / N ) / Zr (2)} + Xrp (i + N)

上記〔数式11〕によりBタイプの改変音響フレームの左チャンネルの各サンプルXl´(i)、右チャンネルの各サンプルXr´(i)、が得られることになる。   By the above [Equation 11], each sample Xl ′ (i) of the left channel and each sample Xr ′ (i) of the right channel of the B type modified acoustic frame are obtained.

改変音響フレーム出力手段50は、周波数逆変換手段40の処理により得られたAタイプの改変音響フレーム、Bタイプの改変音響フレームを順次出力ファイルに出力する。   The modified sound frame output unit 50 sequentially outputs the A type modified sound frame and the B type modified sound frame obtained by the processing of the frequency inverse transform unit 40 to an output file.

次に、図1に示した埋め込み装置の処理の全体的な流れについて説明する。埋め込み装置を起動すると、まず、変換テーブル作成手段80が、Nwビットの登録順位とNhビットのハミング符号が対応付けられた符号変換テーブルを作成する。変換テーブル作成手段80による符号変換テーブル作成のフローチャートを図5に示す。   Next, the overall flow of processing of the embedding device shown in FIG. 1 will be described. When the embedding device is activated, the conversion table creating means 80 first creates a code conversion table in which Nw-bit registration ranks are associated with Nh-bit Hamming codes. FIG. 5 shows a flowchart of code conversion table creation by the conversion table creation means 80.

変換テーブル作成手段80は、最初に初期化処理を行う(S601)。具体的には、7ビット符号“0”に12ビット符号“1”を対応付けて符号変換テーブルのi(=0)番目に登録するとともに、7ビット符号KFの初期値を1、12ビット符号HFの初期値を2とする。続いて、i=0に初期設定する(S602)。次に、12ビット符号HFと符号変換テーブルのi番目に既に登録されている他の12ビット符号とのハミング距離を算出する(S603)。   The conversion table creation means 80 first performs an initialization process (S601). Specifically, the 7-bit code “0” is associated with the 12-bit code “1” and registered in the i (= 0) -th code conversion table, and the initial value of the 7-bit code KF is set to the 1, 12-bit code. The initial value of HF is 2. Subsequently, i = 0 is initially set (S602). Next, a Hamming distance between the 12-bit code HF and another 12-bit code already registered in the i-th code conversion table is calculated (S603).

算出したハミング距離が4未満の場合、HFの値を1増加して更新した後(S604)、S602に戻って、次の12ビット符号HFについての処理を行う。一方、算出したハミング距離が4以上の場合、iの値を1増加して更新する(S605)。そして、iがKF−1未満である場合には、S603に戻って、符号変換テーブル内のi番目に登録されている12ビット符号とのハミング距離を算出する。S605の後、iがKF−1以上となった場合には、12ビット符号HFを符号変換テーブルの7ビット符号KFの位置に登録するとともに、KF、HFの値をそれぞれ1ずつ増加して更新する(S606)。そして、KFが128未満である場合は、S602に戻って、次の7ビット符号KFについての処理を行う。KFが128以上である場合は、全ての7ビット符号KFに対応する12ビット符号HFが登録されたことになるので、符号変換テーブル作成処理を終了する。   If the calculated Hamming distance is less than 4, the value of HF is incremented by 1 (S604), and then the process returns to S602 and the next 12-bit code HF is processed. On the other hand, if the calculated Hamming distance is 4 or more, the value of i is incremented by 1 and updated (S605). If i is less than KF-1, the process returns to S603 to calculate the Hamming distance from the 12th code registered in the code conversion table. If i becomes KF-1 or more after S605, the 12-bit code HF is registered at the position of the 7-bit code KF in the code conversion table, and the values of KF and HF are respectively incremented by one and updated. (S606). If KF is less than 128, the process returns to S602 and the process for the next 7-bit code KF is performed. When KF is 128 or more, since 12-bit codes HF corresponding to all 7-bit codes KF have been registered, the code conversion table creation process is terminated.

このようにして作成された符号変換テーブルを図6に示す。図6に示すように、符号変換テーブルには、7ビット符号が取り得る各値0〜127について、12ビット符号が対応付けて登録されている。12ビット符号の2進表記を見るとわかるように、全ての12ビット符号は互いにハミング距離が4以上となっている。なお、図6の例では、説明の便宜上、7ビット符号の10進表記と、12ビット符号の10進表記及び2進表記を示しているが、現実には、7ビット符号のビット列と12ビット符号のビット列が対応付けて登録されている。   The code conversion table created in this way is shown in FIG. As shown in FIG. 6, in the code conversion table, 12-bit codes are registered in association with each value 0 to 127 that can be taken by the 7-bit code. As can be seen from the binary representation of the 12-bit code, all the 12-bit codes have a hamming distance of 4 or more. In the example of FIG. 6, for convenience of explanation, a decimal notation of a 7-bit code and a decimal notation and a binary notation of a 12-bit code are shown. Code bit strings are registered in association with each other.

続いて、符号変換テーブル作成処理後の、埋め込み装置の処理を、図7のフローチャートに従って説明する。図1に示した装置を構成する各構成要素は、連携して図7に従った処理を実行する。埋め込み装置は、まず、埋め込み対象となる音響信号に対して埋め込み可能な音響フレームの総数である総フレーム数Cfを算出する(S801)。具体的には、音響信号をサンプリングして総サンプル数を求めた後、1音響フレームのサンプル数で除算する処理を行う。次に、付加情報の圧縮処理を行う(S802)。具体的には、付加情報記憶部62から10進数表記で記録された付加情報を抽出し、バイナリ形式に変換する処理を行う。   Next, the process of the embedding device after the code conversion table creation process will be described with reference to the flowchart of FIG. Each component which comprises the apparatus shown in FIG. 1 cooperates, and performs the process according to FIG. First, the embedding device calculates a total frame number Cf, which is the total number of sound frames that can be embedded in the sound signal to be embedded (S801). Specifically, after a sound signal is sampled to determine the total number of samples, a process of dividing by the number of samples of one sound frame is performed. Next, additional information compression processing is performed (S802). Specifically, the additional information recorded in decimal notation is extracted from the additional information storage unit 62 and converted into a binary format.

ここで、10進数表記で記録された付加情報の入力文字列と、圧縮後の圧縮文字列の書式を図8に示す。本実施形態では、入力文字列書式はASCII文字である。図8において、入力文字列書式の“#”は区切り記号を示す。“n”は0〜9のASCII文字である。したがって、入力文字列は、桁数に区切りを加えた分のバイト数を必要とすることになる。圧縮文字列の“D”は、00〜99の2桁の10進数字を1〜100の1バイトのバイナリ数値で表現したものである。圧縮文字列の“C”は、#または#0〜#9の区切り記号付き1桁の10進数字を101〜110の1バイトのバイナリ数値で表現したものである。10進2桁の場合はCを省略、10進4桁の場合はCは101固定値となる。このような圧縮を行うと、図8に示したように、10進2桁〜10進5桁の場合、2バイトから3バイト分圧縮されることがわかる。   Here, FIG. 8 shows an input character string of additional information recorded in decimal notation and a compressed character string format after compression. In the present embodiment, the input character string format is ASCII characters. In FIG. 8, “#” in the input character string format indicates a delimiter. “N” is an ASCII character of 0-9. Therefore, the input character string requires the number of bytes corresponding to the number of digits plus a break. “D” in the compressed character string is a 2-digit decimal number from 00 to 99 expressed as a 1-byte binary value from 1 to 100. "C" in the compressed character string is a one-digit decimal number with a separator of # or # 0 to # 9 expressed as a 1-byte binary value of 101 to 110. C is omitted for two decimal digits, and C is a fixed value of 101 for four decimal digits. When such compression is performed, as shown in FIG. 8, in the case of 2 decimal digits to 5 decimal digits, it is understood that 2 bytes to 3 bytes are compressed.

付加情報が圧縮されたら、次に、単位文字列種別数CSを算出する(S803)。単位文字列種別数CSとは、付加情報の連続する文字列中に、1つの意味を有する単位文字列が何種別含まれているかを示すものである。単位文字列種別数CSは、圧縮文字列ワード数BSを、ワード周期BCで除算する処理を行うことにより算出される(CS=BS/BC)。ここで、圧縮文字列ワード数BSは、S802において、バイナリ形式に変換された状態の付加情報のワード数である。また、ワード周期BCは、単位文字列に対応する圧縮後のバイト数を示すものであり、本実施形態では、全ての単位文字列の変換後のバイト数が同一となっている。   After the additional information is compressed, the unit character string type number CS is calculated (S803). The unit character string type number CS indicates how many types of unit character strings having one meaning are included in a continuous character string of additional information. The unit character string type number CS is calculated by performing a process of dividing the compressed character string word number BS by the word period BC (CS = BS / BC). Here, the compressed character string word number BS is the number of words of the additional information in the state converted into the binary format in S802. The word period BC indicates the number of bytes after compression corresponding to the unit character string, and in this embodiment, the number of bytes after conversion of all unit character strings is the same.

続いて、単位文字列当たりのリピート数Crを算出する(S804)。リピート数Crは、単位文字列を何回繰り返して埋め込むかを示すものである。このリピート数Crは、単位文字列種別数CS、ワード周期BC、変換後ビット数Nhを乗じた値で、総フレーム数Cfを除算する処理を行うことにより算出される(Cr=Cf/CS・BC・Nh)。   Subsequently, the number of repeats Cr per unit character string is calculated (S804). The number of repeats Cr indicates how many times the unit character string is embedded. The repeat number Cr is calculated by performing a process of dividing the total frame number Cf by a value obtained by multiplying the unit character string type number CS, the word cycle BC, and the converted bit number Nh (Cr = Cf / CS · BC · Nh).

次に、バイトカウンタ、リピートカウンタ、種別カウンタの初期化を行う(S805)。具体的には、これらの値を全て“0”に設定する。そして、圧縮後のビット配列(付加情報文字列)中から、種別カウンタに位置する文字種別のバイトカウンタに位置する1バイトを読み込む(S806)。そして、読み込んだ1バイトを音響信号に埋め込む処理を行う(S807)。1バイト分の埋め込み処理の詳細については、後述する。   Next, the byte counter, repeat counter, and type counter are initialized (S805). Specifically, all these values are set to “0”. Then, 1 byte located in the byte counter of the character type located in the type counter is read from the compressed bit array (additional information character string) (S806). Then, a process of embedding the read 1 byte in the acoustic signal is performed (S807). Details of the 1 byte embedding process will be described later.

1バイト分の埋め込み処理が終わったら、ワードカウンタの更新を行う(S808)。具体的には、ワードカウンタの値を1だけ増加する。そして、ワードカウンタがワード周期BCを超えたかどうかを判定する(S809)。ワードカウンタがワード周期BCを超えていない場合は、S806に戻って次の1バイトを読み込む。一方、ワードカウンタがワード周期BCを超えている場合は、ワードカウンタの初期化とリピートカウンタの更新を行う(S810)。   When the embedding process for 1 byte is completed, the word counter is updated (S808). Specifically, the value of the word counter is increased by 1. Then, it is determined whether the word counter has exceeded the word cycle BC (S809). If the word counter does not exceed the word cycle BC, the process returns to S806 to read the next 1 byte. On the other hand, if the word counter exceeds the word cycle BC, the word counter is initialized and the repeat counter is updated (S810).

次に、リピートカウンタがリピート数Crを超えたかどうかを判定する(S811)。リピートカウンタがリピート数Crを超えていない場合は、S806に戻って次の1バイトを読み込む。一方、リピートカウンタがリピート数Crを超えている場合は、リピートカウンタの初期化と種別カウンタの更新を行う(S812)。そして、種別カウンタが単位文字列種別数CSを超えたかどうかを判定する(S813)。種別カウンタが単位文字列種別数CSを超えていない場合は、S806に戻って次の1バイトを読み込む。一方、種別カウンタが単位文字列種別数CSを超えている場合は、埋め込み処理を終了する。この結果、全ての音響フレームに対して処理を行った全ての改変音響フレームが出力ファイルに記録されて、改変音響信号として得られる。得られた改変音響信号は、記憶手段60内の改変音響信号記憶部63に出力され、記憶される。   Next, it is determined whether or not the repeat counter has exceeded the repeat number Cr (S811). If the repeat counter does not exceed the repeat number Cr, the process returns to S806 to read the next 1 byte. On the other hand, if the repeat counter exceeds the number of repeats Cr, the repeat counter is initialized and the type counter is updated (S812). Then, it is determined whether the type counter has exceeded the unit character string type number CS (S813). If the type counter does not exceed the unit character string type number CS, the process returns to S806 to read the next 1 byte. On the other hand, if the type counter exceeds the number of unit character string types CS, the embedding process is terminated. As a result, all modified acoustic frames that have been processed for all acoustic frames are recorded in the output file and obtained as modified acoustic signals. The obtained modified acoustic signal is output to and stored in the modified acoustic signal storage unit 63 in the storage unit 60.

ここで、図7のS807における1バイト分の埋め込み処理の詳細を、図9のフローチャートに従って説明する。1ワードのビット数Nwとしては、任意のビット数に設定することができるが、上述のように、本実施形態では、ASCIIコードの実質7ビットに設定されている。   Here, details of the embedding process for one byte in S807 of FIG. 7 will be described with reference to the flowchart of FIG. The number of bits Nw of one word can be set to an arbitrary number of bits, but as described above, in this embodiment, it is set to substantially 7 bits of the ASCII code.

図9においては、まず、ビット配列作成手段70は、付加情報記憶部62から抽出した付加情報の各ワードについて、変換テーブル作成手段80を参照し、対応するビット配列を作成する(S101)。具体的には、まず、付加情報記憶部62から1ワード(7ビット)単位で抽出し、図6に示した符号変換テーブルを参照し、対応するハミング符号で構成される12ビットのビット配列を抽出する。   In FIG. 9, first, the bit array creation means 70 creates a corresponding bit array by referring to the conversion table creation means 80 for each word of the additional information extracted from the additional information storage unit 62 (S101). Specifically, first, the additional information storage unit 62 is extracted in units of 1 word (7 bits), and a 12-bit bit array composed of corresponding Hamming codes is obtained by referring to the code conversion table shown in FIG. Extract.

そして、この12ビットが、埋め込み装置として用いられるコンピュータ内のレジスタに読み込まれることになる。このように、付加情報記憶部62においては、1ワードは7ビットであるが、埋め込み処理時は、この12ビットの配列で、付加情報内の1ワード分の処理を行う。   These 12 bits are read into a register in a computer used as an embedding device. Thus, in the additional information storage unit 62, one word is 7 bits, but at the time of embedding processing, processing for one word in the additional information is performed with this 12-bit array.

次に、周波数成分変更手段30が、レジスタに保持されたNh(=12)ビットから1ビットを読み込む処理を行う(S102)。続いて、音響フレーム読込手段10が、音響信号記憶部61に記憶されたステレオ音響信号の左右の各チャンネルから、それぞれ所定数のサンプルをAタイプの1音響フレームとして読み込み、周波数変換手段20が周波数変換を行って、得られたフレームスペクトルに対して振幅変換を行う(S103)。具体的には、まず、読み込んだ音響フレームに対して、周波数変換を行って、その音響フレームのスペクトルであるフレームスペクトルを得る。すなわち、各音響フレームについて、窓関数W(1,i)を用いて、上記〔数式2〕に従った処理を行う。そして、上記〔数式5〕に従った処理を実行してZl(1)、Zr(1)を算出し振幅変換を行う。同様に、音響フレーム読込手段10が、音響信号記憶部61に記憶されたステレオ音響信号の左右の各チャンネルから、それぞれ所定数のサンプルをBタイプの1音響フレームとして読み込み、周波数変換手段20が周波数変換を行って、得られたフレームスペクトルに対して振幅変換を行う(S104)。具体的には、まず、読み込んだ音響フレームに対して、周波数変換を行って、その音響フレームのスペクトルであるフレームスペクトルを得る。すなわち、各音響フレームについて、窓関数W(2,i)を用いて、上記〔数式3〕に従った処理を行う。そして、上記〔数式5〕に従った処理を実行してZl(2)、Zr(2)を算出し振幅変換を行う。続いて、周波数成分変更手段30が、読み込んだビット値に応じてAタイプ音響フレームおよびBタイプ音響フレームの周波数成分の状態を変更するにあたり、〔数式6〕〔数式7〕に従った処理を実行して変換割合α、βを決定する処理を行う(S105)。この決定された変換割合を用いて、周波数成分変更手段30は、ビット配列作成手段70から受け取った値1、値2に応じて上記〔数式8〕〔数式9〕に従った処理を実行し、変更対象周波数帯の成分の状態を“状態1”、“状態2”に応じた状態のいずれかに変更する(S106)。   Next, the frequency component changing unit 30 performs a process of reading one bit from Nh (= 12) bits held in the register (S102). Subsequently, the acoustic frame reading means 10 reads a predetermined number of samples from the left and right channels of the stereo acoustic signal stored in the acoustic signal storage unit 61 as one A-type acoustic frame, and the frequency converting means 20 Conversion is performed, and amplitude conversion is performed on the obtained frame spectrum (S103). Specifically, first, frequency conversion is performed on the read sound frame to obtain a frame spectrum that is a spectrum of the sound frame. That is, for each acoustic frame, processing according to the above [Equation 2] is performed using the window function W (1, i). Then, the process according to the above [Equation 5] is executed to calculate Zl (1) and Zr (1) and perform amplitude conversion. Similarly, the acoustic frame reading means 10 reads a predetermined number of samples as one B-type acoustic frame from the left and right channels of the stereo acoustic signal stored in the acoustic signal storage unit 61, and the frequency conversion means 20 Conversion is performed, and amplitude conversion is performed on the obtained frame spectrum (S104). Specifically, first, frequency conversion is performed on the read sound frame to obtain a frame spectrum that is a spectrum of the sound frame. That is, for each acoustic frame, processing according to the above [Equation 3] is performed using the window function W (2, i). Then, the process according to the above [Equation 5] is executed to calculate Zl (2) and Zr (2) and perform amplitude conversion. Subsequently, when the frequency component changing unit 30 changes the state of the frequency component of the A type sound frame and the B type sound frame according to the read bit value, the processing according to [Formula 6] and [Formula 7] is executed. Then, the conversion ratios α and β are determined (S105). Using this determined conversion ratio, the frequency component changing unit 30 executes processing according to the above [Equation 8] and [Equation 9] according to the value 1 and value 2 received from the bit array creation unit 70, The state of the component of the frequency band to be changed is changed to either “state 1” or “state 2” (S106).

次に、周波数逆変換手段40が、上記S106の処理によりAタイプの音響フレームに対応する各スペクトル集合の強度が変更されたスペクトルを振幅逆変換、周波数逆変換して改変音響フレームを得る処理を行う(S107)。この振幅逆変換は〔数式5〕で算出したZl(1)、Zr(1)の逆数をスペクトルに乗じることにより行ない、この周波数逆変換は、当然のことながら、周波数変換手段20がS103において実行した手法に対応していることが必要となる。本実施形態では、周波数変換手段20において、フーリエ逆変換を施しているため、周波数逆変換手段40は、フーリエ逆変換を実行することになる。具体的には、上記〔数式8〕〔数式9〕のいずれかにより得られたスペクトルの左チャンネルの実部Al´(1,j)等、虚部Bl´(1,j)等、右チャンネルの実部Ar´(1,j)等、虚部Br´(1,j)等を用いて、上記〔数式10〕に従った処理を行い、Xl´(i)、Xr´(i)を算出する。改変音響フレーム出力手段50は、得られた改変音響フレームを順次出力ファイルに出力する。   Next, the frequency inverse transforming unit 40 performs a process of obtaining a modified acoustic frame by performing an amplitude inverse transform and a frequency inverse transform on the spectrum in which the intensity of each spectrum set corresponding to the A type acoustic frame is changed by the process of S106. Perform (S107). This inverse amplitude transform is performed by multiplying the spectrum by the inverse of Zl (1) and Zr (1) calculated by [Equation 5]. This inverse frequency transform is naturally performed by the frequency transforming means 20 in S103. It is necessary to support this method. In the present embodiment, since the frequency transform unit 20 performs the inverse Fourier transform, the frequency inverse transform unit 40 performs the inverse Fourier transform. Specifically, the right channel such as the real part Al ′ (1, j) of the left channel, the imaginary part Bl ′ (1, j), etc. of the spectrum obtained by any one of the above [Equation 8] and [Equation 9]. Using the real part Ar ′ (1, j), etc., the imaginary part Br ′ (1, j), etc., the processing according to the above [Equation 10] is performed, and Xl ′ (i), Xr ′ (i) calculate. The modified sound frame output means 50 sequentially outputs the obtained modified sound frames to an output file.

同様に、周波数逆変換手段40が、上記S106の処理によりBタイプの音響フレームに対応する各スペクトル集合の強度が変更されたスペクトルを振幅逆変換、周波数逆変換して改変音響フレームを得る処理を行う(S108)。具体的には、振幅逆変換は〔数式5〕で算出したZl(2)、Zr(2)の逆数をスペクトルに乗じることにより行ない、上記〔数式8〕〔数式9〕のいずれかにより得られたスペクトルの左チャンネルの実部Al´(2,j)等、虚部Bl´(2,j)等、右チャンネルの実部Ar´(2,j)等、虚部Br´(2,j)等を用いて、上記〔数式11〕に従った処理を行い、Xl´(i)、Xr´(i)を算出する。   Similarly, the frequency inverse transform unit 40 performs a process of obtaining a modified acoustic frame by performing an amplitude inverse transform and a frequency inverse transform on the spectrum in which the intensity of each spectrum set corresponding to the B type acoustic frame is changed by the process of S106. Perform (S108). Specifically, the inverse amplitude transform is performed by multiplying the spectrum by the reciprocal of Zl (2) and Zr (2) calculated in [Formula 5], and is obtained by any of the above [Formula 8] and [Formula 9]. Real part Al ′ (2, j), etc. of the left channel of the spectrum, imaginary part Bl ′ (2, j), etc., real part Ar ′ (2, j) of the right channel, etc., imaginary part Br ′ (2, j ) And the like, the process according to [Formula 11] is performed to calculate Xl ′ (i) and Xr ′ (i).

改変音響フレーム出力手段50は、得られた改変音響フレームを順次出力ファイルに出力する。こうして各チャンネルについて、AタイプおよびBタイプの2つの音響フレームに対する処理を終えたら、周波数成分変更手段30がビット配列中の次の1ビットを読み込む(S102)。以上のような処理を音響信号の両チャンネルの全サンプルに渡って実行していく。すなわち、所定数のサンプルを音響フレームとして読み込み、音響信号から読み込むべき音響フレームがなくなったら(S103、S104)、処理を終了する。なお、S101において読み込んだ1ワード分のビット配列(Nh=12ビット)の各ビットに対応する処理を終えた場合、S102からS101に戻り、付加情報の次のワードを読み込んでビット配列を作成する処理を行うことになる。付加情報の全ワードに対して処理が終了した場合は、付加情報の先頭ワードに戻って処理を行う。この結果、全ての音響フレームに対して処理を行った全ての改変音響フレームが出力ファイルに記録されて、改変音響信号として得られる。得られた改変音響信号は、記憶手段60内の改変音響信号記憶部63に出力され、記憶される。   The modified sound frame output means 50 sequentially outputs the obtained modified sound frames to an output file. When the processing for the two A-type and B-type sound frames is finished for each channel in this way, the frequency component changing means 30 reads the next 1 bit in the bit array (S102). The above processing is executed over all samples of both channels of the acoustic signal. That is, a predetermined number of samples are read as sound frames, and when there are no more sound frames to be read from the sound signal (S103, S104), the process ends. When the processing corresponding to each bit of the bit arrangement (Nh = 12 bits) for one word read in S101 is completed, the process returns from S102 to S101 to read the next word of the additional information and create a bit arrangement. Processing will be performed. When the processing is completed for all the words of the additional information, the processing returns to the first word of the additional information. As a result, all modified acoustic frames that have been processed for all acoustic frames are recorded in the output file and obtained as modified acoustic signals. The obtained modified acoustic signal is output to and stored in the modified acoustic signal storage unit 63 in the storage unit 60.

なお、本実施形態では、付加情報を1ワード7ビットとし、符号変換テーブルにより12ビットのビット配列に変換して、付加情報1ワード分の処理をする場合について説明したが、本発明では、抽出側のコンテンツ再生装置と取り決めがある限り、付加情報の1ワードを他のビット数単位で記録することが可能である。   In the present embodiment, the case has been described in which the additional information is converted to a 12-bit bit array using the code conversion table by processing the additional information for one word 7 bits. However, in the present invention, extraction is performed. As long as there is an agreement with the content reproduction apparatus on the side, it is possible to record one word of additional information in units of other number of bits.

上記のようにして得られた改変音響信号のうち、付加情報が埋め込まれている部分については、変更対象周波数帯の成分は、上記状態1、状態2の2通りの分布しかないことになる。しかし、変更対象周波数帯の成分以外については、元の音響信号のままであるので、制作者の設定に基づいた種々な分布になる。また、上記〔数式8〕〔数式9〕の処理からも明らかなように、変更対象周波数帯の成分は、左チャンネルと右チャンネルにおいて同等の割合で変化させられている。したがって、両スピーカと等距離の位置においても、変更対象周波数帯の成分は、相殺されることなく増幅させる関係となり、情報を抽出し易くなる。   Of the modified acoustic signal obtained as described above, for the portion in which the additional information is embedded, the component of the change target frequency band has only two distributions of the state 1 and the state 2 described above. However, since the components other than the component of the frequency band to be changed remain as the original acoustic signals, various distributions are made based on the setting of the producer. Further, as is apparent from the processing of [Equation 8] and [Equation 9], the components of the frequency band to be changed are changed at the same rate in the left channel and the right channel. Therefore, even at a position equidistant from both speakers, the components in the frequency band to be changed are in a relationship to be amplified without being canceled out, and information can be easily extracted.

以上、埋め込み装置について説明したが、ここで、本実施形態である振幅変換を用いた埋め込みおよび抽出手法について図10から図13を用いて説明する。図10および図11は、比較のために、振幅変換を用いない場合の埋め込み処理および抽出処理を示し、図12および図13は本実施形態における振幅変換を用いた埋め込み処理および抽出処理を示す。これらの説明図においては、音響フレーム奇数および偶数3対分について、3ビットの情報を埋め込むことを想定した音響信号の信号波形を示しており、説明の便宜上、音響フレームが互いに重複しない状態で示している。各図において、左端の波形は時間次元の通常の音響信号波形を示しており、横方向は時間軸であり、右に向かうに従って時間が進行し、縦方向は強度(振幅)である。中央または右端の波形は周波数変換後の所定の周波数範囲のスペクトル成分の合算値を信号波形で表現しており、仮想的にバンドパスフィルターを通した後の信号波形になっている。縦方向は同様に強度であり、本来は左端に比べ顕著に低くなるが、ここでは説明の都合上、左端と同程度に拡大して表現している。また、2種類の波形のレベルも本来は差があるが、ここでは同一レベルで表現している。実際には、周波数変換後のデータとして所定の周波数範囲外の高周波数成分や低周波数成分も存在するが、これらについては改変を加えないという前提で図示しておらず、図4に従った埋め込みを行なう2種の周波数帯域成分に限定して2種の信号波形で示している。   The embedding apparatus has been described above. Here, an embedding and extraction method using amplitude conversion according to the present embodiment will be described with reference to FIGS. 10 to 13. For comparison, FIGS. 10 and 11 show an embedding process and an extracting process when amplitude conversion is not used, and FIGS. 12 and 13 show an embedding process and an extracting process using amplitude conversion in the present embodiment. In these explanatory diagrams, the signal waveform of the acoustic signal assuming that 3-bit information is embedded is shown for the odd and even three pairs of acoustic frames, and the acoustic frames are shown in a state where they do not overlap each other for convenience of explanation. ing. In each figure, the waveform at the left end shows a normal acoustic signal waveform in the time dimension, the horizontal direction is the time axis, the time advances toward the right, and the vertical direction is intensity (amplitude). The waveform at the center or right end represents the sum of spectral components in a predetermined frequency range after frequency conversion as a signal waveform, and is a signal waveform after virtually passing through a bandpass filter. The vertical direction is similarly strong, and is originally significantly lower than the left end, but here, for convenience of explanation, it is enlarged and expressed to the same extent as the left end. Although the levels of the two types of waveforms are originally different, they are represented at the same level here. Actually, there are high frequency components and low frequency components outside the predetermined frequency range as the data after frequency conversion, but these are not shown on the assumption that they are not modified, and are embedded according to FIG. The two signal waveforms are limited to the two frequency band components for performing the above.

図10(a)は原音響信号を示しており、最初の1対の音響フレームは全体に渡って強度がほぼ一定、中央の1対の音響フレームは奇数フレームの強度が小さく偶数フレームの強度が大きいものであり、最後の1対の音響フレームは奇数フレームの強度が大きく偶数フレームの強度が小さいものである。このような音響信号に対して、周波数変換を行った結果が図10(b)で、図4で示されように埋め込み対象成分は上下2分割して成分変更を施す都合上、図10(b)では(b−1)および(b−2)の2種の波形に分離して表現した。周波数変換後の波形形状は周波数ごとに異なり、図10(a)と必ずしも相似形にはならないが、ここでは周波数変換前と同様になると仮定して説明する。図10(b−1)および(b−2)に対して、[0,0,0]という3ビットのデータを図4で説明した方法に基づいて埋め込むことにより(図4ではビット0は符号1に相当する)、図10(c−1)および(c−2)が得られる。最初の1対は図4のようなパターンが表現できているが、残り2対の上下一方は、原段階に対して逆方向に大小関係を構築することが要求され、品質維持の都合上、適切なパターンが構築できていないことがわかる。このような改変を加えた結果に対して、周波数逆変換を行った結果が図10(d)である。一般に音響信号波形の外形(エンベロープという)はエネルギー分布が大きい低周波成分で決定され、これらは本願では所定の周波数範囲外の信号成分に含まれ、図10(c)の段階では改変が加えられていないため、周波数逆変換後の図10(d)は周波数変換前の図10(a)と類似した形状になる。   FIG. 10 (a) shows the original sound signal. The first pair of sound frames has a substantially constant intensity throughout, and the center pair of sound frames has a smaller odd frame intensity and an even frame intensity. The last pair of sound frames has a large odd-numbered frame and a large even-numbered frame. FIG. 10B shows the result of frequency conversion performed on such an acoustic signal. As shown in FIG. 4, the embedding target component is divided into upper and lower parts and the component is changed for convenience of FIG. ) Are expressed separately as two waveforms (b-1) and (b-2). The waveform shape after frequency conversion differs for each frequency and is not necessarily similar to that shown in FIG. 10A, but here, it will be assumed that it is the same as before frequency conversion. By embedding 3-bit data [0, 0, 0] based on the method described in FIG. 4 with respect to FIGS. 10 (b-1) and (b-2) (in FIG. 4, bit 0 is a sign). 10 (c-1) and (c-2) are obtained. The first pair can express a pattern as shown in FIG. 4, but the other two pairs of upper and lower ones are required to construct a magnitude relationship in the opposite direction with respect to the original stage. It turns out that an appropriate pattern has not been constructed. FIG. 10 (d) shows the result of frequency inverse transformation performed on the result of such modification. In general, the external shape (referred to as an envelope) of an acoustic signal waveform is determined by low-frequency components having a large energy distribution, which are included in signal components outside a predetermined frequency range in this application, and are modified at the stage of FIG. 10 (c). Therefore, FIG. 10D after frequency inverse transformation has a shape similar to FIG. 10A before frequency transformation.

このような埋め込みを行なった結果に対して、抽出処理を行う様子を図11に示す。図11(a)および図11(b)は各々図10(d)および図10(c)に対応する。図11(b)において、ビット判定を行なうにあたり、最初の1対以外は図4で想定されているパターンが形成されていないため、正しいビットを判定することが難しくなる。   FIG. 11 shows how extraction processing is performed on the result of such embedding. 11 (a) and 11 (b) correspond to FIGS. 10 (d) and 10 (c), respectively. In FIG. 11B, when performing bit determination, since the pattern assumed in FIG. 4 is not formed except for the first pair, it is difficult to determine a correct bit.

次に、本実施形態における振幅変換を導入した手法について図12および図13を用いて説明する。図12(a)は図10(a)と同じ原音響信号を示しており、同様に周波数変換を行った図12(b)も図10(b)と同じである。ここで、6つのフレーム単位に振幅変換を行った結果が図12(c)である。図12の場合、図12(a)で各フレーム内の振幅が平坦であるため、図12(c)では全体が平坦になっているが、実際には各フレーム内は微細に変動しており、そのフレーム内変動分は図12(c)の段階でも踏襲されるため、本図のように完全に平坦になることは通常ない。(実際は図12(c)は周波数次元のデータになるため、周波数次元のデータも平坦にならず変動した形態になる。)また、変換倍率はフレームごとに設定し、上下2つの周波数成分に対しては同一の倍率で変換を行うため、通常は上下で顕著な差が生じる(ただし、時間軸方向は比較的揃う)。これに対して、[0,0,0]という3ビットのデータを埋め込むと、図12(d−1)および(d−2)が得られる。原段階である図12(c)が平坦な波形であるため、全てのフレームにおいて図4のような理想的なパターンが容易に構築できることがわかる。続いて、前記フレームごとに設定した倍率の逆数を乗じて振幅逆変換を行った結果が図12(e)である。この段階では図10(c)と類似したパターンが生じることが多いが、本形状はいかなるものでも構わない。最後に周波数逆変換を行うと、図12(f)が得られ、同様に原信号波形の図12(a)と類似した形状になる。   Next, a method in which amplitude conversion is introduced in the present embodiment will be described with reference to FIGS. FIG. 12A shows the same original sound signal as FIG. 10A, and FIG. 12B in which frequency conversion is performed in the same manner is the same as FIG. 10B. Here, FIG. 12C shows the result of amplitude conversion performed in units of six frames. In the case of FIG. 12, since the amplitude in each frame is flat in FIG. 12 (a), the whole is flat in FIG. 12 (c). Since the intra-frame variation is followed even in the stage of FIG. 12C, it does not normally become completely flat as shown in FIG. (Actually, since FIG. 12 (c) is frequency dimension data, the frequency dimension data is not flat and fluctuates.) Also, the conversion magnification is set for each frame, and the upper and lower two frequency components are set. Since the conversion is performed at the same magnification, there is usually a significant difference between the upper and lower sides (however, the time axis direction is relatively uniform). On the other hand, when 3-bit data [0, 0, 0] is embedded, FIGS. 12D-1 and 12D-2 are obtained. Since FIG. 12C, which is the original stage, has a flat waveform, it can be seen that an ideal pattern as shown in FIG. 4 can be easily constructed in all frames. Next, FIG. 12E shows the result of inverse amplitude transformation performed by multiplying the inverse of the magnification set for each frame. At this stage, a pattern similar to that shown in FIG. 10C is often generated, but any shape can be used. Finally, when frequency inverse transform is performed, FIG. 12F is obtained, and similarly, the shape is similar to that of FIG. 12A of the original signal waveform.

このような埋め込みを行なった結果に対して、抽出処理を行う様子を図13に示す。図13(a)、(b)および(c)は各々図12(f)、(e)および(d)に対応する。図13(b)の周波数変換後の波形形状は図12(b)とは基本的に異なるが、算出される振幅変換倍率は類似した値になり、ほぼ同様な倍率で振幅変換が行われ図13(c)が得られる。図13(c)の段階で、ビット判定を行なうと、全てのフレームにおいて図4のような理想的なパターンが形成されているため、正しいビットを判定することが可能になる。   FIG. 13 shows how extraction processing is performed on the result of such embedding. FIGS. 13 (a), (b) and (c) correspond to FIGS. 12 (f), (e) and (d), respectively. Although the waveform shape after frequency conversion in FIG. 13B is basically different from that in FIG. 12B, the calculated amplitude conversion magnification is a similar value, and the amplitude conversion is performed at substantially the same magnification. 13 (c) is obtained. If bit determination is performed in the stage of FIG. 13C, an ideal pattern as shown in FIG. 4 is formed in all frames, so that correct bits can be determined.

なお、本実施形態では、図12(c)に示したように、埋め込み対象の信号成分が時間軸方向に平坦になるように変換を行って埋め込むようにしているため、高周波側と低周波側の成分強度の大小関係が完全に逆になるような不自然な変更を行う確率が低くなり、品質を維持しながら、抽出側における抽出精度を高めることが可能となる。   In this embodiment, as shown in FIG. 12C, since the signal component to be embedded is converted and embedded so as to be flat in the time axis direction, the high frequency side and the low frequency side are embedded. The probability of an unnatural change that completely reverses the magnitude relationship of the component intensities is reduced, and the extraction accuracy on the extraction side can be increased while maintaining the quality.

(2.音響信号の再生)
上記埋め込み装置により、付加情報であるコンテンツIDを、音楽を表現した音響信号に埋め込む。そして、展示場内では、各展示物付近に設置したスピーカから展示物に対応したコンテンツを特定するコンテンツIDを埋め込んだ音を発する。これには、図14に示すような3つの形態がある。図14(a)の例では、各音楽プレーヤ1〜音楽プレーヤ4が1つのスピーカ1〜スピーカ4を備えており、各展示物1〜展示物4付近に、それぞれ音楽プレーヤ1〜音楽プレーヤ4を設置した形態を示している。この例では、ID1〜ID4をそれぞれ埋め込んだ音響信号を、音楽プレーヤ1〜音楽プレーヤ4で再生する。この際、各音楽プレーヤのスピーカ同士は、ある程度離しておいた方が良い。ただし、特開2002−204492号公報に開示されているようなスピーカを用いれば、スピーカ同士を近づけても良い。
(2. Reproduction of acoustic signals)
The content ID, which is additional information, is embedded in an acoustic signal representing music by the embedding device. In the exhibition hall, a sound in which a content ID for specifying content corresponding to the exhibition is embedded is emitted from a speaker installed near each exhibition. There are three forms as shown in FIG. In the example of FIG. 14A, each music player 1 to music player 4 includes one speaker 1 to speaker 4, and the music player 1 to music player 4 are placed near each exhibit 1 to exhibit 4. The installed form is shown. In this example, audio signals in which ID1 to ID4 are embedded are reproduced by music player 1 to music player 4, respectively. At this time, it is preferable that the speakers of each music player be separated to some extent. However, if speakers such as those disclosed in JP-A-2002-204492 are used, the speakers may be brought closer to each other.

図14(b)の例では、各音楽プレーヤ1〜音楽プレーヤ4がそれぞれ2つのスピーカを備えており、各展示物1〜展示物4付近に、それぞれ音楽プレーヤ1〜音楽プレーヤ4を設置した形態を示している。この例では、ID1〜ID8を2チャンネルの音響信号の各チャンネルに埋め込み、それぞれ埋め込んだ音響信号を、音楽プレーヤ1〜音楽プレーヤ4で再生する。この場合、1つの音楽プレーヤに接続された2つのスピーカからは、異なるIDが埋め込まれた音が発せられる。したがって、利用者がコンテンツ再生装置を持って、展示物1に近付いた場合であっても、スピーカ1に近付いた時とスピーカ2に近付いた時とでは、異なるIDが抽出されることになる。   In the example of FIG. 14B, each of the music players 1 to 4 has two speakers, and the music players 1 to 4 are installed near the exhibits 1 to 4 respectively. Is shown. In this example, ID1 to ID8 are embedded in each channel of the two-channel audio signals, and the embedded audio signals are reproduced by music player 1 to music player 4, respectively. In this case, a sound in which different IDs are embedded is emitted from two speakers connected to one music player. Therefore, even when the user approaches the exhibit 1 with the content playback device, different IDs are extracted when the user approaches the speaker 1 and when the user approaches the speaker 2.

図14(c)の例では、1台のマルチトラック音楽プレーヤが4つのスピーカ1〜スピーカ4を備えており、各展示物1〜展示物4付近に、それぞれスピーカ1〜スピーカ4を設置した形態を示している。この例では、ID1〜ID4を4チャンネルの音響信号の各チャンネルに埋め込み、埋め込んだ音響信号を、マルチトラック音楽プレーヤで再生する。この場合、利用者がコンテンツ再生装置を持って、スピーカに近付くと、そこから出た音に埋め込まれているIDを抽出することができる。この形態では、全てのスピーカが同一の音楽を流しているので、スピーカ同士を接近させても邪魔にならない。   In the example of FIG. 14C, one multi-track music player includes four speakers 1 to 4 and speakers 1 to 4 are installed near the exhibits 1 to 4 respectively. Is shown. In this example, ID1 to ID4 are embedded in each channel of the 4-channel audio signal, and the embedded audio signal is reproduced by a multi-track music player. In this case, when the user holds the content reproduction apparatus and approaches the speaker, the ID embedded in the sound emitted from the speaker can be extracted. In this form, since all the speakers play the same music, it does not get in the way even if the speakers are brought close to each other.

図14(a)〜(c)においては、各スピーカごとに異なるIDを埋め込むようにしているが、各々のIDを更に時間的に変化させるようにしても良い。例えば、図14(a)の例で、各スピーカから4分の楽曲を繰り返し再生するようにしている場合、スピーカ1では1分ごとにID11、ID12、ID13、ID14なる4種類のIDを順次埋め込み、スピーカ2では1分ごとにID21、ID22、ID23、ID24なる4種類のIDを順次埋め込み、スピーカ3では1分ごとにID31、ID32、ID33、ID34なる4種類のIDを順次埋め込み、スピーカ4では1分ごとにID41、ID42、ID43、ID44なる4種類のIDを順次埋め込むようにしても良い。これにより、長時間に同じ場所にいても、4種の異なるコンテンツを再生させるようにすることができる。   In FIGS. 14A to 14C, different IDs are embedded for each speaker, but each ID may be further changed with time. For example, in the example of FIG. 14A, when a 4-minute music piece is repeatedly played from each speaker, the speaker 1 sequentially embeds four types of IDs of ID11, ID12, ID13, and ID14 every minute. The speaker 2 sequentially embeds four types of IDs ID21, ID22, ID23, and ID24 every minute. The speaker 3 sequentially embeds four types of IDs ID31, ID32, ID33, and ID34 every minute. Four types of IDs of ID41, ID42, ID43, and ID44 may be sequentially embedded every minute. As a result, four different types of content can be played back even in the same place for a long time.

(3.コンテンツ再生装置)
次に、本発明に係るコンテンツ再生装置について説明する。図15は、本発明に係るコンテンツ再生装置の一実施形態を示す構成図である。図15において、200はコンテンツ記憶手段、210は音響信号入力手段、220はID抽出手段、230は再生リスト保持手段、240は再生手段である。
(3. Content playback device)
Next, the content reproduction apparatus according to the present invention will be described. FIG. 15 is a block diagram showing an embodiment of a content reproduction apparatus according to the present invention. In FIG. 15, reference numeral 200 denotes a content storage unit, 210 denotes an acoustic signal input unit, 220 denotes an ID extraction unit, 230 denotes a reproduction list holding unit, and 240 denotes a reproduction unit.

コンテンツ記憶手段200は、再生対象であるコンテンツを記憶したものであり、携帯型端末内のハードディスク、フラッシュメモリ等の記憶装置で実現される。本実施形態では、静止画、動画、音声を組み合わせたものを1つのコンテンツとし、各コンテンツにコンテンツIDを付与して記憶している。また、各コンテンツを構成するフレームの再生順序を示した再生リストを、コンテンツIDと対応付けて記憶している。なお、コンテンツの内容としては、例えば、展示場内で利用する場合、展示物に関連するものや展示物を説明するものなどが用意されることになる。   The content storage unit 200 stores content to be reproduced, and is realized by a storage device such as a hard disk or a flash memory in the portable terminal. In this embodiment, a combination of a still image, a moving image, and audio is defined as one content, and each content is stored with a content ID. In addition, a reproduction list indicating the reproduction order of frames constituting each content is stored in association with the content ID. In addition, as the content of the content, for example, when used in an exhibition hall, a content related to the exhibit or a description of the exhibit is prepared.

音響信号入力手段210は、流れている音声をデジタル音響信号として取得し、入力する。現実には、マイクロフォンおよびA/D変換器により実現される。マイクロフォンとしては、変更対象周波数帯の成分が検出可能なものであれば、モノラル無指向性のものであっても、ステレオ指向性のものであっても使用可能である。ステレオ指向性のものであっても一方のチャンネルだけ利用すれば良い。また、図1に示した埋め込み装置で情報の埋め込みを行った場合には、ステレオで再生されるが、左右どちらのスピーカの音を入力しても、双方のスピーカの音を混合入力しても良く、マイクロフォンの設置位置に制約がない。このマイクロフォンは特別精度の高いものでなく、一般的な精度のマイクロフォンを用いても情報の抽出が可能となる。   The acoustic signal input unit 210 acquires and inputs the flowing voice as a digital acoustic signal. In reality, it is realized by a microphone and an A / D converter. Any microphone can be used, regardless of whether it is monaural omnidirectional or stereo directional, as long as the component in the frequency band to be changed can be detected. Even if it is stereo-directional, only one channel needs to be used. In addition, when information is embedded by the embedding apparatus shown in FIG. 1, the information is reproduced in stereo, but the sound from either the left or right speaker can be input or the sound from both speakers can be mixed and input. Good, there are no restrictions on the location of the microphone. This microphone is not highly accurate, and information can be extracted using a microphone with general accuracy.

ID抽出手段220は、音響信号入力手段210により入力されたデジタル音響信号から、埋め込まれていたIDを抽出する。ID抽出手段220の詳細については後述する。再生リスト保持手段230は、再生対象とするコンテンツの再生リストを一時的に保持する。再生リスト保持手段230は、メモリ内に確保された所定の記憶領域である。再生手段240は、再生リスト保持手段230に保持された再生リストに従って対応するコンテンツの対応するフレームをコンテンツ記憶手段200から抽出し、再生する。再生処理自体は、公知の再生処理技術を用い、フレーム内の画像(静止画・動画)については、表示手段から表示出力し、フレーム内の音声については、スピーカから音声出力する。   The ID extraction unit 220 extracts the embedded ID from the digital sound signal input by the sound signal input unit 210. Details of the ID extracting unit 220 will be described later. The reproduction list holding unit 230 temporarily holds a reproduction list of content to be reproduced. The reproduction list holding unit 230 is a predetermined storage area secured in the memory. The reproduction unit 240 extracts the corresponding frame of the corresponding content from the content storage unit 200 according to the reproduction list held in the reproduction list holding unit 230 and reproduces it. The reproduction processing itself uses a known reproduction processing technique, and displays and outputs the image (still image / moving image) in the frame from the display means, and outputs the sound in the frame from the speaker.

図15に示した各構成手段は、現実には情報処理機能を有するPDA、携帯電話機等の携帯型端末に専用のプログラムを組み込むことにより実現される。PDA、携帯電話機等の携帯型端末は、コンピュータとしての機能を有しており、組み込まれた専用のプログラムを実行することにより、コンテンツ再生装置が実現される。   Each component shown in FIG. 15 is actually realized by incorporating a dedicated program into a portable terminal such as a PDA or a cellular phone having an information processing function. A portable terminal such as a PDA or a mobile phone has a computer function, and a content reproduction apparatus is realized by executing a built-in dedicated program.

次に、本発明に係るコンテンツ再生装置の処理動作について、図16のフローチャートを用いて説明する。図16は、コンテンツが静止画で構成されている場合の例である。図16に示すように、本発明のコンテンツ再生装置は、大きく分けて、ID抽出ループと再生ループの2つのループ処理を実行する。まず、ID抽出ループについて説明する。コンテンツ再生装置の音響信号入力手段210、ID抽出手段220は、2系統で処理される。2つの系統を交互に利用することにより、音声を漏れなく取り込むことができる。それぞれの系統で録音された音声は、音声ファイルに記録され、そこからコンテンツIDを抽出する。図16において、S501〜S503、S504〜S506はそれぞれの系統に対応した処理であり、同一の処理である。   Next, the processing operation of the content reproduction apparatus according to the present invention will be described using the flowchart of FIG. FIG. 16 shows an example where the content is composed of still images. As shown in FIG. 16, the content playback apparatus of the present invention roughly divides and executes two loop processes, an ID extraction loop and a playback loop. First, the ID extraction loop will be described. The audio signal input unit 210 and the ID extraction unit 220 of the content reproduction apparatus are processed in two systems. By using the two systems alternately, it is possible to capture sound without omission. Audio recorded by each system is recorded in an audio file, and a content ID is extracted therefrom. In FIG. 16, S501 to S503 and S504 to S506 are processes corresponding to the respective systems, and are the same processes.

コンテンツ再生装置を起動すると、音響信号入力手段210は、流れている音声を録音した後、デジタル変換し、デジタル音響信号として音声ファイル1に記録する処理を開始する(S501)。この録音処理では、実際に流れている音声より任意の短い区間を実時間で収録するため、その短い区間と同じ時間を要することになる。本実施形態では、4秒単位で録音処理を行っている。この録音処理に並行して、ID抽出手段220は、音声ファイル2に記録されたデジタル音響信号からコンテンツIDを抽出する(S502)。このID抽出処理は、4秒分の音響信号の処理を2秒程度で行うことができるため、別系統の録音処理の間に終了することになる。なお、初回だけは、音声ファイル2には何も記録されていないので、ID抽出処理は行われない。そして、S501で開始した音響信号入力手段210による録音処理が終了する(S503)。   When the content playback apparatus is activated, the sound signal input unit 210 records the flowing sound, converts the sound into a digital signal, and starts processing to record the sound file 1 as a digital sound signal (S501). In this recording process, since an arbitrary short section is recorded in real time from the sound that is actually flowing, the same time as that short section is required. In the present embodiment, the recording process is performed in units of 4 seconds. In parallel with this recording process, the ID extraction unit 220 extracts the content ID from the digital acoustic signal recorded in the audio file 2 (S502). Since this ID extraction process can process the acoustic signal for 4 seconds in about 2 seconds, it ends during the recording process of another system. In addition, since nothing is recorded in the audio file 2 only for the first time, the ID extraction process is not performed. Then, the recording process by the acoustic signal input unit 210 started in S501 ends (S503).

S504、S505、S506の処理は、それぞれS501、S502、S503に対応している。S504〜S506では、音響信号入力手段210、ID抽出手段220はそれぞれ、S501〜S503とは別の系統に対して同一の処理を行う。すなわち、S504〜S506では、音声ファイル2に対して音響信号入力手段210が録音処理を行っている間に、音声ファイル1からID抽出手段220がコンテンツIDの抽出処理を行う。   The processes of S504, S505, and S506 correspond to S501, S502, and S503, respectively. In S504 to S506, the acoustic signal input unit 210 and the ID extraction unit 220 perform the same processing on a system different from S501 to S503, respectively. That is, in S504 to S506, while the sound signal input unit 210 performs the recording process for the audio file 2, the ID extraction unit 220 performs the content ID extraction process from the audio file 1.

S502、S505で抽出されたコンテンツIDは、ID抽出手段220により、再生リスト保持手段230に保持されている再生リストのコンテンツIDと比較され、異なる場合は、ID抽出手段220は、抽出したコンテンツIDに対応する再生リストをコンテンツ記憶手段200から抽出し、再生リスト保持手段230内の再生リストを変更する。この際、再生リスト保持手段230は、再生対象フレームとして、先頭フレームのフレームIDを保持する。具体的には、再生リストに示された先頭のフレームのポインタ位置を保持する。   The content ID extracted in S502 and S505 is compared with the content ID of the playlist held in the playlist holding unit 230 by the ID extracting unit 220. If the content ID is different, the ID extracting unit 220 extracts the extracted content ID. Is extracted from the content storage unit 200, and the playlist in the playlist holding unit 230 is changed. At this time, the reproduction list holding unit 230 holds the frame ID of the first frame as a reproduction target frame. Specifically, the pointer position of the first frame indicated in the reproduction list is held.

次に、再生ループについて説明する。再生ループにおけるS508〜S511の処理は、再生手段240により実行される。まず、再生手段240は再生リスト保持手段230を参照し、再生リスト保持手段230が保持している再生対象のフレームIDを取得し、そのフレームIDに対応するフレームをコンテンツ記憶手段200から抽出する(S508)。そして、抽出したフレームの再生処理を行う(S509)。再生処理後、再生手段240は、再生リスト保持手段230内の再生対象フレームを再生リスト上の次のフレームに更新する(S510)。具体的には、再生リストに示された次のフレームのポインタ位置を保持する。その後、再生手段240は、再生リスト保持手段230が保持する再生リスト上の再生時間から算出される次のフレームの再生開始時刻まで待機する(S511)。次のフレームの再生開始時刻になったら、S508に戻って、再生手段240は再生リスト保持手段230を参照し、対応するフレームをコンテンツ記憶手段200から抽出する。   Next, the playback loop will be described. The processing of S508 to S511 in the playback loop is executed by the playback means 240. First, the reproduction unit 240 refers to the reproduction list holding unit 230, acquires the reproduction target frame ID held by the reproduction list holding unit 230, and extracts the frame corresponding to the frame ID from the content storage unit 200 ( S508). Then, reproduction processing of the extracted frame is performed (S509). After the reproduction process, the reproduction unit 240 updates the reproduction target frame in the reproduction list holding unit 230 to the next frame on the reproduction list (S510). Specifically, the pointer position of the next frame shown in the reproduction list is held. Thereafter, the playback unit 240 stands by until the playback start time of the next frame calculated from the playback time on the playback list held by the playlist holding unit 230 (S511). When the next frame playback start time comes, the process returns to S508, and the playback unit 240 refers to the playback list holding unit 230 and extracts the corresponding frame from the content storage unit 200.

上述のように、ID抽出ループにおいては、録音、ID抽出を繰り返す。また、これと並行して、再生ループにおいては、再生リスト保持手段230内の再生リストを参照し、対応するコンテンツを再生する。このため、再生ループ側では、所定の再生単位が終了した後、ID抽出ループ処理により抽出されたコンテンツIDに対応したコンテンツを先頭から再生し、また、異なるコンテンツIDがID抽出ループ処理により抽出された場合には、そのコンテンツIDに対応したコンテンツを先頭から再生するという処理を行っていくことになる。この結果、例えば、本発明のコンテンツ再生装置を、展示会場などで利用し、展示物別のコンテンツを格納しておいた場合には、展示会場内を移動して異なる展示物の付近へ行くたびに、その説明を先頭から流すことが可能となる。この際、コンテンツ再生装置の所持者は、一切その操作を行う必要はない。   As described above, recording and ID extraction are repeated in the ID extraction loop. In parallel with this, in the playback loop, the playback list in the playback list holding means 230 is referred to and the corresponding content is played back. Therefore, on the playback loop side, after a predetermined playback unit ends, the content corresponding to the content ID extracted by the ID extraction loop processing is played from the beginning, and a different content ID is extracted by the ID extraction loop processing. In such a case, the content corresponding to the content ID is reproduced from the beginning. As a result, for example, when the content reproduction apparatus of the present invention is used in an exhibition hall or the like and contents by exhibition are stored, every time the user moves around the exhibition hall and goes to the vicinity of a different exhibition, In addition, the explanation can be sent from the top. At this time, the owner of the content reproduction apparatus does not need to perform any operation.

続いて、音響信号入力手段210、ID抽出手段220の処理、再生リスト保持手段230内の状態、再生手段240による並列処理のタイミングについて説明する。図17は、各手段による並行処理の様子を示す図である。図17に示すように、音響信号入力手段210は、2系統の録音処理(図中、「音声録音1」「音声録音2」として示す)を連続して繰り返し行う。すなわち、音声録音1による音声ファイル1への録音処理が終わった直後に音声録音2による音声ファイル2への録音処理を開始し、音声録音2による音声ファイル2への録音処理が終わった直後に音声録音1による音声ファイル1への録音処理を開始するという具合に間断なく、交互の系統で録音処理を行う。   Next, processing of the acoustic signal input unit 210 and ID extraction unit 220, the state in the playlist holding unit 230, and the timing of parallel processing by the playback unit 240 will be described. FIG. 17 is a diagram illustrating a state of parallel processing by each unit. As shown in FIG. 17, the acoustic signal input unit 210 continuously and repeatedly performs two systems of recording processing (shown as “voice recording 1” and “voice recording 2” in the figure). That is, immediately after the recording process to the audio file 1 by the audio recording 1 is finished, the recording process to the audio file 2 by the audio recording 2 is started, and immediately after the recording process to the audio file 2 by the audio recording 2 is finished. The recording process is performed in an alternating system without interruption, such as starting the recording process to the audio file 1 by the recording 1.

ID抽出手段220では、音響信号入力手段210から音声ファイルを受け取ると、音声ファイルに記録された音響信号からIDの抽出を行う。2系統で並列して抽出(図中、「ID抽出1」「ID抽出2」として示す)を行うため、音響信号入力手段210が音声ファイル1に対して録音処理を行っているときは、音声ファイル2からID抽出を行い、音響信号入力手段210が音声ファイル2に対して録音処理を行っているときは、音声ファイル1からID抽出を行う。本実施形態では、音響信号入力手段210は4秒単位で音響信号を録音する。この録音には、必ず4秒要することになるが、ID抽出手段220は1ファイルを2秒程度で処理可能である。したがって、音響信号入力手段210は、処理開始から休むことなく処理し続けるが、ID抽出手段220は、コンテンツIDの抽出後、次の音声ファイルを音響信号入力手段210から受け取るまで待機状態となる。   When receiving an audio file from the acoustic signal input unit 210, the ID extraction unit 220 extracts an ID from the acoustic signal recorded in the audio file. When the acoustic signal input unit 210 is performing recording processing on the audio file 1 in order to perform extraction in two systems in parallel (shown as “ID extraction 1” and “ID extraction 2” in the figure) ID extraction is performed from the file 2, and ID extraction is performed from the audio file 1 when the acoustic signal input unit 210 is performing a recording process on the audio file 2. In the present embodiment, the acoustic signal input unit 210 records an acoustic signal in units of 4 seconds. This recording always takes 4 seconds, but the ID extraction means 220 can process one file in about 2 seconds. Therefore, the acoustic signal input unit 210 continues processing without taking a break from the start of processing, but the ID extraction unit 220 is in a standby state until the next audio file is received from the acoustic signal input unit 210 after extracting the content ID.

再生リスト保持手段230は、ID抽出手段220が抽出したコンテンツIDに対応する再生リストを記録する。ID抽出手段220がコンテンツIDの抽出に失敗した場合には、再生リストの変更は行われない。再生手段240は、再生リスト保持手段230に保持された再生リストに対応するコンテンツの再生を行う。図の例では、コンテンツ1のフレームFr14の再生処理が終わった時点で、再生リスト保持手段230内の再生リストがコンテンツ2に対応したものとなっているので、再生手段240は、次に、コンテンツ2の先頭のフレームFr21の再生処理を行う。   The reproduction list holding unit 230 records a reproduction list corresponding to the content ID extracted by the ID extraction unit 220. If the ID extraction unit 220 fails to extract the content ID, the playlist is not changed. The reproduction unit 240 reproduces the content corresponding to the reproduction list held in the reproduction list holding unit 230. In the example shown in the figure, the reproduction list in the reproduction list holding unit 230 corresponds to the content 2 when the reproduction processing of the frame Fr14 of the content 1 is completed. The reproduction process of the first frame Fr21 is performed.

ここで、再生リスト保持手段230に記憶された再生リストの一例を図18(a)に示す。図18(a)では、3つの静止画で構成されるコンテンツの例を示している。このコンテンツのコンテンツIDは“Co1”となっている。図18(a)において、フレームIDは、フレームを特定するためのIDである。再生リストにおいては、掲載されたフレームIDの順番で再生順序が定義される。したがって、図18(a)の再生リストでは、コンテンツ“Co1”は、Fr11、Fr12、Fr13の順序で再生されることを示している。画像ファイル名は、フレームに対応した静止画を記録したファイルの名前である。切り替え方式・時間は、前の画像から切り替える際の切り替え方式と、切り替えに要する時間を示している。例えば、Fr11の場合、前の画像から一瞬で全体が切り替わることを示している。再生時間は、静止画が表示されている時間である。   Here, an example of the playlist stored in the playlist holding means 230 is shown in FIG. FIG. 18A shows an example of content composed of three still images. The content ID of this content is “Co1”. In FIG. 18A, the frame ID is an ID for specifying a frame. In the playback list, the playback order is defined by the order of the posted frame IDs. Accordingly, the reproduction list in FIG. 18A indicates that the content “Co1” is reproduced in the order of Fr11, Fr12, and Fr13. The image file name is a name of a file in which a still image corresponding to the frame is recorded. The switching method / time indicates the switching method when switching from the previous image and the time required for switching. For example, in the case of Fr11, the entire image is switched from the previous image in an instant. The playback time is the time during which a still image is displayed.

具体的に、図18(a)の情報を利用した静止画再生の様子を図18(b)に示す。まず、図18(a)に示すように、Fr11はカットで表示され、再生時間が6秒であるので、図18(b)の左端の図のように、Fr11が6秒間表示される。そして、図18(a)に示すように、Fr11からFr12へはワイプで切替えられ、所要時間が1秒であるので、図18(b)の左から2番目の図のように、Fr12が左側から1秒間かけてワイプする。そして、図18(a)に示すように、Fr12の再生時間は8秒であるので、図18(b)真ん中の図のように、Fr12が8秒間表示される。そして、図18(a)に示すように、Fr12からFr13へはディゾルブで切替えられ、所要時間が1秒であるので、図18(b)の右から2番目の図のように、Fr12からFr13に1秒間かけて徐々に変化する。そして、図18(a)に示すように、Fr13の再生時間は5秒であるので、図18(b)の右端の図のように、Fr13が5秒間表示される。   Specifically, FIG. 18B shows a state of still image reproduction using the information of FIG. First, as shown in FIG. 18 (a), Fr11 is displayed as a cut and the playback time is 6 seconds, so Fr11 is displayed for 6 seconds as shown in the leftmost diagram of FIG. 18 (b). Then, as shown in FIG. 18 (a), Fr11 is switched to Fr12 by wiping, and the required time is 1 second. Therefore, as shown in the second diagram from the left in FIG. Wipe for 1 second. As shown in FIG. 18 (a), the playback time of Fr12 is 8 seconds, so Fr12 is displayed for 8 seconds as shown in the middle diagram of FIG. 18 (b). Then, as shown in FIG. 18 (a), Fr12 to Fr13 are switched by dissolve, and the required time is 1 second. Therefore, as shown in the second diagram from the right in FIG. Gradually changes over 1 second. Then, as shown in FIG. 18A, since the playback time of Fr13 is 5 seconds, Fr13 is displayed for 5 seconds as shown at the right end of FIG. 18B.

次に、コンテンツが動画または音声を含む場合について説明する。コンテンツが動画または音声を含む場合は、静止画の場合と異なり、動画または音声の再生を開始したらその動画または音声が終了するまで再生を実行する。したがって、この間にIDを抽出しても意味がないため、録音・ID抽出処理を中断する。図19は、コンテンツが動画または音声である場合のフローチャートである。図19に示すように、ID抽出ループと再生ループの2つのループ処理で構成される点は、静止画の場合と同様である。図19において、図16と同一の処理については、同一符号を付して説明を省略する。   Next, a case where content includes moving images or audio will be described. When the content includes a moving image or sound, unlike the case of a still image, when the reproduction of the moving image or sound is started, the reproduction is executed until the moving image or sound ends. Therefore, since it is meaningless to extract the ID during this period, the recording / ID extraction process is interrupted. FIG. 19 is a flowchart when the content is a moving image or audio. As shown in FIG. 19, the point constituted by two loop processes of an ID extraction loop and a reproduction loop is the same as in the case of a still image. In FIG. 19, the same processes as those in FIG.

図19において、図16と異なるのは、再生ループにおけるS512〜S514の処理である。具体的には、再生リストに対応するフレームのデータをコンテンツ記憶手段200から抽出した後(S508)、ID抽出ループを停止する(S512)。これは、再生手段240から音響信号入力手段210、ID抽出手段220に対して指示を出すことにより行われる。続いて、抽出したコンテンツである動画・音声の再生処理を行う(S513)。再生処理後、再生手段240は、音響信号入力手段210、ID抽出手段220に対して指示を出し、ID抽出ループを再開させる(S514)。そして、再生リスト保持手段230内の再生対象のフレームIDを更新する(S510)。   19 is different from FIG. 16 in the processing of S512 to S514 in the reproduction loop. Specifically, after extracting the frame data corresponding to the reproduction list from the content storage means 200 (S508), the ID extraction loop is stopped (S512). This is performed by giving an instruction to the acoustic signal input unit 210 and the ID extraction unit 220 from the reproduction unit 240. Subsequently, the reproduction processing of the moving image / sound that is the extracted content is performed (S513). After the reproduction process, the reproduction unit 240 issues an instruction to the acoustic signal input unit 210 and the ID extraction unit 220 to restart the ID extraction loop (S514). Then, the reproduction target frame ID in the reproduction list holding means 230 is updated (S510).

続いて、コンテンツが動画または音声である場合の、音響信号入力手段210、ID抽出手段220の処理、再生リスト保持手段230内の状態、再生手段240による並列処理のタイミングについて説明する。図20は、各手段による並行処理の様子を示す図である。動画または音声を再生する場合は、静止画の場合と異なり、動画または音声の再生が開始されたら、その終了まで、録音・ID抽出ループの処理を停止する。したがって、図20に示すように、動画・音声であるコンテンツが再生されている間は、録音処理を停止し、動画・音声であるコンテンツの再生が終了してから、音声録音を再開する。   Next, the processing of the acoustic signal input unit 210 and the ID extraction unit 220, the state in the playlist holding unit 230, and the timing of parallel processing by the playback unit 240 when the content is a moving image or sound will be described. FIG. 20 is a diagram illustrating a state of parallel processing by each unit. When reproducing a moving image or sound, unlike the case of a still image, when the reproduction of the moving image or sound is started, the process of the recording / ID extraction loop is stopped until the end. Therefore, as shown in FIG. 20, the recording process is stopped while the content that is a moving image / sound is being reproduced, and the sound recording is resumed after the reproduction of the content that is a moving image / sound is finished.

(4.ID抽出手段の詳細)
次に、本発明のコンテンツ再生装置の構成要素であるID抽出手段220の詳細について説明する。図21は、ID抽出手段220の詳細を示す構成図である。図21において、110は基準フレーム獲得手段、120は位相変更フレーム設定手段、130は周波数変換手段、140は符号判定パラメータ算出手段、150は符号出力手段、160は付加情報抽出手段、170は音響フレーム保持手段、180は変換テーブル作成手段である。
(4. Details of ID extraction means)
Next, details of the ID extracting means 220, which is a component of the content reproduction apparatus of the present invention, will be described. FIG. 21 is a configuration diagram showing details of the ID extracting means 220. In FIG. 21, 110 is a reference frame acquisition unit, 120 is a phase change frame setting unit, 130 is a frequency conversion unit, 140 is a code determination parameter calculation unit, 150 is a code output unit, 160 is an additional information extraction unit, and 170 is an acoustic frame. Holding means 180 is a conversion table creating means.

基準フレーム獲得手段110は、入力されたデジタルのモノラル音響信号(あるいはステレオ音響信号の1チャンネル)から所定数のサンプルで構成される音響フレームを基準フレームとして読み込む機能を有している。基準フレームとしては、埋め込み時と同様にAタイプ、Bタイプのものが設定される。位相変更フレーム設定手段120は、Aタイプ、Bタイプそれぞれの基準フレームと所定サンプルずつ移動させることにより位相を変更した音響フレームを位相変更フレームとして設定する機能を有している。   The reference frame acquisition unit 110 has a function of reading an audio frame composed of a predetermined number of samples as a reference frame from the input digital monaural audio signal (or one channel of a stereo audio signal). As the reference frame, A type and B type are set as in the case of embedding. The phase change frame setting means 120 has a function of setting, as a phase change frame, an acoustic frame whose phase has been changed by moving each of the A type and B type reference frames and predetermined samples.

周波数変換手段130は、基本的には、図1に示した周波数変換手段20とほぼ同様の機能を有している。ただし、音を取り込むタイミングが、音響信号の先頭からとはならないため、正しい位相を特定するために、複数の位相で振幅変換、周波数変換を行う点、元の音響信号がステレオであっても、1つのチャンネルで行う点が異なっている。   The frequency conversion unit 130 basically has substantially the same function as the frequency conversion unit 20 shown in FIG. However, since the timing to capture the sound does not start from the beginning of the acoustic signal, in order to identify the correct phase, amplitude conversion and frequency conversion are performed with multiple phases, even if the original acoustic signal is stereo, The difference is that one channel is used.

周波数変換手段130は、Aタイプの音響フレームに対してフーリエ変換を行う場合は、信号X(i−N/2+pN/6)(i=0,…,N−1)に対して、窓関数W(1,i)を用いて、以下の〔数式12〕に従った処理を行い、変換データの実部A(1,j,p)、虚部B(1,j,p)を得る機能を有している。pは位相番号であり、0〜5の整数値をとる。   When performing the Fourier transform on the A type acoustic frame, the frequency converting unit 130 applies the window function W to the signal X (i−N / 2 + pN / 6) (i = 0,..., N−1). (1, i) is used to perform processing according to the following [Equation 12] to obtain the real part A (1, j, p) and imaginary part B (1, j, p) of the converted data. Have. p is a phase number and takes an integer value of 0 to 5.

〔数式12〕
A(1,j,p)=Σi=0,…,N-1W(1,i)・X(i−N/2+p・N/6)・cos(2πij/N)
B(1,j,p)=Σi=0,…,N-1W(1,i)・X(i−N/2+p・N/6)・sin(2πij/N)
[Formula 12]
A (1, j, p) = Σi = 0,..., N-1 W (1, i) .X (i-N / 2 + p.N / 6) .cos (2πij / N)
B (1, j, p) = Σi = 0,..., N-1 W (1, i) .X (i-N / 2 + p.N / 6) .sin (2πij / N)

周波数変換手段130は、Bタイプの音響フレームに対してフーリエ変換を行う場合は、信号X(i+p・N/6)(i=0,…,N−1)に対して、窓関数W(2,i)を用いて、以下の〔数式13〕に従った処理を行い、変換データの実部A(2,j,p)、虚部B(2,j,p)を得る機能を有している。   When the Fourier transform is performed on the B type acoustic frame, the frequency converting unit 130 applies the window function W (2) to the signal X (i + p · N / 6) (i = 0,..., N−1). , I) is used to perform processing according to the following [Equation 13] to obtain the real part A (2, j, p) and imaginary part B (2, j, p) of the converted data. ing.

〔数式13〕
A(2,j,p)=Σi=0,…,N-1W(2,i)・X(i+p・N/6)・cos(2πij/N)
B(2,j,p)=Σi=0,…,N-1W(2,i)・X(i+p・N/6)・sin(2πij/N)
[Formula 13]
A (2, j, p) = Σ i = 0,..., N-1 W (2, i) · X (i + p · N / 6) · cos (2πij / N)
B (2, j, p) = Σi = 0,..., N-1 W (2, i) .X (i + p.N / 6) .sin (2πij / N)

周波数変換手段130は、周波数変換手段20と同様に振幅変換を行う。振幅変換を行うにあたり、まず変換倍率の算出を行う。変換倍率の算出は、所定周波数範囲のスペクトル集合の実効強度値の平均である平均実効値で、設定値を除算することにより行う。設定値は、適宜定めておくことができるが、埋め込み時における振幅変換の場合と同一値としておくことが必要となる。したがって、本実施形態では、設定値Zoは160にする必要がある。具体的には、Aタイプの音響フレーム、Bタイプの音響フレームについての変換倍率Z(1,p)、Z(2,p)、これらの直前のAタイプの音響フレーム、Bタイプの音響フレームについての変換倍率Z-1(1,p)、Z-1(2,p)は、以下の〔数式14〕に従った処理により算出される。振幅変換が実行されることにより、全ての音響フレームは、元の状態における信号強度に関わらず、各音響フレームの平均実効値が設定値となるように振幅変換された状態で、情報の抽出が行われることになる。なお、pは位相番号であり、0〜5の整数値をとる。 The frequency conversion unit 130 performs amplitude conversion in the same manner as the frequency conversion unit 20. In performing amplitude conversion, first, conversion magnification is calculated. The conversion magnification is calculated by dividing the set value by the average effective value that is the average of the effective intensity values of the spectrum set in the predetermined frequency range. Although the set value can be determined as appropriate, it is necessary to set the same value as in the case of amplitude conversion at the time of embedding. Therefore, in the present embodiment, the set value Zo needs to be 160. Specifically, the conversion magnifications Z (1, p) and Z (2, p) for the A type acoustic frame and the B type acoustic frame, the A type acoustic frame immediately before these, and the B type acoustic frame. The conversion magnifications Z −1 (1, p) and Z −1 (2, p) are calculated by processing according to the following [Equation 14]. By performing the amplitude conversion, all the sound frames are extracted in a state where the amplitude is converted so that the average effective value of each sound frame becomes a set value regardless of the signal strength in the original state. Will be done. In addition, p is a phase number and takes an integer value of 0-5.

〔数式14〕
Z(1,p)=Zo/[Σj=m,…,m+2G-1{A(1,j,p)2+B(1,j,p)2}]1/2
Z(2,p)=Zo/[Σj=m,…,m+2G-1{A(2,j,p)2+B(2,j,p)2}]1/2
-1(1,p)=Zo/[Σj=m,…,m+2G-1{A-1(1,j,p)2+B-1(1,j,p)2}]1/2
-1(2,p)=Zo/[Σj=m,…,m+2G-1{A-1(2,j,p)2+B-1(2,j,p)2}]1/2
[Formula 14]
Z (1, p) = Zo / [Σ j = m,..., M + 2G−1 {A (1, j, p) 2 + B (1, j, p) 2 }] 1/2
Z (2, p) = Zo / [Σ j = m,..., M + 2G-1 {A (2, j, p) 2 + B (2, j, p) 2 }] 1/2
Z −1 (1, p) = Zo / [Σ j = m,..., M + 2G−1 {A −1 (1, j, p) 2 + B −1 (1, j, p) 2 }] 1 / 2
Z −1 (2, p) = Zo / [Σ j = m,..., M + 2G−1 {A −1 (2, j, p) 2 + B −1 (2, j, p) 2 }] 1 / 2

j=m,…,m+2G−1(周波数F1,...,F2に相当)およびp=0,...,5の範囲で、A(1,j,p)およびB(1,j,p)の各々の要素に対してZ(1,p)を乗じ、A(2,j,p)およびB(2,j,p)の各々の要素に対してZ(2,p)を乗じ、A-1(1,j,p)およびB-1(1,j,p)の各々の要素に対してZ-1(1,p)を乗じ、A-1(2,j,p)およびB-1(2,j,p)の各々の要素に対してZ-1(2,p)を乗じることにより、振幅変換を行う。以下説明において、A(1,j,p)、B(1,j,p)、A(2,j,p)、B(2,j,p)、A-1(1,j,p)、B-1(1,j,p)、A-1(2,j,p)、B-1(2,j,p)はこれらの振幅変換を行った値とする。 j = m,..., m + 2G-1 (corresponding to frequencies F1,..., F2) and p = 0,. . . , 5, each element of A (1, j, p) and B (1, j, p) is multiplied by Z (1, p) and A (2, j, p) and B ( 2, j, p) is multiplied by Z (2, p), and for each element of A -1 (1, j, p) and B -1 (1, j, p) Multiply by Z -1 (1, p) and multiply each element of A -1 (2, j, p) and B -1 (2, j, p) by Z -1 (2, p) Thus, amplitude conversion is performed. In the following description, A (1, j, p), B (1, j, p), A (2, j, p), B (2, j, p), A −1 (1, j, p) , B −1 (1, j, p), A −1 (2, j, p), and B −1 (2, j, p) are values obtained by performing these amplitude conversions.

符号判定パラメータ算出手段140は、生成されたスペクトルから所定の周波数範囲に相当するスペクトル集合を抽出し、各スペクトル集合の強度値を算出するとともに、この強度値を利用して符号判定パラメータを算出し、この符号判定パラメータの大小関係に基づいて、所定の状態であると判断する機能を有している。上述のように、本実施形態では、Aタイプの音響フレームとBタイプの音響フレームがN/2サンプルずつ重複して設定されているため、ある音響フレームについて、強度値、符号判定パラメータを算出する際には、直前の音響フレームによる残響成分を考慮する必要がある。ところが、残響成分は計算により算出されるものであるので、必ずしも正確なものが算出されるとは限らず、算出された残響成分を除去することにより、反って抽出精度が低下する場合がある。そこで、本実施形態では、残響成分を除去しない場合の強度値E1、E2、E3、E4、および符号判定パラメータCと、除去した場合の強度値E1´、E2´、E3´、E4´、および補正符号判定パラメータC´を算出し、これらを利用して最適であると思われる状態を判断する。   The code determination parameter calculation unit 140 extracts a spectrum set corresponding to a predetermined frequency range from the generated spectrum, calculates an intensity value of each spectrum set, and calculates a code determination parameter using the intensity value. Based on the magnitude relationship of the code determination parameters, a function for determining a predetermined state is provided. As described above, in the present embodiment, since the A type acoustic frame and the B type acoustic frame are set to overlap each other by N / 2 samples, the intensity value and the code determination parameter are calculated for a certain acoustic frame. In this case, it is necessary to consider the reverberation component due to the immediately preceding acoustic frame. However, since the reverberation component is calculated, the accurate one is not always calculated. If the calculated reverberation component is removed, the extraction accuracy may be lowered due to warping. Therefore, in this embodiment, the intensity values E1, E2, E3, E4 and the sign determination parameter C when the reverberation component is not removed, and the intensity values E1 ′, E2 ′, E3 ′, E4 ′ when removed, and A correction code determination parameter C ′ is calculated, and a state that seems to be optimal is determined using these parameters.

Aタイプの音響フレームの各成分A(1,j,p)、B(1,j,p)に対して1フレーム分前のBタイプの音響フレームに対応する各成分をA-1(2,j,p)、B-1(2,j,p)とすると、Bタイプの音響フレームの各成分A(2,j,p)、B(2,j,p)に対応して、1フレーム分前の音響フレームは以下補正を施す前の前記Aタイプの音響フレームとなる。符号判定パラメータ算出手段140は、各スペクトル集合の強度値の算出の前に、まず、各スペクトル集合の基本強度値E(1,j,p)、E(2,j,p)、および残響成分を除去した基本強度値E´(1,j,p)、E´(2,j,p)を、以下の〔数式15〕に従った処理により算出する。 Each component corresponding to the B type acoustic frame one frame before the respective components A (1, j, p) and B (1, j, p) of the A type acoustic frame is represented by A −1 (2, j, p), B −1 (2, j, p), one frame corresponding to each component A (2, j, p), B (2, j, p) of the B type acoustic frame The sound frame before the minute is the A-type sound frame before correction. The code determination parameter calculation unit 140 first calculates the basic intensity values E (1, j, p), E (2, j, p), and reverberation components of each spectrum set before calculating the intensity values of each spectrum set. The basic intensity values E ′ (1, j, p) and E ′ (2, j, p) from which the above is removed are calculated by processing according to the following [Equation 15].

〔数式15〕
E(1,j,p)=A(1,j,p)2+B(1,j,p)2
E(2,j,p)=A(2,j,p)2+B(2,j,p)2
-1(1,j,p)=A-1(1,j,p)2+B-1(1,j,p)2
-1(2,j,p)=A-1(2,j,p)2+B-1(2,j,p)2
E´(1,j,p)=E(1,j,p)−q・E-1(2,j,p)
E´(2,j,p)=E(2,j,p)−q・E(1,j,p)
[Formula 15]
E (1, j, p) = A (1, j, p) 2 + B (1, j, p) 2
E (2, j, p) = A (2, j, p) 2 + B (2, j, p) 2
E −1 (1, j, p) = A −1 (1, j, p) 2 + B −1 (1, j, p) 2
E −1 (2, j, p) = A −1 (2, j, p) 2 + B −1 (2, j, p) 2
E ′ (1, j, p) = E (1, j, p) −q · E −1 (2, j, p)
E ′ (2, j, p) = E (2, j, p) −q · E (1, j, p)

上記〔数式15〕における6つの式のうち、上から5番目(下から2番目)の式は、あるAタイプの音響フレームに着目したときに、その前半のN/2サンプルが重複するBタイプの音響フレームからの残響成分を除去するためのものである。また、上から6番目(下から1番目)の式は、あるBタイプの音響フレームに着目したときに、その前半のN/2サンプルが重複するAタイプの音響フレームからの残響成分を除去するためのものである。E´(1,j,p)≧0、E´(2,j,p)≧0とし、〔数式15〕の上から5番目、6番目の式に従った処理の結果、負の値となった場合には、0に設定する。   Of the six formulas in [Formula 15], the fifth formula from the top (second from the bottom) is the B type in which the N / 2 samples in the first half overlap when focusing on a certain type A acoustic frame. This is for removing the reverberation component from the acoustic frame. In addition, the sixth expression from the top (first from the bottom) removes the reverberation component from the A-type sound frame in which the N / 2 samples in the first half overlap when focusing on a certain B-type sound frame. Is for. E ′ (1, j, p) ≧ 0, E ′ (2, j, p) ≧ 0, and as a result of processing according to the fifth and sixth equations from the top of [Equation 15], If this happens, set it to 0.

上記〔数式15〕において、qは残響成分の大きさを示す係数であるが、この係数qは1未満の値を持つものであり、実験の結果、N=4096のときq=0.06、N=2048のときq=0.12、N=1024のときq=0.24、N=512のときq=0.48が最適である。   In the above [Expression 15], q is a coefficient indicating the magnitude of the reverberation component, but this coefficient q has a value less than 1, and as a result of experiment, when N = 4096, q = 0.06, When N = 2048, q = 0.12. When N = 1024, q = 0.24. When N = 512, q = 0.48 is optimal.

そして、残響成分を除去しない場合の各スペクトル集合の強度値E1、E2、E3、E4、除去した場合の強度値E1´、E2´、E3´、E4´を、算出した基本強度値E(1,j,p)、E(2,j,p)、E´(1,j,p)、E´(2,j,p)を用いて以下の〔数式16〕に従った処理により算出する。   Then, the intensity values E1, E2, E3, E4 of each spectrum set when the reverberation component is not removed, and the intensity values E1 ′, E2 ′, E3 ′, E4 ′ when removed are calculated basic intensity values E (1 , J, p), E (2, j, p), E ′ (1, j, p), and E ′ (2, j, p) are calculated by processing according to the following [Equation 16]. .

〔数式16〕
E1(p)=Σj=m,…,m+G-1E(1,j,p)
E2(p)=Σj=m,…,m+G-1E(2,j,p)
E3(p)=Σj=m+G,…,m+2G-1E(1,j,p)
E4(p)=Σj=m+G,…,m+2G-1E(2,j,p)
E1´(p)=Σj=m,…,m+G-1E´(1,j,p)
E2´(p)=Σj=m,…,m+G-1E´(2,j,p)
E3´(p)=Σj=m+G,…,m+2G-1E´(1,j,p)
E4´(p)=Σj=m+G,…,m+2G-1E´(2,j,p)
[Formula 16]
E1 (p) = Σ j = m,..., M + G-1 E (1, j, p)
E2 (p) = Σ j = m, ..., m + G-1 E (2, j, p)
E3 (p) = Σ j = m + G,..., M + 2G-1 E (1, j, p)
E4 (p) = Σ j = m + G,..., M + 2G-1 E (2, j, p)
E1 ′ (p) = Σ j = m,..., M + G-1 E ′ (1, j, p)
E2 ′ (p) = Σ j = m,..., M + G-1 E ′ (2, j, p)
E3 ′ (p) = Σ j = m + G,..., M + 2G-1 E ′ (1, j, p)
E4 ′ (p) = Σ j = m + G,..., M + 2G-1 E ′ (2, j, p)

このE1〜E4、E1´〜E4´については、過去の対応する成分を用いて更新する処理を行う。具体的には、過去の成分を登録する総和値登録テーブルに記録されたTe(1、p)〜Te(8、p)を用いて以下の〔数式17〕に従った処理により算出する。   For E1 to E4 and E1 ′ to E4 ′, a process of updating using the corresponding components in the past is performed. Specifically, it is calculated by processing according to the following [Equation 17] using Te (1, p) to Te (8, p) recorded in the sum total value registration table for registering past components.

〔数式17〕
E1(p)=0.67E1(p)+0.33Te(1、p)
E2(p)=0.67E2(p)+0.33Te(2、p)
E3(p)=0.67E3(p)+0.33Te(3、p)
E4(p)=0.67E4(p)+0.33Te(4、p)
E1´(p)=0.67E1´(p)+0.33Te(5、p)
E2´(p)=0.67E2´(p)+0.33Te(6、p)
E3´(p)=0.67E3´(p)+0.33Te(7、p)
E4´(p)=0.67E4´(p)+0.33Te(8、p)
[Formula 17]
E1 (p) = 0.67E1 (p) + 0.33Te (1, p)
E2 (p) = 0.67E2 (p) + 0.33Te (2, p)
E3 (p) = 0.67E3 (p) + 0.33Te (3, p)
E4 (p) = 0.67E4 (p) + 0.33Te (4, p)
E1 ′ (p) = 0.67E1 ′ (p) + 0.33Te (5, p)
E2 ′ (p) = 0.67E2 ′ (p) + 0.33Te (6, p)
E3 ′ (p) = 0.67E3 ′ (p) + 0.33Te (7, p)
E4 ′ (p) = 0.67E4 ′ (p) + 0.33Te (8, p)

さらに、Te(1、p)〜Te(8、p)は、以下の〔数式18〕に従った処理により更新される。   Further, Te (1, p) to Te (8, p) are updated by processing according to the following [Equation 18].

〔数式18〕
Te(1、p)=E1(p) Te(2、p)=E2(p)
Te(3、p)=E3(p) Te(4、p)=E4(p)
Te(5、p)=E1´(p) Te(6、p)=E2´(p)
Te(7、p)=E3´(p) Te(8、p)=E4´(p)
[Formula 18]
Te (1, p) = E1 (p) Te (2, p) = E2 (p)
Te (3, p) = E3 (p) Te (4, p) = E4 (p)
Te (5, p) = E1 ′ (p) Te (6, p) = E2 ′ (p)
Te (7, p) = E3 ′ (p) Te (8, p) = E4 ′ (p)

結局〔数式15〕〔数式16〕〔数式17〕〔数式18〕により、過去分を考慮した各スペクトル集合の強度値E1、E2、E3、E4が算出されるとともに、当該各スペクトル集合に対応するタイプの別を問わない直前の音響フレームにおけるスペクトル集合の強度にqを乗じた値を減じることにより強度値E1´、E2´、E3´、E4´が算出されることになる。   Eventually, the intensity values E1, E2, E3, and E4 of each spectrum set considering the past are calculated by [Formula 15], [Formula 16], [Formula 17], and [Formula 18], and correspond to each spectrum set. Intensity values E1 ′, E2 ′, E3 ′, and E4 ′ are calculated by subtracting a value obtained by multiplying the intensity of the spectrum set in the immediately preceding acoustic frame regardless of the type by q.

また、符号判定パラメータ算出手段140は、残響成分を除去せずに算出した強度値E1、E2、E3、E4を用いて、以下の〔数式19〕に従った処理を実行し、符号判定パラメータCを算出する。   Also, the code determination parameter calculation means 140 executes processing according to the following [Equation 19] using the intensity values E1, E2, E3, E4 calculated without removing the reverberation component, and the code determination parameter C Is calculated.

〔数式19〕
1)E1(p)>E2(p)かつE4(p)>E3(p)の場合
B=0と仮判定、
C={E1(p)・E4(p)−E2(p)・E3(p)}/{E1(p)・E4(p)+E2(p)・E3(p)}
2)E2(p)>E1(p)かつE3(p)>E4(p)の場合
B=1と仮判定、
C={E2(p)・E3(p)−E1(p)・E4(p)}/{E1(p)・E4(p)+E2(p)・E3(p)}
3)E1(p)・E4(p)>E2(p)・E3(p)の場合
B=0と仮判定、
C={E1(p)・E4(p)−E2(p)・E3(p)}/{E1(p)・E4(p)+E2(p)・E3(p)}
4)上記1)〜3)以外の場合
B=1と仮判定、
C={E2(p)・E3(p)−E1(p)・E4(p)}/{E1(p)・E4(p)+E2(p)・E3(p)}
[Formula 19]
1) When E1 (p)> E2 (p) and E4 (p)> E3 (p)
C = {E1 (p) .E4 (p) -E2 (p) .E3 (p)} / {E1 (p) .E4 (p) + E2 (p) .E3 (p)}
2) When E2 (p)> E1 (p) and E3 (p)> E4 (p) B = 1 and provisional determination
C = {E2 (p) .E3 (p) -E1 (p) .E4 (p)} / {E1 (p) .E4 (p) + E2 (p) .E3 (p)}
3) In the case of E1 (p) · E4 (p)> E2 (p) · E3 (p)
C = {E1 (p) .E4 (p) -E2 (p) .E3 (p)} / {E1 (p) .E4 (p) + E2 (p) .E3 (p)}
4) In cases other than the above 1) to 3) B = 1 and provisional determination,
C = {E2 (p) .E3 (p) -E1 (p) .E4 (p)} / {E1 (p) .E4 (p) + E2 (p) .E3 (p)}

また、符号判定パラメータ算出手段140は、残響成分を除去して算出した強度値E1´、E2´、E3´、E4´を用いて、以下の〔数式20〕に従った処理を実行し、補正符号判定パラメータC´を算出する。   Further, the code determination parameter calculation unit 140 executes processing according to the following [Equation 20] using the intensity values E1 ′, E2 ′, E3 ′, and E4 ′ calculated by removing the reverberation component, and performs correction. A code determination parameter C ′ is calculated.

〔数式20〕
1)E1´(p)>E2´(p)かつE4´(p)>E3´(p)の場合
B´=0と仮判定、
C´={E1´(p)・E4´(p)−E2´(p)・E3´(p)}/{E1´(p)・E4´(p)+E2´(p)・E3´(p)}
2)E2´(p)>E1´(p)かつE3´(p)>E4´(p)の場合
B´=1と仮判定、
C´={E2´(p)・E3´(p)−E1´(p)・E4´(p)}/{E1´(p)・E4´(p)+E2´(p)・E3´(p)}
3)E1´(p)・E4´(p)>E2´(p)・E3´(p)の場合
B´=0と仮判定、
C´={E1´(p)・E4´(p)−E2´(p)・E3´(p)}/{E1´(p)・E4´(p)+E2´(p)・E3´(p)}
4)上記1)〜3)以外の場合
B´=1と仮判定、
C´={E2´(p)・E3´(p)−E1´(p)・E4´(p)}/{E1´(p)・E4´(p)+E2´(p)・E3´(p)}
[Formula 20]
1) In the case of E1 ′ (p)> E2 ′ (p) and E4 ′ (p)> E3 ′ (p) B ′ = 0 and provisional determination,
C ′ = {E1 ′ (p) · E4 ′ (p) −E2 ′ (p) · E3 ′ (p)} / {E1 ′ (p) · E4 ′ (p) + E2 ′ (p) · E3 ′ ( p)}
2) In the case of E2 ′ (p)> E1 ′ (p) and E3 ′ (p)> E4 ′ (p), B ′ = 1 is temporarily determined,
C ′ = {E2 ′ (p) · E3 ′ (p) −E1 ′ (p) · E4 ′ (p)} / {E1 ′ (p) · E4 ′ (p) + E2 ′ (p) · E3 ′ ( p)}
3) In the case of E1 ′ (p) · E4 ′ (p)> E2 ′ (p) · E3 ′ (p) B ′ = 0 and provisional determination,
C ′ = {E1 ′ (p) · E4 ′ (p) −E2 ′ (p) · E3 ′ (p)} / {E1 ′ (p) · E4 ′ (p) + E2 ′ (p) · E3 ′ ( p)}
4) In cases other than the above 1) to 3) B ′ = 1 and provisional determination,
C ′ = {E2 ′ (p) · E3 ′ (p) −E1 ′ (p) · E4 ′ (p)} / {E1 ′ (p) · E4 ′ (p) + E2 ′ (p) · E3 ′ ( p)}

符号出力手段150は、1つの基準フレームに対応する音響フレーム(基準フレームおよび位相変更フレーム)の中から最適な位相であると判断されるものを判断し、その音響フレームの状態に対応する符号を出力する機能を有している。符号判定パラメータ算出手段140と符号出力手段150により符号化手段が構成される。付加情報抽出手段160は、符号出力手段150により出力された2値の配列をNhビット単位で抽出し、符号逆変換テーブルを参照することにより、Nwビットの登録順位に変換し、さらに所定の規則により変換して意味のある付加情報として抽出する機能を有している。音響フレーム保持手段170は、チャンネルごとのAタイプ、Bタイプそれぞれについて連続する2個の基準フレーム(チャンネルごとに計4個の基準フレーム)を保持可能なバッファメモリである。変換テーブル作成手段180は、図1に示した変換テーブル作成手段80と同様、Nwビットが取り得る2のNw乗個の全ての登録順位に対して、互いにハミング距離が少なくとも4以上となるNh(>Nw)ビットのハミング符号を割り当てることにより、Nwビットの登録順位とNhビットのハミング符号が対応付けられた符号変換テーブルを作成する機能を有している。   The code output means 150 determines what is determined to be the optimum phase from the acoustic frames (reference frame and phase change frame) corresponding to one reference frame, and selects a code corresponding to the state of the acoustic frame. It has a function to output. The code determination parameter calculation unit 140 and the code output unit 150 constitute an encoding unit. The additional information extraction unit 160 extracts the binary array output by the code output unit 150 in units of Nh bits, refers to the code inverse conversion table, converts it to the registration rank of Nw bits, and further, a predetermined rule It has a function to extract as additional information having meaning after conversion by the above. The acoustic frame holding means 170 is a buffer memory capable of holding two consecutive reference frames (a total of four reference frames for each channel) for each of the A type and B type for each channel. Similar to the conversion table creation unit 80 shown in FIG. 1, the conversion table creation unit 180 has a Nh (having a Hamming distance of at least 4 or more with respect to all the registration orders of 2 Nw powers that Nw bits can take. > Nw) It has a function of creating a code conversion table in which a registration order of Nw bits and a Nh-bit Hamming code are associated by assigning a Hamming code of Nw bits.

(4.2.ID抽出手段の処理動作)
次に、図15に示したID抽出手段220の処理動作について説明する。コンテンツ再生装置を起動すると、まず、変換テーブル作成手段180が、符号変換テーブルを作成する。変換テーブル作成手段180による符号変換テーブルの作成は、変換テーブル作成手段80と同様、図5のフローチャートに従った処理により行われ、図6に示したような符号変換テーブルが得られることになる。
(4.2. Processing operation of ID extracting means)
Next, the processing operation of the ID extracting unit 220 shown in FIG. 15 will be described. When the content playback apparatus is activated, first, the conversion table creating means 180 creates a code conversion table. The code conversion table is created by the conversion table creating unit 180 in the same manner as the conversion table creating unit 80, and the code conversion table as shown in FIG. 6 is obtained.

続いて、符号変換テーブル作成処理後の、ID抽出手段220の処理動作について説明する。ID抽出手段220は、検査符号によりエラーを検出した際、エラー訂正を行わない設定とすることもできるし、1ビットのエラー訂正をするものと設定することもできる。ここからは、エラー訂正を行わない設定における抽出装置の処理動作を、図22のフローチャートに従って説明する。まず、ID抽出手段220では、位相判定テーブルS(p)、位相決定ログ、位相確定フラグ、総和値累積テーブルTe(1、p)〜Te(8、p)、ビットカウンタを初期化する(S200)。位相判定テーブルS(p)は、位相を判定するためのテーブルであり、pは0〜5の整数値をとる。初期値はS(p)=0に設定されている。位相決定ログは、1つの基準フレームと5つの位相変更フレームの組ごとに、決定された位相すなわち位相番号pを記録していくものであり、初期状態では0が設定されている。位相確定フラグは、位相が確定しているかどうかを示すフラグであり、初期状態ではOffに設定されている。総和値累積テーブルTe(1、p)〜Te(8、p)は、過去(バイト周期×Nhフレーム)分の総和値E1〜E4、残響補正後の総和値E1´〜E4´を6通りの位相別に保存したものであり、初期状態ではTe(1、p)〜Te(8、p)=0に設定されている。ビットカウンタについては初期値として0を設定する。   Next, the processing operation of the ID extraction unit 220 after the code conversion table creation process will be described. The ID extraction means 220 can be set not to perform error correction when an error is detected by a check code, or can be set to perform 1-bit error correction. Hereafter, the processing operation of the extraction apparatus in a setting in which error correction is not performed will be described with reference to the flowchart of FIG. First, the ID extraction unit 220 initializes the phase determination table S (p), the phase determination log, the phase determination flag, the total value accumulation table Te (1, p) to Te (8, p), and the bit counter (S200). ). The phase determination table S (p) is a table for determining the phase, and p takes an integer value of 0 to 5. The initial value is set to S (p) = 0. The phase determination log records the determined phase, that is, the phase number p for each set of one reference frame and five phase change frames, and 0 is set in the initial state. The phase determination flag is a flag indicating whether or not the phase is fixed, and is set to Off in the initial state. The total value accumulation tables Te (1, p) to Te (8, p) include six types of total values E1 to E4 for the past (byte period × Nh frame) and total values E1 ′ to E4 ′ after reverberation correction. This is stored for each phase, and is set to Te (1, p) to Te (8, p) = 0 in the initial state. For the bit counter, 0 is set as an initial value.

このように、符号変換テーブルが作成され、初期値が設定されている状態で、利用者が展示場内のスピーカに近付くと、音響信号入力手段210が、流れている音楽を録音し、デジタル化してデジタル音響信号として入力する。具体的には、無指向性マイクロフォン(または指向性マイクロフォンの一方のチャンネル)から入力される音声を、A/D変換器によりデジタル化する処理を行うことになる。   In this way, when the code conversion table is created and the initial value is set, when the user approaches the speaker in the exhibition hall, the acoustic signal input means 210 records and digitizes the flowing music. Input as a digital acoustic signal. More specifically, the audio input from the omnidirectional microphone (or one channel of the directional microphone) is digitized by the A / D converter.

続いて、基準フレーム獲得手段110が、音響信号入力手段210から入力された音響信号から、所定数のサンプルで構成される音響フレームを基準フレームとして抽出する(S201)。具体的には、Aタイプ、Bタイプについての基準フレームを抽出して音響フレーム保持手段170に読み込むことになる。基準フレーム獲得手段110が基準フレームとして読み込む1音響フレームのサンプル数は、図1に示した音響フレーム読込手段10で設定されたものと同一にする必要がある。したがって、本実施形態の場合、基準フレーム獲得手段110は、Aタイプ、Bタイプについてそれぞれ4096サンプルずつ、順次基準フレームとして読み込んでいくことになる。音響フレーム保持手段170には、各チャンネルについて、Aタイプ、Bタイプ2個ずつの基準フレーム、すなわち2.5Nサンプルが格納可能となっており、新しい基準フレームが読み込まれると、古い基準フレームを破棄するようになっている。したがって、音響フレーム保持手段170には、常に基準フレーム4個分(連続する10240サンプル)が格納されていることになる。   Subsequently, the reference frame acquisition unit 110 extracts an acoustic frame including a predetermined number of samples from the acoustic signal input from the acoustic signal input unit 210 as a reference frame (S201). Specifically, reference frames for A type and B type are extracted and read into the acoustic frame holding means 170. The number of samples of one acoustic frame read as the reference frame by the reference frame acquisition unit 110 needs to be the same as that set by the acoustic frame reading unit 10 shown in FIG. Therefore, in the present embodiment, the reference frame acquisition unit 110 sequentially reads 4096 samples for each of the A type and B type as reference frames. The acoustic frame holding unit 170 can store two reference frames of A type and B type for each channel, that is, 2.5N samples. When a new reference frame is read, the old reference frame is discarded. It is supposed to be. Therefore, the sound frame holding means 170 always stores four reference frames (continuous 10240 samples).

抽出装置で処理する音響フレームは、先頭から途切れることなく隣接して設定される基準フレームと、この基準フレームと位相を変更した位相変更フレームとに分けることができる。基準フレームについては、Aタイプの音響フレームとBタイプの音響フレームが、2048サンプルずつ重複している場合、最初の基準フレームとしてサンプル番号1からサンプル番号4096までを設定したら、次の基準フレームは、サンプル番号2049からサンプル番号6144、さらに次の基準フレームは、サンプル番号4097からサンプル番号8192、さらに次の基準フレームは、サンプル番号6145からサンプル番号10240、というように途切れることなく設定される。そして、各基準フレームについて、1/6フレーム(約683サンプル)ずつ移動した5個の位相変更フレームを設定する。例えば、最初の基準フレームについては、サンプル番号683、1366、2049、2732、3413から始まる4096のサンプルで構成される5個の位相変更フレームが設定されることになる。続いて、周波数変換手段130、符号判定パラメータ算出手段140が、読み込んだ各音響フレームについて、位相を特定した後、埋め込まれている情報を判定し、対応する符号を出力する(S202)。出力される情報の形式は、付加情報が埋め込まれる場合に対応する値1、値2の2通りの形式となる。   The acoustic frame processed by the extraction device can be divided into a reference frame that is set adjacently without interruption from the beginning, and a phase change frame in which the phase is changed. As for the reference frame, when the A type sound frame and the B type sound frame overlap each other by 2048 samples, after setting sample number 1 to sample number 4096 as the first reference frame, the next reference frame is Sample number 2049 to sample number 6144, the next reference frame is set without interruption, such as sample number 4097 to sample number 8192, and the next reference frame is set to sample number 6145 to sample number 10240. Then, for each reference frame, five phase change frames moved by 1/6 frame (about 683 samples) are set. For example, for the first reference frame, five phase change frames configured by 4096 samples starting from sample numbers 683, 1366, 2049, 2732, and 3413 are set. Subsequently, the frequency conversion unit 130 and the code determination parameter calculation unit 140 specify the phase of each read sound frame, determine embedded information, and output a corresponding code (S202). The format of the information to be output has two formats of value 1 and value 2 corresponding to the case where the additional information is embedded.

ここで、ステップS202の位相確定および符号判定の詳細を図23のフローチャートに従って説明する。まず、位相確定フラグがOnであるかOffであるかの確認を行う(S301)。位相確定フラグがOnである場合は、位相確定処理(S303〜S309)を行わず、符号判定処理のみを行う(S302)。ただし、初期状態では位相は確定しておらず、位相確定フラグがOffとなっているので、候補符号テーブルB(p)の初期化を行う(S303)。候補符号テーブルB(p)は、1つの基準フレームおよび5個の位相変更フレームを特定するp=0〜5の位相番号および、この6個の音響フレームの状態から得られる2値の符号を記録するものである。   Here, details of phase determination and code determination in step S202 will be described with reference to the flowchart of FIG. First, it is confirmed whether the phase determination flag is On or Off (S301). When the phase determination flag is On, the phase determination process (S303 to S309) is not performed, and only the code determination process is performed (S302). However, since the phase is not fixed in the initial state and the phase determination flag is Off, the candidate code table B (p) is initialized (S303). Candidate code table B (p) records one reference frame and five phase change frames, a phase number of p = 0 to 5 and a binary code obtained from the states of these six acoustic frames. To do.

続いて、符号判定パラメータ算出手段140は、符号判定処理を行う(S302)。ここで、符号判定処理の詳細を図24に示す。まず、周波数変換手段130が、読み込んだ各音響フレームに対して、周波数変換を行って各窓スペクトルを得る(S401)。具体的には、上記〔数式12〕〔数式13〕に従った処理を実行し、変換データの実部A(1,j,p)、虚部B(1,j,p)、実部A(2,j,p)、虚部B(2,j,p)を得る。   Subsequently, the code determination parameter calculation unit 140 performs a code determination process (S302). Here, the details of the code determination process are shown in FIG. First, the frequency conversion means 130 performs frequency conversion on each read sound frame to obtain each window spectrum (S401). Specifically, the processing according to the above [Equation 12] and [Equation 13] is executed, and the real part A (1, j, p), the imaginary part B (1, j, p), and the real part A of the converted data are executed. (2, j, p) and imaginary part B (2, j, p) are obtained.

S401の処理については、実際には、Aタイプ音響フレームについて周波数変換を行った後、N/2サンプルだけシフトしてBタイプ音響フレームについて周波数変換を行う。これらの変換データA(2,j,p)、B(2,j,p)、A(2,j,p)、B(2,j,p)に対して、上記〔数式14〕に従った処理を実行し、振幅変換を行う(S402)。   Regarding the processing of S401, in practice, after frequency conversion is performed on the A type sound frame, the frequency conversion is performed on the B type sound frame after being shifted by N / 2 samples. For these conversion data A (2, j, p), B (2, j, p), A (2, j, p), B (2, j, p), the above [Formula 14] is followed. The process is executed to perform amplitude conversion (S402).

上記周波数変換手段130における処理により、周波数に対応した成分であるスペクトルで表現されたフレームスペクトルが得られる。続いて、符号判定パラメータ算出手段140は、符号判定パラメータC、C´を上述のようにして算出した後、符号判定パラメータC、C´を用いて、変更対象周波数帯の成分の状態がどのような状態であるか、すなわち、1ビットの値としてどのような値が埋め込まれていたかを判断する処理を行う(S403)。具体的には、上記〔数式15〕〜〔数式19〕に従った処理を実行して、符号判定パラメータC、C´を算出する。そして、この両者を比較して、C≧C´であれば候補符号Bを候補符号テーブルB(p)に設定し、C<C´であれば候補符号B´を候補符号テーブルB(p)に出力する。   By the processing in the frequency conversion means 130, a frame spectrum expressed by a spectrum that is a component corresponding to the frequency is obtained. Subsequently, after the code determination parameter calculation unit 140 calculates the code determination parameters C and C ′ as described above, the code determination parameters C and C ′ are used to determine the state of the component of the change target frequency band. In other words, a process of determining what value is embedded as a 1-bit value is performed (S403). Specifically, the processing according to the above [Formula 15] to [Formula 19] is executed to calculate the code determination parameters C and C ′. Then, comparing these two, if C ≧ C ′, the candidate code B is set in the candidate code table B (p), and if C <C ′, the candidate code B ′ is set in the candidate code table B (p). Output to.

S403の具体的な処理手順としては、まず、上記〔数式15〕の1番目の式と2番目の式を利用して基本強度値E(1,j,p)、E(2,j,p)を算出した後、上記〔数式16〕の1番目から4番目までの式を利用してE1(p)、E2(p)、E3(p)、E4(p)を算出し、上記〔数式19〕に従って候補符号Bおよび符号判定パラメータCを算出する処理を行う。続いて、上記〔数式15〕の3番目から6番目までの式を利用して、残響補正処理を行って基本強度値E´(1,j,p)、E´(2,j,p)を算出する。そして、上記〔数式16〕の5番目から8番目までの式を利用してE1´(p)、E2´(p)、E3´(p)、E4´(p)を算出し、上記〔数式20〕に従って候補符号B´および補正符号判定パラメータC´を算出する処理を行う。   As a specific processing procedure of S403, first, the basic intensity values E (1, j, p), E (2, j, p) are utilized by using the first and second expressions of [Formula 15]. ), E1 (p), E2 (p), E3 (p), E4 (p) are calculated using the first to fourth formulas of [Formula 16]. 19], the candidate code B and the code determination parameter C are calculated. Subsequently, reverberation correction processing is performed using the third to sixth expressions of [Expression 15] to obtain basic intensity values E ′ (1, j, p), E ′ (2, j, p). Is calculated. Then, E1 ′ (p), E2 ′ (p), E3 ′ (p), E4 ′ (p) are calculated using the fifth to eighth expressions of the above [Expression 16], and the above [Expression 16]. 20], the candidate code B ′ and the correction code determination parameter C ′ are calculated.

また、上記判定の結果、位相pにおける候補符号テーブルB(p)に値1、値2のいずれかを出力した場合には、さらに、以下の〔数式21〕に従って位相判定テーブルS(p)の更新を行う(S404)。   Further, as a result of the above determination, when either value 1 or value 2 is output to the candidate code table B (p) in the phase p, the phase determination table S (p) Update is performed (S404).

〔数式21〕
C≧C´である場合、S(p)←S(p)+C
C<C´である場合、S(p)←S(p)+C´
[Formula 21]
When C ≧ C ′, S (p) ← S (p) + C
When C <C ′, S (p) ← S (p) + C ′

ここで、図23のフローチャートに戻って、符号判定パラメータ算出手段140は、候補符号テーブルB(p)に、位相pにおいて符号判定処理(S302)で仮決定された符号を保存する(S304)。   Here, returning to the flowchart of FIG. 23, the code determination parameter calculation unit 140 stores the code temporarily determined in the code determination process (S302) in the phase p in the candidate code table B (p) (S304).

続いて、全ての位相番号pに対応する処理を終えたかどうかを判定する(S305)。これは、ある基準フレームに対して全ての位相変更フレームの処理を行ったかどうかを判定している。本実施形態では、pが0〜5までの値をとるので、6回分処理していない場合は、処理していた音響フレームから所定サンプル数ずらして、位相の異なる音響フレームを設定し、S302に戻って処理を繰り返す。なお、p=0の場合が基準フレームであり、p=1〜5の場合が位相変更フレームである。全ての位相番号pに対応する処理を終えた場合は、位相判定テーブルS(p)の値が最大となる位相番号pmaxに対応する位相が最適位相であると判定し、候補符号テーブルB(p)に記録されている符号B(pmax)を出力する(S306)。   Subsequently, it is determined whether or not the processing corresponding to all the phase numbers p has been completed (S305). This determines whether all phase change frames have been processed for a certain reference frame. In this embodiment, since p takes a value from 0 to 5, if the processing is not performed six times, an acoustic frame having a different phase is set by shifting a predetermined number of samples from the acoustic frame being processed. Return and repeat the process. The case where p = 0 is a reference frame, and the case where p = 1 to 5 is a phase change frame. When the processing corresponding to all the phase numbers p is completed, it is determined that the phase corresponding to the phase number pmax having the maximum value in the phase determination table S (p) is the optimum phase, and the candidate code table B (p The code B (pmax) recorded in () is output (S306).

続いて、位相決定ログの更新を行う(S307)。位相決定ログとは、1つの基準フレームと5つの位相変更フレームの組ごとに、決定された位相すなわち位相番号pを記録するものである。そして、位相決定ログを参照して、位相が過去所定回数同一であったかどうかを判断する(S308)。本実施形態では、この回数を10回としている。位相が過去所定回数同一であった場合には、位相確定フラグをOnに設定する(S309)。これにより、同一位相が所定回数続いた場合には、最適位相はpmaxとなる可能性が高いため、位相確定処理(S303〜S309)を行わず、位相番号p=pmaxに対してのみ符号判定処理(S302)を行うことになる。   Subsequently, the phase determination log is updated (S307). The phase determination log records the determined phase, that is, the phase number p for each set of one reference frame and five phase change frames. Then, referring to the phase determination log, it is determined whether or not the phase has been the same a predetermined number of times in the past (S308). In the present embodiment, this number is 10 times. If the phase has been the same a predetermined number of times in the past, the phase determination flag is set to On (S309). As a result, when the same phase continues for a predetermined number of times, the optimum phase is likely to be pmax. Therefore, the phase determination process (S303 to S309) is not performed, and the code determination process is performed only for the phase number p = pmax. (S302) is performed.

再び図22のフローチャートに戻って説明する。位相確定および符号出力が行なわれたら、出力された符号の値に対応する1ビットをバッファに保存する(S203)。次に、ビットカウンタを“1”だけカウントアップする(S204)。   Returning to the flowchart of FIG. When the phase is determined and the code is output, 1 bit corresponding to the output code value is stored in the buffer (S203). Next, the bit counter is incremented by “1” (S204).

次に、ビットカウンタが11以下であるか12以上であるかを判断する(S205)。ビットカウンタが11以下の場合は、S201に戻って、次のAタイプ、Bタイプの基準フレームを抽出する処理を行う。   Next, it is determined whether the bit counter is 11 or less or 12 or more (S205). If the bit counter is 11 or less, the process returns to S201 to perform processing for extracting the next A type and B type reference frames.

ビットカウンタが12以上である場合は、バッファに保存された12ビットのビット配列のデコードを行う(S206)。このデコード処理の詳細を、図25のフローチャートに従って説明する。   If the bit counter is 12 or more, the 12-bit bit array stored in the buffer is decoded (S206). Details of the decoding process will be described with reference to the flowchart of FIG.

付加情報抽出手段160は、まず、初期化処理を行う(S701)。具体的には、7ビット符号KFおよび最小ハミング距離HDを定義するとともに、KF=0およびHD=2として初期化する処理を行う。続いて、i=0に初期設定する(S702)。次に、バッファに保存された12ビットのビット配列を12ビット符号HFとし、符号変換テーブルのi番目に対応する12ビット符号とのハミング距離hdを算出し、hd<HDの場合、KF=i、HD=hdに更新する(S703)。そして、iの値を1加算して(S704)、iの値が128未満である場合には、S703の処理を繰り返し行う。付加情報抽出手段160は、図6に示した符号変換テーブルに記録された128個のハミング符号全てについて、ハミング距離hdを算出し、最小ハミング距離HD、およびハミング距離が最小となる場合の7ビット基準符号KFを得る。   The additional information extraction unit 160 first performs initialization processing (S701). Specifically, a 7-bit code KF and a minimum hamming distance HD are defined, and a process for initializing KF = 0 and HD = 2 is performed. Subsequently, i = 0 is initially set (S702). Next, a 12-bit bit array stored in the buffer is set to a 12-bit code HF, and a Hamming distance hd with a 12-bit code corresponding to the i-th code conversion table is calculated. If hd <HD, KF = i , HD is updated to hd (S703). Then, the value of i is incremented by 1 (S704), and if the value of i is less than 128, the process of S703 is repeated. The additional information extracting unit 160 calculates the hamming distance hd for all 128 hamming codes recorded in the code conversion table shown in FIG. A reference code KF is obtained.

最小ハミング距離HDが得られたら、図22に戻って、得られた最小ハミング距離HDが0か、1以上かを判断する(S207)。S207において最小ハミング距離が1以上と判断された場合は、S201に戻って、次の基準フレームを抽出する処理を行う。   When the minimum hamming distance HD is obtained, the process returns to FIG. 22 to determine whether the obtained minimum hamming distance HD is 0 or 1 or more (S207). If it is determined in S207 that the minimum Hamming distance is 1 or more, the process returns to S201 to perform processing for extracting the next reference frame.

S207において最小ハミング距離が0と判断された場合は、付加情報抽出手段160が、図25の処理により得られた7ビット基準符号KFに1ビット付加して出力する(S208)。S207において最小ハミング距離が0であった場合は、バッファ中の先頭の1ビット目が、付加情報内のワードの1ビット目であった可能性が高いことになる。このため、その先頭からの7ビットにビット“0”を付加することによりASCIIコードにおける1ワードとして出力するのである。ハミング距離が1以上の場合は、照合に用いた12ビットが、付加情報内のワードとずれている可能性が高いことになる。この場合は、先頭の1ビットを破棄して、S201からS204の処理により新たな1ビットを得るための処理を行う。   If it is determined in S207 that the minimum Hamming distance is 0, the additional information extraction unit 160 adds 1 bit to the 7-bit reference code KF obtained by the processing of FIG. 25 and outputs it (S208). If the minimum Hamming distance is 0 in S207, there is a high possibility that the first bit in the buffer is the first bit of the word in the additional information. Therefore, by adding bit “0” to the 7 bits from the head, it is output as one word in the ASCII code. When the Hamming distance is 1 or more, there is a high possibility that the 12 bits used for collation are shifted from the word in the additional information. In this case, the first 1 bit is discarded, and processing for obtaining a new 1 bit is performed by the processing from S201 to S204.

最小ハミング距離が0と判断された場合は、その部分がワードの区切りである可能性が高いので、それが本当に区切りであれば、以降は12ビットずつ抽出すれば、全て正確にワード単位で抽出を行うことができる。逆に、最小ハミング距離が0と判断されたとしても、それが偶然であり、実はワードの区切りではない場合も考えられる。このような場合は、次の検査の際に不適合となる可能性が高く、何回か繰り返しているうちに正しい区切りが正確に判断できることになる。S208において、7ビット基準符号KFに1ビット付加して出力した場合には、ビットカウンタを0に初期化する(S209)。そして、S201に戻って、次の基準フレームを抽出する処理を行う。   If the minimum hamming distance is determined to be 0, there is a high possibility that the portion is a word delimiter, so if it is really a delimiter, then, if it is extracted 12 bits at a time, all are accurately extracted in word units. It can be performed. On the other hand, even if the minimum hamming distance is determined to be 0, it is a coincidence and may not be a word break. In such a case, there is a high possibility of nonconformity at the next inspection, and the correct division can be accurately determined after repeating several times. In S208, when 1 bit is added to the 7-bit reference code KF and output, the bit counter is initialized to 0 (S209). Then, the process returns to S201 to perform processing for extracting the next reference frame.

図22に示す処理を各基準フレームに対して実行することにより、付加情報が抽出されることになる。S201において全ての基準フレームが抽出されたと判断された場合には、処理を終了する。   By executing the process shown in FIG. 22 for each reference frame, additional information is extracted. If it is determined in S201 that all reference frames have been extracted, the process ends.

上記S208の処理において、付加情報抽出手段160は、まず、符号出力手段150により出力された値を、所定の規則により変換して意味のある付加情報として抽出する。所定の規則としては、情報を埋め込む者が意図した情報が受け取った者に認識可能な状態にすることができるものであれば、さまざまな規則が採用できるが、本実施形態では、ASCIIコードを採用している。すなわち、付加情報抽出手段160は、符号判定パラメータ算出手段140が判定し、符号出力手段150から出力される符号から得られるビット値の配列を1バイト(8ビット)単位で認識し、これをASCIIコードに従って文字情報であるコンテンツIDを認識する。   In the process of S208, the additional information extraction unit 160 first converts the value output by the code output unit 150 according to a predetermined rule and extracts it as meaningful additional information. As the predetermined rule, various rules can be adopted as long as the information intended by the person who embeds the information can be recognized by the recipient, but in this embodiment, the ASCII code is adopted. is doing. That is, the additional information extraction unit 160 recognizes the bit value array obtained from the code determined by the code determination parameter calculation unit 140 and output from the code output unit 150 in units of 1 byte (8 bits), and recognizes this as ASCII. The content ID that is character information is recognized according to the code.

上記の例では、図22のフローチャートに従ってエラー訂正を行わない設定における抽出装置の処理動作を説明した。エラー訂正を行わない場合は、エラーが生じない場合にのみ、付加情報1ワードの出力が可能となる。   In the above example, the processing operation of the extraction apparatus in a setting in which error correction is not performed has been described according to the flowchart of FIG. When error correction is not performed, it is possible to output one word of additional information only when no error occurs.

次に、1ビットのエラー訂正をする設定における抽出装置の処理動作を、図26のフローチャートに従って説明する。図26においては、図22と同一処理を行う部分が含まれている。そこで、図22と同一処理を行う部分については、同一符号を付して説明を省略する。図26の例においても、まず、初期化処理を行う(S200)。この初期化処理では、図22の例と同様、位相判定テーブルS(p)、位相決定ログ、位相確定フラグ、ビットカウンタを初期化するが、さらに、自動訂正モードをOFFにする設定を行う。   Next, the processing operation of the extraction device in the setting for correcting 1-bit error will be described with reference to the flowchart of FIG. 26 includes a portion that performs the same processing as in FIG. Therefore, parts that perform the same processing as in FIG. Also in the example of FIG. 26, first, initialization processing is performed (S200). In this initialization process, as in the example of FIG. 22, the phase determination table S (p), the phase determination log, the phase determination flag, and the bit counter are initialized, and further, the automatic correction mode is set to OFF.

続いて、図22と同様、所定数のサンプルで構成される音響フレームを基準フレームとして抽出した後(S201)、読み込んだ各音響フレームについて、位相を特定した後、埋め込まれている情報を判定し、対応する符号を出力する(S202)。なお、S202の処理については、図23、図24に示したようなものとなる。   Subsequently, as in FIG. 22, after extracting an acoustic frame composed of a predetermined number of samples as a reference frame (S201), the phase of each of the read acoustic frames is specified, and the embedded information is determined. The corresponding code is output (S202). Note that the processing of S202 is as shown in FIGS.

位相確定および符号出力が行なわれたら、出力された符号の値に対応する1ビットをバッファに保存して(S203)、ビットカウンタを“1”だけカウントアップする(S204)。そして、ビットカウンタが11以下であるか12以上であるかを判断し(S205)、ビットカウンタが11以下の場合は、S201に戻って、次の基準フレームを抽出する処理を行う。   When the phase is determined and the code is output, 1 bit corresponding to the output code value is stored in the buffer (S203), and the bit counter is incremented by "1" (S204). Then, it is determined whether the bit counter is 11 or less or 12 or more (S205). If the bit counter is 11 or less, the process returns to S201 to perform processing for extracting the next reference frame.

ビットカウンタが12以上である場合は、バッファに保存された12ビットのビット配列のデコードを行う(S206)。続いて、得られたハミング距離が0か1以上かを判断する(S207)。S207においてハミング距離が0と判断された場合は、S208におけるビット列の出力処理の直前に、自動訂正モードをONに設定する処理を行う(S210)。   If the bit counter is 12 or more, the 12-bit bit array stored in the buffer is decoded (S206). Subsequently, it is determined whether the obtained Hamming distance is 0 or 1 or more (S207). If it is determined in S207 that the hamming distance is 0, immediately before the bit string output processing in S208, processing for setting the automatic correction mode to ON is performed (S210).

S207においてハミング距離が1以上と判断された場合は、さらにハミング距離が1か2以上かを判断する(S211)。判断の結果、ハミング距離が2以上と判断された場合には、自動設定モードをOFFに設定する処理を行った後(S212)、S201に戻って、次の基準フレームを抽出する処理を行う。   If it is determined in S207 that the Hamming distance is 1 or more, it is further determined whether the Hamming distance is 1 or 2 (S211). As a result of the determination, if it is determined that the hamming distance is 2 or more, after performing the process of setting the automatic setting mode to OFF (S212), the process returns to S201, and the process of extracting the next reference frame is performed.

S211における判断の結果、ハミング距離が1と判断された場合には、自動訂正モードがONであるかOFFであるかの確認を行う(S213)。自動訂正モードがOFFである場合は、S201に戻って、次の基準フレームを抽出する処理を行う。   If the hamming distance is determined to be 1 as a result of the determination in S211, it is confirmed whether the automatic correction mode is ON or OFF (S213). If the automatic correction mode is OFF, the process returns to S201 to perform processing for extracting the next reference frame.

自動訂正モードがONである場合は、付加情報抽出手段160が、図25の処理により得られた7ビット基準符号KFに1ビット付加して出力する(S208)。そして、ビットカウンタを0に初期化する(S209)。   When the automatic correction mode is ON, the additional information extraction unit 160 adds 1 bit to the 7-bit reference code KF obtained by the processing of FIG. 25 and outputs it (S208). Then, the bit counter is initialized to 0 (S209).

図26の例のように、1ビットのエラー訂正をする設定の場合は、1ビットのエラーが生じた場合であっても、付加情報1ワードの出力が可能となる。   As shown in the example of FIG. 26, in the case of setting for 1-bit error correction, even if a 1-bit error occurs, 1 word of additional information can be output.

(4.3.位相補正処理について)
上記のように、コンテンツ再生装置によるIDの抽出時には、埋め込み時に埋め込んだ音響フレームに対応して、音響信号を読み込むことができるとは限らない。そこで、音響フレームの位相をずらして複数通り(本実施形態では6通り)で読み込み、その中で最適な位相を決定し、その位相で特定される音響フレームに対応する符号を出力することにしている。例えば、6通りで読み込む場合、先頭の音響フレームは、本来サンプル番号1〜4096のサンプルであるが、サンプル番号1、683、1366、2049、2732、3413から始まる4096のサンプルで構成される6個の各音響フレームに対して処理を行い、最適な音響フレームに対応する符号を出力することになる。なお、図23のフローチャートを用いて説明したように、本実施形態では、同一位相が所定回数連続した場合には、それ以降はその位相を確定したものとして処理を行う。
(4.3. About phase correction processing)
As described above, when an ID is extracted by the content reproduction apparatus, it is not always possible to read an acoustic signal corresponding to the acoustic frame embedded at the time of embedding. Therefore, the phase of the acoustic frame is shifted and read in a plurality of ways (six in this embodiment), the optimum phase is determined, and a code corresponding to the acoustic frame specified by the phase is output. Yes. For example, in the case of reading in six ways, the top acoustic frame is originally a sample of sample numbers 1 to 4096, but six pieces composed of 4096 samples starting from sample numbers 1, 683, 1366, 2049, 2732, and 3413 Are processed, and a code corresponding to the optimum acoustic frame is output. As described with reference to the flowchart of FIG. 23, in the present embodiment, when the same phase continues a predetermined number of times, the process is performed after that phase is determined.

(5.ビット配列のビット数Nh、ハミング距離を変更した場合)
上記実施形態では、コンテンツIDの埋め込み、抽出において、ビット配列作成の際、作成されるビット配列は、12ビット(Nhビット)でハミング距離が4となるようにしたが、ビット配列のビット数Nh、およびハミング距離は、適宜変更することが可能である。一般に、ビット配列のビット数Nhを大きくすれば、符号化効率は悪くなるが、訂正可能な誤りビット数は増えることになる。したがって、マイクロフォンの感度や演算処理能力が比較的高い抽出装置を用いる場合には、ビット数、ハミング距離が小さいビット配列を作成するようにし、マイクロフォンの感度や演算処理能力が比較的低い抽出装置を用いる場合には、ビット数、ハミング距離が大きいビット配列を作成するようにする。
(5. Number of bits in bit array Nh, when Hamming distance is changed)
In the above embodiment, when embedding / extracting the content ID, when creating a bit array, the bit array to be created is 12 bits (Nh bits) and the hamming distance is 4. However, the number of bits of the bit array Nh The hamming distance can be changed as appropriate. In general, if the bit number Nh of the bit array is increased, the coding efficiency is deteriorated, but the number of error bits that can be corrected is increased. Therefore, when using an extraction device with a relatively high microphone sensitivity and arithmetic processing capability, a bit array with a small number of bits and a hamming distance is created, and an extraction device with a relatively low microphone sensitivity and arithmetic processing capability is used. When used, a bit array having a large number of bits and a hamming distance is created.

ここでは、ビット配列のビット数Nhを16、ハミング距離を6とした場合の例について説明する。ビット配列のビット数を16、ハミング距離を6とした場合も、変換テーブル作成手段80による符号変換テーブル作成は、基本的には、図5に示したフローチャートに従って行われる。ただし、HFが16ビット符号である点、S603において16ビット符号HFと符号変換テーブルに既に登録されている他の16ビット符号とのハミング距離を算出した後、S604、S605のいずれに進むかの閾値が、ハミング距離が6未満か、6以上かで決まる点が、ビット数Nh=12、ハミング距離4の場合と異なっている。   Here, an example in which the number of bits Nh in the bit array is 16 and the Hamming distance is 6 will be described. Even when the number of bits of the bit array is 16 and the Hamming distance is 6, the code conversion table creation by the conversion table creation means 80 is basically performed according to the flowchart shown in FIG. However, HF is a 16-bit code, and after calculating the Hamming distance between the 16-bit code HF and another 16-bit code already registered in the code conversion table in S603, whether to proceed to S604 or S605 The threshold is determined by whether the Hamming distance is less than 6 or more than 6 and is different from the case of the number of bits Nh = 12, and the Hamming distance 4.

このようにして作成された符号変換テーブルを図27に示す。図27に示すように、符号変換テーブルには、7ビット符号が取り得る各値0〜127について、16ビット符号が対応付けて登録されている。16ビット符号の2進表記を見るとわかるように、全ての16ビット符号は互いにハミング距離が6以上となっている。なお、図27の例では、説明の便宜上、7ビット符号の10進表記と、16ビット符号の10進表記及び2進表記を示しているが、現実には、7ビット符号のビット列と16ビット符号のビット列が対応付けて登録されている。   The code conversion table created in this way is shown in FIG. As shown in FIG. 27, in the code conversion table, 16-bit codes are registered in association with values 0 to 127 that can be taken by 7-bit codes. As can be seen from the binary representation of the 16-bit code, all the 16-bit codes have a Hamming distance of 6 or more. In the example of FIG. 27, for convenience of explanation, a decimal notation of a 7-bit code and a decimal notation and a binary notation of a 16-bit code are shown. Code bit strings are registered in association with each other.

符号変換テーブル作成処理後は、図9のフローチャートに従って埋め込み処理が行われる。この際、1ワードとして、16ビット分の処理が行われることになる。   After the code conversion table creation process, the embedding process is performed according to the flowchart of FIG. At this time, processing for 16 bits is performed as one word.

抽出時には、変換テーブル作成手段180が、最初に、符号変換テーブルを作成する。符号変換テーブルが作成された後は、図22〜図26に従った処理により、付加情報が抽出されることになる。16ビット符号を扱う場合、図22、図26におけるS205においては、ビットカウンタが15以下か16以上かで判断を行うことになる。また、図25のS701においては、最小ハミング距離HD=3として初期化し、S703においては、HFが16ビット符号として定義される。また、図26のS212に進むのは、最小ハミング距離が3以上の場合となる。   At the time of extraction, the conversion table creation means 180 first creates a code conversion table. After the code conversion table is created, additional information is extracted by the processing according to FIGS. When handling a 16-bit code, in S205 in FIGS. 22 and 26, a determination is made based on whether the bit counter is 15 or less or 16 or more. In S701 of FIG. 25, initialization is performed with the minimum hamming distance HD = 3, and in S703, HF is defined as a 16-bit code. Further, the process proceeds to S212 in FIG. 26 when the minimum hamming distance is 3 or more.

(6.信号成分が小さい場合にさらに確実に情報の埋め込みを行う手法)
ここまでの説明のように、本実施形態におけるコンテンツIDの埋め込み、抽出においては、元の信号成分に無音に近い部分があっても、情報の埋め込みを可能とするものである。このままでも、もちろん十分であるが、本発明においては、より確実に情報を埋め込むような処理を付加することも可能である。具体的には、周波数変換を行う前に、音響信号に聴取困難な微弱な白色ノイズを重畳させる。
(6. Method of embedding information more reliably when the signal component is small)
As described so far, in the embedding and extraction of the content ID in the present embodiment, it is possible to embed information even if the original signal component has a portion close to silence. Of course, this is sufficient, but in the present invention, it is possible to add a process for embedding information more reliably. Specifically, before performing the frequency conversion, weak white noise that is difficult to hear is superimposed on the acoustic signal.

この場合、図1に示した音響フレーム読込手段10は、所定数のサンプルを1音響フレームとして読み込んだ後、所定の振幅範囲で所定サンプル数単位で同一値を加算または減算する機能を有している。本実施形態では、左チャンネル信号Xl(i)、右チャンネル信号Xr(i)(i=0,…,N−1)に対して、−32〜+32の振幅範囲(Xl(i)、Xr(i)のとり得る値が−32768〜+32767の場合)で一様乱数Hを発生させ、K(本実施形態ではK=5)個のサンプル間は同一値Hを用いて以下の〔数式22〕に示すような処理を実行し、Xl(i)、Xr(i)の値を更新する。   In this case, the acoustic frame reading means 10 shown in FIG. 1 has a function of adding or subtracting the same value in units of a predetermined number of samples within a predetermined amplitude range after reading a predetermined number of samples as one acoustic frame. Yes. In this embodiment, with respect to the left channel signal Xl (i) and the right channel signal Xr (i) (i = 0,..., N−1), an amplitude range of −32 to +32 (Xl (i), Xr ( i) is a value between −32768 to +32767), and a uniform random number H is generated, and the same value H is used between K (K = 5 in the present embodiment) samples. The processing as shown in FIG. 5 is executed to update the values of Xl (i) and Xr (i).

〔数式22〕
Xl(i)←Xl(i)+H
Xr(i)←Xr(i)−H
[Formula 22]
Xl (i) ← Xl (i) + H
Xr (i) ← Xr (i) -H

すなわち、上記〔数式22〕に従った処理をNサンプルに渡って実行することにより、1つの音響フレームに白色ノイズが発生されることになる。この白色ノイズの発生処理は、図9のフローチャートにおいては、S103、S104の音響フレーム抽出処理の直後に行われることになる。   That is, white noise is generated in one acoustic frame by executing the processing according to the above [Equation 22] over N samples. The white noise generation process is performed immediately after the acoustic frame extraction process of S103 and S104 in the flowchart of FIG.

上記のように、白色ノイズを発生させた場合であっても、抽出側の、ID抽出手段220の構成は図21と同一であり、処理動作は図22〜図26のフローチャートに従ったものと同一である。   As described above, even when white noise is generated, the configuration of the ID extraction means 220 on the extraction side is the same as that in FIG. 21, and the processing operation is according to the flowcharts in FIGS. Are the same.

(7.抽出時に符号逆変換テーブルを作成する場合)
上記実施形態では、ID抽出手段220は、バッファにNh(12又は16)ビットが保存された状態で、図25に示した処理を実行することにより、対応する7ビットの基準符号KFを得るようにしたが、この場合、1ワード単位で図25に示した処理を実行することになるため、処理負荷が大きくなる。このような処理負荷を小さくするためには、得られたNhビットを、Nwビットに変換するための符号逆変換テーブルを作成しておくことが望ましい。ここでは、このような符号逆変換テーブルを利用する場合について説明する。
(7. When creating a sign reverse conversion table during extraction)
In the above embodiment, the ID extraction unit 220 performs the process shown in FIG. 25 with Nh (12 or 16) bits stored in the buffer so as to obtain the corresponding 7-bit reference code KF. However, in this case, since the processing shown in FIG. 25 is executed in units of one word, the processing load increases. In order to reduce such a processing load, it is desirable to create a code reverse conversion table for converting the obtained Nh bits into Nw bits. Here, a case where such a code reverse conversion table is used will be described.

この場合、ID抽出手段220内の変換テーブル作成手段180は、変換テーブル作成手段80の機能に加え、符号逆変換テーブルを作成する機能を備えるとともに、付加情報抽出手段160が、図25に従った処理を行う機能に代えて、符号逆変換テーブルを参照する機能を備える。具体的には、付加情報抽出手段160は、図22、図26のS206において、図25に従った処理を実行する代わりに、符号逆変換テーブルを参照することになる。   In this case, the conversion table creation unit 180 in the ID extraction unit 220 has a function of creating a sign reverse conversion table in addition to the function of the conversion table creation unit 80, and the additional information extraction unit 160 follows the function shown in FIG. Instead of the function of performing the processing, a function of referring to the code reverse conversion table is provided. Specifically, the additional information extraction unit 160 refers to the code reverse conversion table instead of executing the processing according to FIG. 25 in S206 of FIGS.

この場合、変換テーブル作成手段180は、Nh(>Nw)ビットの全ハミング符号に対して、変換対象となるハミング符号までのハミング距離を記録するとともに、このハミング距離が所定以下のハミング符号に対しては、対応するNwビットの登録順位が対応付けられた符号逆変換テーブルを作成する機能を有する。   In this case, the conversion table creation means 180 records the Hamming distance to the Hamming code to be converted for all Hamming codes of Nh (> Nw) bits, and for Hamming codes whose Hamming distance is a predetermined value or less. Thus, it has a function of creating a code reverse conversion table in which the registration order of the corresponding Nw bits is associated.

コンテンツ再生装置を起動すると、まず、変換テーブル作成手段180が、符号逆変換テーブルを作成する。変換テーブル作成手段180による符号逆変換テーブルの作成は、最初に、変換テーブル作成手段80と同様の処理を行って符号変換テーブルを作成した後、この符号変換テーブルを利用して行う。   When the content playback apparatus is activated, first, the conversion table creating means 180 creates a code reverse conversion table. The code reverse conversion table is created by the conversion table creating unit 180 by first performing the same processing as the conversion table creating unit 80 to create a code conversion table and then using this code conversion table.

符号逆変換テーブルは、Nhビットの全ハミング符号に対して、各々符号変換テーブルに登録されているハミング符号までの最小のハミング距離を記録するとともに、このハミング距離が所定以下のハミング符号に対しては、逆変換先となるNwビットの登録順位(当該ハミング距離をもつハミング符号が符号変換テーブルに登録されている登録順位)が対応付けられたものであるので、Nh=12の場合、HF=0〜4095までの各ハミング符号について作成されることになる。HFの値を特定した場合の処理は、図25に示したものと同じである。S704において、iの値が128以上となった場合、ハミング距離HDが0または1であった場合には、ハミング符号HFと対応付けて、7ビット符号KFおよび最小ハミング距離HDを符号逆変換テーブルに登録する。   The code reverse conversion table records the minimum hamming distance to each hamming code registered in the code conversion table for all Nh-bit hamming codes, and for the hamming codes whose hamming distance is a predetermined value or less. Is associated with the registration order of Nw bits as the inverse transform destination (registration order in which the Hamming code having the Hamming distance is registered in the code conversion table), so when Nh = 12, HF = It is created for each Hamming code from 0 to 4095. The processing when the value of HF is specified is the same as that shown in FIG. In S704, when the value of i is 128 or more, and the hamming distance HD is 0 or 1, the 7-bit code KF and the minimum hamming distance HD are associated with the hamming code HF and the code inverse conversion table is used. Register with.

図25に示した処理を、HF=0〜4095の全てについて実行することにより、図28に示すような符号逆変換テーブルが作成される。図28に示すように、符号逆変換テーブルには、12ビット符号HFが取り得る各値0〜4095について、ハミング距離が対応付けて登録されているとともに、ハミング距離が1以下となったものについては、対応する7ビット符号KFが登録されている。なお、図28の例では、説明の便宜上、7ビット符号の10進表記と、12ビット符号の10進表記及び2進表記を示しているが、現実には、7ビット符号のビット列と12ビット符号のビット列が対応付けて登録されている。   By executing the process shown in FIG. 25 for all of HF = 0 to 4095, a code reverse conversion table as shown in FIG. 28 is created. As shown in FIG. 28, in the code inverse conversion table, for each value 0 to 4095 that can be taken by the 12-bit code HF, the Hamming distance is registered in association with each other, and the Hamming distance becomes 1 or less. Corresponding 7-bit code KF is registered. In the example of FIG. 28, for convenience of explanation, a decimal notation of a 7-bit code and a decimal notation and a binary notation of a 12-bit code are shown. Code bit strings are registered in association with each other.

また、Nh=16の場合、図25に示した処理を、HF=0〜65535の全てについて実行することにより、図29に示すような符号逆変換テーブルが作成される。   When Nh = 16, the process shown in FIG. 25 is executed for all of HF = 0 to 65535, whereby a code reverse conversion table as shown in FIG. 29 is created.

そして、図22のS206の処理を行う際には、Nh=12の場合は、得られた12ビットで図28を参照し、対応する7ビット符号KFと、ハミング距離を得ることになり、Nh=16の場合は、得られた16ビットで図29を参照し、対応する7ビット符号KFと、ハミング距離を得ることになる。   Then, when performing the processing of S206 in FIG. 22, if Nh = 12, the corresponding 12-bit code KF and the Hamming distance are obtained by referring to FIG. 28 with the obtained 12 bits, and Nh If = 16, the corresponding 16-bit code KF and the Hamming distance are obtained with reference to FIG. 29 with the obtained 16 bits.

(8.その他)
以上、本発明の好適な実施形態について説明したが、本発明は上記実施形態に限定されず、種々の変形が可能である。例えば、上記実施形態では、1音響フレームのサンプル数N=4096としたが、N=2048、1024、512等を設定するようにしても良い。これにより、同一時間あたりの音響フレーム数が、2倍、4倍、8倍となり、全体として2〜8倍の情報の埋め込みが可能となる。
(8. Others)
The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the above embodiments, and various modifications can be made. For example, in the above embodiment, the number of samples of one acoustic frame is N = 4096, but N = 2048, 1024, 512, etc. may be set. As a result, the number of sound frames per same time is doubled, quadrupled, and quadrupled, and 2 to 8 times of information can be embedded as a whole.

また、上記実施形態では、2チャンネルのステレオ音響信号を利用した場合を例にとって説明したが、1チャンネルのモノラル音響信号を利用しても良い。この場合は、上記LチャンネルまたはRチャンネルのいずれか一方に対して行った処理を実行すれば良い。   In the above embodiment, a case where a two-channel stereo sound signal is used has been described as an example. However, a one-channel monaural sound signal may be used. In this case, the process performed on either the L channel or the R channel may be executed.

また、埋め込み装置によるコンテンツIDの埋め込み、およびID抽出手段220によるコンテンツIDの抽出は、上記実施形態に限定されず、特開2006−195061号公報、特開2006−323246号公報、特開2008−15416号公報等に開示の技術を始めとする公知の手法を利用することができる。   Further, the embedding of the content ID by the embedding device and the extraction of the content ID by the ID extracting unit 220 are not limited to the above-described embodiment, and JP-A-2006-195061, JP-A-2006-323246, JP-A-2008-. Known techniques such as those disclosed in Japanese Patent No. 15416 can be used.

埋め込み装置の機能ブロック図である。It is a functional block diagram of an embedding device. 本発明で用いる時間方向窓関数を示す図である。It is a figure which shows the time direction window function used by this invention. 人間の聴覚心理特性である音脈分凝の原理の説明図である。It is explanatory drawing of the principle of the sound pulse fractionation which is a human auditory psychological characteristic. 本発明の一実施形態における変更対象周波数帯の成分の変化の状態を示す図である。It is a figure which shows the state of a change of the component of the change object frequency band in one Embodiment of this invention. 符号変換テーブル作成の処理概要を示すフローチャートである。It is a flowchart which shows the process outline | summary of code conversion table preparation. 7ビット符号と12ビット符号の符号変換テーブルの一例を示す図である。It is a figure which shows an example of the code conversion table of 7 bit code and 12 bit code. 本発明における埋め込み時の各音響フレームの強度変化の様子を示す図である。It is a figure which shows the mode of the intensity | strength change of each acoustic frame at the time of embedding in this invention. 周波数に対するエネルギー分布および、従来と本発明の埋め込み領域を示す図である。It is a figure which shows the energy distribution with respect to a frequency, and the embedding area | region of the past and this invention. 図7のS807の処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a process of S807 of FIG. 振幅変換を用いない埋め込み処理を説明するための図である。It is a figure for demonstrating the embedding process which does not use amplitude conversion. 振幅変換を用いない抽出処理を説明するための図である。It is a figure for demonstrating the extraction process which does not use amplitude conversion. 振幅変換を用いた埋め込み処理を説明するための図である。It is a figure for demonstrating the embedding process using amplitude conversion. 振幅変換を用いた抽出処理を説明するための図である。It is a figure for demonstrating the extraction process using amplitude conversion. 各展示物付近に設置したスピーカからコンテンツIDを埋め込んだ音を発する形態を示す図である。It is a figure which shows the form which emits the sound which embedded content ID from the speaker installed in the vicinity of each exhibit. 本発明に係るコンテンツ再生装置の一実施形態を示す構成図である。It is a block diagram which shows one Embodiment of the content reproduction apparatus which concerns on this invention. コンテンツ再生装置の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of a content reproduction apparatus. 各手段による並行処理の様子を示す図である。It is a figure which shows the mode of the parallel processing by each means. 再生リスト保持手段230に記憶された再生リストの一例を示す図である。6 is a diagram showing an example of a playlist stored in a playlist holding unit 230. FIG. コンテンツが動画または音声である場合のコンテンツ再生装置の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of the content reproduction apparatus in case a content is a moving image or an audio | voice. コンテンツが動画または音声である場合の各手段による並行処理の様子を示す図である。It is a figure which shows the mode of the parallel processing by each means in case a content is a moving image or an audio | voice. 本発明に係る音響信号からの情報の抽出装置の機能ブロック図である。1 is a functional block diagram of an apparatus for extracting information from an acoustic signal according to the present invention. 図21に示した装置の、エラー訂正を行わない設定における処理概要を示すフローチャートである。It is a flowchart which shows the process outline | summary in the setting which does not perform error correction of the apparatus shown in FIG. 図22のS202の位相確定および符号出力の詳細を示すフローチャートである。It is a flowchart which shows the detail of the phase determination and code | symbol output of S202 of FIG. 図23のS302の符号判定処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of the code | symbol determination process of S302 of FIG. 12ビット符号HFが特定された場合の、対応する7ビット符号KF、最小ハミング距離HDを得るための処理を示すフローチャートである。It is a flowchart which shows the process for obtaining the corresponding 7-bit code KF and the minimum Hamming distance HD when the 12-bit code HF is specified. 図21に示した装置の、1ビットのエラー訂正をする設定における処理概要を示すフローチャートである。It is a flowchart which shows the process outline | summary in the setting which performs the error correction of 1 bit of the apparatus shown in FIG. 7ビット符号と16ビット符号の符号変換テーブルの一例を示す図である。It is a figure which shows an example of the code conversion table of a 7 bit code and a 16 bit code. 7ビット符号と12ビット符号の符号逆変換テーブルの一例を示す図である。It is a figure which shows an example of the code reverse conversion table of a 7 bit code and a 12 bit code. 7ビット符号と16ビット符号の符号逆変換テーブルの一例を示す図である。It is a figure which shows an example of the code reverse conversion table of a 7 bit code and a 16 bit code.

符号の説明Explanation of symbols

10・・・音響フレーム読込手段
20・・・周波数変換手段
30・・・周波数成分変更手段
40・・・周波数逆変換手段
50・・・改変音響フレーム出力手段
60・・・記憶手段
61・・・音響信号記憶部
62・・・付加情報記憶部
63・・・改変音響信号記憶部
70・・・ビット配列作成手段
80・・・変換テーブル作成手段
110・・・基準フレーム獲得手段
120・・・位相変更フレーム設定手段
130・・・周波数変換手段
140・・・符号判定パラメータ算出手段
150・・・符号出力手段
160・・・付加情報抽出手段
170・・・音響フレーム保持手段
180・・・変換テーブル作成手段
200・・・コンテンツ記憶手段
210・・・音響信号入力手段
220・・・ID抽出手段
230・・・再生リスト保持手段
240・・・再生手段
DESCRIPTION OF SYMBOLS 10 ... Acoustic frame reading means 20 ... Frequency conversion means 30 ... Frequency component change means 40 ... Frequency reverse conversion means 50 ... Modified acoustic frame output means 60 ... Storage means 61 ... Acoustic signal storage unit 62 ... additional information storage unit 63 ... modified acoustic signal storage unit 70 ... bit array creation means 80 ... conversion table creation means 110 ... reference frame acquisition means 120 ... phase Change frame setting means 130 ... frequency conversion means 140 ... code determination parameter calculation means 150 ... code output means 160 ... additional information extraction means 170 ... acoustic frame holding means 180 ... conversion table creation Means 200... Content storage means 210... Acoustic signal input means 220... ID extraction means 230. Stage 240: Reproducing means

Claims (8)

コンテンツを特定するコンテンツIDがあらかじめ埋め込まれた音響信号を入力し、前記入力された音響信号より前記コンテンツIDを抽出し、前記抽出されたコンテンツIDに対応する複数のフレームで構成されるコンテンツを検索し、所定の順序で各フレームを再生するコンテンツの再生装置であって、
静止画、動画、音声の少なくとも1つを含む複数のフレームで構成されるコンテンツと、各コンテンツにおける再生順序を示した再生リストを、前記コンテンツIDと対応付けて記憶するコンテンツ記憶手段と、
前記音響信号の所定区間を録音し、音声ファイルを作成する音響信号入力手段と、
前記音声ファイルから埋め込まれているコンテンツIDを抽出するID抽出手段と、
前記ID抽出手段により抽出されたコンテンツIDに対応する再生リストを保持する再生リスト保持手段と、
再生リスト保持手段に保持されている再生リストに従って、前記コンテンツ記憶手段よりコンテンツを取得するとともに、コンテンツ内のフレームを再生する再生手段と、
を有することを特徴とする音響信号で制御されるコンテンツの再生装置。
Input an audio signal in which a content ID for specifying content is embedded in advance, extract the content ID from the input audio signal, and search for content composed of a plurality of frames corresponding to the extracted content ID And a content playback device for playing back each frame in a predetermined order,
Content storage means for storing a content composed of a plurality of frames including at least one of a still image, a moving image, and audio, and a reproduction list indicating a reproduction order in each content in association with the content ID;
An audio signal input means for recording a predetermined section of the audio signal and creating an audio file;
ID extraction means for extracting the embedded content ID from the audio file;
Playlist holding means for holding a playlist corresponding to the content ID extracted by the ID extracting means;
Reproduction means for obtaining content from the content storage means and reproducing frames in the content according to a reproduction list held in the reproduction list holding means;
A content playback apparatus controlled by an acoustic signal.
請求項1において、
前記ID抽出手段は、前記音声ファイルより抽出されたコンテンツIDが前記再生リスト保持手段で保持している再生リストのコンテンツIDと異なる場合、前記再生リスト保持手段で保持している再生リストを前記抽出したコンテンツIDの再生リストで更新するとともに、前記再生リスト保持手段で保持している再生対象フレームのフレームIDを先頭のフレームに戻すことを特徴とする音響信号で制御されるコンテンツの再生装置。
In claim 1,
If the content ID extracted from the audio file is different from the content ID of the playlist held by the playlist holding unit, the ID extracting unit extracts the playlist held by the playlist holding unit. A content reproduction apparatus controlled by an acoustic signal, wherein the content ID is updated with the reproduction list of the content ID and the frame ID of the reproduction target frame held by the reproduction list holding means is returned to the first frame.
請求項1または請求項2において、
前記音響信号入力手段は、互いに時系列に交互に実行される、第1の音声ファイルを作成する第1の音響信号入力手段と、第2の音声ファイルを作成する第2の音響信号入力手段により構成され、
前記ID抽出手段は、互いに時系列に交互に実行される、前記第1の音声ファイルよりコンテンツIDを抽出する第1のID抽出手段と、前記第2の音声ファイルよりコンテンツIDを抽出する第2のID抽出手段により構成され、
前記第1のID抽出手段は前記第2の音響信号入力手段と並列実行され、前記第2のID抽出手段は前記第1の音響信号入力手段と並列実行されるものであることを特徴とする音響信号で制御されるコンテンツの再生装置。
In claim 1 or claim 2,
The sound signal input means includes a first sound signal input means for creating a first sound file and a second sound signal input means for creating a second sound file, which are alternately executed in time series. Configured,
The ID extracting means is a first ID extracting means for extracting a content ID from the first audio file, and is a second ID for extracting a content ID from the second audio file, which are alternately executed in time series. ID extraction means,
The first ID extraction means is executed in parallel with the second acoustic signal input means, and the second ID extraction means is executed in parallel with the first acoustic signal input means. A content playback apparatus controlled by an acoustic signal.
請求項1から請求項3のいずれかにおいて、
前記コンテンツが複数の静止画により構成される場合、前記再生手段は、前記音響信号入力手段および前記ID抽出手段とは非同期に並列実行するものであることを特徴とする音響信号で制御されるコンテンツの再生装置。
In any one of Claims 1-3,
In the case where the content is composed of a plurality of still images, the reproduction unit is executed in parallel with the acoustic signal input unit and the ID extraction unit asynchronously, and is controlled by an acoustic signal Playback device.
請求項1から請求項4のいずれかにおいて、
前記コンテンツが複数の静止画により構成される場合、前記再生リストが各フレームごとに直前の静止画からの切り替え方法、切り替え時間、静止画再生時間からなる情報を有し、前記再生リスト内前記各情報に従って、前記再生手段が、各フレームを再生するタイミングを制御するものであることを特徴とする音響信号で制御されるコンテンツの再生装置。
In any one of Claims 1-4,
When the content is composed of a plurality of still images, the playlist includes information including a switching method from the immediately preceding still image, a switching time, and a still image playback time for each frame, A content playback apparatus controlled by an acoustic signal, wherein the playback means controls the playback timing of each frame according to information.
請求項5において、
前記直前の静止画からの切り替え方法として、直前の静止画と再生予定の静止画と輝度値を所定の割合で混合し、その混合比を時間的に変化させながら切り替えるディゾルブ手法を用いることを特徴とする音響信号で制御されるコンテンツの再生装置。
In claim 5,
As a switching method from the immediately preceding still image, a dissolve method is used in which the immediately preceding still image, the still image to be reproduced and the luminance value are mixed at a predetermined ratio, and the mixing ratio is changed while changing over time. A content playback apparatus controlled by an acoustic signal.
請求項1から請求項3のいずれかにおいて、
前記コンテンツが動画または音声を含む場合、前記再生手段は、再生中は、前記音響信号入力手段および前記ID抽出手段の実行を停止させ、前記再生手段は単独で実行するものであることを特徴とする音響信号で制御されるコンテンツの再生装置。
In any one of Claims 1-3,
When the content includes a moving image or sound, the playback means stops execution of the acoustic signal input means and the ID extraction means during playback, and the playback means executes alone. A content playback apparatus controlled by an acoustic signal.
携帯型端末装置を、請求項1から請求項7のいずれかに記載のコンテンツの再生装置として機能させるためのプログラム。   A program for causing a portable terminal device to function as the content reproduction device according to any one of claims 1 to 7.
JP2008019151A 2008-01-30 2008-01-30 Content playback device controlled with acoustic signal Pending JP2009180893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008019151A JP2009180893A (en) 2008-01-30 2008-01-30 Content playback device controlled with acoustic signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008019151A JP2009180893A (en) 2008-01-30 2008-01-30 Content playback device controlled with acoustic signal

Publications (1)

Publication Number Publication Date
JP2009180893A true JP2009180893A (en) 2009-08-13

Family

ID=41034924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008019151A Pending JP2009180893A (en) 2008-01-30 2008-01-30 Content playback device controlled with acoustic signal

Country Status (1)

Country Link
JP (1) JP2009180893A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016017577A1 (en) * 2014-07-29 2016-02-04 ヤマハ株式会社 Terminal device, information provision system, information presentation method, and information provision method
WO2016017576A1 (en) * 2014-07-29 2016-02-04 ヤマハ株式会社 Information management system and information management method
JP2016153905A (en) * 2014-07-29 2016-08-25 ヤマハ株式会社 Information management system
CN106982096A (en) * 2016-12-30 2017-07-25 中国银联股份有限公司 Data transmission method based on sound wave
JP2017212750A (en) * 2017-08-04 2017-11-30 ヤマハ株式会社 Reproduction system, terminal device, information providing method, operation method of terminal device, and program
US9921801B2 (en) 2015-07-21 2018-03-20 Panasonic Intellectual Property Corporation Of America Control method and control device
US20180098164A1 (en) 2014-08-26 2018-04-05 Yamaha Corporation Reproduction system, terminal device, method thereof, and non-transitory storage medium, for providing information
JP2020060706A (en) * 2018-10-11 2020-04-16 ヤマハ株式会社 Information acquisition device and information acquisition method
JP2020189100A (en) * 2016-04-25 2020-11-26 ヤマハ株式会社 Terminal device, operation method of terminal device, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08263006A (en) * 1995-03-23 1996-10-11 Unitec Kk Voice guiding device
JP2005506763A (en) * 2001-10-18 2005-03-03 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Service data distribution system
JP2006304292A (en) * 2001-01-05 2006-11-02 Samsung Electronics Co Ltd Exhibition information service system and method using radio communications
JP2007011242A (en) * 2005-06-29 2007-01-18 Cognitive Research Laboratories Inc Digital watermark information-embedded music information distribution system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08263006A (en) * 1995-03-23 1996-10-11 Unitec Kk Voice guiding device
JP2006304292A (en) * 2001-01-05 2006-11-02 Samsung Electronics Co Ltd Exhibition information service system and method using radio communications
JP2005506763A (en) * 2001-10-18 2005-03-03 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Service data distribution system
JP2007011242A (en) * 2005-06-29 2007-01-18 Cognitive Research Laboratories Inc Digital watermark information-embedded music information distribution system

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2015297647B2 (en) * 2014-07-29 2017-07-06 Yamaha Corporation Information management system and information management method
JP2017195612A (en) * 2014-07-29 2017-10-26 ヤマハ株式会社 Information management system and terminal device
JP5887446B1 (en) * 2014-07-29 2016-03-16 ヤマハ株式会社 Information management system, information management method and program
JP2016153905A (en) * 2014-07-29 2016-08-25 ヤマハ株式会社 Information management system
CN106537496A (en) * 2014-07-29 2017-03-22 雅马哈株式会社 Terminal device, information provision system, information presentation method, and information provision method
JP6159048B1 (en) * 2014-07-29 2017-07-05 ヤマハ株式会社 Information management system and terminal device
WO2016017576A1 (en) * 2014-07-29 2016-02-04 ヤマハ株式会社 Information management system and information management method
US10733386B2 (en) 2014-07-29 2020-08-04 Yamaha Corporation Terminal device, information providing system, information presentation method, and information providing method
KR101942678B1 (en) * 2014-07-29 2019-01-25 야마하 가부시키가이샤 Information management system and information management method
KR101796428B1 (en) * 2014-07-29 2017-11-09 야마하 가부시키가이샤 Information management system and information management method
KR101796429B1 (en) * 2014-07-29 2017-11-09 야마하 가부시키가이샤 Terminal device, information provision system, information presentation method, and information provision method
KR20170125414A (en) * 2014-07-29 2017-11-14 야마하 가부시키가이샤 Information management system and information management method
US10691400B2 (en) 2014-07-29 2020-06-23 Yamaha Corporation Information management system and information management method
WO2016017577A1 (en) * 2014-07-29 2016-02-04 ヤマハ株式会社 Terminal device, information provision system, information presentation method, and information provision method
EP3176782A4 (en) * 2014-07-29 2018-03-28 Yamaha Corporation Terminal device, information provision system, information presentation method, and information provision method
US10542360B2 (en) 2014-08-26 2020-01-21 Yamaha Corporation Reproduction system, terminal device, method thereof, and non-transitory storage medium, for providing information
US20180098164A1 (en) 2014-08-26 2018-04-05 Yamaha Corporation Reproduction system, terminal device, method thereof, and non-transitory storage medium, for providing information
US10433083B2 (en) 2014-08-26 2019-10-01 Yamaha Corporation Audio processing device and method of providing information
US9921801B2 (en) 2015-07-21 2018-03-20 Panasonic Intellectual Property Corporation Of America Control method and control device
JP2020189100A (en) * 2016-04-25 2020-11-26 ヤマハ株式会社 Terminal device, operation method of terminal device, and program
CN106982096A (en) * 2016-12-30 2017-07-25 中国银联股份有限公司 Data transmission method based on sound wave
JP2017212750A (en) * 2017-08-04 2017-11-30 ヤマハ株式会社 Reproduction system, terminal device, information providing method, operation method of terminal device, and program
JP2020060706A (en) * 2018-10-11 2020-04-16 ヤマハ株式会社 Information acquisition device and information acquisition method
JP7099241B2 (en) 2018-10-11 2022-07-12 ヤマハ株式会社 Information acquisition device and information acquisition method

Similar Documents

Publication Publication Date Title
JP2009180893A (en) Content playback device controlled with acoustic signal
JP4780375B2 (en) Device for embedding control code in acoustic signal, and control system for time-series driving device using acoustic signal
JP4660275B2 (en) Information embedding apparatus and method for acoustic signal
JP4867765B2 (en) Information embedding device for sound signal and device for extracting information from sound signal
JP4629495B2 (en) Information embedding apparatus and method for acoustic signal
JP5157931B2 (en) Information embedding device for acoustic signal and position detecting device using acoustic signal
JP4910920B2 (en) Information embedding device for sound signal and device for extracting information from sound signal
JP5157863B2 (en) Information embedding device for acoustic signal and position detecting device using acoustic signal
JP5104200B2 (en) Network connection device
JP4973417B2 (en) Information embedding device for sound signal and device for extracting information from sound signal
JP4910959B2 (en) Information embedding device for sound signal and device for extracting information from sound signal
JP4968468B2 (en) Information embedding device for sound signal and device for extracting information from sound signal
JP5273366B2 (en) Content synchronized playback device
JP5212715B2 (en) Device for extracting information from acoustic signals
JP2006153908A (en) Audio data encoding device and audio data decoding device
JP5569033B2 (en) Information embedding device for acoustic signals
JP5104202B2 (en) Real-time information embedding device for acoustic signals
JP6125807B2 (en) Data compression device, data compression program, data compression system, data compression method, data decompression device, and data compression / decompression system
JP4713181B2 (en) Information embedding device for sound signal, device for extracting information from sound signal, and sound signal reproducing device
JP2010078728A (en) Device for embedding information in sound signal and device for extracting information from sound signal
JP4713180B2 (en) Device for extracting information from acoustic signals
JP4910921B2 (en) Information embedding device for sound signal and device for extracting information from sound signal
JP4876978B2 (en) Information embedding device for sound signal and device for extracting information from sound signal
JP6736196B1 (en) Audio reproduction method, audio reproduction system, and program
JP2011107265A (en) Embedding device for information into sound signal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101109

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120416

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121030