JP2021128184A - Program, information processing method and information processing device - Google Patents

Program, information processing method and information processing device Download PDF

Info

Publication number
JP2021128184A
JP2021128184A JP2020020733A JP2020020733A JP2021128184A JP 2021128184 A JP2021128184 A JP 2021128184A JP 2020020733 A JP2020020733 A JP 2020020733A JP 2020020733 A JP2020020733 A JP 2020020733A JP 2021128184 A JP2021128184 A JP 2021128184A
Authority
JP
Japan
Prior art keywords
sound data
bits
information processing
pcm
bit
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
JP2020020733A
Other languages
Japanese (ja)
Other versions
JP7432386B2 (en
Inventor
雅人 小池
Masahito Koike
雅人 小池
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.)
Koei Tecmo Holdings Co Ltd
Original Assignee
Koei Tecmo Holdings 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 Koei Tecmo Holdings Co Ltd filed Critical Koei Tecmo Holdings Co Ltd
Priority to JP2020020733A priority Critical patent/JP7432386B2/en
Publication of JP2021128184A publication Critical patent/JP2021128184A/en
Application granted granted Critical
Publication of JP7432386B2 publication Critical patent/JP7432386B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

To provide a program capable of compressing a data amount of sound data of pulse code modulation.SOLUTION: A program causes an information processing device to perform processing for converting a bit at a prescribed position in sound data of pulse code modulation into a prescribed value. A generation unit 12 generates sound data of PCM for compression on the basis of sound data of PCM, which is acquired by an acquisition unit 11. The generation unit 12 performs processing for converting the bit at the prescribed position in sound data of pulse code modulation, which is acquired by the acquisition unit 11, into the prescribed value. Thus, the sound data of PCM can be compressed by using a data compression method of ZIP even if the sound data other than PCM cannot be reproduced by restriction of hardware or software in an information terminal 30 for reproducing the sound data, for example.SELECTED DRAWING: Figure 3

Description

本発明は、プログラム、情報処理方法、及び情報処理装置に関する。 The present invention relates to a program, an information processing method, and an information processing device.

従来、音のアナログ信号をデジタル信号に変換する変調方式として、パルス符号変調(PCM、Pulse Code Modulation)が知られている。なお、パルス符号変調は、音の信号を圧縮せずに記録するため、リニアPCM(Linear PCM)等とも称されている。 Conventionally, pulse code modulation (PCM, Pulse Code Modulation) is known as a modulation method for converting an analog signal of sound into a digital signal. Note that pulse code modulation is also called linear PCM (Linear PCM) or the like because it records a sound signal without compressing it.

また、PCMよりも音のデータ量を圧縮(削減)する音声符号化方式として、ADPCM(Adaptive Differential Pulse Code Modulation)、MP3(MPEG-1 Audio Layer-3)、AAC(Advanced Audio Coding)等も知られている。これらの音声符号化方式を用いれば、例えば、PCMを用いる場合と比較して、音データを端末がサーバからダウンロードする際のネットワークの通信量、及び音データを記憶するための記憶容量等を低減できる。 In addition, ADPCM (Adaptive Differential Pulse Code Modulation), MP3 (MPEG-1 Audio Layer-3), AAC (Advanced Audio Coding), etc. are also known as audio coding methods that compress (reduce) the amount of sound data compared to PCM. Has been done. By using these voice coding methods, for example, compared with the case of using PCM, the amount of communication on the network when the terminal downloads the sound data from the server, the storage capacity for storing the sound data, etc. are reduced. can.

特開2009−109674号公報Japanese Unexamined Patent Publication No. 2009-109674

しかしながら、従来技術では、データをダウンロードする際のネットワークの通信量、及びデータを記憶するための記憶容量等の制約により、PCMによる音データを端末に配信できない場合がある。 However, in the prior art, the sound data by PCM may not be delivered to the terminal due to restrictions such as the amount of communication on the network when downloading the data and the storage capacity for storing the data.

また、ADPCM等により圧縮された音データを用いる場合、音データを再生する際、圧縮されているデータを解凍(伸長)する処理が必要である。そのため、機器の演算処理の性能、及び当該機器での他の演算処理の状況(例えば、動画像の再生処理を実行している)等によっては、ADPCM等により圧縮された音データは再生できない場合がある。 Further, when using sound data compressed by ADPCM or the like, when reproducing the sound data, it is necessary to decompress (decompress) the compressed data. Therefore, depending on the performance of the arithmetic processing of the device and the status of other arithmetic processing on the device (for example, the reproduction processing of the moving image is being executed), the sound data compressed by ADPCM or the like cannot be reproduced. There is.

一側面では、パルス符号変調の音データのデータ量を圧縮可能とすることを目的とする。 On one side, it is intended to make it possible to compress the amount of pulse code modulated sound data.

一つの案では、情報処理装置に、パルス符号変調の音データにおける所定位置のビットを所定値に変換する処理を実行させるプログラムを提供する。 One idea is to provide a program that causes an information processing apparatus to execute a process of converting a bit at a predetermined position in sound data of pulse code modulation into a predetermined value.

