WO2021135235A1 - Automatic debugging method and system for loudspeaker - Google Patents

Automatic debugging method and system for loudspeaker Download PDF

Info

Publication number
WO2021135235A1
WO2021135235A1 PCT/CN2020/107933 CN2020107933W WO2021135235A1 WO 2021135235 A1 WO2021135235 A1 WO 2021135235A1 CN 2020107933 W CN2020107933 W CN 2020107933W WO 2021135235 A1 WO2021135235 A1 WO 2021135235A1
Authority
WO
WIPO (PCT)
Prior art keywords
speaker module
module
response curve
frequency response
amplitude
Prior art date
Application number
PCT/CN2020/107933
Other languages
French (fr)
Chinese (zh)
Inventor
苏林
黄运欢
余又斌
邓俊曦
Original Assignee
广州励丰文化科技股份有限公司
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 广州励丰文化科技股份有限公司 filed Critical 广州励丰文化科技股份有限公司
Publication of WO2021135235A1 publication Critical patent/WO2021135235A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers

Definitions

  • This application relates to the technical field of loudspeaker control, and in particular to a method and system for automatic loudspeaker debugging.
  • the speaker system refers to the equipment that converts the electric signal of the sound wave signal of the original sound field through some electronic equipment to reproduce the sound wave signal.
  • the speaker system in order to ensure that the output of the speaker fully restores the original sound field sound, it is usually necessary to debug the speaker, and the debugging of the existing speaker is often done manually by professional electroacoustic engineers relying on experience, and the debugging efficiency and effect are usually not good.
  • the embodiments of the present application disclose a speaker automatic debugging method and system, which can effectively improve the debugging efficiency and effect of the speaker.
  • the first aspect of the embodiments of the present application discloses an automatic speaker debugging method, the method includes:
  • the speaker module is composed of one or more speaker units
  • the first test parameter includes at least the resonance frequency and amplitude-frequency response curve of the speaker module
  • the first test parameter and the second test parameter are processed to obtain the preset of the speaker module.
  • the first test parameter further includes a delay value, a phase-frequency response curve, and an impedance curve of the speaker module, and the acquisition of the speaker module
  • the first test parameters of the module include:
  • the impedance curve of the speaker module is obtained according to the current signal and the voltage signal when the speaker module outputs the first playback signal, and the resonance frequency of the speaker module is determined according to the impedance curve of the speaker module.
  • the The amplitude-frequency response curve and the harmonic distortion curve of the speaker module determine the second test parameter of the speaker module, including:
  • an average sound pressure level deviation value is obtained, and it is determined whether the average sound pressure level deviation value is less than a second preset value
  • test amplitude-frequency response curve as the initial amplitude-frequency response curve
  • test harmonic distortion curve as the initial harmonic distortion curve
  • test parameters to obtain the preset of the speaker module including:
  • a high-pass filter is generated according to the resonance frequency of the speaker module, and an octave bandwidth is determined from the effective area of the amplitude-frequency response curve of the speaker module, wherein the effective area is the amplitude-frequency response of the speaker module The area with the greatest sensitivity on the curve, and calculate the arithmetic mean of the sound pressure level of the bandwidth, and determine the target straight line corresponding to the arithmetic mean of the sound pressure level, and obtain the target straight line and the amplitude of the speaker module The intersection frequency point of the frequency response curve, and generate a low-pass filter according to the intersection frequency point with the highest frequency, and generate the target amplitude-frequency response curve of the loudspeaker module according to the high-pass filter and the low-pass filter Target phase frequency response curve, and by fitting the amplitude frequency response curve of the loudspeaker module and the target amplitude frequency response curve of the loudspeaker module, and the phase frequency response curve of the loudspeaker module and the target phase frequency of the loudspeaker module
  • test parameters to obtain the preset of the speaker module including:
  • an automatic speaker debugging system which includes:
  • the measurement signal module is used to generate a first test signal and send the first test signal to the speaker module; wherein, the speaker module is composed of one or more speaker units;
  • the control processing module is configured to obtain the first test parameter of the speaker module, and determine the target debugging mode according to the number of the speaker module; wherein, the first test parameter includes at least the resonance frequency and amplitude frequency of the speaker module Response curve
  • the measurement signal module is further configured to process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module;
  • the control processing module is also used to collect the harmonic distortion curve of the speaker module, and determine the second harmonic distortion curve of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module. Test parameters;
  • the signal processing module is further configured to process the first test parameter and the second test parameter according to the instruction of the target debugging mode to obtain the preset of the speaker module.
  • the first test parameter further includes the delay value, phase-frequency response curve, and impedance curve of the speaker module
  • the control processing module uses The specific method for obtaining the first test parameter of the speaker module is as follows:
  • the control processing module is configured to obtain a first playback signal of the speaker module for the first test signal, and obtain an impulse response curve of the speaker module according to the first test signal and the first playback signal , And determining the time delay value and phase-frequency response curve of the speaker module according to the impulse response curve, and performing Fourier transform on the impulse response curve to obtain the amplitude-frequency response curve of the speaker module; and, according to The loudspeaker module outputs the current signal and the voltage signal when the first playing signal is output to obtain the impedance curve of the loudspeaker module, and the resonance frequency of the loudspeaker module is determined according to the impedance curve of the loudspeaker module.
  • the control processing module is configured to pass the detection
  • the method for determining the second test parameter of the speaker module by the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module is specifically as follows:
  • the control processing module is configured to determine the working frequency band of the speaker module according to the amplitude-frequency response curve of the speaker module, and obtain an initial amplitude-frequency response curve from the amplitude-frequency response curve of the speaker module according to the working frequency band, And obtain the initial harmonic distortion curve from the harmonic distortion curve of the loudspeaker module; determine whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the first preset value; and, if the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the At the first preset value, it is determined that the current signal voltage is the protection voltage of the speaker module, and the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module; and, when it is less than the first preset value When the current signal voltage is updated, the test amplitude-frequency response curve and the test harmonic distortion curve of the speaker module are obtained; and, by comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, it is obtained Average sound pressure level deviation value, and determine whether the
  • the signal processing module is configured to process the first
  • the method for obtaining the preset of the speaker module for the first test parameter and the second test parameter is specifically as follows:
  • the signal processing module is configured to generate a high-pass filter according to the resonance frequency of the speaker module, and determine a bandwidth of one octave from the effective area of the amplitude-frequency response curve of the speaker module, wherein the effective area is The most sensitive area on the amplitude-frequency response curve of the loudspeaker module, and calculating the arithmetic mean of the sound pressure level of the bandwidth, and determining the target straight line corresponding to the arithmetic mean of the sound pressure level, and obtaining the target
  • the intersection frequency point of the straight line and the amplitude-frequency response curve of the speaker module, and the low-pass filter is generated according to the intersection frequency point with the highest frequency, and the speaker is generated according to the high-pass filter and the low-pass filter
  • the target amplitude-frequency response curve and target phase-frequency response curve of the module and by fitting the amplitude-frequency response curve of the loudspeaker module and the target amplitude-frequency response curve of the loudspeaker module, and the phase-frequency response curve
  • the signal processing module is configured to process the first
  • the method for obtaining the preset of the speaker module for the first test parameter and the second test parameter is specifically as follows:
  • the signal processing module is configured to synthesize the amplitude-frequency response curve of each of the loudspeaker modules to obtain the gain setting value of each of the loudspeaker modules, and synthesize the delay value of each of the loudspeaker modules to obtain each of the loudspeakers
  • the time delay setting value of the module, and the maximum sound pressure level curve and resonance frequency of each speaker module are combined to determine the crossover point, and the first high-pass filter and the first high-pass filter of each speaker module are generated according to the crossover point.
  • a first low-pass filter, and a bandwidth of one octave is determined from the effective area of the amplitude-frequency response curve of each speaker module, wherein the effective area is the maximum sensitivity on the amplitude-frequency response curve of the speaker module And calculate the arithmetic mean of the sound pressure level of each of the bandwidths; and determine the target straight line corresponding to the arithmetic mean of the sound pressure level of each of the bandwidths, and obtain each of the target straight lines and each The intersection frequency point of the amplitude-frequency response curve of the speaker module, and the second low-pass filter and the second high-pass filter of each speaker module are generated according to the intersection frequency point, and by comparing each of the speaker modules Determine the target low-pass filter of each speaker module from the first high-pass filter, first low-pass filter, second low-pass filter, and second high-pass filter of each speaker module Generator and target high-pass filter, and generate the target amplitude-frequency response curve of each speaker module according to the gain setting value, target high-pass filter, and target
  • the target high-pass filter and target low-pass filter of the speaker module generate a target phase-frequency response curve of each speaker module; and, by fitting the amplitude-frequency response curve and target amplitude-frequency response of each speaker module Curve, and the phase-frequency response curve and target phase-frequency response curve of each speaker module, obtain the filter parameter of each speaker module, and combine the filter parameters and protection voltage of each speaker module in time
  • the delay setting value is packaged as a preset of each speaker module.
  • an automatic speaker debugging system which includes:
  • a memory storing executable program codes
  • a processor coupled with the memory
  • the processor calls the executable program code stored in the memory to execute the steps of the speaker automatic debugging method disclosed in the first aspect of the embodiments of the present application.
  • the fourth aspect of the embodiments of the present application discloses a computer-readable storage medium on which computer instructions are stored.
  • the computer executes the steps of the speaker automatic debugging method disclosed in the first aspect of the embodiments of the present application.
  • a first test signal is generated, and the first test signal is sent to the speaker module; wherein the speaker module is composed of one or more speaker units; the first test parameter of the speaker module is acquired , And determine the target debugging mode according to the number of the speaker modules; process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module; Collect the harmonic distortion curve of the loudspeaker module, and determine the second test parameter of the loudspeaker module by detecting the amplitude-frequency response curve of the loudspeaker module and the harmonic distortion curve of the loudspeaker module; according to the target debugging mode To obtain the preset of the speaker module by processing the first test parameter and the second test parameter.
  • FIG. 1 is a schematic flowchart of a method for automatically adjusting a loudspeaker disclosed in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of step 102 in FIG. 1;
  • FIG. 3 is a schematic flowchart of step 106 in FIG. 1;
  • FIG. 4 is a schematic structural diagram of a speaker automatic debugging system disclosed in an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a speaker automatic tuning system disclosed in an embodiment of the present application.
  • the embodiment of the application discloses a speaker automatic debugging method and system, which can effectively improve the debugging efficiency and effect of the speaker, which will be described in detail below.
  • FIG. 1 is a schematic flowchart of a speaker automatic debugging method disclosed in an embodiment of the present application.
  • the speaker automatic debugging method shown in FIG. 1 may specifically include the following steps:
  • the speaker module includes multiple speaker units
  • the multiple speakers may be of the same type and connected in series or parallel
  • the first test signal may be a pink noise signal, a frequency sweep signal, etc.
  • the first test parameter may also include the delay value, phase-frequency response curve, and impedance curve of the speaker module.
  • FIG. 2 is a schematic flowchart of step 102. As shown in FIG. 2, step 102 includes the following steps :
  • the first playback signal for the first test signal may be collected by a microphone device, and the microphone device may interact with the automatic speaker debugging system in a wireless or wired manner.
  • the impulse response generated by the reflected sound can also be removed in the time domain by adding a window;
  • the Fourier transform of the impulse response curve of the module to obtain the amplitude-frequency response curve of the loudspeaker module includes: performing Fourier transform on the processed impulse response curve of the loudspeaker module to obtain the amplitude-frequency response curve of the loudspeaker module.
  • the second test parameter may include the protection voltage and the maximum sound pressure level curve of the speaker module.
  • FIG. 3 is a schematic flowchart of step 106. As shown in FIG. 3, step 106 may include the following steps:
  • determining the working frequency band of the loudspeaker module according to the amplitude-frequency response curve of the loudspeaker module includes: taking a bandwidth of one octave in the area with the greatest sensitivity on the amplitude-frequency response curve of the loudspeaker module, and taking the bandwidth according to 1/3otc. Calculate the arithmetic mean of the sound pressure level corresponding to the bandwidth at four points, and determine the working frequency band of the loudspeaker module according to the frequency at which the arithmetic mean drops 10dB and the intersection frequency of the amplitude-frequency response curve of the loudspeaker module.
  • step 1065 Obtain an average sound pressure level deviation value by comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, and determine whether the average sound pressure level deviation value is less than the second preset value. If yes, go to step 1066; if not, go to step 1067.
  • step 1067 Determine whether the maximum distortion value in the test harmonic distortion curve is greater than or equal to the first preset value, if yes, perform step 1068; if not, perform step 1069.
  • test amplitude-frequency response curve as the initial amplitude-frequency response curve
  • test harmonic distortion curve as the initial harmonic distortion curve
  • the target debugging mode is the single-channel mode
  • the first test parameter and the second test parameter are processed according to the instructions of the target debugging mode to obtain the preset of the speaker module, including:
  • the target amplitude-frequency response curve and target phase-frequency response curve of the loudspeaker module Generate the target amplitude-frequency response curve and target phase-frequency response curve of the loudspeaker module according to the high-pass filter and low-pass filter, and fit the amplitude-frequency response curve of the loudspeaker module and the target amplitude-frequency response curve of the loudspeaker module, and the target amplitude-frequency response curve of the loudspeaker module.
  • the phase frequency response curve and the target phase frequency response curve of the speaker module are used to obtain the filter parameters of the speaker module;
  • the target debugging mode is the multi-channel mode
  • synthesizing the amplitude-frequency response curve of each speaker module to obtain the gain setting value of each speaker module may include:
  • each speaker module Take one octave bandwidth in the sensitivity area of the amplitude-frequency response curve of each speaker module, and take four points in each bandwidth according to 1/3otc to calculate the arithmetic mean of the sound pressure level corresponding to each bandwidth , And the frequency at which the arithmetic mean of sound pressure level drops by 3dB and the frequency of the intersection of the loudspeaker module's amplitude-frequency response curve, determine the effective frequency band of each loudspeaker module, and calculate the average sound pressure level in the effective frequency band, and The gain setting value of each speaker module is determined based on the magnitude relationship of the average sound pressure level of the effective frequency band of the speaker module.
  • Integrating the maximum sound pressure level curve and resonance frequency of each speaker module to determine the crossover point including: taking the resonance frequency of the speaker module with the highest frequency as the reference frequency, and obtaining the crossover frequency point of the maximum sound pressure level curve of all speaker modules, It is determined whether the frequency of the crossover frequency point is greater than the reference frequency, if it is greater, the crossover frequency point is used to determine the frequency division point, and if it is less than or equal to, the reference frequency is used to determine the frequency division point.
  • the first high-pass filter and the first low-pass filter of each speaker module are generated according to the crossover point, and an octave bandwidth is determined from the effective area of the amplitude-frequency response curve of each speaker module, where the effective area is The most sensitive area on the amplitude-frequency response curve of the loudspeaker module, and the calculation of the arithmetic mean of the sound pressure level of each bandwidth; and determine the target straight line corresponding to the arithmetic mean of the sound pressure level of each bandwidth, and obtain each target
  • the intersection frequency point of the straight line and the amplitude-frequency response curve of each speaker module, and the second low-pass filter and the second high-pass filter of each speaker module are generated according to the intersection frequency point; wherein, the sound pressure level of each bandwidth
  • the arithmetic mean can be calculated by taking 4 points on the bandwidth according to 1/3otc, and the target straight line is at the point where the arithmetic mean of the sound pressure level of the bandwidth is reduced by 10dB;
  • each speaker module By comparing the resonance frequency of each speaker module, determine the target low of each speaker module from the first high-pass filter, first low-pass filter, second low-pass filter, and second high-pass filter of each speaker module.
  • the target amplitude-frequency response curve of each speaker module is generated according to the gain setting value of each speaker module, the target high-pass filter and the target low-pass filter, and the target amplitude-frequency response curve of each speaker module is generated.
  • the target high-pass filter and the target low-pass filter generate the target phase-frequency response curve of each speaker module; and, by fitting the amplitude-frequency response curve and target amplitude-frequency response curve of each speaker module, and the target amplitude-frequency response curve of each speaker module
  • the phase-frequency response curve and the target phase-frequency response curve are obtained to obtain the filter parameters of each speaker module, and the filter parameters, protection voltage and time delay setting values of each speaker module are packaged into the presets of each speaker module.
  • the number of frequency division points is the number of channels minus 1.
  • the first low-pass filter and the first high-pass filter can be obtained respectively.
  • the resonance frequency of each speaker module determine from the first high-pass filter, first low-pass filter, second low-pass filter, and second high-pass filter of each speaker module.
  • the implementation of the target low-pass filter and the target high-pass filter of each speaker module is introduced: suppose that a, b, and c represent 3 different speaker modules, and F1, F2, F3 represent the resonance frequencies of the 3 speaker modules , D and E are the crossover points of the three speaker modules.
  • the first high-pass filter of each speaker module generated according to the crossover point includes the first high-pass filter generated according to D and the first high-pass filter generated according to E
  • the first high-pass filter in the same way, the first low-pass filter of each speaker module generated according to the crossover point may include a first low-pass filter generated according to D and a first low-pass filter generated according to E , If F1 ⁇ F2 ⁇ F3, and the frequency of D is less than E, based on this description, the target high-pass filter of a is the second high-pass filter generated based on the intersection frequency point, and the target low-pass filter of a is generated based on D
  • the target high-pass filter of b is the first high-pass filter generated according to D
  • the target low-pass filter of b is the first low-pass filter generated according to E;
  • the target high-pass filter of c is The first high-pass filter generated according to E, and the target low-pass filter of c is the second low-pass filter generated
  • the debugging efficiency and effect of the loudspeaker are effectively improved, and the situation that the loudspeaker module is damaged due to the too low working frequency can be avoided, the accuracy of the measurement can be improved, and a better debugging effect can be achieved.
  • FIG. 4 is a schematic structural diagram of a speaker automatic tuning system disclosed in an embodiment of the present application.
  • the speaker automatic tuning system shown in FIG. 4 may include:
  • the measurement signal module 401 is used to generate a first test signal and send the first test signal to the speaker module; wherein the speaker module is composed of one or more speaker units.
  • the control processing module 402 is configured to obtain the first test parameter of the speaker module, and determine the target debugging mode according to the number of the speaker module.
  • the measurement signal module 401 is further configured to process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module.
  • the control processing module 402 is also used to collect the harmonic distortion curve of the loudspeaker module, and determine the second test parameter of the loudspeaker module by detecting the amplitude-frequency response curve of the loudspeaker module and the harmonic distortion curve of the loudspeaker module.
  • the signal processing module 403 is also used to process the first test parameter and the second test parameter according to the instruction of the target debugging mode to obtain the preset of the speaker module.
  • control processing module 402 is used to obtain the first test parameter of the speaker module.
  • the control processing module 402 is used to obtain the first playback signal of the speaker module for the first test signal, and obtain the impulse response curve and the phase-frequency response curve of the speaker module according to the first test signal and the first playback signal, and according to the impulse response
  • the curve determines the delay value of the loudspeaker module, and performs Fourier transform on the impulse response curve to obtain the amplitude-frequency response curve of the loudspeaker module; and, according to the current signal and voltage signal when the loudspeaker module outputs the first playback signal, the loudspeaker module is obtained
  • the impedance curve of the loudspeaker module and the resonance frequency of the loudspeaker module are determined according to the impedance curve of the loudspeaker module.
  • control processing module 402 is also used to obtain the impulse response curve of the loudspeaker module according to the first test signal and the first playback signal, and then to window the pulse generated by the reflected sound in the time domain. Response removal; the control processing module 402 is used to Fourier transform the impulse response curve of the loudspeaker module to obtain the amplitude-frequency response curve of the loudspeaker module.
  • the method is specifically: the control processing module 402 is used to control the impulse response of the processed loudspeaker module The curve is Fourier transformed to obtain the amplitude-frequency response curve of the loudspeaker module. The implementation of this method can improve the accuracy of the measurement and achieve a better debugging effect.
  • control processing module 402 determines the second test parameter of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module is specifically as follows:
  • the control processing module 402 is used to determine the working frequency band of the loudspeaker module according to the amplitude-frequency response curve of the loudspeaker module, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module according to the working frequency band, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module.
  • the initial harmonic distortion curve from the wave distortion curve; determine whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the first preset value; and, when it is greater than or equal to the first preset value, determine that the current signal voltage is The protection voltage of the speaker module, the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module; and, when it is less than the first preset value, the current signal voltage is updated, and the test amplitude-frequency response curve and test harmonic of the speaker module are obtained.
  • Wave distortion curve and, by comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, the average sound pressure level deviation value is obtained, and it is judged whether the average sound pressure level deviation value is less than the second preset value;
  • the second preset value the current signal voltage before being updated is used as the protection voltage of the speaker module, and the initial amplitude-frequency response curve is used as the maximum sound pressure level curve of the speaker module; and, when it is greater than or equal to the second preset value , Determine whether the maximum distortion value in the test harmonic distortion curve is greater than or equal to the first preset value; and, when greater than or equal to the first preset value, use the updated current signal voltage as the protection voltage of the speaker module, and Use the test amplitude-frequency response curve as the maximum sound pressure level curve of the loudspeaker module; and, when it is less than the first preset value, use the test amplitude-frequency response curve as the initial amplitude-frequency response curve, and the test harmonic distortion curve as the initial harmonic Wave distortion curve
  • the method for the control processing module 402 to determine the working frequency band of the speaker module according to the amplitude-frequency response curve of the speaker module is specifically as follows: the control processing module 402 is used to select one of the most sensitive areas on the amplitude-frequency response curve of the speaker module. Octave the bandwidth, and calculate the arithmetic average of the sound pressure level corresponding to the bandwidth by taking four points in the bandwidth according to 1/3otc, and reduce the cross frequency of the amplitude-frequency response curve of the speaker module by 10dB according to the arithmetic average The frequency of the dot determines the working frequency band of the speaker module.
  • the target debugging mode may be a single-channel mode or a multi-channel mode, specifically:
  • the signal processing module 403 is used to process the first test parameter and the second test parameter according to the instructions of the target debugging mode, and the specific method for obtaining the preset of the speaker module may be: the signal processing module 403, It is used to generate a high-pass filter according to the resonance frequency of the speaker module, and determine an octave bandwidth from the effective area of the amplitude-frequency response curve of the speaker module, where the effective area is the most sensitive area on the amplitude-frequency response curve of the speaker module ; And, calculating the arithmetic mean of the sound pressure level of the bandwidth, and determining the target straight line corresponding to the arithmetic mean of the sound pressure level of the bandwidth, and obtaining the intersection frequency point of the target straight line and the amplitude-frequency response curve of the speaker module, and Generate a low-pass filter according to the intersection frequency point with the highest frequency; and generate the target amplitude-frequency response curve and target phase-frequency response curve of the speaker module
  • the signal processing module 403 is used to process the first test parameter and the second test parameter according to the instructions of the target debugging mode, and the specific method for obtaining the preset of the speaker module may be: the signal processing module 403, Used to synthesize the amplitude-frequency response curve of each loudspeaker module to obtain the gain setting value of each loudspeaker module, synthesize the delay value of each loudspeaker module to obtain the delay setting value of each loudspeaker module, and synthesize the set value of each loudspeaker module
  • the maximum sound pressure level curve and the resonance frequency determine the crossover point; and, according to the crossover point, the first high-pass filter and the first low-pass filter of each speaker module are generated, and the amplitude-frequency response curve of each speaker module
  • the effective area determines the bandwidth of one octave, where the effective area is the most sensitive area on the amplitude-frequency response curve of the speaker module, and calculates the arithmetic average of the sound pressure level of each
  • Two high-pass filters and, by comparing the resonance frequency of each speaker module, determine from the first high-pass filter, the first low-pass filter, the second low-pass filter, and the second high-pass filter of each speaker module
  • the target low-pass filter and target high-pass filter of each speaker module, and the target amplitude-frequency response curve of each speaker module is generated according to the gain setting value, target high-pass filter and target low-pass filter of each speaker module, And according to the target high-pass filter and target low-pass filter of each speaker module, the target phase-frequency response curve of each speaker module is generated; and by fitting the amplitude-frequency response curve and target amplitude-frequency response curve of each speaker module , And the phase-frequency response curve and target phase-frequency response curve of each speaker module to obtain the filter parameters of each speaker module, and pack the filter parameters, protection voltage and time delay settings of each speaker module into each The preset of the speaker module.
  • the signal processing module 403 is configured to synthesize the amplitude-frequency response curve of each speaker module to obtain the gain setting value of each speaker module specifically as follows:
  • the signal processing module 403 is used to take an octave bandwidth within the maximum sensitivity area on the amplitude-frequency response curve of each speaker module, and calculate the corresponding bandwidth of each bandwidth by taking four points according to 1/3otc in each bandwidth
  • the average value of the sound pressure level and the magnitude relationship of the average value of the sound pressure level of the effective frequency band of the speaker module are used as the basis to determine the gain setting value of each speaker module.
  • the signal processing module 403 is used to synthesize the maximum sound pressure level curve and the resonance frequency of each speaker module to determine the crossover point specifically as follows:
  • the signal processing module 403 is used to take the resonance frequency of the speaker module with the highest frequency as the reference frequency, and obtain the crossover frequency point of the maximum sound pressure level curve of all the speaker modules, and determine whether the frequency of the crossover frequency point is greater than the reference frequency, if it is greater than , The crossover frequency is used to determine the crossover point. If it is less than or equal to, the reference frequency is used to determine the crossover point.
  • the debugging efficiency and effect of the speaker are effectively improved, and the situation that the speaker module is damaged due to the too low working frequency of the speaker module can be avoided, the measurement accuracy is improved, and a better debugging effect can be achieved.
  • FIG. 5 is a schematic structural diagram of a speaker automatic tuning system disclosed in an embodiment of the present application.
  • the speaker automatic tuning system may include:
  • a memory 501 storing executable program codes
  • a processor 502 coupled to the memory 501;
  • the processor 502 calls the executable program code stored in the memory 501 to execute part or all of the steps performed in FIGS. 1 to 3.
  • the embodiment of the present application discloses a computer-readable storage medium that stores a computer program, where the computer program causes a computer to execute part or all of the steps performed in FIGS. 1 to 3.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium includes read-only Memory (Read-Only Memory, ROM), Random Access Memory (RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CD-ROM (Compact Disc) Read-Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
  • Read-Only Memory ROM
  • RAM Random Access Memory
  • PROM Programmable Read-only Memory
  • EPROM Erasable Programmable Read Only Memory
  • OTPROM One-time Programmable Read-Only Memory
  • EEPROM Electronically-Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory.
  • the essence of the technical solution of this application, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory.
  • a computer device which may be a personal computer, a server or a network device, etc., specifically a processor in a computer device

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

Disclosed are an automatic debugging method and system for a loudspeaker. The method comprises: generating a first test signal, and sending the first test signal to a loudspeaker module, wherein the loudspeaker module is composed of one or more loudspeaker units; acquiring a first test parameter of the loudspeaker module, and determining a target debugging mode according to the number of loudspeaker modules; processing the first test signal according to a resonance frequency of the loudspeaker module to obtain a second test signal, and sending the second test signal to the loudspeaker module; collecting a harmonic distortion curve of the loudspeaker module, and determining a second test parameter of the loudspeaker module by means of detecting an amplitude-frequency response curve of the loudspeaker module and the harmonic distortion curve of the loudspeaker module; and processing the first test parameter and the second test parameter according to the indication of the target debugging mode to obtain presettings of the loudspeaker module. By implementing the embodiments of the present application, the debugging efficiency and effect of the loudspeaker can be effectively improved.

Description

一种扬声器自动调试方法及系统Method and system for automatic adjustment of loudspeaker 技术领域Technical field
本申请涉及扬声器控制技术领域,具体涉及一种扬声器自动调试方法及系统。This application relates to the technical field of loudspeaker control, and in particular to a method and system for automatic loudspeaker debugging.
背景技术Background technique
扬声器系统是指将原声场声音的声波信号转换的电信号通过一些电子设备的处理,重放声波信号的设备。其中,为保证扬声器的输出充分还原原发声场声音,通常需要对扬声器进行调试,而现有的扬声器的调试往往由专业的电声工程师依赖经验进行手动完成,调试效率和效果通常不佳。The speaker system refers to the equipment that converts the electric signal of the sound wave signal of the original sound field through some electronic equipment to reproduce the sound wave signal. Among them, in order to ensure that the output of the speaker fully restores the original sound field sound, it is usually necessary to debug the speaker, and the debugging of the existing speaker is often done manually by professional electroacoustic engineers relying on experience, and the debugging efficiency and effect are usually not good.
发明内容Summary of the invention
本申请实施例公开一种扬声器自动调试方法及系统,能够有效提高扬声器的调试效率和效果。The embodiments of the present application disclose a speaker automatic debugging method and system, which can effectively improve the debugging efficiency and effect of the speaker.
本申请实施例第一方面公开一种扬声器自动调试方法,所述方法包括:The first aspect of the embodiments of the present application discloses an automatic speaker debugging method, the method includes:
产生第一测试信号,并将所述第一测试信号发送至扬声器模块;其中,所述扬声器模块由一个或者多个扬声器单元组成;Generating a first test signal, and sending the first test signal to the speaker module; wherein the speaker module is composed of one or more speaker units;
获取所述扬声器模块的第一测试参数,并依据所述扬声器模块的数目确定目标调试模式;其中,所述第一测试参数至少包括所述扬声器模块的共振频率和幅频响应曲线;Acquire the first test parameter of the speaker module, and determine the target debugging mode according to the number of the speaker module; wherein, the first test parameter includes at least the resonance frequency and amplitude-frequency response curve of the speaker module;
依据所述扬声器模块的共振频率处理所述第一测试信号得到第二测试信号,并将所述第二测试信号发送至所述扬声器模块;Processing the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and sending the second test signal to the speaker module;
采集所述扬声器模块的谐波失真曲线,并通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数;Collecting the harmonic distortion curve of the speaker module, and determining the second test parameter of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module;
按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置。According to the instruction of the target debugging mode, the first test parameter and the second test parameter are processed to obtain the preset of the speaker module.
作为一种可选的实施方式,在本申请实施例第一方面中,所述第一测试参数还包括所述扬声器模块的时延值、相频响应曲线以及阻抗曲线,所述获取所述扬声器模块的第一测试参数,包括:As an optional implementation manner, in the first aspect of the embodiments of the present application, the first test parameter further includes a delay value, a phase-frequency response curve, and an impedance curve of the speaker module, and the acquisition of the speaker module The first test parameters of the module include:
获取所述扬声器模块针对所述第一测试信号的第一播放信号,并依据所述第一测试信号和所述第一播放信号得到所述扬声器模块的脉冲响应曲线和相频响应曲线,以及依据所述脉冲响应曲线确定所述扬声器模块的时延值,以及对所述脉冲响应曲线进行傅里叶变换得到所述扬声器模块的幅频响应曲线;Obtain the first playback signal of the speaker module for the first test signal, and obtain the impulse response curve and phase-frequency response curve of the speaker module according to the first test signal and the first playback signal, and Determining the time delay value of the speaker module by the impulse response curve, and performing Fourier transform on the impulse response curve to obtain the amplitude-frequency response curve of the speaker module;
依据所述扬声器模块输出所述第一播放信号时的电流信号和电压信号,得到所述扬声器模块的阻抗曲线,以及依据所述扬声器模块的阻抗曲线确定所述扬声器模块的共振频率。The impedance curve of the speaker module is obtained according to the current signal and the voltage signal when the speaker module outputs the first playback signal, and the resonance frequency of the speaker module is determined according to the impedance curve of the speaker module.
作为一种可选的实施方式,在本申请实施例第一方面中,若所述第二测试参数包括所述扬声器模块的保护电压和最大声压级曲线,所述通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数,包括:As an optional implementation manner, in the first aspect of the embodiments of the present application, if the second test parameter includes the protection voltage and the maximum sound pressure level curve of the speaker module, the The amplitude-frequency response curve and the harmonic distortion curve of the speaker module determine the second test parameter of the speaker module, including:
依据扬声器模块的幅频响应曲线确定所述扬声器模块的工作频段,以及依据所述工作频段,从所述 扬声器模块的幅频响应曲线上获取初始幅频响应曲线,以及从所述扬声器模块的谐波失真曲线上获取初始谐波失真曲线;Determine the working frequency band of the loudspeaker module according to the amplitude-frequency response curve of the loudspeaker module, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module according to the working frequency band, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module; Obtain the initial harmonic distortion curve on the wave distortion curve;
判断所述初始谐波失真曲线中的最大失真值是否大于或者等于第一预设值;Judging whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to a first preset value;
若是,确定当前信号电压为所述扬声器模块的保护电压,所述初始幅频响应曲线为所述扬声器模块的最大声压级曲线;If yes, determine that the current signal voltage is the protection voltage of the speaker module, and the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module;
若否,更新所述当前信号电压,并获取所述扬声器模块的测试幅频响应曲线和测试谐波失真曲线;If not, update the current signal voltage, and obtain the test amplitude-frequency response curve and the test harmonic distortion curve of the speaker module;
通过比对所述初始幅频响应曲线和所述测试幅频响应曲线,得到平均声压级偏差值,并判断所述平均声压级偏差值是否小于第二预设值;By comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, an average sound pressure level deviation value is obtained, and it is determined whether the average sound pressure level deviation value is less than a second preset value;
若是,将未更新前的所述当前信号电压作为所述扬声器模块的保护电压,并将所述初始幅频响应曲线作为所述扬声器模块的最大声压级曲线;If yes, use the current signal voltage before being updated as the protection voltage of the speaker module, and use the initial amplitude-frequency response curve as the maximum sound pressure level curve of the speaker module;
若否,判断所述测试谐波失真曲线中的最大失真值是否大于或者等于所述第一预设值;If not, determine whether the maximum distortion value in the test harmonic distortion curve is greater than or equal to the first preset value;
若是,将更新后的所述当前信号电压作为所述扬声器模块的保护电压,并将所述测试幅频响应曲线作为所述扬声器模块的最大声压级曲线;If yes, use the updated current signal voltage as the protection voltage of the speaker module, and use the test amplitude-frequency response curve as the maximum sound pressure level curve of the speaker module;
若否,将所述测试幅频响应曲线作为所述初始幅频响应曲线,并将所述测试谐波失真曲线作为所述初始谐波失真曲线,以及执行所述的更新所述当前信号电压,直至确定出所述扬声器模块的保护电压和所述扬声器模块的最大声压级曲线。If not, use the test amplitude-frequency response curve as the initial amplitude-frequency response curve, and use the test harmonic distortion curve as the initial harmonic distortion curve, and perform the update of the current signal voltage, Until the protection voltage of the speaker module and the maximum sound pressure level curve of the speaker module are determined.
作为一种可选的实施方式,在本申请实施例第一方面中,若所述目标调试模式为单通道模式,所述按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置,包括:As an optional implementation manner, in the first aspect of the embodiments of the present application, if the target debugging mode is the single-channel mode, the first test parameter and the first test parameter are processed according to the instruction of the target debugging mode. 2. Test parameters to obtain the preset of the speaker module, including:
依据所述扬声器模块的共振频率生成高通滤波器,并从所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算所述带宽的声压级的算术平均值,以及确定所述声压级的算术平均值对应的目标直线,以及获取所述目标直线与所述扬声器模块的幅频响应曲线的相交频点,以及依据频率最高的所述相交频点生成低通滤波器,以及根据所述高通滤波器和所述低通滤波器生成所述扬声器模块的目标幅频响应曲线和目标相频响应曲线,以及通过拟合所述扬声器模块的幅频响应曲线和所述扬声器模块的目标幅频响应曲线,以及所述扬声器模块的相频响应曲线和所述扬声器模块的目标相频响应曲线,得到所述扬声器模块的滤波器参数,以及将所述滤波器参数和所述保护电压打包为所述扬声器模块的预置。A high-pass filter is generated according to the resonance frequency of the speaker module, and an octave bandwidth is determined from the effective area of the amplitude-frequency response curve of the speaker module, wherein the effective area is the amplitude-frequency response of the speaker module The area with the greatest sensitivity on the curve, and calculate the arithmetic mean of the sound pressure level of the bandwidth, and determine the target straight line corresponding to the arithmetic mean of the sound pressure level, and obtain the target straight line and the amplitude of the speaker module The intersection frequency point of the frequency response curve, and generate a low-pass filter according to the intersection frequency point with the highest frequency, and generate the target amplitude-frequency response curve of the loudspeaker module according to the high-pass filter and the low-pass filter Target phase frequency response curve, and by fitting the amplitude frequency response curve of the loudspeaker module and the target amplitude frequency response curve of the loudspeaker module, and the phase frequency response curve of the loudspeaker module and the target phase frequency of the loudspeaker module Response curve, obtain the filter parameter of the speaker module, and pack the filter parameter and the protection voltage into a preset of the speaker module.
作为一种可选的实施方式,在本申请实施例第一方面中,若所述目标调试模式为多通道模式,所述按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置,包括:As an optional implementation manner, in the first aspect of the embodiments of the present application, if the target debugging mode is a multi-channel mode, the first test parameter and the first test parameter are processed according to the instruction of the target debugging mode. 2. Test parameters to obtain the preset of the speaker module, including:
综合每一所述扬声器模块的幅频响应曲线得到每一所述扬声器模块的增益设置值,并综合每一所述扬声器模块的时延值得到每一所述扬声器模块的时延设置值,以及综合每一所述扬声器模块的最大声压级曲线和共振频率确定分频点,以及依据所述分频点生成每一所述扬声器模块的第一高通滤波器和第一低通滤波器,以及从每一所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所 述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算每一所述带宽的声压级的算术平均值;以及确定每一所述带宽的声压级的算术平均值对应的目标直线,以及获取每一所述目标直线与每一所述扬声器模块的幅频响应曲线的相交频点,以及依据所述相交频点生成每一扬声器模块的第二低通滤波器和第二高通滤波器,以及,通过对比每一所述扬声器模块的共振频率,从每一所述扬声器模块的第一高通滤波器、第一低通滤波器、第二低通滤波器以及第二高通滤波器中确定每一所述扬声器模块的目标低通滤波器和目标高通滤波器,以及依据每一所述扬声器模块的增益设置值、目标高通滤波器以及目标低通滤波器,生成每一所述扬声器模块的目标幅频响应曲线,以及依据每一所述扬声器模块的目标高通滤波器和目标低通滤波器,生成每一所述扬声器模块的目标相频响应曲线;以及,通过拟合每一所述扬声器模块的幅频响应曲线和目标幅频响应曲线,以及每一所述扬声器模块的相频响应曲线和目标相频响应曲线,得到每一所述扬声器模块的滤波器参数,以及将每一所述扬声器模块的滤波器参数、保护电压以及时延设置值打包为每一所述扬声器模块的预置。Synthesize the amplitude-frequency response curve of each of the loudspeaker modules to obtain the gain setting value of each of the loudspeaker modules, synthesize the delay value of each of the loudspeaker modules to obtain the delay setting value of each of the loudspeaker modules, and Combining the maximum sound pressure level curve and resonance frequency of each speaker module to determine a crossover point, and generate a first high-pass filter and a first low-pass filter for each speaker module according to the crossover point, and Determine the bandwidth of one octave from the effective area of the amplitude-frequency response curve of each loudspeaker module, where the effective area is the most sensitive area on the amplitude-frequency response curve of the loudspeaker module, and calculate each The arithmetic mean of the sound pressure level of the bandwidth; and determining the target straight line corresponding to the arithmetic mean of the sound pressure level of each of the bandwidths, and obtaining the amplitude-frequency response of each of the target straight lines and each of the speaker modules The intersection frequency point of the curve, and the second low-pass filter and the second high-pass filter of each speaker module are generated according to the intersection frequency point, and by comparing the resonance frequency of each speaker module, from each speaker module The first high-pass filter, the first low-pass filter, the second low-pass filter, and the second high-pass filter of the speaker module determine the target low-pass filter and the target high-pass filter of each of the speaker modules, and Generate the target amplitude-frequency response curve of each speaker module according to the gain setting value, target high-pass filter, and target low-pass filter of each speaker module, and according to the target high-pass filter of each speaker module And a target low-pass filter to generate the target phase-frequency response curve of each speaker module; and, by fitting the amplitude-frequency response curve and target amplitude-frequency response curve of each speaker module, and each speaker The phase-frequency response curve and the target phase-frequency response curve of the module are used to obtain the filter parameters of each loudspeaker module, and the filter parameters, protection voltage and time delay setting values of each loudspeaker module are packaged into each The presets of the speaker module are described.
本申请实施例第二方面公开一种扬声器自动调试系统,包括:The second aspect of the embodiments of the present application discloses an automatic speaker debugging system, which includes:
测量信号模块,用于产生第一测试信号,并将所述第一测试信号发送至扬声器模块;其中,所述扬声器模块由一个或者多个扬声器单元组成;The measurement signal module is used to generate a first test signal and send the first test signal to the speaker module; wherein, the speaker module is composed of one or more speaker units;
控制处理模块,用于获取所述扬声器模块的第一测试参数,并依据所述扬声器模块的数目确定目标调试模式;其中,所述第一测试参数至少包括所述扬声器模块的共振频率和幅频响应曲线;The control processing module is configured to obtain the first test parameter of the speaker module, and determine the target debugging mode according to the number of the speaker module; wherein, the first test parameter includes at least the resonance frequency and amplitude frequency of the speaker module Response curve
所述测量信号模块,还用于依据所述扬声器模块的共振频率处理所述第一测试信号得到第二测试信号,并将所述第二测试信号发送至所述扬声器模块;The measurement signal module is further configured to process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module;
所述控制处理模块,还用于采集所述扬声器模块的谐波失真曲线,并通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数;The control processing module is also used to collect the harmonic distortion curve of the speaker module, and determine the second harmonic distortion curve of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module. Test parameters;
信号处理模块,还用于按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置。The signal processing module is further configured to process the first test parameter and the second test parameter according to the instruction of the target debugging mode to obtain the preset of the speaker module.
作为一种可选的实施方式,在本申请实施例第二方面中,所述第一测试参数还包括所述扬声器模块的时延值、相频响应曲线以及阻抗曲线,所述控制处理模块用于获取所述扬声器模块的第一测试参数的方式具体为:As an optional implementation manner, in the second aspect of the embodiment of the present application, the first test parameter further includes the delay value, phase-frequency response curve, and impedance curve of the speaker module, and the control processing module uses The specific method for obtaining the first test parameter of the speaker module is as follows:
所述控制处理模块,用于获取所述扬声器模块针对所述第一测试信号的第一播放信号,并依据所述第一测试信号和所述第一播放信号得到所述扬声器模块的脉冲响应曲线,以及依据所述脉冲响应曲线确定所述扬声器模块的时延值和相频响应曲线,以及对所述脉冲响应曲线进行傅里叶变换得到所述扬声器模块的幅频响应曲线;以及,依据所述扬声器模块输出所述第一播放信号时的电流信号和电压信号,得到所述扬声器模块的阻抗曲线,以及依据所述扬声器模块的阻抗曲线确定所述扬声器模块的共振频率。The control processing module is configured to obtain a first playback signal of the speaker module for the first test signal, and obtain an impulse response curve of the speaker module according to the first test signal and the first playback signal , And determining the time delay value and phase-frequency response curve of the speaker module according to the impulse response curve, and performing Fourier transform on the impulse response curve to obtain the amplitude-frequency response curve of the speaker module; and, according to The loudspeaker module outputs the current signal and the voltage signal when the first playing signal is output to obtain the impedance curve of the loudspeaker module, and the resonance frequency of the loudspeaker module is determined according to the impedance curve of the loudspeaker module.
作为一种可选的实施方式,在本申请实施例第二方面中,若所述第二测试参数包括所述扬声器模块的保护电压和最大声压级曲线,所述控制处理模块用于通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数的方式具体为:As an optional implementation manner, in the second aspect of the embodiments of the present application, if the second test parameter includes the protection voltage and the maximum sound pressure level curve of the speaker module, the control processing module is configured to pass the detection The method for determining the second test parameter of the speaker module by the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module is specifically as follows:
所述控制处理模块,用于依据扬声器模块的幅频响应曲线确定所述扬声器模块的工作频段,以及依 据所述工作频段,从所述扬声器模块的幅频响应曲线上获取初始幅频响应曲线,以及从所述扬声器模块的谐波失真曲线上获取初始谐波失真曲线;判断所述初始谐波失真曲线中的最大失真值是否大于或者等于第一预设值;以及,在大于或者等于所述第一预设值时,确定当前信号电压为所述扬声器模块的保护电压,所述初始幅频响应曲线为所述扬声器模块的最大声压级曲线;以及,在小于所述第一预设值时,更新所述当前信号电压,并获取所述扬声器模块的测试幅频响应曲线和测试谐波失真曲线;以及,通过比对所述初始幅频响应曲线和所述测试幅频响应曲线,得到平均声压级偏差值,并判断所述平均声压级偏差值是否小于第二预设值;以及,在小于所述第二预设值时,将未更新前的所述当前信号电压作为所述扬声器模块的保护电压,并将所述初始幅频响应曲线作为所述扬声器模块的最大声压级曲线;以及,在大于或者等于所述第二预设值时,判断所述测试谐波失真曲线中的最大失真值是否大于或者等于所述第一预设值;以及,在大于或者等于所述第一预设值时,将更新后的所述当前信号电压作为所述扬声器模块的保护电压,并将所述测试幅频响应曲线作为所述扬声器模块的最大声压级曲线;以及,在小于所述第一预设值时,将所述测试幅频响应曲线作为所述初始幅频响应曲线,并将所述测试谐波失真曲线作为所述初始谐波失真曲线,以及执行所述的更新所述当前信号电压,直至确定出所述扬声器模块的保护电压和所述扬声器模块的最大声压级曲线。The control processing module is configured to determine the working frequency band of the speaker module according to the amplitude-frequency response curve of the speaker module, and obtain an initial amplitude-frequency response curve from the amplitude-frequency response curve of the speaker module according to the working frequency band, And obtain the initial harmonic distortion curve from the harmonic distortion curve of the loudspeaker module; determine whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the first preset value; and, if the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the At the first preset value, it is determined that the current signal voltage is the protection voltage of the speaker module, and the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module; and, when it is less than the first preset value When the current signal voltage is updated, the test amplitude-frequency response curve and the test harmonic distortion curve of the speaker module are obtained; and, by comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, it is obtained Average sound pressure level deviation value, and determine whether the average sound pressure level deviation value is less than a second preset value; and, when it is less than the second preset value, use the current signal voltage before being updated as the The protection voltage of the loudspeaker module, and the initial amplitude-frequency response curve as the maximum sound pressure level curve of the loudspeaker module; and, when it is greater than or equal to the second preset value, judging the test harmonic distortion Whether the maximum distortion value in the curve is greater than or equal to the first preset value; and, when greater than or equal to the first preset value, use the updated current signal voltage as the protection voltage of the speaker module , And use the test amplitude-frequency response curve as the maximum sound pressure level curve of the loudspeaker module; and, when it is less than the first preset value, use the test amplitude-frequency response curve as the initial amplitude-frequency response Curve, and use the test harmonic distortion curve as the initial harmonic distortion curve, and perform the update of the current signal voltage until the protection voltage of the speaker module and the maximum sound of the speaker module are determined Pressure grade curve.
作为一种可选的实施方式,在本申请实施例第二方面中,若所述目标调试模式为单通道模式,所述信号处理模块用于按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置的方式具体为:As an optional implementation manner, in the second aspect of the embodiments of the present application, if the target debugging mode is the single-channel mode, the signal processing module is configured to process the first The method for obtaining the preset of the speaker module for the first test parameter and the second test parameter is specifically as follows:
所述信号处理模块,用于依据所述扬声器模块的共振频率生成高通滤波器,并从所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算所述带宽的声压级的算术平均值,以及确定所述声压级的算术平均值对应的目标直线,以及获取所述目标直线与所述扬声器模块的幅频响应曲线的相交频点,以及依据频率最高的所述相交频点生成低通滤波器,以及根据所述高通滤波器和所述低通滤波器生成所述扬声器模块的目标幅频响应曲线和目标相频响应曲线,以及通过拟合所述扬声器模块的幅频响应曲线和所述扬声器模块的目标幅频响应曲线,以及所述扬声器模块的相频响应曲线和所述扬声器模块的目标相频响应曲线,得到所述扬声器模块的滤波器参数,以及将所述滤波器参数和所述保护电压打包为所述扬声器模块的预置。The signal processing module is configured to generate a high-pass filter according to the resonance frequency of the speaker module, and determine a bandwidth of one octave from the effective area of the amplitude-frequency response curve of the speaker module, wherein the effective area is The most sensitive area on the amplitude-frequency response curve of the loudspeaker module, and calculating the arithmetic mean of the sound pressure level of the bandwidth, and determining the target straight line corresponding to the arithmetic mean of the sound pressure level, and obtaining the target The intersection frequency point of the straight line and the amplitude-frequency response curve of the speaker module, and the low-pass filter is generated according to the intersection frequency point with the highest frequency, and the speaker is generated according to the high-pass filter and the low-pass filter The target amplitude-frequency response curve and target phase-frequency response curve of the module, and by fitting the amplitude-frequency response curve of the loudspeaker module and the target amplitude-frequency response curve of the loudspeaker module, and the phase-frequency response curve of the loudspeaker module and The target phase-frequency response curve of the loudspeaker module is used to obtain the filter parameters of the loudspeaker module, and the filter parameters and the protection voltage are packaged as a preset of the loudspeaker module.
作为一种可选的实施方式,在本申请实施例第二方面中,若所述目标调试模式为多通道模式,所述信号处理模块用于按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置的方式具体为:As an optional implementation manner, in the second aspect of the embodiments of the present application, if the target debugging mode is the multi-channel mode, the signal processing module is configured to process the first The method for obtaining the preset of the speaker module for the first test parameter and the second test parameter is specifically as follows:
所述信号处理模块,用于综合每一所述扬声器模块的幅频响应曲线得到每一所述扬声器模块的增益设置值,并综合每一所述扬声器模块的时延值得到每一所述扬声器模块的时延设置值,以及综合每一所述扬声器模块的最大声压级曲线和共振频率确定分频点,以及依据所述分频点生成每一所述扬声器模块的第一高通滤波器和第一低通滤波器,以及从每一所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算 每一所述带宽的声压级的算术平均值;以及确定每一所述带宽的声压级的算术平均值对应的目标直线,以及获取每一所述目标直线与每一所述扬声器模块的幅频响应曲线的相交频点,以及依据所述相交频点生成每一扬声器模块的第二低通滤波器和第二高通滤波器,以及,通过对比每一所述扬声器模块的共振频率,从每一所述扬声器模块的第一高通滤波器、第一低通滤波器、第二低通滤波器以及第二高通滤波器中确定每一所述扬声器模块的目标低通滤波器和目标高通滤波器,以及依据每一所述扬声器模块的增益设置值、目标高通滤波器以及目标低通滤波器,生成每一所述扬声器模块的目标幅频响应曲线,以及依据每一所述扬声器模块的目标高通滤波器和目标低通滤波器,生成每一所述扬声器模块的目标相频响应曲线;以及,通过拟合每一所述扬声器模块的幅频响应曲线和目标幅频响应曲线,以及每一所述扬声器模块的相频响应曲线和目标相频响应曲线,得到每一所述扬声器模块的滤波器参数,以及将每一所述扬声器模块的滤波器参数、保护电压以及时延设置值打包为每一所述扬声器模块的预置。The signal processing module is configured to synthesize the amplitude-frequency response curve of each of the loudspeaker modules to obtain the gain setting value of each of the loudspeaker modules, and synthesize the delay value of each of the loudspeaker modules to obtain each of the loudspeakers The time delay setting value of the module, and the maximum sound pressure level curve and resonance frequency of each speaker module are combined to determine the crossover point, and the first high-pass filter and the first high-pass filter of each speaker module are generated according to the crossover point. A first low-pass filter, and a bandwidth of one octave is determined from the effective area of the amplitude-frequency response curve of each speaker module, wherein the effective area is the maximum sensitivity on the amplitude-frequency response curve of the speaker module And calculate the arithmetic mean of the sound pressure level of each of the bandwidths; and determine the target straight line corresponding to the arithmetic mean of the sound pressure level of each of the bandwidths, and obtain each of the target straight lines and each The intersection frequency point of the amplitude-frequency response curve of the speaker module, and the second low-pass filter and the second high-pass filter of each speaker module are generated according to the intersection frequency point, and by comparing each of the speaker modules Determine the target low-pass filter of each speaker module from the first high-pass filter, first low-pass filter, second low-pass filter, and second high-pass filter of each speaker module Generator and target high-pass filter, and generate the target amplitude-frequency response curve of each speaker module according to the gain setting value, target high-pass filter, and target low-pass filter of each speaker module, and generate the target amplitude-frequency response curve of each speaker module according to each speaker module. The target high-pass filter and target low-pass filter of the speaker module generate a target phase-frequency response curve of each speaker module; and, by fitting the amplitude-frequency response curve and target amplitude-frequency response of each speaker module Curve, and the phase-frequency response curve and target phase-frequency response curve of each speaker module, obtain the filter parameter of each speaker module, and combine the filter parameters and protection voltage of each speaker module in time The delay setting value is packaged as a preset of each speaker module.
本申请实施例第三方面公开一种扬声器自动调试系统,包括:The third aspect of the embodiments of the present application discloses an automatic speaker debugging system, which includes:
存储有可执行程序代码的存储器;A memory storing executable program codes;
与所述存储器耦合的处理器;A processor coupled with the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本申请实施例第一方面公开的所述扬声器自动调试方法的步骤。The processor calls the executable program code stored in the memory to execute the steps of the speaker automatic debugging method disclosed in the first aspect of the embodiments of the present application.
本申请实施例第四方面公开一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令运行时使计算机执行本申请实施例第一方面公开的所述扬声器自动调试方法的步骤。The fourth aspect of the embodiments of the present application discloses a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed, the computer executes the steps of the speaker automatic debugging method disclosed in the first aspect of the embodiments of the present application.
与现有技术相比,本申请实施例具有以下有益效果:Compared with the prior art, the embodiments of the present application have the following beneficial effects:
本申请实施例中,产生第一测试信号,并将所述第一测试信号发送至扬声器模块;其中,所述扬声器模块由一个或者多个扬声器单元组成;获取所述扬声器模块的第一测试参数,并依据所述扬声器模块的数目确定目标调试模式;依据所述扬声器模块的共振频率处理所述第一测试信号得到第二测试信号,并将所述第二测试信号发送至所述扬声器模块;采集所述扬声器模块的谐波失真曲线,并通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数;按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置。通过实施该方法,基于音箱底层的扬声器模块之间、扬声器模块与箱体之间的内在联系,对扬声器模块进行自动调试,有效提高了扬声器的调试效率和效果。In the embodiment of the present application, a first test signal is generated, and the first test signal is sent to the speaker module; wherein the speaker module is composed of one or more speaker units; the first test parameter of the speaker module is acquired , And determine the target debugging mode according to the number of the speaker modules; process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module; Collect the harmonic distortion curve of the loudspeaker module, and determine the second test parameter of the loudspeaker module by detecting the amplitude-frequency response curve of the loudspeaker module and the harmonic distortion curve of the loudspeaker module; according to the target debugging mode To obtain the preset of the speaker module by processing the first test parameter and the second test parameter. By implementing this method, based on the internal connection between the speaker modules at the bottom of the speaker and between the speaker module and the cabinet, the speaker module is automatically debugged, which effectively improves the efficiency and effect of speaker debugging.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造率劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. A person of ordinary skill in the art can obtain other drawings based on these drawings without paying any creative labor.
图1是本申请实施例公开的一种扬声器自动调试方法的流程示意图;FIG. 1 is a schematic flowchart of a method for automatically adjusting a loudspeaker disclosed in an embodiment of the present application;
图2是图1中步骤102的流程示意图;FIG. 2 is a schematic flowchart of step 102 in FIG. 1;
图3是图1中步骤106的流程示意图;FIG. 3 is a schematic flowchart of step 106 in FIG. 1;
图4是本申请实施例公开的一种扬声器自动调试系统的结构示意图;4 is a schematic structural diagram of a speaker automatic debugging system disclosed in an embodiment of the present application;
图5是本申请实施例公开的一种扬声器自动调试系统的结构示意图。Fig. 5 is a schematic structural diagram of a speaker automatic tuning system disclosed in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
需要说明的是,本申请实施例及附图中的术语“包括”“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "including", "having" and any variations thereof in the embodiments of the present application and the drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
本申请实施例公开一种扬声器自动调试方法及系统,能够有效提高扬声器的调试效率和效果,以下进行详细说明。The embodiment of the application discloses a speaker automatic debugging method and system, which can effectively improve the debugging efficiency and effect of the speaker, which will be described in detail below.
实施例一Example one
请参阅图1,图1是本申请实施例公开的一种扬声器自动调试方法的流程示意图,如图1所示的扬声器自动调试方法具体可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a speaker automatic debugging method disclosed in an embodiment of the present application. The speaker automatic debugging method shown in FIG. 1 may specifically include the following steps:
101、产生第一测试信号,并将第一测试信号发送至扬声器模块;其中,扬声器模块由一个或者多个扬声器单元组成。101. Generate a first test signal, and send the first test signal to a speaker module, where the speaker module is composed of one or more speaker units.
其中,若扬声器模块包含多个扬声器单元,该多个扬声器可以为同类型,且以串联或者并联方式连接,第一测试信号可以为粉红噪声信号、扫频信号等。Wherein, if the speaker module includes multiple speaker units, the multiple speakers may be of the same type and connected in series or parallel, and the first test signal may be a pink noise signal, a frequency sweep signal, etc.
102、获取扬声器模块的第一测试参数,该第一测试参数至少包括扬声器模块的共振频率和幅频响应曲线。102. Acquire a first test parameter of the speaker module, where the first test parameter includes at least a resonance frequency and an amplitude-frequency response curve of the speaker module.
其中,在本申请实施例中,第一测试参数还可以包括扬声器模块的时延值、相频响应曲线以及阻抗曲线,图2是步骤102的流程示意图,如图2所示步骤102包括以下步骤:Wherein, in the embodiment of the present application, the first test parameter may also include the delay value, phase-frequency response curve, and impedance curve of the speaker module. FIG. 2 is a schematic flowchart of step 102. As shown in FIG. 2, step 102 includes the following steps :
1021、获取扬声器模块针对第一测试信号的第一播放信号,并依据第一测试信号和第一播放信号得到扬声器模块的脉冲响应曲线和相频响应曲线。1021. Obtain a first playback signal of the speaker module for the first test signal, and obtain an impulse response curve and a phase-frequency response curve of the speaker module according to the first test signal and the first playback signal.
可选的,针对第一测试信号的第一播放信号可以通过麦克风设备采集得到,该麦克风设备可以以无线或者有线方式与扬声器自动调试系统进行交互。Optionally, the first playback signal for the first test signal may be collected by a microphone device, and the microphone device may interact with the automatic speaker debugging system in a wireless or wired manner.
1022、依据扬声器模块的脉冲响应曲线确定扬声器模块的时延值,以及对扬声器模块的脉冲响应曲线进行傅里叶变换得到扬声器模块的幅频响应曲线。1022. Determine the time delay value of the loudspeaker module according to the impulse response curve of the loudspeaker module, and perform Fourier transform on the impulse response curve of the loudspeaker module to obtain the amplitude-frequency response curve of the loudspeaker module.
在本申请实施例中,依据第一测试信号和第一播放信号得到扬声器模块的脉冲响应曲线之后,还可以通过加窗的方式在时域上将反射声所产生的脉冲响应去除;上述对扬声器模块的脉冲响应曲线进行傅里叶变换得到扬声器模块的幅频响应曲线,包括:对经过处理的扬声器模块的脉冲响应曲线进行傅里叶变换得到扬声器模块的幅频响应曲线。实施该方法,可以提高测量的准确度,实现更好的调试效果。In the embodiment of the present application, after obtaining the impulse response curve of the speaker module according to the first test signal and the first playback signal, the impulse response generated by the reflected sound can also be removed in the time domain by adding a window; The Fourier transform of the impulse response curve of the module to obtain the amplitude-frequency response curve of the loudspeaker module includes: performing Fourier transform on the processed impulse response curve of the loudspeaker module to obtain the amplitude-frequency response curve of the loudspeaker module. The implementation of this method can improve the accuracy of the measurement and achieve a better debugging effect.
1023、依据扬声器模块输出第一播放信号时的电流信号和电压信号,得到扬声器模块的阻抗曲线。1023. Obtain an impedance curve of the speaker module according to the current signal and the voltage signal when the speaker module outputs the first playback signal.
1024、依据扬声器模块的阻抗曲线确定扬声器模块的共振频率。1024. Determine the resonance frequency of the speaker module according to the impedance curve of the speaker module.
103、依据扬声器模块的数目确定目标调试模式。103. Determine the target debugging mode according to the number of speaker modules.
104、依据扬声器模块的共振频率处理第一测试信号得到第二测试信号,并将第二测试信号发送至扬声器模块。104. Process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module.
105、采集扬声器模块的谐波失真曲线。105. Collect the harmonic distortion curve of the speaker module.
106、通过检测扬声器模块的幅频响应曲线和扬声器模块的谐波失真曲线确定扬声器模块的第二测试参数。106. Determine the second test parameter of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module.
在本申请实施例中,第二测试参数可以包括扬声器模块的保护电压和最大声压级曲线,图3是步骤106的流程示意图,如图3所示步骤106可以包括以下步骤:In the embodiment of the present application, the second test parameter may include the protection voltage and the maximum sound pressure level curve of the speaker module. FIG. 3 is a schematic flowchart of step 106. As shown in FIG. 3, step 106 may include the following steps:
1061、依据扬声器模块的幅频响应曲线确定扬声器模块的工作频段,以及依据该工作频段,从扬声器模块的幅频响应曲线上获取初始幅频响应曲线,以及从扬声器模块的谐波失真曲线上获取初始谐波失真曲线。1061 Determine the working frequency band of the loudspeaker module according to the amplitude-frequency response curve of the loudspeaker module, and according to the working frequency band, obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module, and obtain the harmonic distortion curve of the loudspeaker module Initial harmonic distortion curve.
其中,依据扬声器模块的幅频响应曲线确定扬声器模块的工作频段包括:在扬声器模块的幅频响应曲线上灵敏度最大的区域内取一个倍频程的带宽,并在该带宽中按照1/3otc取四点计算该带宽对应的声压级的算术平均值,以及依据该算术平均值下降10dB与扬声器模块的幅频响应曲线的相交频点的频率确定扬声器模块的工作频段。Among them, determining the working frequency band of the loudspeaker module according to the amplitude-frequency response curve of the loudspeaker module includes: taking a bandwidth of one octave in the area with the greatest sensitivity on the amplitude-frequency response curve of the loudspeaker module, and taking the bandwidth according to 1/3otc. Calculate the arithmetic mean of the sound pressure level corresponding to the bandwidth at four points, and determine the working frequency band of the loudspeaker module according to the frequency at which the arithmetic mean drops 10dB and the intersection frequency of the amplitude-frequency response curve of the loudspeaker module.
1062、判断初始谐波失真曲线中的最大失真值是否大于或者等于第一预设值,若是,执行步骤1063;若否,执行步骤1064。1062. Determine whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the first preset value; if yes, perform step 1063; if not, perform step 1064.
1063、确定当前信号电压为扬声器模块的保护电压,初始幅频响应曲线为扬声器模块的最大声压级曲线。1063. Determine that the current signal voltage is the protection voltage of the speaker module, and the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module.
1064、更新当前信号电压,并获取扬声器模块的测试幅频响应曲线和测试谐波失真曲线。1064. Update the current signal voltage, and obtain the test amplitude-frequency response curve and test harmonic distortion curve of the speaker module.
1065、通过比对初始幅频响应曲线和测试幅频响应曲线,得到平均声压级偏差值,并判断平均声压级偏差值是否小于第二预设值。若是,执行步骤1066;若否,执行步骤1067。1065. Obtain an average sound pressure level deviation value by comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, and determine whether the average sound pressure level deviation value is less than the second preset value. If yes, go to step 1066; if not, go to step 1067.
1066、将未更新前的当前信号电压作为扬声器模块的保护电压,并将初始幅频响应曲线作为扬声器模块的最大声压级曲线。1066. Use the current signal voltage before updating as the protection voltage of the speaker module, and use the initial amplitude-frequency response curve as the maximum sound pressure level curve of the speaker module.
1067、判断测试谐波失真曲线中的最大失真值是否大于或者等于第一预设值,若是,执行步骤1068;若否,执行步骤1069。1067. Determine whether the maximum distortion value in the test harmonic distortion curve is greater than or equal to the first preset value, if yes, perform step 1068; if not, perform step 1069.
1068、将更新后的当前信号电压作为扬声器模块的保护电压,并将测试幅频响应曲线作为扬声器模块的最大声压级曲线。1068. Use the updated current signal voltage as the protection voltage of the speaker module, and use the test amplitude-frequency response curve as the maximum sound pressure level curve of the speaker module.
1069、将测试幅频响应曲线作为初始幅频响应曲线,并将测试谐波失真曲线作为初始谐波失真曲线,以及执行步骤1064。1069. Use the test amplitude-frequency response curve as the initial amplitude-frequency response curve, and use the test harmonic distortion curve as the initial harmonic distortion curve, and perform step 1064.
107、按照目标调试模式的指示,处理第一测试参数和第二测试参数,得到扬声器模块的预置。107. According to the instruction of the target debugging mode, process the first test parameter and the second test parameter to obtain the preset of the speaker module.
在本申请实施例中,若目标调试模式为单通道模式,按照目标调试模式的指示,处理第一测试参数 和第二测试参数,得到扬声器模块的预置,包括:In the embodiment of the present application, if the target debugging mode is the single-channel mode, the first test parameter and the second test parameter are processed according to the instructions of the target debugging mode to obtain the preset of the speaker module, including:
依据扬声器模块的共振频率生成高通滤波器,并从扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,有效区域为扬声器模块的幅频响应曲线上灵敏度最大的区域;Generate a high-pass filter according to the resonance frequency of the speaker module, and determine an octave bandwidth from the effective area of the amplitude-frequency response curve of the speaker module, where the effective area is the most sensitive area on the amplitude-frequency response curve of the speaker module;
计算上述带宽的声压级的算术平均值,以及确定该带宽的声压级的算术平均值对应的目标直线,以及获取目标直线与扬声器模块的幅频响应曲线的相交频点,以及依据频率最高的相交频点生成低通滤波器;Calculate the arithmetic mean of the sound pressure level of the above bandwidth, and determine the target straight line corresponding to the arithmetic mean of the sound pressure level of the bandwidth, and obtain the intersection frequency point of the target straight line and the amplitude-frequency response curve of the loudspeaker module, and based on the highest frequency The intersecting frequency point generates a low-pass filter;
根据高通滤波器和低通滤波器生成扬声器模块的目标幅频响应曲线和目标相频响应曲线,以及通过拟合扬声器模块的幅频响应曲线和扬声器模块的目标幅频响应曲线,以及扬声器模块的相频响应曲线和扬声器模块的目标相频响应曲线,得到扬声器模块的滤波器参数;Generate the target amplitude-frequency response curve and target phase-frequency response curve of the loudspeaker module according to the high-pass filter and low-pass filter, and fit the amplitude-frequency response curve of the loudspeaker module and the target amplitude-frequency response curve of the loudspeaker module, and the target amplitude-frequency response curve of the loudspeaker module. The phase frequency response curve and the target phase frequency response curve of the speaker module are used to obtain the filter parameters of the speaker module;
将滤波器参数和扬声器模块的保护电压打包为扬声器模块的预置。Pack the filter parameters and the protection voltage of the speaker module as the preset of the speaker module.
若目标调试模式为多通道模式,按照目标调试模式的指示,处理第一测试参数和第二测试参数,得到扬声器模块的预置,包括:If the target debugging mode is the multi-channel mode, follow the instructions of the target debugging mode to process the first test parameter and the second test parameter to obtain the presets of the speaker module, including:
综合每一扬声器模块的幅频响应曲线得到每一扬声器模块的增益设置值,并综合每一扬声器模块的时延值得到每一扬声器模块的时延设置值,以及综合每一扬声器模块的最大声压级曲线和共振频率确定分频点;Synthesize the amplitude-frequency response curve of each loudspeaker module to obtain the gain setting value of each loudspeaker module, synthesize the delay value of each loudspeaker module to obtain the delay setting value of each loudspeaker module, and synthesize the maximum sound of each loudspeaker module The pressure level curve and resonance frequency determine the frequency division point;
在本申请实施例中,综合每一扬声器模块的幅频响应曲线得到每一扬声器模块的增益设置值可以包括:In the embodiment of the present application, synthesizing the amplitude-frequency response curve of each speaker module to obtain the gain setting value of each speaker module may include:
在每一扬声器模块的幅频响应曲线上的灵敏度最大区域内取一个倍频程的带宽,并在每一带宽中按照1/3otc取四点计算每一带宽对应的声压级的算术平均值,以及以声压级的算术平均值下降3dB与扬声器模块的幅频响应曲线的相交频点的频率,确定每一扬声器模块的有效频段,以及计算处于该有效频段的声压级平均值,以及以扬声器模块有效频段的声压级平均值的大小关系为依据,确定每一扬声器模块的增益设置值。Take one octave bandwidth in the sensitivity area of the amplitude-frequency response curve of each speaker module, and take four points in each bandwidth according to 1/3otc to calculate the arithmetic mean of the sound pressure level corresponding to each bandwidth , And the frequency at which the arithmetic mean of sound pressure level drops by 3dB and the frequency of the intersection of the loudspeaker module's amplitude-frequency response curve, determine the effective frequency band of each loudspeaker module, and calculate the average sound pressure level in the effective frequency band, and The gain setting value of each speaker module is determined based on the magnitude relationship of the average sound pressure level of the effective frequency band of the speaker module.
综合每一扬声器模块的最大声压级曲线和共振频率确定分频点,包括:将频率最高的扬声器模块的共振频率作为基准频率,并获取所有扬声器模块的最大声压级曲线的交叉频点,判断该交叉频点的频率是否大于基准频率,若大于,以交叉频点的频率确定分频点,若小于或者等于,以基准频率确定分频点。通过实施该方法,可以避免发生因扬声器模块工作频率过低受损坏的情况。Integrating the maximum sound pressure level curve and resonance frequency of each speaker module to determine the crossover point, including: taking the resonance frequency of the speaker module with the highest frequency as the reference frequency, and obtaining the crossover frequency point of the maximum sound pressure level curve of all speaker modules, It is determined whether the frequency of the crossover frequency point is greater than the reference frequency, if it is greater, the crossover frequency point is used to determine the frequency division point, and if it is less than or equal to, the reference frequency is used to determine the frequency division point. By implementing this method, it is possible to avoid damage to the speaker module due to too low operating frequency.
依据分频点生成每一扬声器模块的第一高通滤波器和第一低通滤波器,以及从每一扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,有效区域为扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算每一带宽的声压级的算术平均值;以及确定每一带宽的声压级的算术平均值对应的目标直线,以及获取每一目标直线与每一扬声器模块的幅频响应曲线的相交频点,以及依据相交频点生成每一扬声器模块的第二低通滤波器和第二高通滤波器;其中,每一带宽的声压级的算术平均值可以按照1/3otc在带宽上取4点计算得到,目标直线处于将带宽的声压级的算术平均值下降10dB处;The first high-pass filter and the first low-pass filter of each speaker module are generated according to the crossover point, and an octave bandwidth is determined from the effective area of the amplitude-frequency response curve of each speaker module, where the effective area is The most sensitive area on the amplitude-frequency response curve of the loudspeaker module, and the calculation of the arithmetic mean of the sound pressure level of each bandwidth; and determine the target straight line corresponding to the arithmetic mean of the sound pressure level of each bandwidth, and obtain each target The intersection frequency point of the straight line and the amplitude-frequency response curve of each speaker module, and the second low-pass filter and the second high-pass filter of each speaker module are generated according to the intersection frequency point; wherein, the sound pressure level of each bandwidth The arithmetic mean can be calculated by taking 4 points on the bandwidth according to 1/3otc, and the target straight line is at the point where the arithmetic mean of the sound pressure level of the bandwidth is reduced by 10dB;
通过对比每一扬声器模块的共振频率,从每一扬声器模块的第一高通滤波器、第一低通滤波器、第二低通滤波器以及第二高通滤波器中确定每一扬声器模块的目标低通滤波器和目标高通滤波器,以及依 据每一扬声器模块的增益设置值、目标高通滤波器以及目标低通滤波器,生成每一扬声器模块的目标幅频响应曲线,以及依据每一扬声器模块的目标高通滤波器和目标低通滤波器,生成每一扬声器模块的目标相频响应曲线;以及,通过拟合每一扬声器模块的幅频响应曲线和目标幅频响应曲线,以及每一扬声器模块的相频响应曲线和目标相频响应曲线,得到每一扬声器模块的滤波器参数,以及将每一扬声器模块的滤波器参数、保护电压以及时延设置值打包为每一扬声器模块的预置。By comparing the resonance frequency of each speaker module, determine the target low of each speaker module from the first high-pass filter, first low-pass filter, second low-pass filter, and second high-pass filter of each speaker module. The target amplitude-frequency response curve of each speaker module is generated according to the gain setting value of each speaker module, the target high-pass filter and the target low-pass filter, and the target amplitude-frequency response curve of each speaker module is generated. The target high-pass filter and the target low-pass filter generate the target phase-frequency response curve of each speaker module; and, by fitting the amplitude-frequency response curve and target amplitude-frequency response curve of each speaker module, and the target amplitude-frequency response curve of each speaker module The phase-frequency response curve and the target phase-frequency response curve are obtained to obtain the filter parameters of each speaker module, and the filter parameters, protection voltage and time delay setting values of each speaker module are packaged into the presets of each speaker module.
其中,需要说明的是,在通道数目大于或者等于3时,分频点的数目为通道数目减1,依据每一分频点可以分别得到第一低通滤波器和第一高通滤波器,下面以3通道为例,对通过对比每一扬声器模块的共振频率,从每一扬声器模块的第一高通滤波器、第一低通滤波器、第二低通滤波器以及第二高通滤波器中确定每一扬声器模块的目标低通滤波器和目标高通滤波器的实现方式进行介绍:假设分别用a、b、c表示3个不同的扬声器模块,F1、F2、F3表示3个扬声器模块的共振频率,D、E为这三个扬声器模块的分频点,此时,上述依据分频点生成的每一扬声器模块的第一高通滤波器包括依据D生成的第一高通滤波器和依据E生成的第一高通滤波器,同理,上述依据分频点生成的每一扬声器模块的第一低通滤波器可以包括依据D生成的第一低通滤波器和依据E生成的第一低通滤波器,若F1<F2<F3,且D的频率小于E,基于该描述,a的目标高通滤波器为依据相交频点生成的第二高通滤波器,a的目标低通滤波器为依据D生成的第一低通滤波器;b的目标高通滤波器为依据D生成的第一高通滤波器,b的目标低通滤波器为依据E生成的第一低通滤波器;c的目标高通滤波器为依据E生成的第一高通滤波器,c的目标低通滤波器为依据相交频点生成的第二低通滤波器。Among them, it should be noted that when the number of channels is greater than or equal to 3, the number of frequency division points is the number of channels minus 1. According to each frequency division point, the first low-pass filter and the first high-pass filter can be obtained respectively. Taking 3 channels as an example, by comparing the resonance frequency of each speaker module, determine from the first high-pass filter, first low-pass filter, second low-pass filter, and second high-pass filter of each speaker module The implementation of the target low-pass filter and the target high-pass filter of each speaker module is introduced: suppose that a, b, and c represent 3 different speaker modules, and F1, F2, F3 represent the resonance frequencies of the 3 speaker modules , D and E are the crossover points of the three speaker modules. At this time, the first high-pass filter of each speaker module generated according to the crossover point includes the first high-pass filter generated according to D and the first high-pass filter generated according to E The first high-pass filter, in the same way, the first low-pass filter of each speaker module generated according to the crossover point may include a first low-pass filter generated according to D and a first low-pass filter generated according to E , If F1<F2<F3, and the frequency of D is less than E, based on this description, the target high-pass filter of a is the second high-pass filter generated based on the intersection frequency point, and the target low-pass filter of a is generated based on D The first low-pass filter; the target high-pass filter of b is the first high-pass filter generated according to D, the target low-pass filter of b is the first low-pass filter generated according to E; the target high-pass filter of c is The first high-pass filter generated according to E, and the target low-pass filter of c is the second low-pass filter generated according to the intersection frequency point.
通过实施上述方法,有效提高了扬声器的调试效率和效果,还可以避免发生因扬声器模块工作频率过低受损坏的情况,还可以提高测量的准确度,实现更好的调试效果。By implementing the above method, the debugging efficiency and effect of the loudspeaker are effectively improved, and the situation that the loudspeaker module is damaged due to the too low working frequency can be avoided, the accuracy of the measurement can be improved, and a better debugging effect can be achieved.
实施例二Example two
请参阅图4,图4是本申请实施例公开的一种扬声器自动调试系统的结构示意图,如图4所示的扬声器自动调试系统可以包括:Please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a speaker automatic tuning system disclosed in an embodiment of the present application. The speaker automatic tuning system shown in FIG. 4 may include:
测量信号模块401,用于产生第一测试信号,并将第一测试信号发送至扬声器模块;其中,扬声器模块由一个或者多个扬声器单元组成。The measurement signal module 401 is used to generate a first test signal and send the first test signal to the speaker module; wherein the speaker module is composed of one or more speaker units.
控制处理模块402,用于获取扬声器模块的第一测试参数,并依据扬声器模块的数目确定目标调试模式。The control processing module 402 is configured to obtain the first test parameter of the speaker module, and determine the target debugging mode according to the number of the speaker module.
测量信号模块401,还用于依据扬声器模块的共振频率处理第一测试信号得到第二测试信号,并将第二测试信号发送至扬声器模块。The measurement signal module 401 is further configured to process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module.
控制处理模块402,还用于采集扬声器模块的谐波失真曲线,并通过检测扬声器模块的幅频响应曲线和扬声器模块的谐波失真曲线确定扬声器模块的第二测试参数。The control processing module 402 is also used to collect the harmonic distortion curve of the loudspeaker module, and determine the second test parameter of the loudspeaker module by detecting the amplitude-frequency response curve of the loudspeaker module and the harmonic distortion curve of the loudspeaker module.
信号处理模块403,还用于按照目标调试模式的指示,处理第一测试参数和第二测试参数,得到扬声器模块的预置。The signal processing module 403 is also used to process the first test parameter and the second test parameter according to the instruction of the target debugging mode to obtain the preset of the speaker module.
作为一种可选的实施方式,在本申请实施例中,控制处理模块402用于获取扬声器模块的第一测试参数的方式具体可以为:As an optional implementation manner, in this embodiment of the present application, the manner in which the control processing module 402 is used to obtain the first test parameter of the speaker module may specifically be:
控制处理模块402,用于获取扬声器模块针对第一测试信号的第一播放信号,并依据第一测试信号和第一播放信号得到扬声器模块的脉冲响应曲线和相频响应曲线,以及依据该脉冲响应曲线确定扬声器模块的时延值,以及对该脉冲响应曲线进行傅里叶变换得到扬声器模块的幅频响应曲线;以及,依据扬声器模块输出第一播放信号时的电流信号和电压信号,得到扬声器模块的阻抗曲线,以及依据扬声器模块的阻抗曲线确定扬声器模块的共振频率。The control processing module 402 is used to obtain the first playback signal of the speaker module for the first test signal, and obtain the impulse response curve and the phase-frequency response curve of the speaker module according to the first test signal and the first playback signal, and according to the impulse response The curve determines the delay value of the loudspeaker module, and performs Fourier transform on the impulse response curve to obtain the amplitude-frequency response curve of the loudspeaker module; and, according to the current signal and voltage signal when the loudspeaker module outputs the first playback signal, the loudspeaker module is obtained The impedance curve of the loudspeaker module and the resonance frequency of the loudspeaker module are determined according to the impedance curve of the loudspeaker module.
在本申请实施例中,控制处理模块402,还用于依据第一测试信号和第一播放信号得到扬声器模块的脉冲响应曲线之后,通过加窗的方式在时域上将反射声所产生的脉冲响应去除;控制处理模块402用于对扬声器模块的脉冲响应曲线进行傅里叶变换得到扬声器模块的幅频响应曲线的方式具体为:控制处理模块402,用于对经过处理的扬声器模块的脉冲响应曲线进行傅里叶变换得到扬声器模块的幅频响应曲线。实施该方法,可以提高测量的准确度,实现更好的调试效果。In the embodiment of the present application, the control processing module 402 is also used to obtain the impulse response curve of the loudspeaker module according to the first test signal and the first playback signal, and then to window the pulse generated by the reflected sound in the time domain. Response removal; the control processing module 402 is used to Fourier transform the impulse response curve of the loudspeaker module to obtain the amplitude-frequency response curve of the loudspeaker module. The method is specifically: the control processing module 402 is used to control the impulse response of the processed loudspeaker module The curve is Fourier transformed to obtain the amplitude-frequency response curve of the loudspeaker module. The implementation of this method can improve the accuracy of the measurement and achieve a better debugging effect.
进一步的,控制处理模块402用于通过检测扬声器模块的幅频响应曲线和扬声器模块的谐波失真曲线确定扬声器模块的第二测试参数的方式具体为:Further, the method for the control processing module 402 to determine the second test parameter of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module is specifically as follows:
控制处理模块402,用于依据扬声器模块的幅频响应曲线确定扬声器模块的工作频段,以及依据该工作频段,从扬声器模块的幅频响应曲线上获取初始幅频响应曲线,以及从扬声器模块的谐波失真曲线上获取初始谐波失真曲线;判断初始谐波失真曲线中的最大失真值是否大于或者等于第一预设值;以及,在大于或者等于第一预设值时,确定当前信号电压为扬声器模块的保护电压,初始幅频响应曲线为扬声器模块的最大声压级曲线;以及,在小于第一预设值时,更新当前信号电压,并获取扬声器模块的测试幅频响应曲线和测试谐波失真曲线;以及,通过比对初始幅频响应曲线和测试幅频响应曲线,得到平均声压级偏差值,并判断平均声压级偏差值是否小于第二预设值;以及,在小于第二预设值时,将未更新前的当前信号电压作为扬声器模块的保护电压,并将初始幅频响应曲线作为扬声器模块的最大声压级曲线;以及,在大于或者等于第二预设值时,判断测试谐波失真曲线中的最大失真值是否大于或者等于第一预设值;以及,在大于或者等于第一预设值时,将更新后的当前信号电压作为扬声器模块的保护电压,并将测试幅频响应曲线作为扬声器模块的最大声压级曲线;以及,在小于第一预设值时,将测试幅频响应曲线作为初始幅频响应曲线,并将测试谐波失真曲线作为初始谐波失真曲线,以及执行上述的更新当前信号电压,直至确定出扬声器模块的保护电压和扬声器模块的最大声压级曲线。The control processing module 402 is used to determine the working frequency band of the loudspeaker module according to the amplitude-frequency response curve of the loudspeaker module, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module according to the working frequency band, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module. Obtain the initial harmonic distortion curve from the wave distortion curve; determine whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the first preset value; and, when it is greater than or equal to the first preset value, determine that the current signal voltage is The protection voltage of the speaker module, the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module; and, when it is less than the first preset value, the current signal voltage is updated, and the test amplitude-frequency response curve and test harmonic of the speaker module are obtained. Wave distortion curve; and, by comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, the average sound pressure level deviation value is obtained, and it is judged whether the average sound pressure level deviation value is less than the second preset value; When the second preset value is used, the current signal voltage before being updated is used as the protection voltage of the speaker module, and the initial amplitude-frequency response curve is used as the maximum sound pressure level curve of the speaker module; and, when it is greater than or equal to the second preset value , Determine whether the maximum distortion value in the test harmonic distortion curve is greater than or equal to the first preset value; and, when greater than or equal to the first preset value, use the updated current signal voltage as the protection voltage of the speaker module, and Use the test amplitude-frequency response curve as the maximum sound pressure level curve of the loudspeaker module; and, when it is less than the first preset value, use the test amplitude-frequency response curve as the initial amplitude-frequency response curve, and the test harmonic distortion curve as the initial harmonic Wave distortion curve, and update the current signal voltage as described above, until the protection voltage of the speaker module and the maximum sound pressure level curve of the speaker module are determined.
其中,控制处理模块402用于依据扬声器模块的幅频响应曲线确定扬声器模块的工作频段的方式具体为:控制处理模块402,用于在扬声器模块的幅频响应曲线上灵敏度最大的区域内取一个倍频程的带宽,并在该带宽中按照1/3otc取四点计算该带宽对应的声压级的算术平均值,以及依据该算术平均值下降10dB与扬声器模块的幅频响应曲线的相交频点的频率确定扬声器模块的工作频段。The method for the control processing module 402 to determine the working frequency band of the speaker module according to the amplitude-frequency response curve of the speaker module is specifically as follows: the control processing module 402 is used to select one of the most sensitive areas on the amplitude-frequency response curve of the speaker module. Octave the bandwidth, and calculate the arithmetic average of the sound pressure level corresponding to the bandwidth by taking four points in the bandwidth according to 1/3otc, and reduce the cross frequency of the amplitude-frequency response curve of the speaker module by 10dB according to the arithmetic average The frequency of the dot determines the working frequency band of the speaker module.
其中,在本申请实施例中,目标调试模式可以为单通道模式或者多通道模式,具体的:Among them, in the embodiment of the present application, the target debugging mode may be a single-channel mode or a multi-channel mode, specifically:
若目标调试模式为单通道模式,信号处理模块403用于按照目标调试模式的指示,处理第一测试参数和第二测试参数,得到扬声器模块的预置的方式具体可以为:信号处理模块403,用于依据扬声器模块的共振频率生成高通滤波器,并从扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,有效区域为扬声器模块的幅频响应曲线上灵敏度最大的区域;以及,计算该带宽的声压级的算术平 均值,以及确定该带宽的声压级的算术平均值对应的目标直线,以及获取目标直线与扬声器模块的幅频响应曲线的相交频点,以及依据频率最高的相交频点生成低通滤波器;以及,根据高通滤波器和低通滤波器生成扬声器模块的目标幅频响应曲线和目标相频响应曲线,以及通过拟合扬声器模块的幅频响应曲线和扬声器模块的目标幅频响应曲线,以及扬声器模块的相频响应曲线和扬声器模块的目标相频响应曲线,得到扬声器模块的滤波器参数;以及,将滤波器参数和扬声器模块的保护电压打包为扬声器模块的预置。If the target debugging mode is the single-channel mode, the signal processing module 403 is used to process the first test parameter and the second test parameter according to the instructions of the target debugging mode, and the specific method for obtaining the preset of the speaker module may be: the signal processing module 403, It is used to generate a high-pass filter according to the resonance frequency of the speaker module, and determine an octave bandwidth from the effective area of the amplitude-frequency response curve of the speaker module, where the effective area is the most sensitive area on the amplitude-frequency response curve of the speaker module ; And, calculating the arithmetic mean of the sound pressure level of the bandwidth, and determining the target straight line corresponding to the arithmetic mean of the sound pressure level of the bandwidth, and obtaining the intersection frequency point of the target straight line and the amplitude-frequency response curve of the speaker module, and Generate a low-pass filter according to the intersection frequency point with the highest frequency; and generate the target amplitude-frequency response curve and target phase-frequency response curve of the speaker module according to the high-pass filter and the low-pass filter, and by fitting the amplitude-frequency response of the speaker module Curve and the target amplitude-frequency response curve of the loudspeaker module, as well as the phase-frequency response curve of the loudspeaker module and the target phase-frequency response curve of the loudspeaker module, to obtain the filter parameters of the loudspeaker module; and pack the filter parameters and the protection voltage of the loudspeaker module It is the preset of the speaker module.
若目标调试模式为多通道模式,信号处理模块403用于按照目标调试模式的指示,处理第一测试参数和第二测试参数,得到扬声器模块的预置的方式具体可以为:信号处理模块403,用于综合每一扬声器模块的幅频响应曲线得到每一扬声器模块的增益设置值,并综合每一扬声器模块的时延值得到每一扬声器模块的时延设置值,以及综合每一扬声器模块的最大声压级曲线和共振频率确定分频点;以及,依据分频点生成每一扬声器模块的第一高通滤波器和第一低通滤波器,以及从每一扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,有效区域为扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算每一带宽的声压级的算术平均值;以及确定每一带宽的声压级的算术平均值对应的目标直线,以及获取每一目标直线与每一扬声器模块的幅频响应曲线的相交频点,以及依据相交频点生成每一扬声器模块的第二低通滤波器和第二高通滤波器;以及,通过对比每一扬声器模块的共振频率,从每一扬声器模块的第一高通滤波器、第一低通滤波器、第二低通滤波器以及第二高通滤波器中确定每一扬声器模块的目标低通滤波器和目标高通滤波器,以及依据每一扬声器模块的增益设置值、目标高通滤波器以及目标低通滤波器,生成每一扬声器模块的目标幅频响应曲线,以及依据每一扬声器模块的目标高通滤波器和目标低通滤波器,生成每一扬声器模块的目标相频响应曲线;以及,通过拟合每一扬声器模块的幅频响应曲线和目标幅频响应曲线,以及每一扬声器模块的相频响应曲线和目标相频响应曲线,得到每一扬声器模块的滤波器参数,以及将每一扬声器模块的滤波器参数、保护电压以及时延设置值打包为每一扬声器模块的预置。If the target debugging mode is the multi-channel mode, the signal processing module 403 is used to process the first test parameter and the second test parameter according to the instructions of the target debugging mode, and the specific method for obtaining the preset of the speaker module may be: the signal processing module 403, Used to synthesize the amplitude-frequency response curve of each loudspeaker module to obtain the gain setting value of each loudspeaker module, synthesize the delay value of each loudspeaker module to obtain the delay setting value of each loudspeaker module, and synthesize the set value of each loudspeaker module The maximum sound pressure level curve and the resonance frequency determine the crossover point; and, according to the crossover point, the first high-pass filter and the first low-pass filter of each speaker module are generated, and the amplitude-frequency response curve of each speaker module The effective area determines the bandwidth of one octave, where the effective area is the most sensitive area on the amplitude-frequency response curve of the speaker module, and calculates the arithmetic average of the sound pressure level of each bandwidth; and determines the sound pressure of each bandwidth The target straight line corresponding to the arithmetic mean value of the stage, and the intersection frequency point of each target straight line and the amplitude-frequency response curve of each speaker module is obtained, and the second low-pass filter and the first low-pass filter of each speaker module are generated according to the intersection frequency point. Two high-pass filters; and, by comparing the resonance frequency of each speaker module, determine from the first high-pass filter, the first low-pass filter, the second low-pass filter, and the second high-pass filter of each speaker module The target low-pass filter and target high-pass filter of each speaker module, and the target amplitude-frequency response curve of each speaker module is generated according to the gain setting value, target high-pass filter and target low-pass filter of each speaker module, And according to the target high-pass filter and target low-pass filter of each speaker module, the target phase-frequency response curve of each speaker module is generated; and by fitting the amplitude-frequency response curve and target amplitude-frequency response curve of each speaker module , And the phase-frequency response curve and target phase-frequency response curve of each speaker module to obtain the filter parameters of each speaker module, and pack the filter parameters, protection voltage and time delay settings of each speaker module into each The preset of the speaker module.
在本申请实施例中,信号处理模块403用于综合每一扬声器模块的幅频响应曲线得到每一扬声器模块的增益设置值的方式具体为:In the embodiment of the present application, the signal processing module 403 is configured to synthesize the amplitude-frequency response curve of each speaker module to obtain the gain setting value of each speaker module specifically as follows:
信号处理模块403,用于在每一扬声器模块的幅频响应曲线上的灵敏度最大区域内取一个倍频程的带宽,并在每一带宽中按照1/3otc取四点计算每一带宽对应的声压级的算术平均值,以及以声压级的算术平均值下降3dB与扬声器模块的幅频响应曲线的相交频点的频率,确定每一扬声器模块的有效频段,以及计算处于该有效频段的声压级平均值,以及以扬声器模块有效频段的声压级平均值的大小关系为依据,确定每一扬声器模块的增益设置值。The signal processing module 403 is used to take an octave bandwidth within the maximum sensitivity area on the amplitude-frequency response curve of each speaker module, and calculate the corresponding bandwidth of each bandwidth by taking four points according to 1/3otc in each bandwidth The arithmetic mean of the sound pressure level, and the frequency at the intersection of the amplitude-frequency response curve of the loudspeaker module with a 3dB drop of the arithmetic mean of the sound pressure level, determine the effective frequency band of each loudspeaker module, and calculate the effective frequency band of each loudspeaker module The average value of the sound pressure level and the magnitude relationship of the average value of the sound pressure level of the effective frequency band of the speaker module are used as the basis to determine the gain setting value of each speaker module.
信号处理模块403用于综合每一扬声器模块的最大声压级曲线和共振频率确定分频点的方式具体为:The signal processing module 403 is used to synthesize the maximum sound pressure level curve and the resonance frequency of each speaker module to determine the crossover point specifically as follows:
信号处理模块403,用于将频率最高的扬声器模块的共振频率作为基准频率,并获取所有扬声器模块的最大声压级曲线的交叉频点,判断该交叉频点的频率是否大于基准频率,若大于,以交叉频点的频率确定分频点,若小于或者等于,以基准频率确定分频点。通过实施该方式,可以避免发生因扬声器模 块工作频率过低受损坏的情况。The signal processing module 403 is used to take the resonance frequency of the speaker module with the highest frequency as the reference frequency, and obtain the crossover frequency point of the maximum sound pressure level curve of all the speaker modules, and determine whether the frequency of the crossover frequency point is greater than the reference frequency, if it is greater than , The crossover frequency is used to determine the crossover point. If it is less than or equal to, the reference frequency is used to determine the crossover point. By implementing this method, it is possible to avoid damage to the loudspeaker module due to too low operating frequency.
通过实施上述扬声器调试系统,有效提高了扬声器的调试效率和效果,还可以避免发生因扬声器模块工作频率过低受损坏的情况,提高了测量的准确度,可以达到更好的调试效果。Through the implementation of the above speaker debugging system, the debugging efficiency and effect of the speaker are effectively improved, and the situation that the speaker module is damaged due to the too low working frequency of the speaker module can be avoided, the measurement accuracy is improved, and a better debugging effect can be achieved.
请参阅图5,图5是本申请实施例公开的一种扬声器自动调试系统的结构示意图。如图5所示,该扬声器自动调试系统可以包括:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of a speaker automatic tuning system disclosed in an embodiment of the present application. As shown in Figure 5, the speaker automatic tuning system may include:
存储有可执行程序代码的存储器501;A memory 501 storing executable program codes;
与存储器501耦合的处理器502;A processor 502 coupled to the memory 501;
其中,处理器502调用存储器501中存储的可执行程序代码,执行图1~图3所执行的部分或全部步骤。Among them, the processor 502 calls the executable program code stored in the memory 501 to execute part or all of the steps performed in FIGS. 1 to 3.
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行图1~图3所执行的部分或全部步骤。The embodiment of the present application discloses a computer-readable storage medium that stores a computer program, where the computer program causes a computer to execute part or all of the steps performed in FIGS. 1 to 3.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. The storage medium includes read-only Memory (Read-Only Memory, ROM), Random Access Memory (RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CD-ROM (Compact Disc) Read-Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
以上对本申请实施例公开的一种扬声器自动调试方法及系统进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,且上述具体个例中步骤序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,可根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The above describes in detail a speaker automatic debugging method and system disclosed in the embodiments of the present application. In this article, specific examples are used to explain the principles and implementation of the present application, and the step numbers in the specific examples above are not the same. It means the inevitable sequence of execution order, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The units described above as separate components may or may not be physically separate, and some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
本文中字符“或”,一般表示前后关联对象是一种“或”的关系。在本申请所提供的实施例中,应理解,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和或或其他信息确定B。另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。若上述集成的单元以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。The character "or" in this text generally means that the associated objects before and after are in an "or" relationship. In the embodiments provided in this application, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B based on A does not mean that B is determined only based on A, and B can also be determined based on A and/or other information. In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit. If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the essence of the technical solution of this application, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory. , Including several requests to make a computer device (which may be a personal computer, a server or a network device, etc., specifically a processor in a computer device) execute some or all of the steps of the above methods of the various embodiments of the present application.
以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The description of the above embodiments is only used to help understand the method and core idea of the application; at the same time, for those of ordinary skill in the art, according to the idea of the application, there will be changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation on this application.

Claims (12)

  1. 一种扬声器自动调试方法,其特征在于,所述方法包括:A speaker automatic debugging method, characterized in that, the method includes:
    产生第一测试信号,并将所述第一测试信号发送至扬声器模块;其中,所述扬声器模块由一个或者多个扬声器单元组成;Generating a first test signal, and sending the first test signal to the speaker module; wherein the speaker module is composed of one or more speaker units;
    获取所述扬声器模块的第一测试参数,并依据所述扬声器模块的数目确定目标调试模式;其中,所述第一测试参数至少包括所述扬声器模块的共振频率和幅频响应曲线;Acquire the first test parameter of the speaker module, and determine the target debugging mode according to the number of the speaker module; wherein, the first test parameter includes at least the resonance frequency and amplitude-frequency response curve of the speaker module;
    依据所述扬声器模块的共振频率处理所述第一测试信号得到第二测试信号,并将所述第二测试信号发送至所述扬声器模块;Processing the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and sending the second test signal to the speaker module;
    采集所述扬声器模块的谐波失真曲线,并通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数;Collecting the harmonic distortion curve of the speaker module, and determining the second test parameter of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module;
    按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置。According to the instruction of the target debugging mode, the first test parameter and the second test parameter are processed to obtain the preset of the speaker module.
  2. 根据权利要求1所述的方法,其特征在于,所述第一测试参数还包括所述扬声器模块的时延值、相频响应曲线以及阻抗曲线,所述获取所述扬声器模块的第一测试参数,包括:The method according to claim 1, wherein the first test parameter further comprises a delay value, a phase-frequency response curve, and an impedance curve of the speaker module, and the first test parameter of the speaker module is obtained ,include:
    获取所述扬声器模块针对所述第一测试信号的第一播放信号,并依据所述第一测试信号和所述第一播放信号得到所述扬声器模块的脉冲响应曲线和相频响应曲线,以及依据所述脉冲响应曲线确定所述扬声器模块的时延值,以及对所述脉冲响应曲线进行傅里叶变换得到所述扬声器模块的幅频响应曲线;Obtain the first playback signal of the speaker module for the first test signal, and obtain the impulse response curve and phase-frequency response curve of the speaker module according to the first test signal and the first playback signal, and Determining the time delay value of the speaker module by the impulse response curve, and performing Fourier transform on the impulse response curve to obtain the amplitude-frequency response curve of the speaker module;
    依据所述扬声器模块输出所述第一播放信号时的电流信号和电压信号,得到所述扬声器模块的阻抗曲线,以及依据所述扬声器模块的阻抗曲线确定所述扬声器模块的共振频率。The impedance curve of the speaker module is obtained according to the current signal and the voltage signal when the speaker module outputs the first playback signal, and the resonance frequency of the speaker module is determined according to the impedance curve of the speaker module.
  3. 根据权利要求2所述的方法,其特征在于,若所述第二测试参数包括所述扬声器模块的保护电压和最大声压级曲线,所述通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数,包括:The method according to claim 2, wherein if the second test parameter includes the protection voltage and the maximum sound pressure level curve of the speaker module, the step of detecting the amplitude-frequency response curve and the maximum sound pressure level curve of the speaker module The harmonic distortion curve of the loudspeaker module determines the second test parameter of the loudspeaker module, including:
    依据扬声器模块的幅频响应曲线确定所述扬声器模块的工作频段,以及依据所述工作频段,从所述扬声器模块的幅频响应曲线上获取初始幅频响应曲线,以及从所述扬声器模块的谐波失真曲线上获取初始谐波失真曲线;Determine the working frequency band of the loudspeaker module according to the amplitude-frequency response curve of the loudspeaker module, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module according to the working frequency band, and obtain the initial amplitude-frequency response curve from the amplitude-frequency response curve of the loudspeaker module; Obtain the initial harmonic distortion curve on the wave distortion curve;
    判断所述初始谐波失真曲线中的最大失真值是否大于或者等于第一预设值;Judging whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to a first preset value;
    若是,确定当前信号电压为所述扬声器模块的保护电压,所述初始幅频响应曲线为所述扬声器模块的最大声压级曲线;If yes, determine that the current signal voltage is the protection voltage of the speaker module, and the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module;
    若否,更新所述当前信号电压,并获取所述扬声器模块的测试幅频响应曲线和测试谐波失真曲线;If not, update the current signal voltage, and obtain the test amplitude-frequency response curve and the test harmonic distortion curve of the speaker module;
    通过比对所述初始幅频响应曲线和所述测试幅频响应曲线,得到平均声压级偏差值,并判断所述平均声压级偏差值是否小于第二预设值;By comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, an average sound pressure level deviation value is obtained, and it is determined whether the average sound pressure level deviation value is less than a second preset value;
    若是,将未更新前的所述当前信号电压作为所述扬声器模块的保护电压,并将所述初始幅频响应曲线作为所述扬声器模块的最大声压级曲线;If yes, use the current signal voltage before being updated as the protection voltage of the speaker module, and use the initial amplitude-frequency response curve as the maximum sound pressure level curve of the speaker module;
    若否,判断所述测试谐波失真曲线中的最大失真值是否大于或者等于所述第一预设值;If not, determine whether the maximum distortion value in the test harmonic distortion curve is greater than or equal to the first preset value;
    若是,将更新后的所述当前信号电压作为所述扬声器模块的保护电压,并将所述测试幅频响应曲线作为所述扬声器模块的最大声压级曲线;If yes, use the updated current signal voltage as the protection voltage of the speaker module, and use the test amplitude-frequency response curve as the maximum sound pressure level curve of the speaker module;
    若否,将所述测试幅频响应曲线作为所述初始幅频响应曲线,并将所述测试谐波失真曲线作为所述初始谐波失真曲线,以及执行所述的更新所述当前信号电压,直至确定出所述扬声器模块的保护电压和所述扬声器模块的最大声压级曲线。If not, use the test amplitude-frequency response curve as the initial amplitude-frequency response curve, and use the test harmonic distortion curve as the initial harmonic distortion curve, and perform the update of the current signal voltage, Until the protection voltage of the speaker module and the maximum sound pressure level curve of the speaker module are determined.
  4. 根据权利要求3所述的方法,其特征在于,若所述目标调试模式为单通道模式,所述按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置,包括:The method according to claim 3, wherein if the target debugging mode is a single-channel mode, the first test parameter and the second test parameter are processed according to the instruction of the target debugging mode to obtain the The presets of the speaker module include:
    依据所述扬声器模块的共振频率生成高通滤波器,并从所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算所述带宽的声压级的算术平均值,以及确定所述声压级的算术平均值对应的目标直线,以及获取所述目标直线与所述扬声器模块的幅频响应曲线的相交频点,以及依据频率最高的所述相交频点生成低通滤波器,以及根据所述高通滤波器和所述低通滤波器生成所述扬声器模块的目标幅频响应曲线和目标相频响应曲线,以及通过拟合所述扬声器模块的幅频响应曲线和所述扬声器模块的目标幅频响应曲线,以及所述扬声器模块的相频响应曲线和所述扬声器模块的目标相频响应曲线,得到所述扬声器模块的滤波器参数,以及将所述滤波器参数和所述保护电压打包为所述扬声器模块的预置。A high-pass filter is generated according to the resonance frequency of the speaker module, and an octave bandwidth is determined from the effective area of the amplitude-frequency response curve of the speaker module, wherein the effective area is the amplitude-frequency response of the speaker module The area with the greatest sensitivity on the curve, and calculate the arithmetic mean of the sound pressure level of the bandwidth, and determine the target straight line corresponding to the arithmetic mean of the sound pressure level, and obtain the target straight line and the amplitude of the speaker module The intersection frequency point of the frequency response curve, and generate a low-pass filter according to the intersection frequency point with the highest frequency, and generate the target amplitude-frequency response curve of the loudspeaker module according to the high-pass filter and the low-pass filter Target phase frequency response curve, and by fitting the amplitude frequency response curve of the loudspeaker module and the target amplitude frequency response curve of the loudspeaker module, and the phase frequency response curve of the loudspeaker module and the target phase frequency of the loudspeaker module Response curve, obtain the filter parameter of the speaker module, and pack the filter parameter and the protection voltage into a preset of the speaker module.
  5. 根据权利要求3所述的方法,若所述目标调试模式为多通道模式,所述按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置,包括:According to the method of claim 3, if the target debugging mode is a multi-channel mode, the first test parameter and the second test parameter are processed according to the instruction of the target debugging mode to obtain the speaker module Presets, including:
    综合每一所述扬声器模块的幅频响应曲线得到每一所述扬声器模块的增益设置值,并综合每一所述扬声器模块的时延值得到每一所述扬声器模块的时延设置值,以及综合每一所述扬声器模块的最大声压级曲线和共振频率确定分频点,以及依据所述分频点生成每一所述扬声器模块的第一高通滤波器和第一低通滤波器,以及从每一所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算每一所述带宽的声压级的算术平均值;以及确定每一所述带宽的声压级的算术平均值对应的目标直线,以及获取每 一所述目标直线与每一所述扬声器模块的幅频响应曲线的相交频点,以及依据所述相交频点生成每一扬声器模块的第二低通滤波器和第二高通滤波器,Synthesize the amplitude-frequency response curve of each of the loudspeaker modules to obtain the gain setting value of each of the loudspeaker modules, synthesize the delay value of each of the loudspeaker modules to obtain the delay setting value of each of the loudspeaker modules, and Combining the maximum sound pressure level curve and resonance frequency of each speaker module to determine a crossover point, and generate a first high-pass filter and a first low-pass filter for each speaker module according to the crossover point, and Determine the bandwidth of one octave from the effective area of the amplitude-frequency response curve of each loudspeaker module, where the effective area is the most sensitive area on the amplitude-frequency response curve of the loudspeaker module, and calculate each The arithmetic mean of the sound pressure level of the bandwidth; and determining the target straight line corresponding to the arithmetic mean of the sound pressure level of each of the bandwidths, and obtaining the amplitude-frequency response of each of the target straight lines and each of the speaker modules The intersection frequency point of the curve, and the second low-pass filter and the second high-pass filter of each speaker module are generated according to the intersection frequency point,
    以及,通过对比每一所述扬声器模块的共振频率,从每一所述扬声器模块的第一高通滤波器、第一低通滤波器、第二低通滤波器以及第二高通滤波器中确定每一所述扬声器模块的目标低通滤波器和目标高通滤波器,以及依据每一所述扬声器模块的增益设置值、目标高通滤波器以及目标低通滤波器,生成每一所述扬声器模块的目标幅频响应曲线,以及依据每一所述扬声器模块的目标高通滤波器和目标低通滤波器,生成每一所述扬声器模块的目标相频响应曲线;以及,通过拟合每一所述扬声器模块的幅频响应曲线和目标幅频响应曲线,以及每一所述扬声器模块的相频响应曲线和目标相频响应曲线,得到每一所述扬声器模块的滤波器参数,以及将每一所述扬声器模块的滤波器参数、保护电压以及时延设置值打包为每一所述扬声器模块的预置。And, by comparing the resonance frequency of each of the speaker modules, each of the first high-pass filter, the first low-pass filter, the second low-pass filter, and the second high-pass filter of each of the speaker modules is determined. A target low-pass filter and a target high-pass filter of the speaker module, and the target of each speaker module is generated according to the gain setting value, target high-pass filter, and target low-pass filter of each speaker module Amplitude-frequency response curve, and generating the target phase-frequency response curve of each speaker module according to the target high-pass filter and target low-pass filter of each speaker module; and, by fitting each speaker module The amplitude-frequency response curve and the target amplitude-frequency response curve, as well as the phase-frequency response curve and the target phase-frequency response curve of each speaker module, obtain the filter parameters of each speaker module, and divide each speaker module The filter parameters, protection voltage, and time delay setting values of the module are packaged into the presets of each speaker module.
  6. 一种扬声器自动调试系统,其特征在于,所述系统包括:A loudspeaker automatic debugging system, characterized in that the system includes:
    测量信号模块,用于产生第一测试信号,并将所述第一测试信号发送至扬声器模块;其中,所述扬声器模块由一个或者多个扬声器单元组成;The measurement signal module is used to generate a first test signal and send the first test signal to the speaker module; wherein, the speaker module is composed of one or more speaker units;
    控制处理模块,用于获取所述扬声器模块的第一测试参数,并依据所述扬声器模块的数目确定目标调试模式;其中,所述第一测试参数至少包括所述扬声器模块的共振频率和幅频响应曲线;The control processing module is configured to obtain the first test parameter of the speaker module, and determine the target debugging mode according to the number of the speaker module; wherein, the first test parameter includes at least the resonance frequency and amplitude frequency of the speaker module Response curve
    所述测量信号模块,还用于依据所述扬声器模块的共振频率处理所述第一测试信号得到第二测试信号,并将所述第二测试信号发送至所述扬声器模块;The measurement signal module is further configured to process the first test signal according to the resonance frequency of the speaker module to obtain a second test signal, and send the second test signal to the speaker module;
    所述控制处理模块,还用于采集所述扬声器模块的谐波失真曲线,并通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数;The control processing module is also used to collect the harmonic distortion curve of the speaker module, and determine the second harmonic distortion curve of the speaker module by detecting the amplitude-frequency response curve of the speaker module and the harmonic distortion curve of the speaker module. Test parameters;
    信号处理模块,还用于按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置。The signal processing module is further configured to process the first test parameter and the second test parameter according to the instruction of the target debugging mode to obtain the preset of the speaker module.
  7. 根据权利要求6所述的系统,其特征在于,所述第一测试参数还包括所述扬声器模块的时延值、相频响应曲线以及阻抗曲线,所述控制处理模块用于获取所述扬声器模块的第一测试参数的方式具体为:The system according to claim 6, wherein the first test parameter further comprises a delay value, a phase-frequency response curve, and an impedance curve of the speaker module, and the control processing module is used to obtain the speaker module The specific method of the first test parameter is:
    所述控制处理模块,用于获取所述扬声器模块针对所述第一测试信号的第一播放信号,并依据所述第一测试信号和所述第一播放信号得到所述扬声器模块的脉冲响应曲线和相频响应曲线,以及依据所述脉冲响应曲线确定所述扬声器模块的时延值,以及对所述脉冲响应曲线进行傅里叶变换得到所述扬声器模块的幅频响应曲线;以及,依据所述扬声器模块输出所述第一播放信号时的电流信号和电压信号,得到所述扬声器模块的阻抗曲线,以及依据所述扬声器模块的阻抗曲线确定所述扬声器模块的 共振频率。The control processing module is configured to obtain a first playback signal of the speaker module for the first test signal, and obtain an impulse response curve of the speaker module according to the first test signal and the first playback signal And the phase-frequency response curve, and determine the time delay value of the speaker module according to the impulse response curve, and perform Fourier transform on the impulse response curve to obtain the amplitude-frequency response curve of the speaker module; The loudspeaker module outputs the current signal and the voltage signal when the first playing signal is output to obtain the impedance curve of the loudspeaker module, and the resonance frequency of the loudspeaker module is determined according to the impedance curve of the loudspeaker module.
  8. 根据权利要求7所述的系统,其特征在于,若所述第二测试参数包括所述扬声器模块的保护电压和最大声压级曲线,所述控制处理模块用于通过检测所述扬声器模块的幅频响应曲线和所述扬声器模块的谐波失真曲线确定所述扬声器模块的第二测试参数的方式具体为:The system according to claim 7, wherein if the second test parameter includes the protection voltage and the maximum sound pressure level curve of the speaker module, the control processing module is used to detect the amplitude of the speaker module The method for determining the second test parameter of the speaker module by the frequency response curve and the harmonic distortion curve of the speaker module is specifically as follows:
    所述控制处理模块,用于依据扬声器模块的幅频响应曲线确定所述扬声器模块的工作频段,以及依据所述工作频段,从所述扬声器模块的幅频响应曲线上获取初始幅频响应曲线,以及从所述扬声器模块的谐波失真曲线上获取初始谐波失真曲线;判断所述初始谐波失真曲线中的最大失真值是否大于或者等于第一预设值;以及,在大于或者等于所述第一预设值时,确定当前信号电压为所述扬声器模块的保护电压,所述初始幅频响应曲线为所述扬声器模块的最大声压级曲线;以及,在小于所述第一预设值时,更新所述当前信号电压,并获取所述扬声器模块的测试幅频响应曲线和测试谐波失真曲线;以及,通过比对所述初始幅频响应曲线和所述测试幅频响应曲线,得到平均声压级偏差值,并判断所述平均声压级偏差值是否小于第二预设值;以及,在小于所述第二预设值时,将未更新前的所述当前信号电压作为所述扬声器模块的保护电压,并将所述初始幅频响应曲线作为所述扬声器模块的最大声压级曲线;以及,在大于或者等于所述第二预设值时,判断所述测试谐波失真曲线中的最大失真值是否大于或者等于所述第一预设值;以及,在大于或者等于所述第一预设值时,将更新后的所述当前信号电压作为所述扬声器模块的保护电压,并将所述测试幅频响应曲线作为所述扬声器模块的最大声压级曲线;以及,在小于所述第一预设值时,将所述测试幅频响应曲线作为所述初始幅频响应曲线,并将所述测试谐波失真曲线作为所述初始谐波失真曲线,以及执行所述的更新所述当前信号电压,直至确定出所述扬声器模块的保护电压和所述扬声器模块的最大声压级曲线。The control processing module is configured to determine the working frequency band of the speaker module according to the amplitude-frequency response curve of the speaker module, and obtain an initial amplitude-frequency response curve from the amplitude-frequency response curve of the speaker module according to the working frequency band, And obtain the initial harmonic distortion curve from the harmonic distortion curve of the loudspeaker module; determine whether the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the first preset value; and, if the maximum distortion value in the initial harmonic distortion curve is greater than or equal to the At the first preset value, it is determined that the current signal voltage is the protection voltage of the speaker module, and the initial amplitude-frequency response curve is the maximum sound pressure level curve of the speaker module; and, when it is less than the first preset value When the current signal voltage is updated, the test amplitude-frequency response curve and the test harmonic distortion curve of the speaker module are obtained; and, by comparing the initial amplitude-frequency response curve and the test amplitude-frequency response curve, it is obtained Average sound pressure level deviation value, and determine whether the average sound pressure level deviation value is less than a second preset value; and, when the average sound pressure level deviation value is less than the second preset value, use the current signal voltage before being updated as the all The protection voltage of the loudspeaker module, and the initial amplitude-frequency response curve as the maximum sound pressure level curve of the loudspeaker module; and, when it is greater than or equal to the second preset value, judging the test harmonic distortion Whether the maximum distortion value in the curve is greater than or equal to the first preset value; and, when greater than or equal to the first preset value, use the updated current signal voltage as the protection voltage of the speaker module , And use the test amplitude-frequency response curve as the maximum sound pressure level curve of the loudspeaker module; and, when it is less than the first preset value, use the test amplitude-frequency response curve as the initial amplitude-frequency response Curve, and use the test harmonic distortion curve as the initial harmonic distortion curve, and perform the update of the current signal voltage until the protection voltage of the speaker module and the maximum sound of the speaker module are determined Pressure grade curve.
  9. 根据权利要求8所述的系统,其特征在于,若所述目标调试模式为单通道模式,所述信号处理模块用于按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置的方式具体为:The system according to claim 8, wherein if the target debugging mode is a single-channel mode, the signal processing module is configured to process the first test parameter and the second test parameter according to the instruction of the target debugging mode. The specific method for testing the parameters to obtain the preset of the speaker module is as follows:
    所述信号处理模块,用于依据所述扬声器模块的共振频率生成高通滤波器,并从所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算所述带宽的声压级的算术平均值,以及确定所述声压级的算术平均值对应的目标直线,以及获取所述目标直线与所述扬声器模块的幅频响应曲线的相交频点,以及依据频率最高的所述相交频点生成低通滤波器,以及根据所述高通滤波器和所述低通滤波器生成所述扬声器模块的目标幅频响应曲线和目标相频响应曲线,以及通过拟合所述扬声器模块的幅频响应曲线和所述扬声器模块的目标幅频响应曲线,以及所述扬声器模块的相频响应曲线和所述扬声器模块的目 标相频响应曲线,得到所述扬声器模块的滤波器参数,以及将所述滤波器参数和所述保护电压打包为所述扬声器模块的预置。The signal processing module is configured to generate a high-pass filter according to the resonance frequency of the speaker module, and determine a bandwidth of one octave from the effective area of the amplitude-frequency response curve of the speaker module, wherein the effective area is The most sensitive area on the amplitude-frequency response curve of the loudspeaker module, and calculating the arithmetic mean of the sound pressure level of the bandwidth, and determining the target straight line corresponding to the arithmetic mean of the sound pressure level, and obtaining the target The intersection frequency point of the straight line and the amplitude-frequency response curve of the speaker module, and the low-pass filter is generated according to the intersection frequency point with the highest frequency, and the speaker is generated according to the high-pass filter and the low-pass filter The target amplitude-frequency response curve and target phase-frequency response curve of the module, and by fitting the amplitude-frequency response curve of the loudspeaker module and the target amplitude-frequency response curve of the loudspeaker module, and the phase-frequency response curve of the loudspeaker module and The target phase-frequency response curve of the loudspeaker module is used to obtain the filter parameters of the loudspeaker module, and the filter parameters and the protection voltage are packaged as a preset of the loudspeaker module.
  10. 根据权利要求8所述的系统,其特征在于,若所述目标调试模式为多通道模式,所述信号处理模块用于按照所述目标调试模式的指示,处理所述第一测试参数和第二测试参数,得到所述扬声器模块的预置的方式具体为:The system according to claim 8, wherein if the target debugging mode is a multi-channel mode, the signal processing module is configured to process the first test parameter and the second test parameter according to the instruction of the target debugging mode. The specific method for testing the parameters to obtain the preset of the speaker module is as follows:
    所述信号处理模块,用于综合每一所述扬声器模块的幅频响应曲线得到每一所述扬声器模块的增益设置值,并综合每一所述扬声器模块的时延值得到每一所述扬声器模块的时延设置值,以及综合每一所述扬声器模块的最大声压级曲线和共振频率确定分频点,以及依据所述分频点生成每一所述扬声器模块的第一高通滤波器和第一低通滤波器,以及从每一所述扬声器模块的幅频响应曲线的有效区域确定一个倍频程的带宽,其中,所述有效区域为所述扬声器模块的幅频响应曲线上灵敏度最大的区域,以及计算每一所述带宽的声压级的算术平均值;以及确定每一所述带宽的声压级的算术平均值对应的目标直线,以及获取每一所述目标直线与每一所述扬声器模块的幅频响应曲线的相交频点,以及依据所述相交频点生成每一扬声器模块的第二低通滤波器和第二高通滤波器,以及,通过对比每一所述扬声器模块的共振频率,从每一所述扬声器模块的第一高通滤波器、第一低通滤波器、第二低通滤波器以及第二高通滤波器中确定每一所述扬声器模块的目标低通滤波器和目标高通滤波器,以及依据每一所述扬声器模块的增益设置值、目标高通滤波器以及目标低通滤波器,生成每一所述扬声器模块的目标幅频响应曲线,以及依据每一所述扬声器模块的目标高通滤波器和目标低通滤波器,生成每一所述扬声器模块的目标相频响应曲线;以及,通过拟合每一所述扬声器模块的幅频响应曲线和目标幅频响应曲线,以及每一所述扬声器模块的相频响应曲线和目标相频响应曲线,得到每一所述扬声器模块的滤波器参数,以及将每一所述扬声器模块的滤波器参数、保护电压以及时延设置值打包为每一所述扬声器模块的预置。The signal processing module is configured to synthesize the amplitude-frequency response curve of each of the loudspeaker modules to obtain the gain setting value of each of the loudspeaker modules, and synthesize the delay value of each of the loudspeaker modules to obtain each of the loudspeakers The time delay setting value of the module, and the maximum sound pressure level curve and resonance frequency of each speaker module are combined to determine the crossover point, and the first high-pass filter and the first high-pass filter of each speaker module are generated according to the crossover point. A first low-pass filter, and a bandwidth of one octave is determined from the effective area of the amplitude-frequency response curve of each speaker module, wherein the effective area is the maximum sensitivity on the amplitude-frequency response curve of the speaker module And calculate the arithmetic mean value of the sound pressure level of each said bandwidth; and determine the target line corresponding to the arithmetic mean value of the sound pressure level of each said bandwidth, and obtain each target line and each target line The intersection frequency point of the amplitude-frequency response curve of the speaker module, and the second low-pass filter and the second high-pass filter of each speaker module are generated according to the intersection frequency point, and by comparing each of the speaker modules Determine the target low-pass filter of each speaker module from the first high-pass filter, first low-pass filter, second low-pass filter, and second high-pass filter of each speaker module Generator and target high-pass filter, and generate the target amplitude-frequency response curve of each speaker module according to the gain setting value, target high-pass filter, and target low-pass filter of each speaker module, and generate the target amplitude-frequency response curve of each speaker module according to each speaker module. The target high-pass filter and target low-pass filter of the speaker module generate a target phase-frequency response curve of each speaker module; and, by fitting the amplitude-frequency response curve and target amplitude-frequency response of each speaker module Curve, and the phase-frequency response curve and target phase-frequency response curve of each speaker module to obtain the filter parameter of each speaker module, and combine the filter parameters and protection voltage of each speaker module in time The delay setting value is packaged as a preset of each speaker module.
  11. 一种扬声器自动调试系统,其特征在于,包括:A loudspeaker automatic debugging system, which is characterized in that it comprises:
    存储有可执行程序代码的存储器;A memory storing executable program codes;
    与所述存储器耦合的处理器;A processor coupled with the memory;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行权利要求1~5任一项所述的方法。The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 5.
  12. 一种计算机可读存储介质,其特征在于,其存储计算机程序,其中所述计算机程序使得计算机执行权利要求1~5任一项所述的方法。A computer-readable storage medium, characterized in that it stores a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 5.
PCT/CN2020/107933 2019-12-31 2020-08-07 Automatic debugging method and system for loudspeaker WO2021135235A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911422275.3 2019-12-31
CN201911422275.3A CN111654798A (en) 2019-12-31 2019-12-31 Automatic debugging method and system for loudspeaker

Publications (1)

Publication Number Publication Date
WO2021135235A1 true WO2021135235A1 (en) 2021-07-08

Family

ID=72344578

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/107933 WO2021135235A1 (en) 2019-12-31 2020-08-07 Automatic debugging method and system for loudspeaker

Country Status (2)

Country Link
CN (1) CN111654798A (en)
WO (1) WO2021135235A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140254804A1 (en) * 2013-03-08 2014-09-11 Cirrus Logic, Inc. Systems and methods for protecting a speaker
CN107071684A (en) * 2017-06-23 2017-08-18 深圳精拓创新科技有限公司 Loudspeaker T/S parameter test methods and test device
CN108111956A (en) * 2017-12-26 2018-06-01 广州励丰文化科技股份有限公司 A kind of sound equipment adjustment method and device based on amplitude-frequency response
CN108200526A (en) * 2017-12-29 2018-06-22 广州励丰文化科技股份有限公司 A kind of sound equipment adjustment method and device based on confidence level curve

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140254804A1 (en) * 2013-03-08 2014-09-11 Cirrus Logic, Inc. Systems and methods for protecting a speaker
CN107071684A (en) * 2017-06-23 2017-08-18 深圳精拓创新科技有限公司 Loudspeaker T/S parameter test methods and test device
CN108111956A (en) * 2017-12-26 2018-06-01 广州励丰文化科技股份有限公司 A kind of sound equipment adjustment method and device based on amplitude-frequency response
CN108200526A (en) * 2017-12-29 2018-06-22 广州励丰文化科技股份有限公司 A kind of sound equipment adjustment method and device based on confidence level curve

Also Published As

Publication number Publication date
CN111654798A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN106878866B (en) Audio signal processing method and device and terminal
US8175284B2 (en) Method and apparatus for calibrating sound-reproducing equipment
US8798280B2 (en) Calibration method and device in an audio system
JP5123319B2 (en) Speaker line inspection device
CN109831733A (en) Test method, device, equipment and the storage medium of audio broadcast performance
CN108200526B (en) Sound debugging method and device based on reliability curve
US20230361739A1 (en) Analyzing and determining conference audio gain levels
JP2002135897A (en) Instrument and method for measuring acoustic field
CN108174337B (en) Indoor sound field self-adaption method and combined loudspeaker system
CN114650494B (en) DSP sound system and sound system acoustic automatic testing method
CN111866690A (en) Microphone testing method and device
WO2003094576A1 (en) Transmission characteristic measuring device, transmission characteristic measuring method, and amplifier
EP3605535A1 (en) Audio device and computer readable program
WO2021135235A1 (en) Automatic debugging method and system for loudspeaker
CN116312622A (en) Abnormal sound detection method, device and system
JP2714098B2 (en) How to correct acoustic frequency characteristics
US20100208910A1 (en) Acoustic field correction method and an acoustic field correction device
CN113938806B (en) Noise detection device and method thereof
TWI792607B (en) Noise detection device and method thereof
US20230395093A1 (en) Sound processing device and sound processing method
JP7024890B2 (en) Speaker minimum resonance frequency measuring device, speaker system, and speaker minimum resonance frequency measuring method
CN112887892B (en) Response characteristic measuring method, device, equipment and medium
US11722822B2 (en) Audio feedback detection and suppression
US20240177702A1 (en) Noise reduction method and apparatus, test method and apparatus, electronic device, and storage medium
CN116312447B (en) Directional noise elimination method and system

Legal Events

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

Ref document number: 20909176

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.11.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20909176

Country of ref document: EP

Kind code of ref document: A1