Phase difference spectrum estimation method, inter-channel relationship information estimation method, signal encoding method, signal processing method, and devices and programs therefor
By utilizing the characteristics of complex conjugate products and Fourier transform technology in channel signal processing, the phase difference spectrum between channels is efficiently estimated, which solves the problem of large computational processing volume in the existing technology and achieves an efficient method suitable for fixed-point operations. calculate.
Patent Information
- Application Number
- CN202280091560.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2024-09-06
AI Technical Summary
When calculating the phase difference spectrum of two channel signals, the existing technology requires a large amount of computational processing and is not suitable for fixed-point calculations, resulting in high power consumption and computational complexity.
By estimating the phase difference spectrum between channels, using the relationship between the real and imaginary parts of the complex conjugate product, selecting a method suitable for fixed-point operations, reducing square roots and division operations, and using Fourier transform and inverse Fourier transform to obtain the phase difference signal.
It achieves efficient estimation of the phase difference spectrum of two channel signals under conditions suitable for fixed-point calculations, reduces calculation processing volume and power consumption, and improves calculation efficiency.
Smart Images

Figure CN118613869A
Abstract
Description
Technical Field
[0001] The present invention is a technology for mixing, encoding, or processing signals of two channels using the relationship between the signals of the two channels to obtain phase difference spectra of the signals of the two channels. Background Art
[0002] As a technology for obtaining a phase difference spectrum of a sound signal of two channels, there is a technology described in Patent Document 1. Patent Document 1 mainly describes the following technology: a technology for mixing sound signals of multiple channels to obtain a sound signal, specifically, the following technology: a value indicating the magnitude of correlation of input sound signals of two channels and which of the input sound signals of the two channels precedes is obtained, and the larger the value indicating the magnitude of correlation, the larger the input sound signal of the preceding channel among the input sound signals of the two channels is included, so that the input sound signals of the two channels are weightedly added and a downmix (Down Mix, reduced mix) signal is obtained. Patent document 1 describes a technique for obtaining the time difference of the input sound signals of the two channels in order to determine which of the input sound signals of the two channels is in advance. As an example of the technique for obtaining the time difference of the input sound signals of the two channels, a phase difference spectrum in the frequency domain of the input sound signals of the two channels is obtained, and a phase difference signal of each time difference is obtained by performing an inverse Fourier transform by assigning each time difference as a candidate to the phase difference spectrum, and a time difference with the largest phase difference signal among the candidate time differences is obtained as the time difference of the input sound signals of the two channels. According to this technique, by using the phase difference spectrum of each frequency of the sound signals of the two channels, the time difference of the sound signals of the two channels can be obtained with minimal influence from the modulation structure or pitch component of the sound signals. That is, the technique for obtaining the phase difference spectrum of the sound signals of the two channels described in Patent document 1 is a technique useful for obtaining the time difference of the sound signals of the two channels, obtaining which of the sound signals of the two channels is in advance, or mixing, encoding, or processing signals using the relationship between the sound signals of any two channels.
[0003] Prior art literature
[0004] Patent Literature
[0005] Patent Document 1: International Publication No. 2021 / 181974
[0006] In order to obtain the phase difference spectrum of the signal of two channels by the technology described in patent document 1, it is necessary to divide each frequency by the square root of the sum of the squares of the real part and the imaginary part according to each of the multiple frequency spectra. The range of the value of the sum of squares is relatively large. When a general-purpose or dedicated processor is used to obtain the value of the sum of squares, it is necessary to perform floating-point operations that consume a lot of power, or to perform fixed-point operations that require a large amount of processing accompanied by additional processing such as alignment. In addition, in order to implement the calculation of the square root or division by the processor, it is necessary to perform, for example, about 30 times the amount of addition, subtraction, and multiplication. Therefore, in the technology for obtaining the phase difference spectrum of the signal of two channels described in patent document 1, there is a problem of high power consumption and / or high amount of processing when implemented by a processor. In other words, the technology for obtaining the phase difference spectrum of the signal of two channels described in patent document 1 has the problem of high amount of processing and not being oriented to fixed-point operations.
[0007] An object of the present invention is to provide a technique for estimating a phase difference spectrum of a two-channel signal by processing suitable for fixed-point calculation with a smaller amount of calculation processing than conventional techniques. Summary of the invention
[0008] Means for solving problems
[0009] One aspect of the present invention is a phase difference spectrum estimation method for estimating a phase difference spectrum φ(k) between a spectrum X1(k) of an input signal of a first channel and a spectrum X2(k) of an input signal of a second channel for a frequency k, including a phase difference spectrum estimation step, wherein the phase difference spectrum estimation step selects one of a plurality of representative values of phase difference spectra stored in a representative value storage unit based on the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of the product Y(k) of the complex conjugate  ̄X2(k) of the spectrum X1(k) of the first channel and the spectrum X2(k) of the second channel, and obtains the phase difference spectrum φ(k), wherein the representative values of the plurality of phase difference spectra are values on the circumference of a unit circle in a complex plane and have mutually different deflection angles in the complex plane.
[0010] One aspect of the present invention is a method for estimating information about the relationship between channels, including a phase difference spectrum estimation step of the above-mentioned phase difference spectrum estimation method, which includes: a Fourier transform step, respectively performing Fourier transform on an input signal of a first channel as a time-domain sound signal and an input signal of a second channel as a time-domain sound signal, and obtaining a spectrum X1(k) and a spectrum X2(k) for each frequency k from 0 to T-1; a phase difference spectrum estimation step, obtaining a phase difference spectrum φ(k) for each frequency k from 0 to T-1; and an inter-channel relationship information acquisition step, for a predetermined τ max ~τ min The number of candidate samples τ cand, perform inverse Fourier transform on the sequence based on the phase difference spectrum φ(0)~φ(T-1), for τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ), and obtain the phase difference signal φ(τ cand ) is the absolute value of the correlation value γ cand In the step of obtaining the inter-channel relationship information, at least one of the following is further performed: obtaining and outputting the correlation value γ cand The maximum value of is taken as the inter-channel correlation value γ; obtain and output the correlation value γ cand τ is the maximum value cand , as the time difference between channels; and in the correlation value γ cand τ is the maximum value cand When the correlation value γ is positive, the information indicating the precedence of the first channel is obtained as the precedent channel information. cand τ is the maximum value cand When it is a negative value, information indicating that the second channel is preceding is obtained as preceding channel information, and the obtained preceding channel information is output.
[0011] One embodiment of the present invention is a signal encoding method, comprising: a phase difference spectrum estimation step of the above-mentioned phase difference spectrum estimation method; and an encoding step, using the phase difference spectrum φ (k) obtained in the phase difference spectrum estimation step to encode the input signal of the first channel and the input signal of the second channel to obtain and output a signal code.
[0012] One embodiment of the present invention is a signal processing method, which includes: a phase difference spectrum estimation step of the above-mentioned phase difference spectrum estimation method; and a signal processing step, using the phase difference spectrum φ (k) obtained in the phase difference spectrum estimation step to perform signal processing on the input signal of the first channel and the input signal of the second channel, obtain the signal processing result and output it.
[0013] Effects of the Invention
[0014] According to the present invention, it is possible to estimate the phase difference spectrum of two-channel signals by processing suitable for fixed-point calculation with a smaller amount of calculation processing than conventional methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 1 is a block diagram showing the audio signal downmixing apparatus 100 according to the first embodiment and the second embodiment.
[0016] Figure 2 1 is a flowchart showing the processing of the audio signal downmixing apparatus 100 according to the first embodiment and the second embodiment.
[0017] Figure 31 is a diagram illustrating representative values of the first example of the phase difference spectrum estimation unit 122 .
[0018] Figure 4 2 is a diagram illustrating representative values of the first quadrant in the second example of the phase difference spectrum estimation unit 122 .
[0019] Figure 5 : is a block diagram showing an inter-channel relationship information estimation device 120 according to the third embodiment.
[0020] Figure 6 1 is a flowchart showing the processing of the inter-channel relationship information estimation device 120 according to the third embodiment.
[0021] Figure 7 : is a block diagram showing a phase difference spectrum estimation device 200 according to the fourth embodiment.
[0022] Figure 8 : is a flowchart showing the processing of the phase difference spectrum estimation device 200 according to the fourth embodiment.
[0023] Fig. 9 It is a block diagram showing a signal coding apparatus 300 according to the fifth embodiment.
[0024] Fig.10 This is a flowchart showing the processing of the signal coding apparatus 300 according to the fifth embodiment.
[0025] Fig.11 : is a block diagram showing a signal processing device 400 according to the sixth embodiment.
[0026] Fig.12 This is a flowchart showing the processing of the signal processing device 400 according to the sixth embodiment.
[0027] Fig.13 This is a diagram showing an example of the functional configuration of a computer that realizes each device in the embodiment of the present invention. DETAILED DESCRIPTION
[0028] <First embodiment>
[0029] In the first embodiment, a method of applying the phase difference spectrum estimation process of the present invention to a sound signal downmixing device that performs downmixing processing taking into account the relationship between the first channel input sound signal and the second channel input sound signal to obtain a monaural signal useful for signal processing such as encoding processing is described.
[0030] The two-channel audio signal that is the object of signal processing such as encoding processing is often a digital audio signal obtained by performing AD conversion on the sound picked up by the left channel microphone and the right channel microphone respectively arranged in a certain space. At this time, what is input to the device that performs signal processing such as encoding processing is: the first channel input audio signal that is a digital audio signal obtained by performing AD conversion on the sound picked up by the left channel microphone arranged in the space; and the second channel input audio signal that is a digital audio signal obtained by performing AD conversion on the sound picked up by the right channel microphone arranged in the space. In the first channel input audio signal and the second channel input audio signal, the sound emitted by each sound source existing in the space is often included in the state where the difference between the arrival time from the sound source to the left channel microphone and the arrival time from the sound source to the right channel microphone (the so-called arrival time difference) is given. In view of this, the audio signal downmixing device of the first embodiment performs downmixing processing that takes into account the relationship between the first channel input audio signal and the second channel input audio signal to obtain a monaural signal useful for signal processing such as encoding processing. Hereinafter, the audio signal downmixing device according to the first embodiment will be described.
[0031] like Figure 1 As shown, the sound signal downmixing device 100 of the first embodiment includes an inter-channel relationship information estimation unit 120 and a downmixing unit 130. The sound signal downmixing device 100 obtains and outputs a downmix signal described below from an input two-channel stereo time domain sound signal, for example, in units of frames of a predetermined time length of 20 ms. Input to the sound signal downmixing device 100 is a two-channel stereo time domain sound signal, for example, a digital sound signal obtained by picking up sounds such as voices and music with two microphones and performing AD conversion, a digital decoded sound signal obtained by encoding / decoding the aforementioned digital sound signal, and a digital signal processed sound signal obtained by performing signal processing on the aforementioned digital sound signal, which is composed of a first channel input sound signal and a second channel input sound signal. The time domain monophonic sound signal obtained by the sound signal downmixing device 100, that is, the downmix signal, is input to a sound signal encoding device that at least encodes the downmix signal or a sound signal processing device that at least performs signal processing on the downmix signal. When the number of samples per frame is set to T, the first channel input audio signals x1(1), x1(2), ..., x1(T) and the second channel input audio signals x2(1), x2(2), ..., x2(T) are input to the audio signal downmixing apparatus 100 in units of frames, and the audio signal downmixing apparatus 100 obtains and outputs a downmixed signal x1(1), x1(2), ..., x1(T) in units of frames. M (1), x M (2), ..., x M(T). T is a positive integer. For example, if the frame length is 20 ms and the sampling frequency is 32 kHz, then T is 640. The sound signal downmixing apparatus 100 performs Figure 2 The processing of step S120 and step S130 is shown.
[0032] [Inter-channel relationship information estimation unit 120]
[0033] The first channel input audio signal input to the audio signal downmixing apparatus 100 and the second channel input audio signal input to the audio signal downmixing apparatus 100 are input to the inter-channel relationship information estimation unit 120. The inter-channel relationship information estimation unit 120 obtains and outputs the inter-channel correlation value γ and the preceding channel information based on the first channel input audio signal and the second channel input audio signal (step S120). Specifically, the processing of step S120 is performed by Figure 2 The processing structure of step S121 to step S123 is shown. Figure 1 As shown, the inter-channel relationship information estimation unit 120 includes a Fourier transform unit 121, a phase difference spectrum estimation unit 122, and an inter-channel relationship information acquisition unit 123. The Fourier transform unit 121 performs step S121, the phase difference spectrum estimation unit 122 performs step S122, and the inter-channel relationship information acquisition unit 123 performs step S123.
[0034] The preceding channel information is information indicating which of the left channel input sound signal and the right channel input sound signal the same sound signal is included in first, for example, it is information corresponding to which microphone of the left channel microphone and the right channel microphone arranged in the space the sound emitted by the main sound source in a certain space reaches first. When the same sound signal is included in the first channel input sound signal first, it is called the first channel first or the second channel last. When the same sound signal is included in the second channel input sound signal, the second channel first or the first channel last, and the preceding channel information is information indicating which of the first channel and the second channel is included first. The inter-channel correlation value γ is a correlation value considering the time difference between the first channel input sound signal and the second channel input sound signal. That is, the inter-channel correlation value γ is a value of the correlation between the sample sequence of the preceding channel input sound signal and the sample sequence of the succeeding channel input sound signal, for example, located at a position offset by τ samples from the sample sequence. Hereinafter, this τ is also referred to as the inter-channel time difference. The preceding channel information and the inter-channel correlation value γ are information indicating the relationship between the first channel input audio signal and the second channel input audio signal, and therefore can be said to be inter-channel relationship information.
[0035] [Fourier transform unit 121]
[0036] The Fourier transform unit 121 performs Fourier transform on the first channel input audio signal x1(1), x1(2), ..., x1(T) and the second channel input audio signal x2(1), x2(2), ..., x2(T) as shown in the following equations (1-1) and (1-2), respectively, thereby obtaining frequency spectra X1(k) and X2(k) at each frequency k from 0 to T-1 (step S121).
[0037] [Formula 1]
[0038]
[0039] [Formula 2]
[0040]
[0041] The frequency spectra X1 (k) and X2 (k) at the respective frequencies k from 0 to T−1 obtained by the Fourier transform unit 121 are output from the Fourier transform unit 121 and input to the phase difference spectrum estimation unit 122 .
[0042] [Phase difference spectrum estimation unit 122]
[0043] First, let's start with the prior art. In Patent Document 1, the inter-channel relationship information estimation unit 120 uses the frequency spectra X1(k) and X2(k) at each frequency k obtained by equations (1-1) and (1-2) after step S121 to obtain the phase difference spectrum φ(k) at each frequency k by the following equation (1-3).
[0044] [Formula 3]
[0045]
[0046] When the processing of obtaining the phase difference spectrum φ(k) at each frequency k by equation (1-3) is performed by a processor, it is assumed that the following equation (1-4) equivalent to equation (1-3) is used.  ̄X2(k) is the complex conjugate of X2(k). In addition, the superscript " ̄" should be recorded directly above "X2(k)", but due to the constraints of the description, it is recorded as " ̄X2(k)".
[0047] [Formula 4]
[0048]
[0049] The process of obtaining the phase difference spectrum φ(k) at each frequency k by equation (1-4) includes, for example, a first process of calculating the product of the spectrum X1(k) and the complex conjugate  ̄X2(k) of the spectrum X2(k), a second process of calculating |X1(k)| and |X2(k)|, a third process of calculating the product of |X1(k)| and |X2(k)|, and a fourth process of dividing the product obtained in the first process by the product obtained in the third process. Here, |X1(k)| is the real part X1(k) of the spectrum X1(k) as shown in the following equation (1-5A): real and the imaginary part X1(k) imag Similarly, |X2(k)| is the real part X2(k) of the spectrum X2(k) as shown in the following formula (1-5B): real and the imaginary part X2(k) imag That is, the second process includes two square root operations.
[0050] [Formula 5]
[0051]
[0052] In a conventional processor, as also illustrated in the ITU-T calculation conversion standard, one square root operation or one division operation requires about 30 times the number of clocks of one product and one operation, respectively. Therefore, the process of obtaining the phase difference spectrum φ(k) at each frequency k by formula (1-4) includes the second process and the fourth process, so the amount of calculation processing is large. By combining the second process and the third process, the square root operation can be completed at one time, but in this case, it is necessary to calculate the product of the value of the energy dimension of X1(k) and the value of the energy dimension of X2(k). Since the value of the energy dimension has the size of the square of the waveform value, the value of the product between the values of the energy dimension has the size of the fourth power of the waveform value. If the value of the fourth power of the waveform value is a floating-point operation with high power consumption, it can be calculated without special processing, but in order to calculate by fixed-point operation with low power consumption, since the range of possible values is limited, additional processing such as alignment is required. That is, the process of obtaining the phase difference spectrum φ(k) at each frequency k by equation (1-4) has the problem of large amount of computation and being unsuitable for fixed-point operation. Therefore, as described below, the phase difference spectrum estimation unit 122 estimates the phase difference spectrum of the signal of the two channels by processing suitable for fixed-point operation with less computation than the conventional method.
[0053] Hereinafter, as in the following equation (1-6A), the numerator of the right-hand side of equation (1-4), i.e., the product of the complex conjugate  ̄X2(k) of the spectrum X1(k) of the first channel and the spectrum X2(k) of the second channel is set to Y(k), and as in the following equation (1-6B), the real part Y(k) of Y(k) is set to realAssuming u(k), the imaginary part Y(k) of Y(k) is imag Let v(k) be used for explanation.
[0054] [Formula 6]
[0055]
[0056] In the right term of equation (1-4), the product of spectrum X1(k) and the complex conjugate of spectrum X2(k)  ̄X2(k) is divided by the product of |X1(k)||X2(k)|, from which it can be seen that the phase difference spectrum φ(k) exists on the circumference of the unit circle in the complex plane. Therefore, the deflection angle on the complex plane is the same as Y(k), and the complex value of the point on the circumference of the unit circle in the complex plane is the phase difference spectrum φ(k).
[0057] [[First Example of Phase Difference Spectrum Estimation Unit 122]]
[0058] As described above, since Y(k) and the phase difference spectrum φ(k) have the same deflection angle on the complex plane, Y(k) and the phase difference spectrum φ(k) are in the same quadrant on the complex plane. Therefore, the phase difference spectrum estimation unit 122 of the first example selects and obtains any one of the representative values of the phase difference spectrum of each predetermined quadrant as the phase difference spectrum φ(k) based on which quadrant Y(k) is in (step S122-A).
[0059] Specifically, when Y(k) is in the first quadrant of the complex plane, the phase difference spectrum estimation unit 122 obtains a representative value of the phase difference spectrum in the first quadrant as the phase difference spectrum φ(k); when Y(k) is in the second quadrant of the complex plane, the representative value of the phase difference spectrum in the second quadrant is obtained as the phase difference spectrum φ(k); when Y(k) is in the third quadrant of the complex plane, the representative value of the phase difference spectrum in the third quadrant is obtained as the phase difference spectrum φ(k); and when Y(k) is in the fourth quadrant of the complex plane, the representative value of the phase difference spectrum in the fourth quadrant is obtained as the phase difference spectrum φ(k).
[0060] The representative value of each quadrant is predetermined and stored in the representative value storage unit 1221 in the phase difference spectrum estimation unit 122. The representative value of the phase difference spectrum of each quadrant is a value that becomes the estimated value of the phase difference spectrum of each quadrant, so for example Figure 3 As shown, it is a complex value of a point which is on the circumference of the unit circle of the complex plane and whose deflection angle on the complex plane is the central value of the range of the deflection angles of each quadrant.
[0061] Since the deflection angle of the first quadrant ranges from 0 to π / 2, the representative value of the first quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of π / 4 on the complex plane, specifically, a value whose real part is cos(π / 4) and whose imaginary part is sin(π / 4). Since the deflection angle of the second quadrant ranges from π / 2 to π, the representative value of the second quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 3π / 4 on the complex plane, specifically, a value whose real part is cos(3π / 4) and whose imaginary part is sin(3π / 4). Since the deflection angle of the third quadrant ranges from π to 3π / 2, the representative value of the third quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 5π / 4 on the complex plane, specifically, a value whose real part is cos(5π / 4) and whose imaginary part is sin(5π / 4). Since the declination angle of the fourth quadrant ranges from 3π / 2 to 2π, the representative value of the fourth quadrant is, for example, the value of a point on the circumference of a unit circle with a declination angle of 7π / 4 on the complex plane, specifically, a value whose real part is cos(7π / 4) and whose imaginary part is sin(7π / 4).
[0062] The quadrant in which Y(k) is located in the complex plane can be determined by a combination of a code indicating whether u(k) is a positive value or a negative value and a code indicating whether v(k) is a positive value or a negative value. Specifically, when the code of u(k) and the code of v(k) are both codes indicating positive values, Y(k) is located in the first quadrant of the complex plane, when the code of u(k) is a code indicating a negative value and the code of v(k) is a code indicating a positive value, Y(k) is located in the second quadrant of the complex plane, when the code of u(k) and the code of v(k) are both codes indicating negative values, Y(k) is located in the third quadrant of the complex plane, and when the code of u(k) is a code indicating a positive value and the code of v(k) is a code indicating a negative value, Y(k) is located in the fourth quadrant of the complex plane. Therefore, the phase difference spectrum estimation unit 122 obtains the representative value of the phase difference spectrum in the predetermined first quadrant as the phase difference spectrum φ(k) when the code u(k) and the code v(k) are both codes representing positive values; obtains the representative value of the phase difference spectrum in the predetermined second quadrant as the phase difference spectrum φ(k) when the code u(k) is a code representing a negative value and the code v(k) is a code representing a positive value; obtains the representative value of the phase difference spectrum in the predetermined third quadrant as the phase difference spectrum φ(k) when the code u(k) and the code v(k) are both codes representing negative values; and obtains the representative value of the phase difference spectrum in the predetermined fourth quadrant as the phase difference spectrum φ(k) when the code u(k) is a code representing a positive value and the code v(k) is a code representing a negative value. In addition, in the case where a code indicating whether u(k) and v(k) are positive or negative values, respectively, is included as 1 bit at a specified position (for example, the leading bit) in the bit string of each of u(k) and v(k) represented by a specified number of bits, the phase difference spectrum estimation unit 122 obtains the phase difference spectrum φ(k) by making a judgment based only on the 2 bits of the 1 bit of u(k) at the specified position and the 1 bit of v(k) at the specified position.
[0063] Of course, instead of combining the code of u(k) and the code of v(k), it is also possible to determine which quadrant of the complex plane Y(k) is in by combining whether u(k) and v(k) are respectively positive or negative. Therefore, when u(k) and v(k) are both positive values, the phase difference spectrum estimation unit 122 obtains the representative value of the phase difference spectrum of the predetermined first quadrant as the phase difference spectrum φ(k), and when u(k) is a negative value and v(k) is a positive value, obtains the representative value of the phase difference spectrum of the predetermined second quadrant as the phase difference spectrum φ(k), and when u(k) and v(k) are both negative values, obtains the representative value of the phase difference spectrum of the predetermined third quadrant as the phase difference spectrum φ(k), and when u(k) is a positive value and v(k) is a negative value, obtains the representative value of the phase difference spectrum of the predetermined fourth quadrant as the phase difference spectrum φ(k). Of course, the phase difference spectrum estimation unit 122 may use a code for one of u(k) and v(k) and a positive or negative value for the other to determine the quadrant of the complex plane where Y(k) is located.
[0064] In addition, when Y(k) is on the boundary line of the quadrants in the complex plane, the phase difference spectrum estimation unit 122 will regard that there is Y(k) in the quadrant on either side of the boundary line, and perform step S122-A. That is, when Y(k) is on the boundary line of the quadrants in the complex plane, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum of the quadrant on either side of the boundary line as the phase difference spectrum φ(k). When Y(k) is on the boundary line of the quadrants in the complex plane, it is predetermined that the representative value of the predetermined phase difference spectrum of which quadrant is sandwiched by the boundary line is used as the phase difference spectrum φ(k), and stored in the phase difference spectrum estimation unit 122. Specifically, when Y(k) is on the boundary line between the first quadrant and the second quadrant, that is, when u(k) is 0 and v(k) is a positive value, the phase difference spectrum estimation unit 122 can obtain any one of the representative value of the phase difference spectrum of the predetermined first quadrant and the representative value of the phase difference spectrum of the predetermined second quadrant as the phase difference spectrum φ(k). Similarly, when Y(k) is on the boundary line between the second quadrant and the third quadrant, that is, when u(k) is a negative value and v(k) is 0, the phase difference spectrum estimation unit 122 can obtain any one of the representative value of the phase difference spectrum of the predetermined second quadrant and the representative value of the phase difference spectrum of the predetermined third quadrant as the phase difference spectrum φ(k). Similarly, when Y(k) is on the boundary line between the third quadrant and the fourth quadrant, that is, when u(k) is 0 and v(k) is a negative value, the phase difference spectrum estimation unit 122 can obtain either the representative value of the predetermined third quadrant phase difference spectrum or the representative value of the predetermined fourth quadrant phase difference spectrum as the phase difference spectrum φ(k). Similarly, when Y(k) is on the boundary line between the fourth quadrant and the first quadrant, that is, when u(k) is a positive value and v(k) is 0, the phase difference spectrum estimation unit 122 can obtain either the representative value of the predetermined fourth quadrant phase difference spectrum or the representative value of the predetermined first quadrant phase difference spectrum as the phase difference spectrum φ(k).
[0065] [[Modification of the First Example of the Phase Difference Spectrum Estimation Unit 122]]
[0066] In addition to step S122-A, the phase difference spectrum estimation unit 122 may also obtain a representative value of a predetermined phase difference spectrum when Y(k) is on the boundary line of the quadrant in the complex plane as the phase difference spectrum φ(k) (step S122-A2). Specifically, when Y(k) is on the boundary line between the first quadrant and the second quadrant, that is, when u(k) is 0 and v(k) is a positive value, the phase difference spectrum estimation unit 122 obtains a representative value of a predetermined phase difference spectrum when Y(k) is on the boundary line between the first quadrant and the second quadrant as the phase difference spectrum φ(k). Similarly, when Y(k) is on the boundary line between the second quadrant and the third quadrant, that is, when u(k) is a negative value and v(k) is 0, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum when Y(k) is on the boundary line between the second quadrant and the third quadrant as the phase difference spectrum φ(k). Similarly, when Y(k) is on the boundary line between the third quadrant and the fourth quadrant, that is, when u(k) is 0 and v(k) is a negative value, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum when Y(k) is on the boundary line between the third quadrant and the fourth quadrant as the phase difference spectrum φ(k). Similarly, when Y(k) is on the boundary line between the fourth quadrant and the first quadrant, that is, when u(k) is a positive value and v(k) is 0, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum when Y(k) is on the boundary line between the fourth quadrant and the first quadrant as the phase difference spectrum φ(k).
[0067] Each representative value of the phase difference spectrum when Y(k) is on the boundary line of the predetermined quadrant is stored in the representative value storage unit 1221 in the phase difference spectrum estimation unit 122. The representative value of the phase difference spectrum when Y(k) is on the boundary line between the first quadrant and the second quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of π / 2 on the complex plane, and is a value whose real part is 0 and whose imaginary part is 1. The representative value of the phase difference spectrum when Y(k) is on the boundary line between the second quadrant and the third quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of π on the complex plane (complex prime plane), and is a value whose real part is -1 and whose imaginary part is 0. The representative value of the phase difference spectrum when Y(k) is on the boundary line between the third quadrant and the fourth quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 3π / 2 on the complex plane, and is a value whose real part is 0 and whose imaginary part is -1. The representative value of the phase difference spectrum when Y(k) is on the boundary line between the fourth quadrant and the first quadrant is, for example, a value of a point on the circumference of a unit circle with a deflection angle of 0 on the complex plane, and has a real part of 1 and an imaginary part of 0.
[0068] [[Second Example of the Phase Difference Spectrum Estimation Unit 122]]
[0069] The phase difference spectrum estimated by the phase difference spectrum estimation unit 122 of the first example has a maximum error of π / 4 in the deflection angle. The phase difference spectrum estimation unit 122 of the second example estimates the phase difference spectrum with less error than the phase difference spectrum estimation unit 122 of the first example. The phase difference spectrum estimation unit 122 of the second example selects and obtains any one of the representative values of the phase difference spectrum of the half area on the real axis side of each predetermined quadrant and the representative values of the phase difference spectrum of the half area on the imaginary axis side of each quadrant as the phase difference spectrum φ(k) based on which quadrant Y(k) is in and which of the half area on the real axis side and the half area on the imaginary axis side of the quadrant Y(k) is in (step S122-B).
[0070] Specifically, when Y(k) is in the half region on the real axis side of the first quadrant of the complex plane, the phase difference spectrum estimation unit 122 obtains a representative value of the phase difference spectrum of the half region on the real axis side of the predetermined first quadrant as the phase difference spectrum φ(k); when Y(k) is in the half region on the imaginary axis side of the first quadrant of the complex plane, the representative value of the phase difference spectrum of the half region on the imaginary axis side of the predetermined first quadrant is obtained as the phase difference spectrum φ(k); when Y(k) is in the half region on the real axis side of the second quadrant of the complex plane, the representative value of the phase difference spectrum of the half region on the real axis side of the predetermined second quadrant is obtained as the phase difference spectrum φ(k); and when Y(k) is in the half region on the imaginary axis side of the second quadrant of the complex plane, the representative value of the phase difference spectrum of the half region on the imaginary axis side of the predetermined second quadrant is obtained as the phase difference spectrum. Phase difference spectrum φ(k), when Y(k) is in the half area on the real axis side of the third quadrant of the complex plane, a representative value of the phase difference spectrum of the half area on the real axis side of the predetermined third quadrant is obtained as the phase difference spectrum φ(k), when Y(k) is in the half area on the imaginary axis side of the third quadrant of the complex plane, a representative value of the phase difference spectrum of the half area on the imaginary axis side of the predetermined third quadrant is obtained as the phase difference spectrum φ(k), when Y(k) is in the half area on the real axis side of the fourth quadrant of the complex plane, a representative value of the phase difference spectrum of the half area on the real axis side of the predetermined fourth quadrant is obtained as the phase difference spectrum φ(k), when Y(k) is in the half area on the imaginary axis side of the fourth quadrant of the complex plane, a representative value of the phase difference spectrum of the half area on the imaginary axis side of the predetermined fourth quadrant is obtained as the phase difference spectrum φ(k).
[0071] The representative value of the phase difference spectrum of each region is predetermined and stored in the representative value storage unit 1221 in the phase difference spectrum estimation unit 122. The representative value of the phase difference spectrum of each region is the value that becomes the estimated value of the phase difference spectrum of each region, so for example, for the first quadrant, Figure 4As shown, it is a complex value of a point which is on the circumference of the unit circle of the complex plane and whose deflection angle on the complex plane is the central value of the range of the deflection angle of each area.
[0072] Since the deflection angle of the half area on the real axis side of the first quadrant ranges from 0 to π / 4, the representative value of the phase difference spectrum of the half area on the real axis side of the first quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of π / 8 on the complex plane, specifically, the value of a real part of cos(π / 8) and an imaginary part of sin(π / 8). Since the deflection angle of the half area on the imaginary axis side of the first quadrant ranges from π / 4 to π / 2, the representative value of the phase difference spectrum of the half area on the imaginary axis side of the first quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 3π / 8 on the complex plane, specifically, the value of a real part of cos(3π / 8) and an imaginary part of sin(3π / 8).
[0073] Since the deflection angle of the half area on the real axis side of the second quadrant ranges from 3π / 4 to π, the representative value of the phase difference spectrum of the half area on the real axis side of the second quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 7π / 8 on the complex plane, specifically, the value of a real part of cos(7π / 8) and an imaginary part of sin(7π / 8). Since the deflection angle of the half area on the imaginary axis side of the second quadrant ranges from π / 2 to 3π / 4, the representative value of the phase difference spectrum of the half area on the imaginary axis side of the second quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 5π / 8 on the complex plane, specifically, the value of a real part of cos(5π / 8) and an imaginary part of sin(5π / 8).
[0074] Since the deflection angle of the half area on the real axis side of the third quadrant ranges from π to 5π / 4, the representative value of the phase difference spectrum of the half area on the real axis side of the third quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 9π / 8 on the complex plane, specifically, the value of a real part of cos(9π / 8) and an imaginary part of sin(9π / 8). Since the deflection angle of the half area on the imaginary axis side of the third quadrant ranges from 5π / 4 to 3π / 2, the representative value of the phase difference spectrum of the half area on the imaginary axis side of the third quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 11π / 8 on the complex plane, specifically, the value of a real part of cos(11π / 8) and an imaginary part of sin(11π / 8).
[0075] Since the deflection angle of the half area on the real axis side of the fourth quadrant ranges from 7π / 4 to 2π, the representative value of the phase difference spectrum of the half area on the real axis side of the fourth quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 15π / 8 on the complex plane, specifically, the value of a real part of cos(15π / 8) and an imaginary part of sin(15π / 8). Since the deflection angle of the half area on the imaginary axis side of the fourth quadrant ranges from 3π / 2 to 7π / 4, the representative value of the phase difference spectrum of the half area on the imaginary axis side of the fourth quadrant is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 13π / 8 on the complex plane, specifically, the value of a real part of cos(13π / 8) and an imaginary part of sin(13π / 8).
[0076] Regardless of which quadrant Y(k) is in, when the absolute value of the real part of Y(k) |u(k)| is greater than the absolute value of the imaginary part of Y(k) |v(k)|, Y(k) is in the half area on the real axis side of the quadrant, and when the absolute value of the real part of Y(k) |u(k)| is less than the absolute value of the imaginary part of Y(k) |v(k)|, Y(k) is in the half area on the imaginary axis side of the quadrant. That is, whether Y(k) is in the half area on the real axis side of the quadrant or in the half area on the imaginary axis side of the quadrant can be determined based on which of |u(k)| and |v(k)| is larger. Therefore, the phase difference spectrum estimation unit 122 of the second example obtains any one of the representative values of the phase difference spectrum of the area on the real axis side of half of each quadrant and the representative value of the phase difference spectrum of the area on the imaginary axis side of each quadrant as the phase difference spectrum φ(k), based on which quadrant Y(k) is in and which of the absolute value |u(k)| of the real part of Y(k) and the absolute value |v(k)| of the imaginary part of Y(k).
[0077] Specifically, when Y(k) is in the first quadrant of the complex plane and |u(k)| is greater than |v(k)|, the phase difference spectrum estimation unit 122 obtains a representative value of the phase difference spectrum of a region half of the real axis side of the predetermined first quadrant as the phase difference spectrum φ(k); when Y(k) is in the first quadrant of the complex plane and |u(k)| is less than |v(k)|, the representative value of the phase difference spectrum of a region half of the imaginary axis side of the predetermined first quadrant is obtained as the phase difference spectrum φ(k); when Y(k) is in the second quadrant of the complex plane and |u(k)| is greater than |v(k)|, the representative value of the phase difference spectrum of a region half of the real axis side of the predetermined second quadrant is obtained as the phase difference spectrum φ(k); when Y(k) is in the second quadrant of the complex plane and |u(k)| is less than |v(k)|, the representative value of the phase difference spectrum of a region half of the imaginary axis side of the predetermined second quadrant is obtained as the phase difference spectrum The phase difference spectrum φ(k) is obtained by obtaining a representative value of the phase difference spectrum of half the area on the real axis side of the predetermined third quadrant when Y(k) is in the third quadrant of the complex plane and |u(k)| is greater than |v(k)|, and obtaining a representative value of the phase difference spectrum of half the area on the imaginary axis side of the predetermined third quadrant as the phase difference spectrum φ(k). When Y(k) is in the third quadrant of the complex plane and |u(k)| is less than |v(k)|, obtaining a representative value of the phase difference spectrum of half the area on the real axis side of the predetermined fourth quadrant as the phase difference spectrum φ(k). When Y(k) is in the fourth quadrant of the complex plane and |u(k)| is greater than |v(k)|, obtaining a representative value of the phase difference spectrum of half the area on the imaginary axis side of the predetermined fourth quadrant as the phase difference spectrum φ(k). In addition, the phase difference spectrum estimation unit 122 can determine which quadrant of the complex plane Y(k) is in, similarly to the phase difference spectrum estimation unit 122 of the first example. That is, the phase difference spectrum estimation unit 122 can determine which quadrant of the complex plane Y(k) is in based on the code of u(k) or whether u(k) is positive or negative, and the code of the imaginary part v(k) or whether the imaginary part v(k) is positive or negative, for example, based on a combination of the code of u(k) and the code of v(k) or a combination of whether u(k) and v(k) are positive or negative, respectively.
[0078] In addition, it is a bit indicating whether the 1 bit at a specified position in the bit string of u(k) and v(k) represented by a specified number of bits is a positive value or a negative value. If multiple bits at other positions in the bit string represent absolute values, the phase difference spectrum estimation unit 122 obtains multiple bits representing the absolute values of u(k) and v(k), or replaces the bit value representing the negative value with the bit value representing the positive value when at least one of u(k) and v(k) is a negative value, thereby obtaining the absolute value of u(k) |u(k)| and the absolute value of v(k) |v(k)|.
[0079] In addition, when Y(k) is on the boundary line of the quadrants in the complex plane, the phase difference spectrum estimation unit 122, like the phase difference spectrum estimation unit 122 of the first example, deems that Y(k) exists in any one of the quadrants sandwiched by the boundary line, and performs step S122-B. That is, when Y(k) is on the boundary line of the quadrants in the complex plane, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum on the boundary line side of any one of the quadrants sandwiched by the boundary line as the phase difference spectrum φ(k). When Y(k) is on the boundary line of the quadrants in the complex plane, the representative value of the predetermined phase difference spectrum on the boundary line side of which quadrant sandwiched by the boundary line is predetermined as the phase difference spectrum φ(k) and stored in the phase difference spectrum estimation unit 122. Specifically, when Y(k) is on the boundary between the first quadrant and the second quadrant, that is, when u(k) is 0 and v(k) is a positive value, the phase difference spectrum estimation unit 122 obtains as the phase difference spectrum φ(k) any one of the representative values of the phase difference spectrum of the half region on the imaginary axis side of the predetermined first quadrant and the representative values of the phase difference spectrum of the half region on the imaginary axis side of the predetermined second quadrant. Similarly, when Y(k) is on the boundary between the second quadrant and the third quadrant, that is, when u(k) is a negative value and v(k) is 0, the phase difference spectrum estimation unit 122 obtains as the phase difference spectrum φ(k) any one of the representative values of the phase difference spectrum of the half region on the real axis side of the predetermined second quadrant and the representative values of the phase difference spectrum of the half region on the real axis side of the predetermined third quadrant. Similarly, when Y(k) is on the boundary between the third quadrant and the fourth quadrant, that is, when u(k) is 0 and v(k) is a negative value, the phase difference spectrum estimation unit 122 obtains as the phase difference spectrum φ(k) either the representative value of the phase difference spectrum of the predetermined half region on the imaginary axis side of the third quadrant or the representative value of the phase difference spectrum of the predetermined half region on the imaginary axis side of the fourth quadrant. Similarly, when Y(k) is on the boundary between the fourth quadrant and the first quadrant, that is, when u(k) is a positive value and v(k) is 0, the phase difference spectrum estimation unit 122 obtains as the phase difference spectrum φ(k) either the representative value of the phase difference spectrum of the predetermined half region on the real axis side of the fourth quadrant or the representative value of the phase difference spectrum of the predetermined half region on the real axis side of the first quadrant.
[0080] In addition, when Y(k) is on the boundary between the half of the area on the real axis side and the half of the area on the imaginary axis side of a certain quadrant, the phase difference spectrum estimation unit 122 deems that Y(k) exists in the area on either side of the boundary of the quadrant and performs step S122-B. When the phase difference spectrum estimation unit 122 performs a judgment based on |u(k)| and |v(k)|, when |u(k)| and |v(k)| are the same value, the representative value of the phase difference spectrum of the half of the area on the real axis side is obtained as the phase difference spectrum φ(k) in the same way as when |u(k)| is greater than |v(k)|, or the representative value of the phase difference spectrum of the half of the area on the imaginary axis side is obtained as the phase difference spectrum φ(k) in the same way as when |u(k)| is less than |v(k)|. That is, the phase difference spectrum estimation unit 122 interprets the above "the case where |u(k)| is greater than |v(k)|" as "the case where |u(k)| is greater than |v(k)|" and performs step S122-B, or interprets the above "the case where |u(k)| is less than |v(k)|" as "the case where |u(k)| is less than |v(k)|" and performs step S122-B. It is sufficient to predetermine which one to perform and store it in the phase difference spectrum estimation unit 122.
[0081] Specifically, when Y(k) is in the first quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 can obtain as the phase difference spectrum φ(k) any one of the representative value of the phase difference spectrum of the half region on the real axis side of the predetermined first quadrant and the representative value of the phase difference spectrum of the half region on the imaginary axis side of the predetermined first quadrant. Similarly, when Y(k) is in the second quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 can obtain as the phase difference spectrum φ(k) any one of the representative value of the phase difference spectrum of the half region on the real axis side of the predetermined second quadrant and the representative value of the phase difference spectrum of the half region on the imaginary axis side of the predetermined second quadrant. Similarly, when Y(k) is in the third quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 can obtain as the phase difference spectrum φ(k) either the representative value of the phase difference spectrum of the half region on the real axis side of the predetermined third quadrant or the representative value of the phase difference spectrum of the half region on the imaginary axis side of the predetermined third quadrant. Similarly, when Y(k) is in the fourth quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 can obtain as the phase difference spectrum φ(k) either the representative value of the phase difference spectrum of the half region on the real axis side of the predetermined fourth quadrant or the representative value of the phase difference spectrum of the half region on the imaginary axis side of the predetermined fourth quadrant.
[0082] [[Modification of the Second Example of the Phase Difference Spectrum Estimation Unit 122]]
[0083] In addition to step S122-B, the phase difference spectrum estimation unit 122 may also obtain a representative value of a predetermined phase difference spectrum when Y(k) is on the boundary line of the quadrant in the complex plane as the phase difference spectrum φ(k) in the same manner as the phase difference spectrum estimation unit 122 of the modified example of the first example (step S122-B2).
[0084] In addition to step S122-B or in addition to step S122-B and step S122-B2, the phase difference spectrum estimation unit 122 may also obtain a representative value of a predetermined phase difference spectrum when Y(k) is on a boundary line between a half area on the real axis side and a half area on the imaginary axis side of a certain quadrant as the phase difference spectrum φ(k) (step S122-B3). That is, if the phase difference spectrum estimation unit 122 performs a judgment based on |u(k)| and |v(k)|, when |u(k)| and |v(k)| are the same value, the representative value of the predetermined phase difference spectrum when |u(k)| and |v(k)| are the same value can be obtained as the phase difference spectrum φ(k).
[0085] Specifically, when Y(k) is in the first quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum when Y(k) is in the first quadrant of the complex plane and |u(k)| and |v(k)| are the same value as the phase difference spectrum φ(k). Similarly, when Y(k) is in the second quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum when Y(k) is in the second quadrant of the complex plane and |u(k)| and |v(k)| are the same value as the phase difference spectrum φ(k). Similarly, when Y(k) is in the third quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum when Y(k) is in the third quadrant of the complex plane and |u(k)| and |v(k)| are the same value as the phase difference spectrum φ(k). Similarly, when Y(k) is in the fourth quadrant of the complex plane and |u(k)| and |v(k)| are the same value, the phase difference spectrum estimation unit 122 obtains the representative value of the predetermined phase difference spectrum when Y(k) is in the fourth quadrant of the complex plane and |u(k)| and |v(k)| are the same value as the phase difference spectrum φ(k).
[0086] The representative value of the phase difference spectrum predetermined when it is located on the boundary line between the half area on the real axis side and the half area on the imaginary axis side of each quadrant, that is, the representative value of the phase difference spectrum when |u(k)| and |v(k)| of each quadrant are the same value, is stored in the representative value storage unit 1221 in the phase difference spectrum estimation unit 122. The representative value of the phase difference spectrum when Y(k) is located on the boundary line between the half area on the real axis side and the half area on the imaginary axis side of the first quadrant, that is, the representative value of the phase difference spectrum when Y(k) is located in the first quadrant of the complex plane and |u(k)| and |v(k)| are the same value, is, for example, the value of a point on the circumference of a unit circle with a deflection angle of π / 4 on the complex plane, specifically, a value whose real part is cos(π / 4) and whose imaginary part is sin(π / 4). The representative value of the phase difference spectrum when Y(k) is on the boundary line between the half of the area on the real axis side and the half of the area on the imaginary axis side of the second quadrant, that is, the representative value of the phase difference spectrum when Y(k) is in the second quadrant of the complex plane and |u(k)| and |v(k)| are the same value, is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 3π / 4 on the complex plane, specifically, a value whose real part is cos(3π / 4) and whose imaginary part is sin(3π / 4). The representative value of the phase difference spectrum when Y(k) is on the boundary line between the half area on the real axis side and the half area on the imaginary axis side of the third quadrant, that is, the representative value of the phase difference spectrum when Y(k) is in the third quadrant of the complex plane and |u(k)| and |v(k)| are the same value, is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 5π / 4 on the complex plane, specifically, a value whose real part is cos(5π / 4) and whose imaginary part is sin(5π / 4). The representative value of the phase difference spectrum when Y(k) is on the boundary line between the half area on the real axis side and the half area on the imaginary axis side of the fourth quadrant, that is, the representative value of the phase difference spectrum when Y(k) is in the fourth quadrant of the complex plane and |u(k)| and |v(k)| are the same value, is, for example, the value of a point on the circumference of a unit circle with a deflection angle of 7π / 4 on the complex plane, specifically, a value whose real part is cos(7π / 4) and whose imaginary part is sin(7π / 4).
[0087] [[Third Example of Phase Difference Spectrum Estimation Unit 122]]
[0088] The deviation angle of the phase difference spectrum estimated by the phase difference spectrum estimation unit 122 of the second example has an error of at most π / 8. In the second example, each quadrant is divided into two regions, i.e., the region on the real axis side and the region on the imaginary axis side, each being half of the quadrant. The range of the deviation angle of the region of Y(k) corresponding to each representative value of the phase difference spectrum is π / 4. However, in order to reduce the error of the deviation angle of the estimated phase difference spectrum, each quadrant is divided into three or more regions, and the range of the deviation angle of the region of Y(k) corresponding to each representative value of the phase difference spectrum can be made narrower. Let N, which is an integer greater than or equal to 2, be the number of divisions of each quadrant. When N is 3 or more, the phase difference spectrum estimation unit 122 of the third example can estimate the phase difference spectrum φ(k) with less error than the phase difference spectrum estimation unit 122 of the second example. Hereinafter, it will be described assuming that n is an integer from 1 to 4N.
[0089] When the deviation angle θ of Y(k) is greater than (n - 1)π / 2N and less than nπ / 2N (i.e., when (n - 1)π / 2N < θ < nπ / 2N), the phase difference spectrum estimation unit 122 of the third example obtains a representative value of a predetermined phase difference spectrum in the case of (n - 1)π / 2N < θ < nπ / 2N as the phase difference spectrum φ(k) (step S122 - C). Each representative value of the predetermined phase difference spectrum is stored in the representative value storage unit 1221 in the phase difference spectrum estimation unit 122. The representative value of the phase difference spectrum in the case of (n - 1)π / 2N < θ < nπ / 2N is, for example, the value of a point on the circumference of the unit circle with a deviation angle of (2n - 1)π / 4N in the complex plane. Specifically, it is a value with a real part of cos((2n - 1)π / 4N) and an imaginary part of sin((2n - 1)π / 4N). The deviation angle (2n - 1)π / 4N in the complex plane is the central value of the range of the deviation angle from (n - 1)π / 2N to nπ / 2N in the complex plane.
[0090] In the first quadrant, when the deflection angle θ of Y(k) is greater than (n-1)π / 2N, the absolute value of the imaginary part of Y(k) is greater than the product of |v(k)| the absolute value of the real part of Y(k) |u(k)| and tan((n-1)π / 2N), and when the deflection angle θ of Y(k) is less than nπ / 2N, the absolute value of the imaginary part of Y(k) |v(k)| is less than the product of the absolute value of the real part of Y(k) |u(k)| and tan(nπ / 2N). Therefore, when Y(k) is in the first quadrant and |v(k)| is greater than the product of |u(k)| and tan((n-1)π / 2N) and |v(k)| is less than the product of |u(k)| and tan(nπ / 2N) (that is, when Y(k) is in the first quadrant and |u(k)|×tan((n-1)π / 2N)<|v(k)|<|u(k)|×tan(nπ / 2N)), the phase difference spectrum estimation unit 122 obtains the value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) as the phase difference spectrum φ(k). In addition, of course, instead of comparing the value obtained by multiplying |u(k)| by the tangent value and |v(k)|, the reciprocal of the tangent value may be used to compare |u(k)| and the value obtained by multiplying |v(k)| by the reciprocal of the tangent value. This also applies to the following comparisons.
[0091] In the second quadrant, when the deflection angle θ of Y(k) is greater than (n-1)π / 2N, the absolute value of the imaginary part of Y(k) |v(k)| is less than the product of the absolute value of the real part of Y(k) |u(k)| and |tan((n-1)π / 2N)|, and when the deflection angle θ of Y(k) is less than nπ / 2N, the absolute value of the imaginary part of Y(k) |v(k)| is greater than the product of the absolute value of the real part of Y(k) |u(k)| and |tan(nπ / 2N)|. Therefore, when Y(k) is in the second quadrant and |v(k)| is less than the product of |u(k)| and |tan((n-1)π / 2N)|, and |v(k)| is greater than the product of |u(k)| and |tan(nπ / 2N)| (that is, when Y(k) is in the second quadrant and |u(k)|×|tan((n-1)π / 2N)|>|v(k)|>|u(k)|×|tan(nπ / 2N)|), the phase difference spectrum estimation unit 122 obtains the value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) as the phase difference spectrum φ(k). In addition, of course, instead of comparing the value obtained by multiplying |u(k)| by the absolute value of the tangent and |v(k)|, the absolute value of the reciprocal of the tangent may be used to compare |u(k)| and the value obtained by multiplying |v(k)| by the absolute value of the reciprocal of the tangent. This also applies to the following comparisons.
[0092] In the third quadrant, when the deflection angle θ of Y(k) is greater than (n-1)π / 2N, the absolute value of the imaginary part of Y(k) |v(k)| is greater than the product of the absolute value of the real part of Y(k) |u(k)| and |tan((n-1)π / 2N)|, and when the deflection angle θ of Y(k) is less than nπ / 2N, the absolute value of the imaginary part of Y(k) |v(k)| is less than the product of the absolute value of the real part of Y(k) |u(k)| and |tan(nπ / 2N)|. Therefore, when Y(k) is in the third quadrant and |v(k)| is greater than the product of |u(k)| and |tan((n-1)π / 2N)|, and |v(k)| is less than the product of |u(k)| and |tan(nπ / 2N)| (that is, Y(k) is in the third quadrant and |u(k)|×|tan((n-1)π / 2N)|<|v(k)|<|u(k)|×|tan(nπ / 2N)|), the phase difference spectrum estimation unit 122 obtains the value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) as the phase difference spectrum φ(k).
[0093] In the fourth quadrant, when the deflection angle θ of Y(k) is greater than (n-1)π / 2N, the absolute value of the imaginary part of Y(k) |v(k)| is less than the product of the absolute value of the real part of Y(k) |u(k)| and |tan((n-1)π / 2N)|, and when the deflection angle θ of Y(k) is less than nπ / 2N, the absolute value of the imaginary part of Y(k) |v(k)| is greater than the product of the absolute value of the real part of Y(k) |u(k)| and |tan(nπ / 2N)|. Therefore, when Y(k) is in the fourth quadrant and |v(k)| is less than the product of |u(k)| and |tan((n-1)π / 2N)|, and |v(k)| is greater than the product of |u(k)| and |tan(nπ / 2N)| (that is, when Y(k) is in the fourth quadrant and |u(k)|×|tan((n-1)π / 2N)|>|v(k)|>|u(k)|×|tan(nπ / 2N)|), the phase difference spectrum estimation unit 122 can obtain the value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) as the phase difference spectrum φ(k).
[0094] The phase difference spectrum estimation unit 122 may determine in which quadrant of the complex plane Y(k) is in the same manner as the phase difference spectrum estimation unit 122 in the first example. That is, the phase difference spectrum estimation unit 122 may determine in which quadrant of the complex plane Y(k) is based on the code of u(k) or whether u(k) is positive or negative and the code of the imaginary part v(k) or whether the imaginary part v(k) is positive or negative. For example, it may be determined based on the combination of the code of u(k) and the code of v(k), or the combination of whether u(k) and v(k) are positive or negative respectively.
[0095] When the phase difference spectrum estimation unit 122 determines that Y(k) is on the boundary line of the region, it may consider that Y(k) is in any one of the regions sandwiching the boundary line and perform step S122-C. That is, when the argument θ of Y(k) is greater than (n - 1)π / 2N and less than or equal to nπ / 2N (i.e., when (n - 1)π / 2N < θ ≤ nπ / 2N), the phase difference spectrum estimation unit 122 may obtain a representative value of a predetermined phase difference spectrum when (n - 1)π / 2N < θ ≤ nπ / 2N as the phase difference spectrum φ(k), or when the argument θ of Y(k) is greater than or equal to (n - 1)π / 2N and less than nπ / 2N (i.e., when (n - 1)π / 2N ≤ θ < nπ / 2N), obtain a representative value of a predetermined phase difference spectrum when (n - 1)π / 2N ≤ θ < nπ / 2N as the phase difference spectrum φ(k).
[0096] Specifically, when Y(k) is in the first quadrant or on the boundary between the first and second quadrants, and |u(k)|×tan((n-1)π / 2N)<|v(k)|≦|u(k)|×tan(nπ / 2N), the phase difference spectrum estimation unit 122 obtains a value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) as the phase difference spectrum φ(k). When Y(k) is in the second quadrant or on the boundary between the second and third quadrants, and |u(k)|×|tan((n-1)π / 2N)|>|v(k)|≧|u(k)|×|tan(nπ / 2N)|, a value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) is obtained as the phase difference spectrum φ(k), when Y(k) is in the third quadrant or on the boundary between the third and fourth quadrants, and |u(k)|×|tan((n-1)π / 2N)|<|v(k)|≦|u(k)|×|tan(nπ / 2N)|, a value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) is obtained as the phase difference spectrum φ(k ), when Y(k) is in the fourth quadrant or on the boundary between the fourth quadrant and the first quadrant, and |u(k)|×|tan((n-1)π / 2N)|>|v(k)|≧|u(k)|×|tan(nπ / 2N)|, the value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) is obtained as the phase difference spectrum φ(k).
[0097] Alternatively, when Y(k) is in the first quadrant or on the boundary between the fourth quadrant and the first quadrant, and |u(k)|×tan((n-1)π / 2N)≦|v(k)|<|u(k)|×tan(nπ / 2N), the phase difference spectrum estimation unit 122 obtains a value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) as the phase difference spectrum φ(k). When Y(k) is in the second quadrant or on the boundary between the first quadrant and the second quadrant, and |u(k)|×|tan((n-1)π / 2N)|≧|v(k)|>|u(k)|×|tan(nπ / 2N)|, a value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) is obtained as the phase difference spectrum φ( k), when Y(k) is in the third quadrant or on the boundary between the second and third quadrants, and |u(k)|×|tan((n-1)π / 2N)|≦|v(k)|<|u(k)|×|tan(nπ / 2N)|, the value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) is obtained as the phase difference spectrum φ(k); when Y(k) is in the fourth quadrant or on the boundary between the third and fourth quadrants, and |u(k)|×|tan((n-1)π / 2N)|≧|v(k)|>|u(k)|×|tan(nπ / 2N)|, the value whose real part is cos((2n-1)π / 4N) and whose imaginary part is sin((2n-1)π / 4N) is obtained as the phase difference spectrum φ(k).
[0098] [[Modification of the Third Example of the Phase Difference Spectrum Estimation Unit 122]]
[0099] In addition to step S122-C, the phase difference spectrum estimation unit 122 may also obtain, when Y(k) is on the boundary line of the region, a representative value of a predetermined phase difference spectrum when Y(k) is on the boundary line of the region as the phase difference spectrum φ(k) (step S122-C2). That is, the phase difference spectrum estimation unit 122 may also obtain, when the deflection angle θ of Y(k) is nπ / 2N, a representative value of a predetermined phase difference spectrum when the deflection angle θ of Y(k) is nπ / 2N as the phase difference spectrum φ(k). Specifically, when |u(k)|×tan(nπ / 2N)=|v(k)|, the phase difference spectrum estimation unit 122 may also obtain a value whose real part is cos(nπ / 2N) and whose imaginary part is sin(nπ / 2N) as the phase difference spectrum φ(k).
[0100] [[Fourth Example of Phase Difference Spectrum Estimation Unit 122]]
[0101] In the fourth example, an example of estimating a phase difference spectrum using a binary search within a quadrant is described. However, for convenience, the case where no search within the quadrant is performed is also described. In the following, P is the number of times a binary search is performed, which is a predetermined integer greater than 0. For example, if P=0, the phase difference spectrum estimation unit 122 of the fourth example does not perform a search within the quadrant (that is, a binary search is not performed even once), if P=1, a binary search is performed once, and if P=2, two binary searches are performed. According to each frequency k, P can be an individual value, or it can be the same value for all frequencies.
[0102] The phase difference spectrum estimation unit 122 of the fourth example searches for the quadrant in which Y(k) exists. If P=0, for the quadrant in which Y(k) is located, a predetermined representative value of the phase difference spectrum is obtained as the phase difference spectrum φ(k). If P≠0, for the quadrant in which Y(k) is located, a binary search of the range of P deflection angles is performed to determine the range of the deflection angle in which Y(k) is located. For the determined range of deflection angles, a predetermined representative value of the phase difference spectrum is obtained as the phase difference spectrum φ(k) (step S122-D). The representative values of the predetermined phase difference spectrum are stored in the representative value storage unit 1221 in the phase difference spectrum estimation unit 122.
[0103] The representative value of the phase difference spectrum of each quadrant is, for example, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the central value of the range of the deflection angle of the quadrant, specifically, a value whose real part is the cosine of the central value of the range of the deflection angle of the quadrant and whose imaginary part is the sine of the central value of the range of the deflection angle of the quadrant. The representative value of the phase difference spectrum of each range of deflection angle is, for example, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the central value of the range, specifically, a value whose real part is the cosine of the central value of the range of the deflection angle and whose imaginary part is the sine of the central value of the range of the deflection angle.
[0104] In each quadrant, the frequency distribution of the deflection angle of the phase difference spectrum sometimes deviates depending on the relationship or frequency of the signals of the two channels. Therefore, the representative value of the phase difference spectrum can be set in consideration of the deviation of the frequency distribution of the deflection angle. That is, it is not necessary for the representative value of the phase difference spectrum of each quadrant to be a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the central value of the range of the deflection angle of the quadrant. The representative value of the phase difference spectrum of each quadrant can be a complex value of a predetermined point on the circumference of a unit circle whose deflection angle in the complex plane is within the range of the deflection angle of the quadrant. Specifically, it can be a value whose real part is the cosine of the representative value of the deflection angle within the range of the deflection angle of the quadrant and whose imaginary part is the sine of the representative value of the deflection angle within the range of the deflection angle of the quadrant. Similarly, it is not necessary for the representative value of the phase difference spectrum for each range of deflection angle to be a complex value of a point on the circumference of a unit circle in the complex plane where the deflection angle is the central value of the range of deflection angle. The representative value of the phase difference spectrum for each range of deflection angle only needs to be a complex value of a predetermined point on the circumference of a unit circle in the complex plane within the range of deflection angle, specifically, a value whose real part is the cosine of the representative value of the deflection angle for the range of deflection angle and whose imaginary part is the sine of the representative value of the deflection angle for the range of deflection angle.
[0105] For example, when the digital sound signals obtained by performing AD conversion on the sounds picked up by the left channel microphone and the right channel microphone respectively arranged in a certain space are the first channel input sound signal and the second channel input sound signal, and when the sound emitted by a person existing in the space is included in the first channel input sound signal and the second channel input sound signal in a state where a so-called arrival time difference is given, the phase difference spectrum is distributed at low frequencies with a bias toward the deflection angle close to the real axis side on the circumference of the unit circle of the complex plane, and at medium and high frequencies, it is distributed almost uniformly without bias toward a specific deflection angle on the circumference of the unit circle of the complex plane. Thus, for example, when the frequency is below or below a predetermined threshold value, the deflection angle value of the representative value of the phase difference spectrum of each quadrant in the complex plane is a value closer to the real axis than the central value of the range of the deflection angle of the complex plane being the deflection angle of the quadrant, and when the frequency is not such (that is, when the frequency is higher than or above the threshold value), the deflection angle of the complex plane is the central value of the range of the deflection angle of the quadrant. Or, for example, the lower the frequency, the value of the representative value of the phase difference spectrum of each quadrant in the complex plane is closer to the real axis than the central value of the range of the deflection angle of the quadrant when the deflection angle of the complex plane is the real axis, and the higher the frequency, the value is closer to the central value of the range of the deflection angle of the quadrant when the deflection angle of the complex plane is the real axis.
[0106] Similarly, for example, when the frequency is below or below a predetermined threshold value, the representative value of the phase difference spectrum of each range of deflection angle is a value closer to the real axis than the central value of the range of the deflection angle of the complex plane when the deflection angle is the deflection angle, and when the frequency is not such (that is, when the frequency is higher than or above the threshold value), it is the central value of the range of the deflection angle of the complex plane. Or, for example, the lower the frequency, the representative value of the phase difference spectrum of each range of deflection angle is a value closer to the real axis than the central value of the range of the deflection angle of the complex plane when the deflection angle is the deflection angle, and the higher the frequency, the value is closer to the central value of the range of the deflection angle than the deflection angle of the complex plane when the deflection angle is the real axis.
[0107] The above-mentioned threshold is, for example, predetermined to be approximately below or less than 500 Hz, below or less than the threshold. In addition, the above-mentioned threshold is specified for the sampling number (sampling index) assigned in sequence from the low-frequency side. Therefore, for example, if the frame length is 20 ms, regardless of the sampling frequency is 32 kHz, when the phase difference spectrum is actually obtained for 320 frequencies, the sampling frequency is 48 kHz, when the phase difference spectrum is actually obtained for 480 frequencies, the sampling frequency is 16 kHz, and when the phase difference spectrum is actually obtained for 160 frequencies, that is, regardless of the sampling frequency, when the threshold is set to 10 and the index is below the threshold 10, the value of the deflection angle of the representative value of the phase difference spectrum in the complex plane is a value closer to the real axis than the central value of the range of the deflection angle, and when the index is greater than the threshold 10, the value of the deflection angle of the representative value of the phase difference spectrum in the complex plane is the central value of the range of the deflection angle. Similarly, for example, if the frame length is 40 ms, which is twice 20 ms, the threshold value may be set to 20, and if the frame length is 10 ms, which is half of 20 ms, the threshold value may be set to 5.
[0108] In addition, in the specific example described later in step S122-D, since the deflection angle of the complex plane is the representative value of the range of the deflection angle of each quadrant and the representative value of each range of the deflection angle, the absolute value of the tangent, the value of the cosine, and the value of the sine are also used, the range of the deflection angle of each quadrant and the representative value of the deflection angle of each range of the deflection angle, the absolute value of the tangent, the value of the cosine, and the value of the sine can also be calculated in advance and stored in the representative value storage unit 1221. Of course, in addition to the aforementioned cosine value and sine value, the representative value of the real part is the cosine and the imaginary part is the sine. In addition, the representative value of the phase difference spectrum of each quadrant is the central value of the range of the deflection angle of the quadrant when the deflection angle of the complex plane is the deflection angle of the quadrant. In the case where the phase difference spectrum estimation unit 122 does not use the absolute value of the tangent of the representative value of the range of the deflection angle of each quadrant, the absolute value of the tangent of the representative value of the range of the deflection angle of each quadrant may not be stored in the representative value storage unit 1221.
[0109] A specific example of step S122 -D performed by the phase difference spectrum estimation unit 122 will be described in the following steps S122 - D1 to S122 - D6 .
[0110] The phase difference spectrum estimation unit 122 first sets p=0, determines which quadrant of the complex plane Y(k) is in, and obtains the representative value of the deflection angle of the range of the deflection angle of the quadrant where Y(k) is located (step S122-D1). The phase difference spectrum estimation unit 122 determines which quadrant of the complex plane Y(k) is in in the same way as the phase difference spectrum estimation unit 122 of the first example. That is, the phase difference spectrum estimation unit 122 determines which quadrant of the complex plane Y(k) is in based on the code of u(k) or whether u(k) is positive or negative and the code of the imaginary part v(k) or whether the imaginary part v(k) is positive or negative, for example, based on the combination of the code of u(k) and the code of v(k), or the combination of whether u(k) and v(k) are positive or negative, respectively.
[0111] Subsequent to step S122-D1, the phase difference spectrum estimation unit 122 obtains a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in step S122-D1, that is, a complex value whose real part is the cosine of the representative value of the deflection angle obtained in step S122-D1 and whose imaginary part is the sine of the representative value of the deflection angle obtained in step S122-D1, as the phase difference spectrum φ(k) (step S122-D2) when p=P (i.e., when P=0). The phase difference spectrum estimation unit 122 ends the processing of step S122-D in step S122-D2. In addition, when the phase difference spectrum estimation unit 122 ends the processing of step S122-D in step S122-D2, it obtains the same result as the phase difference spectrum estimation unit 122 of the first example.
[0112] Subsequent to step S122-D1, the phase difference spectrum estimation unit 122 sets the value obtained by adding 1 to p as a new p (i.e., sets 1 as the new p), obtains the range of the deflection angle of the quadrant where Y(k) is located as the search range of the next step, and obtains the absolute value of the tangent of the representative value of the deflection angle obtained in step S122-D1 (i.e., the representative value of the deflection angle of the search range of the next step) (step S122-D3).
[0113] Subsequently to step S122-D3 or step S122-D6 described later, the phase difference spectrum estimation unit 122 determines that Y(k) exists within the range on the real axis side of the search range when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding processing (i.e., step S122-D3 or step S122-D6 described later) by |u(k)| is greater than |v(k)|, and obtains the representative value of the deflection angle of the range on the real axis side of the search range; and when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding processing by |u(k)| is less than |v(k)|, determines that Y(k) exists within the range on the imaginary axis side of the search range, and obtains the representative value of the deflection angle of the range on the imaginary axis side of the search range (step S122-D4).
[0114] Of course, instead of comparing the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range by |u(k)| and |v(k)|, it is also possible to compare the value obtained by multiplying the absolute value of the cotangent (cotangent) of |u(k)| and the representative value of the deflection angle of the search range by |v(k)|. That is, the phase difference spectrum estimation unit 122 may also, in subsequent to step S122-D3 or the later-described step S122-D6, determine that Y(k) exists within the range on the real axis side of the search range when |u(k)| is greater than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding processing by |v(k)|, and obtain the representative value of the deflection angle of the range on the real axis side of the search range; and determine that Y(k) exists within the range on the imaginary axis side of the search range when |u(k)| is less than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding processing by |v(k)|. At this time, since the absolute value of the cotangent of the representative value of the range of the deflection angle in the complex plane is also used, the absolute value of the cotangent of the representative value of each range of the deflection angle is also calculated in advance and stored in the representative value storage unit 1221. The phase difference spectrum estimation unit 122 replaces the absolute value of the tangent of the representative value of the deflection angle of the search range of the next step in the immediately previous step S122-D3 and the subsequent step S122-D6 to obtain the absolute value of the cotangent of the representative value of the deflection angle of the search range of the next step.
[0115] In addition, the range on the real axis side in the search range refers to the range on the real axis side of the search range when the search range in the complex plane is divided into two by a straight line with the deflection angle as a representative value, and the range on the imaginary axis side in the search range refers to the range on the imaginary axis side of the search range when the search range in the complex plane is divided into two by a straight line with the deflection angle as a representative value. If the representative value of the deflection angle of the search range is the central value of the deflection angle of the search range, the range on the real axis side in the search range refers to the range of half of the real axis side of the search range when the search range in the complex plane is divided into two by a straight line with the deflection angle as the central value, and the range on the imaginary axis side in the search range refers to the range of half of the imaginary axis side of the search range when the search range in the complex plane is divided into two by a straight line with the deflection angle as the central value.
[0116] In addition, the processing immediately before step S122-D4 is step S122-D3. When the representative value of the deflection angle obtained in step S122-D1 is the central value of the deflection angle, the absolute value of the tangent of the representative value of the search range obtained in the immediately preceding processing must be 1. Therefore, the phase difference spectrum estimation unit 122 can replace "the case where the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle in the search range and |u(k)| is greater than |v(k)|" with "the case where |u(k)| is greater than |v(k)|", and can also replace "the case where the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle in the search range and |u(k)| is less than |v(k)|" with "the case where |u(k)| is less than |v(k)|". In the immediately preceding processing, i.e., step S122-D3, the absolute value of the tangent of the representative value of the deflection angle of the quadrant where Y(k) is located does not need to be obtained. That is, the phase difference spectrum estimation unit 122 performs the following processing as step S122-D4, that is, in the case where the representative value of the deflection angle obtained in step S122-D1 is the central value of the deflection angle in the subsequent step S122-D3, when |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range of half of the real axis side of the search range obtained in step S122-D3, and the representative value of the deflection angle in the range of half of the real axis side of the search range obtained in step S122-D3 is obtained; when |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range of half of the imaginary axis side of the search range obtained in step S122-D3, and the representative value of the deflection angle in the range of half of the imaginary axis side of the search range obtained in step S122-D3 is obtained, and in step In the subsequent case of step S122-D6, when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in step S122-D6 by |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in step S122-D6, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in step S122-D6 is obtained. When the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in step S122-D6 by |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in step S122-D6, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in step S122-D6 is obtained.
[0117] Subsequent to step S122-D4, when p=P, the phase difference spectrum estimation unit 122 obtains a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in step S122-D4, that is, a complex value whose real part is the cosine of the representative value of the deflection angle obtained in step S122-D4 and whose imaginary part is the sine of the representative value of the deflection angle obtained in step S122-D4, as the phase difference spectrum φ(k) (step S122-D5). When p=P, the phase difference spectrum estimation unit 122 ends the processing of step S122-D in step S122-D5.
[0118] The phase difference spectrum estimation unit 122 performs step S122-D4, and if p=P (p≠P), sets the value obtained by adding 1 to p as a new p, obtains the range of the deflection angle of the range where Y(k) determined in step S122-D4 is located as the search range of the next step, and obtains the absolute value of the tangent of the representative value of the deflection angle obtained in step S122-D4 (that is, the representative value of the deflection angle of the search range of the next step) (step S122-D6). The phase difference spectrum estimation unit 122 performs step S122-D4 after step S122-D6.
[0119] In addition, in step S122-D1, when Y(k) is on the boundary line of the quadrants in the complex plane, the phase difference spectrum estimation unit 122 can treat it as if Y(k) is in any quadrant sandwiched by the boundary line and perform processing, similarly to the phase difference spectrum estimation unit 122 in the first and second examples. Similarly, when Y(k) is on the boundary line of the binary search of the range of the deflection angle, the phase difference spectrum estimation unit 122 can treat it as if Y(k) is in the range on either side of the boundary line and perform processing. Specifically, the phase difference spectrum estimation unit 122 may also perform the processing in step S122-D4 instead of "a case where the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range and |u(k)| is greater than |v(k)|"; or, instead of "a case where the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range and |u(k)| is less than |v(k)|", perform the processing instead of "a case where the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range and |u(k)| is less than |v(k)|". Similarly, when the cotangent is used, the phase difference spectrum estimation unit 122 may, in step S122-D4, perform the following processing: "when |u(k)| is greater than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range by |v(k)|" instead of "when |u(k)| is greater than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range by |v(k)|", or "when |u(k)| is less than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range by |v(k)|" instead of "when |u(k)| is less than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range by |v(k)|".
[0120] [[Modification of the Fourth Example of the Phase Difference Spectrum Estimation Unit 122]]
[0121] When Y(k) is on the boundary line of the quadrant in the complex plane, the phase difference spectrum estimation unit 122 can obtain the representative value of the predetermined phase difference spectrum when Y(k) is on the boundary line of the quadrant as the phase difference spectrum φ(k), similarly to the phase difference spectrum estimation unit 122 of the modified example of the first example. Specifically, the phase difference spectrum estimation unit 122 also determines whether Y(k) is on the boundary line of the quadrant in the complex plane in step S122-D1. When Y(k) is on the boundary line of the quadrant in the complex plane, similarly to the phase difference spectrum estimation unit 122 of the modified example of the first example, the representative value of the predetermined phase difference spectrum when Y(k) is on the boundary line of the quadrant can be obtained as the phase difference spectrum φ(k), and step S122-D ends.
[0122] Similarly, when Y(k) is on the dividing line of the binary search of the range of the deflection angle, the phase difference spectrum estimation unit 122 can obtain the predetermined representative value of the phase difference spectrum when Y(k) is on the dividing line as the phase difference spectrum φ(k). Specifically, in step S122-D4, the phase difference spectrum estimation unit 122 also determines whether the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding processing by |u(k)| is the same as |v(k)|. When the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding processing by |u(k)| is the same as |v(k)|, a complex value whose real part is the cosine of the representative value of the deflection angle of the search range obtained in the immediately preceding processing and whose imaginary part is the sine of the representative value of the deflection angle of the search range obtained in the immediately preceding processing is obtained as the phase difference spectrum φ(k), and step S122-D ends. Of course, the phase difference spectrum estimation unit 122 may also determine in step S122-D4 whether the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately previous processing by |u(k)| is the same as |v(k)|, instead of determining whether the value obtained by multiplying |u(k)| by the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately previous processing by |v(k)| is the same as the value obtained by multiplying |u(k)| by the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately previous processing by |v(k)|, and if |u(k)| is the same as the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately previous processing by |v(k)|, obtain a complex value whose real part is the cosine of the representative value of the deflection angle of the search range obtained in the immediately previous processing and whose imaginary part is the sine of the representative value of the deflection angle of the search range obtained in the immediately previous processing as the phase difference spectrum φ(k), and end step S122-D.
[0123] [[Fifth Example of the Phase Difference Spectrum Estimation Unit 122]]
[0124] The phase difference spectrum estimation unit 122 of the first to fourth examples pre-establishes a correspondence between the value of the real part and the value of the imaginary part of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel on the complex plane and each of the representative values of the plurality of phase difference spectra, but may not pre-establish a correspondence. This example is described as the fifth example. In the description of the fifth example, Q is a predetermined integer greater than 2.
[0125] Q predetermined candidate values of the phase difference spectrum are stored in the representative value storage unit 1221 of the phase difference spectrum estimation unit 122. The Q predetermined candidate values of the phase difference spectrum are values on the circumference of the unit circle of the complex plane, and are values with different deflection angles on the complex plane. The Q predetermined candidate values of the phase difference spectrum may also be arranged at equal intervals on the circumference of the unit circle of the complex plane, and the frequency distribution of the deflection angle of the phase difference spectrum may be densely arranged in a range of deflection angles with high frequency on the circumference of the unit circle of the complex plane, or may be arranged at unequal intervals on the circumference of the unit circle of the complex plane. In addition, as in the fourth example, the frequency distribution of the deflection angle of the phase difference spectrum may be different for each frequency, and Q candidate values of the phase difference spectrum may be predetermined for each frequency or each range of frequencies. For example, when the frequency is below a predetermined threshold or less than the threshold, the candidate values of the Q phase difference spectrum may be configured so that the closer the deflection angle is to the real axis on the circumference of the unit circle of the complex plane, the denser the interval is, and when the frequency is not such (that is, when the frequency is higher than the threshold or above the threshold), the candidate values of the Q phase difference spectrum may be configured so that the lower the frequency, the greater the deviation of the deflection angle on the circumference of the unit circle of the complex plane toward the equally spaced real axis, and may also be configured so that the higher the frequency, the smaller the deviation of the deflection angle on the circumference of the unit circle of the complex plane toward the equally spaced real axis. In addition, the threshold is the same as that in the fourth example.
[0126] The phase difference spectrum estimation unit 122 selects, for each frequency k, from Q predetermined phase difference spectrum candidate values and obtains the phase difference spectrum candidate value whose angle of deflection on the complex plane is closest to the angle of deflection on the complex plane of the product Y(k) of the spectrum X1(k) of the first channel and the complex conjugate  ̄X2(k) of the spectrum X2(k) of the second channel as the phase difference spectrum φ(k) (step S122-E).
[0127] When q is set to an integer greater than or equal to 1 and less than or equal to Q, the candidate value of the phase difference spectrum is set to φ(q), and the real part of φ(q) is set to φ(q) real , set the imaginary part of φ(q) to φ(q) imag , when the deflection angle of φ(q) on the complex plane is θ(φ(q)), tanθ(φ(q))=φ(q) imag / φ(q) realOn the other hand, when the deflection angle of Y(k) on the complex plane is set to θ(Y(k)), tanθ(Y(k))=v(k) / u(k). Therefore, the phase difference spectrum estimation unit 122 selects tanθ(φ(q)) closest to tanθ(Y(k)) from the Q tangents of tanθ(φ(1))~tanθ(φ(Q)) for each frequency k, and obtains φ(q) corresponding to the selected tanθ(φ(q)) as the phase difference spectrum φ(k). However, in order to avoid a large amount of computational processing due to the division of tanθ(Y(k))=v(k) / u(k), specifically, for example, tanθ(φ(q)) is also pre-stored in the representative value storage unit 1221 of the phase difference spectrum estimation unit 122 in correspondence with the candidate value φ(q) of each phase difference spectrum. The phase difference spectrum estimation unit 122 obtains, for each frequency k, φ(q) corresponding to tanθ(φ(q)) having the minimum value of |u(k)×tanθ(φ(q))-v(k)| as the phase difference spectrum φ(k). Of course, the representative value storage unit 1221 of the phase difference spectrum estimation unit 122 also stores the inverse of tanθ(φ(q)), namely cotθ(φ(q)), in advance corresponding to the candidate value φ(q) of each phase difference spectrum. The phase difference spectrum estimation unit 122 can obtain the φ(q) corresponding to the cotθ(φ(q)) with the minimum value of |u(k)-v(k)×cotθ(φ(q))| for each frequency k as the phase difference spectrum φ(k). The phase difference spectrum estimation unit 122 can also store the value of tanθ(φ(q)) or the value of cotθ(φ(q)) used for the above-mentioned processing in the representative value storage unit 1221.
[0128] In the fifth example, as in the representative values of the first to fourth examples, since the correspondence with the deflection angle of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel on the complex plane is not performed in advance, the candidate value called the phase difference spectrum is stored in the representative value storage unit 1221. However, since the correspondence with the deflection angle of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel on the complex plane can be determined for each candidate value of the fifth example, there is no problem in calling it a representative value in the same way as the representative values of the first to fourth examples.
[0129] [[Summary of the Phase Difference Spectrum Estimation Unit 122 (Step S122 )]]
[0130] As described in the first to fifth examples and the modified examples of the first to fourth examples, in short, the phase difference spectrum estimation unit 122 obtains one of a plurality of predetermined phase difference spectrum candidate values as the phase difference spectrum φ(k) for each frequency k based on the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of the product Y(k) of the complex conjugate  ̄X2(k) of the spectrum X1(k) of the first channel and the spectrum X2(k) of the second channel. Here, the plurality of predetermined phase difference spectrum candidate values are values on the circumference of the unit circle on the complex plane, and are values with different deflection angles on the complex plane. In the first to fourth examples and these modified examples, each candidate value of the phase difference spectrum corresponds in advance to the range of the deflection angle of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel on the complex plane. In the first to fourth examples and these variants, these multiple predetermined phase difference spectrum candidate values and the aforementioned range of deflection angles corresponding to each candidate value are pre-stored in the representative value storage unit 1221. In the first to third examples and these variants, the phase difference spectrum estimation unit 122 uses the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of Y(k) representing the deflection angle of Y(k) on the complex plane for each frequency k, and selects and obtains, from among the multiple predetermined phase difference spectrum candidate values, a candidate value whose deflection angle range on the complex plane of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel that are pre-established to correspond includes the deflection angle of Y(k) on the complex plane as the phase difference spectrum φ(k). In addition, in the fourth example and the variation, the phase difference spectrum estimation unit 122 uses the relationship between the real part u(k) and the imaginary part v(k) of Y(k) representing the deflection angle of Y(k) on the complex plane for each frequency k, and determines the range of the deflection angle in which Y(k) is located by performing a binary search of the range of P deflection angles for the quadrant in which Y(k) is located, and obtains a candidate value of the phase difference spectrum predetermined by the determined deflection angle range as the phase difference spectrum φ(k).
[0131] For example, the candidate values of the predetermined phase difference spectrum are four representative values, and the case where the range of the deflection angle of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel on the complex plane is any one of the first quadrant to the fourth quadrant and the representative values of the phase difference spectrum corresponds to the first example described above. In the first example, the phase difference spectrum estimation unit 122 uses the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of Y(k) representing the deflection angle of Y(k) on the complex plane for each frequency k, and uses a combination of whether u(k) is a positive value or a negative value and whether v(k) is a positive value or a negative value to obtain the representative value of the corresponding quadrant among the four predetermined representative values of the phase difference spectrum as the phase difference spectrum φ(k).
[0132] For example, the candidate values of the predetermined phase difference spectrum are 8 representative values, and the case where the range of the deflection angle of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel on the complex plane is a range of 8 ranges, which are the smaller and larger deflection angles of each quadrant, is associated with each representative value of the phase difference spectrum is equivalent to the above-mentioned second example. In the second example, the phase difference spectrum estimation unit 122 uses the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of Y(k) representing the deflection angle of Y(k) on the complex plane for each frequency k, and uses a combination of whether u(k) is a positive value or a negative value and whether v(k) is a positive value or a negative value, and whether the absolute value of u(k) |u(k)| and the absolute value of v(k) |v(k)| to obtain a representative value of the corresponding range among the 8 predetermined representative values of the phase difference spectrum as the phase difference spectrum φ(k).
[0133] For example, the candidate values of the predetermined phase difference spectrum are 4N representative values, and the case where any one of the 4N ranges obtained by dividing the range of the deflection angle of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel on the complex plane into the deflection angle of each quadrant corresponds to each representative value of the phase difference spectrum is equivalent to the above-mentioned third example. In the third example, the phase difference spectrum estimation unit 122 uses the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of Y(k) representing the deflection angle of Y(k) on the complex plane for each frequency k, and uses the combination of whether u(k) is a positive value or a negative value and whether v(k) is a positive value or a negative value, and whichever is greater after multiplying |u(k)| and |v(k)| by a specified value to obtain the representative value of the corresponding range among the 4N predetermined representative values of the phase difference spectrum as the phase difference spectrum φ(k).
[0134] For example, determining the quadrant where Y(k) is located and performing a binary search on the range of the deflection angle of the quadrant where Y(k) is located is equivalent to the above-mentioned fourth example. In the fourth example, the phase difference spectrum estimation unit 122 uses a combination of whether u(k) is a positive value or a negative value and whether v(k) is a positive value or a negative value for each frequency k to determine the quadrant where Y(k) is located, and uses a binary search to find which one of |u(k)| and |v(k)| is larger after multiplying the specified value, thereby obtaining a representative value of the corresponding range among the representative values of the plurality of predetermined phase difference spectra as the phase difference spectrum φ(k).
[0135] For example, the range of the deflection angle on the complex plane of the product of the complex conjugate of the spectrum of the first channel and the spectrum of the second channel is not preliminarily matched to each candidate value of the phase difference spectrum, and a reasonable candidate value is selected, which is equivalent to the fifth example described above. In the fifth example, in the representative value storage unit 1221 of the phase difference spectrum estimation unit 122, for each integer q greater than 1 and less than Q, candidate values φ(q) and tanθ(φ(q)) of each phase difference spectrum are preliminarily stored, and the phase difference spectrum estimation unit 122 obtains, for each frequency k, φ(q) corresponding to tanθ(φ(q)) with the minimum value of |u(k)×tanθ(φ(q))-v(k)| as the phase difference spectrum φ(k).
[0136] The phase difference spectrum φ(k) of each frequency k from 0 to T−1 obtained by the phase difference spectrum estimation unit 122 is output from the phase difference spectrum estimation unit 122 and input to the inter-channel relationship information acquisition unit 123 .
[0137] [Inter-channel relationship information acquisition unit 123]
[0138] The channel relationship information acquisition unit 123 calculates the predetermined τ max ~τ min (For example, τ max is a positive number, τ min is a negative number) cand , perform inverse Fourier transform on the sequence of phase difference spectra φ(0)~φ(T-1), and for τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ), obtain and output the phase difference signal φ (τ cand ) is the absolute value of the correlation value γ cand The maximum value of the channel correlation value γ is taken as the maximum value of the channel correlation value τ cand When the correlation value is a positive value, information indicating the precedence of the first channel is obtained and output as the precedent channel information. cand If it is a negative value, information indicating that the second channel is preceding is obtained and output as preceding channel information (step S123 ). Hereinafter, an example of the processing of the inter-channel relationship information acquisition unit 123 will be described in detail.
[0139] The channel relationship information acquisition unit 123 first calculates the predetermined τ max ~τ min (For example, τ max is a positive number, τ min is a negative number) candBy performing inverse Fourier transform on the sequence of phase difference spectra φ(0) to φ(T-1) input from the phase difference spectrum estimation unit 122 as shown in the following equation (1-7), τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ).
[0140] [Formula 7]
[0141]
[0142] The predetermined number of candidate samples can be τ max ~τ min The integer values of can also be included in τ max ~τ min The fractional value or decimal value between τ and max ~τ min In addition, τ max =-τ min , or not. If we assume that the input audio signal is an object in which it is unclear which channel comes first, we can max Set it to a positive number and set τ min Set to a negative number.
[0143] Since the phase difference signal φ(τ cand ) represents a certain correlation corresponding to the rationality of the time difference between the first channel input sound signal x1(1), x1(2), ..., x1(T) and the second channel input sound signal x2(1), x2(2), ..., x2(T), so the channel relationship information acquisition unit 123 will be relative to each candidate sampling number τ cand The phase difference signal φ (τ cand ) is used as the correlation value γ cand That is, the channel relationship information acquisition unit 123 obtains and outputs the phase difference signal φ (τ cand ) is the absolute value of the correlation value γ cand The maximum value of is taken as the inter-channel correlation value γ, and τ when the correlation value is the maximum value cand When the correlation value is a positive value, information indicating the precedence of the first channel is obtained and output as the precedent channel information. cand When τ is a negative value, information indicating that the second channel is preceding is obtained and output as preceding channel information. candWhen γ is 0, information indicating that the first channel precedes is obtained as the preceding channel information, information indicating that the second channel precedes may be obtained and output as the preceding channel information, or information indicating that no channel precedes may be obtained and output as the preceding channel information. In addition, the channel relationship information acquisition unit 123 may replace the correlation value γ with cand While keeping the phase difference signal φ (τ cand ), for example, using cand , and the phase difference signal φ(τ cand ) of the absolute value of τ cand In other words, the channel relationship information acquisition unit 123 calculates a normalized value such as the average relative difference of the absolute values of the phase difference signals obtained by the plurality of candidate sampling numbers before and after. cand , use the predetermined positive number τrange, and obtain the average value through the following formula (1-8), and use the obtained average value φ c (τ cand ) and the phase difference signal φ(τ cand ) The normalized correlation value obtained by the following formula (1-9) is used as γ cand .
[0144] [Formula 8]
[0145]
[0146] [Formula 9]
[0147]
[0148] In addition, the normalized correlation value obtained by formula (1-9) is a value greater than or equal to 0 and less than or equal to 1, which represents τ cand As the time difference between channels is more reasonable, it is closer to 1, τ cand The more unreasonable the time difference between channels is, the closer it is to 0.
[0149] The inter-channel correlation value γ and the preceding channel information obtained by the inter-channel relationship information acquisition unit 123 are output from the inter-channel relationship information acquisition unit 123 and are input to the downmix unit 130 .
[0150] [Downmixing unit 130]
[0151] The downmixing unit 130 inputs the first channel input audio signal input to the audio signal downmixing apparatus 100, the second channel input audio signal input to the audio signal downmixing apparatus 100, the inter-channel correlation value γ output by the inter-channel relationship information estimating unit 120, and the preceding channel information output by the inter-channel relationship information estimating unit 120. The downmixing unit 130 performs weighted addition of the first channel input audio signal and the second channel input audio signal so that the larger the inter-channel correlation value γ is, the larger the preceding channel input audio signal is included in the downmixed signal, and obtains and outputs the downmixed signal (step S130).
[0152] For example, as in the example described above in the description of the inter-channel relationship information estimation unit 120, if the inter-channel correlation value uses the absolute value of the correlation coefficient and the normalized value, the inter-channel correlation value γ input from the inter-channel relationship information estimation unit 120 is a value greater than or equal to 0 and less than or equal to 1, so the downmix unit 130 performs weighted addition of the first channel input audio signal x1(t) and the second channel input audio signal x2(t) using a weight determined by the inter-channel correlation value γ for each corresponding sample number t, and sets the result as the downmix signal x1(t). M For example, when the preceding channel information is information indicating that the first channel precedes, that is, when the first channel precedes, x is obtained. M (t) = ((1 + γ) / 2) × x1 (t) + ((1 - γ) / 2) × x2 (t), when the preceding channel information is information indicating that the second channel precedes, that is, when the second channel precedes, x is obtained. M (t) = ((1-γ) / 2) × x1(t) + ((1+γ) / 2) × x2(t), as the downmix signal x M When the downmix unit 130 obtains the downmix signal in this way, the smaller the channel correlation value γ is, in other words, the smaller the correlation between the first channel input sound signal and the second channel input sound signal is, the closer the downmix signal is to the signal obtained by averaging the first channel input sound signal and the second channel input sound signal, and the larger the inter-channel correlation value γ is, in other words, the larger the correlation between the first channel input sound signal and the second channel input sound signal is, the closer the downmix signal is to the input sound signal of the preceding channel of the first channel input sound signal and the second channel input sound signal.
[0153] In addition, when there is no channel advance, the downmix unit 130 may perform weighted addition of the first channel input sound signal and the second channel input sound signal in such a way that the first channel input sound signal and the second channel input sound signal are included in the downmix signal with the same weight to obtain and output the downmix signal. That is, when there is no channel advance of the preceding channel information, the downmix unit 130 may perform weighted addition of the first channel input sound signal and the second channel input sound signal to obtain the downmix signal, for example, and specifically, for each sample number t, the first channel input sound signal x1(t) and the second channel input sound signal x2(t) are averaged to obtain the downmix signal. M (t) = (x1(t) + x2(t)) / 2 is set as the downmix signal x M (t).
[0154] <Second embodiment>
[0155] The audio signal downmixing device 100 of the second embodiment is different from the audio signal downmixing device 100 of the first embodiment in that the channel relationship information acquisition unit 123 assigns a weight to each frequency to obtain the phase difference signal φ (τ cand ), and the accuracy of the phase difference spectrum estimated by the phase difference spectrum estimation unit 122 depends on the weight for each frequency. The following describes the differences between the sound signal downmixing device 100 of the second embodiment and the sound signal downmixing device 100 of the first embodiment.
[0156] The channel relationship information acquisition unit 123 of the second embodiment selects each candidate sample number τ. cand By performing inverse Fourier transform on the sequence of estimated values φ(0) to φ(T-1) of the phase difference spectrum input from the phase difference spectrum estimation unit 122 as shown in the following formula (2-1), the relationship between τ and max ~τ min The number of candidate samples τ cand Phase difference signal φ(τ cand ).
[0157] [Formula 10]
[0158]
[0159] w(k) in formula (2-1) is a weight coefficient related to frequency k and is a positive value. w(k) is, for example, a value greater than 0 and less than 1, and becomes smaller as k is closer to 0 or T-1, and becomes larger as k is farther from 0 and T-1.
[0160] The phase difference signal φ (τ cand), the smaller the weight coefficient w(k), the smaller the frequency k, the greater the accuracy of the phase difference spectrum estimated by the phase difference spectrum estimation unit 122 is on the phase difference signal φ(τ cand ) is smaller. That is, the frequency k with a small weight coefficient w(k) can reduce the estimation accuracy of the phase difference spectrum estimation unit 122 compared with the frequency k with a large weight coefficient w(k). For example, if the phase difference spectrum estimation unit 122 of the third example is used, the frequency k with a small weight coefficient w(k) can have a smaller number of divisions N in each quadrant than the frequency k with a large weight coefficient w(k). For another example, if the phase difference spectrum estimation unit 122 of the fourth example is used, the frequency k with a small weight coefficient w(k) can have a smaller number of binary searches P than the frequency k with a large weight coefficient w(k). For another example, if the phase difference spectrum estimation unit 122 of the fifth example is used, the frequency k with a small weight coefficient w(k) can have a smaller number of candidates Q for the phase difference spectrum than the frequency k with a large weight coefficient w(k).
[0161] In addition, if the phase difference spectrum estimation unit 122 of the fourth example is used, the number of binary searches (number of comparison steps) s(k) for each frequency k can be determined in the number of binary searches (number of comparison steps) S for the entire frequency domain so that the sum of the estimated errors of the deflection angles in the entire frequency domain is minimized. First, the number of comparison steps S for the entire frequency domain and the number of comparison steps s(k) for each frequency k are expressed by the following formula (2-2).
[0162] [Formula 11]
[0163]
[0164] Since the estimated error of the deflection angle of each sample is -2s(k) Therefore, the total estimated error D of the deflection angle in the entire frequency domain is expressed by the following formula (2-3).
[0165] [Formula 12]
[0166]
[0167] Therefore, in order to make the number of comparison steps S in the entire frequency domain constant and minimize the total D of the estimated errors of the deflection angle in the entire frequency domain, the number of comparison steps s(k) for each frequency k can be determined by the following formula (2-4).
[0168] [Formula 13]
[0169]
[0170] In addition, since the weight coefficient w(k) is predetermined, when the phase difference spectrum estimation unit 122 of the fourth example is used, the number of binary searches P for each frequency k can be predetermined based on the number of comparison steps s(k) for each frequency k calculated by formula (2-4). That is, the smaller the weight coefficient w(k) is, the smaller the number of binary searches P predetermined for each frequency k is.
[0171] <Third Embodiment>
[0172] In the first and second embodiments, the method of applying the phase difference spectrum estimation process of the present invention to the sound signal downmixing device has been described, but the phase difference spectrum estimation process of the present invention may also be applied to an inter-channel relationship information estimation device that estimates information indicating the relationship between a first channel input sound signal and a second channel input sound signal. This method will be described as the third embodiment.
[0173] Inter-channel relationship information estimation device 120
[0174] like Figure 5 As shown, the inter-channel relationship information estimation device 120 of the third embodiment includes a Fourier transform unit 121, a phase difference spectrum estimation unit 122, and an inter-channel relationship information acquisition unit 123. In other words, the inter-channel relationship information estimation device 120 includes the phase difference spectrum estimation device 200 of the fourth embodiment described later as the phase difference spectrum estimation unit 122. The inter-channel relationship information estimation device 120 of the third embodiment obtains and outputs information indicating the relationship between the input sound signals of the two channels, i.e., inter-channel relationship information, from the input two-channel stereo time domain sound signal, for example, in units of frames of a predetermined time length of 20 ms. The two-channel stereo time domain sound signal input to the inter-channel relationship information estimation device 120 is, for example, a digital sound signal or acoustic signal obtained by picking up sounds such as sounds, music, etc. with two microphones and performing AD conversion, and is composed of a first channel input sound signal and a second channel input sound signal. The inter-channel relationship information output by the inter-channel relationship information estimation device 120 is input to a device for encoding sound signals, a device for processing, etc. The inter-channel relationship information estimation device 120 of the third embodiment performs the following operations on each frame: Figure 6 The processes of step S121, step S122, and step S123 are illustrated. Hereinafter, the inter-channel relationship information estimation device 120 according to the third embodiment will be described with reference to the description of the first embodiment and the second embodiment as appropriate.
[0175] [Fourier transform unit 121]
[0176] The Fourier transform unit 121 is the same as the Fourier transform unit 121 of the first embodiment. The Fourier transform unit 121 performs Fourier transform on the first channel input audio signal x1(1), x1(2), ..., x1(T) and the second channel input audio signal x2(1), x2(2), ..., x2(T), respectively, thereby obtaining the first channel spectrum X1(k) and the second channel spectrum X2(k) at each frequency k from 0 to T-1 (step S121).
[0177] [Phase difference spectrum estimation unit 122]
[0178] The phase difference spectrum estimation unit 122 is the same as the phase difference spectrum estimation unit 122 of the first embodiment. The phase difference spectrum estimation unit 122 has a representative value storage unit 1221 that pre-stores representative values of a plurality of phase difference spectra, which are values on the circumference of a unit circle on a complex plane and are values with different deflection angles on the complex plane. The phase difference spectrum estimation unit 122 selects and obtains one of the representative values of the plurality of phase difference spectra stored in the representative value storage unit 1221 as the phase difference spectrum φ(k) based on the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of the product Y(k) of the complex conjugate  ̄X2(k) of the spectrum X1(k) of the first channel and the spectrum X2(k) of the second channel (step S122). Specific examples of the phase difference spectrum estimation unit 122 are as described in the first to fifth examples of the phase difference spectrum estimation unit 122 of the first embodiment and their modified examples and the second embodiment.
[0179] [Inter-channel relationship information acquisition unit 123]
[0180] The inter-channel relationship information acquisition unit 123 is the same as the phase difference spectrum estimation unit 122 of the first embodiment. However, the inter-channel relationship information acquisition unit 123 may output at least one of the inter-channel correlation value γ, the preceding channel information, and the inter-channel time difference described later as the inter-channel relationship information. That is, the inter-channel relationship information acquisition unit 123 first calculates the predetermined τ max ~τ min The number of candidate samples τ cand , perform inverse Fourier transform on the sequence based on the phase difference spectrum φ(0)~φ(T-1), for τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ), and obtain the phase difference signal φ(τ cand ) is the absolute value of the correlation value γ cand Next, the inter-channel relationship information acquisition unit 123 obtains and outputs the phase difference signal φ (τ cand) is the absolute value of the correlation value γ cand The maximum value of is taken as the inter-channel correlation value γ. In addition, when the inter-channel relationship information acquisition unit 123 outputs the inter-channel time difference, it obtains and outputs τ when the correlation value is the maximum value. cand When the channel relationship information acquisition unit 123 outputs the preceding channel information, the channel relationship information acquisition unit 123 calculates the time difference between the channels when the correlation value is the maximum value. cand When it is a positive value, information indicating the precedence of the first channel is obtained as the precedent channel information. When the correlation value is the maximum value, τ cand When it is a negative value, information indicating that the second channel is preceding is obtained as preceding channel information. (above, step S123)
[0181] <Fourth embodiment>
[0182] It can be seen that the first and second embodiments have described the method of applying the phase difference spectrum estimation process of the present invention to the sound signal downmixing device, and the third embodiment has described the method of applying the phase difference spectrum estimation process of the present invention to the channel relationship information estimation device. In short, the phase difference spectrum estimation device as an independent device can perform the phase difference spectrum estimation process of the present invention. This method is described as the fourth embodiment.
[0183] Phase difference spectrum estimation device 200
[0184] like Figure 7 As shown, the phase difference spectrum estimation device 200 of the fourth embodiment includes a Fourier transform unit 121 and a phase difference spectrum estimation unit 122. The phase difference spectrum estimation device 200 of the fourth embodiment obtains and outputs the estimated value of the phase difference spectrum of each frequency in the frequency domain from the input two-channel signals, namely the first channel input signal and the second channel input signal. An example of the two-channel signal input to the phase difference spectrum estimation device 200 is, for example, a time-domain sound signal of two-channel stereo in a frame unit of a prescribed time length of 20ms, but the two-channel signal input to the phase difference spectrum estimation device 200 is not limited to a sound signal, and can be an image signal or any signal. In the case where the signal input to the phase difference spectrum estimation device 200 is a time-domain sound signal of two-channel stereo, the time-domain sound signal is, for example, a digital sound signal or an acoustic signal obtained by picking up sound, music, etc. by two microphones respectively and performing AD conversion, and is composed of a first channel input sound signal and a second channel input sound signal. The phase difference spectrum output by the phase difference spectrum estimation device 200 is input to a device that estimates inter-channel relationship information using the phase difference spectrum, a device that downmixes a signal, an encoding device, a signal processing device, and the like.
[0185] The phase difference spectrum estimation device 200 of the fourth embodiment performs phase difference spectrum estimation on each frame for each predetermined unit, for example, if it is a sound signal. Figure 8 The processing of step S121 and step S122 is illustrated. Hereinafter, for the phase difference spectrum estimation device 200 of the fourth embodiment, the prescribed unit is set to T samples, the first channel input signal is set to x1(1), x1(2), ..., x1(T), and the second channel input signal is set to x2(1), x2(2), ..., x2(T), and the description of the first embodiment is appropriately referred to.
[0186] [Fourier transform unit 121]
[0187] The Fourier transform unit 121 is the same as the Fourier transform unit 121 of the first embodiment. The Fourier transform unit 121 performs Fourier transform on the first channel input signal x1(1), x1(2), ..., x1(T) and the second channel input signal x2(1), x2(2), ..., x2(T) to obtain the frequency spectrum X1(k) of the first channel and the frequency spectrum X2(k) of the second channel at each frequency k from 0 to T-1 (step S121).
[0188] [Phase difference spectrum estimation unit 122]
[0189] The phase difference spectrum estimation unit 122 is the same as the phase difference spectrum estimation unit 122 of the first embodiment. The phase difference spectrum estimation unit 122 has a representative value storage unit 1221 that pre-stores representative values of a plurality of phase difference spectra, which are values on the circumference of a unit circle on a complex plane and have different deflection angles on the complex plane. The phase difference spectrum estimation unit 122 selects and obtains one of the representative values of the plurality of phase difference spectra stored in the representative value storage unit 1221 as the phase difference spectrum φ(k) based on the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of the product Y(k) of the complex conjugate  ̄X2(k) of the spectrum X1(k) of the first channel and the spectrum X2(k) of the second channel (step S122). Specific examples of the phase difference spectrum estimation unit 122 are as described in the first to fifth examples of the phase difference spectrum estimation unit 122 of the first embodiment and their modified examples, for example, as follows.
[0190] For example, the phase difference spectrum estimation unit 122 sets P to a predetermined integer greater than 0, and determines in which quadrant Y(k) exists. If P=0, the representative value of the phase difference spectrum of the quadrant where Y(k) is located, which is stored in the representative value of the phase difference spectrum stored in the representative value storage unit, is obtained as the phase difference spectrum φ(k). If P≠0, for the quadrant where Y(k) is located, the range of the deflection angle where Y(k) is located is determined by performing a binary search of the range of P deflection angles, and the representative value of the phase difference spectrum of the determined deflection angle range, which is stored in the representative value of the phase difference spectrum stored in the representative value storage unit, is obtained as the phase difference spectrum φ(k).
[0191] More specifically, the phase difference spectrum estimation unit 122 sets P to a predetermined integer greater than or equal to 0, and obtains the phase difference spectrum φ(k) through the following first to sixth sub-steps.
[0192] First sub-step: The phase difference spectrum estimation unit 122 is set to p=0, and based on the code of u(k) or whether u(k) is a positive value or a negative value, and the code of v(k) or whether v(k) is a positive value or a negative value, it is determined in which quadrant of the complex plane Y(k) is located, and a representative value of the deflection angle of the quadrant in which Y(k) is located is obtained.
[0193] Second sub-step: Following the first sub-step, the phase difference spectrum estimation unit 122 obtains, when p=P, the complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the first sub-step, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0194] The third sub-step: subsequent to the first sub-step, when p is not = P, the phase difference spectrum estimation unit 122 obtains the range of the deflection angle of the quadrant where Y (k) is located with 1 set as the new p as the search range of the next sub-step (the fourth sub-step performed subsequently), and obtains the absolute value of the tangent of the representative value of the deflection angle of the search range.
[0195] Fourth sub-step: When the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately previous sub-step (the third sub-step or the sixth sub-step) by |u(k)| is greater than |v(k)|, the phase difference spectrum estimation unit 122 determines that Y(k) exists in the range on the real axis side of the search range obtained in the immediately previous sub-step, and obtains the representative value of the deflection angle of the range on the real axis side of the search range obtained in the immediately previous sub-step. When the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately previous sub-step by |u(k)| is less than |v(k)|, it is determined that Y(k) exists in the range on the imaginary axis side of the search range obtained in the immediately previous sub-step, and obtains the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the immediately previous sub-step.
[0196] Fifth sub-step: Subsequent to the fourth sub-step, the phase difference spectrum estimation unit 122 obtains, when p=P, the complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-step, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0197] Sixth sub-step: Subsequent to the fourth sub-step, the phase difference spectrum estimation unit 122 sets the value obtained by adding 1 to p as a new p when p is not equal to P, obtains the range of the deflection angle of the range where Y (k) determined in the fourth sub-step is located as the search range of the subsequent fourth sub-step, and obtains the absolute value of the tangent of the representative value of the deflection angle obtained in the fourth sub-step as the absolute value of the tangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-step.
[0198] Alternatively, the phase difference spectrum estimation unit 122 sets P to a predetermined integer greater than or equal to 0, and obtains the phase difference spectrum φ(k) through the following first to sixth sub-steps.
[0199] First sub-step: The phase difference spectrum estimation unit 122 is set to p=0, and based on the code of u(k) or whether u(k) is positive or negative and the code of v(k) or whether v(k) is positive or negative, it is determined which quadrant of the complex plane Y(k) is in, and the central value of the range of the deflection angle of the quadrant in which Y(k) is located is obtained.
[0200] Second sub-step: Following the first sub-step, the phase difference spectrum estimation unit 122 obtains, when p=P, the complex values of points on the circumference of the unit circle whose deflection angle in the complex plane is the central value obtained in the first sub-step, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0201] The third sub-step: the phase difference spectrum estimation unit 122 sets 1 as the new p after the first sub-step, if p=P, and obtains the range of the deflection angle of the quadrant where Y(k) is located as the search range of the next sub-step (the fourth sub-step to be performed later).
[0202] Fourth sub-step: When the phase difference spectrum estimation unit 122 performs the third sub-step subsequently, when |u(k)| is greater than |v(k)|, it is judged that Y(k) exists within the range of half of the real axis side of the search range obtained in the third sub-step, and the representative value of the deflection angle of the range of half of the real axis side of the search range obtained in the third sub-step is obtained. When |u(k)| is less than |v(k)|, it is judged that Y(k) exists within the range of half of the imaginary axis side of the search range obtained in the third sub-step, and the representative value of the deflection angle of the range of half of the imaginary axis side of the search range obtained in the third sub-step is obtained. When the sixth sub-step is performed subsequently, in the sixth sub-step When the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained by |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the sixth sub-step, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the sixth sub-step is obtained. When the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the sixth sub-step by |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the sixth sub-step, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the sixth sub-step is obtained.
[0203] Fifth sub-step: Subsequent to the fourth sub-step, the phase difference spectrum estimation unit 122 obtains, when p=P, the complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-step, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0204] Sixth sub-step: Subsequent to the fourth sub-step, the phase difference spectrum estimation unit 122 sets the value obtained by adding 1 to p as a new p when p is not equal to P, obtains the range of the deflection angle of the range where Y (k) determined in the fourth sub-step is located as the search range of the subsequent fourth sub-step, and obtains the absolute value of the tangent of the representative value of the deflection angle obtained in the fourth sub-step as the absolute value of the tangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-step.
[0205] Alternatively, the phase difference spectrum estimation unit 122 sets P to a predetermined integer greater than or equal to 0, and obtains the phase difference spectrum φ(k) through the following first to sixth sub-steps.
[0206] First sub-step: The phase difference spectrum estimation unit 122 is set to p=0, and based on the code of u(k) or whether u(k) is a positive value or a negative value and the code of v(k) or whether v(k) is a positive value or a negative value, it is determined which quadrant of the complex plane Y(k) is in, and a representative value of the deflection angle of the quadrant in which Y(k) is located is obtained.
[0207] Second sub-step: Following the first sub-step, the phase difference spectrum estimation unit 122 obtains, when p=P, the complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the first sub-step, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0208] The third sub-step: The phase difference spectrum estimation unit 122, subsequent to the first sub-step, sets 1 as the new p when p=P, obtains the range of the deflection angle of the quadrant where Y(k) is located as the search range of the next sub-step (the fourth sub-step performed subsequently), and obtains the absolute value of the cotangent of the representative value of the deflection angle of the search range.
[0209] Fourth sub-step: When |u(k)| is greater than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-step (the third sub-step or the sixth sub-step) by |v(k)|, the phase difference spectrum estimation unit 122 determines that Y(k) exists in the range on the real axis side of the search range obtained in the immediately preceding sub-step, and obtains the representative value of the deflection angle of the range on the real axis side of the search range obtained in the immediately preceding sub-step; and when |u(k)| is less than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-step by |v(k)|, the phase difference spectrum estimation unit 122 determines that Y(k) exists in the range on the imaginary axis side of the search range obtained in the immediately preceding sub-step, and obtains the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the immediately preceding sub-step.
[0210] Fifth sub-step: Subsequent to the fourth sub-step, the phase difference spectrum estimation unit 122 obtains, when p=P, the complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-step, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0211] Sixth sub-step: The phase difference spectrum estimation unit 122, subsequent to the fourth sub-step, sets the value obtained by adding 1 to p as the new p when p is not equal to P, obtains the range of the deflection angle of the range where Y (k) determined in the fourth sub-step is located as the search range of the subsequent fourth sub-step, and obtains the absolute value of the cotangent of the representative value of the deflection angle obtained in the fourth sub-step as the absolute value of the cotangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-step.
[0212] Alternatively, the phase difference spectrum estimation unit 122 sets P to a predetermined integer greater than or equal to 0, and obtains the phase difference spectrum φ(k) through the following first to sixth sub-steps.
[0213] First sub-step: The phase difference spectrum estimation unit 122 is set to p=0, and based on the code of u(k) or whether u(k) is positive or negative and the code of v(k) or whether v(k) is positive or negative, it is determined which quadrant of the complex plane Y(k) is in, and the central value of the range of the deflection angle of the quadrant in which Y(k) is located is obtained.
[0214] Second sub-step: The phase difference spectrum estimation unit 122 obtains, subsequent to the first sub-step, when p=P, the complex value of the point on the circumference of the unit circle whose deflection angle in the complex plane is the central value obtained in the first sub-step among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0215] The third sub-step: the phase difference spectrum estimation unit 122 sets 1 as the new p after the first sub-step, if p=P, and obtains the range of the deflection angle of the quadrant where Y(k) is located as the search range of the next sub-step (the fourth sub-step to be performed later).
[0216] Fourth sub-step: When the phase difference spectrum estimation unit 122 is performed in the subsequent process of the third sub-step, when |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range of half of the real axis side of the search range obtained in the third sub-step, and the representative value of the deflection angle of the range of half of the real axis side of the search range obtained in the third sub-step is obtained. When |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range of half of the imaginary axis side of the search range obtained in the third sub-step, and the representative value of the deflection angle of the range of half of the imaginary axis side of the search range obtained in the third sub-step is obtained. When the sixth sub-step is performed in the subsequent process, when |u(k)| is greater than |v(k)|, the phase difference spectrum estimation unit 122 determines that Y(k) exists in the range of half of the imaginary axis side of the search range obtained in the third sub-step, and the representative value of the deflection angle of the range of half of the imaginary axis side of the search range obtained in the third sub-step is obtained. In a case where the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the sixth sub-step is multiplied by |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the sixth sub-step, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the sixth sub-step is obtained. In a case where |u(k)| is smaller than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the sixth sub-step by |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the sixth sub-step, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the sixth sub-step is obtained.
[0217] Fifth sub-step: Subsequent to the fourth sub-step, the phase difference spectrum estimation unit 122 obtains, when p=P, the complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-step, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k).
[0218] Sixth sub-step: When p is not equal to P after the fourth sub-step, the phase difference spectrum estimation unit 122 sets the value obtained by adding 1 to p as the new p, obtains the range of the declination of the range where Y(k) is determined in the fourth sub-step as the search range for the subsequent fourth sub-step, and obtains the absolute value of the cotangent of the representative value of the declination obtained in the fourth sub-step as the absolute value of the cotangent of the representative value of the declination of the search range for the subsequent fourth sub-step.
[0219] For example, let N be an integer greater than or equal to 2, let n be each integer greater than or equal to 1 and less than or equal to N, let θ be the declination of Y(k), when (n - 1)π / 2N < θ < nπ / 2N, the phase difference spectrum estimation unit 122 obtains the complex value of the point on the circumference of the unit circle with a declination of (2n - 1)π / 4N in the complex plane among the representative values of the phase difference spectrum stored in the representative value storage unit as the phase difference spectrum φ(k).
[0220] For example, let Q be an integer greater than or equal to 2, let q be each integer greater than or equal to 1 and less than or equal to Q, let each representative value stored in the representative value storage unit be φ(q), let the declination of φ(q) in the complex plane be θ(φ(q)), the phase difference spectrum estimation unit 122 obtains the representative value φ(q) corresponding to tanθ(φ(q)) for which |u(k) × tanθ(φ(q)) - v(k)| is the minimum as the phase difference spectrum φ(k).
[0221] In addition, signals of two channels in the frequency domain can also be input to the phase difference spectrum estimation device 200. At this time, since the phase difference spectrum estimation device 200 does not need to perform step S121, the phase difference spectrum estimation device 200 may not include the Fourier transform unit 121. That is, the phase difference spectrum estimation device 200 only includes the phase difference spectrum estimation unit 122. Let the signals in the frequency domain of the first channel input to the phase difference spectrum estimation device 200 be X1(0), X1(2),..., x1(T - 1), and let the signals in the frequency domain of the second channel input to the phase difference spectrum estimation device 200 be X2(0), X2(2),..., x2(T - 1). By performing the above step S122, the phase difference spectrum φ(k) for each frequency k can be obtained.
[0222] <Fifth Embodiment>
[0223] An encoding device that encodes a signal using the phase difference spectrum obtained by the phase difference spectrum estimation device 200 of the fourth embodiment can also be configured and described as the fifth embodiment.
[0224] Signal encoding device 300
[0225] As Fig. 9 As shown, the signal encoding device 300 of the fifth embodiment includes at least a phase difference spectrum estimator 122 and an encoding unit 340. In other words, the signal encoding device 300 includes the phase difference spectrum estimator 200 of the fourth embodiment as the phase difference spectrum estimator 122. The signal encoding device 300 obtains and outputs a code representing the input signal, i.e., a signal code, from the input signals of two channels, i.e., a first channel input signal and a second channel input signal. The signal input to the signal encoding device 300 is the same as the signal input to the phase difference spectrum estimator 200 of the fourth embodiment. The signal code output by the signal encoding device 300 is input to a signal decoding device. In the case where the signal input to the signal encoding device 300 is a signal in the frequency domain, the signal encoding device 300 performs frequency decoding according to each specified unit. Fig.10 The processing of step S122 and step S340 is shown in the example. In the case where the signal input to the signal encoding device 300 is a time domain signal, as shown in FIG. Fig. 9 As shown by the dashed line, the signal encoding device 300 also includes a Fourier transform unit 121, as shown in FIG. Fig.10 As shown by the middle dotted line, step S121 is also performed. Step S121 performed by the Fourier transform unit 121 and step S122 performed by the phase difference spectrum estimation unit 122 are the same as those of the fourth embodiment.
[0226] [Encoding unit 340]
[0227] The encoder 340 encodes the first channel input signal and the second channel input signal input to the encoding device 300 using the phase difference spectrum obtained by the phase difference spectrum estimation unit 122, and obtains and outputs a signal code (step S340). The encoding process performed by the encoder 340 may be any process as long as it is an encoding process using the phase difference spectrum obtained by the phase difference spectrum estimation unit 122.
[0228] <Sixth embodiment>
[0229] A signal processing device that processes a signal using the phase difference spectrum obtained by the phase difference spectrum estimation device 200 of the fourth embodiment may be configured, and this aspect will be described as a sixth embodiment.
[0230] Signal processing device 400
[0231] like Fig.11As shown, the signal processing device 400 of the sixth embodiment includes at least a phase difference spectrum estimation unit 122 and a signal processing unit 450. In other words, the signal processing device 400 includes the phase difference spectrum estimation unit 200 of the fourth embodiment as the phase difference spectrum estimation unit 122. The signal processing device 400 performs signal processing on the input two-channel signals, namely the first channel input signal and the second channel input signal, and obtains and outputs the signal processing result. The signal input to the signal processing device 400 is the same as the signal input to the phase difference spectrum estimation device 200 of the fourth embodiment. In the case where the signal input to the signal processing device 400 is a frequency domain signal, the signal processing device 400 performs signal processing according to each specified unit. Fig.12 The processing of step S122 and step S450 is shown as an example. In the case where the signal input to the signal processing device 400 is a time domain signal, as shown in FIG. Fig.11 As shown by the dashed line, the signal processing device 400 also includes a Fourier transform unit 121, as shown in FIG. Fig.12 As shown by the middle dotted line, step S121 is also performed. Step S121 performed by the Fourier transform unit 121 and step S122 performed by the phase difference spectrum estimation unit 122 are the same as those of the fourth embodiment.
[0232] [Signal processing unit 450]
[0233] The signal processing unit 450 uses the phase difference spectrum obtained by the phase difference spectrum estimation unit 122 to perform signal processing on the first channel input signal and the second channel input signal input to the signal processing device 400, and obtains and outputs the signal processing result (step S450). The signal processing performed by the signal processing unit 450 may be any signal processing as long as it uses the phase difference spectrum obtained by the phase difference spectrum estimation unit 122.
[0234] <Supplement>
[0235] The processing of each part of each device described above can also be realized by a computer. In this case, the processing content of the function that each device should have is described by a program. Fig.13 The storage unit 1020 of the computer 1000 shown reads the program and operates the arithmetic processing unit 1010, the input unit 1030, the output unit 1040, etc., thereby realizing various processing functions in the above-mentioned devices on the computer.
[0236] The device of the present invention, for example, has an input unit capable of inputting signals from the outside of the hardware entity, an output unit capable of outputting signals to the outside of the hardware entity, a communication unit capable of connecting to a communication device (e.g., a communication cable) capable of communicating with the outside of the hardware entity, a CPU (Central Processing Unit, which may also have a cache memory or registers, etc.), a RAM or ROM as a memory, an external storage device as a hard disk, and a bus connected in a manner capable of data interaction between these input units, output units, communication units, CPUs, RAMs, ROMs, and external storage devices, as a single hardware entity. In addition, as required, a device (drive) capable of reading and writing a recording medium such as a CD-ROM, etc., may also be provided for the hardware entity. As a physical entity having such hardware resources, there are general-purpose computers, etc.
[0237] The external storage device of the hardware entity stores programs required to realize the above functions and data required in the processing of the programs, etc. (not limited to the external storage device, for example, the programs may be stored in a read-only storage device, i.e., ROM). In addition, the data obtained by processing these programs is appropriately stored in RAM, external storage devices, etc.
[0238] In the hardware entity, each program stored in an external storage device (or ROM, etc.) and the data required for processing the program are read into the memory as needed, and are appropriately interpreted, executed, and processed by the CPU. As a result, the CPU realizes the prescribed function (represented as each component of the above-mentioned, ... part, ... unit, etc.). In other words, each component of the embodiment of the present invention can also be composed of a processing circuit (Processing Circuitry).
[0239] As described above, when the processing functions in the hardware entity (device of the present invention) described in the above embodiment are implemented by a computer, the processing contents of the functions that the hardware entity should have are described by a program. And, by executing the program by a computer, the processing functions in the above hardware entity are implemented on the computer.
[0240] The program describing the processing content can be recorded in a computer-readable recording medium. The computer-readable recording medium is, for example, a non-transitory recording medium, specifically, a magnetic recording device, an optical disk, and the like.
[0241] In addition, the program can be circulated by selling, transferring, renting, etc. a portable recording medium such as a DVD or CD-ROM on which the program is recorded. Furthermore, the program can be stored in a storage device of a server computer and circulated by forwarding the program from the server computer to other computers via a network.
[0242] The computer executing such a program, for example, first temporarily stores the program recorded in the portable recording medium or the program forwarded from the server computer in its own non-temporary storage device, namely the auxiliary recording unit 1050. Then, when executing the process, the storage unit 1020 reads the program stored in its own non-temporary storage device, namely the auxiliary recording unit 1050, and executes the process according to the read program. Moreover, as another execution method of the program, the computer can also read the program directly from the transportable recording medium into the storage unit 1020 and execute the process according to the program, and further, it can also execute the process according to the received program one by one each time the program is forwarded from the server computer to the computer. Moreover, it can also be set as a structure in which the above-mentioned process is executed by not forwarding the program from the server computer to the computer, but only by the execution instruction and the result acquisition to realize the processing function, so-called ASP (Application Service Provider) type service. Moreover, the program in this method contains information for the processing of the electronic computer, that is, information based on the program (although not a direct instruction to the computer, but having the nature of specifying the processing of the computer, etc.).
[0243] In addition, in the present embodiment, the present device is configured by executing a predetermined program on a computer, but at least a part of the processing contents may be realized by hardware.
[0244] The present invention is not limited to the above-described embodiments, and can be appropriately modified within a scope not departing from the gist of the present invention.
Claims
1. A phase difference spectrum estimation method, which estimates the phase difference spectrum φ(k) between the spectrum X1(k) of the input signal of the first channel and the spectrum X2(k) of the input signal of the second channel for a frequency k, The phase difference spectrum estimation method includes a phase difference spectrum estimation step, in which one of the representative values of a plurality of phase difference spectra stored in a representative value storage unit is selected based on the relationship between the value of the real part u(k) and the value of the imaginary part v(k) of the product Y(k) of the complex conjugate  ̄X2(k) of the spectrum X1(k) of the first channel and the spectrum X2(k) of the second channel, and a phase difference spectrum φ(k) is obtained, wherein the representative values of the plurality of phase difference spectra are values on the circumference of a unit circle on a complex plane and are values having different deflection angles on the complex plane.
2. The phase difference spectrum estimation method according to claim 1, wherein: In the phase difference spectrum estimation step, P is set to a predetermined integer greater than 0, Determine in which quadrant Y(k) exists, If P=0, the representative value of the phase difference spectrum in the quadrant where Y(k) is located among the representative values of the phase difference spectrum stored in the representative value storage unit is obtained as the phase difference spectrum φ(k). If P≠0, for the quadrant where Y(k) is located, the range of the deflection angle where Y(k) is located is determined by performing a binary search of the range of P deflection angles, and the representative value of the phase difference spectrum related to the determined range of deflection angles is obtained from the representative value of the phase difference spectrum stored in the representative value storage unit as the phase difference spectrum φ(k).
3. The phase difference spectrum estimation method according to claim 1, wherein: The phase difference spectrum estimation step is performed through the first sub-step, the second sub-step, the third sub-step, the fourth sub-step, the fifth sub-step and the sixth sub-step, P is set to a predetermined integer greater than 0, In the first sub-step, p=0 is set, and based on the code of u(k) or whether u(k) is positive or negative and the code of v(k) or whether v(k) is positive or negative, the quadrant of the complex plane in which Y(k) is located is determined, and the representative value of the deflection angle of the quadrant in which Y(k) is located is obtained. Subsequent to the first sub-step, in the second sub-step, when p=P, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the first sub-step is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k). Subsequent to the first sub-step, in the third sub-step, when p=P is not the case, 1 is set as the new p, the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-step, and the absolute value of the tangent of the representative value of the deflection angle of the search range is obtained, In the fourth sub-step, when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-step by |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the immediately preceding sub-step, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the immediately preceding sub-step is obtained, and when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-step by |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the immediately preceding sub-step, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the immediately preceding sub-step is obtained. Subsequent to the fourth sub-step, in the fifth sub-step, when p=P, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-step is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k). Subsequent to the fourth sub-step, in the sixth sub-step, when p=P is not the case, the value obtained by adding 1 to p is set as the new p, the range of the deflection angle of the range where Y (k) determined in the fourth sub-step is located is obtained as the search range of the subsequent fourth sub-step, and the absolute value of the tangent of the representative value of the deflection angle obtained in the fourth sub-step is obtained as the absolute value of the tangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-step.
4. The phase difference spectrum estimation method according to claim 1, wherein: The phase difference spectrum estimation step is performed through the first sub-step, the second sub-step, the third sub-step, the fourth sub-step, the fifth sub-step and the sixth sub-step, P is set to a predetermined integer greater than 0, In the first sub-step, p=0 is set, and based on the code of u(k) or whether u(k) is positive or negative, and the code of v(k) or whether v(k) is positive or negative, the quadrant of the complex plane in which Y(k) is located is determined, and the central value of the range of the deflection angle of the quadrant in which Y(k) is located is obtained. Subsequent to the first sub-step, in the second sub-step, when p=P, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the central value obtained in the first sub-step among the representative values of the phase difference spectrum stored in the representative value storage unit is obtained as the phase difference spectrum φ(k), In the third sub-step, subsequent to the first sub-step, when p is not equal to P, 1 is set as the new p, and the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-step. In the fourth sub-step, when the third sub-step is performed subsequently, when |u(k)| is greater than |v(k)|, it is judged that Y(k) exists within the range of half of the real axis side of the search range obtained in the third sub-step, and the representative value of the deflection angle of the range of half of the real axis side of the search range obtained in the third sub-step is obtained. When |u(k)| is less than |v(k)|, it is judged that Y(k) exists within the range of half of the imaginary axis side of the search range obtained in the third sub-step, and the representative value of the deflection angle of the range of half of the imaginary axis side of the search range obtained in the third sub-step is obtained. When the sixth sub-step is performed subsequently, if the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the sixth sub-step by |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the sixth sub-step, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the sixth sub-step is obtained. If the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the sixth sub-step by |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the sixth sub-step, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the sixth sub-step is obtained. Subsequent to the fourth sub-step, in the fifth sub-step, when p=P, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-step is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k). Subsequent to the fourth sub-step, in the sixth sub-step, when p=P is not, the value obtained by adding 1 to p is set as the new p, the range of the deflection angle of the range where Y (k) determined in the fourth sub-step is located is obtained as the search range of the subsequent fourth sub-step, and the absolute value of the tangent of the representative value of the deflection angle obtained in the fourth sub-step is obtained as the absolute value of the tangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-step.
5. The phase difference spectrum estimation method according to claim 1, wherein: The phase difference spectrum estimation step is performed through the first sub-step, the second sub-step, the third sub-step, the fourth sub-step, the fifth sub-step and the sixth sub-step, P is set to a predetermined integer greater than 0, In the first sub-step, p=0 is set, based on the code of u(k) or whether u(k) is positive or negative, and the code of v(k) or whether v(k) is positive or negative, to determine in which quadrant of the complex plane Y(k) is located, and obtain the representative value of the deflection angle of the quadrant where Y(k) is located. Subsequent to the first sub-step, in the second sub-step, when p=P, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the first sub-step is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k). Subsequent to the first sub-step, in the third sub-step, when p=P is not the case, 1 is set as the new p, the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-step, and the absolute value of the cotangent of the representative value of the deflection angle of the search range is obtained, In the fourth sub-step, when |u(k)| is greater than the value obtained by multiplying |v(k)| by the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-step, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the immediately preceding sub-step, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the immediately preceding sub-step is obtained, and when |u(k)| is less than the value obtained by multiplying |v(k)| by the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-step, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the immediately preceding sub-step, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the immediately preceding sub-step is obtained. Subsequent to the fourth sub-step, in the fifth sub-step, when p=P, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-step is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k). Subsequent to the fourth sub-step, in the sixth sub-step, when p=P is not the case, the value obtained by adding 1 to p is set as the new p, the range of the deflection angle of the range where Y (k) determined in the fourth sub-step is located is obtained as the search range of the subsequent fourth sub-step, and the absolute value of the cotangent of the representative value of the deflection angle obtained in the fourth sub-step is obtained as the absolute value of the cotangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-step.
6. The phase difference spectrum estimation method according to claim 1, wherein: The phase difference spectrum estimation step is performed through the first sub-step, the second sub-step, the third sub-step, the fourth sub-step, the fifth sub-step and the sixth sub-step, P is set to a predetermined integer greater than 0, In the first sub-step, p=0 is set, and based on the code of u(k) or whether u(k) is positive or negative, and the code of v(k) or whether v(k) is positive or negative, the quadrant of the complex plane in which Y(k) is located is determined, and the central value of the range of the deflection angle of the quadrant in which Y(k) is located is obtained. Subsequent to the first sub-step, in the second sub-step, when p=P, a complex value of a point on the circumference of the unit circle whose deflection angle in the complex plane is the central value obtained in the first sub-step is obtained among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k), Subsequent to the first sub-step, in the third sub-step, if p=P, 1 is set as the new p, and the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-step, In the fourth sub-step, when following the third sub-step, if |u(k)| > |v(k)|, it is determined that Y(k) exists within the range of half of the real-axis side of the search range obtained in the third sub-step, and a representative value of the argument within the range of half of the real-axis side of the search range obtained in the third sub-step is obtained. If |u(k)| < |v(k)|, it is determined that Y(k) exists within the range of half of the imaginary-axis side of the search range obtained in the third sub-step, and a representative value of the argument within the range of half of the imaginary-axis side of the search range obtained in the third sub-step is obtained. When following the sixth sub-step, if |u(k)| is greater than the value obtained by multiplying the absolute value of the cotangent of the representative value of the argument of the search range obtained in the sixth sub-step by |v(k)|, it is determined that Y(k) exists within the range of the real-axis side of the search range obtained in the sixth sub-step, and a representative value of the argument within the range of the real-axis side of the search range obtained in the sixth sub-step is obtained. If |u(k)| is less than the value obtained by multiplying the absolute value of the cotangent of the representative value of the argument of the search range obtained in the sixth sub-step by |v(k)|, it is determined that Y(k) exists within the range of the imaginary-axis side of the search range obtained in the sixth sub-step, and a representative value of the argument within the range of the imaginary-axis side of the search range obtained in the sixth sub-step is obtained. Subsequent to the fourth sub-step, in the fifth sub-step, when p = P, a complex number value of a point on the circumference of the unit circle with the argument in the complex plane being the representative value of the argument obtained in the fourth sub-step among the representative values of the phase difference spectrum stored in the representative value storage unit is obtained as the phase difference spectrum φ(k). Subsequent to the fourth sub-step, in the sixth sub-step, when p ≠ P, the value obtained by adding 1 to p is set as the new p, the range of the argument of the range where Y(k) is determined in the fourth sub-step is obtained as the search range for the subsequent fourth sub-step, and the absolute value of the cotangent of the representative value of the argument obtained in the fourth sub-step is obtained as the absolute value of the cotangent of the representative value of the argument of the search range for the subsequent fourth sub-step.
7. The phase difference spectrum estimation method according to claim 1, wherein in the phase difference spectrum estimation step, N is set as an integer greater than or equal to 2, n is set as each integer greater than or equal to 1 and less than or equal to N, and θ is set as the argument of Y(k). When (n - 1)π / 2N < θ < nπ / 2N, a complex number value of a point on the circumference of the unit circle with the argument in the complex plane being (2n - 1)π / 4N among the representative values of the phase difference spectrum stored in the representative value storage unit is obtained as the phase difference spectrum φ(k).
8. The phase difference spectrum estimation method according to claim 1, wherein in the phase difference spectrum estimation step, Q is set as an integer greater than or equal to 2, q is set as each integer greater than or equal to 1 and less than or equal to Q, each representative value stored in the representative value storage unit is set as φ(q), and the argument of φ(q) in the complex plane is set as θ(φ(q)). The representative value φ(q) corresponding to tanθ(φ(q)) for which |u(k)×tanθ(φ(q))-v(k)| is the minimum value is obtained as the phase difference spectrum φ(k).
9. A method for estimating inter-channel relationship information, comprising the phase difference spectrum estimation step of the phase difference spectrum estimation method according to any one of claims 1 to 8, The method for estimating inter-channel relationship information comprises: A Fourier transform step of performing Fourier transform on the input signal of the first channel as a time-domain sound signal and the input signal of the second channel as a time-domain sound signal, respectively, and obtaining the spectrum X1(k) and the spectrum X2(k) for each frequency k from 0 to T-1; The phase difference spectrum estimation step obtains the phase difference spectrum φ(k) of each frequency k from 0 to T-1; and The step of obtaining the information about the relationship between channels is as follows: max ~τ min The number of candidate samples τ cand , perform inverse Fourier transform on the sequence based on the phase difference spectrum φ(0)~φ(T-1), and for τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ), Obtain the phase difference signal φ(τ cand ) is the absolute value of the correlation value γ cand The maximum value of In the step of acquiring the inter-channel relationship information, at least one of the following is further performed: Obtain and output the correlation value γ cand The maximum value of is taken as the inter-channel correlation value γ; Obtain and output the correlation value γ cand τ when it is the maximum value cand , as the time difference between channels; as well as In the correlation value γ cand τ when it is the maximum value cand When the correlation value γ is positive, information indicating the precedence of the first channel is obtained as the precedent channel information. cand τ when it is the maximum value cand When it is a negative value, information indicating that the second channel is preceding is obtained as preceding channel information, and the obtained preceding channel information is output.
10. A method for estimating inter-channel relationship information, comprising the phase difference spectrum estimation step of the phase difference spectrum estimation method according to any one of claims 2 to 6, The method for estimating inter-channel relationship information comprises: A Fourier transform step of performing Fourier transform on the input signal of the first channel as a time-domain sound signal and the input signal of the second channel as a time-domain sound signal, respectively, and obtaining the spectrum X1(k) and the spectrum X2(k) for each frequency k from 0 to T-1; The phase difference spectrum estimation step obtains the phase difference spectrum φ(k) of each frequency k from 0 to T-1; and The step of obtaining the information about the relationship between channels is as follows: max ~τ min The number of candidate samples τ cand , perform inverse Fourier transform on the sequence after assigning positive weights to the phase difference spectrum φ(0)~φ(T-1), and for τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ), Obtain the phase difference signal φ(τ cand ) is the absolute value of the correlation value γ cand The maximum value of In the step of acquiring the inter-channel relationship information, at least one of the following is further performed: Obtain and output the correlation value γ cand The maximum value of is taken as the inter-channel correlation value γ; Obtain and output the correlation value γ cand τ when it is the maximum value cand , as the time difference between channels; as well as In the correlation value γ cand τ when it is the maximum value cand When the correlation value γ is positive, information indicating the precedence of the first channel is obtained as the precedent channel information. cand τ when it is the maximum value cand When it is a negative value, the information indicating that the second channel is ahead is obtained as the ahead channel information, and the obtained ahead channel information is output. The value of P is predetermined for each frequency, and the value of P is smaller for a frequency with a smaller weight.
11. A signal encoding method, comprising: The phase difference spectrum estimation step of the phase difference spectrum estimation method according to any one of claims 1 to 8; as well as The encoding step uses the phase difference spectrum φ(k) obtained in the phase difference spectrum estimation step to encode the input signal of the first channel and the input signal of the second channel to obtain a signal code and output it.
12. A signal processing method, comprising: The phase difference spectrum estimation step of the phase difference spectrum estimation method according to any one of claims 1 to 8; as well as A signal processing step is to use the phase difference spectrum φ(k) obtained in the phase difference spectrum estimation step to perform signal processing on the input signal of the first channel and the input signal of the second channel, obtain a signal processing result and output it.
13. A phase difference spectrum estimation device, which estimates, for a frequency k, a phase difference spectrum φ(k) between a spectrum X1(k) of an input signal of a first channel and a spectrum X2(k) of an input signal of a second channel, The phase difference spectrum estimation device includes a phase difference spectrum estimation unit, which selects one of a plurality of representative values of phase difference spectra stored in a representative value storage unit based on the relationship between the real part u(k) and the imaginary part v(k) of the product Y(k) of the complex conjugate  ̄X2(k) of the spectrum X1(k) of the first channel and the spectrum X2(k) of the second channel, and obtains the phase difference spectrum φ(k), wherein the representative values of the plurality of phase difference spectra are values on the circumference of a unit circle on a complex plane and are values whose deflection angles on the complex plane are different from each other.
14. The phase difference spectrum estimation device according to claim 13, wherein: The phase difference spectrum estimation unit sets P to a predetermined integer greater than 0, Determine in which quadrant Y(k) exists, If P=0, the representative value of the phase difference spectrum in the quadrant where Y(k) is located among the representative values of the phase difference spectrum stored in the representative value storage unit is obtained as the phase difference spectrum φ(k). If P≠0, for the quadrant where Y(k) is located, the range of the deflection angle where Y(k) is located is determined by performing a binary search of the range of P deflection angles, and the representative value of the phase difference spectrum related to the determined range of deflection angles is obtained from the representative value of the phase difference spectrum stored in the representative value storage unit as the phase difference spectrum φ(k).
15. The phase difference spectrum estimation device according to claim 13, wherein: The phase difference spectrum estimation unit performs a first sub-processing, a second sub-processing, a third sub-processing, a fourth sub-processing, a fifth sub-processing and a sixth sub-processing, P is set to a predetermined integer greater than 0, In the first sub-processing, p=0 is set, based on the code of u(k) or whether u(k) is positive or negative and the code of v(k) or whether v(k) is positive or negative, it is determined which quadrant of the complex plane Y(k) is in, and the representative value of the deflection angle of the quadrant where Y(k) is located is obtained. After the first sub-processing, in the second sub-processing, when p=P, the complex value of the point on the circumference of the unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the first sub-processing is obtained as the phase difference spectrum φ(k). Subsequent to the first sub-processing, in the third sub-processing, when p=P, 1 is set as the new p, the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-processing, and the absolute value of the tangent of the representative value of the deflection angle of the search range is obtained. In the fourth sub-processing, when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-processing by |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the immediately preceding sub-processing, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the immediately preceding sub-processing is obtained, and when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-processing by |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the immediately preceding sub-processing, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the immediately preceding sub-processing is obtained. Subsequent to the fourth sub-processing, in the fifth sub-processing, when p=P, the complex value of the point on the circumference of the unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-processing is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k), Subsequent to the fourth sub-processing, in the sixth sub-processing, when p=P, the value obtained by adding 1 to p is set as the new p, the range of the deflection angle of the range where Y(k) determined in the fourth sub-processing is located is obtained as the search range of the subsequent fourth sub-processing, and the absolute value of the tangent of the representative value of the deflection angle obtained in the fourth sub-processing is obtained as the absolute value of the tangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-processing.
16. The phase difference spectrum estimation device according to claim 13, wherein: The phase difference spectrum estimation unit performs a first sub-processing, a second sub-processing, a third sub-processing, a fourth sub-processing, a fifth sub-processing and a sixth sub-processing, P is set to a predetermined integer greater than 0, In the first sub-processing, p=0 is set, and based on the code of u(k) or whether u(k) is positive or negative, and the code of v(k) or whether v(k) is positive or negative, it is determined which quadrant of the complex plane Y(k) is in, and the central value of the range of the deflection angle of the quadrant where Y(k) is located is obtained. After the first sub-processing, in the second sub-processing, when p=P, a complex value of a point on the circumference of a unit circle whose deflection angle in the complex plane is the central value obtained in the first sub-processing is obtained among the representative values of the phase difference spectrum stored in the representative value storage unit as the phase difference spectrum φ(k), In the third sub-processing, subsequent to the first sub-processing, when p is not equal to P, 1 is set as the new p, and the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-processing. In the fourth sub-processing, when the third sub-processing is performed subsequently, when |u(k)| is greater than |v(k)|, it is judged that Y(k) exists within the range of half of the real axis side of the search range obtained by the third sub-processing, and the representative value of the deflection angle within the range of half of the real axis side of the search range obtained by the third sub-processing is obtained. When |u(k)| is less than |v(k)|, it is judged that Y(k) exists within the range of half of the imaginary axis side of the search range obtained by the third sub-processing, and the representative value of the deflection angle within the range of half of the imaginary axis side of the search range obtained by the third sub-processing is obtained. When the sixth sub-processing is performed subsequently, when the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the sixth sub-processing by |u(k)| is greater than |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the sixth sub-processing, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the sixth sub-processing is obtained. When the value obtained by multiplying the absolute value of the tangent of the representative value of the deflection angle of the search range obtained in the sixth sub-processing by |u(k)| is less than |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the sixth sub-processing, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the sixth sub-processing is obtained. Subsequent to the fourth sub-processing, in the fifth sub-processing, when p=P, the complex value of the point on the circumference of the unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-processing is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k), Subsequent to the fourth sub-processing, in the sixth sub-processing, when p=P, the value obtained by adding 1 to p is set as the new p, the range of the deflection angle of the range where Y (k) determined in the fourth sub-processing is located is obtained as the search range of the subsequent fourth sub-processing, and the absolute value of the tangent of the representative value of the deflection angle obtained in the fourth sub-processing is obtained as the absolute value of the tangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-processing.
17. The phase difference spectrum estimation device according to claim 13, wherein: The phase difference spectrum estimation unit performs a first sub-processing, a second sub-processing, a third sub-processing, a fourth sub-processing, a fifth sub-processing and a sixth sub-processing, P is set to a predetermined integer greater than 0, In the first sub-processing, p=0 is set, based on the code of u(k) or whether u(k) is positive or negative, and the code of v(k) or whether v(k) is positive or negative, to determine in which quadrant of the complex plane Y(k) is located, and obtain the representative value of the deflection angle of the quadrant where Y(k) is located. After the first sub-processing, in the second sub-processing, when p=P, the complex value of the point on the circumference of the unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the first sub-processing is obtained as the phase difference spectrum φ(k). Subsequent to the first sub-processing, in the third sub-processing, when p=P, 1 is set as the new p, the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-processing, and the absolute value of the cotangent of the representative value of the deflection angle of the search range is obtained. In the fourth sub-processing, when |u(k)| is greater than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-processing by |v(k)|, it is judged that Y(k) exists in the range on the real axis side of the search range obtained in the immediately preceding sub-processing, and the representative value of the deflection angle of the range on the real axis side of the search range obtained in the immediately preceding sub-processing is obtained, and when |u(k)| is less than the value obtained by multiplying the absolute value of the cotangent of the representative value of the deflection angle of the search range obtained in the immediately preceding sub-processing by |v(k)|, it is judged that Y(k) exists in the range on the imaginary axis side of the search range obtained in the immediately preceding sub-processing, and the representative value of the deflection angle of the range on the imaginary axis side of the search range obtained in the immediately preceding sub-processing is obtained. Subsequent to the fourth sub-processing, in the fifth sub-processing, when p=P, the complex value of the point on the circumference of the unit circle whose deflection angle in the complex plane is the representative value of the deflection angle obtained in the fourth sub-processing is obtained, among the representative values of the phase difference spectrum stored in the representative value storage unit, as the phase difference spectrum φ(k), Subsequent to the fourth sub-processing, in the sixth sub-processing, when p=P, the value obtained by adding 1 to p is set as the new p, the range of the deflection angle of the range where Y(k) determined in the fourth sub-processing is located is obtained as the search range of the subsequent fourth sub-processing, and the absolute value of the cotangent of the representative value of the deflection angle obtained in the fourth sub-processing is obtained as the absolute value of the cotangent of the representative value of the deflection angle of the search range of the subsequent fourth sub-processing.
18. The phase difference spectrum estimation device according to claim 13, wherein: The phase difference spectrum estimation unit performs a first sub-processing, a second sub-processing, a third sub-processing, a fourth sub-processing, a fifth sub-processing and a sixth sub-processing, P is set to a predetermined integer greater than 0, In the first sub-processing, p=0 is set, based on the code of u(k) or whether u(k) is positive or negative, and the code of v(k) or whether v(k) is positive or negative, to determine which quadrant of the complex plane Y(k) is in, and obtain the central value of the range of the deflection angle of the quadrant where Y(k) is located, After the first sub-processing, in the second sub-processing, when p=P, the complex value of the point on the circumference of the unit circle whose deflection angle in the complex plane is the central value obtained in the first sub-processing is obtained as the phase difference spectrum φ(k), After the first sub-processing, in the third sub-processing, if p=P, 1 is set as the new p, and the range of the deflection angle of the quadrant where Y(k) is located is obtained as the search range of the next sub-processing. In the fourth sub - processing, when it follows the third sub - processing, if |u(k)| > |v(k)|, it is determined that Y(k) exists within the range of half of the real - axis side of the search range obtained in the third sub - processing, and a representative value of the argument within the range of half of the real - axis side of the search range obtained in the third sub - processing is obtained. If |u(k)| < |v(k)|, it is determined that Y(k) exists within the range of half of the imaginary - axis side of the search range obtained in the third sub - processing, and a representative value of the argument within the range of half of the imaginary - axis side of the search range obtained in the third sub - processing is obtained. When it follows the sixth sub - processing, if |u(k)| is greater than the value obtained by multiplying the absolute value of the cotangent of the representative value of the argument of the search range obtained in the sixth sub - processing by |v(k)|, it is determined that Y(k) exists within the range of the real - axis side in the search range obtained in the sixth sub - processing, and a representative value of the argument within the range of the real - axis side in the search range obtained in the sixth sub - processing is obtained. If |u(k)| is less than the value obtained by multiplying the absolute value of the cotangent of the representative value of the argument of the search range obtained in the sixth sub - processing by |v(k)|, it is determined that Y(k) exists within the range of the imaginary - axis side in the search range obtained in the sixth sub - processing, and a representative value of the argument within the range of the imaginary - axis side in the search range obtained in the sixth sub - processing is obtained. Subsequent to the fourth sub - processing, in the fifth sub - processing, when p = P, a complex value of a point on the circumference of the unit circle with the argument in the complex plane being the representative value of the argument obtained in the fourth sub - processing, among the representative values of the phase - difference spectrum stored in the representative - value storage unit, is obtained as the phase - difference spectrum φ(k). Subsequent to the fourth sub - processing, in the sixth sub - processing, when p ≠ P, the value obtained by adding 1 to p is set as the new p, the range of the argument of the range where Y(k) is determined in the fourth sub - processing is obtained as the search range for the subsequent fourth sub - processing, and the absolute value of the cotangent of the representative value of the argument obtained in the fourth sub - processing is obtained as the absolute value of the cotangent of the representative value of the argument of the search range for the subsequent fourth sub - processing.
19. The phase - difference spectrum estimation device according to claim 13, wherein, The phase - difference spectrum estimation unit sets N as an integer greater than or equal to 2, sets n as each integer greater than or equal to 1 and less than or equal to N, and sets θ as the argument of Y(k). When (n - 1)π / 2N < θ < nπ / 2N, a complex value of a point on the circumference of the unit circle with the argument in the complex plane being (2n - 1)π / 4N, among the representative values of the phase - difference spectrum stored in the representative - value storage unit, is obtained as the phase - difference spectrum φ(k).
20. The phase - difference spectrum estimation device according to claim 13, wherein, The phase - difference spectrum estimation unit sets Q as an integer greater than or equal to 2, sets q as each integer greater than or equal to 1 and less than or equal to Q, sets each representative value stored in the representative - value storage unit as φ(q), and sets the argument of φ(q) in the complex plane as θ(φ(q)). The representative value φ(q) corresponding to tanθ(φ(q)) for which |u(k)×tanθ(φ(q))-v(k)| is the minimum value is obtained as the phase difference spectrum φ(k).
21. An inter-channel relationship information estimation device, comprising the phase difference spectrum estimation device according to any one of claims 13 to 20 as a phase difference spectrum estimation unit, The inter-channel relationship information estimation device comprises: A Fourier transform unit performs Fourier transform on the input signal of the first channel as a time-domain sound signal and the input signal of the second channel as a time-domain sound signal, respectively, and obtains the spectrum X1(k) and the spectrum X2(k) for each frequency k from 0 to T-1; The phase difference spectrum estimation unit obtains a phase difference spectrum φ(k) of each frequency k from 0 to T-1; and The channel relationship information acquisition unit, for a predetermined τ max ~τ min The number of candidate samples τ cand , perform inverse Fourier transform on the sequence based on the phase difference spectrum φ(0)~φ(T-1), and for τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ), Obtain the phase difference signal φ(τ cand ) is the absolute value of the correlation value γ cand The maximum value of The channel-to-channel relationship information acquiring unit further performs at least one of the following: Obtain and output the correlation value γ cand The maximum value of is taken as the inter-channel correlation value γ; Obtain and output the correlation value γ cand τ when it is the maximum value cand , as the time difference between channels; as well as In the correlation value γ cand τ when it is the maximum value cand When the correlation value γ is positive, information indicating the precedence of the first channel is obtained as the precedent channel information. cand τ when it is the maximum value cand When it is a negative value, information indicating that the second channel is preceding is obtained as preceding channel information, and the obtained preceding channel information is output.
22. An inter-channel relationship information estimation device, comprising the phase difference spectrum estimation device according to any one of claims 14 to 18 as a phase difference spectrum estimation unit, The inter-channel relationship information estimation device comprises: A Fourier transform unit performs Fourier transform on the input signal of the first channel as a time-domain sound signal and the input signal of the second channel as a time-domain sound signal, respectively, and obtains the spectrum X1(k) and the spectrum X2(k) for each frequency k from 0 to T-1; The phase difference spectrum estimation unit obtains a phase difference spectrum φ(k) of each frequency k from 0 to T-1; and The channel relationship information acquisition unit, for a predetermined τ max ~τ min The number of candidate samples τ cand , perform inverse Fourier transform on the sequence after assigning positive weights to the phase difference spectrum φ(0)~φ(T-1), and for τ max ~τ min The number of candidate samples τ cand , obtain the phase difference signal φ (τ cand ), Obtain the phase difference signal φ(τ cand ) is the absolute value of the correlation value γ cand The maximum value of The channel-to-channel relationship information acquiring unit further performs at least one of the following: Obtain and output the correlation value γ cand The maximum value of is taken as the inter-channel correlation value γ; Obtain and output the correlation value γ cand τ when it is the maximum value cand , as the time difference between channels; as well as In the correlation value γ cand τ when it is the maximum value cand When the correlation value γ is positive, information indicating the precedence of the first channel is obtained as the precedent channel information. cand τ when it is the maximum value cand When it is a negative value, the information indicating that the second channel is ahead is obtained as the ahead channel information, and the obtained ahead channel information is output. The value of P is predetermined for each frequency, and the value of P is smaller for a frequency with a smaller weight.
23. A signal encoding device, comprising the phase difference spectrum estimation device according to any one of claims 13 to 20 as a phase difference spectrum estimation unit, The signal encoding device further includes a signal code encoding unit that encodes the input signal of the first channel and the input signal of the second channel using the phase difference spectrum φ(k) obtained by the phase difference spectrum estimation unit to obtain a signal code and output it.
24. A signal processing device, comprising the phase difference spectrum estimation device according to any one of claims 13 to 20 as a phase difference spectrum estimation unit, The signal processing device further includes a signal processing unit that uses the phase difference spectrum φ(k) obtained by the phase difference spectrum estimation unit to perform signal processing on the input signal of the first channel and the input signal of the second channel, obtains a signal processing result, and outputs it.
25. A program for causing a computer to execute any one of the phase difference spectrum estimation method described in any one of claims 1 to 8, the inter-channel relationship information estimation method described in claim 9 or 10, the signal encoding method described in claim 11, and the signal processing method described in claim 12.
