JP2004199785A - Compressed audio data recording device and compressed audio data recording method - Google Patents

Compressed audio data recording device and compressed audio data recording method Download PDF

Info

Publication number
JP2004199785A
JP2004199785A JP2002367077A JP2002367077A JP2004199785A JP 2004199785 A JP2004199785 A JP 2004199785A JP 2002367077 A JP2002367077 A JP 2002367077A JP 2002367077 A JP2002367077 A JP 2002367077A JP 2004199785 A JP2004199785 A JP 2004199785A
Authority
JP
Japan
Prior art keywords
audio data
compressed audio
data
recording
storage medium
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.)
Granted
Application number
JP2002367077A
Other languages
Japanese (ja)
Other versions
JP4021756B2 (en
JP2004199785A5 (en
Inventor
Kiminori Matsuno
公則 松野
Tatsuya Suzuki
達也 鈴木
Akira Sobashima
彰 傍島
Masahiko Hatanaka
正彦 畠中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002367077A priority Critical patent/JP4021756B2/en
Publication of JP2004199785A publication Critical patent/JP2004199785A/en
Publication of JP2004199785A5 publication Critical patent/JP2004199785A5/ja
Application granted granted Critical
Publication of JP4021756B2 publication Critical patent/JP4021756B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a compressed audio data recording device and a compressed audio data recording method which can perform music switching control at the same processing speed as that at the time of performing unmagnified-speed recording even when performing highly magnified-speed recording. <P>SOLUTION: A storage medium management means stores encryption compressed data which is enciphered per a frame continuously in the data storing area of the storage medium in a fixed data length (block) unit. At the same time, in the case where there is a music switching frame in the block, the means stores music switching information in the additional information storing area of the storage medium by relating it with the block. A control means reads out the music switching information and prepares recording data management information based on this and records this on a recording medium. Thus, the processing load of the control means can be reduced. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、圧縮音声データ記録装置及び圧縮音声データ記録方法に関する。
【0002】
【従来の技術】
近年、インターネット等による音楽配信に対応するため、暗号化された高圧縮な音声データの記録装置が普及しつつある。特に、MPEG2_AAC(以後、「AAC」と呼ぶ)と呼ばれる高圧縮な音声データ圧縮方式に対応した記録装置の使用用途が拡大してきている。AACは、同一ファイル内でも記録単位であるフレームのデータ長が一定ではないため、記録時に曲単位の記録データ長及び再生時間を求める場合には、何らかの方法でフレーム数をカウントし、データ長を求める必要があった。また、暗号化処理は、フレーム単位で処理されると共に曲単位で暗号化に用いる鍵を切り換える必要がある。複数の曲を切れ目なくつないだ音声データのストリームを入力して連続的に曲切り換えをしながら暗号化するためには、曲切り換え点をフレーム単位で認識し、その曲切り換え点で暗号鍵を切り換える必要があった。
【0003】
図14、15を用いて、従来例の圧縮音声データ記録装置及び圧縮音声データ記録方法について説明する。
はじめに、従来例の圧縮音声データ記録装置の構成について説明する。
図14は従来例の圧縮音声データ記録装置の構成を示すブロック図である。図14において、1401は圧縮手段、1402は暗号化手段、1403は格納媒体、1404はデータ書き込み手段、1405は記録媒体、1406は制御手段、1407は格納媒体管理手段である。
【0004】
次に、従来例の圧縮音声データ記録装置のデータの流れについて説明する。
圧縮手段1401は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、入力された音声データをフレーム単位で可変長の圧縮符号化方式(例えばAAC)で圧縮音声データに変換する。同時に、圧縮手段1401は、フレーム単位の曲切り換え信号及び圧縮処理開始からのフレームカウント数を発生させる。圧縮音声データは暗号化手段1402に与えられ、曲切り換え信号及びフレームカウント数は制御手段1406に与えられる。
制御手段1406は、曲切り換え信号を受け取ると、所定のタイミング(例えば、圧縮手段1401からのフレーム割り込み数)で暗号化手段1402に対して暗号鍵の切り換え指令を与える。同時に、制御手段1406は圧縮手段1401からのフレームカウント数を保持する。
【0005】
暗号化手段1402は、圧縮手段1401からの圧縮音声データをフレーム単位で暗号化する。同時に、暗号化手段1402は、制御手段1406からの鍵切り換え指令が与えられた場合には、フレーム単位で暗号鍵を切り換え、暗号化を継続する。典型的には、暗号化手段1402は、暗号鍵を生成する所定の関数を有し、制御手段1406からの鍵切り換え指令を入力する毎に、現在の暗号鍵をパラメータとして関数に入力し、新たな暗号鍵を発生する。
【0006】
格納媒体管理手段1407は、暗号化手段1402から出力される暗号化圧縮音声データを格納媒体1403に連続して格納する。制御手段1406は、格納媒体1403内の暗号化圧縮音声データを記録媒体1405の記録単位(クラスタ)毎にデータ書き込み手段1404により記録媒体1405に記録する。
格納媒体1403に暗号化圧縮音声データを書き込む処理はフレーム単位で行われ、記録媒体1405に暗号化圧縮音声データを書き込む処理は記録媒体1405の記録単位(クラスタ)で行われる。格納媒体1403は、処理単位が異なり、同期処理が困難な入力音声データの圧縮暗号化処理と記録媒体1405への書き込み処理との間をバッファリングする役割を果たす。
【0007】
制御手段1406は、暗号化圧縮音声データを格納媒体1403に書き込む処理を制御していない故に(格納媒体アドレス管理手段1407が、暗号化圧縮音声データを格納媒体1403に書き込む処理を制御する。)、曲の切り換え点が格納媒体1403のどこに位置するかを知らない。制御手段1406は、格納媒体1403から暗号化圧縮音声データを読み出してそのフレーム数をカウントし、曲の切り換え点を検出する。暗号化圧縮音声データは可変長の圧縮方式で圧縮されている故に、フレームの境目は、不規則に現れる。制御手段1406は、全ての暗号化圧縮音声データを読み出し、フレームの境目を検出し、そのフレーム数をカウントする。フレームの境界には、通常の暗号化圧縮音声データと識別可能な特有のデータ(例えば同期データ)が記録されている。制御手段1406は特有のデータを検出することにより、フレームの境目を1つずつ検出してゆく。
【0008】
制御手段1406は、暗号鍵切り換え時に保持したフレームカウント数と一致するフレームの前までを1曲として、データ長及び再生時間からなる記録データ管理情報を作成する。制御手段1406は、作成した曲毎の記録データ管理情報をデータ書き込み手段1404により記録媒体1405に記録する。記録媒体1405から暗号化圧縮音声データを再生した時、曲毎に暗号鍵を切り換える必要がある故に、記録データ管理情報は、曲毎に作成される。
【0009】
次に、従来例の圧縮音声データ記録装置の記録処理について説明する。図15は記録処理時の従来例の圧縮音声データ記録装置における各データのタイミング図を示す。
圧縮音声データ記録装置に入力された音声データは、まず圧縮手段1401に入力される。圧縮手段1401は音声データを圧縮し、圧縮音声データを暗号化手段1402に送信する。この送信は、フレーム単位で1フレームの圧縮処理時間毎に間歇的に行われる。図15において、フレームカウント数(#m−3〜#m+2)は、圧縮手段1401で圧縮処理開始から連続的にカウントされた値である。同時に圧縮手段1401は、有音判定処理を行い、例えば入力音声データが無音から有音への変化点で、曲切り換え信号及び圧縮処理開始からのフレームカウント数を制御手段1406に送信する(図15のフレーム#m-1)。
【0010】
制御手段1406は、曲切り換え信号及び圧縮処理開始からのフレームカウント数を入力すると、暗号鍵切り換え信号を暗号化手段1402に与える。(図15のフレーム#m-1)
暗号化手段1402は、圧縮手段1401から圧縮音声データと曲切り換え信号とを受信し、制御手段1406から暗号鍵切り換え信号を受信する。暗号鍵切り換え信号を受信した場合は、暗号化手段1402は暗号鍵を切り換える。図15において、暗号化手段1402は、フレーム#mから別の暗号鍵で暗号化を行う。図15の例において、フレーム#m−1がトラック#1(曲#1)の最終フレーム(フレーム#n)となり、フレーム#mがトラック#2(曲#2)の先頭フレーム(フレーム#1)となる。暗号化手段1402は、暗号化した圧縮音声データを格納媒体1403(例えばRAM)に格納する。格納媒体管理手段1407は、暗号化手段1402が所定時間(入力する音声データの1フレームの時間)毎に出力する暗号化圧縮音声データを、格納媒体1403に格納する。
【0011】
制御手段1406は、暗号化手段1402に暗号切り換え信号を送る毎にフレームカウント数(図15のフレーム#m)を、曲の切り換え点(暗号鍵の切り換え点)を検出するための情報として保持する。制御手段1406は、格納媒体1403から暗号化圧縮音声データを読み出してそのフレーム数をカウントし、曲の切り換え点を検出する。各フレームのデータ長は不定である故に、フレームの境界の位置は予測できない。制御手段1406は、格納媒体1403に格納された全ての暗号化圧縮音声データをチェックしてフレームの境目を検出し、暗号化圧縮音声データのフレーム数をカウントする。
【0012】
制御手段1406は、フレーム#mと一致するフレームを検出した場合、そのフレームを暗号鍵切り換えフレーム(新たな暗号鍵で暗号化された曲の先頭のフレーム)、つまり曲切り換え先頭フレームと認識する。制御手段1406は、直前の曲切り換えフレーム(曲切り換え点後の最初のフレーム)からフレーム#m−1までのフレーム長を累積することでトラック#1(曲#1)のデータ長を算出、更にフレーム数からトラック#1(曲#1)の再生時間を算出し、管理情報(曲のデータ長及び再生時間の情報を含む。)を作成する。
以上のように制御部1406が、1フレーム圧縮処理時間内での曲切り換え制御と格納媒体内の暗号化圧縮音声データのフレームカウント処理を行うことで、暗号化されたAACデータの連続記録が可能となる。
【0013】
【特許文献1】
特開平8−279976号公報
【0014】
【発明が解決しようとする課題】
しかしながら、従来例の圧縮音声データ記録装置では、1フレーム圧縮処理時間内で曲切り換え制御を行う必要がある。曲切り換え制御は、制御手段が、フレームの境目を検出し、そのフレームが曲の最後尾のフレームか否かを判断し、最後尾のフレームであれば曲毎に記録データ管理情報を生成し、データ書き込み手段により記録媒体に記録する処理を含む。高倍速記録を行う場合、1フレーム圧縮処理時間は記録速度に反比例して短くなるため、制御手段の処理負荷が増大する。また、従来の圧縮音声データ記録装置では、制御手段が格納媒体内の暗号化圧縮音声データのフレーム数をカウントする。このため、高倍速記録を行う場合、このカウント時間も短くする必要があり制御手段の処理負荷がさらに増大する。
制御手段の処理時間を吸収するためには、制御手段の処理速度を増加させるか、更には、暗号化圧縮音声データを格納する格納媒体の容量を増大させる必要があり(制御手段が曲切り換え制御処理をするのに1フレーム以上の時間がかかった場合、遅延分の暗号化圧縮音声データを格納媒体に格納して処理の遅れをバッファリングする。この時、格納媒体は、遅延分の暗号化圧縮音声データを全て格納できる容量を有する必要がある。)、省電力と小型化を実現するためには課題があった。
【0015】
例えば格納媒体に、各フレームの開始点を示すフラグと、そのフレームが曲の最後尾のフレームか否かという情報を付加情報として記録する方法もある。しかし、フレームのデータ長が一定でない故に(可変長の圧縮符号化方式)、制御手段は全ての付加情報の記録領域を読み出して、そこがフレームの境目か否かをチェックする必要があった。
本発明は、上記の問題を解決して、制御手段の処理負荷を軽減した安価で小型で省電力の圧縮音声データ記録装置及びその制御方法を提供することを目的とする。
【0016】
【課題を解決するための手段】
上記課題を解決するため、本発明は下記の構成を有する。
請求項1に記載の発明は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で可変長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮手段と、前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化手段と、前記暗号化圧縮音声データを、固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理手段と、前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御手段と、を有することを特徴とする圧縮音声データ記録装置である。
【0017】
請求項2に記載の発明は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で固定長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮手段と、前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化手段と、前記暗号化圧縮音声データを、前記暗号化圧縮音声データ1フレームのデータ長よりも長い固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理手段と、前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御手段と、を有することを特徴とする圧縮音声データ記録装置である。
【0018】
請求項3に記載の発明は、前記圧縮手段又は前記暗号化手段が、前記制御手段から曲切り換え信号を受信した場合に、曲切り換え信号を発生することを特徴とする請求項1または請求項2に記載の圧縮音声データ記録装置である。
【0019】
請求項4に記載の発明は、前記圧縮手段又は前記暗号化手段が、前記制御手段から記録終了信号を受信した場合に、記録終了信号を発生させ、前記格納媒体管理手段は、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて記録終了情報を前記格納媒体内の付加情報格納領域に格納することを特徴とする請求項1から請求項3のいずれかの請求項に記載の圧縮音声データ記録装置である。
【0020】
請求項5に記載の発明は、前記暗号化手段は、同一鍵で暗号化したフレーム数を出力し、前記格納媒体管理手段は、曲切り換えが発生する前記ブロックに対して前記曲切り換え情報に加えて前記暗号化フレーム数を格納することを特徴とする請求項1から請求項4のいずれかの請求項に記載の圧縮音声データ記録装置である。
【0021】
請求項6に記載の発明は、前記曲切り換え情報が、そのブロック内に曲切り換え点があるという情報と、そのブロック内における曲切り換え点の位置情報と、を含むことを特徴とする請求項1から請求項5のいずれかの請求項に記載の圧縮音声データ記録装置である。
【0022】
請求項7に記載の発明は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で可変長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮ステップと、前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化ステップと、前記暗号化圧縮音声データを、固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理ステップと、前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御ステップと、を有することを特徴とする圧縮音声データ記録方法である。
【0023】
請求項8に記載の発明は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で固定長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮ステップと、前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化ステップと、前記暗号化圧縮音声データを、前記暗号化圧縮音声データ1フレームのデータ長よりも長い固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理ステップと、前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御ステップと、を有することを特徴とする圧縮音声データ記録方法である。
【0024】
請求項9に記載の発明は、ユーザが曲切り換え指令を入力した場合に、前記暗号化ステップにおいて暗号鍵を切り換え、前記格納媒体管理ステップにおいて、前記曲切り換え指令に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納することを特徴とする請求項7または請求項8に記載の圧縮音声データ記録方法である。
【0025】
請求項10に記載の発明は、ユーザが記録終了指令を入力した場合に、前記格納媒体管理ステップにおいて、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて記録終了情報を前記格納媒体内の付加情報格納領域に格納することを特徴とする請求項7から請求項9のいずれかの請求項に記載の圧縮音声データ記録方法である。
【0026】
請求項11に記載の発明は、前記暗号化ステップにおいて、同一鍵で暗号化したフレーム数を出力し、前記格納媒体管理ステップにおいて、曲切り換えが発生する前記ブロックに対して前記曲切り換え情報に加えて前記暗号化フレーム数を格納することを特徴とする請求項7から請求項10のいずれかの請求項に記載の圧縮音声データ記録方法である。
【0027】
請求項12に記載の発明は、前記曲切り換え情報が、そのブロック内に曲切り換え点があるという情報と、そのブロック内における曲切り換え点の位置情報と、を含むことを特徴とする請求項7から請求項11のいずれかの請求項に記載の圧縮音声データ記録方法である。
【0028】
本発明は、簡単な構成で、高倍速記録を行う場合でも等速時と同様の処理速度で曲切り換え制御が出来る安価な圧縮音声データ記録装置を実現できるという作用を有する。
【0029】
【発明の実施の形態】
以下、本発明の実施をするための最良の形態を具体的に示した実施例について、図面とともに記載する。
【0030】
《実施例1》
図1〜図4を用いて、本発明の実施例1の圧縮音声データ記録装置及び圧縮音声データ記録方法について説明する。
はじめに、実施例1の圧縮音声データ記録装置の構成について説明する。
図1は本発明の実施例1の圧縮音声データ記録装置の構成を示すブロック図である。図1において、101は圧縮手段、102は暗号化手段、103は格納媒体、104はデータ書き込み手段、105は記録媒体、106は制御手段、107は格納媒体管理手段である。格納媒体103は、データ格納領域111、付加情報格納領域112を有する。実施例1の格納媒体103はRAMであり、記録媒体105はMD(Mini-Disk)である。記録媒体105は、例えば光ディスク又は半導体メモリカードであっても良い。
【0031】
次に、実施例1の圧縮音声データ記録装置のデータの流れについて説明する。圧縮手段101は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、入力された音声データをフレーム単位で可変長の圧縮符号化方式(例えばAAC)で圧縮音声データに変換する。同時に、圧縮手段101は有音判定処理を行い入力音声データが無音から有音に変化する時に曲切り換え信号を圧縮音声データのフレームに同期して発生させる。圧縮音声データ、曲切り換え信号は、暗号化手段102に送られる。
【0032】
暗号化手段102は、圧縮音声データをフレーム単位で暗号化する。ここで、曲切り換え信号を受け取った場合には、暗号化手段102は暗号鍵を切り換る。曲切り換え信号を受け取らない間は、暗号化手段102は前フレームと同一の暗号鍵で圧縮音声データの暗号化を継続する。典型的には、暗号化手段102は、暗号鍵を生成する所定の関数を有し、圧縮手段101からの曲切り換え信号を入力する毎に、現在の暗号鍵をパラメータとして関数に入力し、新たな暗号鍵を発生する。
【0033】
格納媒体管理手段107は、フレーム単位で暗号化された暗号化圧縮音声データを、ブロック単位で格納媒体103内のデータ格納領域111に連続的に格納する。通常、1ブロックは1フレームのデータ長よりも長い固定のデータ長を有する。フレームは可変長であるため、まれに圧縮率が悪く1フレームのデータ長が1ブロックのデータ長よりも長い場合がある。1ブロックのデータ長は、暗号化圧縮音声データの1フレームのデータ長の平均値より長く、好ましくは平均値の2倍以上である。実施例においては平均値の30倍(1秒分のデータ)に設定している。
【0034】
各ブロックは、データ格納領域111と付加情報格納領域112とを有する。各ブロックの付加情報格納領域112は、暗号化圧縮音声データと相互に関連させた曲切り換え情報(曲切り換えフラグ、及びブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長(又はNULLデータ))を記録する。
【0035】
ブロック内に曲切り換え点がある場合、格納媒体管理手段107は、格納媒体103内のブロックの付加情報格納領域112の所定の位置に、“有”(値は1)の曲切り換えフラグと、曲切り換え点データ長(ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長)と、をそれぞれ当該ブロックと関連付けて格納する。
ブロック内に曲切り換え点がない場合、格納媒体管理手段107は、格納媒体103内のブロックの付加情報格納領域112の所定の位置に、“無”(値は0)の曲切り換えフラグと、“NULL”の曲切り換え点データ長と、をそれぞれ当該ブロックと関連付けてに格納する。
【0036】
制御手段106は、データ格納領域111内の暗号化圧縮音声データを記録媒体105の記録単位(クラスタ)毎に連続的にデータ書き込み手段104により記録媒体105に記録する。制御手段106は、各ブロックの付加情報格納領域112に記録された曲切り換えフラグを読み出す。
曲切り換えフラグが“無”(値は0)であれば、制御手段106は、それ以外のデータをチェックすることなく、データ格納領域111内の暗号化圧縮音声データをクラスタ単位で連続的にデータ書き込み手段104を介して記録媒体105に記録する。
【0037】
曲切り換えフラグが“有”(値は1)であれば、制御手段106は、そのブロックの付加情報格納領域112から、ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長を読み出す。制御手段106は、読み出したデータ長に基づいて、曲毎の暗号化圧縮音声データの開始点、及びデータ長を求め(詳細は後述)、記録データ管理情報を作成する。制御手段106は、作成した記録データ管理情報をデータ書き込み手段104を介して記録媒体105に記録する。制御手段106は、データ格納領域111内の暗号化圧縮音声データをクラスタ単位で連続的にデータ書き込み手段104を介して記録媒体105に記録する。
【0038】
次に、実施例1の圧縮音声データ記録装置の記録処理について説明する。
圧縮音声データ記録装置に入力された音声データは、まず圧縮手段101に入力される。圧縮手段101は音声データを圧縮し、圧縮音声データを暗号化手段102に送信する。同時に圧縮手段101は、有音判定処理を行い、入力音声データが無音から有音に変化する場合に曲切り換え信号を暗号化手段102に送信する。
【0039】
図2は本発明の実施例1の圧縮音声データ記録装置の暗号化手段102、格納媒体管理手段107の処理のフローチャートである。ステップ201で暗号化手段102は、圧縮手段101から圧縮音声データ等を受信する。ステップ202で暗号化手段102は、曲切り換え信号を受信したか否かを判断する。
ステップ202で曲切り換え信号を受信した場合は、ステップ203に進み、暗号化手段102は暗号鍵を切り換える。ステップ204で暗号化手段102は、切り換えた暗号鍵で圧縮音声データをフレーム単位で暗号化する。ステップ205で暗号化手段102は、フレーム単位で暗号化圧縮音声データを格納媒体103に送信し、フレーム単位で曲切り換え信号を格納媒体管理手段107に送信する。
【0040】
ステップ202で曲切り換え信号を受信していない場合は、ステップ206に進み、暗号化手段102は前フレームと同一の暗号鍵で暗号化を継続する。ステップ207で暗号化手段102は、フレーム単位で暗号化圧縮音声データを格納媒体103に送信する。
ステップ201〜ステップ207は、暗号化手段102によりフレーム単位で処理を行う。
【0041】
ステップ208で格納媒体管理手段107は、一定のデータ長を有するブロック単位の区切りを設けながら、暗号化圧縮音声データ(フレーム単位)を格納媒体103のデータ格納領域111に格納する。ブロックとブロックとの境目は、データ長が不定であるフレームの境目と通常一致しない。ステップ209で格納媒体管理手段107は、曲切り換え信号を受信したか否かを判断する。
ステップ209で曲切り換え信号を受信した場合は、ステップ210に進む。ステップ210で格納媒体管理手段107は、そのブロックの付加情報格納領域112の曲切り換えフラグを“有”に設定し、曲切り換え点データ長(そのブロック内における曲切り換え点の位置情報であるデータ長)をL(ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長)に設定し、このフローチャートを終了する。
【0042】
ステップ209で曲切り換え信号を受信していない場合は、ステップ211に進み、格納媒体管理手段107はフレームの先頭が新たなブロック内か否かを判断する。フレームの先頭が新たなブロック内の場合は、ステップ212に進む。ステップ212で格納媒体管理手段107は、そのブロックの付加情報格納領域112の曲切り換えフラグを“無”に設定し、曲切り換え点データ長を“NULL”に設定し、このフローチャートを終了する。
ステップ211で、曲切り換え信号を受信しておらず且つフレームの先頭が新たなブロック内でない場合は、このフローチャートを終了する。
ステップ208〜ステップ212は、格納媒体管理手段107によりブロック単位で処理を行う。
【0043】
図3は本発明の実施例1の圧縮音声データ記録装置の制御手段106の処理のフローチャートである。ステップ301で制御手段106は、格納媒体103のブロックの付加情報格納領域112の所定の位置に格納された曲切り換えフラグを読み出す。ステップ302で制御手段106は、曲切り換えフラグが“有”か否かを判断する。
ステップ302で曲切り換えフラグが“有”の場合は、ステップ303に進む。ステップ303で制御手段106は、格納媒体103のブロックの付加情報格納領域112の所定の位置に格納された曲切り換え点データ長(L)を読み出す。ステップ304で制御手段106は、読み出した曲切り換え点データ長(L)により次のクラスタ(記録媒体105に一度に記録可能な単位)内に曲切り換え点が有るか否かを判断する。
【0044】
ステップ304で次のクラスタ内に曲切り換え点がある場合は、ステップ305に進む。ステップ305でデータ書き込み手段104は、曲切り換え点までの暗号化圧縮音声データを格納媒体103から読み出す。データ書き込み手段104は、読み出したデータに“NULL”を付加し1クラスタにし、記録媒体105に書き込む。ステップ306で制御手段106は、読み出した曲切り換え点データ長(L)により曲毎のデータ開始点及びデータ長を算出する(詳細は後述)。制御手段106は、記録データ管理情報を作成し、データ書き込み手段104に書き込む。データ書き込み手段104は、記録データ管理情報を記録媒体105に書き込む。
【0045】
ステップ307でデータ書き込み手段104は、曲切り換え点を起点として1クラスタ分の暗号化圧縮音声データを格納媒体103から読み出し、記録媒体105に書き込む。ステップ309で制御手段106は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ309で現在のブロックの読み出しが終了した場合は、ステップ301に戻り、次のブロックの処理を開始する。ステップ309で現在のブロックの読み出しが終了していない場合は、ステップ304に戻り、次のクラスタの処理を行う。
【0046】
ステップ304で次のクラスタ内に曲切り換え点がない場合は、ステップ308に進む。ステップ308でデータ書き込み手段104は、1クラスタ分の暗号化圧縮音声データを格納媒体103から読み出し、記録媒体105に書き込む。ステップ309で制御手段106は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ309で現在のブロックの読み出しが終了した場合は、ステップ301に戻り、次のブロックの処理を開始する。ステップ309で現在のブロックの読み出しが終了していない場合は、ステップ304に戻り、次のクラスタの処理を行う。
【0047】
ステップ302で曲切り換えフラグが“無”の場合は、ステップ310に進む。ステップ310でデータ書き込み手段104は、1クラスタ分の暗号化圧縮音声データを格納媒体103から読み出し、記録媒体105に書き込む。ステップ311で制御手段106は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ311で現在のブロックの読み出しが終了した場合は、ステップ301に戻り、次のブロックの処理を開始する。ステップ311で現在のブロックの読み出しが終了していない場合は、ステップ310に戻り、次のクラスタの処理を行う。
【0048】
次に、実施例1の圧縮音声データ記録装置の制御手段106が、記録データ管理情報を算出する方法について説明する。
図4は本発明の実施例1の圧縮音声データ記録装置の格納媒体103に格納されているデータを示す概念図(曲切り換えフレーム有り)である。上述のように格納媒体103内のデータ格納領域111には、フレーム単位で圧縮及び暗号化されたデータが連続的に格納される。データは、ブロック(複数フレーム長以上)毎に管理される。1ブロックは固定データ長(L)である。
格納媒体103内の付加情報格納領域112には、暗号化圧縮音声データのブロック毎の所定の位置に曲切り換えフラグ401、曲切り換え点データ長402が格納されている。
【0049】
例えば、ブロック#Q内のフレーム#P及びブロック#Q内のフレーム#Pで曲切り換えが発生した場合、ブロック#Qに関連付けられた“有”の曲切り換えフラグ401と、ブロック#Qの先頭からフレーム#Pの直前までのデータ長(L)である曲切り換え点データ長402と、ブロック#Qに関連付けられた“有”の曲切り換えフラグ401と、ブロック#Qの先頭からフレーム#Pの直前までのデータ長(L)である曲切り換え点データ長402と、が格納される。曲切り換えが発生しない他のブロックに関連付けられた“無”の曲切り換えフラグ401と、“NULL”の曲切り換え点データ長402と、が格納される。
【0050】
よって、制御手段106は、ブロックの付加情報格納領域112内の曲切り換えフラグ401に“有”を検出した場合のみ、記録データ管理情報を作成する。ブロックのデータ長は一定であり、曲切り換えフラグ401、曲切り換え点データ長402が格納されている各ブロック内の場所は一定である。制御手段106は、容易に(曲切り換えフラグ401等のデータがどこに格納されているかを検索することなく)、曲切り換えフラグ401等のデータを読み出すことが出来る。
【0051】
まず、制御手段106は曲毎のデータ開始点及びデータ長を算出する。上記の場合、トラック#Rのデータ長(Y)は下記の計算式(1)で求めることが出来る。
Y=L×(Q−Q−1)+L+L ・・・(1)
次に、制御手段106は曲毎のデータ開始点及びデータ長に基づいて記録データ管理情報を作成する。作成された記録データ管理情報は、データと共に記録媒体105に記録される。
【0052】
本発明の実施例1は、格納媒体内においてブロック(固定データ長)単位でデータを管理する。ブロック内に含まれるフレーム数を記録の倍速比に比例して多く取るようブロック長Lを長くすれば、制御手段が高速記録モードで単位時間当たりに処理するタスクの量は、低速記録モードで単位時間当たりに処理するタスクの量と基本的に変わらない。制御手段は等速時と同様の処理速度で高速記録時の曲切り換え制御が出来る。本発明は、簡単な構成で高速記録時の曲切り換え制御を行う圧縮音声データ記録装置を実現した。
本発明の実施例1は、記録媒体内で、付加情報を全て読み出してチェックし、各フレームの境界を検出し、フレームをカウントする処理及び曲切り換え点を検索する処理を大幅に簡単な処理に置き換えた。本発明の圧縮音声データ記録装置においては、高倍速記録時のフレームカウント等の処理時間を吸収するために記録媒体容量を増加させる必要がない。尚、データ書き込み手段の書き込み速度は、記録の倍速比に比例して高くなる。
【0053】
音声データに含まれる曲毎の著作権保護情報(曲単位でのコピー可又は不可の情報)を検出する機能を持つ本発明の他の実施例の圧縮音声データ記録装置を説明する。この圧縮音声データ記録装置は、実施例1の圧縮音声データ記録装置と類似の構成を有するが、以下の点で異なる。圧縮手段が、音声データの圧縮処理及び曲切り換え信号作成に加え、音声データに含まれる曲毎の著作権保護情報を検出する。暗号化手段が著作権保護情報を格納媒体の付加情報格納領域に格納する。制御手段は、実施例1に記載の方法で曲切り換え点を検出し、各曲の著作権保護情報を読出し、その曲がコピー可であれば、その曲を記録媒体に記録し、コピー不可であれば記録しない。これにより、著作権対応に対応した圧縮音声データ記録装置が実現可能となる。
【0054】
《実施例2》
図5を用いて、本発明の実施例2の圧縮音声データ記憶装置及び圧縮音声データ記録方法について説明する。
実施例1では、圧縮手段101が有音判定処理を行い入力音声データが無音から有音に変化する場合にのみ本発明の曲切り換え処理を行っていた。実施例2では、ユーザが圧縮音声データ記録装置に曲切り換えの指示をした場合にも、本発明の曲切り換え処理を行う。
はじめに、実施例2の圧縮音声データ記録装置の構成について説明する。
図5は本発明の実施例2の圧縮音声データ記録装置の構成を示すブロック図である。実施例1(図1)と異なる点は、ユーザが曲切り換えの指示をした場合に、制御手段506が曲切り換え信号を圧縮手段501に送信することである。それ以外の点については、実施例2の圧縮音声データ記憶装置は実施例1(図1)と同一である。図5において、実施例1(図1)と同様の構成要素には同様の符号を付し、説明を省略する。501は圧縮手段、506は制御手段である。
【0055】
次に、実施例2の圧縮音声データ記録装置のデータの流れについて説明する。ユーザが圧縮音声データ記録装置に曲切り換えの指示を行うと、制御手段506が圧縮手段501に曲切り換え信号を送信する。
圧縮手段501は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、入力された音声データをフレーム単位で可変長の圧縮符号化方式(例えばAAC)で圧縮音声データに変換する。同時に、圧縮手段501は有音判定処理を行い入力音声データが無音から有音に変化する時または曲切り換え信号を受信する時に曲切り換え信号を圧縮音声データのフレームに同期して発生させる。圧縮音声データ、曲切り換え信号は、暗号化手段102に送られる。以下実施例1の圧縮音声データ記録装置と同一の処理を行うためその説明を省略する。
【0056】
本発明は、ユーザが曲切り換えの指示をした場合でも、曲を切り換え、曲毎に記録データ管理情報を生成して記録媒体に記録する圧縮音声データ記録装置を実現する。本発明は、簡単な構成で高速記録時の曲切り換え制御を行う圧縮音声データ記録装置を実現するという実施例1と同様の効果を奏する。
ユーザが曲切り換えの指示をした場合に、制御手段506が曲切り換え信号を暗号化手段102に送信しても良い。
圧縮手段が有音判定機能を有しておらず、ユーザが曲切り換えの指示をした場合に、制御手段506が曲切り換え信号を圧縮手段又は暗号化手段に送信しても良い。
【0057】
以下に説明する本発明の圧縮音声データ記録装置であっても良い。圧縮手段が有音判定処理を行い入力音声データが無音から有音へ変化したことを検出する。圧縮手段は、通常、入力音声データが無音から有音へ変化したことを検出しても、曲切り換え信号を出力しない。暗号手段は暗号鍵を変えない。暗号手段が暗号鍵を変えない間は、制御手段は、複数の曲を含むストリームを1つのファイルとして扱う。ユーザが曲切り換えの指示をした時、圧縮手段は、その後に最初に、入力音声データが無音から有音へ変化したことを検出した時点で、曲切り換え信号を出力する。暗号手段は曲切り換え信号を入力して暗号鍵を変える。格納媒体管理手段は、曲切り換え情報を実施例の方法で格納媒体に格納する。制御手段は、実施例の方法で曲切り換え情報を読み取り、1つの暗号鍵で暗号化されたそこまでのストリーム全体(複数の曲を含んでも良い。)からなるファイルに対して1つの記録データ管理情報を作成し、記録媒体に記録する。圧縮手段が曲切り換え信号を出力した後の入力音声データは、圧縮、暗号化された後、新たなファイルとして記録媒体に記録される。
【0058】
音声データに含まれる曲毎の著作権保護情報(曲単位でのコピー可又は不可の情報)を検出する機能を持つ本発明の他の実施例の圧縮音声データ記録装置を説明する。この圧縮音声データ記録装置は、実施例2の圧縮音声データ記録装置と類似の構成を有するが、以下の点で異なる。圧縮手段が、音声データの圧縮処理及び曲切り換え信号作成に加え、音声データに含まれる曲毎の著作権保護情報を検出する。暗号化手段が著作権保護情報を格納媒体の付加情報格納領域に格納する。制御手段は、実施例2に記載の方法で曲切り換え点を検出し、各曲の著作権保護情報を読出し、その曲がコピー可であれば、その曲を記録媒体に記録し、コピー不可であれば記録しない。これにより、著作権対応に対応した圧縮音声データ記録装置が実現可能となる。
【0059】
《実施例3》
図6〜図9を用いて、本発明の実施例3の圧縮音声データ記憶装置及び圧縮音声データ記録方法について説明する。
実施例2では、曲切り換え処理にのみ対応していた。実施例3では、記録終了処理においても対応する。
はじめに、実施例3の圧縮音声データ記録装置の構成について説明する。
図6は本発明の実施例3の圧縮音声データ記録装置の構成を示すブロック図である。実施例2(図5)と異なる点は、制御手段606が記録終了信号を圧縮手段601に送信すること、及び格納媒体管理手段107がこの時格納媒体603内のブロックの付加情報格納領域612の所定の位置に記録終了情報(記録終了フラグ及び記録終了点データ長を含む。)を格納することである。それ以外の点いついては、実施例2(図5)の圧縮音声データ記憶装置と同一である。図6において、実施例2(図5)と同様の構成要素には同様の符号を付し、説明を省略する。601は圧縮手段、603格納媒体、606は制御手段である。格納媒体603は、データ格納領域611、付加情報格納領域612を有する。
【0060】
次に、実施例3の圧縮音声データ記録装置のデータの流れについて説明する。ユーザが圧縮音声データ記録装置に記録終了の指示を行うと、制御手段606が圧縮手段601に記録終了信号を送信する。
圧縮手段601は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、入力された音声データをフレーム単位で可変長の圧縮符号化方式(例えばAAC)で圧縮音声データに変換する。同時に、圧縮手段601は有音判定処理を行い入力音声データが無音から有音に変化する時に曲切り換え信号を圧縮音声データのフレームに同期して発生させる。記録終了信号を受信する時に記録終了信号を圧縮音声データのフレームに同期して発生させる。圧縮音声データ、曲切り換え信号、記録終了信号は、暗号化手段102に送られる。
【0061】
暗号化手段102は、圧縮音声データをフレーム単位で暗号化する。ここで、曲切り換え信号を受け取った場合には、暗号化手段102は暗号鍵を切り換える。曲切り換え信号を受け取らない間は、暗号化手段102は前フレームと同一の暗号鍵で圧縮音声データの暗号化を継続する。記録終了信号を受け取った場合には、暗号化手段102は暗号化を停止する。
格納媒体管理手段107は、フレーム単位で暗号化された暗号化圧縮音声データを、ブロック単位で格納媒体603内のデータ格納領域611に連続的に格納する。通常、1ブロックは1フレームのデータ長よりも長い固定のデータ長を有する。フレームは可変長であるため、まれに圧縮率が悪く1フレームのデータ長が1ブロックのデータ長よりも長い場合がある。1ブロックのデータ長は、暗号化圧縮音声データの1フレームのデータ長の平均値より長く、好ましくは平均値の2倍以上である。実施例においては平均値の30倍(1秒分のデータ)に設定している。
【0062】
各ブロックは、データ格納領域611と付加情報格納領域612とを有する。各ブロックの付加情報格納領域612は、暗号化圧縮音声データと相互に関連させた曲切り換え情報(曲切り換えフラグ、及びブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長(又はNULLデータ))及び記録終了情報(記録終了フラグ、及びブロック先頭から記録終了点(記録終了フレームの最後尾)までのデータ長(又はNULLデータ))を記録する。
【0063】
ブロック内に曲切り換え点がある場合、格納媒体管理手段107は、格納媒体603内のブロックの付加情報格納領域612の所定の位置に、“有”(値は1)の曲切り換えフラグと、曲切り換え点データ長(ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長)と、“無”(値は0)の記録終了フラグと、“NULL”の記録終了点データ長と、をそれぞれ当該ブロックと関連付けて格納する。
ブロック内に記録終了点がある場合、格納媒体管理手段107は、格納媒体603内のブロックの付加情報格納領域612の所定の位置に、“無”(値は0)の曲切り換えフラグと、“NULL”の曲切り換え点データ長と、“有”(値は1)の記録終了フラグと、記録終了点データ長(当該ブロック先頭から記録終了フレーム最後尾までのデータ長)と、をそれぞれ当該ブロックと関連付けて格納する。
ブロック内に曲切り換え点、記録終了点がない場合、格納媒体管理手段107は、格納媒体603内のブロックの付加情報格納領域612の所定の位置に、“無”(値は0)の曲切り換えフラグと、“NULL”の曲切り換え点データ長と、“無”(値は0)の記録終了フラグと、“NULL”の記録終了点データ長と、をそれぞれ当該ブロックと関連付けて格納する。
【0064】
制御手段606は、データ格納領域611内の暗号化圧縮音声データを記録媒体105の記録単位(クラスタ)毎に連続的にデータ書き込み手段104により記録媒体105に記録する。制御手段606は、各ブロックの付加情報格納領域612に記録された曲切り換えフラグ及び記録終了フラグを読み出す。
曲切り換えフラグが“無”(値は0)及び記録終了フラグ“無”(値は0)であれば、制御手段606は、それ以外のデータをチェックすることなく、データ格納領域611内の暗号化圧縮音声データをクラスタ単位で連続的にデータ書き込み手段104を介して記録媒体105に記録する。
【0065】
曲切り換えフラグが“有”(値は1)であれば、制御手段606は、そのブロックの付加情報格納領域112から、ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長を読み出す。制御手段106は、読み出したデータ長に基づいて、曲毎の暗号化圧縮音声データの開始点、及びデータ長を求め、記録データ管理情報を作成する。制御手段606は、作成した記録データ管理情報をデータ書き込み手段104を介して記録媒体105に記録する。制御手段106は、データ格納領域111内の暗号化圧縮音声データをクラスタ単位で連続的にデータ書き込み手段104を介して記録媒体105に記録する。
記録終了フラグが“有”(値は1)であれば、制御手段606は、そのブロックの付加情報格納領域612から、ブロック先頭から記録終了点(記録終了フレームの最後尾)までのデータ長を読み出す。制御手段106は、読み出したデータ長に基づいて、曲毎の暗号化圧縮音声データ終了点、及びデータ長を求め、記録データ管理情報を作成する。制御手段606は、作成した記録データ管理情報をデータ書き込み手段104を介して記録媒体105に記録する。制御手段606は、暗号化圧縮音声データの記録媒体105への記録を停止する。
【0066】
次に、実施例3の圧縮音声データ記録装置の記録処理について説明する。
圧縮音声データ記録装置に入力された音声データは、まず圧縮手段601に入力される。圧縮手段601は音声データを圧縮し、圧縮音声データを暗号化手段102に送信する。同時に圧縮手段601は、有音判定処理を行い、入力音声データが無音から有音に変化する場合に曲切り換え信号を暗号化手段102に送信する。また、ユーザが圧縮音声データ記録装置に記録終了の指示を与えると、制御手段606は圧縮手段601に記録終了信号を送信する。圧縮手段601は、この記録終了信号を受信した場合に記録終了信号を暗号化手段102に送信する。
【0067】
図7は本発明の実施例3の圧縮音声データ記録装置の暗号化手段102、格納媒体管理手段107の処理のフローチャートである。ステップ701で暗号化手段102は、圧縮手段601から圧縮音声データ等を受信する。ステップ702で暗号化手段102は、記録終了信号を受信したか否かを判断する。
ステップ702で記録終了信号を受信した場合は、ステップ703に進み、暗号化を停止する。ステップ704で暗号化手段102は、フレーム単位で記録終了信号を格納媒体管理手段107に送信する。
【0068】
ステップ702で記録終了信号を受信していない場合は、ステップ705に進み、暗号化手段102は曲切り換え信号を受信したか否かを判断する。
ステップ705で曲切り換え信号を受信した場合は、ステップ706に進み、暗号化手段102は暗号鍵を切り換える。ステップ707で暗号化手段102は、切り換えた暗号鍵で圧縮音声データをフレーム単位で暗号化する。ステップ708で暗号化手段102は、フレーム単位で暗号化圧縮音声データを格納媒体603に送信し、フレーム単位で曲切り換え信号を格納媒体管理手段107に送信する。
ステップ705で曲切り換え信号を受信していない場合は、ステップ709に進み、暗号化手段102は前フレームと同一の暗号鍵で暗号化を継続する。ステップ710で暗号化手段102は、フレーム単位で暗号化圧縮音声データを格納媒体603に送信する。
ステップ701〜ステップ710は、暗号化手段102によりフレーム単位で処理を行う。
【0069】
ステップ711で格納媒体管理手段107は、記録終了信号を受信したか否かを判断する。
ステップ711で記録終了信号を受信した場合は、ステップ712に進む。ステップ712で格納媒体管理手段107は、そのブロックの付加情報格納領域612の曲切り換えフラグを“無”に設定し、曲切り換え点データ長を“NULL”に設定し、記録終了フラグを“有”に設定し、記録終了点データ長をL(ブロック先頭から記録終了点(記録終了フレームの最後尾)までのデータ長)に設定し、このフローチャートを終了する。
【0070】
ステップ711で記録終了信号を受信していない場合は、ステップ713に進む。ステップ713で格納媒体管理手段107は、一定のデータ長を有するブロック単位の区切りを設けながら、暗号化圧縮音声データ(フレーム単位)を格納媒体603のデータ格納領域611に格納する。ブロックとブロックとの境目は、データ長が不定であるフレームの境目と通常一致しない。ステップ714で格納媒体管理手段107は、曲切り換え信号を受信したか否かを判断する。
ステップ714で曲切り換え信号を受信した場合は、ステップ715に進む。ステップ715で格納媒体管理手段107は、そのブロックの付加情報格納領域612の曲切り換えフラグを“有”に設定し、曲切り換え点データ長をL(ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長)に設定し、記録終了フラグを“無”に設定し、記録終了点データ長を“NULL”に設定し、このフローチャートを終了する。
【0071】
ステップ714で曲切り換え信号を受信していない場合は、ステップ716に進み、格納媒体管理手段107はフレームの先頭が新たなブロック内か否かを判断する。フレームの先頭が新たなブロック内の場合は、ステップ717に進む。ステップ717で格納媒体管理手段107は、そのブロックの付加情報格納領域612の曲切り換えフラグを“無”に設定し、曲切り換え点データ長を“NULL”に設定し、記録終了フラグを“無”に設定し、記録終了点データ長を“NULL”に設定し、このフローチャートを終了する。
ステップ716で、フレームの先頭が新たなブロック内でない場合は、このフローチャートを終了する。
ステップ711〜ステップ717は、格納媒体管理手段107によりブロック単位で処理を行う。
【0072】
図8は本発明の実施例3の圧縮音声データ記録装置の制御手段606の処理のフローチャートである。ステップ801で制御手段606は、格納媒体603のブロックの付加情報格納領域612の所定の位置に格納された曲切り換えフラグ及び記録終了フラグを読み出す。ステップ802で制御手段606は、記録終了フラグが“有”か否かを判断する。
ステップ802で記録終了フラグが“有”の場合は、ステップ803に進む。ステップ803で制御手段106は、格納媒体603のブロックの付加情報格納領域612の所定の位置に格納された記録終了点データ長(L)を読み出す。ステップ804で制御手段606は、読み出した記録終了点データ長(L)により次のクラスタ(記録媒体105に一度に記録可能な単位)内に記録終了点が有るか否かを判断する。
【0073】
ステップ804で次のクラスタ内に記録終了点がある場合は、ステップ805に進む。ステップ805でデータ書き込み手段104は、記録終了点までの暗号化圧縮音声データを格納媒体603から読み出す。データ書き込み手段104は、読み出したデータに“NULL”を付加し1クラスタにし、記録媒体105に書き込む。ステップ806で制御手段606は、読み出した記録終了点データ長(L)により曲毎のデータ開始点及びデータ長を算出する。制御手段606は、記録データ管理情報を作成し、データ書き込み手段104に書き込む。データ書き込み手段104は、記録データ管理情報を記録媒体105に書き込む。
ステップ804で次のクラスタ内に記録終了点がない場合は、ステップ807に進む。ステップ807でデータ書き込み手段104は、1クラスタ分の暗号化圧縮音声データを格納媒体603から読み出し、記録媒体105に書き込む。ステップ804に戻り、次のクラスタの処理を行う。
【0074】
ステップ802で記録終了フラグが“無”の場合は、ステップ808に進み、制御手段606は曲切り換えフラグが“有”か否かを判断する。
ステップ808で曲切り換えフラグが“有”の場合は、ステップ809に進む。ステップ809で制御手段606は、格納媒体603のブロックの付加情報格納領域612の所定の位置に格納された曲切り換え点データ長を読み出す。ステップ810で制御手段606は、読み出した曲切り換え点データ長により次のクラスタ(記録媒体105に一度に記録可能な単位)内に曲切り換え点が有るか否かを判断する。
【0075】
ステップ810で次のクラスタ内に曲切り換え点がある場合は、ステップ811に進む。ステップ811でデータ書き込み手段104は、曲切り換え点までの暗号化圧縮音声データを格納媒体603から読み出す。データ書き込み手段104は、読み出したデータに“NULL”を付加し1クラスタにし、記録媒体105に書き込む。ステップ812で制御手段606は、読み出した曲切り換え点データ長により曲毎のデータ開始点及びデータ長を算出する。制御手段606は、記録データ管理情報を作成し、データ書き込み手段104に書き込む。データ書き込み手段104は、記録データ管理情報を記録媒体105に書き込む。
【0076】
ステップ813でデータ書き込み手段104は、曲切り換え点を起点として1クラスタ分の暗号化圧縮音声データを格納媒体603から読み出し、記録媒体105に書き込む。ステップ815で制御手段606は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ815で現在のブロックの読み出しが終了した場合は、ステップ801に戻り、次のブロックの処理を開始する。ステップ815で現在のブロックの読み出しが終了していない場合は、ステップ810に戻り、次のクラスタの処理を行う。
【0077】
ステップ810で次のクラスタ内に曲切り換え点がない場合は、ステップ814に進む。ステップ814でデータ書き込み手段104は、1クラスタ分の暗号化圧縮音声データを格納媒体603から読み出し、記録媒体105に書き込む。ステップ815で制御手段606は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ815で現在のブロックの読み出しが終了した場合は、ステップ801に戻り、次のブロックの処理を開始する。ステップ815で現在のブロックの読み出しが終了していない場合は、ステップ810に戻り、次のクラスタの処理を行う。
【0078】
ステップ808で曲切り換えフラグが“無”の場合は、ステップ816に進む。ステップ816でデータ書き込み手段104は、1クラスタ分の暗号化圧縮音声データを格納媒体603から読み出し、記録媒体105に書き込む。ステップ817で制御手段606は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ817で現在のブロックの読み出しが終了した場合は、ステップ801に戻り、次のブロックの処理を開始する。ステップ817で現在のブロックの読み出しが終了していない場合は、ステップ816に戻り、次のクラスタの処理を行う。
【0079】
次に、実施例3の圧縮音声データ記録装置の制御手段606が、記録データ管理情報を算出する方法について説明する。曲切り換えの場合については、実施例1の圧縮音声データ記録装置と同一の方法で処理を行うため説明を省略する。
図9は本発明の実施例3の圧縮音声データ記録装置の格納媒体603に格納されているデータを示す概念図(記録終了フレーム有り)である。上述のように格納媒体603内のデータ格納領域611には、フレーム単位で圧縮及び暗号化されたデータが連続的に格納される。データは、ブロック(複数フレーム長以上)毎に管理される。1ブロックは固定データ長(L)である。
格納媒体603内の付加情報格納領域612には、暗号化圧縮音声データのブロック毎の所定の位置に曲切り換えフラグ401、曲切り換え点データ長402、記録終了フラグ901、記録終了点データ長902が格納されている。
【0080】
例えば、ブロック#T内のフレーム#S−1で記録終了が発生した場合、ブロック#Tに関連付けられた“無”の曲切り換えフラグ401と、“NULL”の曲切り換え点データ長402と、“有”の記録終了フラグ901と、ブロック#Tの先頭からフレーム#Sの直前までのデータ長(L)である記録終了点データ長902と、が格納される。記録終了が発生しない他のブロックに関連付けられた“無”の曲切り換えフラグ401と、“NULL”の曲切り換え点データ長402と、“無”の記録終了フラグ901と、“NULL”の記録終了点データ長902と、が格納される。
よって、制御手段606は、ブロックの付加情報格納領域612内の曲切り換えフラグ401に“有”を検出し、または記録終了フラグ901に“有”を検出した場合のみ、記録データ管理情報を作成する。
【0081】
本発明の実施例3は、ユーザが記録終了の指示をした場合に、制御手段は、容易に(記録終了フラグ901等のデータがどこに格納されているかを検索することなく)、記録終了フラグ901等のデータを読み出すことが出来る。実施例1と同様にブロック内に含まれるフレーム数を記録の倍速比に比例して多く取るようブロック長Lを長くすれば、制御手段が高速記録モードで単位時間当たりに処理するタスクの量は、低速記録モードで単位時間当たりに処理するタスクの量と基本的に変わらない。制御手段は等速時と同様の処理速度で高速記録時の記録終了制御が出来る。本発明は、簡単な構成で高速記録時の曲切り換え制御を行う圧縮音声データ記録装置を実現した。本発明は、記録媒体内で、付加情報を全て読み出してチェックし、各フレームの境界を検出し、フレームをカウントする処理及び曲切り換え点を検索する処理を大幅に簡単な処理に置き換えた。本発明の圧縮音声データ記録装置においては、高倍速記録時のフレームカウント等の処理時間を吸収するために記録媒体容量を増加させる必要がない。尚、データ書き込み手段の書き込み速度は、記録の倍速比に比例して高くなる。
【0082】
ユーザが記録終了の指示をした場合に、制御手段606が記録終了信号を暗号化手段102に送信しても良い。
以下に説明する本発明の圧縮音声データ記録装置であっても良い。ユーザが記録終了の指示をした時、圧縮手段は、その後に最初に、入力音声データが無音から有音へ変化したことを検出した時点で、記録終了信号を出力する。納媒体管理手段は、記録終了情報(記録終了フラグ901及び記録終了点データ長902を含む。)を実施例の方法で格納媒体に格納する。制御手段は、実施例の方法で記録終了情報を読み取り、記録を終了する。
【0083】
《実施例4》
図10〜図12を用いて、本発明の実施例4の圧縮音声データ記憶装置及び圧縮音声データ記録方法について説明する。
実施例1では、各曲(1つの暗号鍵を用いて暗号化した曲)に含まれるフレーム数をカウントしていなかった。実施例4では、暗号化手段1002が暗号化を行いながら、各曲に含まれるフレーム数をカウントする。
【0084】
はじめに、実施例4の圧縮音声データ記録装置の構成について説明する。
図10は本発明の実施例4の圧縮音声データ記録装置の構成を示すブロック図である。実施例1(図1)と異なる点は、暗号化手段1002が1つの暗号鍵を用いて暗号化したフレーム数をカウントし、格納媒体管理手段107にそのカウント数を送信すること、及び格納媒体管理手段107がそのカウント数を曲切り換え情報と共に格納媒体1003内のブロックの付加情報格納領域1012の所定の位置に格納することである。それ以外の点いついては、実施例1(図1)の圧縮音声データ記憶装置と同一である。図10において、実施例1(図1)と同様の構成要素には同様の符号を付し、説明を省略する。1002は暗号化手段、1003格納媒体、1006は制御手段である。格納媒体1003は、データ格納領域1011、付加情報格納領域1012を有する。
【0085】
次に、実施例4の圧縮音声データ記録装置のデータの流れについて説明する。圧縮手段101は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、入力された音声データをフレーム単位で可変長の圧縮符号化方式(例えばAAC)で圧縮音声データに変換する。同時に、圧縮手段101は有音判定処理を行い入力音声データが無音から有音に変化する時に曲切り換え信号を圧縮音声データのフレームに同期して発生させる。圧縮音声データ、曲切り換え信号は、暗号化手段1002に送られる。
【0086】
暗号化手段1002は、圧縮音声データをフレーム単位で暗号化する。ここで、曲切り換え信号を受け取った場合には、暗号化手段1002は暗号鍵を切り換える。曲切り換え信号を受け取らない間は、暗号化手段1002は前フレームと同一の暗号鍵で圧縮音声データの暗号化を継続する。同時に、暗号化手段1002は1つの暗号鍵を用いた暗号化のフレーム数をカウントする。
格納媒体管理手段107は、フレーム単位で暗号化された暗号化圧縮音声データを、ブロック単位で格納媒体1003内のデータ格納領域1011に連続的に格納する。通常、1ブロックは1フレームのデータ長よりも長い固定のデータ長を有する。フレームは可変長であるため、まれに圧縮率が悪く1フレームのデータ長が1ブロックのデータ長よりも長い場合がある。1ブロックのデータ長は、暗号化圧縮音声データの1フレームのデータ長の平均値より長く、好ましくは平均値の2倍以上である。実施例においては平均値の30倍(1秒分のデータ)に設定している。
【0087】
ブロック内に曲切り換え点がある場合、格納媒体管理手段107は、格納媒体1003内のブロックの付加情報格納領域1012の所定の位置に、“有”(値は1)の曲切り換えフラグと、曲切り換え点データ長(ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長)と、暗号化手段1002でカウントした1つの暗号鍵を用いた暗号化のフレーム数と、をそれぞれ当該ブロックと関連付けて格納する。
ブロック内に曲切り換え点がない場合、格納媒体管理手段107は、格納媒体1003内のブロックの付加情報格納領域1012の所定の位置に、“無”(値は0)の曲切り換えフラグと、“NULL”の曲切り換え点データ長と、“NULL”のフレーム数と、をそれぞれ当該ブロックと関連付けて格納する。
【0088】
制御手段1006は、データ格納領域1011内の暗号化圧縮音声データを記録媒体105の記録単位(クラスタ)毎に連続的にデータ書き込み手段104により記録媒体105に記録する。制御手段1006は、各ブロックの付加情報格納領域1012に記録された曲切り換えフラグを読み出す。
曲切り換えフラグが“無”(値は0)であれば、制御手段606は、それ以外のデータをチェックすることなく、データ格納領域1011内の暗号化圧縮音声データをクラスタ単位で連続的にデータ書き込み手段104を介して記録媒体105に記録する。
【0089】
曲切り換えフラグが“有”(値は1)であれば、制御手段606は、そのブロックの付加情報格納領域1012から、ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長及び1つの暗号鍵を用いて暗号化したフレーム数を読み出す。制御手段1006は、読み出したデータ長及びフレーム数に基づいて、曲毎の暗号化圧縮音声データの開始点、データ長及び再生時間を求め(詳細は後述)、記録データ管理情報を作成する。制御手段1006は、作成した記録データ管理情報をデータ書き込み手段104を介して記録媒体105に記録する。制御手段1006は、データ格納領域1011内の暗号化圧縮音声データをクラスタ単位で連続的にデータ書き込み手段104を介して記録媒体105に記録する。
【0090】
次に、実施例4の圧縮音声データ記録装置の記録処理について説明する。
圧縮音声データ記録装置に入力された音声データは、まず圧縮手段101に入力される。圧縮手段101は音声データを圧縮し、圧縮音声データを暗号化手段1002に送信する。同時に圧縮手段101は、有音判定処理を行い、入力音声データが無音から有音に変化する場合に曲切り換え信号を暗号化手段1002に送信する。
【0091】
図11は本発明の実施例4の圧縮音声データ記録装置の暗号化手段1002、格納媒体管理手段107の処理のフローチャートである。ステップ1101で暗号化手段1002は、圧縮手段101から圧縮音声データ等を受信する。ステップ1102で暗号化手段1002は、曲切り換え信号を受信したか否かを判断する。
ステップ1102で曲切り換え信号を受信した場合は、ステップ1103に進み、暗号化手段1002は暗号鍵を切り換える。ステップ1104で暗号化手段1002は、切り換えた暗号鍵で圧縮音声データをフレーム単位で暗号化する。ステップ1105で暗号化手段1002は、フレーム単位で暗号化圧縮音声データを格納媒体1003に送信し、フレーム単位で曲切り換え信号及びフレーム数を格納媒体管理手段107に送信する。
【0092】
ステップ1102で曲切り換え信号を受信していない場合は、ステップ1106に進み、暗号化手段1002は前フレームと同一の暗号鍵で暗号化を継続する。ステップ1107で暗号化手段1002は、フレーム単位で暗号化圧縮音声データを格納媒体1003に送信する。
ステップ1101〜ステップ1107は、暗号化手段1002によりフレーム単位で処理を行う。
【0093】
ステップ1108で格納媒体管理手段107は、一定のデータ長を有するブロック単位の区切りを設けながら、暗号化圧縮音声データ(フレーム単位)を格納媒体1003のデータ格納領域1011に格納する。ブロックとブロックとの境目は、データ長が不定であるフレームの境目と通常一致しない。ステップ1109で格納媒体管理手段107は、曲切り換え信号を受信したか否かを判断する。ステップ1109で曲切り換え信号を受信した場合は、ステップ1110に進む。ステップ1110で格納媒体管理手段107は、そのブロックの付加情報格納領域1012の曲切り換えフラグを“有”に設定し、曲切り換え点データ長をL(ブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長)に設定し、フレーム数をN(暗号化手段1002でカウントした1つの暗号鍵を用いた暗号化のフレーム数)に設定し、このフローチャートを終了する。
【0094】
ステップ1109で曲切り換え信号を受信していない場合は、ステップ1111に進み、格納媒体管理手段107はフレームの先頭が新たなブロック内か否かを判断する。フレームの先頭が新たなブロック内の場合は、ステップ1112に進む。ステップ1112で格納媒体管理手段107は、そのブロックの付加情報格納領域1012の曲切り換えフラグを“無”に設定し、曲切り換え点データ長を“NULL”に設定し、フレーム数を“NULL”に設定し、このフローチャートを終了する。
ステップ1111でフレームの先頭が新たなブロック内でない場合は、このフローチャートを終了する。
ステップ1108〜ステップ1112は、格納媒体管理手段107によりブロック単位で処理を行う。
【0095】
図12は本発明の実施例4の圧縮音声データ記録装置の制御手段1006の処理のフローチャートである。ステップ1201で制御手段1006は、格納媒体1003の付加情報格納領域1012の所定の位置に格納された曲切り換えフラグを読み出す。ステップ1202で制御手段1006は、曲切り換えフラグが“有”か否かを判断する。
ステップ1202で曲切り換えフラグが“有”の場合は、ステップ1203に進む。ステップ1203で制御手段1006は、格納媒体1003のブロックの付加情報格納領域1012の所定の位置に格納された曲切り換え点データ長(L)及びフレーム数(N)を読み出す。ステップ1204で制御手段1006は、読み出した曲切り換え点データ長(L)により次のクラスタ(記録媒体105に一度に記録可能な単位)内に曲切り換え点が有るか否かを判断する。
【0096】
ステップ1204で次のクラスタ内に曲切り換え点がある場合は、ステップ1205に進む。ステップ1205でデータ書き込み手段104は、曲切り換え点までの暗号化圧縮音声データを格納媒体1003から読み出す。データ書き込み手段104は、読み出したデータに“NULL”を付加し1クラスタにし、記録媒体105に書き込む。ステップ1206で制御手段1006は、読み出した曲切り換え点データ長(L)により曲毎のデータ長を算出し、フレーム数(N)により曲毎の再生時間を算出する(詳細は後述)。制御手段1006は、記録データ管理情報を作成し、データ書き込み手段104をに書き込む。データ書き込み手段104は、記録データ管理情報を記録媒体105に書き込む。
【0097】
ステップ1207でデータ書き込み手段104は、曲切り換え点を起点として1クラスタ分の暗号化圧縮音声データを格納媒体1003から読み出し、記録媒体105に書き込む。ステップ1209で制御手段1006は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ1209で現在のブロックの読み出しが終了した場合は、ステップ1201に戻り、次のブロックの処理を開始する。ステップ1209で現在のブロックの読み出しが終了していない場合は、ステップ1204に戻り、次のクラスタの処理を行う。
【0098】
ステップ1204で次のクラスタ内に曲切り換え点がない場合は、ステップ1208に進む。ステップ1208でデータ書き込み手段104は、1クラスタ分の暗号化圧縮音声データを格納媒体1003から読み出し、記録媒体105に書き込む。ステップ1209で制御手段1006は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ1209で現在のブロックの読み出しが終了した場合は、ステップ1201に戻り、次のブロックの処理を開始する。ステップ1209で現在のブロックの読み出しが終了していない場合は、ステップ1204に戻り、次のクラスタの処理を行う。
【0099】
ステップ1202で曲切り換えフラグが“無”の場合は、ステップ1210に進む。ステップ1210でデータ書き込み手段104は、1クラスタ分の暗号化圧縮音声データを格納媒体1003から読み出し、記録媒体105に書き込む。ステップ1211で制御手段1006は、現在のブロックの読み出しが終了した(読み出し位置が現在のブロックの最後尾に到達したまたは新たなブロックに入った)か否かを判断する。ステップ1211で現在のブロックの読み出しが終了した場合は、ステップ1201に戻り、次のブロックの処理を開始する。ステップ1211で現在のブロックの読み出しが終了していない場合は、ステップ1210に戻り、次のクラスタの処理を行う。
【0100】
次に、実施例4の圧縮音声データ記録装置の制御手段1006が、記録データ管理情報を算出する方法について説明する。
図13は本発明の実施例4の圧縮音声データ記録装置の格納媒体1003に格納されているデータを示す概念図(曲切り換えフレーム有り)である。上述のように格納媒体1003内のデータ格納領域1011には、フレーム単位で圧縮及び暗号化されたデータが連続的に格納される。データは、ブロック(複数フレーム長以上)毎に管理される。1ブロックは固定データ長(L)である。
格納媒体1003内の付加情報格納領域1012には、暗号化圧縮音声データのブロック毎の所定の位置に曲切り換えフラグ401、曲切り換え点データ長402、フレーム数1301が格納されている。
【0101】
例えば、ブロック#Q内のフレーム#P及びブロック#Q内のフレーム#Pで曲切り換えが発生した場合、ブロック#Qに関連付けられた“有”の曲切り換えフラグ401と、ブロック#Qの先頭からフレーム#Pの直前までのデータ長(L)である曲切り換え点データ長402と、トラック#R−1のフレーム数(M)であるフレーム数1301と、ブロック#Qに関連付けられた“有”の曲切り換えフラグ401と、ブロック#Qの先頭からフレーム#Pの直前までのデータ長(L)である曲切り換え点データ長402と、トラック#Rのフレーム数(N)であるフレーム数1301と、が格納される。曲切り換えが発生しない他のブロックに関連付けられた“無”の曲切り換えフラグ401と、“NULL”の曲切り換え点データ長402と、“NULL”のフレーム数1301と、が格納される。
よって、制御手段1006は、付加情報格納領域1012内の曲切り換えフラグ401に“有”を検出した場合のみ、記録データ管理情報を作成する。
【0102】
まず、制御手段1006は曲毎の再生時間を算出する。上記の場合、1フレームが1024個のサンプリングデータで構成されているとすると、トラック#Rの再生時間(H)は下記の計算式(2)で求めることが出来る。ここでFはサンプリング周波数である。
H=1024/F×N ・・・(2)
次に、制御手段1006は曲毎の再生時間に基づいて記録データ管理情報を作成する。作成された記録データ管理情報は、データと共に記録媒体105に記録される。
【0103】
本実施例においては、圧縮手段が有音判定処理を行い入力音声データが無音から有音に変化する場合に暗号化手段に曲切り換え信号を送信していた。これに代えて、圧縮手段が制御手段から曲切り換え信号を受信した場合にも暗号化手段に曲切り換え信号を送信することとしても同様の効果を有する。また、圧縮手段が制御手段から記録終了信号を受信した場合にも暗号化手段に記録終了信号を送信することとしても同様の効果を有する。
【0104】
本発明の実施例4は、格納媒体内に1つの暗号鍵を用いた暗号化のフレーム数を持つことにより、制御手段の記録媒体内でのフレームカウント処理を行うことなく曲単位のフレーム数を認識できる。本発明は、更に実施例1等と同様の効果も奏する。
【0105】
音声データに含まれる曲毎の著作権保護情報(曲単位でのコピー可又は不可の情報)を検出する機能を持つ本発明の他の実施例の圧縮音声データ記録装置を説明する。この圧縮音声データ記録装置は、実施例4の圧縮音声データ記録装置と類似の構成を有するが、以下の点で異なる。圧縮手段が、音声データの圧縮処理、曲切り換え信号作成及びフレーム数のカウントに加え、音声データに含まれる曲毎の著作権保護情報を検出する。暗号化手段が著作権保護情報を格納媒体の付加情報格納領域に格納する。制御手段は、実施例4に記載の方法で曲切り換え点を検出し、各曲の著作権保護情報を読出し、その曲がコピー可であれば、その曲を記録媒体に記録し、コピー不可であれば記録しない。これにより、著作権対応に対応した圧縮音声データ記録装置が実現可能となる。
【0106】
《実施例5》
図1を用いて、本発明の実施例5の圧縮音声データ記憶装置及び圧縮音声データ記録方法について説明する。
実施例1では、圧縮手段が入力された音声データをフレーム単位で可変長圧縮符号化方式で圧縮音声データに変換していた。実施例5では、圧縮手段は入力された音声データをフレーム単位で固定長圧縮符号化方式で圧縮音声データに変換する。
はじめに、実施例5の圧縮音声データ記録装置の構成について説明する。
図1は本発明の実施例5の圧縮音声データ記録装置の構成を示すブロック図である。図1は実施例1と同様であるため説明を省略する。
【0107】
次に、実施例5の圧縮音声データ記録装置のデータの流れについて説明する。圧縮手段101は、複数の曲を切れ目なくつないだ音声データのストリームを入力し、入力された音声データをフレーム単位で固定長の圧縮符号化方式で圧縮音声データに変換する。同時に、圧縮手段101は有音判定処理を行い入力音声データが無音から有音に変化する時に曲切り換え信号を圧縮音声データのフレームに同期して発生させる。圧縮音声データ、曲切り換え信号は、暗号化手段102に送られる。
【0108】
暗号化手段102は、圧縮音声データをフレーム単位で暗号化する。ここで、曲切り換え信号を受け取った場合には、暗号化手段102は暗号鍵を切り換る。曲切り換え信号を受け取らない間は、暗号化手段102は前フレームと同一の暗号鍵で圧縮音声データの暗号化を継続する。典型的には、暗号化手段102は、暗号鍵を生成する所定の関数を有し、圧縮手段101からの曲切り換え信号を入力する毎に、現在の暗号鍵をパラメータとして関数に入力し、新たな暗号鍵を発生する。
【0109】
格納媒体管理手段107は、フレーム単位で暗号化された暗号化圧縮音声データを、ブロック単位で格納媒体103内のデータ格納領域111に連続的に格納する。1ブロックは1フレームのデータ長よりも長い固定のデータ長を有する(フレームは固定長である。)。好ましくは1フレームのデータ長の2倍以上である。実施例においては1フレームのデータ長の30倍(1秒分のデータ)に設定している。以下実施例1と同様であるため説明を省略する。
【0110】
本実施例においては、圧縮手段が有音判定処理を行い入力音声データが無音から有音に変化する場合に暗号化手段に曲切り換え信号を送信していた。これに代えて、圧縮手段が制御手段から曲切り換え信号を受信した場合にも暗号化手段に曲切り換え信号を送信することとしても同様の効果を有する。また、圧縮手段が制御手段から記録終了信号を受信した場合にも暗号化手段に記録終了信号を送信することとしても同様の効果を有する。
本実施例においては、格納媒体内に曲切り換え情報として曲切り換えフラグ及びブロック先頭から曲切り換え点(次の曲の先頭フレームの先頭)までのデータ長(又はNULLデータ)を記録していた。これに加えて、1つの暗号鍵を用いた暗号化のフレーム数を記録することとしても同様の効果を有する。
【0111】
本発明の実施例5は、格納媒体内においてブロック(固定データ長)単位でデータを管理する。ブロック内に含まれるフレーム数を記録の倍速比に比例して多く取るようブロック長L0を長くすれば、制御手段が高速記録モードで単位時間当たりに処理するタスクの量は、低速記録モードで単位時間当たりに処理するタスクの量と基本的に変わらない。制御手段は等速時と同様の処理速度で高速記録時の曲切り換え制御が出来る。本発明は、簡単な構成で高速記録時の曲切り換え制御を行う圧縮音声データ記録装置を実現した。
本発明の実施例5は、記録媒体内で、フレーム単位で付加情報を読み出してチェックし、曲切り換え点を検索する処理を大幅に簡単な処理に置き換えた。本発明の圧縮音声データ記録装置においては、高倍速記録時の曲切り換え点検索の処理時間を吸収するために記録媒体容量を増加させる必要がない。尚、データ書き込み手段の書き込み速度は、記録の倍速比に比例して高くなる。
【0112】
音声データに含まれる曲毎の著作権保護情報(曲単位でのコピー可又は不可の情報)を検出する機能を持つ本発明の他の実施例の圧縮音声データ記録装置を説明する。この圧縮音声データ記録装置は、実施例5の圧縮音声データ記録装置と類似の構成を有するが、以下の点で異なる。圧縮手段が、音声データの圧縮処理及び曲切り換え信号作成に加え、音声データに含まれる曲毎の著作権保護情報を検出する。暗号化手段が著作権保護情報を格納媒体の付加情報格納領域に格納する。制御手段は、実施例5に記載の方法で曲切り換え点を検出し、各曲の著作権保護情報を読出し、その曲がコピー可であれば、その曲を記録媒体に記録し、コピー不可であれば記録しない。これにより、著作権対応に対応した圧縮音声データ記録装置が実現可能となる。
【0113】
記録媒体のクラスタ長は任意である。クラスタ長は、記録媒体の内周から外周まで一定であっても良く、可変であっても良い。又は、記録媒体が複数のゾーンに分かれ、各ゾーン内でクラスタ長が一定で、ゾーン間でクラスタ長が異なっても良い。ブロック長は、クラスタ長と別個独立に決定できる。ブロック長がクラスタ長と同一になっても良い。
【0114】
【発明の効果】
本発明によれば、制御手段の処理を軽減し、簡単な構成で高倍速記録を行う場合でも等速時と同様の処理速度で曲切り換え制御が出来る安価な圧縮音声データ記録装置を実現できるという有利な効果が得られる。
本発明によれば、制御手段の処理を軽減し、高倍速記録時においても等倍速と同様の処理速度で任意のタイミングでの曲切り換え制御が可能になるという効果が得られる。
本発明によれば、制御手段の処理を軽減し、高倍速記録時においても等倍速と同様の処理速度で曲終了制御が可能になるという効果が得られる。
【図面の簡単な説明】
【図1】本発明の実施例1、5の圧縮音声データ記録装置の構成を示すブロック図
【図2】本発明の実施例1の圧縮音声データ記録装置の暗号化手段、格納媒体管理手段の処理のフローチャート
【図3】本発明の実施例1の圧縮音声データ記録装置の制御手段の処理のフローチャート
【図4】本発明の実施例1の圧縮音声データ記録装置の格納媒体に格納されているデータを示す概念図
【図5】本発明の実施例2の圧縮音声データ記録装置の構成を示すブロック図
【図6】本発明の実施例3の圧縮音声データ記録装置の構成を示すブロック図
【図7】本発明の実施例3の圧縮音声データ記録装置の暗号化手段、格納媒体管理手段の処理のフローチャート
【図8】本発明の実施例3の圧縮音声データ記録装置の制御手段の処理のフローチャート
【図9】本発明の実施例3の圧縮音声データ記録装置の格納媒体に格納されているデータを示す概念図
【図10】本発明の実施例4の圧縮音声データ記録装置の構成を示すブロック図
【図11】本発明の実施例4の圧縮音声データ記録装置の暗号化手段、格納媒体管理手段の処理のフローチャート
【図12】本発明の実施例4の圧縮音声データ記録装置の制御手段の処理のフローチャート
【図13】本発明の実施例4の圧縮音声データ記録装置の格納媒体に格納されているデータを示す概念図
【図14】従来例の圧縮音声データ記録装置の構成を示すブロック図
【図15】従来例の圧縮音声データ記録装置の記録処理時の各データのタイミング図
【符号の説明】
101、501、601 圧縮手段
102、1002 暗号化手段
103、603、1003 格納媒体
104 データ書き込み手段
105 記録媒体
106、506、606、1006 制御手段
107 格納媒体管理手段
111、611、1011 付加情報格納領域
112、612、1012 データ格納領域
401 曲切り換えフラグ
402 曲切り換え点データ長
901 記録終了フラグ
902 記録終了点データ長
1301 フレーム数
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a compressed audio data recording device and a compressed audio data recording method.
[0002]
[Prior art]
In recent years, recording apparatuses for encrypted high-compression audio data have become widespread in order to support music distribution over the Internet or the like. In particular, the use of recording devices that support a high-compression audio data compression method called MPEG2_AAC (hereinafter, referred to as “AAC”) is expanding. Since the data length of a frame, which is a recording unit, is not constant even in the same file, the AAC counts the number of frames by some method and determines the data length when calculating the recording data length and the reproduction time in a music unit during recording. I needed to ask. In addition, the encryption process needs to be performed in units of frames and to switch the key used for encryption in units of music. In order to input a stream of audio data in which a plurality of music pieces are connected seamlessly and perform encryption while switching music pieces continuously, a music piece change point is recognized in frame units, and an encryption key is changed at the music change point. Needed.
[0003]
14 and 15, a conventional compressed audio data recording device and a compressed audio data recording method will be described.
First, a configuration of a conventional compressed audio data recording device will be described.
FIG. 14 is a block diagram showing the configuration of a conventional compressed audio data recording device. In FIG. 14, reference numeral 1401 denotes a compression unit, 1402 denotes an encryption unit, 1403 denotes a storage medium, 1404 denotes a data writing unit, 1405 denotes a recording medium, 1406 denotes a control unit, and 1407 denotes a storage medium management unit.
[0004]
Next, the data flow of the conventional compressed audio data recording device will be described.
The compression unit 1401 inputs a stream of audio data in which a plurality of pieces of music are connected seamlessly, and converts the input audio data into compressed audio data in a frame unit using a variable-length compression encoding method (for example, AAC). At the same time, the compression unit 1401 generates a music switching signal in frame units and a frame count from the start of the compression processing. The compressed audio data is supplied to the encryption unit 1402, and the music switching signal and the frame count are supplied to the control unit 1406.
Upon receiving the music switching signal, the control unit 1406 gives an encryption key switching instruction to the encryption unit 1402 at a predetermined timing (for example, the number of frame interruptions from the compression unit 1401). At the same time, the control unit 1406 holds the frame count from the compression unit 1401.
[0005]
The encryption unit 1402 encrypts the compressed audio data from the compression unit 1401 in frame units. At the same time, when a key switching command is given from the control unit 1406, the encryption unit 1402 switches the encryption key in frame units and continues encryption. Typically, the encryption unit 1402 has a predetermined function for generating an encryption key, and each time a key switching command is input from the control unit 1406, the current encryption key is input to the function as a parameter, Generate a new encryption key.
[0006]
The storage medium management unit 1407 continuously stores the encrypted compressed audio data output from the encryption unit 1402 in the storage medium 1403. The control unit 1406 records the encrypted compressed audio data in the storage medium 1403 on the recording medium 1405 by the data writing unit 1404 for each recording unit (cluster) of the recording medium 1405.
The process of writing the encrypted compressed audio data to the storage medium 1403 is performed on a frame basis, and the process of writing the encrypted compressed audio data on the recording medium 1405 is performed on a recording unit (cluster) of the recording medium 1405. The storage medium 1403 plays a role of buffering between compression and encryption processing of input audio data and writing processing to the recording medium 1405, in which processing units are different and synchronization processing is difficult.
[0007]
Since the control unit 1406 does not control the process of writing the encrypted compressed audio data to the storage medium 1403 (the storage medium address management unit 1407 controls the process of writing the encrypted compressed audio data to the storage medium 1403). It does not know where the switching point of the music is located on the storage medium 1403. The control unit 1406 reads the encrypted compressed audio data from the storage medium 1403, counts the number of frames, and detects a switching point of the music. Since the encrypted compressed audio data is compressed by a variable-length compression method, boundaries between frames appear irregularly. The control unit 1406 reads out all of the encrypted compressed audio data, detects a boundary between frames, and counts the number of frames. Specific data (for example, synchronization data) that can be distinguished from normal encrypted compressed audio data is recorded at the frame boundary. The control unit 1406 detects the boundary of the frame one by one by detecting the specific data.
[0008]
The control unit 1406 creates recording data management information including a data length and a reproduction time, with one tune up to the frame that matches the frame count held at the time of encryption key switching. The control unit 1406 records the created recording data management information for each music piece on the recording medium 1405 by the data writing unit 1404. When the encrypted compressed audio data is reproduced from the recording medium 1405, it is necessary to switch the encryption key for each song, so the recording data management information is created for each song.
[0009]
Next, recording processing of the conventional compressed audio data recording apparatus will be described. FIG. 15 shows a timing chart of each data in the conventional compressed audio data recording apparatus at the time of recording processing.
The audio data input to the compressed audio data recording device is first input to the compression means 1401. The compression means 1401 compresses the audio data and transmits the compressed audio data to the encryption means 1402. This transmission is performed intermittently every compression processing time of one frame in frame units. In FIG. 15, the frame counts (# m-3 to # m + 2) are values continuously counted by the compression unit 1401 from the start of the compression processing. At the same time, the compression unit 1401 performs a sound determination process, and transmits a music switching signal and a frame count from the start of the compression process to the control unit 1406, for example, at a point where the input audio data changes from silence to speech. Frame # m-1).
[0010]
Upon input of the music switching signal and the frame count from the start of the compression processing, the control unit 1406 provides an encryption key switching signal to the encryption unit 1402. (Frame # m-1 in FIG. 15)
The encryption means 1402 receives the compressed audio data and the music switching signal from the compression means 1401, and receives the encryption key switching signal from the control means 1406. When receiving the encryption key switching signal, the encryption unit 1402 switches the encryption key. In FIG. 15, an encryption unit 1402 performs encryption from frame #m using another encryption key. In the example of FIG. 15, frame # m-1 is the last frame (frame #n) of track # 1 (song # 1), and frame #m is the first frame (frame # 1) of track # 2 (song # 2). It becomes. The encryption means 1402 stores the encrypted compressed audio data in a storage medium 1403 (for example, RAM). The storage medium management unit 1407 stores, in the storage medium 1403, the encrypted compressed audio data output by the encryption unit 1402 every predetermined time (one frame time of the input audio data).
[0011]
The control means 1406 holds the frame count (frame #m in FIG. 15) as information for detecting a music change point (encryption key change point) every time an encryption change signal is sent to the encryption means 1402. . The control unit 1406 reads the encrypted compressed audio data from the storage medium 1403, counts the number of frames, and detects a switching point of the music. Since the data length of each frame is indefinite, the position of the frame boundary cannot be predicted. The control unit 1406 checks all the encrypted compressed audio data stored in the storage medium 1403, detects a boundary between frames, and counts the number of frames of the encrypted compressed audio data.
[0012]
When the control unit 1406 detects a frame that matches the frame #m, the control unit 1406 recognizes the frame as an encryption key switching frame (the first frame of a song encrypted with a new encryption key), that is, a song switching top frame. The control unit 1406 calculates the data length of the track # 1 (song # 1) by accumulating the frame length from the immediately preceding song switching frame (the first frame after the song switching point) to the frame # m-1. The playback time of track # 1 (song # 1) is calculated from the number of frames, and management information (including information on the data length and playback time of the song) is created.
As described above, the control unit 1406 performs the music switching control within one frame compression processing time and the frame count processing of the encrypted compressed audio data in the storage medium, thereby enabling the continuous recording of the encrypted AAC data. It becomes.
[0013]
[Patent Document 1]
JP-A-8-279976
[0014]
[Problems to be solved by the invention]
However, in the conventional compressed audio data recording apparatus, it is necessary to perform music switching control within one frame compression processing time. In the song switching control, the control unit detects a boundary of a frame, determines whether the frame is the last frame of the song, and if the frame is the last frame, generates recording data management information for each song, It includes a process of recording on a recording medium by the data writing unit. When performing high-speed recording, the compression processing time for one frame becomes shorter in inverse proportion to the recording speed, so that the processing load on the control means increases. In the conventional compressed audio data recording device, the control means counts the number of frames of the encrypted compressed audio data in the storage medium. Therefore, when high-speed recording is performed, the count time must be shortened, and the processing load on the control unit further increases.
In order to absorb the processing time of the control means, it is necessary to increase the processing speed of the control means or further increase the capacity of a storage medium for storing the encrypted compressed audio data (the control means controls the music switching control). If it takes more than one frame to perform the processing, the encrypted compressed audio data corresponding to the delay is stored in the storage medium to buffer the processing delay, and the storage medium encrypts the delay. It is necessary to have a capacity capable of storing all of the compressed audio data.), And there have been problems in realizing power saving and miniaturization.
[0015]
For example, there is a method in which a flag indicating the start point of each frame and information indicating whether or not the frame is the last frame of a music piece are recorded as additional information on a storage medium. However, since the data length of the frame is not constant (variable-length compression encoding method), the control means needs to read the recording area of all the additional information and check whether or not the recording area is the boundary of the frame.
SUMMARY OF THE INVENTION It is an object of the present invention to provide an inexpensive, compact and power-saving compressed audio data recording apparatus which solves the above-mentioned problem and reduces the processing load on the control means, and a control method therefor.
[0016]
[Means for Solving the Problems]
In order to solve the above problems, the present invention has the following configurations.
According to the first aspect of the present invention, a stream of audio data in which a plurality of music pieces are seamlessly connected is input, and the audio data is compressed by a variable length compression encoding method in frame units to output compressed audio data. Compression means for generating a music switching signal based on the stream; encryption for outputting the encrypted voice data by encrypting the compressed audio data on a frame basis, and for switching a key used for encryption based on the music switching signal; Means for storing the encrypted compressed audio data in a data storage area in a storage medium for each block having a fixed data length, and correlating the encrypted compressed audio data for each block with the encrypted compressed audio data. Storage medium management means for storing music switching information generated based on the music switching signal in an additional information storage area in the storage medium Writing the encrypted compressed audio data to a recording medium by data writing means, creating recording data management information based on the music switching information related to the encrypted compressed audio data, and writing the recording data management information to the recording medium by the data writing means. And a control unit.
[0017]
According to a second aspect of the present invention, a stream of audio data in which a plurality of music pieces are seamlessly connected is input, and the audio data is compressed by a fixed length compression encoding method in frame units to output compressed audio data. Compression means for generating a music switching signal based on the stream; encryption for outputting the encrypted voice data by encrypting the compressed audio data on a frame basis, and for switching a key used for encryption based on the music switching signal; Means for storing the encrypted compressed audio data in a data storage area in a storage medium for each block having a fixed data length longer than the data length of one frame of the encrypted compressed audio data, The music switching information generated based on the music switching signal is correlated with the encrypted compressed audio data every time. Storage medium management means for storing the additional data in the additional information storage area in the storage medium; and writing the encrypted compressed audio data to a recording medium by a data writing means, and recording the encrypted compressed audio data based on the music switching information associated with the encrypted compressed audio data. And a control means for creating data management information and writing the data management information on the recording medium by the data writing means.
[0018]
The invention according to claim 3 is characterized in that the compression means or the encryption means generates a music switching signal when receiving a music switching signal from the control means. 2. The compressed audio data recording device according to item 1.
[0019]
According to a fourth aspect of the present invention, when the compression unit or the encryption unit receives a recording end signal from the control unit, the recording unit generates a recording end signal, and the storage medium management unit performs The compression according to any one of claims 1 to 3, wherein recording end information is stored in an additional information storage area in the storage medium in association with the encrypted compressed audio data. An audio data recording device.
[0020]
In the invention described in claim 5, the encryption means outputs the number of frames encrypted with the same key, and the storage medium management means adds the music change information to the block where music change occurs. The compressed audio data recording apparatus according to any one of claims 1 to 4, wherein the number of the encrypted frames is stored by using the number of encrypted frames.
[0021]
The invention according to claim 6 is characterized in that the music switching information includes information that there is a music switching point in the block and position information of the music switching point in the block. A compressed audio data recording device according to any one of claims 1 to 5.
[0022]
According to a seventh aspect of the present invention, a stream of audio data in which a plurality of music pieces are seamlessly connected is input, and the audio data is compressed by a variable length compression encoding method in frame units to output compressed audio data. A compression step of generating a music switching signal based on the stream; encrypting the compressed audio data in frame units to output encrypted compressed audio data; and switching a key used for encryption based on the music switching signal. And storing the encrypted compressed audio data in a data storage area in a storage medium for each block having a fixed data length, and correlating the encrypted compressed audio data for each block with the encrypted compressed audio data. Storage medium for storing music switching information generated based on the music switching signal in an additional information storage area in the storage medium And writing the encrypted compressed audio data to a recording medium by data writing means, and creating recording data management information based on the music switching information related to the encrypted compressed audio data, and writing the recorded data by the data writing means. And a control step of writing to a medium.
[0023]
According to the invention of claim 8, a stream of audio data in which a plurality of music pieces are connected seamlessly is input, and the audio data is compressed by a fixed length compression encoding method in frame units to output compressed audio data. A compression step of generating a music switching signal based on the stream; encrypting the compressed audio data in frame units to output encrypted compressed audio data; and switching a key used for encryption based on the music switching signal. And storing the encrypted compressed audio data in a data storage area in a storage medium for each block having a fixed data length longer than the data length of one frame of the encrypted compressed audio data. The music switching information generated on the basis of the music switching signal in association with the encrypted compressed audio data every time. A storage medium management step of storing the encrypted compressed audio data in the additional information storage area in the storage medium, and writing the encrypted compressed audio data to a recording medium by data writing means, and adding the music switching information related to the encrypted compressed audio data to the storage medium. And a control step of generating recording data management information based on the recording data and writing the recording data on the recording medium by the data writing means.
[0024]
The invention according to claim 9, wherein when a user inputs a music switching command, the encryption key is switched in the encryption step, and the music switching information generated based on the music switching command in the storage medium management step. The compressed audio data recording method according to claim 7 or 8, wherein is stored in an additional information storage area in the storage medium.
[0025]
The invention according to claim 10, wherein when the user inputs a recording end command, in the storage medium management step, the recording end information is correlated with the encrypted compressed audio data for each block in the storage medium. The compressed audio data recording method according to any one of claims 7 to 9, wherein the compressed audio data is stored in an additional information storage area of the compressed audio data.
[0026]
The invention according to claim 11, wherein in the encryption step, the number of frames encrypted with the same key is output, and in the storage medium management step, the block in which music switching occurs is added to the music switching information. The compressed audio data recording method according to any one of claims 7 to 10, wherein the number of encrypted frames is stored in the compressed audio data recording apparatus.
[0027]
According to a twelfth aspect of the present invention, the music switching information includes information indicating that there is a music switching point in the block and position information of the music switching point in the block. To a compressed audio data recording method according to any one of claims 11 to 11.
[0028]
The present invention has the effect of realizing an inexpensive compressed audio data recording device that can control song switching at the same processing speed as at constant speed even with high-speed recording with a simple configuration.
[0029]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment that specifically shows the best mode for carrying out the present invention will be described with reference to the drawings.
[0030]
<< Example 1 >>
First Embodiment A compressed audio data recording device and a compressed audio data recording method according to a first embodiment of the present invention will be described with reference to FIGS.
First, the configuration of the compressed audio data recording device according to the first embodiment will be described.
FIG. 1 is a block diagram illustrating a configuration of a compressed audio data recording device according to a first embodiment of the present invention. In FIG. 1, 101 is a compression unit, 102 is an encryption unit, 103 is a storage medium, 104 is a data writing unit, 105 is a recording medium, 106 is a control unit, and 107 is a storage medium management unit. The storage medium 103 has a data storage area 111 and an additional information storage area 112. The storage medium 103 according to the first embodiment is a RAM, and the recording medium 105 is an MD (Mini-Disk). The recording medium 105 may be, for example, an optical disk or a semiconductor memory card.
[0031]
Next, a data flow of the compressed audio data recording device of the first embodiment will be described. The compression means 101 inputs a stream of audio data in which a plurality of music pieces are seamlessly connected, and converts the input audio data into compressed audio data in a frame-by-frame variable-length compression encoding method (for example, AAC). At the same time, the compression means 101 performs a sound determination process and generates a music switching signal in synchronization with the frame of the compressed sound data when the input sound data changes from silence to sound. The compressed audio data and the music switching signal are sent to the encryption means 102.
[0032]
The encryption means 102 encrypts the compressed audio data in frame units. Here, when the music switching signal is received, the encryption unit 102 switches the encryption key. As long as the music switching signal is not received, the encryption unit 102 continues to encrypt the compressed audio data with the same encryption key as the previous frame. Typically, the encryption means 102 has a predetermined function for generating an encryption key, and each time a music switching signal is input from the compression means 101, the current encryption key is input to the function as a parameter, and Generate a new encryption key.
[0033]
The storage medium management unit 107 continuously stores the encrypted compressed audio data encrypted in units of frames in the data storage area 111 in the storage medium 103 in units of blocks. Usually, one block has a fixed data length longer than the data length of one frame. Since the frame has a variable length, the compression rate is rarely low and the data length of one frame may be longer than the data length of one block. The data length of one block is longer than the average value of the data length of one frame of the encrypted compressed audio data, and is preferably at least twice the average value. In the embodiment, it is set to 30 times the average value (data for one second).
[0034]
Each block has a data storage area 111 and an additional information storage area 112. The additional information storage area 112 of each block stores music switching information (song switching flag and data length from the head of the block to the music switching point (the head of the first frame of the next music) correlated with the encrypted compressed audio data. (Or NULL data)).
[0035]
If there is a song change point in the block, the storage medium management unit 107 sets a song change flag of “Yes” (value is 1) at a predetermined position in the additional information storage area 112 of the block in the storage medium 103, The switching point data length (the data length from the head of the block to the music switching point (the head of the head frame of the next music piece)) is stored in association with the block.
If there is no music change point in the block, the storage medium management means 107 sets a music change flag of “absence” (value is 0) at a predetermined position in the additional information storage area 112 of the block in the storage medium 103, The music switching point data length of “NULL” is stored in association with the corresponding block.
[0036]
The control unit 106 records the encrypted compressed audio data in the data storage area 111 on the recording medium 105 by the data writing unit 104 continuously for each recording unit (cluster) of the recording medium 105. The control means 106 reads the music switching flag recorded in the additional information storage area 112 of each block.
If the song switching flag is “absent” (value is 0), the control means 106 continuously outputs the encrypted compressed voice data in the data storage area 111 in cluster units without checking other data. The information is recorded on the recording medium 105 via the writing means 104.
[0037]
If the song change flag is “present” (value is 1), the control means 106 reads data from the block additional information storage area 112 to the song change point (the start of the first frame of the next song) from the head of the block. Read the length. The control means 106 obtains the start point and the data length of the encrypted compressed audio data for each music piece based on the read data length (details will be described later), and creates recording data management information. The control unit 106 records the created recording data management information on the recording medium 105 via the data writing unit 104. The control means 106 continuously records the encrypted compressed audio data in the data storage area 111 on the recording medium 105 via the data writing means 104 in cluster units.
[0038]
Next, a recording process of the compressed audio data recording device according to the first embodiment will be described.
The audio data input to the compressed audio data recording device is first input to the compression means 101. The compression means 101 compresses the audio data and transmits the compressed audio data to the encryption means 102. At the same time, the compression unit 101 performs a sound determination process, and transmits a music switching signal to the encryption unit 102 when the input audio data changes from silence to speech.
[0039]
FIG. 2 is a flowchart of the processing of the encryption unit 102 and the storage medium management unit 107 of the compressed audio data recording device according to the first embodiment of the present invention. In step 201, the encryption means 102 receives compressed audio data and the like from the compression means 101. In step 202, the encryption means 102 determines whether or not a music switching signal has been received.
If a music switching signal is received in step 202, the process proceeds to step 203, where the encryption unit 102 switches the encryption key. In step 204, the encrypting means 102 encrypts the compressed audio data on a frame basis with the switched encryption key. In step 205, the encryption unit 102 transmits the encrypted compressed audio data to the storage medium 103 in frame units, and transmits a music switching signal to the storage medium management unit 107 in frame units.
[0040]
If the music switching signal has not been received in step 202, the process proceeds to step 206, where the encryption means 102 continues encryption with the same encryption key as the previous frame. In step 207, the encryption unit 102 transmits the encrypted compressed audio data to the storage medium 103 in frame units.
Steps 201 to 207 are performed by the encryption unit 102 in units of frames.
[0041]
In step 208, the storage medium management unit 107 stores the encrypted compressed audio data (in frame units) in the data storage area 111 of the storage medium 103 while providing a block unit having a fixed data length. The boundary between blocks usually does not match the boundary between frames in which the data length is undefined. In step 209, the storage medium management means 107 determines whether or not a music switching signal has been received.
If a music switching signal is received in step 209, the process proceeds to step 210. In step 210, the storage medium management means 107 sets the song switching flag of the block's additional information storage area 112 to "Yes" and sets the song switching point data length (the data length which is the position information of the song switching point in the block). ) Is set to L (the data length from the beginning of the block to the song switching point (the beginning of the beginning frame of the next song)), and this flowchart ends.
[0042]
If it is determined in step 209 that the music switching signal has not been received, the process proceeds to step 211, where the storage medium management unit 107 determines whether the beginning of the frame is within a new block. If the head of the frame is within a new block, the process proceeds to step 212. In step 212, the storage medium management means 107 sets the music switching flag in the additional information storage area 112 of the block to "none", sets the music switching point data length to "NULL", and ends this flowchart.
If it is determined in step 211 that the music switching signal has not been received and the beginning of the frame is not within a new block, the flowchart ends.
Steps 208 to 212 are performed by the storage medium management unit 107 in block units.
[0043]
FIG. 3 is a flowchart of the processing of the control unit 106 of the compressed audio data recording device according to the first embodiment of the present invention. In step 301, the control means 106 reads out the music switching flag stored at a predetermined position in the additional information storage area 112 of the block of the storage medium 103. In step 302, the control means 106 determines whether or not the music switching flag is "present".
If the music switching flag is “present” in step 302, the process proceeds to step 303. In step 303, the control means 106 sets the data length (L) of the music change point stored at a predetermined position in the additional information storage area 112 of the block of the storage medium 103. 2 ) Is read. In step 304, the control means 106 reads out the read music switching point data length (L 2 ) To determine whether or not there is a music switching point in the next cluster (a unit that can be recorded on the recording medium 105 at one time).
[0044]
If there is a music switching point in the next cluster in step 304, the process proceeds to step 305. In step 305, the data writing unit 104 reads the encrypted compressed audio data up to the music switching point from the storage medium 103. The data writing unit 104 adds “NULL” to the read data to form one cluster, and writes the cluster into the recording medium 105. At step 306, the control means 106 reads the read music switching point data length (L 2 ) To calculate a data start point and a data length for each song (details will be described later). The control means 106 creates the recording data management information and writes it in the data writing means 104. The data writing unit 104 writes the recording data management information to the recording medium 105.
[0045]
In step 307, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 103 with the music switching point as a starting point, and writes the data on the recording medium 105. In step 309, the control means 106 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If the reading of the current block is completed in step 309, the process returns to step 301 to start the processing of the next block. If the reading of the current block has not been completed in step 309, the process returns to step 304 to process the next cluster.
[0046]
If there is no music switching point in the next cluster in step 304, the process proceeds to step 308. In step 308, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 103 and writes it on the recording medium 105. In step 309, the control means 106 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If the reading of the current block is completed in step 309, the process returns to step 301 to start the processing of the next block. If the reading of the current block has not been completed in step 309, the process returns to step 304 to process the next cluster.
[0047]
If the song switching flag is “absent” in step 302, the process proceeds to step 310. In step 310, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 103 and writes it on the recording medium 105. In step 311, the control unit 106 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If the reading of the current block is completed in step 311, the process returns to step 301 to start the processing of the next block. If the reading of the current block has not been completed in step 311, the process returns to step 310 and the processing of the next cluster is performed.
[0048]
Next, a method in which the control unit 106 of the compressed audio data recording device of the first embodiment calculates the recording data management information will be described.
FIG. 4 is a conceptual diagram (with a music switching frame) showing data stored in the storage medium 103 of the compressed audio data recording device according to the first embodiment of the present invention. As described above, in the data storage area 111 in the storage medium 103, data compressed and encrypted in frame units is continuously stored. Data is managed for each block (having a length of a plurality of frames or more). One block has a fixed data length (L 0 ).
In the additional information storage area 112 in the storage medium 103, a music switching flag 401 and a music switching point data length 402 are stored at predetermined positions for each block of the encrypted compressed audio data.
[0049]
For example, block #Q 1 Within frame #P 1 And block #Q 2 Within frame #P 2 When the music switching occurs in block #Q 1 , The “existing” music switching flag 401 and the block #Q 1 Frame #P from the beginning of 1 Data length (L 1 ), The music switching point data length 402, and the block #Q 2 , The “existing” music switching flag 401 and the block #Q 2 Frame #P from the beginning of 2 Data length (L 2 ) Is stored. A “Music” music switching flag 401 associated with another block in which music switching does not occur and a “NULL” music switching point data length 402 are stored.
[0050]
Therefore, the control unit 106 creates the recording data management information only when detecting “present” in the music switching flag 401 in the additional information storage area 112 of the block. The data length of the block is constant, and the location in each block where the music switching flag 401 and the music switching point data length 402 are stored is constant. The control means 106 can easily read the data such as the music switching flag 401 (without searching where the data such as the music switching flag 401 is stored).
[0051]
First, the control means 106 calculates a data start point and a data length for each music piece. In the above case, the data length (Y) of the track #R can be obtained by the following equation (1).
Y = L 0 × (Q 2 −Q 1 -1) + L 1 + L 2 ... (1)
Next, the control means 106 creates recording data management information based on the data start point and the data length of each music piece. The created recording data management information is recorded on the recording medium 105 together with the data.
[0052]
The first embodiment of the present invention manages data in blocks (fixed data length) in a storage medium. The block length L is set so that the number of frames included in the block is increased in proportion to the recording speed ratio. 0 Is longer, the amount of tasks processed by the control means per unit time in the high-speed recording mode is basically the same as the amount of tasks processed per unit time in the low-speed recording mode. The control means can control music switching at the time of high-speed recording at the same processing speed as that at the time of constant speed. The present invention has realized a compressed audio data recording apparatus which performs music switching control at the time of high-speed recording with a simple configuration.
In the first embodiment of the present invention, the process of reading out and checking all the additional information in the recording medium, detecting the boundaries of each frame, counting the frames, and searching for the music switching point is greatly simplified. Replaced. In the compressed audio data recording apparatus of the present invention, it is not necessary to increase the capacity of the recording medium in order to absorb the processing time such as the frame count at the time of high-speed recording. Note that the writing speed of the data writing means increases in proportion to the double speed ratio of recording.
[0053]
A compressed audio data recording device according to another embodiment of the present invention, which has a function of detecting copyright protection information for each song included in audio data (information indicating whether or not copying is possible for each song), will be described. This compressed audio data recording device has a configuration similar to that of the compressed audio data recording device of the first embodiment, but differs in the following points. The compression means detects copyright protection information for each music included in the audio data, in addition to the audio data compression processing and the music switching signal generation. The encryption means stores the copyright protection information in the additional information storage area of the storage medium. The control means detects the music switching point by the method described in the first embodiment, reads out the copyright protection information of each music, and if the music is copyable, records the music on a recording medium; If not, do not record. This makes it possible to realize a compressed audio data recording device compatible with copyright.
[0054]
<< Example 2 >>
Second Embodiment A compressed audio data storage device and a compressed audio data recording method according to a second embodiment of the present invention will be described with reference to FIG.
In the first embodiment, the music switching processing of the present invention is performed only when the compression unit 101 performs the sound determination processing and the input audio data changes from silence to sound. In the second embodiment, the music switching process of the present invention is performed even when the user instructs the compressed audio data recording device to switch music.
First, the configuration of the compressed audio data recording device according to the second embodiment will be described.
FIG. 5 is a block diagram showing the configuration of the compressed audio data recording device according to the second embodiment of the present invention. The difference from the first embodiment (FIG. 1) is that the control unit 506 transmits a music switching signal to the compression unit 501 when the user issues a music switching instruction. Otherwise, the compressed audio data storage device of the second embodiment is the same as that of the first embodiment (FIG. 1). In FIG. 5, the same components as those in the first embodiment (FIG. 1) are denoted by the same reference numerals, and description thereof will be omitted. 501 is a compression means, and 506 is a control means.
[0055]
Next, a data flow of the compressed audio data recording device of the second embodiment will be described. When the user instructs the compressed audio data recording device to switch songs, the control unit 506 transmits a song switching signal to the compression unit 501.
The compression means 501 inputs a stream of audio data in which a plurality of music pieces are connected seamlessly, and converts the input audio data into compressed audio data in a frame-wise variable-length compression encoding method (for example, AAC). At the same time, the compression means 501 performs a sound determination process and generates a music switching signal in synchronization with the frame of the compressed audio data when the input audio data changes from silence to voice or when a music switching signal is received. The compressed audio data and the music switching signal are sent to the encryption means 102. Hereinafter, since the same processing as that of the compressed audio data recording apparatus of the first embodiment is performed, description thereof will be omitted.
[0056]
The present invention realizes a compressed audio data recording device that switches songs, generates recording data management information for each song, and records it on a recording medium even when the user gives an instruction to switch songs. The present invention has the same effect as that of the first embodiment, which realizes a compressed audio data recording device that performs music switching control at the time of high-speed recording with a simple configuration.
When the user gives an instruction to switch music, the control unit 506 may transmit a music switching signal to the encryption unit 102.
If the compression means does not have a sound determination function and the user instructs music switching, the control means 506 may transmit a music switching signal to the compression means or the encryption means.
[0057]
The compressed audio data recording device of the present invention described below may be used. The compression means performs a sound determination process and detects that the input voice data has changed from silence to sound. The compression means does not normally output a music switching signal even when detecting that the input audio data has changed from silence to speech. The encryption means does not change the encryption key. While the encryption means does not change the encryption key, the control means treats a stream including a plurality of songs as one file. When the user gives an instruction to switch songs, the compression means outputs a song switching signal when it first detects that the input audio data has changed from silence to sound. The encryption means changes the encryption key by inputting a music switching signal. The storage medium management means stores the music switching information in the storage medium by the method of the embodiment. The control means reads the music switching information by the method of the embodiment, and manages one record data for a file composed of the entire stream (it may include a plurality of music) up to that encrypted by one encryption key. Create information and record it on a recording medium. The input audio data after the compression means outputs the music switching signal is compressed and encrypted, and then recorded on the recording medium as a new file.
[0058]
A compressed audio data recording device according to another embodiment of the present invention, which has a function of detecting copyright protection information for each song included in audio data (information indicating whether or not copying is possible for each song), will be described. This compressed audio data recording device has a configuration similar to that of the compressed audio data recording device of the second embodiment, but differs in the following points. The compression means detects copyright protection information for each music included in the audio data, in addition to the audio data compression processing and the music switching signal generation. The encryption means stores the copyright protection information in the additional information storage area of the storage medium. The control means detects the music switching point by the method described in the second embodiment, reads out the copyright protection information of each music, and if the music is copyable, records the music on a recording medium; If not, do not record. This makes it possible to realize a compressed audio data recording device compatible with copyright.
[0059]
<< Example 3 >>
Third Embodiment A compressed audio data storage device and a compressed audio data recording method according to a third embodiment of the present invention will be described with reference to FIGS.
In the second embodiment, only the music switching process is supported. In the third embodiment, the recording end process is also supported.
First, the configuration of the compressed audio data recording device according to the third embodiment will be described.
FIG. 6 is a block diagram showing the configuration of the compressed audio data recording device according to the third embodiment of the present invention. The difference from the second embodiment (FIG. 5) is that the control unit 606 transmits a recording end signal to the compression unit 601 and that the storage medium management unit 107 uses the additional information storage area 612 of the block in the storage medium 603 at this time. That is, recording end information (including a recording end flag and a recording end point data length) is stored in a predetermined position. The other points are the same as those of the compressed audio data storage device of the second embodiment (FIG. 5). 6, the same components as those of the second embodiment (FIG. 5) are denoted by the same reference numerals, and description thereof will be omitted. 601 is a compression unit, 603 storage medium, and 606 is a control unit. The storage medium 603 has a data storage area 611 and an additional information storage area 612.
[0060]
Next, a data flow of the compressed audio data recording device of the third embodiment will be described. When the user instructs the compressed audio data recording device to end recording, the control unit 606 transmits a recording end signal to the compression unit 601.
The compression means 601 inputs a stream of audio data in which a plurality of music pieces are connected seamlessly, and converts the input audio data into compressed audio data in a frame-by-frame variable-length compression encoding method (for example, AAC). At the same time, the compression means 601 performs a sound determination process and generates a music switching signal in synchronization with the frame of the compressed audio data when the input audio data changes from silence to voice. When the recording end signal is received, the recording end signal is generated in synchronization with the frame of the compressed audio data. The compressed audio data, the music switching signal, and the recording end signal are sent to the encryption unit 102.
[0061]
The encryption means 102 encrypts the compressed audio data in frame units. Here, when the music switching signal is received, the encryption unit 102 switches the encryption key. As long as the music switching signal is not received, the encryption unit 102 continues to encrypt the compressed audio data with the same encryption key as the previous frame. When receiving the recording end signal, the encryption unit 102 stops the encryption.
The storage medium management unit 107 continuously stores the encrypted compressed audio data encrypted in units of frames in the data storage area 611 in the storage medium 603 in units of blocks. Usually, one block has a fixed data length longer than the data length of one frame. Since the frame has a variable length, the compression rate is rarely low and the data length of one frame may be longer than the data length of one block. The data length of one block is longer than the average value of the data length of one frame of the encrypted compressed audio data, and is preferably at least twice the average value. In the embodiment, it is set to 30 times the average value (data for one second).
[0062]
Each block has a data storage area 611 and an additional information storage area 612. The additional information storage area 612 of each block stores song switching information (song switching flag and the data length from the top of the block to the song switching point (the beginning of the first frame of the next song) correlated with the encrypted compressed audio data. (Or NULL data)) and recording end information (recording end flag and data length (or NULL data) from the beginning of the block to the recording end point (end of the recording end frame)).
[0063]
If there is a song change point in the block, the storage medium management unit 107 sets a song change flag of “Yes” (value is 1) at a predetermined position in the additional information storage area 612 of the block in the storage medium 603, Switching point data length (data length from the beginning of the block to the song switching point (the beginning of the first frame of the next song)), a recording end flag of "none" (value is 0), and a recording end point data of "NULL" Is stored in association with the block.
If there is a recording end point in the block, the storage medium management unit 107 sets a “nothing” (value is 0) music switching flag at a predetermined position in the additional information storage area 612 of the block in the storage medium 603, Null "music switching point data length," yes "(value is 1) recording end flag, and recording end point data length (data length from the beginning of the block to the end of the recording end frame) respectively in the block Stored in association with.
If there is no song change point or recording end point in the block, the storage medium management unit 107 switches “none” (value is 0) song change to a predetermined position in the additional information storage area 612 of the block in the storage medium 603. The flag, the music switching point data length of “NULL”, the recording end flag of “none” (value is 0), and the recording end point data length of “NULL” are stored in association with the block.
[0064]
The control unit 606 records the encrypted compressed audio data in the data storage area 611 on the recording medium 105 by the data writing unit 104 continuously for each recording unit (cluster) of the recording medium 105. The control unit 606 reads out the music switching flag and the recording end flag recorded in the additional information storage area 612 of each block.
If the song switching flag is “absent” (value is 0) and the recording end flag is “absent” (value is 0), the control unit 606 checks the encryption in the data storage area 611 without checking other data. The compressed audio data is continuously recorded in the recording medium 105 via the data writing unit 104 in cluster units.
[0065]
If the song switching flag is “present” (value is 1), the control unit 606 sends data from the block additional information storage area 112 to the song switching point (the beginning of the first frame of the next song) from the head of the block. Read the length. The control means 106 obtains the start point and the data length of the encrypted compressed audio data for each music piece based on the read data length, and creates recording data management information. The control unit 606 records the created recording data management information on the recording medium 105 via the data writing unit 104. The control means 106 continuously records the encrypted compressed audio data in the data storage area 111 on the recording medium 105 via the data writing means 104 in cluster units.
If the recording end flag is “present” (the value is 1), the control unit 606 determines the data length from the head of the block to the recording end point (end of the recording end frame) from the additional information storage area 612 of the block. read out. The control means 106 obtains the end point of the encrypted compressed audio data and the data length of each music piece based on the read data length, and creates recording data management information. The control unit 606 records the created recording data management information on the recording medium 105 via the data writing unit 104. The control unit 606 stops recording the encrypted compressed audio data on the recording medium 105.
[0066]
Next, a recording process of the compressed audio data recording device according to the third embodiment will be described.
The audio data input to the compressed audio data recording device is first input to the compression means 601. The compression means 601 compresses the audio data and transmits the compressed audio data to the encryption means 102. At the same time, the compression means 601 performs a sound determination process, and transmits a music switching signal to the encryption means 102 when the input audio data changes from silence to speech. When the user gives an instruction to end recording to the compressed audio data recording device, the control unit 606 transmits a recording end signal to the compression unit 601. When receiving the recording end signal, the compression unit 601 transmits a recording end signal to the encryption unit 102.
[0067]
FIG. 7 is a flowchart of processing of the encryption unit 102 and the storage medium management unit 107 of the compressed audio data recording device according to the third embodiment of the present invention. In step 701, the encryption unit 102 receives the compressed audio data and the like from the compression unit 601. In step 702, the encryption unit 102 determines whether a recording end signal has been received.
If a recording end signal has been received in step 702, the flow advances to step 703 to stop encryption. In step 704, the encryption unit 102 transmits a recording end signal to the storage medium management unit 107 in frame units.
[0068]
If it is determined in step 702 that the recording end signal has not been received, the process proceeds to step 705, and the encryption unit 102 determines whether a music switching signal has been received.
If a music switching signal is received in step 705, the process proceeds to step 706, where the encryption unit 102 switches the encryption key. In step 707, the encryption unit 102 encrypts the compressed audio data in frame units using the switched encryption key. In step 708, the encryption unit 102 transmits the encrypted compressed audio data to the storage medium 603 in frame units, and transmits a music switching signal to the storage medium management unit 107 in frame units.
If it is determined in step 705 that the music switching signal has not been received, the process proceeds to step 709, and the encryption unit 102 continues encryption using the same encryption key as the previous frame. In step 710, the encryption unit 102 transmits the encrypted compressed audio data to the storage medium 603 in frame units.
Steps 701 to 710 are performed by the encryption unit 102 in frame units.
[0069]
In step 711, the storage medium management unit 107 determines whether a recording end signal has been received.
If a recording end signal has been received in step 711, the process proceeds to step 712. In step 712, the storage medium management unit 107 sets the song switching flag in the additional information storage area 612 of the block to “absent”, sets the song switching point data length to “NULL”, and sets the recording end flag to “present”. And set the recording end point data length to L 3 (The data length from the beginning of the block to the recording end point (the end of the recording end frame)), and the flowchart ends.
[0070]
If the recording end signal has not been received in step 711, the process proceeds to step 713. In step 713, the storage medium management unit 107 stores the encrypted compressed audio data (in frame units) in the data storage area 611 of the storage medium 603 while providing a block unit having a fixed data length. The boundary between blocks usually does not match the boundary between frames in which the data length is undefined. In step 714, the storage medium management unit 107 determines whether a music switching signal has been received.
If a music switching signal has been received in step 714, the process proceeds to step 715. In step 715, the storage medium management unit 107 sets the music switching flag in the additional information storage area 612 of the block to “Yes” and sets the music switching point data length to L. 4 (The data length from the beginning of the block to the song change point (the beginning of the first frame of the next song)), the recording end flag is set to “absent”, the data end point data length is set to “NULL”, This flowchart ends.
[0071]
If the music switching signal has not been received in step 714, the process proceeds to step 716, and the storage medium management unit 107 determines whether the beginning of the frame is within a new block. If the head of the frame is within a new block, the process proceeds to step 717. In step 717, the storage medium management unit 107 sets the song switching flag in the additional information storage area 612 of the block to “none”, sets the song switching point data length to “NULL”, and sets the recording end flag to “none”. , And the data length of the recording end point is set to “NULL”, and this flowchart ends.
If the start of the frame is not within a new block in step 716, the flowchart ends.
Steps 711 to 717 are performed by the storage medium management unit 107 in block units.
[0072]
FIG. 8 is a flowchart of the processing of the control unit 606 of the compressed audio data recording device according to the third embodiment of the present invention. In step 801, the control unit 606 reads out the music switching flag and the recording end flag stored at predetermined positions in the additional information storage area 612 of the block of the storage medium 603. In step 802, the control means 606 determines whether or not the recording end flag is "present".
If the recording end flag is “present” in step 802, the process proceeds to step 803. In step 803, the control unit 106 determines the data length (L) of the recording end point stored at a predetermined position in the additional information storage area 612 of the block of the storage medium 603. 3 ) Is read. In step 804, the control unit 606 causes the read recording end point data length (L 3 ), It is determined whether or not there is a recording end point in the next cluster (a unit that can be recorded on the recording medium 105 at one time).
[0073]
If there is a recording end point in the next cluster in step 804, the process proceeds to step 805. In step 805, the data writing unit 104 reads the encrypted compressed audio data up to the recording end point from the storage medium 603. The data writing unit 104 adds “NULL” to the read data to form one cluster, and writes the cluster into the recording medium 105. In step 806, the control unit 606 sets the read recording end point data length (L 3 ) To calculate a data start point and a data length for each music piece. The control unit 606 creates record data management information and writes the record data management information to the data writing unit 104. The data writing unit 104 writes the recording data management information to the recording medium 105.
If there is no recording end point in the next cluster in step 804, the process proceeds to step 807. In step 807, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 603 and writes the data on the recording medium 105. Returning to step 804, processing for the next cluster is performed.
[0074]
If the recording end flag is “absent” in step 802, the process proceeds to step 808, and the control unit 606 determines whether or not the music switching flag is “present”.
If the music switching flag is “present” in step 808, the process proceeds to step 809. In step 809, the control unit 606 reads the music switching point data length stored at a predetermined position in the additional information storage area 612 of the block of the storage medium 603. In step 810, the control unit 606 determines whether or not there is a music switching point in the next cluster (a unit that can be recorded on the recording medium 105 at one time) based on the read music switching point data length.
[0075]
If there is a music switching point in the next cluster in step 810, the process proceeds to step 811. In step 811, the data writing unit 104 reads the encrypted compressed audio data up to the music switching point from the storage medium 603. The data writing unit 104 adds “NULL” to the read data to form one cluster, and writes the cluster into the recording medium 105. In step 812, the control unit 606 calculates a data start point and a data length for each song based on the read song switching point data length. The control unit 606 creates record data management information and writes the record data management information to the data writing unit 104. The data writing unit 104 writes the recording data management information to the recording medium 105.
[0076]
In step 813, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 603 starting from the music switching point, and writes the data on the recording medium 105. In step 815, the control unit 606 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If the reading of the current block has been completed in step 815, the process returns to step 801 to start the processing of the next block. If the reading of the current block has not been completed in step 815, the process returns to step 810 to process the next cluster.
[0077]
If there is no music switching point in the next cluster in step 810, the process proceeds to step 814. In step 814, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 603 and writes it on the recording medium 105. In step 815, the control unit 606 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If the reading of the current block has been completed in step 815, the process returns to step 801 to start the processing of the next block. If the reading of the current block has not been completed in step 815, the process returns to step 810 to process the next cluster.
[0078]
If the song switching flag is “absent” in step 808, the process proceeds to step 816. In step 816, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 603 and writes the data on the recording medium 105. In step 817, the control unit 606 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If the reading of the current block is completed in step 817, the process returns to step 801 to start the processing of the next block. If the reading of the current block has not been completed in step 817, the process returns to step 816 to perform the processing of the next cluster.
[0079]
Next, a method in which the control unit 606 of the compressed audio data recording device according to the third embodiment calculates the recording data management information will be described. In the case of music switching, processing is performed in the same manner as in the compressed audio data recording device of the first embodiment, and a description thereof will be omitted.
FIG. 9 is a conceptual diagram (with a recording end frame) showing data stored in the storage medium 603 of the compressed audio data recording device according to the third embodiment of the present invention. As described above, in the data storage area 611 in the storage medium 603, data compressed and encrypted in units of frames is continuously stored. Data is managed for each block (having a length of a plurality of frames or more). One block has a fixed data length (L 0 ).
In the additional information storage area 612 in the storage medium 603, a song switching flag 401, a song switching point data length 402, a recording end flag 901 and a recording end point data length 902 are stored at predetermined positions for each block of the encrypted compressed audio data. Is stored.
[0080]
For example, when the recording end occurs in the frame # S-1 in the block #T, the music switching flag 401 of “absence” associated with the block #T, the music switching point data length 402 of “NULL”, and “ “Recording end flag 901” and a data length (L from the beginning of block #T to immediately before frame #S). 3 ) Is stored. “Music” music switching flag 401, “NULL” music switching point data length 402, “Null” recording end flag 901, and “NULL” recording end associated with other blocks where recording end does not occur The point data length 902 is stored.
Therefore, the control unit 606 creates the recording data management information only when detecting “present” in the song switching flag 401 in the additional information storage area 612 of the block or detecting “present” in the recording end flag 901. .
[0081]
According to the third embodiment of the present invention, when the user instructs the end of recording, the control unit can easily (without searching where the data such as the recording end flag 901 is stored) the recording end flag 901. Etc. can be read. As in the first embodiment, the block length L is set so that the number of frames included in the block is increased in proportion to the recording speed ratio. 0 Is longer, the amount of tasks processed by the control means per unit time in the high-speed recording mode is basically the same as the amount of tasks processed per unit time in the low-speed recording mode. The control means can perform recording end control at the time of high-speed recording at the same processing speed as at the time of constant velocity. The present invention has realized a compressed audio data recording apparatus which performs music switching control at the time of high-speed recording with a simple configuration. According to the present invention, the process of reading out and checking all the additional information in the recording medium, detecting the boundaries of each frame, counting the frames, and searching for the music switching point has been replaced by a significantly simpler process. In the compressed audio data recording apparatus of the present invention, it is not necessary to increase the capacity of the recording medium in order to absorb the processing time such as the frame count at the time of high-speed recording. Note that the writing speed of the data writing means increases in proportion to the double speed ratio of recording.
[0082]
When the user gives an instruction to end recording, the control unit 606 may transmit a recording end signal to the encryption unit 102.
The compressed audio data recording device of the present invention described below may be used. When the user instructs the end of the recording, the compression means outputs a recording end signal when it first detects that the input audio data has changed from silence to sound. The storage medium management unit stores the recording end information (including the recording end flag 901 and the recording end point data length 902) in the storage medium by the method of the embodiment. The control unit reads the recording end information by the method of the embodiment, and ends the recording.
[0083]
<< Example 4 >>
Fourth Embodiment A compressed audio data storage device and a compressed audio data recording method according to a fourth embodiment of the present invention will be described with reference to FIGS.
In the first embodiment, the number of frames included in each song (tune encrypted using one encryption key) is not counted. In the fourth embodiment, the encryption unit 1002 counts the number of frames included in each music piece while performing encryption.
[0084]
First, the configuration of the compressed audio data recording device according to the fourth embodiment will be described.
FIG. 10 is a block diagram showing the configuration of the compressed audio data recording device according to the fourth embodiment of the present invention. The difference from the first embodiment (FIG. 1) is that the encryption unit 1002 counts the number of frames encrypted using one encryption key, and transmits the counted number to the storage medium management unit 107. The management means 107 stores the count number together with the music switching information at a predetermined position in the additional information storage area 1012 of the block in the storage medium 1003. The other points are the same as those of the compressed audio data storage device of the first embodiment (FIG. 1). 10, the same components as those in the first embodiment (FIG. 1) are denoted by the same reference numerals, and description thereof will be omitted. 1002 is an encryption unit, 1003 storage medium, and 1006 is a control unit. The storage medium 1003 has a data storage area 1011 and an additional information storage area 1012.
[0085]
Next, a data flow of the compressed audio data recording device of the fourth embodiment will be described. The compression means 101 inputs a stream of audio data in which a plurality of music pieces are seamlessly connected, and converts the input audio data into compressed audio data in a frame-by-frame variable-length compression encoding method (for example, AAC). At the same time, the compression means 101 performs a sound determination process and generates a music switching signal in synchronization with the frame of the compressed sound data when the input sound data changes from silence to sound. The compressed audio data and the music switching signal are sent to the encryption unit 1002.
[0086]
The encrypting means 1002 encrypts the compressed audio data on a frame basis. Here, when a music switching signal is received, the encryption unit 1002 switches the encryption key. While not receiving the music switching signal, the encryption means 1002 continues to encrypt the compressed audio data with the same encryption key as the previous frame. At the same time, the encryption unit 1002 counts the number of frames for encryption using one encryption key.
The storage medium management unit 107 continuously stores the encrypted compressed audio data encrypted in units of frames in the data storage area 1011 in the storage medium 1003 in units of blocks. Usually, one block has a fixed data length longer than the data length of one frame. Since the frame has a variable length, the compression rate is rarely low and the data length of one frame may be longer than the data length of one block. The data length of one block is longer than the average value of the data length of one frame of the encrypted compressed audio data, and is preferably at least twice the average value. In the embodiment, it is set to 30 times the average value (data for one second).
[0087]
If there is a music change point in the block, the storage medium management unit 107 sets a music change flag of “Yes” (value is 1) at a predetermined position in the additional information storage area 1012 of the block in the storage medium 1003, The switching point data length (the data length from the beginning of the block to the song switching point (the beginning of the first frame of the next song)) and the number of frames for encryption using one encryption key counted by the encryption means 1002 are represented by: Each is stored in association with the corresponding block.
If there is no music change point in the block, the storage medium management unit 107 sets the music change flag of “absence” (value is 0) at a predetermined position in the additional information storage area 1012 of the block in the storage medium 1003, The music switching point data length of “NULL” and the number of frames of “NULL” are stored in association with the corresponding block.
[0088]
The control unit 1006 continuously records the encrypted compressed audio data in the data storage area 1011 on the recording medium 105 by the data writing unit 104 for each recording unit (cluster) of the recording medium 105. The control means 1006 reads out the music switching flag recorded in the additional information storage area 1012 of each block.
If the song switching flag is “absent” (the value is 0), the control unit 606 continuously converts the encrypted compressed audio data in the data storage area 1011 in cluster units without checking other data. The information is recorded on the recording medium 105 via the writing means 104.
[0089]
If the music switching flag is “present” (value is 1), the control unit 606 reads data from the block additional information storage area 1012 to the music switching point (the head of the next music's head frame) from the head of the block. The length and the number of frames encrypted using one encryption key are read. The control unit 1006 obtains the start point, the data length, and the reproduction time of the encrypted compressed audio data for each song based on the read data length and the number of frames (details will be described later), and creates recording data management information. The control unit 1006 records the created recording data management information on the recording medium 105 via the data writing unit 104. The control unit 1006 continuously records the encrypted compressed audio data in the data storage area 1011 on a recording medium 105 via the data writing unit 104 in cluster units.
[0090]
Next, a recording process of the compressed audio data recording device according to the fourth embodiment will be described.
The audio data input to the compressed audio data recording device is first input to the compression means 101. The compression means 101 compresses the audio data and transmits the compressed audio data to the encryption means 1002. At the same time, the compression unit 101 performs a sound determination process, and transmits a music switching signal to the encryption unit 1002 when the input audio data changes from silence to speech.
[0091]
FIG. 11 is a flowchart of the processing of the encryption unit 1002 and the storage medium management unit 107 of the compressed audio data recording device according to the fourth embodiment of the present invention. In step 1101, the encryption unit 1002 receives compressed audio data and the like from the compression unit 101. In step 1102, the encryption unit 1002 determines whether a music switching signal has been received.
If a music switching signal is received in step 1102, the process proceeds to step 1103, where the encryption unit 1002 switches the encryption key. In step 1104, the encryption unit 1002 encrypts the compressed audio data in frame units using the switched encryption key. In step 1105, the encryption unit 1002 transmits the encrypted compressed audio data to the storage medium 1003 in frame units, and transmits the music switching signal and the number of frames to the storage medium management unit 107 in frame units.
[0092]
If the music switching signal has not been received in step 1102, the process proceeds to step 1106, and the encryption unit 1002 continues encryption using the same encryption key as the previous frame. In step 1107, the encryption unit 1002 transmits the encrypted compressed audio data to the storage medium 1003 in frame units.
Steps 1101 to 1107 are performed by the encryption unit 1002 in units of frames.
[0093]
In step 1108, the storage medium management unit 107 stores the encrypted compressed audio data (in frame units) in the data storage area 1011 of the storage medium 1003 while providing a block unit having a fixed data length. The boundary between blocks usually does not match the boundary between frames in which the data length is undefined. In step 1109, the storage medium management unit 107 determines whether a music switching signal has been received. If a music switching signal has been received in step 1109, the process proceeds to step 1110. In step 1110, the storage medium management unit 107 sets the song switching flag in the additional information storage area 1012 of the block to “Yes” and sets the song switching point data length to L (the song switching point from the beginning of the block (the beginning of the next song). (The data length up to the head of the frame)), the number of frames is set to N (the number of frames for encryption using one encryption key counted by the encryption unit 1002), and this flowchart ends.
[0094]
If the music switching signal has not been received in step 1109, the process proceeds to step 1111 and the storage medium management unit 107 determines whether the beginning of the frame is within a new block. If the beginning of the frame is within a new block, the process proceeds to step 1112. In step 1112, the storage medium management unit 107 sets the song switching flag in the additional information storage area 1012 of the block to "none", sets the song switching point data length to "NULL", and sets the number of frames to "NULL". Is set, and this flowchart ends.
If it is determined in step 1111 that the beginning of the frame is not within a new block, this flowchart ends.
Steps 1108 to 1112 are performed by the storage medium management unit 107 in block units.
[0095]
FIG. 12 is a flowchart of the processing of the control unit 1006 of the compressed audio data recording device according to the fourth embodiment of the present invention. In step 1201, the control unit 1006 reads out the music switching flag stored at a predetermined position in the additional information storage area 1012 of the storage medium 1003. In step 1202, the control means 1006 determines whether or not the music switching flag is "present".
If the music switching flag is “present” in step 1202, the process proceeds to step 1203. In step 1203, the control means 1006 reads out the music switching point data length (L) and the number of frames (N) stored at predetermined positions in the additional information storage area 1012 of the block of the storage medium 1003. In step 1204, the control unit 1006 determines whether or not there is a music switching point in the next cluster (a unit that can be recorded on the recording medium 105 at one time) based on the read music switching point data length (L).
[0096]
If there is a music switching point in the next cluster in step 1204, the process proceeds to step 1205. In step 1205, the data writing unit 104 reads the encrypted compressed audio data up to the music switching point from the storage medium 1003. The data writing unit 104 adds “NULL” to the read data to form one cluster, and writes the cluster into the recording medium 105. In step 1206, the control unit 1006 calculates the data length of each song based on the read song switching point data length (L), and calculates the playback time of each song based on the number of frames (N) (details will be described later). The control unit 1006 creates recording data management information and writes the recording data management information into the data writing unit 104. The data writing unit 104 writes the recording data management information to the recording medium 105.
[0097]
In step 1207, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 1003 starting from the music switching point, and writes the data on the recording medium 105. In step 1209, the control unit 1006 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If reading of the current block is completed in step 1209, the process returns to step 1201 to start processing of the next block. If the reading of the current block has not been completed in step 1209, the process returns to step 1204 to perform the processing of the next cluster.
[0098]
If there is no music switching point in the next cluster in step 1204, the process proceeds to step 1208. In step 1208, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 1003 and writes it on the recording medium 105. In step 1209, the control unit 1006 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If reading of the current block is completed in step 1209, the process returns to step 1201 to start processing of the next block. If the reading of the current block has not been completed in step 1209, the process returns to step 1204 to perform the processing of the next cluster.
[0099]
If the song switching flag is “absent” in step 1202, the process proceeds to step 1210. In step 1210, the data writing unit 104 reads the encrypted compressed audio data for one cluster from the storage medium 1003 and writes the data on the recording medium 105. In step 1211, the control unit 1006 determines whether the reading of the current block has been completed (the reading position has reached the end of the current block or entered a new block). If reading of the current block is completed in step 1211, the process returns to step 1201 to start processing of the next block. If the reading of the current block has not been completed in step 1211, the process returns to step 1210 to perform the processing of the next cluster.
[0100]
Next, a method in which the control unit 1006 of the compressed audio data recording device according to the fourth embodiment calculates the recording data management information will be described.
FIG. 13 is a conceptual diagram (with a music switching frame) showing data stored in the storage medium 1003 of the compressed audio data recording device according to the fourth embodiment of the present invention. As described above, in the data storage area 1011 in the storage medium 1003, data compressed and encrypted in units of frames is continuously stored. Data is managed for each block (having a length of a plurality of frames or more). One block has a fixed data length (L 0 ).
In the additional information storage area 1012 in the storage medium 1003, a music switching flag 401, a music switching point data length 402, and a frame number 1301 are stored at predetermined positions of each block of the encrypted compressed audio data.
[0101]
For example, block #Q 1 Within frame #P 1 And block #Q 2 Within frame #P 2 When the music switching occurs in block #Q 1 , The “existing” music switching flag 401 and the block #Q 1 Frame #P from the beginning of 1 Data length (L 1 ), The number of frames 1301 as the number of frames (M) of the track # R-1, and the block #Q 2 , The “existing” music switching flag 401 and the block #Q 2 Frame #P from the beginning of 2 Data length (L 2 ) Is stored, and the number of frames 1301 as the number of frames (N) of the track #R is stored. A “music change” flag 401 of “absence” associated with another block in which music change does not occur, a music change point data length 402 of “NULL”, and a frame number 1301 of “NULL” are stored.
Therefore, the control unit 1006 creates the recording data management information only when detecting “present” in the music switching flag 401 in the additional information storage area 1012.
[0102]
First, the control unit 1006 calculates a reproduction time for each song. In the above case, assuming that one frame is composed of 1024 sampling data, the reproduction time (H) of the track #R can be obtained by the following formula (2). Here, F is a sampling frequency.
H = 1024 / F × N (2)
Next, the control unit 1006 creates recording data management information based on the reproduction time of each song. The created recording data management information is recorded on the recording medium 105 together with the data.
[0103]
In the present embodiment, the music switching signal is transmitted to the encryption unit when the compression unit performs the sound determination process and the input voice data changes from silence to voice. Alternatively, the same effect can be obtained by transmitting the music switching signal to the encryption means even when the compression means receives the music switching signal from the control means. Also, the same effect can be obtained by transmitting the recording end signal to the encryption unit when the compression unit receives the recording end signal from the control unit.
[0104]
In the fourth embodiment of the present invention, the storage medium has the number of frames to be encrypted using one encryption key, so that the number of frames per music unit can be reduced without performing the frame counting process in the recording medium by the control means. I can recognize. The present invention has the same effects as those of the first embodiment.
[0105]
A compressed audio data recording device according to another embodiment of the present invention, which has a function of detecting copyright protection information for each song included in audio data (information indicating whether or not copying is possible for each song), will be described. This compressed audio data recording device has a configuration similar to that of the compressed audio data recording device of the fourth embodiment, but differs in the following points. The compression means detects the copyright protection information for each music included in the audio data, in addition to the compression processing of the audio data, the generation of the music switching signal, and the counting of the number of frames. The encryption means stores the copyright protection information in the additional information storage area of the storage medium. The control means detects the music switching point by the method described in the fourth embodiment, reads out the copyright protection information of each music, and if the music is copyable, records the music on a recording medium; If not, do not record. This makes it possible to realize a compressed audio data recording device compatible with copyright.
[0106]
<< Example 5 >>
Embodiment 5 A compressed audio data storage device and a compressed audio data recording method according to a fifth embodiment of the present invention will be described with reference to FIG.
In the first embodiment, the compression means converts the input audio data into compressed audio data in a frame unit by the variable length compression encoding method. In the fifth embodiment, the compression unit converts the input audio data into compressed audio data in a fixed-length compression coding system in frame units.
First, the configuration of the compressed audio data recording device according to the fifth embodiment will be described.
FIG. 1 is a block diagram showing a configuration of a compressed audio data recording device according to a fifth embodiment of the present invention. FIG. 1 is the same as the first embodiment, and a description thereof will be omitted.
[0107]
Next, a data flow of the compressed audio data recording device of the fifth embodiment will be described. The compression means 101 inputs a stream of audio data in which a plurality of music pieces are seamlessly connected, and converts the input audio data into compressed audio data by a fixed-length compression encoding method in frame units. At the same time, the compression means 101 performs a sound determination process and generates a music switching signal in synchronization with the frame of the compressed sound data when the input sound data changes from silence to sound. The compressed audio data and the music switching signal are sent to the encryption means 102.
[0108]
The encryption means 102 encrypts the compressed audio data in frame units. Here, when the music switching signal is received, the encryption unit 102 switches the encryption key. As long as the music switching signal is not received, the encryption unit 102 continues to encrypt the compressed audio data with the same encryption key as the previous frame. Typically, the encryption means 102 has a predetermined function for generating an encryption key, and each time a music switching signal is input from the compression means 101, the current encryption key is input to the function as a parameter, and Generate a new encryption key.
[0109]
The storage medium management unit 107 continuously stores the encrypted compressed audio data encrypted in units of frames in the data storage area 111 in the storage medium 103 in units of blocks. One block has a fixed data length longer than the data length of one frame (a frame has a fixed length). It is preferably at least twice the data length of one frame. In the embodiment, it is set to 30 times the data length of one frame (data for one second). Hereinafter, since it is the same as the first embodiment, the description is omitted.
[0110]
In the present embodiment, the music switching signal is transmitted to the encryption unit when the compression unit performs the sound determination process and the input voice data changes from silence to voice. Alternatively, the same effect can be obtained by transmitting the music switching signal to the encryption means even when the compression means receives the music switching signal from the control means. Also, the same effect can be obtained by transmitting the recording end signal to the encryption unit when the compression unit receives the recording end signal from the control unit.
In the present embodiment, the music switching flag and the data length (or NULL data) from the head of the block to the music switching point (the head of the first frame of the next music) are recorded as music switching information in the storage medium. In addition, the same effect can be obtained by recording the number of frames of encryption using one encryption key.
[0111]
The fifth embodiment of the present invention manages data in blocks (fixed data length) in a storage medium. If the block length L0 is increased so that the number of frames included in the block is increased in proportion to the double speed ratio of the recording, the amount of tasks that the control means processes per unit time in the high-speed recording mode becomes smaller in the low-speed recording mode. It is basically the same as the amount of tasks processed per hour. The control means can control music switching at the time of high-speed recording at the same processing speed as that at the time of constant speed. The present invention has realized a compressed audio data recording apparatus which performs music switching control at the time of high-speed recording with a simple configuration.
In the fifth embodiment of the present invention, the process of reading and checking additional information in a recording medium on a frame basis and searching for a music switching point has been replaced with a significantly simpler process. In the compressed audio data recording apparatus according to the present invention, it is not necessary to increase the capacity of the recording medium in order to absorb the processing time of the music switching point search at the time of high-speed recording. Note that the writing speed of the data writing means increases in proportion to the double speed ratio of recording.
[0112]
A compressed audio data recording device according to another embodiment of the present invention, which has a function of detecting copyright protection information for each song included in audio data (information indicating whether or not copying is possible for each song), will be described. This compressed audio data recording device has a similar configuration to the compressed audio data recording device of the fifth embodiment, but differs in the following points. The compression means detects copyright protection information for each music included in the audio data, in addition to the audio data compression processing and the music switching signal generation. The encryption means stores the copyright protection information in the additional information storage area of the storage medium. The control means detects the music switching point by the method described in the fifth embodiment, reads out the copyright protection information of each music, and if the music is copyable, records the music on a recording medium; If not, do not record. This makes it possible to realize a compressed audio data recording device compatible with copyright.
[0113]
The cluster length of the recording medium is arbitrary. The cluster length may be constant from the inner circumference to the outer circumference of the recording medium, or may be variable. Alternatively, the recording medium may be divided into a plurality of zones, the cluster length may be constant in each zone, and the cluster length may be different between zones. The block length can be determined independently of the cluster length. The block length may be the same as the cluster length.
[0114]
【The invention's effect】
According to the present invention, it is possible to reduce the processing of the control means and realize an inexpensive compressed audio data recording device capable of performing music switching control at the same processing speed as at constant speed even when performing high-speed recording with a simple configuration. An advantageous effect is obtained.
According to the present invention, the effect of reducing the processing of the control means and enabling the music switching control at an arbitrary timing at the same processing speed as at the normal speed at the time of high-speed recording can be obtained.
According to the present invention, it is possible to obtain an effect that the processing of the control means is reduced, and the music end control can be performed at the same processing speed as that at the same speed even at the high speed recording.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a compressed audio data recording device according to first and fifth embodiments of the present invention.
FIG. 2 is a flowchart of processing of an encryption unit and a storage medium management unit of the compressed audio data recording device according to the first embodiment of the present invention.
FIG. 3 is a flowchart of processing of a control unit of the compressed audio data recording device according to the first embodiment of the present invention;
FIG. 4 is a conceptual diagram showing data stored in a storage medium of the compressed audio data recording device according to the first embodiment of the present invention.
FIG. 5 is a block diagram illustrating a configuration of a compressed audio data recording device according to a second embodiment of the present invention.
FIG. 6 is a block diagram illustrating a configuration of a compressed audio data recording device according to a third embodiment of the present invention.
FIG. 7 is a flowchart of processing of an encryption unit and a storage medium management unit of the compressed audio data recording device according to the third embodiment of the present invention.
FIG. 8 is a flowchart of a process of a control unit of the compressed audio data recording device according to the third embodiment of the present invention.
FIG. 9 is a conceptual diagram showing data stored in a storage medium of the compressed audio data recording device according to the third embodiment of the present invention.
FIG. 10 is a block diagram illustrating a configuration of a compressed audio data recording device according to a fourth embodiment of the present invention.
FIG. 11 is a flowchart of processing of an encryption unit and a storage medium management unit of the compressed audio data recording device according to the fourth embodiment of the present invention.
FIG. 12 is a flowchart of processing of a control unit of the compressed audio data recording device according to the fourth embodiment of the present invention.
FIG. 13 is a conceptual diagram showing data stored in a storage medium of the compressed audio data recording device according to the fourth embodiment of the present invention.
FIG. 14 is a block diagram showing a configuration of a conventional compressed audio data recording device.
FIG. 15 is a timing chart of each data at the time of recording processing of a conventional compressed audio data recording apparatus.
[Explanation of symbols]
101, 501, 601 Compression means
102, 1002 encryption means
103, 603, 1003 Storage medium
104 Data writing means
105 Recording medium
106, 506, 606, 1006 Control means
107 storage medium management means
111, 611, 1011 Additional information storage area
112, 612, 1012 Data storage area
401 Song switching flag
402 Song switching point data length
901 Recording end flag
902 Recording end point data length
1301 frames

Claims (12)

複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で可変長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮手段と、
前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化手段と、
前記暗号化圧縮音声データを、固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理手段と、
前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御手段と、
を有することを特徴とする圧縮音声データ記録装置。
A stream of audio data in which a plurality of music pieces are connected seamlessly is input, and the audio data is compressed by a variable length compression encoding method in frame units to output compressed audio data, and a music switching signal is generated based on the stream. Compression means that occur;
Encryption means for encrypting the compressed audio data in frame units and outputting encrypted compressed audio data, and switching a key used for encryption based on the music switching signal;
The encrypted compressed audio data is stored in a data storage area in a storage medium for each block having a fixed data length, and the music switching is performed in association with the encrypted compressed audio data for each block. Storage medium management means for storing song switching information generated based on the signal in an additional information storage area in the storage medium;
Control for writing the encrypted compressed audio data to a recording medium by data writing means, creating recording data management information based on the music switching information related to the encrypted compressed audio data, and writing the recording data management information to the recording medium by the data writing means Means,
A compressed audio data recording device comprising:
複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で固定長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮手段と、
前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化手段と、
前記暗号化圧縮音声データを、前記暗号化圧縮音声データ1フレームのデータ長よりも長い固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理手段と、
前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御手段と、
を有することを特徴とする圧縮音声データ記録装置。
A stream of audio data in which a plurality of music pieces are connected seamlessly is input, and the audio data is compressed by a fixed length compression encoding method in frame units to output compressed audio data, and a music switching signal is generated based on the stream. Compression means to be generated;
Encryption means for encrypting the compressed audio data in frame units and outputting encrypted compressed audio data, and switching a key used for encryption based on the music switching signal;
The encrypted compressed audio data is stored in a data storage area in a storage medium for each block having a fixed data length longer than the data length of one frame of the encrypted compressed audio data. Storage medium management means for storing music switching information generated based on the music switching signal in an additional information storage area in the storage medium in association with the compressed audio data;
Control for writing the encrypted compressed audio data to a recording medium by data writing means, creating recording data management information based on the music switching information related to the encrypted compressed audio data, and writing the recording data management information to the recording medium by the data writing means Means,
A compressed audio data recording device comprising:
前記圧縮手段又は前記暗号化手段が、前記制御手段から曲切り換え信号を受信した場合に、曲切り換え信号を発生することを特徴とする請求項1または請求項2に記載の圧縮音声データ記録装置。3. The compressed audio data recording apparatus according to claim 1, wherein the compression unit or the encryption unit generates a music switching signal when receiving a music switching signal from the control unit. 前記圧縮手段又は前記暗号化手段が、前記制御手段から記録終了信号を受信した場合に、記録終了信号を発生させ、
前記格納媒体管理手段は、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて記録終了情報を前記格納媒体内の付加情報格納領域に格納することを特徴とする請求項1から請求項3のいずれかの請求項に記載の圧縮音声データ記録装置。
The compression means or the encryption means, when receiving a recording end signal from the control means, to generate a recording end signal,
2. The storage medium management unit according to claim 1, wherein the storage medium management unit stores recording end information in an additional information storage area in the storage medium in association with the encrypted compressed audio data for each block. The compressed audio data recording device according to claim 3.
前記暗号化手段は、同一鍵で暗号化したフレーム数を出力し、
前記格納媒体管理手段は、曲切り換えが発生する前記ブロックに対して前記曲切り換え情報に加えて前記暗号化フレーム数を格納することを特徴とする請求項1から請求項4のいずれかの請求項に記載の圧縮音声データ記録装置。
The encryption means outputs the number of frames encrypted with the same key,
5. The storage medium management unit according to claim 1, wherein the number of encrypted frames is stored in the block in which music switching occurs, in addition to the music switching information. 6. 3. The compressed audio data recording device according to item 1.
前記曲切り換え情報が、そのブロック内に曲切り換え点があるという情報と、そのブロック内における曲切り換え点の位置情報と、を含むことを特徴とする請求項1から請求項5のいずれかの請求項に記載の圧縮音声データ記録装置。6. The music switching information according to claim 1, wherein the music switching information includes information that there is a music switching point in the block, and position information of the music switching point in the block. Item 7. The compressed audio data recording device according to Item 1. 複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で可変長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮ステップと、
前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化ステップと、
前記暗号化圧縮音声データを、固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理ステップと、
前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御ステップと、
を有することを特徴とする圧縮音声データ記録方法。
A stream of audio data in which a plurality of music pieces are connected seamlessly is input, and the audio data is compressed by a variable length compression encoding method in frame units to output compressed audio data, and a music switching signal is generated based on the stream. The compression steps that occur;
An encryption step of encrypting the compressed audio data in units of frames and outputting encrypted compressed audio data, and switching a key used for encryption based on the music switching signal;
The encrypted compressed audio data is stored in a data storage area in a storage medium for each block having a fixed data length, and the music switching is performed in association with the encrypted compressed audio data for each block. A storage medium management step of storing music switching information generated based on the signal in an additional information storage area in the storage medium;
Control for writing the encrypted compressed audio data to a recording medium by data writing means, creating recording data management information based on the music switching information related to the encrypted compressed audio data, and writing the recording data management information to the recording medium by the data writing means Steps and
A compressed audio data recording method comprising:
複数の曲を切れ目なくつないだ音声データのストリームを入力し、前記音声データをフレーム単位で固定長圧縮符号化方式で圧縮して圧縮音声データを出力すると共に、前記ストリームに基づいて曲切り換え信号を発生する圧縮ステップと、
前記圧縮音声データをフレーム単位で暗号化して暗号化圧縮音声データを出力すると共に、前記曲切り換え信号に基づき暗号化に用いる鍵を切り換える暗号化ステップと、
前記暗号化圧縮音声データを、前記暗号化圧縮音声データ1フレームのデータ長よりも長い固定のデータ長を有するブロック毎に、格納媒体内のデータ格納領域に格納すると共に、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて、前記曲切り換え信号に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納する格納媒体管理ステップと、
前記暗号化圧縮音声データをデータ書き込み手段により記録媒体に書き込むと共に、前記暗号化圧縮音声データに関連した前記曲切り換え情報に基づき記録データ管理情報を作成し前記データ書き込み手段により前記記録媒体に書き込む制御ステップと、
を有することを特徴とする圧縮音声データ記録方法。
A stream of audio data in which a plurality of music pieces are connected seamlessly is input, the audio data is compressed by a fixed-length compression encoding method in frame units, and compressed audio data is output. The compression steps that occur;
An encryption step of encrypting the compressed audio data in units of frames and outputting encrypted compressed audio data, and switching a key used for encryption based on the music switching signal;
The encrypted compressed audio data is stored in a data storage area in a storage medium for each block having a fixed data length longer than the data length of one frame of the encrypted compressed audio data. A storage medium management step of storing music switching information generated based on the music switching signal in an additional information storage area in the storage medium in association with the compressed audio data;
Control for writing the encrypted compressed audio data to a recording medium by data writing means, creating recording data management information based on the music switching information related to the encrypted compressed audio data, and writing the recording data management information to the recording medium by the data writing means Steps and
A compressed audio data recording method comprising:
ユーザが曲切り換え指令を入力した場合に、前記暗号化ステップにおいて暗号鍵を切り換え、前記格納媒体管理ステップにおいて、前記曲切り換え指令に基づいて生成された曲切り換え情報を前記格納媒体内の付加情報格納領域に格納することを特徴とする請求項7または請求項8に記載の圧縮音声データ記録方法。When a user inputs a song switching command, the encryption key is switched in the encryption step, and in the storage medium management step, the song switching information generated based on the song switching command is stored in the additional information in the storage medium. 9. The compressed audio data recording method according to claim 7, wherein the compressed audio data is stored in an area. ユーザが記録終了指令を入力した場合に、前記格納媒体管理ステップにおいて、前記ブロック毎に前記暗号化圧縮音声データと相互に関連させて記録終了情報を前記格納媒体内の付加情報格納領域に格納することを特徴とする請求項7から請求項9のいずれかの請求項に記載の圧縮音声データ記録方法。When a user inputs a recording end command, in the storage medium management step, recording end information is stored in the additional information storage area in the storage medium in association with the encrypted compressed audio data for each block. The compressed audio data recording method according to any one of claims 7 to 9, wherein: 前記暗号化ステップにおいて、同一鍵で暗号化したフレーム数を出力し、
前記格納媒体管理ステップにおいて、曲切り換えが発生する前記ブロックに対して前記曲切り換え情報に加えて前記暗号化フレーム数を格納することを特徴とする請求項7から請求項10のいずれかの請求項に記載の圧縮音声データ記録方法。
In the encryption step, outputting the number of frames encrypted with the same key,
11. The storage medium management step, wherein the number of encrypted frames is stored in addition to the music switching information for the block in which music switching occurs. 3. The compressed audio data recording method according to item 1.
前記曲切り換え情報が、そのブロック内に曲切り換え点があるという情報と、そのブロック内における曲切り換え点の位置情報と、を含むことを特徴とする請求項7から請求項11のいずれかの請求項に記載の圧縮音声データ記録方法。12. The music switching information according to claim 7, wherein the music switching information includes information that a music switching point is present in the block, and positional information of the music switching point in the block. The compressed audio data recording method according to the item.
JP2002367077A 2002-12-18 2002-12-18 Compressed audio data recording apparatus and compressed audio data recording method Expired - Fee Related JP4021756B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002367077A JP4021756B2 (en) 2002-12-18 2002-12-18 Compressed audio data recording apparatus and compressed audio data recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002367077A JP4021756B2 (en) 2002-12-18 2002-12-18 Compressed audio data recording apparatus and compressed audio data recording method

Publications (3)

Publication Number Publication Date
JP2004199785A true JP2004199785A (en) 2004-07-15
JP2004199785A5 JP2004199785A5 (en) 2006-02-09
JP4021756B2 JP4021756B2 (en) 2007-12-12

Family

ID=32764087

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002367077A Expired - Fee Related JP4021756B2 (en) 2002-12-18 2002-12-18 Compressed audio data recording apparatus and compressed audio data recording method

Country Status (1)

Country Link
JP (1) JP4021756B2 (en)

Also Published As

Publication number Publication date
JP4021756B2 (en) 2007-12-12

Similar Documents

Publication Publication Date Title
JP4598627B2 (en) Content editing apparatus and playback apparatus thereof
JP5734835B2 (en) Effective low-power retrieval technology for media data from non-volatile memory
WO2003092167A1 (en) Data processing system, data processing method, data processing device, and data processing program
JP2008268969A (en) Digital data player, and data processing method and recording medium thereof
JP2009026047A (en) Audio processor having clock frequency dynamic automatic control function
JP2008152840A (en) Recording and reproducing device
JP2004093729A (en) Recording device and reproducing device for music data
JP4973422B2 (en) Signal recording / reproducing apparatus and method
JP2004199785A (en) Compressed audio data recording device and compressed audio data recording method
US8891945B2 (en) Recording/reproducing method and recording/reproducing device
JP2005149608A (en) Audio data recording/reproducing system and audio data recording medium therefor
JP2009180972A (en) Audio resume reproduction device and audio resume reproduction method
CN101740075B (en) Audio signal playback apparatus, method, and program
JP2001189659A (en) Device and method for decoding compressed data
JP4765460B2 (en) Speech coding apparatus and speech coding method
KR101619878B1 (en) Apparatus for playing dsd audio file using i2s transmission scheme and method thereof
WO2005117010A1 (en) Recording device and method, recording medium, and program
JP4600023B2 (en) Voice recording / playback apparatus and voice recording / playback method
KR100546578B1 (en) Apparatus For Converting Digital Audio Data Format
JP2000152236A (en) Moving picture coder, multiplexing method, its system and recording and reproducing device
JP4325781B2 (en) Crypto device
JP2003029792A (en) Compressed audio data reproducing device
JP2003173622A (en) Device and method for decoding coded audio data
JP2005228421A (en) Digital information recording/reproducing apparatus
JP2008084382A (en) Method for reproducing compressed data

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050524

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051216

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051216

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20061129

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070823

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070828

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070927

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101005

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111005

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121005

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131005

Year of fee payment: 6

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees