WO2017154378A1 - 測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法 - Google Patents

測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法 Download PDF

Info

Publication number
WO2017154378A1
WO2017154378A1 PCT/JP2017/001950 JP2017001950W WO2017154378A1 WO 2017154378 A1 WO2017154378 A1 WO 2017154378A1 JP 2017001950 W JP2017001950 W JP 2017001950W WO 2017154378 A1 WO2017154378 A1 WO 2017154378A1
Authority
WO
WIPO (PCT)
Prior art keywords
peak
unit
signal
measurement
amplitude
Prior art date
Application number
PCT/JP2017/001950
Other languages
English (en)
French (fr)
Inventor
村田 寿子
正也 小西
優美 藤井
Original Assignee
株式会社Jvcケンウッド
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社Jvcケンウッド filed Critical 株式会社Jvcケンウッド
Priority to CN201780014725.8A priority Critical patent/CN108885864B/zh
Priority to EP17762724.7A priority patent/EP3428915B1/en
Publication of WO2017154378A1 publication Critical patent/WO2017154378A1/ja
Priority to US16/126,803 priority patent/US10405127B2/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H3/00Measuring characteristics of vibrations by using a detector in a fluid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/302Electronic adaptation of stereophonic sound system to listener position or orientation
    • H04S7/303Tracking of listener position or orientation
    • H04S7/304For headphones
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H17/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves, not provided for in the preceding groups
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H3/00Measuring characteristics of vibrations by using a detector in a fluid
    • G01H3/10Amplitude; Power
    • G01H3/12Amplitude; Power by electric means
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K15/00Acoustics not otherwise provided for
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S1/00Two-channel systems
    • H04S1/002Non-adaptive circuits, e.g. manually adjustable or static, for enhancing the sound image or the spatial distribution
    • H04S1/005For headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S5/00Pseudo-stereo systems, e.g. in which additional channel signals are derived from monophonic signals by means of phase shifting, time delay or reverberation 
    • H04S5/02Pseudo-stereo systems, e.g. in which additional channel signals are derived from monophonic signals by means of phase shifting, time delay or reverberation  of the pseudo four-channel type, e.g. in which rear channel signals are derived from two-channel stereo signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/302Electronic adaptation of stereophonic sound system to listener position or orientation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/027Spatial or constructional arrangements of microphones, e.g. in dummy heads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S2400/00Details of stereophonic systems covered by H04S but not provided for in its groups
    • H04S2400/01Multi-channel, i.e. more than two input channels, sound reproduction with two speakers wherein the multi-channel information is substantially preserved