一側面によれば、パルス符号変調の音データのデータ量を圧縮可能とすることができる。 According to one aspect, the amount of pulse code modulation sound data can be compressed.

実施形態に係る情報処理システムの構成例を示す図である。It is a figure which shows the configuration example of the information processing system which concerns on embodiment. 実施形態に係る情報処理装置のハードウェア構成例を示す図である。It is a figure which shows the hardware configuration example of the information processing apparatus which concerns on embodiment. 実施形態に係る情報処理装置の機能ブロック図である。It is a functional block diagram of the information processing apparatus which concerns on embodiment. 実施形態に係る情報処理装置の処理の一例を示すフローチャートである。It is a flowchart which shows an example of the processing of the information processing apparatus which concerns on embodiment. 実施形態に係る生成部により生成される圧縮用の音データについて説明する図である。It is a figure explaining the sound data for compression generated by the generation part which concerns on embodiment. 実施形態に係る生成部により生成される圧縮用の音データの波形の例について説明する図である。It is a figure explaining the example of the waveform of the sound data for compression generated by the generation part which concerns on embodiment. 実施形態に係る生成部により生成される圧縮用の音データの波形の例について説明する図である。It is a figure explaining the example of the waveform of the sound data for compression generated by the generation part which concerns on embodiment.

以下、図面を参照しながら、本開示の実施形態を説明する。 Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.

<システム構成>
図1は、実施形態に係る情報処理システム1の構成例を示す図である。図1において、情報処理システム1は、情報処理装置10、サーバ装置20、及び情報端末30−1、情報端末30−2、・・・(以下、区別する必要がない場合は、単に「情報端末30」と称する。)を含む。
<System configuration>
FIG. 1 is a diagram showing a configuration example of the information processing system 1 according to the embodiment. In FIG. 1, the information processing system 1 includes an information processing device 10, a server device 20, an information terminal 30-1, an information terminal 30-2, ... 30 ”is included.

情報処理装置10とサーバ装置20は、インターネット、携帯電話網、無線LAN(Local Area Network)等の通信ネットワークによって接続される。また、サーバ装置20と情報端末30も、同様に、通信ネットワークによって接続される。 The information processing device 10 and the server device 20 are connected by a communication network such as the Internet, a mobile telephone network, and a wireless LAN (Local Area Network). Further, the server device 20 and the information terminal 30 are also connected by a communication network in the same manner.

情報処理装置10は、例えば、ゲームを提供する事業者のコンピュータである。情報処理装置10は、ゲームのデータをサーバ装置20にアップロードする。 The information processing device 10 is, for example, a computer of a business operator that provides a game. The information processing device 10 uploads game data to the server device 20.

情報端末30は、例えば、スマートフォン、タブレット型端末、PC(Personal Computer)、ゲーム専用機等の端末である。情報端末30は、ユーザからの指示により、情報処理装置10によりアップロードされたゲームをサーバ装置20からダウンロードする。 The information terminal 30 is, for example, a terminal such as a smartphone, a tablet terminal, a PC (Personal Computer), or a dedicated game machine. The information terminal 30 downloads the game uploaded by the information processing device 10 from the server device 20 according to an instruction from the user.

<ハードウェア構成>
図1は、実施形態に係る情報処理装置10のハードウェア構成例を示す図である。図1に示す情報処理装置10は、それぞれバスBで相互に接続されているドライブ装置100、補助記憶装置102、メモリ装置103、CPU104、及びインタフェース装置105等を有する。
<Hardware configuration>
FIG. 1 is a diagram showing a hardware configuration example of the information processing device 10 according to the embodiment. The information processing device 10 shown in FIG. 1 includes a drive device 100, an auxiliary storage device 102, a memory device 103, a CPU 104, an interface device 105, and the like, which are connected to each other by a bus B, respectively.

情報処理装置10での処理を実現するゲームプログラムは、記録媒体101によって提供される。ゲームプログラムを記録した記録媒体101がドライブ装置100にセットされると、ゲームプログラムが記録媒体101からドライブ装置100を介して補助記憶装置102にインストールされる。但し、ゲームプログラムのインストールは必ずしも記録媒体101より行う必要はなく、ネットワークを介して他のコンピュータよりダウンロードするようにしてもよい。補助記憶装置102は、インストールされたゲームプログラムを格納すると共に、必要なファイルやデータ等を格納する。 The game program that realizes the processing in the information processing device 10 is provided by the recording medium 101. When the recording medium 101 on which the game program is recorded is set in the drive device 100, the game program is installed in the auxiliary storage device 102 from the recording medium 101 via the drive device 100. However, the installation of the game program does not necessarily have to be performed from the recording medium 101, and may be downloaded from another computer via the network. The auxiliary storage device 102 stores the installed game program and also stores necessary files, data, and the like.

