Data processing device, data processing method and computer readable storage medium
By introducing insertion/deletion processing in units of samples into the data processing device, the problem of insufficient buffer fluctuation followability caused by insertion/deletion processing in units of frames in the prior art is solved, and a high level of wireless acoustic data output is achieved. Precision suppression reduces sound interruptions and jumps.
Patent Information
- Application Number
- CN202080076999.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-12
- Filing Date
- 2020-11-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the existing technology suppresses interruptions in wireless acoustic data output, insertion/deletion processing is performed in frame units, resulting in insufficient followability to buffer fluctuations, difficulty in high-precision control, and possible sound interruptions and jumps.
Design a data processing device, including a signal processing unit and an insertion/deletion unit. The signal processing unit performs predetermined signal processing on the received data and stores it in the buffer. The insertion/deletion unit performs insertion or deletion processing in sample units. When When the amount of buffer data exceeds a predetermined range, insert/deletion processing is performed to follow buffer fluctuations.
Through insertion/deletion processing in sample units, data output interruptions can be suppressed with high precision, the following performance of buffer fluctuations is improved, and the occurrence of sound interruptions and jumps is reduced.
Smart Images

Figure CN114631296B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a data processing device, a data processing method, and a data processing program. Background Art
[0002] Conventionally, for example, a system for wirelessly transmitting and receiving acoustic data (eg, music) using Bluetooth (registered trademark) etc. is known. In such a system, a technology is used that can temporarily accumulate (store) acoustic data in a buffer of a device on the receiving side.
[0003] In addition, for example, in the case where the transmission rate of acoustic data on the transmission side and the output rate of acoustic data on the reception side are different from each other, in the device on the reception side, the acoustic data in the buffer is insufficient (underflow) or saturated (overflow), thereby causing sound interruption, sound skipping, etc. On the other hand, in the conventional system, a technology for suppressing the occurrence of sound interruption and sound skipping by inserting or deleting (insertion / deletion processing) acoustic data in units of frames has been proposed (for example, see Patent Document 1). Note that a frame is a unit obtained by dividing all samples included in acoustic data for each predetermined number of samples.
[0004] Reference List
[0005] Patent Literature
[0006] Patent Document 1: WO2016 / 088582A Summary of the invention
[0007] Technical issues
[0008] However, there is room for improvement in the related art, so that it is necessary to suppress data output interruptions, such as sound interruptions and sound jumps, with high precision. Specifically, since the insertion / deletion processing is generally performed in units of frames, it is not considered to have high followability to fluctuations (such as shortage and saturation) of the buffer, and there is a possibility that output interruptions occur in units of the number of samples included in the frame.
[0009] Therefore, the present disclosure proposes a data processing device, a data processing method, and a data processing program capable of suppressing data output interruption with high accuracy.
[0010] Solution to the problem
[0011] A data processing device includes: a signal processing unit and an insertion / deletion unit. The signal processing unit performs predetermined signal processing on wirelessly received data of each frame including a predetermined number of samples, and stores the data in a buffer. In the case where the amount of data accumulated in the buffer exceeds a predetermined range, the insertion / deletion unit performs insertion / deletion processing of inserting or deleting data in units of samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1A is a diagram showing a configuration of a data processing system according to an embodiment.
[0013] Figure 1B is a diagram showing an overview of a data processing method according to an embodiment.
[0014] Figure 2 is a block diagram showing a configuration of a data transmission device according to an embodiment.
[0015] Figure 3 is a block diagram showing the configuration of a data processing device according to the embodiment.
[0016] Figure 4 is a diagram showing the processing contents of the insertion / deletion unit.
[0017] Figure 5 is a diagram showing the processing contents of the insertion / deletion unit.
[0018] Figure 6 is a diagram showing the processing contents of the insertion / deletion unit.
[0019] Figure 7 is a diagram showing the processing contents of the insertion / deletion unit.
[0020] Figure 8 is a diagram showing the processing contents of the insertion / deletion unit.
[0021] Fig. 9 is a flowchart showing the procedure of the entire processing performed by the data processing device according to the embodiment.
[0022] Fig.10 is a flowchart showing the procedure of a low-frequency signal detection process performed by the data processing device according to the embodiment.
[0023] Fig.11 is a flowchart showing the procedure of a noise inspection process performed by the data processing device according to the embodiment.
[0024] Fig. 12A is a block diagram showing a configuration of a data processing device according to a modification.
[0025] Fig. 12B is a block diagram showing a configuration of a data processing device according to a modification.
[0026] Fig.13A : are diagrams illustrating a specific example of processing performed by a data processing system according to a modification.
[0027] Fig. 13B: are diagrams illustrating a specific example of processing performed by a data processing system according to a modification.
[0028] Fig.14 is a block diagram showing an example of the hardware configuration of the data processing device according to the present embodiment. DETAILED DESCRIPTION
[0029] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In each of the following embodiments, the same parts are denoted by the same reference numerals, and redundant description will be omitted.
[0030] In addition, in the specification and the drawings, multiple components having substantially the same functional configuration can be distinguished from each other by adding different numbers after the same reference numerals. However, if it is not necessary to distinguish multiple components having substantially the same functional configuration from each other, only the same reference numerals are given.
[0031] <<1. Overview of Data Processing Method According to Embodiment>>
[0032] First, refer to Figure 1A and 1B An overview of a data processing method according to an embodiment is described. Figure 1A is a diagram showing a configuration of a data processing system according to an embodiment. Figure 1B : is a diagram showing an overview of a data processing method according to an embodiment. Figure 1A As shown, the data processing system S includes a data processing device 1 and a data transmission device 100. The data processing device 1 and the data transmission device 100 are connected according to a predetermined wireless communication standard (eg, Bluetooth (registered trademark)), and transmit and receive various data.
[0033] The data transmission device 100 is, for example, a device that wirelessly transmits predetermined data such as acoustic data of music. The data transmission device 100 is implemented by, for example, a smartphone, a tablet terminal, a notebook personal computer (PC), a desktop PC, a mobile phone, a personal digital assistant (PDA), etc. The data transmission device 100 transmits data obtained by performing signal processing such as encoding processing or modulation processing on the data to the data processing device 1. Note that the data transmission device 100 processes data in units of frames. That is, the data transmission device 100 performs encoding processing and modulation processing on data of each frame including a predetermined number of samples, and transmits data to the data processing device 1 for each frame.
[0034] The data processing device 1 is a device that performs signal processing such as demodulation processing or decoding processing on the data of each frame received from the data transmission device 100 and outputs the data. The data processing device 1 is, for example, a headphone, a speaker, and an electronic device with a built-in speaker. In addition, the data processing device 1 includes a buffer that temporarily accumulates (stores) the received data. As a result, the difference (deviation) between the data transmission rate in the data transmission device 100 and the data output rate in the data processing device 1 can be compensated.
[0035] In addition, the data processing device 1 performs the data processing method according to the embodiment. Figure 1A and 1B An example of a data processing method according to an embodiment is described. Figure 1A As shown, it is assumed that the clock frequency (transmission rate) of the data transmission device 100 is 48000 Hz and the clock frequency (output rate) of the data processing device 1 is 47990 Hz.
[0036] In other words, Figure 1A , the amount of data corresponding to 48000 Hz per unit time is transmitted from the data transmission device 100, and the amount of data corresponding to 47990 Hz per unit time is output from the data processing device 1. That is, the amount of data transmitted by the data transmission device 100 is greater than the amount of data output by the data processing device 1.
[0037] In this case, the amount of data accumulated in the buffer in the data processing device 1 increases by an amount of data corresponding to 10 Hz, which is the difference in clock frequency. Figure 1B The amount of data accumulated in the buffer is shown as a function of time.
[0038] like Figure 1B As shown, in the case where the amount of data transmitted by the data transmission device 100 is greater than the amount of data output by the data processing device 1, for example, in the period to time t1, the amount of data gradually increases from the number of initial charge samples, and when the accumulated amount becomes equal to or greater than the predetermined threshold value TH1 at time t1, the data is in a saturated (overflow) state in the buffer. Note that the initial sample charge is used to accumulate a certain amount (the number of samples) in advance so that the buffer is not insufficient. For example, the data processing device 1 only stores the data in the buffer and does not output the data accumulated in the buffer until the initial sample charge number is reached after starting to receive data from the data transmission device 100.
[0039] Then, in the data processing method according to the embodiment, when the data is saturated in the buffer, a deletion process of deleting a predetermined sample from the data accumulated in the buffer is performed. On the other hand, when the data in the buffer is insufficient (underflow), that is, when the accumulated amount of the buffer is equal to or less than the predetermined threshold value TH2, an insertion process of inserting a predetermined sample into the data accumulated in the buffer is performed.
[0040] That is, in the data processing method according to the embodiment, when the amount of data accumulated in the buffer is outside a predetermined range (outside the range of threshold TH1 and threshold TH2), any one of insertion and deletion of the insertion / deletion processing is performed on the data in units of samples.
[0041] For example, in Figure 1B In the embodiment, after time t1, by performing a deletion process on the data in the buffer, the amount of data accumulated in the buffer is reduced. Specifically, since the amount of data corresponding to 47980 Hz is basically obtained by deleting the amount of data corresponding to 20 Hz from the amount of data corresponding to 48000 Hz, the amount of data corresponding to 10 Hz is reduced every time the data processing device 1 outputs the amount of data corresponding to 47990 Hz.
[0042] As a result, insufficient data and saturation in the buffer can be solved. In addition, in the data processing method according to the embodiment, compared with the case in the related art where the buffer fluctuation in frame units is followed by performing insertion / deletion processing on data in sample units, the buffer fluctuation in sample units can be followed by performing insertion / deletion processing on data in sample units. That is, according to the data processing method according to the embodiment, data output interruption can be suppressed with high accuracy.
[0043] <<2. Configuration of Data Transmission Device According to Embodiment>>
[0044] Next, we will refer to Figure 2 The configuration of the data transmission device 100 according to the embodiment is described. Figure 2 1 is a block diagram showing the configuration of a data transmission device 100 according to an embodiment. Figure 2 As shown, the data transmission device 100 is communicatively connected to the data processing device 1 .
[0045] Furthermore, the transmission device 100 includes a communication unit 200, a control unit 300, and a storage unit 400. The communication unit 200 transmits and receives various data to and from the data processing device 1 according to a predetermined wireless communication standard, for example, Bluetooth (registered trademark).
[0046] The control unit 300 includes a code processing unit 310 and a wireless transmitter 320. The storage unit 400 stores data information 410. In addition, the storage unit 400 has an area of a buffer 420 that temporarily stores data.
[0047] Here, the data transmission device 100 includes, for example, a computer including a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), a data flash memory, an input / output port, etc., and various circuits.
[0048] For example, the CPU of the computer functions as the code processing unit 310 and the wireless transmitter 320 of the control unit 300 by reading and executing the program stored in the ROM.
[0049] Furthermore, at least one or both of the code processing unit 310 and the wireless transmitter 320 of the control unit 300 may be configured by hardware such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0050] In addition, the storage unit 400 corresponds to, for example, a RAM or a data flash memory. The RAM and the data flash memory can store data information 410, information of various programs, etc. Note that the data transmission device 100 can obtain the above-mentioned programs and various types of information through another computer or a portable recording medium connected via a wired or wireless network.
[0051] The data information 410 stored in the storage unit 400 is data to be wirelessly transmitted from the data transmission device 100 to the data processing device 1, in other words, data that is the target of insertion / deletion processing in the data processing device 1. The data in the data information 410 is, for example, music or moving image data.
[0052] The buffer 420 is a storage area that temporarily stores data encoded by the code processing unit 310 described later.
[0053] The code processing unit 310 of the control unit 300 reads the data information 410 stored in the storage unit 400 , performs a predetermined encoding process, and temporarily stores the data compressed by the encoding process in the buffer 420 .
[0054] For example, Bluetooth (registered trademark) defines Advanced Audio Distribution Profile (A2DP) as a profile for transmitting and receiving acoustic data. For example, A2DP defines a basic codec (mandatory codec) called Sub-Band Codec (SBC). That is, the code processing unit 310 compresses Linear Pulse Code Modulation (LPCM) data as acoustic data by SBC.
[0055] Then, the code processing unit 310 encodes the compressed data using a predetermined encoder. For example, the code processing unit 310 encodes the LPCM data in frames including a predetermined number of samples by an encoder of SBC and temporarily stores the encoded data (encoded data) in the buffer 420 in frames.
[0056] The wireless transmitter 320 reads the coded data stored in the buffer 420, performs modulation according to the communication standard, and transmits the data to the data processing device 1. Specifically, first, the wireless transmitter 320 reads the coded data from the buffer 420 in units of frames and groups the coded data.
[0057] Then, the wireless transmitter 320 modulates the packet data into a radio frequency (RF) signal and wirelessly transmits the RF signal to the data processing device 1 via the communication unit 200 .
[0058] <<3. Configuration of Data Processing Device According to Embodiment>>
[0059] Next, we will refer to Figure 3 The configuration of the data processing device 1 according to the embodiment is described. Figure 3 1 is a block diagram showing the configuration of a data processing device 1 according to an embodiment. Figure 3 As shown, the data processing device 1 is communicatively connected to the data transmission device 100 .
[0060] Furthermore, the data processing device 1 includes a communication unit 2, a control unit 3, and a storage unit 4. The communication unit 2 transmits and receives various data to and from the data processing device 1 according to a predetermined wireless communication standard, for example, Bluetooth (registered trademark).
[0061] The control unit 3 includes a demodulation unit 31 (an example of a signal processing unit), a decoding processing unit 32 (an example of a signal processing unit), an insertion / deletion unit 33, and a conversion unit 34. The storage unit 4 has areas of a frame buffer 41 and an LPCM buffer 42 that temporarily store data.
[0062] Here, the data processing device 1 includes, for example, a computer including a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), a data flash memory, an input / output port, etc., and various circuits.
[0063] The CPU of the computer functions as the demodulation unit 31 , the decoding processing unit 32 , the insertion / deletion unit 33 , and the conversion unit 34 of the control unit 3 , for example, by reading and executing the program stored in the ROM.
[0064] In addition, at least one or all of the demodulation unit 31, decoding processing unit 32, insertion / deletion unit 33 and conversion unit 34 of the control unit 3 can be configured by hardware such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0065] In addition, the storage unit 4 corresponds to, for example, a RAM or a data flash. The RAM and the data flash can store information of various programs, etc. Note that the data processing device 1 can acquire the above-mentioned programs and various types of information through another computer or a portable recording medium connected via a wired or wireless network.
[0066] The frame buffer 41 is a storage area that temporarily stores encoded data obtained by demodulating a radio frequency signal using a demodulation unit 31 described later.
[0067] The LPCM buffer 42 is a storage area that temporarily stores LPCM data, which is data obtained by decoding encoded data using the decoding processing unit 32 described later.
[0068] The demodulation unit 31 demodulates the radio frequency signal received from the data transmission device 100, and temporarily stores the encoded data obtained by decomposing the packets obtained by demodulation in the frame buffer 41. The demodulation unit 31 stores the encoded data in units of frames in the frame buffer 41. That is, the demodulation unit 31 is an example of a signal processing unit that performs predetermined signal processing (demodulation processing and packet decomposition processing) on the data (RF signal) of each frame including a predetermined number of samples received wirelessly, and stores the data in a buffer (frame buffer 41).
[0069] The decoding processing unit 32 uses a predetermined decoder to decode the encoded data stored in the frame buffer 41. The decoding processing unit 32 decodes the encoded data in units of frames including a predetermined number of samples, for example, by a decoder of SBC, and temporarily stores the decoded data in units of frames (LPCM data) in the LPCM buffer 42.
[0070] In the case where the amount of data accumulated in the buffer exceeds a predetermined range, the insertion / deletion unit 33 performs any one of insertion and deletion of the insertion / deletion processing on the data in units of samples. For example, in the case where the amount of LPCM data accumulated in the LPCM buffer 42 exceeds a predetermined range, the insertion / deletion unit 33 performs the insertion / deletion processing on the LPCM data in units of samples.
[0071] Specifically, in a case where the amount of LPCM data accumulated in the LPCM buffer 42 is equal to or greater than a predetermined threshold value (e.g., the threshold value TH1 shown in FIG. 1 ), the insertion / deletion unit 33 detects saturation of the LPCM buffer 42 and performs a deletion process of a predetermined sample. On the other hand, in a case where the amount of LPCM data accumulated in the LPCM buffer 42 is equal to or less than a predetermined threshold value (e.g., the threshold value TH2 shown in FIG. 1 ), the insertion / deletion unit 33 detects insufficiency of the LPCM buffer 42 and performs an insertion process of a predetermined sample.
[0072] Here, reference will be made to Figures 4 to 8 The processing contents of the insertion / deletion unit 33 are described in detail. Figures 4 to 8 2 is a diagram showing the processing contents of the insertion / deletion unit 33 .
[0073] like Figure 4 As shown, the insertion / deletion unit 33 performs low-frequency signal detection processing, tone signal detection processing, attack signal detection processing, noise signal detection processing, restoration processing, insertion / deletion processing, and noise check processing. Among the above-mentioned processing, the low-frequency signal detection processing, tone signal detection processing, attack signal detection processing, and noise signal detection processing are processing for detecting whether data (data in units of frames) as acoustic data can be inserted and deleted, and are processing for detecting whether a range that is difficult for human hearing to perceive is included in a frame. Hereinafter, each processing will be described in detail.
[0074] <Low-frequency signal detection and processing>
[0075] The low-frequency signal detection process is a process of detecting a sample having a lower signal level in a frame as a target of the insertion / deletion process (a target to be inserted or deleted). Figure 5 and Figure 6 The low-frequency signal detection process is described in detail.
[0076] Figure 5 128 samples corresponding to one frame are shown. Figure 5 In FIG, the frame before the insertion / deletion process is indicated by a solid line, and the frame after the deletion process is indicated by a dotted line. Figure 6 In the figure, the Figure 5 The dotted line in FIG. 4 encloses the area (frames before insertion / deletion processing only), and one black circle corresponds to one sample.
[0077] First, the insertion / deletion unit 33 performs Figure 5The samples shown are sorted in ascending (or descending) order of the absolute value of the signal level, which are data read from the LPCM buffer 42 in units of frames. Note that in the classification result, the sample position (time) in the frame is associated with each sample. Then, the insertion / deletion unit 33 selects a predetermined number or more of samples whose absolute values are smaller than a predetermined value (for example, smaller than 0.05). The number of samples to be selected is preferably equal to or larger than the number of samples to be inserted and deleted required for the insertion / deletion processing. Note that the insertion / deletion unit 33 can select samples from Figure 5 In the waveform data shown, samples whose absolute values of signal levels are smaller than a predetermined value are selected without performing classification processing.
[0078] Subsequently, the insertion / deletion unit 33 selects three samples including samples located before and after the sample as candidates for the target to be inserted or deleted for each selected sample. That is, the insertion / deletion unit 33 sets three consecutive samples whose signal levels are less than a predetermined value as the target to be inserted or deleted. Here, when the signs of the signal levels of the three samples as candidates for the target to be inserted or deleted are reversed, the insertion / deletion unit 33 excludes the three samples from the candidates for the target to be inserted or deleted. Specifically, in the case where the three consecutive samples are reversed, for example, as +, -, +, -, +, -, + or -, the insertion / deletion unit 33 excludes the three samples from the candidates for the target to be inserted or deleted.
[0079] Then, the insertion / deletion unit 33 calculates an approximate line (straight line) among the candidates of the target to be inserted or deleted, which are three samples including each selected sample and the samples located before and after the sample. Figure 6 Describes the method for computing approximate lines. Figure 6 Eight consecutive samples are shown, and it is assumed that sample SA5 is a selected sample, and three consecutive samples SA4 to SA6 are candidates for targets to be inserted or deleted.
[0080] exist Figure 6 In the example shown, the insertion / deletion unit 33 calculates the approximate line AL from three consecutive samples SA4 to SA6 by the least square method using samples SA4 and SA6 located before and after the selected sample SA5. In the case where the classification process is performed, it is preferable to associate information indicating that the approximate line AL is calculated based on the sample positions before the classification process with the information of the approximate line AL. In addition, the number of samples used to calculate the approximate line AL is not limited to three, and may be two or four or more.
[0081] Then, in the case where the slope of the calculated approximation line AL is less than a predetermined threshold, the insertion / deletion unit 33 detects the sample as a low-frequency signal and determines three consecutive samples SA4 to SA6 as targets to be inserted or deleted. That is, since it has been found through experiments, etc. that a portion where the signal level is relatively low and the change in signal level relative to the previous and subsequent samples is small is difficult to be perceived by human hearing, the samples of this portion are determined to be targets to be inserted or deleted. That is, in the case where the slope of the approximation line AL calculated based on a predetermined number of consecutive samples SA4 to SA6 is less than a predetermined threshold, the insertion / deletion unit 33 makes the predetermined number of consecutive samples SA4 to SA6 become targets to be inserted or deleted in the frame. As a result, even when samples are inserted and deleted in the insertion / deletion process described later, people are less likely to feel errors in the frame after the insertion / deletion process.
[0082] The insertion / deletion unit 33 performs a tone signal detection process on a frame including a target to be inserted or deleted.
[0083] <Tone Signal Detection Processing>
[0084] The tone signal processing is a process of detecting whether a tone signal is included in a frame. The tone signal is a special signal, for example, a sine wave, and is a signal that may be determined as a target to be inserted or deleted in the above-mentioned low-frequency signal detection processing, etc. Therefore, in the case where a tone signal is included in a frame, the insertion / deletion unit 33 excludes the frame from the target to be inserted or deleted. That is, in the case where the waveform of the sample in the frame is a tone waveform corresponding to the tone signal, the insertion / deletion unit 33 excludes the frame from the target to be inserted or deleted. Note that the tone signal can be detected by, for example, waveform pattern matching or known signal analysis processing.
[0085] Then, the insertion / deletion unit 33 performs insertion / deletion processing on the frame in which any tone signal is not detected.
[0086] <Attack Signal Detection Processing>
[0087] The attack signal detection process is a process for detecting whether an attack signal is included in a frame. For example, an attack signal is a signal whose signal level is temporarily increased due to a percussion sound (e.g., castanets). The insertion / deletion unit 33 uses the auditory masking phenomenon caused by the attack signal to determine the target to be inserted or deleted. In other words, in the case where a frame includes an attack waveform corresponding to an attack waveform whose signal level change of the sample is equal to or greater than a predetermined value, the insertion / deletion unit 33 makes the sample corresponding to the attack waveform a target to be inserted or deleted. Specifically, the insertion / deletion unit 33 sets the attack signal as a masking signal, and determines the sample within the time range where the masking phenomenon occurs (the time when the signal level temporarily increases) as the target to be inserted or deleted.
[0088] Specifically, the insertion / deletion unit 33 first divides the samples read from the LPCM buffer 42 in units of frames into a predetermined number, and calculates the average value of the signal level of each divided sample range. Subsequently, the insertion / deletion unit 33 detects a sudden change range (and sample ranges before and after the sudden change range) in which the calculated average value of the signal level of each sample range changes to a predetermined value or more as an attack signal, and determines the samples in the sample range corresponding to the attack signal as targets to be inserted or deleted.
[0089] In addition, the insertion / deletion unit 33 calculates the attack signal level based on the ratio of the average value of the signal level of the sudden change range to the sample range before and after the sudden change range. For example, the insertion / deletion unit 33 increases the attack signal level as the ratio of the average value of the signal level of the sudden change range to the sample range before and after the sudden change range increases. That is, the insertion / deletion unit 33 increases the attack signal level as the sudden change degree increases. Note that when performing the insertion / deletion process described later, the attack signal level is used to determine the number of insertions and deletions.
[0090] <Noise Signal Detection Processing>
[0091] Noise signal processing is a process for detecting whether a noise signal is included in a frame. A noise signal is acoustic data with strong randomness and minor key, i.e., acoustic data with high temporal discontinuity. Examples of noise signals include the sound of waves, white noise, the consonant part of a sound, and the sound of musical instruments such as cymbals or sand mallets. It is well known that such noise signals are difficult to be perceived by human hearing even if samples are inserted and deleted through experiments, etc. Therefore, the insertion / deletion unit 33 detects the noise signal to detect the sample corresponding to the noise signal as a target to be inserted or deleted. In other words, in the case where a noise waveform corresponding to a time-discontinuous noise signal is included in the waveform of a sample in a frame, the insertion / deletion unit 33 makes the sample corresponding to the noise waveform a target to be inserted or deleted.
[0092] For example, the insertion / deletion unit 33 can detect the noise signal by calculating the variance and correlation of the frequency components of the frame, the difference between the maximum value and the minimum value or the average value of the frequency components (frequency component difference), and the like.
[0093] <Insert / Delete Processing>
[0094] The insertion / deletion process is performed on the target to be inserted or deleted. Specifically, the insertion / deletion unit 33 performs the insertion / deletion process on the sample as the target to be inserted or deleted determined by the low-frequency signal detection process, the tone signal detection process, the attack signal detection process, and the noise signal detection process. Figure 7 and Figure 8The insertion process and the deletion process of the sample are shown.
[0095] First, refer to Figure 7 Describes the deletion process. Figure 7 In the example, it is assumed that samples SA4 to SA6 are determined as targets to be inserted or deleted. In this case, the insertion / deletion unit 33 deletes one of the samples SA4 to SA6 to be inserted or deleted. Figure 7 A case where the sample SA5 is to be deleted is shown.
[0096] like Figure 7 As shown, in the case of deleting sample SA5, the insertion / deletion unit 33 advances the positions of samples SA6 to SA8 to after sample SA5. That is, the insertion / deletion unit 33 moves sample SA6 forward to the position where sample SA5 is deleted, moves sample SA7 forward to the position of sample SA6, and moves sample SA8 forward to the position of sample SA7. Figure 7 A case where one sample SA5 is deleted is shown, but two or more samples may be deleted, or all three samples SA4 to SA6 may be deleted.
[0097] Next, we will refer to Figure 8 Describes the insert process. Figure 8 In the example, it is assumed that samples SA4 to SA6 are determined as targets to be inserted or deleted. In this case, the insertion / deletion unit 33 inserts a sample between SA4 and SA6 to be inserted or deleted, for example.
[0098] Specifically, the insertion / deletion unit 33 inserts a new sample SAn between the sample SA5 and the sample SA6 on the approximation line AL. More specifically, the insertion / deletion unit 33 inserts the sample SAn into the position of the sample SA6, and moves the samples SA6 to SA8 after the sample SA6. That is, the insertion / deletion unit 33 moves the sample SA6 backward to the position where the sample SA7 is deleted, moves the sample SA7 backward to the position of the sample SA8, and moves the sample SA8 to the position of the next sample SA8.
[0099] exist Figure 8 In the example, the new sample SAn is inserted between samples SA5 and SA6, however, the sample SAn may be inserted between samples SA4 and SA5, or the sample SAn may be inserted between samples SA5 and SA6 and between samples SA4 and SA5. In addition, it is not limited to the case where the new sample SAn is inserted between samples SA4 to SA6, and the new sample SAn may be inserted between samples SA3 and SA4 or between samples SA6 and SA7.
[0100] also, Figure 8A case where the new sample SAn is inserted onto the approximate line AL is shown, however, for example, an average value of the signal levels of the samples SA4 to SA6 may be used as the value of the new sample SAn.
[0101] <Noise Check Processing>
[0102] The noise check process checks whether noise occurs in the frame on which the insertion / deletion process has been performed. Specifically, the insertion / deletion unit 33 compares the frame before the insertion / deletion process (i.e., the data frame received from the data transmission device 100) with the frame after the insertion / deletion process, and checks whether noise occurs in the frame after the insertion / deletion process. Then, in the case where noise does not occur in the frame after the insertion / deletion process, the insertion / deletion unit 33 replaces the frame before the insertion / deletion process stored in the LPCM buffer 42 with the frame after the insertion / deletion process.
[0103] On the other hand, in the case where the high-frequency noise check or the pitch gain check described later detects the occurrence of noise, the insertion / deletion unit 33 maintains the frame before the insertion / deletion process stored in the LPCM buffer 42. That is, in the case where noise occurs in the frame after the insertion / deletion process, the insertion / deletion unit 33 prohibits the frame before the insertion / deletion process stored in the LPCM buffer 42 from being replaced with the frame after the insertion / deletion process. In other words, in the case where it is determined that noise occurs in the data after the insertion / deletion process based on the result obtained by comparing the data (frame) before and after the insertion / deletion process at the time of the insertion / deletion process, the insertion / deletion unit 33 makes the data before the insertion / deletion process the target to be output. The target to be output is the data to be read and output from the LPCM buffer 42 by the conversion unit 34 described later.
[0104] Hereinafter, the high-frequency noise check and the pitch gain check will be described.
[0105] The high-frequency noise check is a process for evaluating whether the insertion / deletion process generates high-frequency noise. Specifically, the insertion / deletion unit 33 first applies a high-pass filter (HPF) to each of the frame before the insertion and deletion and the frame after the insertion and deletion to extract a high-pass signal. Note that the frequency through which the HPF passes can be set arbitrarily and is set based on the high-frequency noise to be detected.
[0106] Subsequently, the insertion / deletion unit 33 calculates the root mean square (RMS) value of the extracted high-frequency signal and calculates the ratio of the RMS values in the frame before and after the insertion / deletion process. For example, when the RMS value in the frame after the insertion / deletion process is RMS1 and the RMS value in the frame before the insertion / deletion process is RMS2, the ratio of the RMS values is calculated to be RMS1 / RMS2.
[0107] When the ratio of the RMS values exceeds a predetermined threshold value (e.g., 5), the insertion / deletion unit 33 determines that high-frequency noise has occurred in the frame after the insertion / deletion process. On the other hand, when the ratio of the RMS values is equal to or less than the predetermined threshold value, the insertion / deletion unit 33 determines that high-frequency noise has not occurred in the frame after the insertion / deletion process.
[0108] Next, the pitch gain check is a process of evaluating whether a pitch capability signal having a strong pitch capability is included in the low frequency band of the frame. In the case of the pitch capability signal, it has been found through experiments, etc. that when the insertion / deletion process is performed, the human hearing may perceive an abnormal sound. Therefore, the insertion / deletion unit 33 detects the pitch capability signal as noise.
[0109] For example, Figure 5 The frame shown includes a pitch capability signal and has a flat portion around each of 340, 390, and 440 samples, and the periphery of the 440 samples is the target to be inserted or deleted. However, when performing the operation as shown on the periphery of the 440 samples Figure 7 and 8 During the insertion / deletion processing shown, the flat portion becomes longer or shorter, so that pitch fluctuation occurs and abnormal noise may be felt. Regarding the detection of the pitch high-force signal, for example, a low-pass filter (LPF) is applied to the frame before and after the insertion / deletion processing to extract the low-frequency signal, and then linear prediction coding (LPC) is applied to the low-frequency signal, and it is determined based on the finally obtained signal whether the pitch gain is equal to or greater than a predetermined threshold.
[0110] For example, when the pitch gain in the signal after LPC exceeds a predetermined threshold, the insertion / deletion unit 33 detects the pitch capability signal as noise, and when the pitch gain is equal to or less than the predetermined threshold, determines that the pitch capability signal is not included.
[0111] <Resume Processing>
[0112] The restoration process is a process of adjusting the sampling rate (corresponding to the clock frequency) in a case where there is no target to be inserted or deleted due to the above-mentioned low-frequency signal detection process, tone signal detection process, attack signal detection process, and noise signal detection process (although the insertion / deletion process is necessary), in a case where the insertion / deletion process cannot be performed on the target to be inserted or deleted due to the noise check process. That is, in the restoration process, the sampling rate adjustment is performed on the frame.
[0113] Specifically, the sampling rate adjustment is a process of converting the sampling rate of a frame into a designated value through a digital filtering process.
[0114] Here, it is assumed that the frames stored in the LPCM buffer 42 are sampled at a rate of 48000 Hz in the data transmission device 100. Under such conditions, for example, in the case where insertion processing is required, the frames with a sampling rate of 48000 Hz are converted into frames with a sampling rate of 48010 Hz by sampling rate adjustment, and on the other hand, in the case where deletion processing is required, the frames with a sampling rate of 48000 Hz are converted into frames with a sampling rate of 47990 Hz.
[0115] More specifically, the insertion / deletion unit 33 performs a sampling rate conversion process using a finite impulse response (FIR) filter. For example, in the case where the frames for which the insertion / deletion process cannot be performed are a predetermined number or more of continuous frames, the insertion / deletion unit 33 performs a sampling rate conversion process by the FIR filter. In other words, in the case where the frames without a target to be inserted or deleted are a predetermined number or more of continuous frames, the insertion / deletion unit 33 increases or decreases the number of samples to be output in the frame based on the number of samples that need to be subjected to the insertion / deletion process.
[0116] The conversion unit 34 reads the LPCM data stored in the LPCM buffer 42 in the order of the storage time, performs DA conversion, and outputs the converted LPCM data.
[0117] <<4. Flowchart of data processing>>
[0118] Next, we will refer to Figures 9 to 11 The procedure of processing performed by the data processing device 1 according to the embodiment is described. Fig. 9 : is a flowchart showing the procedure of the entire processing performed by the data processing device 1 according to the embodiment. Fig.10 : is a flowchart showing the procedure of low-frequency signal detection processing performed by the data processing device 1 according to the embodiment. Fig.11 : is a flowchart showing the procedure of the noise inspection process performed by the data processing device 1 according to the embodiment.
[0119] First, refer to Fig. 9 The procedure of the entire processing performed by the data processing device 1 according to the embodiment is described.
[0120] like Fig. 9 As shown, the insertion / deletion unit 33 first reads the LPCM data stored in the LPCM buffer 42 and performs low-frequency signal detection processing (step S101).
[0121] Subsequently, the insertion / deletion unit 33 performs a tone signal detection process on the frame detected by the low-frequency signal detection process as a target to be inserted or deleted (step S102).
[0122] Subsequently, the insertion / deletion unit 33 determines whether a target to be inserted or deleted has been detected from the frame through the tone signal detection process, that is, whether the frame can be inserted and deleted (step S103).
[0123] Subsequently, in the case where the insertion / deletion unit 33 determines that the frame can be inserted and deleted (step S103: Yes), the insertion / deletion unit 33 performs insertion / deletion processing on the target to be inserted or deleted in the frame (step S104).
[0124] Subsequently, the insertion / deletion unit 33 performs a noise check process by comparing the frame before the insertion / deletion process and the frame after the insertion / deletion process (step S105 ).
[0125] Subsequently, when detecting that the noise check processing generates no noise, the insertion / deletion unit 33 performs buffer replacement processing (step S106) of replacing the frame as LPCM data stored in the LPCM buffer 42 with the frame after the insertion / deletion processing, and ends the processing.
[0126] Meanwhile, in step S103, in the case where the insertion / deletion unit 33 determines that a frame cannot be inserted and deleted (step S103: No), the insertion / deletion unit 33 performs attack signal detection processing on such a frame (step S107).
[0127] Subsequently, the insertion / deletion unit 33 determines whether the attack signal detection process has detected an attack signal that is a target to be inserted or deleted, that is, whether the frame can be inserted and deleted (step S108).
[0128] In the case where the insertion / deletion unit 33 determines that the frame can be inserted and deleted (step S108 : Yes), the insertion / deletion unit 33 performs the process of step S104 .
[0129] Meanwhile, in the case where the insertion / deletion unit 33 determines that a frame cannot be inserted and deleted (step S108: No), the insertion / deletion unit 33 performs a noise signal detection process on such a frame (step S109).
[0130] Subsequently, the insertion / deletion unit 33 determines whether the noise signal detection process has detected a noise signal that is a target to be inserted or deleted, that is, whether the frame can be inserted and deleted (step S110).
[0131] In the case where the insertion / deletion unit 33 determines that the frame can be inserted and deleted (step S110 : Yes), the insertion / deletion unit 33 performs the process of step S104 .
[0132] Meanwhile, in the case where the insertion / deletion unit 33 determines that a frame cannot be inserted and deleted (step S110: No), the insertion / deletion unit 33 performs a restoration process on such a frame (step S111), and ends the process.
[0133] Next, we will refer to Fig.10 The procedure of the low-frequency signal detection processing performed by the data processing device 1 according to the embodiment is described.
[0134] In the low-frequency signal detection process, the insertion / deletion unit 33 first performs a sorting process on samples included in a frame in ascending or descending order according to the absolute values of the signal levels (step S201 ).
[0135] Subsequently, the insertion / deletion unit 33 extracts samples whose signal levels are less than a predetermined value based on the classification processing, performs a selection process of selecting three samples including the extracted sample and samples located before and after the sample, and when the signs of the signal levels of the three selected samples are reversed, further performs an exclusion process of excluding the three samples (step S202).
[0136] Subsequently, the insertion / deletion unit 33 calculates an approximate line based on the selected three samples (step S203 ).
[0137] Subsequently, the insertion / deletion unit 33 determines whether the slope of the calculated approximate line is smaller than a predetermined threshold value (step S204 ).
[0138] Subsequently, when the slope of the approximation line based on the three samples is smaller than a predetermined threshold value (step S204: Yes), the insertion / deletion unit 33 sets the three samples as targets of insertion / deletion processing (targets to be inserted or deleted) (step S205), and ends the processing.
[0139] Subsequently, when the slope of the approximate line based on the three samples is equal to or greater than a predetermined threshold (step S204: No), the insertion / deletion unit 33 sets the three samples as non-targets (targets not to be inserted or deleted) of the insertion / deletion processing (step S206), and ends the processing.
[0140] Next, we will refer to Fig.11 The procedure of the noise check process performed by the data processing device 1 according to the embodiment is described.
[0141] In the noise check process, first, the insertion / deletion unit 33 performs HPF processing on a frame which is data before and after the insertion / deletion process (step S301).
[0142] Subsequently, the insertion / deletion unit 33 performs a process of calculating an RMS value based on the high-frequency signal extracted by the HPF process performed on the frames before and after the insertion / deletion process (step S302 ).
[0143] Subsequently, the insertion / deletion unit 33 determines whether the ratio of the RMS value based on the frame after the insertion / deletion process to the RMS value based on the frame before the insertion / deletion process exceeds a predetermined threshold value (step S303).
[0144] If the ratio of the RMS values exceeds the predetermined threshold value (step S303 : Yes), the insertion / deletion unit 33 determines that noise (high-frequency noise) is present (step S304 ).
[0145] Subsequently, when the insertion / deletion unit 33 determines that there is noise, the insertion / deletion unit 33 maintains the frame stored in the LPCM buffer 42, that is, prohibits replacement with the frame after the insertion / deletion process (step S305), and ends the process.
[0146] On the other hand, in step S303, in a case where the ratio of the RMS values is equal to or smaller than the predetermined threshold value (step S303: No), the insertion / deletion unit 33 performs LPF processing on the frame which is data before the insertion / deletion processing (step S306).
[0147] Subsequently, the insertion / deletion unit 33 performs LPC processing on the low-frequency signal extracted by the LPF processing (step S307 ).
[0148] Subsequently, the insertion / deletion unit 33 determines whether the pitch gain is equal to or greater than a predetermined threshold value based on the LPC-processed signal (step S308 ).
[0149] In the case where the pitch gain is equal to or greater than the predetermined threshold value (step S308: Yes), the insertion / deletion unit 33 performs the process of step S304. On the contrary, in the case where the pitch gain is less than the predetermined threshold value (step S308: No), the insertion / deletion unit 33 replaces the frame stored in the LPCM buffer 42 with the frame after the insertion / deletion process (step S309), and ends the process.
[0150] <<5. Modification>>
[0151] In the above-mentioned data processing system S, a configuration including one data processing device 1 and one data transmission device 100 has been described. However, a plurality of data processing devices 1 may be provided. In this case, one data processing device 1 performs insertion / deletion processing to synchronize with another data processing device 1. Figures 12A to 13B Describe this.
[0152] Fig. 12A and 12B is a block diagram showing the configuration of data processing devices 1 a and 1 b according to a modification. Fig. 12A and 12BThe two data processing devices 1a and 1b shown are communicably connected to each other and to the data transmission device 100. Furthermore, the two data processing devices 1a and 1b are, for example, wireless headphones, and specifically, are completely independent headphones that are not connected in a wired manner (e.g., left and right cords).
[0153] In the following, Fig. 12A The data processing device 1a shown is referred to as a first data processing device 1a. Fig. 12B The data processing device 1 b shown is referred to as second data processing device 1 b .
[0154] like Fig. 12A As shown, the first data processing device 1a according to the modified example further includes a deviation calculation unit 35a. Fig. 12B As shown, the second data processing device 1b according to the modified example further includes an insertion / deletion amount calculation unit 36b. Note that the first data processing device 1a may further include the insertion / deletion amount calculation unit 36b, and may include the insertion / deletion amount calculation unit 36b instead of the deviation calculation unit 35a. In addition, the second data processing device 1b may further include the deviation calculation unit 35a, and may include the deviation calculation unit 35a instead of the insertion / deletion amount calculation unit 36b.
[0155] The deviation calculation unit 35a calculates the deviation amount of the frequency clock between the data transmission device 100 and the first data processing device 1a. For example, the deviation calculation unit 35a calculates the difference between the amount of data (number of samples) received from the data transmission device 100 and the amount of data (number of samples) output from the first data processing device 1a as the deviation amount. Alternatively, the deviation calculation unit 35a may calculate the data consumption amount of the LPCM buffer 42a as the deviation amount. The data consumption amount is the difference between the number of samples input to the LPCM buffer 42 from the decoding processing unit 32a and the number of samples read from the LPCM buffer 42a by the conversion unit 34a.
[0156] The deviation calculation unit 35 a outputs deviation information indicating the calculated deviation amount to the second data processing device 1 b via the communication unit 2 a .
[0157] The insertion / deletion amount calculation unit 36b in the second data processing device 1b calculates the insertion / deletion amount of the insertion / deletion processing in the insertion / deletion unit 33b based on the deviation information received from the first data processing device 1a. For example, the insertion / deletion amount calculation unit 36b calculates the deviation amount in the deviation information as the insertion / deletion amount. The deviation amount is expressed in the number of samples.
[0158] The insertion / deletion amount calculation unit 36b notifies the insertion / deletion unit 33b of the information on the calculated insertion / deletion amount. Then, the insertion / deletion unit 33b performs insertion / deletion processing based on the insertion / deletion amount acquired from the insertion / deletion amount calculation unit 36b. Fig.13A and 13B A specific example of processing by the data processing system S according to the modification example is described.
[0159] Fig.13A and 13B 1 is a diagram showing a specific example of processing performed by the data processing system S according to a modification. Fig.13A As shown, it is assumed that the clock frequency is 48000 Hz in the data transmission device 100, 47990 Hz in the first data processing device 1a, and 48010 Hz in the second data processing device 1b. Fig. 13B The transition over time of the data accumulation amounts of the LPCM buffers 42a and 42b in the first data processing device 1a and the second data processing device 1b is shown.
[0160] like Fig. 13B As shown in the lower part of FIG. 1 , if the second data processing device 1b is not synchronized with the first data processing device 1a and the insertion / deletion process is not performed, the data accumulation amount of the LPCM buffer 42b in the second data processing device 1b gradually decreases relative to the number of initial charge samples ( Fig. 13B On the other hand, the number of the first data processing device 1a relative to the initial charge sample gradually increases. That is, since the first data processing device 1a and the second data processing device 1b are not synchronized with each other, the reproduced sounds are inconsistent with each other. Then, in this case, due to the Haas effect, the sound image moves, and the viewer feels an error.
[0161] Therefore, in the data processing system S according to the modified example, the second data processing device 1 b acquires the clock frequency deviation amount from the first data processing device 1 a , thereby performing insertion / deletion processing for synchronization with the first data processing device 1 a .
[0162] Specifically, first, since the data transmission device 100 is 48000 Hz and the first data processing device 1a is 47990 Hz, the deviation calculation unit 35a of the first data processing device 1a calculates -208 ppm corresponding to -10 Hz as the difference in clock frequency as the deviation amount. That is, the first data processing device 1a delays the data transmission device 100 by the number of samples corresponding to 208 ppm.
[0163] Then, the second data processing device 1b acquires the deviation information of -208ppm as the deviation amount from the first data processing device 1a, and calculates the insertion / deletion amount. Specifically, first, since the second data processing device 1b is 48010Hz and the data transmission device 100 is 48000Hz, the insertion / deletion amount calculation unit 36b of the second data processing device 1b calculates 208ppm corresponding to 10Hz as the difference in clock frequency as the deviation amount. That is, the second data processing device 1b advances the number of samples corresponding to 208ppm relative to the data transmission device 100. In other words, the second data processing device 1b advances the number of samples corresponding to 416ppm relative to the first data processing device 1a.
[0164] Subsequently, the insertion / deletion amount calculation unit 36b calculates the insertion / deletion amount (sample number) for synchronization with the first data processing device 1a based on the deviation amount of the first data processing device 1a and the deviation amount of the second data processing device 1b. That is, since the data consumption amount of the second data processing device 1b is larger than the data consumption amount of the first data processing device 1a by the sample number corresponding to 416ppm, the insertion / deletion amount calculation unit 36b calculates the sample number corresponding to 416ppm as the insertion amount. Then, the insertion / deletion unit 33b performs the insertion / deletion processing of the sample number, which is the insertion amount. That is, the insertion / deletion unit 33b obtains the clock frequency difference between the first data processing device 1a (another data processing device to be synchronized) and the second data processing device 1b (data processing device), and performs the insertion / deletion processing as many samples as the number corresponding to the difference.
[0165] Results, such as Fig. 13B As shown in the lower part of , by performing the insertion process on the number of samples corresponding to 416ppm, the insertion / deletion unit 33b in the second data processing device 1b can be synchronized with the first data processing device 1a. Fig. 13B In the embodiment, the data accumulation amounts of the LPCM buffers 42a and 42b are synchronized.
[0166] Then, at time t1, when the LPCM buffer 42a becomes equal to or greater than the threshold value TH1, the first data processing device 1a is saturated, and therefore, the deletion process is performed after time t1. Fig. 13B , the insertion / deletion unit 33a of the first data processing device 1a deletes the number of samples corresponding to 20 Hz. As a result, with respect to the data amount of 48000 Hz received from the data transmission device 100, the data amount (number of samples) corresponding to 48010 Hz is consumed together with the data consumption amount of 20 Hz and the deletion amount of 47990 Hz of the first data processing device 1a. As a result, after time t1, the data accumulation amount of the LPCM buffer 42a in the first data processing device 1a gradually decreases.
[0167] Furthermore, at time t1, since the second data processing device 1b is synchronized with the first data processing device 1a, the LPCM buffer 42a becomes equal to or greater than the threshold value TH1, and the LPCM buffer 42a is saturated. Then, the second data processing device 1b follows the first data processing device 1a and performs synchronization so that the amount of data (number of samples) corresponding to 48010 Hz is consumed. That is, after time t1, since the second data processing device 1b follows the first data processing device 1a, the second data processing device 1b does not perform insertion / deletion processing.
[0168] As described above, by acquiring the deviation information from the first data processing device 1a and calculating the insertion / deletion amount, the second data processing device 1b can be synchronized with the first data processing device 1a and the data transmission device 100 with high accuracy.
[0169] <<6. Hardware Configuration Example>>
[0170] Then, reference will be made to Fig.14 An example of the hardware configuration of the data processing device 1 and the like according to the present embodiment is described. Fig.14 : is a block diagram showing an example of the hardware configuration of the data processing device 1 according to the present embodiment.
[0171] like Fig.14 As shown, the data processing device 1 includes a central processing unit (CPU) 901, a read-only memory (ROM) 902, a random access memory (RAM) 903, a host bus 905, a bridge 907, an external bus 906, an interface 908, an input device 911, an output device 912, a storage device 913, a drive 914, a connection port 915, and a communication device 916. Instead of the CPU 901 or in addition to the CPU 901, the information processing device 20 may include a processing circuit such as a circuit, a DSP, or an ASIC.
[0172] The CPU 901 functions as an arithmetic processing device and a control device, and controls the overall operation in the data processing device 1 according to various programs. In addition, the CPU 901 may be a microprocessor. The ROM 902 stores programs, operation parameters, and the like used by the CPU 901. The RAM 903 temporarily stores programs used in the execution of the CPU 901, parameters that change appropriately in the execution, and the like. The CPU 901 can perform functions as, for example, the demodulation unit 31, the decoding processing unit 32, the insertion / deletion unit 33, and the conversion unit 34.
[0173] The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a host bus 905 including a CPU bus, etc. The host bus 905 is connected to an external bus 906 such as a peripheral component interconnect / interface (PCI) bus via a bridge 907. Note that the host bus 905, the bridge 907, and the external bus 906 do not necessarily need to be configured separately, and these functions may be implemented on one bus.
[0174] The input device 911 is a device to which a user inputs information, such as a mouse, a keyboard, a touch panel, a button, a microphone, a switch, and a lever. Alternatively, the input device 911 may be a remote control device using infrared or other radio waves, for example, or may be an external connection device corresponding to the operation of the data processing device 1, such as a mobile phone or a PDA. In addition, the input device 911 may include, for example, an input control circuit, etc., which generates an input signal based on the information input by the user using the above-mentioned input device.
[0175] The output device 912 is a device capable of visually or auditorily notifying the user of information. The output device 912 includes display devices such as cathode ray tube (CRT) display devices, liquid crystal display devices, plasma display devices, electroluminescent (EL) display devices, laser projectors, light emitting diode (LED) projectors and lamps, audio output devices such as speakers and headphones, printer devices, etc.
[0176] The output device 912 outputs, for example, results obtained by various types of processing performed by the data processing device 1. Specifically, the output device 912 visually displays the results obtained by various types of processing performed by the data processing device 1 in various formats such as text, images, tables, and graphs. Alternatively, the output device 912 may convert an audio signal including reproduced audio data, acoustic data, etc. into an analog signal and audibly output the analog signal. For example, the input device 911 and the output device 912 may perform the function of an interface.
[0177] The storage device 913 is a data storage device formed as an example of the storage unit 4 of the data processing apparatus 1. The storage device 913 can be implemented by, for example, a magnetic storage unit device, such as a hard disk drive (HDD), a semiconductor storage device, an optical storage device, a magneto-optical storage device, etc. The storage device 913 may include, for example, a storage medium, a recording device that records data in the storage medium, a reading device that reads data from the storage medium, a deletion device that deletes data recorded in the storage medium, etc. The storage device 913 stores a program executed by the CPU 901, various data, various data acquired from the outside, etc. The storage device 913 can perform, for example, a function as the frame buffer 41 or the LPCM buffer 42.
[0178] The drive 914 is a reader / writer for a storage medium, and is built in or externally attached to the data processing apparatus 1. The drive 914 reads out information recorded in a removable storage medium such as an installation disk, an optical disk, a magneto-optical disk, or a semiconductor memory, and outputs the information to the RAM 903. Furthermore, the drive 914 can also write information to a removable storage medium.
[0179] The connection port 915 is an interface connected to an external device. For example, the connection port 915 is a connection port to an external device capable of transmitting data through a universal serial bus (USB) or the like.
[0180] The communication device 916 is, for example, an interface including a communication device for connecting to the network 920, etc. The communication device 916 may be, for example, a communication card for a wired or wireless local area network (LAN), long term evolution (LTE), Bluetooth (registered trademark), wireless USB (WUSB), etc. In addition, the communication device 916 may also be a router for optical communication, a router for an asymmetric digital subscriber line (ADSL), a modem for various communications, etc. The communication device 916 may send and receive signals, etc. according to a predetermined protocol (e.g., TCP / IP, etc.) with the Internet or other communication devices.
[0181] Note that the network 40 is a wired or wireless transmission path for information. For example, the network 40 may include the Internet, a public network such as a telephone network, a satellite communication network, various local area networks (LANs) including Ethernet (registered trademark), a wide area network (WAN), etc. In addition, the network 920 may include a leased line network such as an Internet Protocol Virtual Private Network (IP-VPN).
[0182] Note that a computer program may be created for causing hardware (e.g., CPU, ROM, and RAM) built into data processing device 1 to exhibit functions equivalent to the corresponding configurations of data processing device 1 according to the present embodiment described above. In addition, a storage medium storing the computer program may be provided.
[0183] In the processing described in the embodiments, all or part of the processing described as automatic processing can be performed manually, or all or part of the processing described as manual processing can be automatically performed by known methods. In addition, unless otherwise specified, the processing procedures, specific names, and information including various data and parameters indicated in the document and the drawings can be changed arbitrarily. For example, the various types of information shown in the drawings are not limited to the information shown.
[0184] In addition, the constituent elements of each device shown in the drawings are conceptual in function and are not necessarily physically configured as shown in the drawings. Specifically, the specific form of distribution and integration of the devices is not limited to the form shown in the drawings, and all or part of them can be configured by functionally or physically distributing and integrating in arbitrary units according to various loads, usage conditions, etc.
[0185] Furthermore, the above-described embodiments can be appropriately combined to the extent that the processing contents do not contradict each other. Furthermore, the order of each step shown in the flowcharts and sequence diagrams of the above-described embodiments can be appropriately changed.
[0186] <<7. Conclusion>>
[0187] As described above, the data processing device 1 includes a signal processing unit (demodulation unit 31 and decoding processing unit 32) and an insertion / deletion unit 33. The signal processing unit performs predetermined signal processing (demodulation processing and decoding processing) on wirelessly received data for each frame including a predetermined number of samples, and stores the data in a buffer (frame buffer 41 and LPCM buffer 42). In the case where the amount of data accumulated in the buffer exceeds a predetermined range, the insertion / deletion unit 33 performs an insertion / deletion process of inserting or deleting data in units of samples.
[0188] As a result, compared with the case in which insertion / deletion processing is performed in units of frames in the related art, by performing insertion / deletion processing in units of samples, fluctuations of the buffer can be followed in units of samples, and therefore data output interruptions can be suppressed with high accuracy.
[0189] Furthermore, in the case where the slope of the approximation line AL calculated based on a predetermined number of consecutive samples is smaller than a predetermined threshold value, the insertion / deletion unit 33 makes the predetermined number of consecutive samples targets to be inserted or deleted in the frame.
[0190] As a result, since the insertion / deletion processing can be performed on samples with little signal level change, it is possible to suppress the false feeling given to people by the insertion / deletion processing. Therefore, for example, in the case of acoustic data, it is possible to make it difficult for people to perceive abnormal noise.
[0191] Furthermore, the insertion / deletion unit 33 sets a continuous predetermined number of samples whose signal levels are smaller than a predetermined value as targets to be inserted or deleted.
[0192] As a result, since the insertion / deletion process can be performed on samples with smaller output, the false feeling given to people by the insertion / deletion process can be suppressed. Therefore, for example, in the case of acoustic data, since the volume is relatively low, it may be difficult for people to perceive abnormal noise.
[0193] Furthermore, in the case where the signs of a predetermined number of consecutive samples are inverted, the insertion / deletion unit 33 excludes the predetermined number of consecutive samples from targets to be inserted or deleted.
[0194] As a result, it is possible to suppress execution of insertion / deletion processing on samples that should not originally be targets to be inserted or deleted.
[0195] Furthermore, the insertion / deletion unit 33 excludes frames whose samples have a pitch waveform corresponding to the pitch signal from targets to be inserted or deleted.
[0196] As a result, it is possible to suppress the insertion / deletion processing from being performed on a special signal (eg, a tone signal).
[0197] Furthermore, in the case where a frame includes an attack waveform in which a variation in the signal level of a sample is equal to or greater than a predetermined value, the insertion / deletion unit 33 makes the sample corresponding to the attack waveform a target to be inserted or deleted.
[0198] As a result, since the insertion / deletion process is performed on the attack signal as a mask, a sense of error to the data output by the insertion / deletion process can be suppressed by being masked by the attack signal.
[0199] Furthermore, in the case where a temporally discontinuous noise waveform is included in the waveform of the samples in the frame, the insertion / deletion unit 33 makes the samples corresponding to the noise waveform a target to be inserted or deleted.
[0200] As a result, since the insertion / deletion process is performed on the noise signal, a sense of error on the data output by the insertion / deletion process can be suppressed by being masked by the noise signal.
[0201] Furthermore, in the case where frames without targets to be inserted or deleted are a predetermined number or more of continuous frames, the insertion / deletion unit 33 increases or decreases the number of samples to be output in the frame based on the number of samples that need to be subjected to the insertion / deletion process.
[0202] As a result, in a case where a target to be inserted or deleted is not found regardless of the necessity of the insertion / deletion processing, saturation and shortage of the buffer can be suppressed by adjusting the sampling rate.
[0203] Furthermore, in the case where it is determined that noise occurs in the data after the insertion / deletion processing based on the result obtained by comparing the data before and after the insertion / deletion processing at the time of the insertion / deletion processing, the insertion / deletion unit 33 makes the data before the insertion / deletion processing a target to be output.
[0204] As a result, it is possible to determine whether or not noise perceived by humans is newly generated by the insertion / deletion process, and therefore, it is possible to output only data of the insertion / deletion process which is difficult for humans to perceive.
[0205] Furthermore, the insertion / deletion unit 33 acquires a clock frequency difference between the data processing device and another data processing device to be synchronized, and performs insertion / deletion processing as many as the number of samples corresponding to the difference.
[0206] As a result, a clock frequency deviation from another device (another data processing apparatus 1) can be compensated by the insertion / deletion process, and thus synchronization with another device can be performed with high accuracy.
[0207] Although the embodiments of the present disclosure have been described above, the technical scope of the present disclosure is not limited to the embodiments described above, and various modifications can be made without departing from the gist of the present disclosure. In addition, constituent elements of different embodiments and modified examples can be appropriately combined.
[0208] Furthermore, the effects of the embodiments described in this specification are merely examples and not limitations, and other effects may be provided.
[0209] Note that the present technology may also have the following configurations.
[0210] (1) A data processing device comprising:
[0211] a signal processing unit configured to perform predetermined signal processing for each frame having a predetermined number of samples on the wirelessly received data and store the signal-processed data in a buffer; and
[0212] An insertion / deletion unit configured to perform an insertion / deletion process of inserting or deleting data for each sample when the amount of data accumulated in the buffer exceeds a predetermined range.
[0213] (2) The data processing device according to (1) above,
[0214] Wherein, the insertion / deletion unit
[0215] In a case where the slope of the approximation line calculated based on a predetermined number of consecutive samples is smaller than a predetermined threshold value, the predetermined number of consecutive samples are made targets to be inserted or deleted in the frame.
[0216] (3) The data processing device according to (2) above,
[0217] Wherein, the insertion / deletion unit
[0218] A predetermined number of consecutive samples whose signal level is smaller than a predetermined value are targeted for insertion or deletion.
[0219] (4) The data processing device according to (2) or (3) above,
[0220] Wherein, the insertion / deletion unit
[0221] In the case where the signs of a predetermined number of consecutive samples are reversed, the predetermined number of consecutive samples are excluded from the targets to be inserted or deleted.
[0222] (5) The data processing device according to any one of (1) to (4) above,
[0223] Wherein, the insertion / deletion unit
[0224] Frames whose samples have a pitch waveform corresponding to a pitch signal are excluded from targets to be inserted or deleted.
[0225] (6) The data processing device according to any one of (1) to (5) above,
[0226] Wherein, the insertion / deletion unit
[0227] Samples corresponding to an attack waveform included in a frame, which has a signal level variation of samples equal to or greater than a predetermined value, are targeted for insertion or deletion.
[0228] (7) The data processing device according to any one of (1) to (6) above,
[0229] Wherein, the insertion / deletion unit
[0230] Samples corresponding to a time-discontinuous noise waveform in the waveform of samples included in the frame are made targets to be inserted or deleted.
[0231] (8) The data processing device according to any one of (1) to (7) above,
[0232] Wherein, the insertion / deletion unit
[0233] In the case where frames without targets to be inserted or deleted are a predetermined number or more of continuous frames, the number of samples to be output in the frame is increased or decreased based on the number of samples that need to be subjected to the insertion / deletion process.
[0234] (9) The data processing device according to any one of (1) to (8) above,
[0235] Wherein, the insertion / deletion unit
[0236] In the case where it is determined that noise occurs in the data after the insertion / deletion process based on a result obtained by comparing the data before and after the insertion / deletion process at the time of the insertion / deletion process, the data before the insertion / deletion process is made a target to be output.
[0237] (10) The data processing device according to any one of (1) to (9) above,
[0238] Wherein, the insertion / deletion unit
[0239] A clock frequency difference between a data processing device and another data processing device to be synchronized is acquired, and insertion / deletion processing is performed as many times as the number of samples corresponding to the difference.
[0240] (11) A data processing method comprising:
[0241] performing predetermined signal processing for each frame having a predetermined number of samples on wirelessly received data, and storing the signal-processed data in a buffer; and
[0242] In a case where the amount of data accumulated in the buffer exceeds a predetermined range, an insertion / deletion process of inserting or deleting data of each sample is performed.
[0243] (12) a computer-readable data processing program,
[0244] Causes the computer to function as:
[0245] a signal processing unit configured to perform predetermined signal processing for each frame having a predetermined number of samples on the wirelessly received data and store the signal-processed data in a buffer; and
[0246] An insertion / deletion unit configured to perform an insertion / deletion process of inserting or deleting data of each sample in a case where the amount of data accumulated in the buffer exceeds a predetermined range.
[0247] Reference numerals list
[0248] 1Data processing equipment
[0249] 2. 200 communication units
[0250] 3.300 control unit
[0251] 4.400 storage units
[0252] 31, 31a, 31b demodulation unit
[0253] 32, 32a, 32b decoding processing unit
[0254] 33, 33a, 33b Insertion / deletion unit
[0255] 34, 34a, 34b conversion unit
[0256] 35a Deviation calculation unit
[0257] 36b insertion / deletion calculation unit
[0258] 41 Frame Buffer
[0259] 42LPCM Buffer
[0260] 100 data transmission equipment
[0261] S data processing system.
Claims
1. A data processing device, include: a signal processing unit configured to perform predetermined signal processing for each frame having a predetermined number of samples on the wirelessly received data and store the signal-processed data in a buffer; as well as an inserting or deleting unit configured to, when the amount of the data accumulated in the buffer is outside a predetermined range, perform an inserting or deleting process of inserting or deleting the data for each sample, Wherein, when the slope of the approximation line calculated based on a predetermined number of consecutive samples is less than a predetermined threshold, the inserting or deleting unit makes the predetermined number of consecutive samples become targets to be inserted or deleted in the frame.
2. The data processing device according to claim 1, in, The inserting or deleting unit makes the continuous predetermined number of samples whose signal levels are smaller than a predetermined value become the targets to be inserted or deleted.
3. The data processing device according to claim 1, in, In a case where the signs of the continuous predetermined number of samples are reversed, the inserting or deleting unit excludes the continuous predetermined number of samples from the target to be inserted or deleted.
4. The data processing device according to claim 1, The inserting or deleting unit excludes a frame in which a pitch waveform of a sample corresponds to a pitch waveform of a pitch signal from a target to be inserted or deleted.
5. The data processing device according to claim 1, in, The inserting or deleting unit targets samples corresponding to an attack waveform included in a frame, the attack waveform having a signal level variation of samples equal to or greater than a predetermined value, to be inserted or deleted.
6. The data processing device according to claim 1, in, The inserting or deleting unit makes the samples corresponding to the time-discontinuous noise waveform contained in the waveform of the samples in the frame become the targets to be inserted or deleted.
7. The data processing device according to claim 1, in, In a case where frames without a target to be inserted or deleted are a predetermined number or more of continuous frames, the inserting or deleting unit increases or decreases the number of samples to be output in the frame based on the number of samples to be subjected to the inserting or deleting process.
8. The data processing device according to claim 1, In the case where the insertion or deletion processing is performed, when it is determined that noise occurs in the data after the insertion or deletion processing based on the result obtained by comparing the data before and after the insertion or deletion processing, the insertion or deletion unit uses the data before the insertion or deletion processing as a target to be output.
9. The data processing device according to claim 1, in, The inserting or deleting unit acquires a difference in clock frequency between the data processing device and another data processing device to be synchronized, and executes the inserting or deleting process as many times as the number of samples corresponding to the difference.
10. A data processing method, include: performing predetermined signal processing for each frame having a predetermined number of samples on wirelessly received data, and storing the signal-processed data in a buffer; as well as In a case where the amount of the data accumulated in the buffer is outside a predetermined range, for each of the samples, an insertion or deletion process of inserting or deleting the data is performed, wherein, in a case where the slope of an approximation line calculated based on a predetermined number of consecutive samples is less than a predetermined threshold, the predetermined number of consecutive samples are made targets to be inserted or deleted in a frame.
11. A computer-readable storage medium having a data processing program stored thereon, It is characterized in that When the data processing program is executed by the processor, the computer functions as: a signal processing unit configured to perform predetermined signal processing for each frame having a predetermined number of samples on the wirelessly received data and store the signal-processed data in a buffer; as well as an inserting or deleting unit configured to, when the amount of the data accumulated in the buffer is outside a predetermined range, perform an inserting or deleting process of inserting or deleting the data for each of the samples, Wherein, when the slope of the approximation line calculated based on a predetermined number of consecutive samples is less than a predetermined threshold, the inserting or deleting unit makes the predetermined number of consecutive samples become targets to be inserted or deleted in the frame.