Definitions

  • the present invention relates to a measurement device, a filter generation device, a measurement method, and a filter generation method.
  • the sound image localization technology there is an out-of-head localization technology that uses a headphone to localize a sound image outside the listener's head.
  • the sound image is localized out of the head by canceling the characteristics from the headphones to the ears and giving four characteristics from the stereo speakers to the ears.
  • a measurement signal impulse sound, etc.
  • ch a microphone
  • a head-related transfer function is calculated from the impulse response to create a filter.
  • Patent Document 1 discloses a method for obtaining a set of personalized indoor impulse responses.
  • a microphone is installed near each ear of a listener.
  • the left and right microphones record the impulse sound when the speaker is driven.
  • impulse response measurement in order to improve the S / N ratio, impulse response measurement under the same conditions is performed a plurality of times, and the measured signals are synchronously added (Patent Document 2).
  • Patent Document 2 When performing synchronous addition, in each measurement, it is necessary to synchronize the timing at which the measurement signal is output from the speaker and the timing at which the microphone collects the measurement signal.
  • the input and output clocks are synchronized. For this reason, once the measurement is started, the delay amount of the device does not change until the measurement is stopped. That is, when a measurement signal including a certain signal sound (impulse sound) is output, the signal sound is picked up by the microphone with a certain delay amount. When repeat reproduction is performed so that a signal sound is periodically emitted, the signal sound is usually output at a predetermined period.
  • the delay amount of each signal sound may differ even if the signal sound is output periodically. For this reason, the signal sound is not reproduced at a constant period. For example, it is possible that the multi-task control does not give priority to the acoustic device, and the sound is output after executing another task. Therefore, there is a problem that the synchronous addition that is indispensable for the measurement cannot be performed and an accurate transfer characteristic cannot be measured.
  • the present embodiment has been made in view of the above points, and an object thereof is to provide a measurement device, a filter generation device, a measurement method, and a filter generation method that can appropriately measure transfer characteristics.
  • a measurement apparatus includes a speaker that outputs a measurement signal including a plurality of signal sounds that are continuous with a time interval, and collects the measurement signal that is output from the speaker.
  • a microphone that acquires a signal; and a measurement unit that measures transfer characteristics based on the collected sound signal, the measuring unit detecting a positive / negative peak included in the collected sound signal; and a peak Based on the amplitudes at the positive and negative peaks detected by the detection unit, a code determination unit that determines a positive or negative sign, and a peak array composed of the peaks of the determined code are divided into a plurality of peak groups
  • a segmentation unit that performs a segmentation, a maximum amplitude detection unit that detects a maximum amplitude for each of the plurality of peak groups, and a segmentation unit that generates a plurality of segmented signals by segmenting the collected sound signal at a segmentation timing based on the maximum amplitude.
  • And parts, are those having a signal adder for adding the plurality
  • a measurement method is a measurement method for measuring transfer characteristics by collecting measurement signals output from a speaker with a microphone, and a plurality of continuous measurement methods with a time interval from the speaker.
  • a step of outputting a measurement signal including a signal sound a step of collecting the measurement signal output from the speaker by a microphone to obtain a sound collection signal, and detecting positive and negative peaks included in the sound collection signal
  • a peak detection step a sign determination step for determining a positive or negative sign based on the amplitude at the positive or negative peak detected by the peak detection unit, and a peak arrangement constituted by the peaks of the determined sign Dividing into a plurality of peak groups, a maximum amplitude detecting step for detecting a maximum amplitude for each of the plurality of peak groups, and a clipping type based on the maximum amplitude
  • it is intended to include a cut-out step of generating a plurality of cutout signal, a signal adding step for adding
  • the present embodiment it is possible to provide a measurement device, a filter generation device, a measurement method, and a filter generation method that can appropriately measure transfer characteristics.
  • the transfer characteristic from the speaker to the microphone is measured by the measuring device.
  • the filter generation device generates a filter based on the transfer characteristics measured by the measurement device.
  • the out-of-head localization processing performs out-of-head localization processing using an individual's spatial acoustic transfer characteristic (also referred to as a spatial acoustic transfer function) and an external auditory canal transfer characteristic (also referred to as an external auditory canal transfer function).
  • the out-of-head localization processing is realized by using the spatial acoustic transmission characteristic from the speaker to the listener's ear and the external auditory canal transmission characteristic with the headphones attached.
  • an ear canal transmission characteristic that is a characteristic from the headphone speaker unit to the ear canal entrance with the headphone mounted is used. Then, by performing convolution processing using the inverse characteristic of the ear canal transfer characteristic (also referred to as an ear canal correction function), the ear canal transfer characteristic can be canceled.
  • the out-of-head localization processing apparatus is an information processing apparatus such as a personal computer, a smartphone, or a tablet PC, processing means such as a processor, storage means such as a memory or a hard disk, display means such as a liquid crystal monitor, Input means such as a touch panel, buttons, a keyboard, and a mouse, and output means having headphones or earphones are provided.
  • processing means such as a processor
  • storage means such as a memory or a hard disk
  • display means such as a liquid crystal monitor
  • Input means such as a touch panel, buttons, a keyboard, and a mouse
  • output means having headphones or earphones are provided.
  • FIG. 1 shows an out-of-head localization processing apparatus 100 that is an example of a sound field reproducing apparatus according to the present embodiment.
  • FIG. 1 is a block diagram of an out-of-head localization processing apparatus.
  • the out-of-head localization processing apparatus 100 reproduces a sound field for the user U wearing the headphones 43. Therefore, the out-of-head localization processing apparatus 100 performs sound image localization processing on the Lch and Rch stereo input signals XL and XR.
  • the Lch and Rch stereo input signals XL and XR are audio reproduction signals output from a CD (Compact Disc) player or the like.
  • the out-of-head localization processing apparatus 100 is not limited to a physically single apparatus, and some processes may be performed by different apparatuses. For example, a part of the processing may be performed by a personal computer or the like, and the remaining processing may be performed by a DSP (Digital Signal Processor) built in the headphones 43 or the like.
  • DSP Digital Signal Processor
  • the out-of-head localization processing apparatus 100 includes an out-of-head localization processing unit 10, a filter unit 41, a filter unit 42, and headphones 43.
  • the out-of-head localization processing unit 10 includes convolution operation units 11 to 12 and 21 to 22 and adders 24 and 25.
  • the convolution operation units 11 to 12 and 21 to 22 perform convolution processing using spatial acoustic transfer characteristics.
  • Stereo input signals XL and XR from a CD player or the like are input to the out-of-head localization processing unit 10.
  • Spatial acoustic transfer characteristics are set in the out-of-head localization processing unit 10.
  • the out-of-head localization processing unit 10 convolves the spatial acoustic transfer characteristics with the stereo input signals XL and XR of each channel.
  • the spatial acoustic transfer characteristic may be a head-related transfer function HRTF measured with the head or auricle of the user U himself, or may be a dummy head or a third-party head-related transfer function. These transfer characteristics may be measured on the spot or may be prepared in advance.
  • the spatial acoustic transfer characteristic has four transfer characteristics Hls, Hlo, Hro, and Hrs.
  • the four transfer characteristics can be obtained using a filter generation device described later.
  • the convolution operation unit 11 convolves the transfer characteristic Hls with the Lch stereo input signal XL.
  • the convolution operation unit 11 outputs the convolution operation data to the adder 24.
  • the convolution operation unit 21 convolves the transfer characteristic Hro with the Rch stereo input signal XR.
  • the convolution operation unit 21 outputs the convolution operation data to the adder 24.
  • the adder 24 adds the two convolution calculation data and outputs the result to the filter unit 41.
  • the convolution operation unit 12 convolves the transfer characteristic Hlo with the Lch stereo input signal XL.
  • the convolution operation unit 12 outputs the convolution operation data to the adder 25.
  • the convolution unit 22 convolves the transfer characteristic Hrs with the Rch stereo input signal XR.
  • the convolution operation unit 22 outputs the convolution operation data to the adder 25.
  • the adder 25 adds the two convolution calculation data and outputs the result to the filter unit 42.
  • an inverse filter for canceling the ear canal transmission characteristic is set. Then, an inverse filter is convoluted with the reproduction signal that has been processed by the out-of-head localization processing unit 10.
  • the filter unit 41 convolves an inverse filter with the Lch signal from the adder 24.
  • the filter unit 42 convolves an inverse filter with the Rch signal from the adder 25.
  • the reverse filter cancels the characteristics from the headphone unit to the microphone when the headphones 43 are attached. That is, when a microphone is disposed at the ear canal entrance, the transmission characteristics between the user's ear canal entrance and the headphone playback unit or between the eardrum and headphone playback unit are canceled.
  • the inverse filter may be calculated from the result of measuring the ear canal transfer function on the spot of the user U's own pinna, or a headphone characteristic inverse filter calculated from any ear canal transfer function such as a dummy head is prepared in advance. May be.
  • the filter unit 41 outputs the corrected Lch signal to the left unit 43L of the headphones 43.
  • the filter unit 42 outputs the corrected Rch signal to the right unit 43R of the headphones 43.
  • User U is wearing headphones 43.
  • the headphone 43 outputs the Lch signal and the Rch signal toward the user U. Thereby, the sound image localized outside the user U's head can be reproduced.
  • FIG. 2 is a diagram schematically illustrating a measurement configuration of the filter generation device 200.
  • the filter generation device 200 may be a common device with the out-of-head localization processing device 100 shown in FIG. Alternatively, part or all of the filter generation device 200 may be a device different from the out-of-head localization processing device 100.
  • the filter generation device 200 also functions as a transfer characteristic measurement device or a measurement unit, as will be described later.
  • the filter generation device 200 includes a stereo speaker 5 and a stereo microphone 2.
  • a stereo speaker 5 is installed in the measurement environment.
  • the measurement environment is an environment in which acoustic characteristics are not taken into account (for example, the shape of the room is asymmetrical left and right) or an environment in which environmental sound is generated as noise. More specifically, the measurement environment may be a room at the user U's home, an audio system sales store, a showroom, or the like. In addition, the measurement environment may have a layout that does not consider acoustic characteristics. In a room at home, furniture may be arranged asymmetrically. The speakers may not be arranged symmetrically with respect to the room. Furthermore, unnecessary reverberation may occur due to reflection from windows, wall surfaces, floor surfaces, and ceiling surfaces. In the present embodiment, processing for measuring appropriate transfer characteristics is performed even in a non-ideal measurement environment.
  • the processing device (not shown in FIG. 2) of the filter generation device 200 performs arithmetic processing for measuring appropriate transfer characteristics.
  • the processing device is, for example, a personal computer (PC), a tablet terminal, a smart phone, or the like.
  • the stereo speaker 5 includes a left speaker 5L and a right speaker 5R.
  • a left speaker 5L and a right speaker 5R are installed in front of the listener 1.
  • the left speaker 5L and the right speaker 5R output an impulse sound or the like for performing impulse response measurement.
  • the stereo microphone 2 has a left microphone 2L and a right microphone 2R.
  • the left microphone 2L is installed in the left ear 9L of the listener 1
  • the right microphone 2R is installed in the right ear 9R of the listener 1.
  • the microphones 2L and 2R collect the measurement signal output from the stereo speaker 5 and acquire the collected sound signal.
  • the microphones 2L and 2R output the collected sound signal to the filter generation device 200 described later.
  • the listener 1 may be a person or a dummy head. That is, in this embodiment, the listener 1 is a concept including not only a person but also a dummy head.
  • the impulse response is measured by measuring the impulse sound output from the left and right speakers 5L and 5R with the microphones 2L and 2R.
  • the filter generation device 200 stores the collected sound signal acquired based on the impulse response measurement in a memory or the like.
  • the transfer characteristic Hls between the left speaker 5L and the left microphone 2L, the transfer characteristic Hlo between the left speaker 5L and the right microphone 2R, the transfer characteristic Hro between the right speaker 5L and the left microphone 2L, and the right speaker A transfer characteristic Hrs between 5R and the right microphone 2R is measured. That is, the transfer characteristic Hls is acquired by the left microphone 2L collecting the measurement signal output from the left speaker 5L.
  • the transfer characteristic Hlo is acquired by the right microphone 2R collecting the measurement signal output from the left speaker 5L.
  • the transfer characteristic Hro is acquired.
  • the transfer characteristic Hrs is acquired.
  • the filter generation device 200 generates a filter corresponding to the transfer characteristics Hls to Hrs from the left and right speakers 5L and 5R to the left and right microphones 2L and 2R based on the collected sound signal. Specifically, the filter generation device 200 cuts out the transfer characteristics Hls to Hrs with a predetermined filter length, and generates them as filters used for the convolution calculation of the out-of-head localization processing unit 10. As shown in FIG. 1, the out-of-head localization processing apparatus 100 performs out-of-head localization processing using transfer characteristics Hls to Hrs between the left and right speakers 5L and 5R and the left and right microphones 2L and 2R. That is, out-of-head localization processing is performed by convolving the transfer characteristic with the audio reproduction signal.
  • FIG. 3 and FIG. 4 show a signal waveform of a collected sound signal when an impulse response is measured in an ideal measurement environment as a measurement example 1.
  • a hard sphere considered as a human head without auricles is placed in an anechoic room without reverberation, and measurement is performed.
  • an anechoic chamber serving as a measurement environment left and right speakers 5L and 5R are arranged symmetrically in front of the hard sphere.
  • microphones are installed symmetrically in the portion corresponding to the ears of the human head with respect to the hard sphere.
  • FIGS. 3 and 4 show transfer characteristics Hls, Hlo, Hro, and Hrs as shown in FIGS. 3 and 4 are measured.
  • FIG. 3 shows the transfer characteristics Hls and Hlo of Measurement Example 1, that is, the measurement results when the left speaker 5L is driven.
  • FIG. 4 shows the transfer characteristics Hro and Hrs of Measurement Example 1, that is, the measurement results when the right speaker 5R is driven.
  • the transfer characteristic Hls in FIG. 3 and the transfer characteristic Hrs in FIG. 4 have substantially the same waveform. That is, in the transfer characteristic Hls and the transfer characteristic Hrs, peaks having substantially the same magnitude appear at substantially the same timing. That is, the arrival time of the impulse sound from the left speaker 5L to the left microphone 2L matches the arrival time of the impulse sound from the right speaker 5R to the right microphone 2R.
  • FIGS. 5 and 6 show the transfer characteristics Hls and Hlo of the measurement example 2
  • FIG. 6 shows the transfer characteristics Hro and Hrs of the measurement example 2.
  • FIG. 7 shows transfer characteristics Hls and Hlo of measurement example 3
  • FIG. 8 shows transfer characteristics Hro and Hrs of measurement example 3.
  • Measurement examples 2 and 3 are measurements performed in different measurement environments, and are performed in a measurement environment in which there are reflections from objects around the listener, the wall surface, the ceiling, and the floor.
  • an impulse sound is generated from the stereo speaker 5 by a personal computer or a smart phone. That is, general-purpose information processing apparatuses such as personal computers and smart phones are used as acoustic devices.
  • the delay amount of the acoustic device may be different for each measurement. For example, signal delay may occur due to processing in the processor of the acoustic device or processing in the interface.
  • the transfer characteristics are cut out so that the maximum amplitude (the amplitude with the maximum absolute value) is the same time.
  • the transfer characteristics Hls, Hlo, Hro, and Hrs are cut out so that the maximum amplitude A of the transfer characteristics Hls and Hrs is the 30th sample.
  • the maximum amplitude has a negative peak (A in FIGS. 5 and 6).
  • the left and right pinna shapes of the listener 1 may be different. In this case, even if the listener 1 is in a symmetrical position with respect to the left and right speakers 5L and 5R, the left and right transfer characteristics are greatly different. Also, when the measurement environment is asymmetrical, the left and right transmission characteristics are greatly different.
  • the peak having the maximum amplitude may be broken into two as in Measurement Example 4 shown in FIGS.
  • the maximum amplitude A of the transfer characteristic Hrs is broken into two as shown in FIG.
  • the left and right transfer characteristics Hls and Hrs may have different peak signs for maximum amplitude.
  • the maximum amplitude A of the transfer characteristic Hls is a positive peak (FIG. 11)
  • the maximum amplitude A of the transfer characteristic Hrs is a negative peak (FIG. 12).
  • FIG. 13 and FIG. 14 show the transfer characteristics cut out by aligning them at the sample positions (or times) at which the transfer characteristics Hls and Hrs of Measurement Example 4 and Measurement Example 5 show the maximum amplitude.
  • FIG. 13 shows the transfer characteristics Hls and Hrs of the measurement example 4
  • FIG. 14 shows the transfer characteristics Hls and Hrs of the measurement example 5.
  • the filter generation device 200 performs appropriate clipping by performing the following processing.
  • FIG. 15 is a block diagram illustrating a configuration of the processing device 210.
  • the processing device 210 includes a measurement signal generation unit 211, a collected sound signal acquisition unit 212, an addition processing unit 213, a direct sound arrival time search unit 214, a left and right direct sound determination unit 215, an error correction unit 216, and a waveform cutout unit 217.
  • the processing device 210 is an information processing device such as a personal computer, a smart phone, or a tablet terminal, and includes an audio input interface (IF) and an audio output interface. That is, the processing apparatus 210 is an acoustic device having input / output terminals connected to the stereo microphone 2 and the stereo speaker 5.
  • IF audio input interface
  • the measurement signal generation unit 211 includes a D / A converter, an amplifier, and the like, and generates a measurement signal.
  • the measurement signal generation unit 211 outputs the generated measurement signal to the stereo speaker 5.
  • the left speaker 5L and the right speaker 5R each output a measurement signal for measuring transfer characteristics. Impulse response measurement by the left speaker 5L and impulse response measurement by the right speaker 5R are performed.
  • the left microphone 2 ⁇ / b> L and the right microphone 2 ⁇ / b> R of the stereo microphone 2 each collects the measurement signal and outputs the sound collection signal to the processing device 210.
  • the sound collection signal acquisition unit 212 acquires sound collection signals from the left microphone 2L and the right microphone 2R.
  • the collected sound signal acquisition unit 212 includes an A / D converter, an amplifier, and the like, and may perform A / D conversion, amplification, and the like on the collected sound signal from the left microphone 2L and the right microphone 2R.
  • the collected sound signal acquisition unit 212 outputs the acquired sound collection signal to the addition processing unit 213.
  • the first sound pickup signal corresponding to the transfer characteristic Hls between the left speaker 5L and the left microphone 2L and the transfer signal Hlo corresponding to the transfer characteristic Hlo between the left speaker 5L and the right microphone 2R Two sound pickup signals are acquired simultaneously. Further, when the right speaker 5R is driven, the third sound pickup signal corresponding to the transfer characteristic Hro between the right speaker 5R and the left microphone 2L and the transfer characteristic Hrs between the right speaker 5R and the right microphone 2R are used. The fourth collected sound signal is acquired simultaneously.
  • the addition processing unit 213 performs addition processing on each of the first to fourth collected sound signals.
  • the adding process is a process of cutting out and adding the collected sound signals acquired by a plurality of impulse response measurements. By performing the addition process, the influence of sudden noise can be reduced. For example, the number of additions can be 30.
  • the addition processing unit 213 divides the collected sound signals and adds them to obtain transfer characteristics Hls, Hlo, Hro, and Hrs.
  • the left and right microphones 2L and 2R pick up the measurement signal when the impulse sound is output from the left speaker 5L continuously several times.
  • the addition processing unit 213 cuts out and adds the collected sound signals collected by the microphone 2L, and divides by the number of additions. Thereby, the transfer characteristic Hls is obtained. Further, the addition processing unit 213 cuts out and adds the collected sound signals picked up by the microphone 2R, and divides by the number of additions. Thereby, the transfer characteristic Hlo is obtained.
  • the left and right microphones 2L and 2R pick up the sound pickup signal when the impulse sound is output from the right speaker 5R a plurality of times in succession.
  • the addition processing unit 213 cuts out and adds the collected sound signals collected by the microphone 2L, and divides by the number of additions. Thereby, the transfer characteristic Hro is calculated
  • the measurement signals output from the speakers 5L and 5R include a plurality of signal sounds that are continuous with a time interval.
  • the signal sound is, for example, an impulse sound.
  • the left speaker 5L outputs a measurement signal including 30 impulse sounds.
  • the microphones 2L and 2R collect the measurement signal without interruption. That is, the microphones 2L and 2R continuously collect measurement signals including 30 impulse sounds.
  • the measurement signal is not limited to the impulse sound, and may be another signal such as a TSP (Time Stretched Pulse) sound.
  • TSP Time Stretched Pulse
  • the right speaker 5R outputs a measurement signal including 30 impulse sounds.
  • the microphones 2L and 2R collect measurement signals without interruption. That is, the microphones 2L and 2R continuously collect measurement signals including 30 impulse sounds.
  • the microphones 2 ⁇ / b> L and 2 ⁇ / b> R acquire a sound collection signal including 30 impulse responses and output the sound collection signal acquisition unit 212.
  • the collected sound signal acquisition unit 212 performs A / D conversion or the like on the collected sound signal and outputs the result to the addition processing unit 213. Therefore, the collected sound signal input to the addition processing unit 213 includes 30 impulse sounds. That is, in the collected sound signal, 30 impulse responses appear continuously with a time interval.
  • the number of impulse sounds included in the measurement signal is not limited to 30 and may be two or more. Addition and division may be performed in accordance with the number of impulse sounds included in the measurement signal. Further, the signal sound included in the measurement signal is not limited to the impulse sound.
  • the time interval of the impulse sound in the measurement signal may be set according to the measurement environment. That is, a time interval may be set in advance so that the reverberation or the like becomes a certain level or less before the next impulse sound is output.
  • the measurement signal generation unit 211 generates a measurement signal including a plurality of impulse sounds.
  • the speaker 5 outputs the measurement signal containing 30 impulse sounds without interruption. That is, when measurement is started, 30 impulse sounds are output continuously with a time interval.
  • the collected sound signal acquisition unit 212 outputs a collected sound signal including 30 impulse responses to the addition processing unit 213.
  • the addition processing unit 213 cuts out the collected sound signal and generates 30 cut-out signals.
  • the addition processing unit 213 cuts out a part of the sampled sound signal and uses it as a cut-out signal.
  • Each cutout signal includes one impulse response.
  • the addition processing unit 213 adds together the peak positions of the cutout signals, and divides by the number of additions (30 times). By doing in this way, since the addition process equivalent to synchronous addition is performed, the S / N ratio of the collected sound signal can be increased. Therefore, it is possible to reduce the influence of sudden noise.
  • FIG. 16 is a block diagram illustrating a configuration of the addition processing unit 213.
  • the addition processing unit 213 includes a peak detection unit 311, a code determination unit 312, a peak group division unit 313, a maximum amplitude detection unit 314, a signal cutout unit 315, and a signal addition unit 316.
  • the peak detector 311 detects positive and negative peaks included in the collected sound signal. That is, the peak detector 311 detects a positive peak and a negative peak. Specifically, the peak detection unit 311 extracts the amplitude values and times of all peaks from the collected sound signal.
  • the sign determination unit 312 determines a positive or negative sign based on the amplitude of the peak included in the collected sound signal. Specifically, the sign determination unit 312 calculates the maximum amplitude of the extracted positive peak and the maximum amplitude of the negative peak. In other words, the sign determination unit 312 determines whether the maximum absolute value of the amplitude of the collected sound signal is a positive peak or a negative peak. The sign determination unit 312 compares the maximum amplitude of the positive peak with the absolute value of the maximum amplitude of the negative peak, and selects the larger sign.
  • the code determination unit 312 sets the target code as positive.
  • the sign determination unit 312 sets the target sign to be negative.
  • the code determination unit 312 may determine the code by a method other than the comparison of the maximum amplitude. For example, the code of interest may be determined using the number of peaks greater than or equal to a predetermined amplitude value, the average value of a plurality of peaks, or the like.
  • the peak group dividing unit 313 divides the peak arrangement composed of the determined code peaks into a plurality of peak groups. Specifically, the peak group dividing unit 313 extracts a peak of a focused code and obtains a peak arrangement. In the peak arrangement, the peak time is associated with the absolute value of the peak amplitude. Further, the peak group dividing unit 313 generates a peak array Thdata by removing from the peak array peaks whose absolute value of peak amplitude is less than the threshold value.
  • the peak group dividing unit 313 obtains the top peak of the peak group from the peaks whose absolute value of the peak amplitude is equal to or greater than the threshold.
  • the peak group dividing unit 313 sets the peak at the earliest time in the peak array Thdata, that is, the peak with the smallest index i as the first peak.
  • a peak included in a predetermined time from the top peak is set as one peak group. Thereby, the first peak group can be obtained.
  • the peak group dividing unit 313 sets the earliest peak after the first peak group, that is, the peak with the smallest index i as the first peak. Then, the peak group dividing unit 313 sets a peak included in a predetermined time from the top peak as one peak group. Thereby, the first peak group and the second peak group can be obtained.
  • the peak group dividing unit 313 obtains 30 peak groups by repeating this process.
  • the maximum amplitude detector 314 detects the maximum amplitude for each of a plurality of peak groups. That is, the maximum amplitude detection unit 314 detects the maximum amplitude in each peak group. Note that when the sign of interest is negative, the maximum amplitude corresponds to the peak at which the absolute value of the amplitude is maximum.
  • the signal cutout unit 315 cuts out the collected sound signal at a cutout timing based on the maximum amplitude, and generates a plurality of cutout signals.
  • 30 cutout signals are generated.
  • the plurality of cutout signals are composed of the same number of samples.
  • the cut-out signal is a signal including a predetermined number of samples starting from 100 samples before the maximum number of samples.
  • the signal adder 316 adds the cutout signals cut out by the signal cutout unit 315 and divides by the number of additions.
  • the signal adding unit 316 adds the cutout signals in a state where the maximum amplitudes of the cutout signals are matched as described above. That is, the cutout signals are added at the same timing. Thereby, the impulse response measurement for 30 times can be accurately averaged. For example, it is possible to prevent a positive peak and a negative peak from canceling out at the time of addition. Therefore, it is possible to appropriately measure the transfer characteristics.
  • the above addition processing may be executed for each of the transfer characteristics Hlo, Hls, Hro, and Hrs.
  • the cut-out timing in the signal addition of the transfer characteristic Hls may be set at the cut-out timing obtained by the signal addition of the transfer characteristic Hlo.
  • the cut-out timing in the signal addition of the transfer characteristic Hro may be set at the cut-out timing obtained by the signal addition of the transfer characteristic Hrs.
  • 19 to 24 are signal waveform diagrams for explaining the addition processing.
  • the horizontal axis represents the number of samples (index) and the vertical axis represents the amplitude (amp).
  • 19 to 24 show response signal waveforms or their peak arrangements due to the first to third impulse sounds.
  • the peak detector 311 determines whether or not a measurement signal is output from the left speaker 5L (S401). When the measurement signal is output from the left speaker 5L (YES in S401), the peak detector 311 generates a positive peak array pdata and a negative peak array mdata based on the sound collection signal dataL (S402).
  • the positive peak array pdata is an array consisting of only positive amplitude peaks.
  • the negative peak array mdata is an array consisting of only negative amplitude peaks.
  • the peak detection unit 311 obtains all positive peaks having a positive amplitude and negative peaks having a negative amplitude in the collected sound signal dataL for the entire sound collecting time. Then, the peak detection unit 311 leaves the amplitude value for the positive amplitude and replaces the amplitude value with 0 for the negative amplitude with respect to the entire collected sound signal dataL. In this way, the positive peak array pdata is obtained.
  • the collected sound signal dataL as shown in FIG. 24 is acquired, a positive peak arrangement as shown in FIG. 19 is obtained.
  • the peak detection unit 311 replaces the amplitude value with 0 for the positive amplitude and the amplitude value with the absolute value for the negative amplitude with respect to all the peaks of the sound pickup signal dataL. In this way, the negative peak array mdata is obtained.
  • the peak detection unit 311 When the measurement signal is not output from the left speaker 5L (NO in S401), the peak detection unit 311 performs the positive peak array pdata of the sound collection signal dataR based on the sound collection signal dataR, as in the process of step S402.
  • the negative peak array mdata is obtained. (S403).
  • the sound collection signal dataR is a sound collection signal acquired when a measurement signal is output from the right speaker 5L. That is, the sound peak signal dataR is also processed in the same manner as the process in step S402, thereby obtaining the positive peak array pdata and the negative peak array mdata.
  • the sign determination unit 312 determines whether the maximum value pmax of the positive peak array pdata is larger than the maximum value mmax of the negative peak array mdata (S404). That is, the sign determination unit 312 compares the maximum value pmax with the maximum value mmax.
  • the code determination unit 312 determines a code of interest according to the comparison result between the maximum value pmax and the maximum value mmax.
  • the peak group dividing unit 313 when the maximum value pmax of the positive peak array pdata is larger than the maximum value mmax of the negative peak array mdata (YES in S404), the peak group dividing unit 313 generates a peak array Thdata from the positive peak array pdata (S406). ). That is, since the maximum value pmax is larger than the maximum value mmax, the code determination unit 312 determines a positive code as a code of interest. Then, the peak array Thdata is generated by comparing the amplitude included in the positive peak array pdata with a threshold value.
  • the peak group dividing unit 313 leaves the amplitude value if the amplitude of the peak included in the positive peak array pdata is equal to or greater than the threshold value, and replaces the amplitude value with 0 if the amplitude is less than the threshold value. In this way, the peak array Thdata is generated.
  • FIG. 20 shows a case where the threshold for the positive peak array pdata is pmax * 0.8.
  • the peak group dividing unit 313 uses the peak array Thdata from the negative peak array mdata as in step S405. Is generated (S406). That is, since the maximum value mmax is larger than the maximum value pmax, the sign determination unit 312 determines a negative sign as a sign of interest. Then, the peak group dividing unit 313 compares the amplitude included in the negative peak array mdata with a threshold value to generate a peak array Thdata.
  • the peak group dividing unit 313 leaves the amplitude value if the amplitude of the peak included in the negative peak array mdata is equal to or greater than the threshold value, and replaces the amplitude value with 0 if the amplitude is less than the threshold value.
  • the peak array Thdata is generated.
  • the threshold value is preferably set according to mmax.
  • the threshold value is set to mmax * 0.8.
  • j 0.
  • Thdata from startidx to framesize * 0.5 is replaced with 0.
  • the peak arrangement Thdata becomes as shown in FIG.
  • Framesize corresponds to the frame size of the transfer characteristic. Specifically, framesize is the number of samples included in a cutout signal to be described later. The framesize may be smaller than the number of samples corresponding to the time interval between two impulse sounds. framesize * 0.5 is equal to or greater than HRTF_Length. HRTF_Length is, for example, 256 samples.
  • the peak group dividing unit 313 sets a plurality of peaks included in a predetermined period HRTF_Length from the top peak as the first peak group.
  • the maximum amplitude detection unit 314 sets the largest amplitude in the first peak group as maxdata_idx [0]. That is, the maximum amplitude detector 314 detects the maximum amplitude maxdata based on the response of the first impulse sound.
  • the peak group dividing unit 313 replaces Thdata from startidx to framesize * 0.5 with 0.
  • the peak included in the first peak group is removed from the peak array Thdata.
  • j 0 in the first peak group.
  • the peak group dividing unit 313 determines whether i is smaller than idx_last (S409).
  • idx_last is the last index of the peak array Thdata, that is, the index at the sound collection end time of the sound collection signal. Therefore, the peak group dividing unit 313 determines whether or not the entire peak array Thdata has been divided into peak groups corresponding to the number of additions.
  • the peak group dividing unit 313 replaces Thdata from startidx to framesize * 0.5 with 0.
  • the peak included in the second peak group is removed from the peak array Thdata. Since framesize * 0.5 is equal to or higher than HRTF_Length, the peak included in the first peak group is not included in the second peak group.
  • the peak group dividing unit 313 and the maximum amplitude detecting unit 314 repeat the above processing until i reaches idx_last. That is, when the peak group dividing unit 313 detects the top peak of each peak group, the plurality of peaks included in the predetermined period HRTF_Length from the top peak are set as one peak group.
  • the peak group division unit 313 replaces Thdata in framesize * 0.5 with 0 from the top peak. By doing so, the peak group dividing unit 313 divides the peak array Thdata into the peak groups for the number of additions, and the maximum amplitude detecting unit 314 obtains the maximum amplitude of each peak group.
  • the number of additions is the number of impulse sounds included in the measurement signal, for example, 30.
  • the peak group dividing unit 313 divides the peak array Thdata into 30 peak groups. Each peak group includes a plurality of peaks included in the period HRTF_Length from the top peak.
  • the peak array Thdata tends to become zero due to amplitude attenuation. That is, in the second half of each impulse response, the amplitude is attenuated, so the positive peak array pdata or the negative peak array mdata tends to be less than the threshold value. Therefore, in the peak array Thdata in which the peaks less than the threshold are set to 0, a section where 0 is continuously constant is set as the boundary of the peak group. That is, the peak group dividing unit 313 sets a location where a peak having an absolute value of peak amplitude that is equal to or greater than a threshold value does not exist for a certain period or more as a boundary between a plurality of peak groups. By doing in this way, the boundary of each impulse response can be set appropriately.
  • the signal cutout unit 315 cuts the collected sound signal by offsetting maxdata_idx [j], and the signal addition unit 316 adds the cutout signal for the number of additions. . (S411). If the offset is, for example, ⁇ 100 samples, maxdata_idx [j] ⁇ 100 is the cutout start time. Then, the signal cutout unit 315 cuts out the amplitude corresponding to framesize from the cutout start time, thereby generating one cutout signal. The signal cutout unit 315 generates a cutout signal for each of maxdata_idx [j].
  • the index obtained by adding an offset to the maximum amplitude index maxdata_idx [j] is the cut-out start time.
  • the signal cutout unit 315 cuts out a framesize sample from the cutout start time and sets it as a cutout signal.
  • a cut-out signal cut out with a fixed framesize is generated.
  • FIG. 24 shows a cutout signal (first cutout signal) obtained by collecting the first impulse sound and a cutout signal (second cutout signal) obtained by collecting the second impulse sound.
  • total_times is the number of additions.
  • the signal addition unit 316 determines whether or not the addition process has been completed for the collected sound signal from the right speaker 5R (S413). If the addition process has not been completed for the collected sound signal of the right speaker 5R (NO in S413), the process returns to step S401. As a result, the addition process is similarly performed on the sound collected signal of the right speaker 5R. When the addition process is completed for the sound collected signal of the right speaker 5R (YES in S413), the signal addition process is terminated.
  • the addition processing unit 213 performs an addition process corresponding to synchronous addition on the collected sound signal.
  • a positive or negative sign is determined, and attention is paid to the peak of the determined sign. That is, when focusing on the positive sign, the cutout start positions are aligned so that the maximum amplitudes of the positive peaks match. When attention is paid to the negative sign, the cutout start positions are aligned so that the maximum amplitudes of the negative peaks coincide. By doing in this way, it is possible to add the cut-out signals aligned at an appropriate timing. Therefore, the S / N ratio can be improved.
  • the measuring apparatus and the measuring method according to the present embodiment it is possible to appropriately measure the transfer characteristics. Further, there is no need to synchronize the microphone 2 and the speaker 5. Therefore, the transfer function can be measured with an inexpensive PC or an audio device with input / output. For this reason, many users can use the out-of-head localization headphones using the personal characteristics.
  • the sign determination unit 312 determines the sign by comparing the maximum value of the positive peak amplitude in the collected sound signal with the maximum absolute value of the negative peak amplitude. By doing in this way, the code which pays attention appropriately can be determined. Therefore, it is possible to appropriately measure the transfer characteristics.
  • the peak group dividing unit 313 obtains the top peak of the peak group from the peaks whose absolute value of the peak amplitude is greater than or equal to the threshold in the peak arrangement, and sets the peaks included in the predetermined period from the top peak as one peak group is doing. By doing so, the peak group dividing unit 313 can appropriately divide the collected sound signal into a plurality of peak groups. In the peak arrangement, the peak group dividing unit 313 sets, as a boundary between a plurality of peak groups, a location where a peak having an absolute value of peak amplitude that is equal to or greater than a threshold does not exist for a certain period. In this way, the peak group dividing unit 313 can more appropriately divide the collected sound signal into a plurality of peak groups. Therefore, it is possible to appropriately measure the transfer characteristics.
  • the direct sound arrival time searching unit 214 searches for the direct sound arrival times of the transfer characteristics Hls and Hrs subjected to the addition process.
  • the direct sound is a sound that directly reaches the left microphone 2L from the left speaker 5L and a sound that directly reaches the right microphone 2R from the right speaker 5R. That is, the direct sound is sound that reaches the microphones 2L and 2R from the speakers 5L and 5R without being reflected by surrounding structures such as walls, floors, ceilings, and outer ears.
  • the direct sound is the sound that reaches the microphones 2L and 2R earliest.
  • the direct sound arrival time searching unit 214 searches for the direct sound arrival time based on the time when the amplitudes of the transfer characteristics Hls and Hrs become maximum. The processing in the direct sound arrival time search unit 214 will be described later.
  • the direct sound arrival time search unit 214 outputs the searched direct sound arrival time to the left and right direct sound determination unit 215.
  • the left and right direct sound determination unit 215 determines whether or not the signs of the amplitudes of the left and right direct sounds match. For example, the left and right direct sound determination unit 215 determines whether or not the signs of the amplitudes of the transfer characteristics Hls and Hrs at the direct sound arrival time match. Furthermore, the left and right direct sound determination unit 215 determines whether or not the direct sound arrival times match. The left and right direct sound determination unit 215 outputs the determination result to the error correction unit 216.
  • the error correction unit 216 corrects the extraction timing. Then, the waveform cutout unit 217 cuts out the waveforms of the transfer characteristics Hls, Hlo, Hro, and Hrs at the corrected cutout timing.
  • the transfer characteristics Hls, Hlo, Hro, and Hrs cut out with a predetermined filter length are filters. That is, the waveform cutout unit 217 cuts out the waveforms of the transfer characteristics Hls, Hlo, Hro, and Hrs by shifting the head position.
  • the waveform cutout unit 21 cuts out the cutout timing as it is without correcting the cutout timing.
  • the error correction unit 216 corrects the extraction timing so that the direct sound arrival times of the transfer characteristics Hls and Hrs are aligned.
  • Data of the transfer characteristics Hls, Hlo or the transfer characteristics Hro, Hrs is moved so that the direct sounds of the transfer characteristics Hls, Hrs are located at the same number of samples. That is, the number of leading samples for extraction is different between the transfer characteristics Hls and Hlo and the transfer characteristics Hro and Hrs.
  • the waveform cutout unit 217 generates a filter from the cut out transfer characteristics Hls, Hlo, Hro, and Hrs. That is, the waveform cutout unit 217 generates a filter by using the amplitudes of the transfer characteristics Hls, Hlo, Hro, and Hrs as filter coefficients.
  • the transfer characteristics Hls, Hlo, Hro, and Hrs generated by the waveform cutout unit 217 are set as filters in the convolution operation units 11, 12, 21, and 22 shown in FIG. As a result, the user U can listen to the audio that is localized out of the head with a sound quality with a good balance between left and right.
  • FIG. 25 is a flowchart illustrating a filter generation method in the processing device 210.
  • the addition processing unit 213 adds the collected sound signal (S101). That is, the addition processing unit 213 adds the collected sound signals for each of the transfer characteristics Hls, Hlo, Hro, and Hrs. Thereby, the influence of sudden noise can be reduced.
  • the addition processing is performed by the processing shown in FIGS.
  • the direct sound arrival time search unit 214 acquires the direct sound arrival time Hls_First_idx in the transfer characteristic Hls and the direct sound arrival time Hrs_First_idx in the transfer characteristic Hrs (S102).
  • FIG. 26 is a flowchart showing a direct sound arrival time search process.
  • FIG. 26 shows processing performed for each of the transfer characteristics Hls and the transfer characteristics Hrs. That is, the direct sound arrival time searching unit 214 performs the processing shown in FIG. 26 for each of the transfer characteristics Hls and Hrs, thereby acquiring the direct sound arrival time Hls_first_idx and the direct sound arrival time Hls_first_idx, respectively. Can do.
  • the direct sound arrival time searching unit 214 obtains a time max_idx at which the absolute value of the amplitude of the transfer characteristic is maximized (S201). That is, the direct sound arrival time searching unit 214 sets the time at which the maximum amplitude A is taken as time max_idx as shown in FIGS. Time max_idx corresponds to the time from the start of measurement. Further, the time max_idx and various times described later may be expressed as absolute time from the start of measurement or may be expressed as the number of samples from the start of measurement.
  • the direct sound arrival time searching unit 214 determines whether or not data [max_idx] at time max_idx is greater than 0 (S202).
  • data [max_idx] is the value of the amplitude of the transfer characteristic at max_idx. That is, the direct sound arrival time searching unit 214 determines whether the maximum amplitude is a positive peak or a negative peak.
  • zero_idx is a reference time for the search range of the direct sound arrival time. Specifically, the time zero_idx corresponds to the end of the search range.
  • the direct sound arrival time searching unit 214 searches for the direct sound arrival time within the range of 0 to zero_idx.
  • the direct sound arrival time searching unit 214 acquires zero_idx ⁇ max_idx and the time zero_idx at which the amplitude is finally negative (S204). That is, the direct sound arrival time searching unit 214 sets the time when the amplitude becomes negative immediately before the time max_idx as zero_idx. For example, in the transfer characteristics shown in FIGS. 9 to 11, since the maximum amplitude A is positive, zero_idx exists before time max_idx. The time when the amplitude becomes negative immediately before the time max_idx is the end of the search range, but the end of the search range is not limited to this.
  • the direct sound arrival time searching unit 214 acquires a maximum point from 0 to zero_idx (S205). That is, the direct sound arrival time search unit 214 extracts a positive peak of amplitude in the search range 0 to zero_idx.
  • the direct sound arrival time search unit 214 determines whether or not the number of local maximum points is greater than 0 (S206). That is, the direct sound arrival time search unit 214 determines whether or not a local maximum point (positive peak) exists in the search range 0 to zero_idx.
  • the direct sound arrival time searching unit 214 determines that the amplitude of the local maximum point is (
  • the direct sound arrival time searching unit 214 sets the time of the local maximum point C to the direct sound arrival time first_idx.
  • the direct sound arrival time search unit 214 sets a threshold value according to the maximum amplitude.
  • the direct sound arrival time search unit 214 compares the amplitude of the maximum point with a threshold value to determine whether the maximum point is due to noise or direct sound. That is, when the amplitude of the maximum point is less than a predetermined ratio with respect to the absolute value of the maximum amplitude, the direct sound arrival time searching unit 214 determines that the maximum point is noise. When the amplitude of the maximum point is equal to or greater than a predetermined ratio with respect to the absolute value of the maximum amplitude, the direct sound arrival time search unit 214 determines that the maximum point is a direct sound. By doing so, the influence of noise can be removed, so that the direct sound arrival time can be searched accurately.
  • the threshold for discriminating noise is not limited to the above value, and an appropriate ratio can be set according to the measurement environment and the measurement signal. It is also possible to set a threshold value regardless of the maximum amplitude.
  • the direct sound arrival time searching unit 214 obtains the direct sound arrival time first_idx. Specifically, the direct sound arrival time search unit 214 sets the time at which the amplitude takes the maximum point before the time max_idx at which the absolute value of the amplitude is maximum as the direct sound arrival time first_idx. That is, the direct sound arrival time searching unit 214 determines that the first positive peak is a direct sound before the maximum amplitude. When there is no maximum point before the maximum amplitude, the maximum amplitude is determined as a direct sound. The direct sound arrival time search unit 214 outputs the searched direct sound arrival time first_idx to the left and right direct sound determination unit 215.
  • the left and right direct sound determination unit 215 acquires the direct sound arrival times Hls_first_idx and Hrs_first_idx of the transfer characteristics Hls and Hrs, respectively. Then, the left and right direct sound determination unit 215 obtains the product of the direct sound amplitudes of the transfer characteristics Hls and Hrs (S103).
  • the left and right direct sound determination unit 215 multiplies the amplitude of the transfer characteristic Hls at the direct sound arrival time Hls_first_idx by the amplitude of the transfer characteristic Hro at the direct sound arrival time Hrs_first_idx, and the sign of the maximum amplitude of Hls and Hrs is positive or negative. Judge whether or not you have them.
  • the error correction unit 216 moves one data so that the direct sound has the same time. (S106). Note that when the transfer characteristic does not need to be moved, the amount of data movement is zero. For example, if YES is determined in step S104, the data movement amount is zero. In this case, step S106 may be omitted and the process may proceed to step S107. Then, the waveform cutout unit 217 cuts out the transfer characteristics Hls, Hlo, Hro, and Hrs from the same time with the filter length (S107).
  • the error correction unit 216 calculates the correlation coefficient corr of the transfer characteristics Hls and Hrs. (S105). That is, since the right and left direct sound arrival times are not aligned, the error correction unit 216 corrects the extraction timing. For this reason, the error correction unit 216 calculates the cross-correlation coefficient corr of the transfer characteristics Hls and Hrs.
  • the error correction unit 216 moves one data based on the cross-correlation coefficient corr so that the direct sound has the same time (S106). Specifically, the data of the transfer characteristics Hrs and Hro are moved so that the direct sound arrival time Hls_first_idx matches the direct sound arrival time Hrs_first_idx. Here, the movement amount of the data of the transfer characteristics Hrs and Hro is determined according to the offset amount with the highest correlation. As described above, the error correction unit 216 corrects the extraction timing based on the correlation between the transfer characteristics Hls and Hrs.
  • the waveform cutout unit 217 cuts out the transfer characteristics Hls, Hlo, Hro, and Hrs by the filter length (S107).
  • FIG. 27 is a flowchart illustrating an example of the processing in steps S104 to S107.
  • the data of Hrs and Hro is moved (S305). Note that when the transfer characteristic does not need to be moved, the amount of data movement is zero. For example, if YES is determined in step S301, the data movement amount is zero. In this case, step S305 may be omitted and the process may proceed to step S306.
  • the waveform cutout unit 217 cuts out the transfer characteristics Hls, Hlo, Hro, and Hrs with the filter length from the same time with the filter length (S306). That is, the error correction unit 216 corrects the extraction timing of the transfer characteristics Hro and Hrs so that the direct sound arrival times are aligned. Then, the waveform cutout unit 217 cuts out the transfer characteristics Hls, Hlo, Hro, and Hrs at the cutout timing corrected by the error correction unit 216.
  • the error correction unit 216 shifts the offset by 1 from (start ⁇ 10) to (start + 10) of the transfer characteristic Hrs, and acquires the cross-correlation coefficients corr [0] to corr [19] with the transfer characteristic Hls ( S303).
  • the error correction unit 216 preferably obtains the average value and variance of the transfer characteristics Hrs and standardizes the cross-correlation coefficient corr using the average values and variances of the transfer characteristics Hls and Hrs.
  • FIG. 28 is used to explain how to obtain the cross-correlation coefficient.
  • the transfer characteristic Hls and 30 samples extracted from the transfer characteristic Hls are indicated by a thick frame G.
  • the error correction unit 216 acquires corr [cmax_idx] where the cross correlation coefficient takes the maximum value (S304).
  • cmax_idx corresponds to an offset amount at which the cross-correlation coefficient takes a maximum value. That is, cmax_idx indicates an offset amount when the correlation between the transfer characteristic Hls and the transfer characteristic Hrs is the largest.
  • the error correction unit 216 moves the data of the transfer characteristics Hrs and Hro according to cmax_idx so that Hls_first_idx and Hrs_first_idx have the same time (S305).
  • the error correction unit 216 moves the data of the transfer characteristics Hrs and Hro by the offset amount. Thereby, the direct sound arrival times of the transfer characteristics Hls and Hrs are aligned.
  • step S305 corresponds to step S106 in FIG.
  • the error correction unit 216 may move the transfer characteristics Hls and Hlo instead of moving the transfer characteristics Hrs and Hro.
  • the waveform cutout unit 217 cuts out the transfer characteristics Hls, Hlo, Hro, and Hrs with the filter length from the same time. By doing so, it is possible to generate a filter with the same direct sound arrival time. Therefore, it is possible to generate a sound field with a good balance between left and right. Thereby, the vocal sound image can be localized at the center.
  • FIG. 29A is a diagram illustrating transfer characteristics Hls and Hlo before the direct sound arrival times are aligned.
  • FIG. 29B is a diagram illustrating transfer characteristics Hrs and Hro.
  • FIG. 29C is a diagram illustrating transfer characteristics Hls and Hlo after the direct sound arrival times are aligned.
  • 29A to 29C the horizontal axis represents the number of samples and the vertical axis represents the amplitude. The number of samples corresponds to the time from the start of measurement, and the measurement start time is set to zero.
  • the delay amount in the acoustic device may differ between the impulse response measurement from the left speaker 5L and the impulse response measurement from the right speaker 5R.
  • the direct sound arrival times of the transfer characteristics Hls and Hlo shown in FIG. 29A are delayed as compared with the transfer characteristics Hrs and Hro shown in FIG. 29B.
  • the processing device 210 moves the transfer characteristics Hls and Hlo based on the correlation. Thereby, the direct sound arrival times of the transfer characteristics Hls and Hrs can be made uniform.
  • the processing device 210 generates a filter by aligning direct sound arrival times and cutting out transfer characteristics.
  • the waveform cutout unit 217 cuts out the transfer characteristics arranged so that the direct sound arrival times coincide with each other, thereby generating a filter. Therefore, it is possible to reproduce a sound field with a good left / right balance.
  • the left and right direct sound determination unit 215 determines whether or not the signs of the direct sounds match.
  • the error correction unit 216 performs error correction according to the determination result of the left and right direct sound determination unit 215. Specifically, when the codes of the direct sounds do not match or when the direct sound arrival times do not match, the error correction unit 216 performs error correction based on the cross-correlation coefficient. If the signs of the direct sounds match and the direct sound arrival times match, the error correction unit 216 does not perform error correction based on the cross-correlation coefficient. Since the error correction unit 216 does not frequently perform error correction, unnecessary calculation processing can be omitted. That is, when the direct sound codes match and the direct sound arrival times match, the error correction unit 216 does not need to calculate the cross-correlation coefficient. Therefore, the calculation processing time can be shortened.
  • the error correction unit 216 performs error correction, so that a filter can be appropriately generated. Therefore, it is possible to reproduce a sound field with a good balance between left and right.
  • the direct sound arrival time searching unit 214 searches for the direct sound arrival time. Specifically, the direct sound arrival time searching unit 214 sets the time at which the amplitude takes a maximum point before the time when the maximum amplitude is reached as the direct sound arrival time. Further, the direct sound arrival time searching unit 214 sets the time when the maximum amplitude is reached before the time when the maximum amplitude is reached as the direct sound arrival time. By doing in this way, it is possible to appropriately search for the direct sound arrival time. A filter can be generated more appropriately by cutting out the transfer characteristic based on the direct sound arrival time.
  • the left and right direct sound determination unit 215 determines whether or not the signs of the amplitudes of the transfer characteristics Hls and Hrs at the direct sound arrival time match. If the codes are different, the error correction unit 216 corrects the extraction timing. By doing in this way, a cut-out timing can be adjusted appropriately. Furthermore, the left and right direct sound determination unit 215 determines whether or not the direct sound arrival times of the transfer characteristics Hls and Hrs match. When the direct sound arrival times of the transfer characteristics Hls and Hrs do not match, the error correction unit 216 corrects the extraction timing. By doing in this way, a cut-out timing can be adjusted appropriately.
  • the error correction unit 216 may omit the process of correcting the extraction timing. Specifically, if step S104 is YES, step S106 can be omitted. Alternatively, if step S301 is YES, step S305 can be omitted. In this way, unnecessary processing can be omitted and calculation time can be shortened.
  • the error correction unit 216 preferably corrects the cut-out timing based on the correlation between the transfer characteristics Hls and Hrs. By doing in this way, it becomes possible to arrange direct sound arrival time appropriately. Therefore, it is possible to reproduce a sound field with a good left / right balance.
  • the out-of-head localization processing apparatus that localizes the sound image out of the head using headphones as the sound image localization processing apparatus has been described, but this embodiment is not limited to the out-of-head localization processing apparatus. Absent. For example, it may be used for a sound image localization processing device that localizes a sound image by reproducing stereo signals from the speakers 5L and 5R. That is, the present embodiment can be applied to a sound image localization processing device that convolves transfer characteristics with a reproduction signal. For example, it is possible to generate a sound image localization filter in a virtual speaker, a near speaker surround, or the like.
  • the addition processing unit 213 that performs processing corresponding to synchronous addition can function as a measuring device that measures the transfer characteristics of a speaker or a microphone.
  • the installation position of the speaker or microphone is not particularly limited, and for example, measurement can be performed using a speaker or microphone mounted on an earphone or the like.
  • Non-transitory computer readable media include various types of tangible storage media.
  • Examples of non-transitory computer-readable media include magnetic recording media (for example, flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (for example, magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / W, semiconductor memory (for example, mask ROM, PROM (Programmable ROM), EPROM (Erasable PROM), flash ROM, RAM (Random Access Memory)).
  • the program may be supplied to a computer by various types of temporary computer readable media.
  • Examples of transitory computer readable media include electrical signals, optical signals, and electromagnetic waves.
  • the temporary computer-readable medium can supply the program to the computer via a wired communication path such as an electric wire and an optical fiber, or a wireless communication path.
  • the present application can be applied to a sound image localization processing device that localizes a sound image using transfer characteristics.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Stereophonic System (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

適切に測定を行うことができる測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法を提供する。 本実施の形態にかかる測定装置は、収音信号に含まれる正負のピークを検出するピーク検出部(311)と、ピーク検出部(311)で検出された正負のピークでの振幅に基づいて、正又は負の符号を決定する符号決定部(312)と、決定された符号のピークのピーク配列を複数のピーク群に分割するピーク群分割部(313)と、複数のピーク群毎の最大振幅を検出する最大振幅検出部(314)と、最大振幅に基づいた切り出しタイミングで、前記収音信号を切り出して、複数の切り出し信号を生成する信号切り出し部(315)と、複数の切り出し信号を加算する信号加算部(316)を備えたものである。

Description

測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法
 本発明は、測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法に関する。
 音像定位技術として、ヘッドホンを用いて受聴者の頭部の外側に音像を定位させる頭外定位技術がある。頭外定位技術では、ヘッドホンから耳までの特性をキャンセルし、ステレオスピーカから耳までの4本の特性を与えることにより、音像を頭外に定位させている。
 頭外定位再生においては、2チャンネル(以下、chと記載)のスピーカから発した測定信号(インパルス音等)を聴取者本人の耳に設置したマイクロフォン(以下、マイクとする)で録音する。そして、インパルス応答から頭部伝達関数を算出して、フィルタを作成する。作成したフィルタを2chのオーディオ信号に畳み込むことにより、頭外定位再生を実現することができる。
 特許文献1には、個人化された室内インパルス応答のセットを取得する方法が開示されている。特許文献1では、聴取者の各耳の近くにマイクを設置している。そして、スピーカを駆動した時のインパルス音を、左右のマイクが録音する。
特表2008-512015号公報 特許4184420号公報
 従来、スピーカなどの音源が設置された専用の測定室、及び専用の機材を用いて測定が行われていた。しかしながら、昨今のメモリ容量の増大や演算速度の高速化に伴い、受聴者がパーソナルコンピュータ(PC)等を用いて、インパルス応答測定を行うことが可能となっている。受聴者がPC等を用いてインパルス応答測定を行う場合、以下に示す問題点がある。
 インパルス応答測定では、S/N比を向上させるために、同じ条件でのインパルス応答測定を複数回行い、測定された信号を同期加算している(特許文献2)。同期加算を行う場合、各測定において、スピーカから測定信号を出力するタイミングと、マイクが測定信号を収音するタイミングと、を同期させる必要がある。
 一般的なPC用音響デバイスは、入力と出力のクロックが同期している。このため、一旦測定を開始すると、停止するまでデバイスの持つ遅延量は変化しない。つまり、ある信号音(インパルス音)を含む測定信号を出力すると、ある遅延量をもって信号音がマイクで収音される。周期的に信号音を出すようにリピート再生させると、決められた周期で信号音が出力されるのが通常である。
 ところが、安価な音響デバイスを使用すると、周期的に信号音を出力しても、各信号音の遅延量が異なる場合がある。このため、一定の周期で信号音が再生されない、ということが起こる。例えば、マルチタスクの制御が音響デバイス優先となっておらず、他のタスクを実行してから音が出力される理由が考えられる。よって、測定に不可欠な同期加算ができず、正確な伝達特性が測定できないという問題点がある。
 本実施形態は上記の点に鑑みなされたもので、適切に伝達特性を測定することができる測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法を提供することを目的とする。
 本実施形態の一態様にかかる測定装置は、時間間隔を空けて連続する複数の信号音を含む測定信号を出力するスピーカと、前記スピーカから出力された前記測定信号を収音して、収音信号を取得するマイクと、前記収音信号に基づいて、伝達特性を測定する測定部と、を備え、前記測定部は、収音信号に含まれる正負のピークを検出するピーク検出部と、ピーク検出部で検出された前記正負のピークでの振幅に基づいて、正又は負の符号を決定する符号決定部と、決定された符号の前記ピークから構成されるピーク配列を複数のピーク群に分割する分割部と、前記複数のピーク群毎の最大振幅を検出する最大振幅検出部と、前記最大振幅に基づいた切り出しタイミングで、前記収音信号を切り出して、複数の切り出し信号を生成する切り出し部と、前記複数の切り出し信号を加算する信号加算部を備えたものである。
 本実施形態の一態様にかかる測定方法は、スピーカから出力された測定信号をマイクで収音することで伝達特性を測定する測定方法であって、前記スピーカから時間間隔を空けて連続する複数の信号音を含む測定信号を出力するステップと、前記スピーカから出力された前記測定信号をマイクで収音して、収音信号を取得するステップと、前記収音信号に含まれる正負のピークを検出するピーク検出ステップと、ピーク検出部で検出された前記正負のピークでの振幅に基づいて、正又は負の符号を決定する符号決定ステップと、決定された符号の前記ピークから構成されるピーク配列を複数のピーク群に分割する分割ステップと、前記複数のピーク群毎の最大振幅を検出する最大振幅検出ステップと、前記最大振幅に基づいた切り出しタイミングで、前記収音信号を切り出して、複数の切り出し信号を生成する切り出しステップと、前記複数の切り出し信号を加算する信号加算ステップと、を含むものである。
 本実施形態によれば、適切に伝達特性を測定することができる測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法を提供することができる。
本実施の形態に係る頭外定位処理装置を示すブロック図である。 フィルタを生成するフィルタ生成装置の構成を示す図である。 測定例1の伝達特性Hls、Hloを示す図である。 測定例1の伝達特性Hrs、Hroを示す図である。 測定例2の伝達特性Hls、Hloを示す図である。 測定例2の伝達特性Hrs、Hroを示す図である。 測定例3の伝達特性Hls、Hloを示す図である。 測定例3の伝達特性Hrs、Hroを示す図である。 測定例4の伝達特性Hls、Hloを示す図である。 測定例4の伝達特性Hrs、Hroを示す図である。 測定例5の伝達特性Hls、Hloを示す図である。 測定例5の伝達特性Hrs、Hroを示す図である。 測定例4において、切り出された伝達特性Hls、Hrsを示す図である。 測定例5において、切り出された伝達特性Hls、Hrsを示す図である。 フィルタ生成装置の構成を示す制御ブロック図である。 加算処理部の構成を示すブロック図である。 加算処理部での加算処理を示すフローチャートである。 加算処理部での加算処理を示すフローチャートである。 加算処理部での加算処理を説明するための信号波形図である。 加算処理部での加算処理を説明するための信号波形図である。 加算処理部での加算処理を説明するための信号波形図である。 加算処理部での加算処理を説明するための信号波形図である。 加算処理部での加算処理を説明するための信号波形図である。 加算処理部での加算処理を説明するための信号波形図である。 フィルタの生成方法を示すフローチャートである。 直接音探索処理を示すフローチャートである。 図26で示した処理の詳細な一例を示すフローチャートである。 相互相関係数を算出するための処理を説明するための図である。 音響デバイスによる遅延を説明するための図である。 音響デバイスによる遅延を説明するための図である。 音響デバイスによる遅延を説明するための図である。
 本実施の形態では、測定装置によって、スピーカからマイクまでの伝達特性を測定している。そして、測定装置で測定された伝達特性に基づいて、フィルタ生成装置がフィルタを生成している。
 本実施の形態にかかるフィルタ生成装置で生成したフィルタを用いた音像定位処理の概要について説明する。ここでは、音像定位処理装置の一例である頭外定位処理について説明する。本実施形態にかかる頭外定位処理は、個人の空間音響伝達特性(空間音響伝達関数ともいう)と外耳道伝達特性(外耳道伝達関数ともいう)を用いて頭外定位処理を行うものである。本実施形態では、スピーカから聴取者の耳までの空間音響伝達特性、及びヘッドホンを装着した状態での外耳道伝達特性を用いて頭外定位処理を実現している。
 本実施の形態では、ヘッドホン装着状態でのヘッドホンスピーカユニットから外耳道入口までの特性である外耳道伝達特性が利用されている。そして、外耳道伝達特性の逆特性(外耳道補正関数ともいう)を用いて畳み込み処理を行うことで、外耳道伝達特性をキャンセルすることができる。
 本実施の形態にかかる頭外定位処理装置は、パーソナルコンピュータ、スマートホン、タブレットPCなどの情報処理装置であり、プロセッサ等の処理手段、メモリやハードディスクなどの記憶手段、液晶モニタ等の表示手段、タッチパネル、ボタン、キーボード、マウスなどの入力手段、ヘッドホン又はイヤホンを有する出力手段を備えている。
実施の形態1.
 本実施の形態にかかる音場再生装置の一例である頭外定位処理装置100を図1に示す。図1は、頭外定位処理装置のブロック図である。頭外定位処理装置100は、ヘッドホン43を装着するユーザUに対して音場を再生する。そのため、頭外定位処理装置100は、LchとRchのステレオ入力信号XL、XRについて、音像定位処理を行う。LchとRchのステレオ入力信号XL、XRは、CD(Compact Disc)プレーヤなどから出力されるオーディオ再生信号である。なお、頭外定位処理装置100は、物理的に単一な装置に限られるものではなく、一部の処理が異なる装置で行われてもよい。例えば、一部の処理がパソコンなどにより行われ、残りの処理がヘッドホン43に内蔵されたDSP(Digital Signal Processor)などにより行われてもよい。
 頭外定位処理装置100は、頭外定位処理部10と、フィルタ部41、フィルタ部42、及びヘッドホン43を備えている。
 頭外定位処理部10は、畳み込み演算部11~12、21~22、及び加算器24、25を備えている。畳み込み演算部11~12、21~22は、空間音響伝達特性を用いた畳み込み処理を行う。頭外定位処理部10には、CDプレーヤなどからのステレオ入力信号XL、XRが入力される。頭外定位処理部10には、空間音響伝達特性が設定されている。頭外定位処理部10は、各chのステレオ入力信号XL、XRに対し、空間音響伝達特性を畳み込む。空間音響伝達特性はユーザU本人の頭部や耳介で測定した頭部伝達関数HRTFでもよいし、ダミーヘッドまたは第三者の頭部伝達関数であってもよい。これらの伝達特性は、その場で測定してもよいし、予め用意してもよい。
 空間音響伝達特性は、4つの伝達特性Hls、Hlo、Hro、Hrsを有している。4つの伝達特性は、後述するフィルタ生成装置を用いて求めることができる。
 そして、畳み込み演算部11は、Lchのステレオ入力信号XLに対して伝達特性Hlsを畳み込む。畳み込み演算部11は、畳み込み演算データを加算器24に出力する。畳み込み演算部21は、Rchのステレオ入力信号XRに対して伝達特性Hroを畳み込む。畳み込み演算部21は、畳み込み演算データを加算器24に出力する。加算器24は2つの畳み込み演算データを加算して、フィルタ部41に出力する。
 畳み込み演算部12は、Lchのステレオ入力信号XLに対して伝達特性Hloを畳み込む。畳み込み演算部12は、畳み込み演算データを、加算器25に出力する。畳み込み演算部22は、Rchのステレオ入力信号XRに対して伝達特性Hrsを畳み込む。畳み込み演算部22は、畳み込み演算データを、加算器25に出力する。加算器25は2つの畳み込み演算データを加算して、フィルタ部42に出力する。
 フィルタ部41、42には外耳道伝達特性をキャンセルする逆フィルタが設定されている。そして、頭外定位処理部10での処理が施された再生信号に逆フィルタを畳み込む。フィルタ部41で加算器24からのLch信号に対して、逆フィルタを畳み込む。同様に、フィルタ部42は加算器25からのRch信号に対して逆フィルタを畳み込む。逆フィルタは、ヘッドホン43を装着した場合に、ヘッドホンユニットからマイクまでの特性をキャンセルする。すなわち、外耳道入口にマイクを配置したとき、ユーザ各人の外耳道入口とヘッドホンの再生ユニット間、あるいは鼓膜とヘッドホンの再生ユニット間の伝達特性をキャンセルする。逆フィルタは、ユーザU本人の耳介で外耳道伝達関数をその場で測定した結果から算出してもよいし、ダミーヘッド等の任意の外耳道伝達関数から算出したヘッドホン特性の逆フィルタを予め用意してもよい。
 フィルタ部41は、補正されたLch信号をヘッドホン43の左ユニット43Lに出力する。フィルタ部42は、補正されたRch信号をヘッドホン43の右ユニット43Rに出力する。ユーザUは、ヘッドホン43を装着している。ヘッドホン43は、Lch信号とRch信号をユーザUに向けて出力する。これにより、ユーザUの頭外に定位された音像を再生することができる。
(フィルタ生成装置)
 図2を用いて、空間音響伝達特性(以下、伝達特性とする)を測定して、フィルタを生成するフィルタ生成装置について説明する。図2は、フィルタ生成装置200の測定構成を模式的に示す図である。なお、フィルタ生成装置200は、図1に示す頭外定位処理装置100と共通の装置であってもよい。あるいは、フィルタ生成装置200の一部又は全部が頭外定位処理装置100と異なる装置となっていてもよい。なお、フィルタ生成装置200は、後述するように、伝達特性の測定装置、あるいは測定部としても機能する。
 図2に示すように、フィルタ生成装置200は、ステレオスピーカ5とステレオマイク2を有している。ステレオスピーカ5が測定環境に設置されている。測定環境は、音響特性が考慮されていない環境(例えば部屋の形状が左右非対称等)や、ノイズとなる環境音が発生している環境となっている。より具体的には、測定環境は、ユーザUの自宅の部屋やオーディオシステムの販売店舗やショールーム等でもよい。また、測定環境が音響特性を考慮していないレイアウトとなっていることがある。自宅の部屋では、家具などが左右非対称に配置されていることもある。スピーカが部屋に対して左右対称に配置されていないこともある。さらに、窓、壁面、床面、天井面からの反射による不要な残響が発生することもある。本実施の形態では、理想的ではない測定環境であっても、適切な伝達特性を測定するための処理を行っている。
 本実施の形態では、フィルタ生成装置200の処理装置(図2では不図示)が、適切な伝達特性を測定するための演算処理を行っている。処理装置は、例えば、パーソナルコンピュータ(PC)、タブレット端末、スマートホン等である。
 ステレオスピーカ5は、左スピーカ5Lと右スピーカ5Rを備えている。例えば、受聴者1の前方に左スピーカ5Lと右スピーカ5Rが設置されている。左スピーカ5Lと右スピーカ5Rは、インパルス応答測定を行うためのインパルス音等を出力する。
 ステレオマイク2は、左のマイク2Lと右のマイク2Rを有している。左のマイク2Lは、受聴者1の左耳9Lに設置され、右のマイク2Rは、受聴者1の右耳9Rに設置されている。具体的には、左耳9L、右耳9Rの外耳道入口又は鼓膜位置にマイク2L、2Rを設置することが好ましい。マイク2L、2Rは、ステレオスピーカ5から出力された測定信号を収音して、収音信号を取得する。マイク2L、2Rは収音信号を後述するフィルタ生成装置200に出力する。受聴者1は、人でもよく、ダミーヘッドでもよい。すなわち、本実施形態において、受聴者1は人だけでなく、ダミーヘッドを含む概念である。
 上記のように、左右のスピーカ5L、5Rで出力されたインパルス音をマイク2L、2Rで測定することでインパルス応答が測定される。フィルタ生成装置200は、インパルス応答測定に基づいて取得した収音信号をメモリなどに記憶する。これにより、左スピーカ5Lと左マイク2Lとの間の伝達特性Hls、左スピーカ5Lと右マイク2Rとの間の伝達特性Hlo、右スピーカ5Lと左マイク2Lとの間の伝達特性Hro、右スピーカ5Rと右マイク2Rとの間の伝達特性Hrsが測定される。すなわち、左スピーカ5Lから出力された測定信号を左マイク2Lが収音することで、伝達特性Hlsが取得される。左スピーカ5Lから出力された測定信号を右マイク2Rが収音することで、伝達特性Hloが取得される。右スピーカ5Rから出力された測定信号を左マイク2Lが収音することで、伝達特性Hroが取得される。右スピーカ5Rから出力された測定信号を右マイク2Rが収音することで、伝達特性Hrsが取得される。
 そして、フィルタ生成装置200は、収音信号に基づいて、左右のスピーカ5L、5Rから左右のマイク2L、2Rまでの伝達特性Hls~Hrsに応じたフィルタを生成する。具体的には、フィルタ生成装置200は、伝達特性Hls~Hrsを所定のフィルタ長で切り出して、頭外定位処理部10の畳み込み演算に用いられるフィルタとして生成する。図1で示したように、頭外定位処理装置100が、左右のスピーカ5L、5Rと左右のマイク2L、2Rとの間の伝達特性Hls~Hrsを用いて頭外定位処理を行う。すなわち、伝達特性をオーディオ再生信号に畳み込むことにより、頭外定位処理を行う。
 ここで、様々な測定環境で伝達特性を測定した場合に生じる問題について説明する。まず、理想的な測定環境において、インパルス応答測定した場合の収音信号の信号波形を測定例1として、図3、図4に示す。なお、図3、図4、及び後述の図に示す信号波形において、横軸がサンプル数であり、縦軸が振幅となっている。なお、サンプル数は測定開始からの時間に対応するものであり、測定開始タイミングを0としている。振幅は、マイク2L、2Rで取得した収音信号の信号強度、あるいは音圧に対応するものであり、正または負の符号を有する。
 測定例1では、反響がない無響室に耳介のない人頭とみなした剛球を配置して、測定を行っている。測定環境となる無響室において、剛球の前方には、左右対称に左右のスピーカ5L、5Rが配置されている。また、剛球に対して人頭の耳に相当する部分に左右対称にマイクを設置している。
 このような理想的な測定環境でインパルス測定を行った場合、図3、図4に示すような伝達特性Hls、Hlo、Hro、Hrsが測定される。図3は、測定例1の伝達特性Hls、Hlo、すなわち、左スピーカ5Lを駆動した時の測定結果を示している。図4は、測定例1の伝達特性Hro、Hrs、すなわち右スピーカ5Rを駆動した時の測定結果を示している。図3の伝達特性Hlsと、図4の伝達特性Hrsとは、略同じ波形となっている。すなわち、伝達特性Hlsと、伝達特性Hrsとでは、ほぼ同じタイミングにほぼ同じ大きさのピークが現われる。すなわち、左スピーカ5Lから左マイク2Lまでのインパルス音の到達時刻と、右スピーカ5Rから右マイク2Rまでのインパルス音の到達時刻が一致している。
 実際の測定が行われる測定環境で測定した伝達特性を測定例2、3として、図5~図8に示す。図5は、測定例2の伝達特性Hls、Hloを示し、図6は、測定例2の伝達特性のHro、Hrsを示している。図7は、測定例3の伝達特性Hls、Hloを示し、図8は、測定例3の伝達特性Hro、Hrsを示している。測定例2、3はそれぞれ異なる測定環境で行われた測定であり、受聴者周辺の物や、壁面、天井、床からの反響がある測定環境で行われている。
 実際の測定環境が、受聴者1の自宅などの場合、パーソナルコンピュータやスマートホン等によって、ステレオスピーカ5からインパルス音を発生させる。すなわち、パーソナルコンピュータやスマートホン等の汎用の情報処理装置が音響デバイスとして用いられる。このような場合、音響デバイスの遅延量が測定毎に異なるおそれがある。例えば、音響デバイスのプロセッサでの処理や、インターフェースでの処理により信号遅延が生じる場合がある。
 よって、ステレオスピーカ5の中央に剛球を設置したとしても、音響デバイスでの遅延により、左スピーカ5Lの駆動時と、右スピーカ5Rの駆動時で、応答位置(ピーク位置)が異なる。このような場合、測定例2、3に示すように、最大振幅(絶対値が最大となる振幅)が同じ時刻となるように、伝達特性を切り出している。例えば、測定例2では、伝達特性Hls、Hrsの最大振幅Aが30サンプル目となるように、伝達特性Hls、Hlo、Hro、Hrsを切り出している。なお、測定例2で、最大振幅は、負のピークとなっている(図5、図6のA)。
 しかしながら、受聴者1の左右の耳介形状が異なる場合がある。この場合、受聴者1が左右のスピーカ5L、5Rに対して左右対称な位置にいたとしても、左右の伝達特性が大きく異なってしまう。また、測定環境が左右非対称である場合も、左右の伝達特性が大きく異なってしまう。
 さらに、実際の測定環境において測定を行う場合、図9、図10に示す測定例4のように、最大振幅を取るピークが2つに割れてしまうことがある。測定例4では、図10に示すように伝達特性Hrsの最大振幅Aが2つに割れている。
 また、図11、図12の測定例5のように、左右の伝達特性Hls、Hrsで、最大振幅を取るピークの符号が異なる場合がある。測定例5では、伝達特性Hlsの最大振幅Aは正のピークとなり(図11)、伝達特性Hrsの最大振幅Aは負のピークとなっている(図12)。
 このように、左右の伝達特性Hls、Hrsの信号波形が大きく異なると、左右のスピーカ5からの音の到達時間がずれてしまう。よって、頭外定位処理部10において畳み込み演算を行った場合、左右のバランスの良い音場を得ることができない場合がある。例えば、測定例4、測定例5の伝達特性Hls、Hrsが最大振幅を示すサンプル位置(または時刻)で揃えて切り出した伝達特性を図13、図14に示す。図13は、測定例4の伝達特性Hls、Hrsを示し、図14は、測定例5の伝達特性Hls、Hrsを示している。
 図13、図14に示すように、左右の伝達特性Hls、Hrsの波形の形状が大きく異なる場合、左右のバランスの良い音場を得ることができなってしまうおそれがある。例えば、センターに定位すべきボーカル音像が左右に偏ってしまう。このように、異なるインパルス応答測定で得られた伝達特性から適切に切り出すことができない場合がある。すなわち、適切にフィルタを生成することができない場合がある。そこで、本実施の形態では、フィルタ生成装置200が以下の処理を行うことで適切な切り出しを行っている。
 フィルタ生成装置200の処理装置210の構成について、図15を用いて、説明する。図15は、処理装置210の構成を示すブロック図である。処理装置210は、測定信号生成部211、収音信号取得部212、加算処理部213、直接音到達時刻探索部214、左右直接音判定部215、エラー訂正部216、及び波形切り出し部217を備えている。例えば、処理装置210は、パーソナルコンピュータ、スマートホン、タブレット端末などの情報処理装置であり、音声入力インターフェース(IF)と音声出力インターフェースを備えている。すなわち、処理装置210は、ステレオマイク2、及びステレオスピーカ5に接続される入出力端子を有する音響デバイスである。
 測定信号生成部211は、D/A変換器やアンプなどを備えており、測定信号を生成する。測定信号生成部211は、生成した測定信号をステレオスピーカ5にそれぞれ出力する。左スピーカ5Lと右スピーカ5Rがそれぞれ伝達特性を測定するための測定信号を出力する。左スピーカ5Lによるインパルス応答測定と、右スピーカ5Rによるインパルス応答測定がそれぞれ行われる。
 ステレオマイク2の左マイク2L、右マイク2Rがそれぞれ測定信号を収音し、収音信号を処理装置210に出力する。収音信号取得部212は、左マイク2L、右マイク2Rからの収音信号を取得する。なお、収音信号取得部212は、A/D変換器、及びアンプなどを有しており、左マイク2L、右マイク2Rからの収音信号をA/D変換、増幅などしてもよい。収音信号取得部212は、取得した収音信号を加算処理部213に出力する。
 左スピーカ5Lの駆動により、左スピーカ5Lと左マイク2Lとの間の伝達特性Hlsに応じた第1の収音信号と、左スピーカ5Lと右マイク2Rとの間の伝達特性Hloに応じた第2の収音信号が同時に取得される。また、右スピーカ5Rの駆動により、右スピーカ5Rと左マイク2Lとの間の伝達特性Hroに応じた第3の収音信号と、右スピーカ5Rと右マイク2Rとの間の伝達特性Hrsに応じた第4の収音信号が同時に取得される。
 加算処理部213は第1~第4の収音信号のそれぞれに対して加算処理する。加算処理は、複数回のインパルス応答測定により取得された収音信号を切り出して、加算する処理である。加算処理を行うことで、突発的な騒音の影響を軽減することができる。例えば、加算回数は30回とすることができる。加算処理部213は収音信号を分割して、加算することで、伝達特性Hls、Hlo、Hro、Hrsを取得する。
 具体的には、左スピーカ5Lからインパルス音の複数回連続して出力した時の測定信号を左右のマイク2L、2Rが収音する。加算処理部213は、マイク2Lで収音した収音信号を切り出して加算し、加算回数で除算する。これにより、伝達特性Hlsが求められる。さらに、加算処理部213は、マイク2Rで収音した収音信号を切り出して加算し、加算回数で除算する。これにより、伝達特性Hloが求められる。
 同様に、右スピーカ5Rからインパルス音の複数回連続して出力した時の収音信号を左右のマイク2L、2Rが収音する。そして、加算処理部213は、マイク2Lで収音した収音信号を切り出して加算し、加算回数で除算する。これにより、伝達特性Hroが求められる。さらに、加算処理部213は、マイク2Rで収音した収音信号を切り出して加算し、加算回数で除算する。これにより、伝達特性Hrsが求められる。
 ここで、スピーカ5L、5Rから出力される測定信号は、時間間隔を空けて連続する複数の信号音を含んでいる。信号音は、例えば、インパルス音である。具体的には、受聴者1からの測定開始入力を受け付けると、左スピーカ5Lが30回のインパルス音を含む測定信号を出力する。マイク2L,2Rは、中断することなく、測定信号を収音する。すなわち、マイク2L、2Rは30回のインパルス音を含む測定信号を連続して収音する。測定信号は、インパルス音に限らず、例えばTSP(Time Stretched Pulse)音等の他の信号でもよい。
 同様に受聴者1からの測定開始入力を受け付けると、右スピーカ5Rが30回のインパルス音を含む測定信号を出力する。マイク2L、2Rは、中断することなく、測定信号を収音する。すなわち、マイク2L、2Rは30回のインパルス音を含む測定信号を連続して収音する。
 マイク2L、2Rは、30回のインパルス応答を含む収音信号を取得して、収音信号取得部212に出力する。収音信号取得部212は、収音信号に対してA/D変換等を施して、加算処理部213に出力する。よって、加算処理部213に入力される収音信号には、30回分のインパルス音を含んでいる。すなわち、収音信号では、30回のインパルス応答が時間間隔を空けて、連続して出現している。
 なお、測定信号に含まれるインパルス音の回数は30回に限られるものでなく、2回以上であればよい。測定信号に含まれるインパルス音の回数に応じて、加算、及び除算を行えばよい。また、測定信号に含まれる信号音は、インパルス音に限られるものではない。測定信号におけるインパルス音の時間間隔は、測定環境に応じて設定しておけばよい。すなわち、次のインパルス音が出力される前に、残響等が一定レベル以下になるような時間間隔が予め設定されていればよい。
 本実施の形態では、測定信号生成部211が、複数のインパルス音を含む測定信号を生成している。そして、スピーカ5は、30回のインパルス音を含む測定信号を、中断することなく出力する。すなわち、測定を開始すると、30回のインパルス音が時間間隔を空けて連続して出力される。そして、収音信号取得部212は、30回のインパルス応答を含む収音信号を加算処理部213に出力する。
 そして、加算処理部213は、収音信号を切り出して、30個の切り出し信号を生成する。加算処理部213は、収音信号の一部のサンプルを切り出して、切り出し信号とする。各切り出し信号には、1回のインパルス応答が含まれている。加算処理部213は、切り出し信号のピーク位置を合わせて加算して、加算回数(30回)で除算する。このようにすることで、同期加算に相当する加算処理が行われるため、収音信号のS/N比を高くすることができる。よって、突発的なノイズの影響を軽減することができる。
 以下、本実施の形態の特徴の一つである加算処理について説明する。まず、加算処理部213の構成について、図16を用いて説明する。図16は、加算処理部213の構成を示すブロック図である。加算処理部213は、ピーク検出部311と、符号決定部312と、ピーク群分割部313と、最大振幅検出部314と、信号切り出し部315と、信号加算部316とを備えている。
 ピーク検出部311は収音信号に含まれる正負のピークを検出する。すなわち、ピーク検出部311は正のピークと、負のピークとを検出する。具体的には、ピーク検出部311は、収音信号から、全てのピークの振幅値と時刻を抽出する。ここで、ピークの時刻は、サンプル数iによって示されている。すなわち、マイク2の収音開始時刻をi=0として、サンプル数i(iは0以上の整数)で時刻を示すことができる。
 符号決定部312は、収音信号に含まれるピークの振幅に基づいて、正または負の符号を決定する。具体的には、符号決定部312は、抽出された正のピークの最大振幅と、負のピークの最大振幅を求める。換言すると、符号決定部312は、収音信号の振幅の絶対値の最大値が、正のピークであるか、負のピークであるかを判別している。符号決定部312は、正のピークの最大振幅と負のピークの最大振幅の絶対値とを比較して、大きい方の符号を選択する。
 正のピークの最大振幅が負のピークの最大振幅の絶対値よりも大きい場合、符号決定部312は、着目する符号を正とする。反対に、正のピークの最大振幅が負のピークの最大振幅の絶対値よりも小さい場合、符号決定部312は、着目する符号を負とする。もちろん、符号決定部312は、最大振幅の比較以外の方法によって、符号を決定してもよい。例えば、所定の振幅値以上のピークの数や、複数のピークの平均値等を用いて、着目する符号を決定してもよい。
 そして、ピーク群分割部313は、決定された符号のピークから構成されるピーク配列を複数のピーク群に分割する。具体的には、ピーク群分割部313は、着目した符号のピークを抽出して、ピーク配列を求める。ピーク配列では、ピーク時間とピークの振幅の絶対値とが対応付けられている。さらに、ピーク群分割部313は、ピーク振幅の絶対値が、閾値未満のピークをピーク配列から除去して、ピーク配列Thdataを生成する。
 そして、ピーク群分割部313は、ピークの振幅の絶対値が閾値以上のピークから、ピーク群の先頭ピークを求める。ピーク群分割部313は、ピーク配列Thdataにおいて、最も早い時刻のピーク、すなわち、最も小さいインデックスiのピークを先頭ピークとする。そして、先頭ピークから所定の時間に含まれるピークを1つのピーク群と設定する。これにより、1つ目のピーク群を求めることができる。
 同様に、ピーク群分割部313は、1番目のピーク群の後において、最も早い時刻のピーク、すなわち、最も小さいインデックスiのピークを先頭ピークとする。そして、ピーク群分割部313は、先頭ピークから所定の時間に含まれるピークを1つのピーク群とする。これにより、1つ目のピーク群と2つ目のピーク群を求めることができる。ピーク群分割部313は、この処理を繰り返すことで30個のピーク群を求める。
 最大振幅検出部314は、複数のピーク群毎の最大振幅を検出する。すなわち、最大振幅検出部314は、各ピーク群における最大振幅を検出する。なお、着目する符号が負の場合、最大振幅は、振幅の絶対値が最大となるピークに対応する。
 信号切り出し部315は、最大振幅に基づいた切り出しタイミングで、収音信号を切り出して、複数の切り出し信号を生成する。ここでは、30個の切り出し信号が生成される。なお、複数の切り出し信号は、同じ数のサンプルから構成されている。例えば、切り出し信号は、最大振幅のサンプル数から100サンプル前を先頭として、所定数のサンプルを含む信号となる。
 信号加算部316は、信号切り出し部315が切り出した切り出し信号を加算し、加算回数で割る。信号加算部316は、上記のように各切り出し信号の最大振幅が一致した状態で、切り出し信号を加算している。すなわち、切り出し信号のタイミングを揃えて、切り出し信号を加算している。これにより、30回分のインパルス応答測定を正確に平均化することができる。例えば、加算時に、正のピークと負のピークが打ち消し合うことを防ぐことができる。よって、適切に伝達特性を測定することができる。
 なお、上記の加算処理は、伝達特性Hlo、Hls、Hro、Hrsのそれぞれに対して実行されてもよい。あるいは、伝達特性Hloの信号加算で求められた切り出したタイミングで、伝達特性Hlsの信号加算での切り出しタイミングを設定してもよい。同様に、伝達特性Hrsの信号加算で求められた切り出したタイミングで、伝達特性Hroの信号加算での切り出しタイミングを設定してもよい。
 以下、加算処理部213における加算処理について、図17~図24を用いて詳細に説明する。図17、図18は、加算処理部213での加算処理を示すフローチャートである。図19~図24は、加算処理を説明するための信号波形図である。図19~図24において、横軸がサンプル数(index)、縦軸が振幅(amp)となっている。図19~図24では、1回目~3回目のインパルス音による応答信号波形、又はそのピーク配列が示されている。
 まず、左スピーカ5Lから測定信号が出力されたか否かをピーク検出部311が判定する(S401)。左スピーカ5Lから測定信号が出力されている場合(S401のYES)、ピーク検出部311は収音信号dataLに基づいて、正ピーク配列pdataと負ピーク配列mdataを生成する(S402)。なお、正ピーク配列pdataは、正の振幅のピークのみからなる配列である。負ピーク配列mdataは負の振幅のピークのみからなる配列である。
 具体的には、ピーク検出部311が、全収音時間分の収音信号dataLにおいて、正振幅を有する正のピークと負振幅を有する負のピークとを全て求める。そして、ピーク検出部311は、収音信号dataLの全体に対して、正振幅では、振幅の値を残し、負振幅では、振幅の値を0に置き換える。このようにすることで、正ピーク配列pdataが求められる。図24に示すような収音信号dataLが取得された場合、図19に示すような正ピーク配列が得られる。
 また、ピーク検出部311は、収音信号dataLの全ピークに対して、正振幅では、振幅の値を0に置き換え、負振幅は振幅の値を絶対値に置き換える。このようにすることで、負ピーク配列mdataが求められる。
 左スピーカ5Lから測定信号が出力されていない場合(S401のNO)、ステップS402の処理と同様に、ピーク検出部311が、収音信号dataRに基づいて、収音信号dataRの正ピーク配列pdataと、負ピーク配列mdataとを求める。(S403)。なお、収音信号dataRは、右スピーカ5Lから測定信号を出力した場合に取得された収音信号である。すなわち、収音信号dataRについてもステップS402の処理と同様の処理を行うことで、正ピーク配列pdataと、負ピーク配列mdataが求められる。
 そして、符号決定部312が、正ピーク配列pdataの最大値pmaxが、負ピーク配列mdataの最大値mmaxよりも大きいか否かを判定する(S404)。すなわち、符号決定部312は最大値pmaxと最大値mmaxとを比較する。符号決定部312は、最大値pmaxと最大値mmaxとの比較結果に応じて、着目する符号を決定する。
 例えば、正ピーク配列pdataの最大値pmaxが、負ピーク配列mdataの最大値mmaxよりも大きい場合(S404のYES)、ピーク群分割部313が正ピーク配列pdataから、ピーク配列Thdataを生成する(S406)。すなわち、符号決定部312は、最大値pmaxが最大値mmaxよりも大きいため、正の符号を着目する符号として決定する。そして、正ピーク配列pdataに含まれる振幅を閾値と比較して、ピーク配列Thdataを生成する。具体的には、ピーク群分割部313は、正ピーク配列pdataに含まれるピークの振幅が閾値以上であれば、振幅の値を残し、振幅が閾値未満であれば振幅の値を0に置き換える。このようにして、ピーク配列Thdataが生成される。
 なお、閾値は、pmaxに応じて設定することが好ましく、ここでは、閾値をpmax*0.8としている。図20は、正ピーク配列pdataに対する閾値をpmax*0.8とした場合を示している。そして、ピーク群分割部313が閾値(pmax*0.8)よりも小さいピークでの振幅の値を0に置き換えると図21のようになる。
 正ピーク配列pdataの最大値pmaxが、負ピーク配列mdataの最大値mmax以下の場合、(S404のNO)、ピーク群分割部313は、ステップS405と同様に、負ピーク配列mdataから、ピーク配列Thdataを生成する(S406)。すなわち、符号決定部312は、最大値mmaxが最大値pmaxよりも大きいため、負の符号を着目する符号として決定する。そして、ピーク群分割部313が負ピーク配列mdataに含まれる振幅を閾値と比較し、ピーク配列Thdataを生成する。ピーク群分割部313は、負ピーク配列mdataに含まれるピークの振幅が閾値以上であれば、振幅の値を残し、振幅が閾値未満であれば振幅の値を0に置き換える。
 このようにして、ピーク配列Thdataが生成される。なお、閾値は、mmaxに応じて設定することが好ましく、ここでは、閾値をmmax*0.8としている。このように、符号決定部312において決定された符号のピーク配列に基づいて、ピーク群分割部313がピーク配列Thdataを生成する。
 ステップS405又はステップS406においてピーク配列Thdataを生成したら、ピーク群分割部313は、サンプル位置i=0,ピーク群の順序j=0とする(S407)。そして、ピーク群分割部313がピーク配列Thdataを複数のピーク群に分割して、最大振幅検出部314が各ピーク群の最大振幅を検出する(S408)。
 具体的には、iをインクリメントしていき、Thdata[i]>0となったiをstartidxとし、endidx=startidx+HRTF_Lengthとし、startidx~endidxの区間において、最大振幅のインデックスidxを、maxdata_idx[j]とする(図22参照)。なお、図22ではj=0となっている。そして、startidxからframesize*0.5までのThdataを0と置き換える。これにより、ピーク配列Thdataが図23のようになる。
 framesizeは、伝達特性のフレームサイズに対応している。具体的には、framesizeは、後述する切り出し信号に含まれるサンプル数となる。framesizeは、2つのインパルス音の時間間隔に相当するサンプル数よりも少なくなっていてもよい。framesize*0.5は、HRTF_Length以上となっている。HRTF_Lengthは、例えば256サンプルである。
 このように、ピーク群分割部313は、i=0からiを徐々に増加させていくことで、1番目のピーク群(以下、第1のピーク群)の先頭ピークを求める。ピーク群分割部313は、先頭ピークから所定の期間HRTF_Lengthに含まれる複数のピークを第1のピーク群とする。そして、最大振幅検出部314は、第1のピーク群の中で最も大きい振幅をmaxdata_idx[0]とする。すなわち、最大振幅検出部314は、1回目のインパルス音の応答に基づく、最大振幅maxdataを検出する。最大振幅検出部314が最大振幅を検出したら、ピーク群分割部313は、startidxからframesize*0.5までのThdataを0と置き換える。これにより、第1のピーク群に含まれていたピークがピーク配列Thdataから取り除かれる。なお、第1のピーク群は、j=0である。
 次に、ピーク群分割部313はiがidx_lastよりも小さいか否かを判定する(S409)。idx_lastは、ピーク配列Thdataの最後のインデックス、すなわち、収音信号の収音終了時刻におけるインデックスである。よって、ピーク群分割部313はピーク配列Thdataの全体を加算回数分のピーク群に分割したか否かを判定する。iがidx_lastよりも小さい場合(S409のYES)。i=i+1、j=j+1として(S410)、ステップS408に戻る。
 ステップS408に戻ると、ピーク群分割部313は、i=startidx+1からiを徐々に増加させていくことで、2番目のピーク群(以下、第2のピーク群)の先頭ピークを求める。そして、ピーク群分割部313は、先頭ピークから期間HRTF_Lengthに含まれる複数のピークを第2のピーク群とする。最大振幅検出部314は、第2のピーク群の中で最も大きい振幅をmaxdata_idx[1]とする(図23参照)。最大振幅検出部314は、2回目のインパルス音の応答に基づく、最大の振幅を検出する。なお、図23ではj=1となっている。
 最大振幅検出部314が最大振幅を検出したら、ピーク群分割部313は、startidxからframesize*0.5までのThdataを0と置き換える。これにより、第2のピーク群に含まれていたピークがピーク配列Thdataから取り除かれる。framesize*0.5は、HRTF_Length以上となっているため、第1のピーク群に含まれるピークは第2のピーク群に含まれない。
 そして、iがidx_lastに到達するまで、ピーク群分割部313、及び最大振幅検出部314が上記の処理を繰り返す。すなわち、ピーク群分割部313は、各ピーク群の先頭ピークを検出したら、先頭ピークから所定の期間HRTF_Lengthに含まれる複数のピークを1つのピーク群とする。
 最大振幅検出部314がピーク群の最大振幅を求めたら、ピーク群分割部313は、先頭ピークからframesize*0.5にあるThdataを0に置き換える。このようにすることで、ピーク群分割部313がピーク配列Thdataを加算回数分のピーク群に分割するとともに、最大振幅検出部314が各ピーク群の最大振幅を求める。ここで、加算回数は、測定信号に含まれるインパルス音の数であり、例えば30である。ピーク群分割部313は、ピーク配列Thdataを30個のピーク群に分割する。それぞれのピーク群は、先頭ピークから期間HRTF_Lengthに含まれる複数のピークから構成されている。
 各インパルス応答の後半では、振幅減衰によって、ピーク配列Thdataが0になりやすい。すなわち、各インパルス応答の後半では、振幅が減衰するため、正ピーク配列pdata、又は負ピーク配列mdataが閾値未満となりやすい。よって、閾値未満のピークを0としたピーク配列Thdataにおいて、一定程度0が連続する区間をピーク群の境界として設定する。すなわち、ピーク群分割部313は、ピークの振幅の絶対値が閾値以上のピークが一定期間以上存在しない箇所を、複数のピーク群の境界として設定する。このようにすることで、適切に各インパルス応答の境界を適切に設定することができる。
 そして、iがidx_last以上となったら、(S409のNO)、信号切り出し部315がmaxdata_idx[j]にオフセットを与えて収音信号を切り出し、信号加算部316が加算回数分の切り出し信号を加算する。(S411)。オフセットが、例えば-100サンプルであるとすると、maxdata_idx[j]-100が切り出し開始時刻となる。そして、信号切り出し部315が、切り出し開始時刻からframesize分の振幅を切り出すことで、1つの切り出し信号が生成される。信号切り出し部315は、maxdata_idx[j]のそれぞれに対して、切り出し信号を生成する。
 信号加算部316は、加算回数分の切り出し信号を加算する。具体的には、サンプル位置i=0、ピーク群の順序j=0を初期値として、iがframesize未満の範囲でiをインクリメントし、各i、jの値において、dataL[i]=dataL[i]+dataL[max_data_idx[j]+OFFSET+i]の処理を行う。そして、jが加算回数未満の範囲でjをインクリメントして同様の処理を行う。右の収音信号の場合も同様に、dataR[i]=dataR[i]+dataR[max_data_idx[j]+OFFSET+i]の処理を行う。
 このように、最大振幅のインデックスmaxdata_idx[j]にオフセットを与えたインデックスが切り出し開始時刻となっている。このようにすることで、ピーク群の先頭ピークが最大振幅でない場合でも、適切な切り出しタイミングを設定することができる。
 そして、信号切り出し部315は、切り出し開始時刻からframesize分のサンプルを切り出して、切り出し信号とする。これにより、図24に示すように、一定のframesizeで切り出された切り出し信号が生成される。図24では、1回目のインパルス音を収音した切り出し信号(第1の切り出し信号)と、2回目のインパルス音を収音した切り出し信号(第2の切り出し信号)が示されている。
 上記したように信号加算部316は、加算回数分の切り出し信号を加算する。そして、信号加算部316は、加算回数分の切り出し信号が加算された加算信号を加算回数で割る(S412)。具体的には、サンプル位置i=0を初期として、iがframesize未満の範囲でiをインクリメントし、各iの値において、dataL[i]=dataL[i]/total_times、dataR[i]=dataR[i]/total_timesの処理を行う。ここで、total_timesは加算回数である。
 そして、信号加算部316が、右スピーカ5Rでの収音信号に対して、加算処理が終了したか否かを判定する(S413)。右スピーカ5Rの収音信号に対して、加算処理が終了していない場合(S413のNO)、ステップS401に戻る。これにより、右スピーカ5Rの収音信号についても同様に加算処理が行われる。右スピーカ5Rの収音信号に対して、加算処理が終了した場合(S413のYES)、信号加算処理を終了する。
 このように、加算処理部213は、収音信号に対して、同期加算に相当する加算処理を行う。本実施の形態では、正又は負の符号を決定して、決定された符号のピークに着目している。すなわち、正の符号に着目した場合、正のピークの最大振幅が一致するように、切り出し開始位置を揃えている。また、負の符号に着目した場合、負のピークの最大振幅が一致するように切り出し開始位置を揃えている。このようにすることで、適切なタイミングで揃えられた切り出し信号を加算することができる。よって、S/N比を向上させることができる。
 本実施の形態にかかる測定装置、及び測定方法によれば、適切に伝達特性を測定することができる。また、マイク2とスピーカ5を同期させる必要がない。よって、安価なPCや入出力の付いている音響機器全般で伝達関数の測定ができる。このため、多くのユーザが本人特性を使った頭外定位ヘッドホンを利用できるようになる。
 符号決定部312は、収音信号における正のピークの振幅の最大値と、負のピークの振幅の絶対値の最大値とを比較することで、前記符号を決定している。このようにすることで、適切に着目する符号を決定することができる。よって、適切に伝達特性を測定することができる。
 ピーク群分割部313は、ピーク配列において、ピークの振幅の絶対値が閾値以上のピークから、前記ピーク群の先頭ピークを求め、先頭ピークから所定の期間に含まれるピークを1つのピーク群と設定している。こうすることで、ピーク群分割部313は、適切に収音信号を複数のピーク群に分割することができる。ピーク群分割部313は、ピーク配列において、ピークの振幅の絶対値が閾値以上のピークが一定期間以上存在しない箇所を、複数のピーク群の境界として設定している。こうすることで、ピーク群分割部313は、より適切に、収音信号を複数のピーク群に分割することができる。よって、適切に伝達特性を測定することができる。
 次に、直接音到達時刻探索部214が、加算処理が施された伝達特性Hls、Hrsの直接音到達時刻を探索する。直接音とは、左のスピーカ5Lから左のマイク2Lに直接到達する音、及び、右のスピーカ5Rから右のマイク2Rに直接到達する音である。すなわち、直接音とは、壁、床、天井、外耳等の周囲の構造物で反射せずに、スピーカ5L、5Rからマイク2L、2Rに到達した音である。通常、直接音はマイク2L、2Rに最も早く到達する音である。直接音到達時刻は測定開始から直接音が到達するまでに経過した時間に相当する。なお、測定開始位置は、上記した切り出し開始位置に相当するインデックスであり、ここではi=0としている。
 より具体的には、直接音到達時刻探索部214は、伝達特性Hls、Hrsの振幅が最大となる時刻に基づいて、直接音到達時刻を探索する。なお、直接音到達時刻探索部214における処理については後述する。直接音到達時刻探索部214は、探索した直接音到達時刻を左右直接音判定部215に出力する。
 直接音到達時刻探索部214が探索した直接音到達時刻を用いて、左右直接音判定部215は、左右の直接音の振幅の符号が一致するか否かの判定を行う。例えば、左右直接音判定部215は、直接音到達時刻における伝達特性Hls、Hrsの振幅の符号が一致するか否かを判定する。さらに、左右直接音判定部215は、直接音到達時刻が一致するか否かを判定する。左右直接音判定部215は、判定結果をエラー訂正部216に出力する。
 直接音到達時刻における伝達特性Hls、Hrsの振幅の符号が一致しない場合、エラー訂正部216は、切り出しタイミングを訂正する。そして、波形切り出し部217は、訂正された切り出しタイミングで伝達特性Hls、Hlo、Hro、Hrsの波形を切り出す。所定のフィルタ長で切り出された伝達特性Hls、Hlo、Hro、Hrsがフィルタとなる。すなわち、波形切り出し部217は、先頭位置をずらして伝達特性Hls、Hlo、Hro、Hrsの波形を切り出す。直接音到達時刻における伝達特性Hls、Hrsの振幅の符号が一致する場合、波形切り出し部21は、切り出しタイミングを訂正せずに、そのままのタイミングで切り出す。
 具体的には、伝達特性Hls、Hrsの振幅の符号が異なる場合、エラー訂正部216は、伝達特性Hls、Hrsの直接音到達時刻を揃えるように、切り出しタイミングを訂正する。伝達特性Hls、Hrsの直接音が同じサンプル数に位置するように、伝達特性Hls、Hlo、又は伝達特性Hro、Hrsのデータを移動する。すなわち、伝達特性Hls、Hloと、伝達特性Hro、Hrsとで、切り出しの先頭サンプル数を異ならせている。
 そして、波形切り出し部217は、切り出した伝達特性Hls、Hlo、Hro、Hrsからフィルタを生成する。すなわち、波形切り出し部217は、伝達特性Hls、Hlo、Hro、Hrsの振幅をフィルタ係数とすることで、フィルタを生成する。波形切り出し部217で生成された伝達特性Hls、Hlo、Hro、Hrsがフィルタとして、図1に示す畳み込み演算部11、12、21、22に設定される。これにより、左右のバランスの良い音質で頭外定位されたオーディオをユーザUが受聴することができる。
 次に、処理装置210によるフィルタ生成方法について、図25を用いて詳細に説明する。図25は、処理装置210におけるフィルタ生成方法を示すフローチャートである。
 まず、加算処理部213が収音信号を加算処理する(S101)。すなわち、加算処理部213は、伝達特性Hls、Hlo、Hro、Hrs毎に収音信号を加算処理する。これにより、突発的なノイズの影響を低減することができる。ここでは、図16~図24で示した処理により、加算処理が行われる。
 次に、直接音到達時刻探索部214が伝達特性Hlsにおける直接音到達時刻Hls_First_idxと、伝達特性Hrsにおける直接音到達時刻Hrs_First_idxとを取得する(S102)。
 ここで、直接音到達時刻探索部214における直接音到達時刻の探索処理について、図26を用いて詳細に説明する。図26は、直接音到達時刻の探索処理を示すフローチャートである。なお、図26は、伝達特性Hls、伝達特性Hrsのそれぞれに対して行われる処理を示している。すなわち、直接音到達時刻探索部214が、図26に示す処理を伝達特性Hls、Hrsのそれぞれに対して実行することで、直接音到達時刻Hls_first_idxと、直接音到達時刻Hls_first_idxとをそれぞれ取得することができる。
 まず、直接音到達時刻探索部214が、伝達特性の振幅の絶対値が最大となる時刻max_idxを取得する(S201)。すなわち、直接音到達時刻探索部214は、図9~図12に示したように最大振幅Aを取る時刻を時刻max_idxと設定する。時刻max_idxは、測定開始からの時間に対応するものである。また、時刻max_idx、及び後述する各種の時刻は測定開始からの絶対時間として表してもよいし、測定開始からのサンプル数として表してもよい。
 次に、直接音到達時刻探索部214が時刻max_idxにおけるdata[max_idx]が0より大きいか否かを判定する(S202)。data[max_idx]は、max_idxにおける伝達特性の振幅の値である。すなわち、直接音到達時刻探索部214は、最大振幅が正のピークか負のピークであるかを判定する。data[max_idx]が負の場合(S202のNO)、直接音到達時刻探索部214は、zero_idx=max_idxと設定する(S203)。図12に示す振幅Hrsでは、最大振幅Aが負であるため、max_idx=zero_idxとなる。
 ここで、zero_idxは直接音到達時刻の探索範囲の基準となる時刻である。具体的には、時刻zero_idxは、探索範囲の終端に対応する。直接音到達時刻探索部214は、0~zero_idxの範囲内で、直接音到達時刻を探索する。
 data[max_idx]が正の場合(S202のYES)、直接音到達時刻探索部214は、zero_idx<max_idx、かつ、振幅が最後に負となる時刻zero_idxを取得する(S204)。すなわち、直接音到達時刻探索部214は、時刻max_idxの直前で振幅が負となる時刻をzero_idxとして設定する。例えば、図9~図11に示す伝達特性では、最大振幅Aが正であるため、時刻max_idxよりも前にzero_idxが存在する。時刻max_idxの直前で、振幅が負となる時刻を探索範囲の終端としているが、探索範囲の終端はこれに限られるものではない。
 ステップS203、又はS204において、zero_idxが設定されると、直接音到達時刻探索部214は、0~zero_idxまでの極大点を取得する(S205)。すなわち、直接音到達時刻探索部214は、探索範囲0~zero_idxにおいて、振幅の正のピークを抽出する。
 直接音到達時刻探索部214は、極大点の個数が0より大きいか否かを判定する(S206)。すなわち、直接音到達時刻探索部214は、探索範囲0~zero_idxにおいて、極大点(正のピーク)が存在するか否かを判定する。
 極大点の個数が0以下の場合(S206のNO)、すなわち、探索範囲0~zero_idxに極大点が無い場合、直接音到達時刻探索部214は、first_idx=max_idxとする。first_idxは、直接音到達時刻である。例えば、図11、図12に示す伝達特性Hls、Hrsでは、0~zero_idxの範囲に、極大点が存在しない。よって、直接音到達時刻探索部214は、直接音到達時刻first_idx=max_idxとする。
 極大点の個数が0より大きい場合(S206のYES)、すなわち、探索範囲0~zero_idxに極大点がある場合、直接音到達時刻探索部214は、極大点の振幅が(|data[max_idx]|/15)よりも大きくなる最初の時刻を直接音到達時刻first_idxとする(S208)。すなわち、探索範囲0~zero_idxにおいて、最も早い時刻にある正のピークであって、閾値(ここでは、最大振幅の絶対値の15分の1)よりも高いピークを直接音とする。例えば、図9、図10に示す伝達特性では、0~zero_idxの範囲に、極大点C、Dが存在する。そして、最初の極大点Cの振幅が、閾値よりも大きい。したがって、直接音到達時刻探索部214は、極大点Cの時刻を直接音到達時刻first_idxに設定する。
 ここで、極大点の振幅が小さいと、ノイズ等によるものであるおそれがある。すなわち、極大点が、ノイズによるものか、スピーカからの直接音によるものであるかを判別する必要がある。したがって、本実施の形態では、(data[max_idx]の絶対値)/15を閾値として、閾値よりも大きい極大点を直接音としている。このように、直接音到達時刻探索部214は、最大振幅に応じて閾値を設定している。
 そして、直接音到達時刻探索部214が、極大点の振幅と、閾値とを比較することで、極大点がノイズによるものか、直接音によるものかを判別している。すなわち、極大点の振幅が最大振幅の絶対値に対する所定の割合未満である場合、直接音到達時刻探索部214は、極大点をノイズと判別する。極大点の振幅が最大振幅の絶対値に対する所定の割合以上である場合、直接音到達時刻探索部214は、極大点を直接音と判別する。このようにすることで、ノイズの影響を除去できるため、直接音到達時刻を正確に探索することができる。
 もちろん、ノイズを判別するための閾値は、上記の値に限られるものではなく、測定環境や測定信号に応じて適切な割合を設定することができる。また、最大振幅に関わらず、閾値を設定することも可能である。
 このように、直接音到達時刻探索部214は、直接音到達時刻first_idxを求めている。具体的には、直接音到達時刻探索部214は、振幅の絶対値が最大となる時刻max_idxよりも前において、振幅が極大点を取る時刻を直接音到達時刻first_idxとする。すなわち、直接音到達時刻探索部214は、最大振幅よりも前において、最初にある正のピークを直接音と判定する。最大振幅よりも前に極大点が無い場合、最大振幅を直接音と判定する。直接音到達時刻探索部214は探索した直接音到達時刻first_idxを左右直接音判定部215に出力する。
 図25の説明に戻る。上記のように、左右直接音判定部215が伝達特性Hls、Hrsの直接音到達時刻Hls_first_idx、Hrs_first_idxをそれぞれ取得する。そして、左右直接音判定部215は、伝達特性Hls、Hrsの直接音の振幅の積を求める(S103)。すなわち、左右直接音判定部215は、直接音到達時刻Hls_first_idxにおける伝達特性Hlsの振幅と、直接音到達時刻Hrs_first_idxにおける伝達特性Hroの振幅とを乗算し、HlsとHrsの最大振幅の正負の符号がそろっているか否かを判定する。
 次に、左右直接音判定部215は、(伝達特性Hls、Hrsの直接音の振幅の積)>0であり、かつ、Hls_first_idx=Hrs_first_idxとなるか否かを判定する(S104)。すなわち、左右直接音判定部215は、伝達特性Hls、Hrsの直接音到達時刻における振幅の符号が一致するか否かを判定する。さらに、左右直接音判定部215は、直接音到達時刻Hls_first_idxが直接音到達時刻Hrs_first_idxと一致するか否かを判定する。
 直接音到達時刻における振幅が同じ符号であり、かつHls_first_idxが直接音到達時刻Hrs_first_idxと一致する場合(S104のYES)、エラー訂正部216は、直接音が同じ時刻となるように一方のデータを移動する(S106)。なお、伝達特性の移動が不要の場合は、データの移動量は0となる。例えば、ステップS104でYESと判定された場合、データの移動量が0となる。この場合、ステップS106を省略して、ステップS107に移行してもよい。そして、波形切り出し部217が、同じ時刻から伝達特性Hls、Hlo、Hro、Hrsをフィルタ長で切り出す(S107)。
 伝達特性Hls、Hrsの直接音の振幅の積が負である場合、又は、Hls_first_idx=Hrs_first_idxとならない場合(S104のNO)、エラー訂正部216が伝達特性Hls、Hrsの相互相関係数corrを算出する(S105)。すなわち、左右の直接音到達時刻が揃っていないため、エラー訂正部216が切り出しタイミングを訂正する。そのため、エラー訂正部216が伝達特性Hls、Hrsの相互相関係数corrを算出する。
 そして、エラー訂正部216は、相互相関係数corrに基づいて、直接音が同じ時刻となるよう、一方のデータを移動する(S106)。具体的には、直接音到達時刻Hls_first_idxが直接音到達時刻Hrs_first_idxと一致するように、伝達特性Hrs、Hroのデータを移動する。ここで、伝達特性Hrs、Hroのデータの移動量は、相関が最も高くなるオフセット量に応じて決定される。このように、エラー訂正部216は、伝達特性Hls、Hrsの相関に基づいて、切り出しタイミングを訂正する。波形切り出し部217は、伝達特性Hls、Hlo、Hro、Hrsをフィルタ長で切り出す(S107)
 ここで、ステップS104~ステップS107の処理の一例について、図27を用いて説明する。図27は、ステップS104~ステップS107の処理の一例を示すフローチャートである。
 まず、左右直接音判定部215が、ステップS104と同様に、左右音の判定を行う。すなわち、左右直接音判定部215が、伝達特性Hls、Hrsの直接音の振幅の積>0であり、かつ、Hls_first_idx=Hrs_first_idxとなるか否かを判定する(S301)。
 伝達特性Hls、Hrsの直接音の振幅の積>0であり、かつ、Hls_first_idx=Hrs_first_idxとなっている場合(S301のYES)、Hls_first_idx=Hrs_first_idxが同じ時刻となるよう、エラー訂正部216が伝達特性Hrs、Hroのデータを移動する(S305)。なお、伝達特性の移動が不要の場合は、データの移動量は0となる。例えば、ステップS301でYESと判定された場合、データの移動量が0となる。この場合、ステップS305を省略して、ステップS306に移行してもよい。そして、波形切り出し部217が、同じ時刻からフィルタ長で伝達特性Hls、Hlo、Hro、Hrsをフィルタ長で切り出す(S306)。すなわち、エラー訂正部216が、直接音到達時刻を揃えるように、伝達特性Hro、Hrsの切り出しタイミングを訂正する。そして、エラー訂正部216で訂正された切り出しタイミングで波形切り出し部217が伝達特性Hls、Hlo、Hro、Hrsを切り出す。
 伝達特性Hls、Hrsの直接音の振幅の積<0の場合、又は、Hls_first_idx=Hrs_first_idxとならない場合(S301のNO)、エラー訂正部216は、伝達特性Hlsのstart=(first_idx-20)をオフセットとし、+30サンプルのデータを取得し、平均値、分散を算出する(S302)。すなわち、エラー訂正部216は、直接音到達時刻first_idxの20サンプル前を開始点startとして連続する30サンプル分のデータを抽出する。そして、エラー訂正部216は、抽出した30サンプルの平均値、及び分散を算出する。平均値及び分散は、相互相関係数を標準化するために用いられるため、標準化が不要の場合は算出しなくてもよい。なお、抽出するサンプル数は30サンプルに限られるものではなく、エラー訂正部216は、任意のサンプル数を抽出することができる。
 そして、エラー訂正部216は、伝達特性Hrsの(start-10)から(start+10)までオフセットを1ずつずらし、伝達特性Hlsとの相互相関係数corr[0]~corr[19]を取得する(S303)。なお、エラー訂正部216は、伝達特性Hrsの平均値、及び分散を求め、伝達特性Hls、Hrsの平均値及び分散を用いて、相互相関係数corrの標準化を行うことが好ましい。
 図28を用いて、相互相関係数の求め方について説明する。図28(b)には、伝達特性Hls、並びに、伝達特性Hlsから抽出された30サンプルが太枠Gで示されている。また、図28(a)には、伝達特性Hrs、並びに、(start-10)をオフセットとした場合の30サンプルが太枠Fで示されている。first_idx-20=startであるため、図28(a)では、first_idx-30を先頭とする30サンプルが太枠Fに含まれている。
 また、図28(c)には、伝達特性Hrs、並びに、(start+10)をオフセットとした場合の30サンプルが太枠Hで示されている。first_idx-20=startであるため、図28(a)では、first_idx-10を先頭とする30サンプルが太枠Fに含まれている。太枠Fに含まれる30サンプルと太枠Gに含まれる30サンプルとの相互相関を算出することで、相互相関係数corr[0]が求められる。同様に、太枠Gと太枠Hとの相互相関を算出することで、相互相関係数corr[19]が求められる。相互相関係数corrが高いほど、伝達特性Hls、Hrsの相関が高くなる。
 エラー訂正部216は、相互相関係数が最大値を取るcorr[cmax_idx]を取得する(S304)。ここで、cmax_idxは、相互相関係数が最大値を取るオフセット量を相当する。すなわち、cmax_idxは、伝達特性Hlsと伝達特性Hrsの相関が最も大きい時のオフセット量を示す。
 そして、エラー訂正部216は、cmax_idxに応じて、Hls_first_idxとHrs_first_idxが同じ時刻となるよう伝達特性Hrs、Hroのデータを移動する(S305)。エラー訂正部216は、オフセット量だけ、伝達特性Hrs、Hroのデータを移動する。これにより、伝達特性Hls、Hrsの直接音到達時刻が揃う。なお、ステップS305は、図25のステップS106に相当する。また、エラー訂正部216は、伝達特性Hrs、Hroを移動するのではなく、伝達特性Hls、Hloを移動してもよい。
 そして、波形切り出し部217は、同じ時刻からフィルタ長で伝達特性Hls、Hlo、Hro、Hrsを切り出す。このようにすることで、直接音到達時刻が揃ったフィルタを生成することができる。よって、左右のバランスの良好な音場を生成することができる。これにより、ボーカル音像をセンターに定位させることができる。
 次に、図29A~図29Cを用いて直接音到達時刻を揃える意義について説明する。図29Aは、直接音到達時刻を揃える前の伝達特性Hls、Hloを示す図である。図29Bは、伝達特性Hrs、Hroを示す図である。図29Cは、直接音到達時刻を揃えた後の伝達特性Hls、Hloを示す図である。図29A~図29Cにおいて、横軸がサンプル数であり、縦軸が振幅となっている。サンプル数は測定開始からの時間に対応し、測定開始時刻をサンプル数0としている。
 例えば、左スピーカ5Lからのインパルス応答測定と右スピーカ5Rからのインパルス応答測定で、音響デバイスでの遅延量が異なる場合がある。この場合、図29Bに示す伝達特性Hrs、Hroに比べて、図29Aに示す伝達特性Hls、Hloの直接音到達時刻が遅れてしまう。このような場合、直接音到達時刻のタイミングを揃えずに、伝達特性Hls、Hlo、Hro、Hrsを切り出すと、左右のバランスが悪い音場が生成されてしまう。そこで、図29Cのように、処理装置210が、相関に基づいて、伝達特性Hls、Hloを移動している。これにより、伝達特性Hls、Hrsの直接音到達時刻を揃えることができる。
 そして、処理装置210は、直接音到達時刻を揃えて伝達特性を切り出すことで、フィルタを生成している。すなわち、波形切り出し部217が、直接音到達時刻が一致するように揃えられた伝達特性を切り出することで、フィルタを生成している。よって、左右のバランスが良好な音場を再生することができる。
 本実施の形態では、左右直接音判定部215が直接音の符号が一致しているか否かを判定する。左右直接音判定部215の判定結果に応じて、エラー訂正部216がエラー訂正を行っている。具体的には、直接音の符号が一致していない場合、又は、直接音到達時刻が一致していない場合に、エラー訂正部216が相互相関係数に基づいて、エラー訂正を行っている。直接音の符号が一致しており、かつ、直接音到達時刻が一致している場合は、エラー訂正部216が相互相関係数に基づくエラー訂正を実行しない。エラー訂正部216がエラー訂正を行う頻度は少ないため、不要な計算処理を省略することができる。すなわち、直接音の符号が一致しており、かつ、直接音到達時刻が一致している場合は、エラー訂正部216が相互相関係数を算出する必要がなくなる。よって、計算処理時間を短縮することができる。
 通常、エラー訂正部216によるエラー訂正を行わなくてよい。しかしながら、左右のスピーカ5L、5Rの特性が異なっていたり、周囲の反射の状況が左右で大きく異なっていたりする場合がある。あるいは、左耳9L、右耳9Rでマイク2L、2Rの位置がずれていることもある。また、音響デバイスの遅延量が異なることもある。このような場合、測定信号を適切に収音することができず、左右でタイミングがずれることがある。本実施の形態では、エラー訂正部216がエラー訂正を行うことで、適切にフィルタを生成することができる。よって、左右のバランスのよい音場を再生することができうる。
 また、直接音到達時刻探索部214が直接音到達時刻を探索している。具体的には、直接音到達時刻探索部214は、最大振幅となる時刻よりも前において、振幅が極大点を取る時刻を直接音到達時刻としている。さらに、直接音到達時刻探索部214は、最大振幅となる時刻よりも前において、極大点が無い場合に、最大振幅となる時刻を直接音到達時刻としている。このようにすることで、適切に直接音到達時刻を探索することができる。そして、直接音到達時刻に基づいて伝達特性を切り出すことで、より適切にフィルタを生成することができる。
 左右直接音判定部215が、直接音到達時刻における伝達特性Hls、Hrsの振幅の符号が一致しているか否かを判定している。そして、符号が異なっている場合、エラー訂正部216が切り出しタイミングを訂正している。このようにすることで、適切に切り出しタイミングを調整することができる。さらに、左右直接音判定部215が、伝達特性Hls、Hrsの直接音到達時刻が一致しているか否かを判定している。そして、伝達特性Hls、Hrsの直接音到達時刻が一致していない場合に、エラー訂正部216が切り出しタイミングを訂正している。このようにすることで、適切に切り出しタイミングを調整することができる。
 直接音到達時刻における伝達特性Hls、Hrsの振幅の符号が一致し、かつ、伝達特性Hls、Hrsの直接音到達時刻が一致している場合は、伝達特性の移動量は0となる。この場合、エラー訂正部216は切り出しタイミングを訂正する処理を省略してもよい。具体的には、ステップS104がYESの場合、ステップS106を省略することができる。あるいは、ステップS301がYESの場合、ステップS305を省略することができる。このようにすることで、不要な処理を省き、計算時間を短縮することができる。
 エラー訂正部216は、伝達特性Hls、Hrsの相関に基づいて、切り出しタイミングを訂正することが好ましい。このようにすることで、直接音到達時刻を適切に揃えることが可能となる。よって、左右のバランスの良好な音場を再生することができる。
 なお、上記の実施形態では、音像定位処理装置として、ヘッドホンを用いて頭外に音像を定位する頭外定位処理装置について説明したが、本実施の形態は頭外定位処理装置に限られるものではない。例えば、スピーカ5L、5Rからステレオ信号を再生することで、音像を定位させる音像定位処理装置に用いてもよい。すなわち、本実施の形態は、伝達特性を再生信号に畳み込む音像定位処理装置にて適用することが可能になる。例えば、バーチャルスピーカ、ニアスピーカサラウンド等における音像定位用フィルタを生成することも可能である。
 また、同期加算に相当する処理を行う加算処理部213は、スピーカやマイクの伝達特性を測定する測定装置として機能することができる。スピーカやマイクの設置位置は、特に限定されるものではなく、例えば、イヤホンなどに搭載されたスピーカやマイクを用いて、測定を行うことができる。
 上記信号処理のうちの一部又は全部は、コンピュータプログラムによって実行されてもよい。上述したプログラムは、様々なタイプの非一時的なコンピュータ可読媒体(non-transitory computer readable medium)を用いて格納され、コンピュータに供給することができる。非一時的なコンピュータ可読媒体は、様々なタイプの実体のある記録媒体(tangible storage medium)を含む。非一時的なコンピュータ可読媒体の例は、磁気記録媒体(例えばフレキシブルディスク、磁気テープ、ハードディスクドライブ)、光磁気記録媒体(例えば光磁気ディスク)、CD-ROM(Read Only Memory)、CD-R、CD-R/W、半導体メモリ(例えば、マスクROM、PROM(Programmable ROM)、EPROM(Erasable PROM)、フラッシュROM、RAM(Random Access Memory))を含む。また、プログラムは、様々なタイプの一時的なコンピュータ可読媒体(transitory computer readable medium)によってコンピュータに供給されてもよい。一時的なコンピュータ可読媒体の例は、電気信号、光信号、及び電磁波を含む。一時的なコンピュータ可読媒体は、電線及び光ファイバ等の有線通信路、又は無線通信路を介して、プログラムをコンピュータに供給できる。
 以上、本発明者によってなされた発明を実施の形態に基づき具体的に説明したが、本発明は上記実施の形態に限られたものではなく、その要旨を逸脱しない範囲で種々変更可能であることは言うまでもない。
 この出願は、2016年3月10日に出願された日本出願特願2016-047265を基礎とする優先権を主張し、その開示の全てをここに取り込む。
 本願は、伝達特性を用いて音像を定位する音像定位処理装置に適用可能である。
 U ユーザ
 1 受聴者
 2L 左マイク
 2R 右マイク
 5L 左スピーカ
 5R 右スピーカ
 9L 左耳
 9R 右耳
 10 頭外定位処理部
 11 畳み込み演算部
 12 畳み込み演算部
 21 畳み込み演算部
 22 畳み込み演算部
 24 加算器
 25 加算器
 30 測定部
 41 フィルタ部
 42 フィルタ部
 43 ヘッドホン
 100 頭外定位処理装置
 200 フィルタ生成装置
 210 処理装置
 211 測定信号生成部
 212 収音信号取得部
 213 加算処理部
 214 直接音到達時刻探索部
 215 左右直接音判定部
 216 エラー訂正部
 217 波形切り出し部
 311 ピーク検出部
 312 符号決定部
 313 ピーク群分割部
 314 最大振幅検出部
 315 信号切り出し部
 316 信号加算部

Claims (7)

  1.  時間間隔を空けて連続する複数の信号音を含む測定信号を出力するスピーカと、
     前記スピーカから出力された前記測定信号を収音して、収音信号を取得するマイクと、
     前記収音信号に基づいて、伝達特性を測定する測定部と、を備え、
     前記測定部は、
     収音信号に含まれる正負のピークを検出するピーク検出部と、
     ピーク検出部で検出された前記正負のピークでの振幅に基づいて、正又は負の符号を決定する符号決定部と、
     決定された符号の前記ピークから構成されるピーク配列を複数のピーク群に分割する分割部と、
     前記複数のピーク群毎の最大振幅を検出する最大振幅検出部と、
     前記最大振幅に基づいた切り出しタイミングで、前記収音信号を切り出して、複数の切り出し信号を生成する切り出し部と、
     前記複数の切り出し信号を加算する信号加算部を備えた測定装置。
  2.  前記符号決定部は、前記収音信号における正のピークの振幅の最大値と、前記負のピークの振幅の絶対値の最大値とを比較することで、前記符号を決定する請求項1に記載の測定装置。
  3.  前記分割部は、
     前記ピーク配列において、前記ピークの振幅の絶対値が閾値以上のピークから、前記ピーク群の先頭ピークを求め、
     前記先頭ピークから所定の期間に含まれるピークを1つのピーク群と設定する請求項1、又は2に記載の測定装置。
  4.  前記分割部は、前記ピーク配列において、前記ピークの振幅の絶対値が閾値以上のピークが一定期間以上存在しない箇所を、前記複数のピーク群の境界として設定する請求項3に記載の測定装置。
  5.  請求項1~4のいずれか1項に記載の測定装置を備え
     前記測定装置によって測定された伝達特性に基づいて、フィルタを生成するフィルタ生成装置。
  6.  スピーカから出力された測定信号をマイクで収音することで伝達特性を測定する測定方法であって、
     前記スピーカから時間間隔を空けて連続する複数の信号音を含む測定信号を出力するステップと、
     前記スピーカから出力された前記測定信号をマイクで収音して、収音信号を取得するステップと、
     前記収音信号に含まれる正負のピークを検出するピーク検出ステップと、
     ピーク検出部で検出された前記正負のピークでの振幅に基づいて、正又は負の符号を決定する符号決定ステップと、
     決定された符号の前記ピークから構成されるピーク配列を複数のピーク群に分割する分割ステップと、
     前記複数のピーク群毎の最大振幅を検出する最大振幅検出ステップと、
     前記最大振幅に基づいた切り出しタイミングで、前記収音信号を切り出して、複数の切り出し信号を生成する切り出しステップと、
     前記複数の切り出し信号を加算する信号加算ステップと、
     を含む測定方法。
  7.  請求項6に記載の測定方法で測定した伝達特性を用いてフィルタを生成するステップを含むフィルタ生成方法。
PCT/JP2017/001950 2016-03-10 2017-01-20 測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法 WO2017154378A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201780014725.8A CN108885864B (zh) 2016-03-10 2017-01-20 测量装置、滤波器生成装置、测量方法及滤波器生成方法
EP17762724.7A EP3428915B1 (en) 2016-03-10 2017-01-20 Measuring device, filter generating device, measuring method, and filter generating method
US16/126,803 US10405127B2 (en) 2016-03-10 2018-09-10 Measurement device, filter generation device, measurement method, and filter generation method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016047265A JP6701824B2 (ja) 2016-03-10 2016-03-10 測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法
JP2016-047265 2016-03-10

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/126,803 Continuation US10405127B2 (en) 2016-03-10 2018-09-10 Measurement device, filter generation device, measurement method, and filter generation method

Publications (1)

Publication Number Publication Date
WO2017154378A1 true WO2017154378A1 (ja) 2017-09-14

Family

ID=59789221

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/001950 WO2017154378A1 (ja) 2016-03-10 2017-01-20 測定装置、フィルタ生成装置、測定方法、及びフィルタ生成方法

Country Status (5)

Country Link
US (1) US10405127B2 (ja)
EP (1) EP3428915B1 (ja)
JP (1) JP6701824B2 (ja)
CN (1) CN108885864B (ja)
WO (1) WO2017154378A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018133682A (ja) * 2017-02-15 2018-08-23 株式会社Jvcケンウッド フィルタ生成装置、及びフィルタ生成方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3588987A4 (en) * 2017-02-24 2020-01-01 JVC KENWOOD Corporation FILTER GENERATION DEVICE, FILTER GENERATION METHOD AND PROGRAM
JP7031543B2 (ja) * 2018-09-21 2022-03-08 株式会社Jvcケンウッド 処理装置、処理方法、再生方法、及びプログラム
JP7435334B2 (ja) * 2020-07-20 2024-02-21 株式会社Jvcケンウッド 頭外定位フィルタ決定システム、頭外定位フィルタ決定方法、及びプログラム

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05210393A (ja) * 1992-01-31 1993-08-20 Fujitsu Ten Ltd 音場データ抽出装置
WO2006093152A1 (ja) * 2005-02-28 2006-09-08 Pioneer Corporation 特性測定装置及び特性測定プログラム
JP2012058701A (ja) * 2010-09-13 2012-03-22 Canon Inc 音響装置
JP2016099148A (ja) * 2014-11-19 2016-05-30 日置電機株式会社 測定データ処理装置および測定データ処理方法

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4240683B2 (ja) * 1999-09-29 2009-03-18 ソニー株式会社 オーディオ処理装置
US7664272B2 (en) * 2003-09-08 2010-02-16 Panasonic Corporation Sound image control device and design tool therefor
GB0419346D0 (en) 2004-09-01 2004-09-29 Smyth Stephen M F Method and apparatus for improved headphone virtualisation
WO2007137232A2 (en) * 2006-05-20 2007-11-29 Personics Holdings Inc. Method of modifying audio content
JP2012004668A (ja) * 2010-06-14 2012-01-05 Sony Corp 頭部伝達関数生成装置、頭部伝達関数生成方法及び音声信号処理装置
DE102011106647A1 (de) * 2011-07-05 2013-01-10 J. Eberspächer GmbH & Co. KG Antischall-system für abgasanlagen und verfahren zum steuern desselben
KR20130080939A (ko) * 2012-01-06 2013-07-16 삼성전자주식회사 입력 신호의 피크 제거 방법 및 장치
US9264812B2 (en) * 2012-06-15 2016-02-16 Kabushiki Kaisha Toshiba Apparatus and method for localizing a sound image, and a non-transitory computer readable medium
KR102048235B1 (ko) * 2013-04-10 2019-11-25 삼성전자주식회사 무선 통신 시스템에서 디지털 전치 왜곡 장치 및 방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05210393A (ja) * 1992-01-31 1993-08-20 Fujitsu Ten Ltd 音場データ抽出装置
WO2006093152A1 (ja) * 2005-02-28 2006-09-08 Pioneer Corporation 特性測定装置及び特性測定プログラム
JP2012058701A (ja) * 2010-09-13 2012-03-22 Canon Inc 音響装置
JP2016099148A (ja) * 2014-11-19 2016-05-30 日置電機株式会社 測定データ処理装置および測定データ処理方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3428915A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018133682A (ja) * 2017-02-15 2018-08-23 株式会社Jvcケンウッド フィルタ生成装置、及びフィルタ生成方法

Also Published As

Publication number Publication date
EP3428915B1 (en) 2020-05-27
JP2017161775A (ja) 2017-09-14
US10405127B2 (en) 2019-09-03
US20190007784A1 (en) 2019-01-03
CN108885864B (zh) 2023-05-02
JP6701824B2 (ja) 2020-05-27
EP3428915A4 (en) 2019-05-01
CN108885864A (zh) 2018-11-23
EP3428915A1 (en) 2019-01-16

Similar Documents

Publication Publication Date Title
US10405127B2 (en) Measurement device, filter generation device, measurement method, and filter generation method
US10375507B2 (en) Measurement device and measurement method
JP6658026B2 (ja) フィルタ生成装置、フィルタ生成方法、及び音像定位処理方法
US10805727B2 (en) Filter generation device, filter generation method, and program
US10687144B2 (en) Filter generation device and filter generation method
JP6500664B2 (ja) 音場再生装置、音場再生方法、及びプログラム
JP6805879B2 (ja) フィルタ生成装置、フィルタ生成方法、及びプログラム
JP6904197B2 (ja) 信号処理装置、信号処理方法、及びプログラム
JP7439502B2 (ja) 処理装置、処理方法、フィルタ生成方法、再生方法、及びプログラム
JP7395906B2 (ja) ヘッドホン、頭外定位フィルタ決定装置、及び頭外定位フィルタ決定方法
WO2021059983A1 (ja) ヘッドホン、頭外定位フィルタ決定装置、頭外定位フィルタ決定システム、頭外定位フィルタ決定方法、及びプログラム
JP7404736B2 (ja) 頭外定位フィルタ決定システム、頭外定位フィルタ決定方法、及びプログラム
JP7435334B2 (ja) 頭外定位フィルタ決定システム、頭外定位フィルタ決定方法、及びプログラム
JP2022185840A (ja) 頭外定位処理装置、及び頭外定位処理方法
JP4956722B2 (ja) 音空間再合成提示システム

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2017762724

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2017762724

Country of ref document: EP

Effective date: 20181010

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17762724

Country of ref document: EP

Kind code of ref document: A1