メモリ装置103は、例えば、DRAM(Dynamic Random Access Memory)、またはSRAM(Static Random Access Memory)等のメモリであり、プログラムの起動指示があった場合に、補助記憶装置102からプログラムを読み出して格納する。CPU104は、メモリ装置103に格納されたプログラムに従って情報処理装置10に係る機能を実現する。インタフェース装置105は、ネットワークに接続するためのインタフェースとして用いられる。 The memory device 103 is, for example, a memory such as a DRAM (Dynamic Random Access Memory) or a SRAM (Static Random Access Memory), and reads and stores a program from the auxiliary storage device 102 when a program start instruction is given. .. The CPU 104 realizes the function related to the information processing device 10 according to the program stored in the memory device 103. The interface device 105 is used as an interface for connecting to a network.

なお、記録媒体101の一例としては、CD−ROM、DVDディスク、ブルーレイディスク、又はUSBメモリ等の可搬型の記録媒体が挙げられる。また、補助記憶装置102の一例としては、HDD(Hard Disk Drive)、SSD(Solid State Drive)、又はフラッシュメモリ等が挙げられる。記録媒体101及び補助記憶装置102のいずれについても、コンピュータ読み取り可能な記録媒体に相当する。 An example of the recording medium 101 is a portable recording medium such as a CD-ROM, a DVD disc, a Blu-ray disc, or a USB memory. Further, examples of the auxiliary storage device 102 include an HDD (Hard Disk Drive), an SSD (Solid State Drive), a flash memory, and the like. Both the recording medium 101 and the auxiliary storage device 102 correspond to computer-readable recording media.

なお、サーバ装置20、及び情報端末30のハードウェア構成は、情報処理装置10のハードウェア構成と同様でもよい。 The hardware configuration of the server device 20 and the information terminal 30 may be the same as the hardware configuration of the information processing device 10.

<構成>
次に、図3を参照し、情報処理装置10の構成について説明する。図3は、実施形態に係る情報処理装置10の機能ブロック図である。
<Structure>
Next, the configuration of the information processing device 10 will be described with reference to FIG. FIG. 3 is a functional block diagram of the information processing device 10 according to the embodiment.

情報処理装置10は、取得部11、生成部12、圧縮部13、及び出力部14を有する。これら各部は、情報処理装置10にインストールされた1以上のプログラムと、情報処理装置10のCPU104等のハードウェアとの協働により実現されてもよい。 The information processing device 10 includes an acquisition unit 11, a generation unit 12, a compression unit 13, and an output unit 14. Each of these parts may be realized by the cooperation of one or more programs installed in the information processing device 10 and hardware such as the CPU 104 of the information processing device 10.

取得部11は、ゲームの音データを記憶装置から取得する。生成部12は、取得部11により取得された音データに基づいて、圧縮用の音データを生成する。 The acquisition unit 11 acquires the sound data of the game from the storage device. The generation unit 12 generates sound data for compression based on the sound data acquired by the acquisition unit 11.

圧縮部13は、生成部12により生成された音データを圧縮する。出力部14は、圧縮部13により圧縮された音データをサーバ装置20にアップロードする。 The compression unit 13 compresses the sound data generated by the generation unit 12. The output unit 14 uploads the sound data compressed by the compression unit 13 to the server device 20.

<処理>
次に、図4から図6Bを参照して、情報処理装置10の処理について説明する。図4は、実施形態に係る情報処理装置10の処理の一例を示すフローチャートである。図5は、実施形態に係る生成部12により生成される圧縮用の音データについて説明する図である。図6A及び図6Bは、実施形態に係る生成部12により生成される圧縮用の音データの波形の例について説明する図である。
<Processing>
Next, the processing of the information processing apparatus 10 will be described with reference to FIGS. 4 to 6B. FIG. 4 is a flowchart showing an example of processing of the information processing apparatus 10 according to the embodiment. FIG. 5 is a diagram illustrating compression sound data generated by the generation unit 12 according to the embodiment. 6A and 6B are diagrams for explaining an example of a waveform of sound data for compression generated by the generation unit 12 according to the embodiment.

ステップS1において、取得部11は、ゲームのパルス符号変調(PCM、Pulse Code Modulation、リニアPCM、Linear PCM、非圧縮リニアPCM)音データを記憶装置から取得する。当該音データは、例えば、ゲームにおける効果音、及びキャラクタのセリフの音声等でもよい。なお、当該記憶装置は、情報処理装置10に内蔵されている記憶装置でもよいし、情報処理装置10の外部の記憶装置でもよい。 In step S1, the acquisition unit 11 acquires game pulse code modulation (PCM, Pulse Code Modulation, linear PCM, Linear PCM, uncompressed linear PCM) sound data from the storage device. The sound data may be, for example, a sound effect in a game, a voice of a character's dialogue, or the like. The storage device may be a storage device built in the information processing device 10 or an external storage device of the information processing device 10.

続いて、生成部12は、取得部11により取得されたPCMの音データに基づいて、圧縮用のPCMの音データを生成する(ステップS2)。ここで、生成部12は、取得部11により取得された、PCMの音データにおける所定位置のビットを所定値に変換してもよい。これにより、例えば、当該音データを再生する情報端末30におけるハードウェアまたはソフトウェアの制約により、PCM以外の音データを再生できない場合でも、ZIPのデータ圧縮方法等を用いて、PCMの音データを圧縮させることができる。なお、PCMの音データのサンプリング周波数は任意の値でもよい。 Subsequently, the generation unit 12 generates PCM sound data for compression based on the PCM sound data acquired by the acquisition unit 11 (step S2). Here, the generation unit 12 may convert the bit at a predetermined position in the sound data of the PCM acquired by the acquisition unit 11 into a predetermined value. As a result, for example, even if sound data other than PCM cannot be reproduced due to hardware or software restrictions in the information terminal 30 that reproduces the sound data, the sound data of PCM is compressed by using a ZIP data compression method or the like. Can be made to. The sampling frequency of the PCM sound data may be any value.

この場合、生成部12は、PCMの音データにおける第1位置から最下位までの全ビットを同一の値(例えば、全て0、または全て1)に変換してもよい。これにより、PCMの音データのうち、最下位ビットを含み連続する各ビットで表される音量が小さい部分のみが変換される。そのため、取得部11により取得されたPCMの音データを、ビット深度をより低くしたPCMデータに符号化する場合と比較して、音質を向上させることができる。また、情報端末30では、生成部12により生成されたPCMの音データを再生する際に音データの変換処理等は不要であるため、通常のPCMの音データと同様に再生することができる。 In this case, the generation unit 12 may convert all the bits from the first position to the lowest position in the PCM sound data to the same value (for example, all 0s or all 1s). As a result, only the portion of the PCM sound data whose volume is low, which is represented by each continuous bit including the least significant bit, is converted. Therefore, the sound quality can be improved as compared with the case where the PCM sound data acquired by the acquisition unit 11 is encoded into the PCM data having a lower bit depth. Further, since the information terminal 30 does not need to perform sound data conversion processing or the like when reproducing the PCM sound data generated by the generation unit 12, it can be reproduced in the same manner as the normal PCM sound data.

この場合、生成部12は、例えば、PCMのビット深度が16ビットである音データにおける下位6ビット(最下位ビット(LSB、Least Significant Bit)を含み連続する6ビット)を同一の値に変換してもよい。なお、PCMのビット深度は、例えば、各標本化時点(サンプルポイント)における量子化ビット数である。これにより、例えば、ZIPのデータ圧縮方法等を用いて、16ビットのビット深度のPCMの音データを、10ビットのビット深度のPCMの音データと同様のデータサイズに圧縮させることができる。 In this case, for example, the generation unit 12 converts the lower 6 bits (6 consecutive bits including the least significant bit (LSB, Least Significant Bit)) in the sound data having a PCM bit depth of 16 bits into the same value. You may. The bit depth of the PCM is, for example, the number of quantization bits at each sampling time point (sample point). Thereby, for example, the sound data of the PCM having a bit depth of 16 bits can be compressed to the same data size as the sound data of the PCM having a bit depth of 10 bits by using a ZIP data compression method or the like.

図5では、16ビットのビット深度のPCMの音データのある標本化時点におけるデータ501が示されている。左端の最上位ビット(MSB、Most Significant Bit)であるビット501Aの値は、正(+)または負(−)の符号を示している。また、ビット501Bからビット501Pの値は、音の振幅を示している。なお、501Pは最下位ビットである。 FIG. 5 shows data 501 at the time of sampling of PCM sound data with a bit depth of 16 bits. The value of bit 501A, which is the leftmost most significant bit (MSB, Most Significant Bit), indicates a positive (+) or negative (−) sign. The values of bits 501B to 501P indicate the amplitude of the sound. 501P is the least significant bit.

図5のデータ501は、説明のためにビット501Aから501Pはすべて「1」となっている。生成部12によりデータ501の下位6ビットが全て「0」に変換されると、図5のデータ511のようなる。データ511において、ビット511Aから511Jはそれぞれ元の値である「1」のままであり、ビット511Kから511Pはすべて「0」に変換されている。 In the data 501 of FIG. 5, the bits 501A to 501P are all "1" for the sake of explanation. When all the lower 6 bits of the data 501 are converted to "0" by the generation unit 12, the data 511 of FIG. 5 is obtained. In the data 511, the bits 511A to 511J remain the original values of "1", and the bits 511K to 511P are all converted to "0".

図6Aの例では、取得部11により取得された16ビットのビット深度のPCMの音データの波形601と、生成部12により生成された圧縮用のPCMの音データの波形602が示されている。なお、閾値613、及び閾値614は、それぞれ、16ビットのビット深度での音の振幅の最大値、及び最小値である。なお、図6Aの例では、説明のために波形601を曲線で示しているが、実際には16ビットのビット深度で量子化されている。波形602は、下位6ビットが変換されている場合、10ビットのビット深度で量子化されている。 In the example of FIG. 6A, the waveform 601 of the 16-bit bit depth PCM sound data acquired by the acquisition unit 11 and the waveform 602 of the compression PCM sound data generated by the generation unit 12 are shown. .. The threshold value 613 and the threshold value 614 are the maximum value and the minimum value of the sound amplitude at a bit depth of 16 bits, respectively. In the example of FIG. 6A, the waveform 601 is shown as a curve for explanation, but it is actually quantized at a bit depth of 16 bits. The waveform 602 is quantized at a bit depth of 10 bits when the lower 6 bits are converted.

生成部12は、変換する下位ビットの数に応じた音量の雑音を、取得部11により取得された音データに加えた後、当該下位ビットを同一の値に変換してもよい。例えば、16ビットのビット深度のPCMの音データの下位6ビットを変換する場合、生成部は、下位6ビットにより表される音の振幅に応じた振幅のノイズを加えた後、当該下位ビットを同一の値に変換してもよい。この場合、生成部12は、最大振幅が下位6ビットにより表される音の振幅未満であり、所定の確率分布(例えば、ランダム、三角分布、または正規分布)に従う振幅の音を、当該ノイズとしてもよい。これにより、下位6ビットの変換による周期的なノイズが非周期的なノイズとなるため、音質がさらに向上する。 The generation unit 12 may add noise having a volume corresponding to the number of low-order bits to be converted to the sound data acquired by the acquisition unit 11, and then convert the low-order bits to the same value. For example, when converting the lower 6 bits of PCM sound data having a bit depth of 16 bits, the generator adds noise having an amplitude corresponding to the amplitude of the sound represented by the lower 6 bits, and then converts the lower bits. It may be converted to the same value. In this case, the generation unit 12 uses a sound having a maximum amplitude less than the amplitude of the sound represented by the lower 6 bits and having an amplitude following a predetermined probability distribution (for example, random, triangular distribution, or normal distribution) as the noise. May be good. As a result, the periodic noise due to the conversion of the lower 6 bits becomes aperiodic noise, so that the sound quality is further improved.

(端数処理による下位ビットの値の変換)
また、生成部12は、変換対象の下位ビットで示される値を端数処理(切り捨てまたは切り上げ、丸め等)することにより、PCMの音データにおける第1位置から最下位までの全ビットを同一の値に変換してもよい。この場合、生成部12は、取得部11により取得されたPCMの音データにおける第1位置から最下位までのビットで示される値が閾値以上である場合、当該第1位置に対する上位のビットに1を加算し、前記第1位置から最下位までのビットをそれぞれ0に変換してもよい。また、生成部12は、取得部11により取得されたPCMの音データにおける第1位置から最下位までのビットで示される値が当該閾値以上でない場合、当該第1位置に対する上位のビットから1を減算し、前記第1位置から最下位までのビットをそれぞれ1に変換してもよい。
(Conversion of low-order bit value by rounding)
Further, the generation unit 12 rounds (rounds down or rounds up, rounds, etc.) the value indicated by the lower bits to be converted, so that all the bits from the first position to the least significant bit in the PCM sound data have the same value. May be converted to. In this case, when the value indicated by the bits from the first position to the lowest position in the PCM sound data acquired by the acquisition unit 11 is equal to or greater than the threshold value, the generation unit 12 sets 1 to the upper bit with respect to the first position. May be added and the bits from the first position to the lowest position may be converted to 0 respectively. Further, when the value indicated by the bits from the first position to the lowest position in the PCM sound data acquired by the acquisition unit 11 is not equal to or more than the threshold value, the generation unit 12 selects 1 from the upper bits with respect to the first position. It may be subtracted and each of the bits from the first position to the lowest position may be converted to 1.

(音量に応じた変換対象の下位ビットの決定)
生成部12は、取得部11により取得されたPCMの音データにおける音量に応じた第1位置から、最下位までの全ビットを同一の値に変換してもよい。この場合、生成部12は、例えば、音量が大きい部分はより多くの下位ビットを変換対象とし、音量が小さい部分はより少ない数の下位ビットを変換対象としてもよい。これにより、PCMの音データを、音質の低下を低減しながら、データの圧縮比(圧縮効率)を向上させることができる。
(Determining the lower bits to be converted according to the volume)
The generation unit 12 may convert all the bits from the first position to the lowest position according to the volume in the PCM sound data acquired by the acquisition unit 11 to the same value. In this case, the generation unit 12 may, for example, convert more low-order bits in the loud portion and convert a smaller number of low-order bits in the low-volume portion. As a result, the compression ratio (compression efficiency) of the PCM sound data can be improved while reducing the deterioration of the sound quality.

この場合、生成部12は、例えば、当該音データの各区間(例えば、10秒間毎の区間)の音の振幅の平均値、音の振幅の最大値、及び音量の平均値の少なくとも一つに基づいて、当該第1位置を決定してもよい。また、生成部12は、例えば、当該音データの各標本化(サンプリング)時点の音の振幅に基づいて、当該第1位置を決定してもよい。この場合、生成部12は、例えば、音(振幅、または音量)が大きいほど、第1位置を上位のビットの位置に決定してもよい。この場合、例えば、生成部12は、第1区間の音量の平均値が第1値である場合、最下位ビットを含み連続する第1数の各ビットを同一の値に変換し、第2区間の音量の平均値が当該第1値よりも小さい第2値である場合、最下位ビットを含み連続する当該第1数よりも少ない第2数の各ビットを同一の値に変換してもよい。これにより、振幅が大きい程ビット深度が小さくなり、振幅が小さい程ビット深度が大きくなる。生成部12は、例えば、16ビットのビット深度のPCMの音データを、最少10ビットのビット深度のPCMの音データに変換する場合、振幅に応じてビット深度を10ビットから16ビットまで変化させてもよい。 In this case, the generation unit 12 sets, for example, to at least one of the average value of the sound amplitude, the maximum value of the sound amplitude, and the average value of the volume in each section of the sound data (for example, a section every 10 seconds). Based on this, the first position may be determined. Further, the generation unit 12 may determine the first position based on, for example, the amplitude of the sound at each sampling (sampling) time of the sound data. In this case, for example, the generation unit 12 may determine the first position as the position of the higher bit as the sound (amplitude or volume) becomes louder. In this case, for example, when the average value of the volume of the first section is the first value, the generation unit 12 converts each bit of the first consecutive number including the least significant bit into the same value, and the second section. When the average value of the volume of is a second value smaller than the first value, each bit of the second number less than the first number consecutively including the least significant bit may be converted to the same value. .. As a result, the larger the amplitude, the smaller the bit depth, and the smaller the amplitude, the larger the bit depth. For example, when the sound data of the PCM having a bit depth of 16 bits is converted into the sound data of the PCM having a bit depth of at least 10 bits, the generation unit 12 changes the bit depth from 10 bits to 16 bits according to the amplitude. You may.

図6Bの例では、取得部11により取得された16ビットのビット深度のPCMの音データの波形601と、生成部12により、音量に応じて変換対象の下位ビットが決定されて生成された圧縮用のPCMの音データの波形612が示されている。波形612は、音の振幅が低い程(音量が小さい程)、大きいビット数のビット深度で量子化され、音の振幅が高い程(音量が大きい程)、小さいビット数のビット深度で量子化されている。図6Bでは、振幅の大きさに応じて、波形612が3つのビット深度の値を取る例が示されている。なお、図6Bの波形612では、説明のため、ビット深度の違いを明りょう化するべく、振幅が小さい程サンプリングの間隔が短くなっている。しかしながら、実際には、波形612のサンプリングの間隔は、振幅によらず同一である。 In the example of FIG. 6B, the 16-bit bit depth PCM sound data waveform 601 acquired by the acquisition unit 11 and the generation unit 12 determine the lower bits to be converted according to the volume and generate the compression. The waveform 612 of the PCM sound data for use is shown. The waveform 612 is quantized at a bit depth of a larger number of bits as the amplitude of the sound is lower (lower volume), and is quantized at a bit depth of a smaller number of bits as the amplitude of the sound is higher (the louder the volume). Has been done. FIG. 6B shows an example in which the waveform 612 takes three bit depth values depending on the magnitude of the amplitude. In the waveform 612 of FIG. 6B, for the sake of explanation, the smaller the amplitude, the shorter the sampling interval in order to clarify the difference in bit depth. However, in reality, the sampling interval of the waveform 612 is the same regardless of the amplitude.

続いて、圧縮部13は、生成部12により生成された音データを圧縮する(ステップS3)。ここで、圧縮部13は、例えば、ZIPで規定されているデータ圧縮方法を用いて、各音データ(ファイル)をそれぞれ圧縮してもよい。この場合、圧縮部13は、例えば、Deflate(RFC(Request for Comments)1951,"DEFLATE Compressed Data Format Specification version 1.3" )を用いて、音データを圧縮してもよい。 Subsequently, the compression unit 13 compresses the sound data generated by the generation unit 12 (step S3). Here, the compression unit 13 may compress each sound data (file) by using, for example, the data compression method specified by ZIP. In this case, the compression unit 13 may compress the sound data by using, for example, Deflate (RFC (Request for Comments) 1951, "DEFLATE Compressed Data Format Specification version 1.3").

続いて、出力部14は、圧縮部13により圧縮された音データをサーバ装置20にアップロードする(ステップS4)。これにより、情報端末30は、例えば、圧縮された音データを含むゲームのプログラムのZIPファイルをサーバ装置20からダウンロードできる。そして、情報端末30は、例えば、当該ZIPファイルを解凍し、当該ゲームのプログラムを実行することにより、生成部12により生成された音データを再生してスピーカから出力させることができる。 Subsequently, the output unit 14 uploads the sound data compressed by the compression unit 13 to the server device 20 (step S4). As a result, the information terminal 30 can download, for example, a ZIP file of the game program including the compressed sound data from the server device 20. Then, the information terminal 30 can reproduce the sound data generated by the generation unit 12 and output it from the speaker by, for example, decompressing the ZIP file and executing the program of the game.

<実施形態の効果>
上述した実施形態によれば、情報処理装置10は、PCMの音データにおける所定位置のビットを所定値に変換する。これにより、PCMの音データのデータ量を圧縮可能とすることができる。
<Effect of embodiment>
According to the above-described embodiment, the information processing device 10 converts the bit at a predetermined position in the sound data of the PCM into a predetermined value. As a result, the amount of PCM sound data can be compressed.

そのため、例えば、情報端末30において、ADPCM等で圧縮された音データを再生できない場合であり、また情報端末30に配信するゲームプログラム等のデータサイズに制約がある場合等においても、情報端末30に音データを再生させることができる。 Therefore, for example, even when the information terminal 30 cannot reproduce the sound data compressed by ADPCM or the like, or when the data size of the game program or the like to be delivered to the information terminal 30 is limited, the information terminal 30 can be used. Sound data can be reproduced.

また、ADPCM等で圧縮された音データを再生する場合、再生時の解凍処理が必要である。一方、上述した実施形態によれば、情報端末30にゲームプログラム等のデータがインストールされる等の際に、当該データが格納されたZIPファイル等が解凍できる。そのため、音データの再生時の情報端末30における処理負荷を低減できる。そのため、音データがゲームにおける各シーンでのキャラクタのセリフ、または効果音等である場合であり、ゲームにおける各シーンの動画像のCG(Computer Graphics)を表示する処理の処理負荷が高い場合でも、音データの再生によるCG処理の性能の低下を低減できる。 Further, when reproducing the sound data compressed by ADPCM or the like, a decompression process at the time of reproduction is required. On the other hand, according to the above-described embodiment, when data such as a game program is installed on the information terminal 30, the ZIP file or the like in which the data is stored can be decompressed. Therefore, the processing load on the information terminal 30 at the time of reproducing the sound data can be reduced. Therefore, even when the sound data is the dialogue of the character in each scene in the game, the sound effect, etc., and the processing load of the process of displaying the CG (Computer Graphics) of the moving image of each scene in the game is high, the processing load is high. It is possible to reduce the deterioration of the performance of CG processing due to the reproduction of sound data.

<変形例>
情報処理装置10の各機能部は、例えば1以上のコンピュータにより提供されるクラウドコンピューティングにより実現されていてもよい。この場合、例えば、圧縮部13、及び出力部14を、情報処理装置10とは別体の装置に設けてもよい。
<Modification example>
Each functional unit of the information processing apparatus 10 may be realized by, for example, cloud computing provided by one or more computers. In this case, for example, the compression unit 13 and the output unit 14 may be provided in a device separate from the information processing device 10.

以上、本発明の実施例について詳述したが、本発明は斯かる特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。 Although the examples of the present invention have been described in detail above, the present invention is not limited to such specific embodiments, and various modifications are made within the scope of the gist of the present invention described in the claims.・ Can be changed.

1 情報処理システム
10 情報処理装置
11 取得部
12 生成部
13 圧縮部
14 出力部
20 サーバ装置
30 情報端末
1 Information processing system 10 Information processing device 11 Acquisition unit 12 Generation unit 13 Compression unit 14 Output unit 20 Server device 30 Information terminal

Claims (9)

情報処理装置に、
パルス符号変調の音データにおける所定位置のビットを所定値に変換する処理を実行させるプログラム。
For information processing equipment
A program that executes a process to convert a bit at a predetermined position into a predetermined value in the sound data of pulse code modulation.
前記変換する処理では、
前記パルス符号変調の音データにおける第1位置から最下位までの全ビットを同一の値に変換する、
請求項1に記載のプログラム。
In the conversion process,
Converts all the bits from the first position to the lowest position in the pulse code modulated sound data to the same value.
The program according to claim 1.
前記変換する処理では、
前記第1位置に応じた音量の雑音を、前記パルス符号変調の音データに加えた後、前記第1位置から最下位までの全ビットを同一の値に変換する、
請求項2に記載のプログラム。
In the conversion process,
After adding the noise of the volume corresponding to the first position to the sound data of the pulse code modulation, all the bits from the first position to the lowest position are converted into the same value.
The program according to claim 2.
前記変換する処理では、
前記パルス符号変調の音データにおける音量に応じた前記第1位置から、最下位までの全ビットを同一の値に変換する、
請求項2または3に記載のプログラム。
In the conversion process,
All the bits from the first position to the lowest position according to the volume in the sound data of the pulse code modulation are converted into the same value.
The program according to claim 2 or 3.
前記変換する処理では、
前記パルス符号変調の音データにおける前記第1位置から最下位までのビットで示される値が閾値以上である場合、前記第1位置に対する上位のビットに1を加算し、前記第1位置から最下位までのビットをそれぞれ0に変換する、
請求項2から4のいずれか一項に記載のプログラム。
In the conversion process,
When the value indicated by the bits from the first position to the lowest position in the sound data of the pulse code modulation is equal to or greater than the threshold value, 1 is added to the upper bits with respect to the first position, and the lowest bit from the first position is the lowest. Converts the bits up to 0 to 0,
The program according to any one of claims 2 to 4.
前記変換する処理では、
前記パルス符号変調の音データにおける前記第1位置から最下位までのビットで示される値が閾値以上でない場合、前記第1位置に対する上位のビットに1を減算し、前記第1位置から最下位までのビットをそれぞれ1に変換する、
請求項2から5のいずれか一項に記載のプログラム。
In the conversion process,
When the value indicated by the bits from the first position to the lowest position in the sound data of the pulse code modulation is not equal to or more than the threshold value, 1 is subtracted from the upper bits with respect to the first position, and from the first position to the lowest position. Convert each bit of to 1
The program according to any one of claims 2 to 5.
前記変換する処理では、
前記パルス符号変調のビット深度が16ビットである音データにおける下位6ビットを同一の値に変換する、
請求項1から6のいずれか一項に記載のプログラム。
In the conversion process,
The lower 6 bits of the sound data in which the bit depth of the pulse code modulation is 16 bits are converted into the same value.
The program according to any one of claims 1 to 6.
情報処理装置が、
パルス符号変調の音データにおける所定位置のビットを所定値に変換する処理を実行させる情報処理方法。
Information processing device
An information processing method that executes a process of converting a bit at a predetermined position into a predetermined value in sound data of pulse code modulation.
パルス符号変調の音データにおける所定位置のビットを所定値に変換する処理を実行する情報処理装置。 An information processing device that executes a process of converting a bit at a predetermined position into a predetermined value in sound data of pulse code modulation.
JP2020020733A 2020-02-10 2020-02-10 Program, information processing method, and information processing device Active JP7432386B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020020733A JP7432386B2 (en) 2020-02-10 2020-02-10 Program, information processing method, and information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020020733A JP7432386B2 (en) 2020-02-10 2020-02-10 Program, information processing method, and information processing device

Publications (2)

Publication Number Publication Date
JP2021128184A true JP2021128184A (en) 2021-09-02
JP7432386B2 JP7432386B2 (en) 2024-02-16

Family

ID=77488422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020020733A Active JP7432386B2 (en) 2020-02-10 2020-02-10 Program, information processing method, and information processing device

Country Status (1)

Country Link
JP (1) JP7432386B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61146021A (en) * 1984-12-20 1986-07-03 Sharp Corp Digital signal processor
JPH09214636A (en) * 1996-02-07 1997-08-15 Tateba Syst Kk Method and device for voice communication imbedded with data
JP2003107107A (en) * 2001-09-28 2003-04-09 Yokogawa Electric Corp Resolution compression method of waveform data in waveform display device
JP2006197321A (en) * 2005-01-14 2006-07-27 Sony Corp Method and device for processing image, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61146021A (en) * 1984-12-20 1986-07-03 Sharp Corp Digital signal processor
JPH09214636A (en) * 1996-02-07 1997-08-15 Tateba Syst Kk Method and device for voice communication imbedded with data
JP2003107107A (en) * 2001-09-28 2003-04-09 Yokogawa Electric Corp Resolution compression method of waveform data in waveform display device
JP2006197321A (en) * 2005-01-14 2006-07-27 Sony Corp Method and device for processing image, and program

Also Published As

Publication number Publication date
JP7432386B2 (en) 2024-02-16

Similar Documents

Publication Publication Date Title
KR101085697B1 (en) Audio signal band expansion apparatus and method
JP7123910B2 (en) Quantizer with index coding and bit scheduling
JP2005328533A (en) Method and apparatus for encoding/decoding digital signal utilizing linear quantization by blocks
JP2021128184A (en) Program, information processing method and information processing device
CN1894742A (en) Audio compression/decompression device
US20030108108A1 (en) Decoder, decoding method, and program distribution medium therefor
JPH07199996A (en) Device and method for waveform data encoding, decoding device for waveform data, and encoding and decoding device for waveform data
KR20060051158A (en) Information processing apparatus, information processing method, and program
JP2007142547A (en) Coding method and decoding method, and coder and decoder employing same
WO1997016818A1 (en) Method and system for compressing a speech signal using waveform approximation
JP2001184090A (en) Signal encoding device and signal decoding device, and computer-readable recording medium with recorded signal encoding program and computer-readable recording medium with recorded signal decoding program
US8368569B2 (en) Data converting device, program and method
JP2005151327A (en) Pcm data compressing/decompressing method and apparatus
JP3166218B2 (en) Data compression / expansion apparatus and electronic musical instrument using the same
JPWO2019021552A1 (en) Encoding device, decoding device, data structure of code string, encoding method, decoding method, encoding program, decoding program
CN113826159A (en) Adaptive and fixed mapping for compression and decompression of audio data
JP2006350090A (en) Client/server speech recognizing method, speech recognizing method of server computer, speech feature quantity extracting/transmitting method, and system and device using these methods, and program and recording medium
JP7032795B2 (en) 1-bit audio signal generator, program
TWI778493B (en) Multi-neural network model loading method and device, electronic device and computer readable recording media
JP4556866B2 (en) High efficiency encoding program and high efficiency encoding apparatus
JP2006162774A (en) Signal processor
KR100776432B1 (en) Apparatus for writing and playing audio and audio coding method in the apparatus
JP3334437B2 (en) Encoding method, encoding device, recording medium, and decoding device
JP3389849B2 (en) Quantizer
JP3510493B2 (en) Audio signal encoding / decoding method and recording medium recording the program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231003

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20231010

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231129

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: 20240131

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240205

R150 Certificate of patent or registration of utility model

Ref document number: 7432386

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150