CN107948864B - Time delay compensation method and system based on sound box equipment - Google Patents

Time delay compensation method and system based on sound box equipment Download PDF

Info

Publication number
CN107948864B
CN107948864B CN201711479196.7A CN201711479196A CN107948864B CN 107948864 B CN107948864 B CN 107948864B CN 201711479196 A CN201711479196 A CN 201711479196A CN 107948864 B CN107948864 B CN 107948864B
Authority
CN
China
Prior art keywords
frequency
full
data
ultra
phase
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711479196.7A
Other languages
Chinese (zh)
Other versions
CN107948864A (en
Inventor
李志雄
黄石锋
李株亮
张国标
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Leafun Culture Science and Technology Co Ltd
Original Assignee
Guangzhou Leafun Culture Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Leafun Culture Science and Technology Co Ltd filed Critical Guangzhou Leafun Culture Science and Technology Co Ltd
Priority to CN201711479196.7A priority Critical patent/CN107948864B/en
Publication of CN107948864A publication Critical patent/CN107948864A/en
Application granted granted Critical
Publication of CN107948864B publication Critical patent/CN107948864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)

Abstract

A delay compensation method and system based on sound box equipment comprises the following steps: acquiring full-frequency data of a full-frequency loudspeaker box and ultralow-frequency data of an ultralow-frequency loudspeaker box; adding different delay values of full frequency to full frequency data for multiple times to obtain a group of full frequency delay data, calculating the variance of the phase difference between each full frequency delay data and each ultralow frequency data to obtain a group of full frequency variance values corresponding to the different delay values of the full frequency, adding different delay values of ultralow frequency to the ultralow frequency data for multiple times to obtain a group of ultralow frequency delay data, and calculating the variance of the phase difference between each ultralow frequency delay data and each full frequency data to obtain a group of ultralow frequency variance values corresponding to the different delay values of the ultralow frequency; determining a minimum target variance value from the full frequency variance value and the ultralow frequency variance value; and setting the delay value corresponding to the target variance value to the target sound box corresponding to the target variance value. The embodiment of the invention can automatically and accurately perform delay compensation on the sound box equipment, and has high debugging efficiency.

Description

Time delay compensation method and system based on sound box equipment
Technical Field
The invention relates to the technical field of sound boxes, in particular to a time delay compensation method and system based on sound box equipment.
Background
With the development of social economy, the lives of people become more and more abundant. In pursuit of an extremely audio-visual experience, more and more people choose to bring professional loudspeaker equipment into the home. Factors influencing sound quality of the sound box are related to the quality of the sound box and the listening environment, and in order to obtain better sound experience effect, a professional debugging person is needed to debug before professional sound box equipment is used so as to eliminate adverse effects such as sound distortion caused by time delay. In practice, it is found that the tuning manner for performing delay compensation on the speaker device is generally as follows: a debugging person conducts multiple time delay compensation tests on the sound box equipment according to previous debugging experience, then selects the time delay value with the best hearing effect to conduct time delay compensation on the sound box equipment, and the debugging mode cannot accurately conduct time delay compensation on the sound box equipment and is low in debugging efficiency.
Disclosure of Invention
The embodiment of the invention discloses a delay compensation method and system based on sound box equipment, which can automatically and accurately perform delay compensation on the sound box equipment and have high debugging efficiency.
The first aspect of the embodiment of the invention discloses a delay compensation method based on sound box equipment, which comprises the following steps:
the debugging equipment acquires full-frequency data of a full-frequency loudspeaker box and ultralow-frequency data of an ultralow-frequency loudspeaker box;
adding different full-frequency delay values to the full-frequency data for multiple times by the debugging equipment to obtain a group of full-frequency delay data corresponding to the different full-frequency delay values, and calculating the variance of the phase difference between each full-frequency delay data and the ultralow frequency data to obtain a group of full-frequency variance values corresponding to the different full-frequency delay values;
adding different delay values of ultralow frequency to the ultralow frequency data for multiple times by the debugging equipment to obtain a group of ultralow frequency delay data corresponding to the different delay values of the ultralow frequency, and calculating the variance of the phase difference between each ultralow frequency delay data and the full frequency data to obtain a group of ultralow frequency variance values corresponding to the different delay values of the ultralow frequency;
the debugging equipment determines the minimum variance value from the full-frequency variance value and the ultralow frequency variance value as a target variance value;
and the debugging equipment sets the delay value corresponding to the target variance value to a target sound box corresponding to the target variance value.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the acquiring, by the debugging device, full-frequency data of a full-frequency loudspeaker box and ultra-low-frequency data of an ultra-low-frequency loudspeaker box, the method further includes:
the debugging equipment performs Fourier transform processing on the full-frequency data to obtain a full-frequency reference spectrum, and performs Fourier transform processing on the ultralow-frequency data to obtain an ultralow-frequency reference spectrum;
the debugging equipment acquires a full-frequency reference phase curve according to the full-frequency reference frequency spectrum and acquires an ultra-low-frequency reference phase curve according to the ultra-low-frequency reference frequency spectrum;
the debugging equipment performs octave processing and moving average smoothing on the full-frequency reference phase curve to obtain full-frequency reference phase-frequency data, and performs octave processing and moving average smoothing on the ultralow-frequency reference phase curve to obtain ultralow-frequency reference phase-frequency data;
the debugging device adds different full-frequency delay values to the full-frequency data for multiple times to obtain a set of full-frequency delay data corresponding to the different full-frequency delay values, calculates a variance of a phase difference between each full-frequency delay data and the ultra-low frequency data, and obtains a set of full-frequency variance values corresponding to the different full-frequency delay values, including:
adding different full-frequency delay values to the full-frequency data for multiple times by the debugging equipment to obtain a group of full-frequency time domain waveforms corresponding to the different full-frequency delay values, wherein the full-frequency delay data are the full-frequency time domain waveforms;
the debugging equipment carries out Fourier transform processing on each full-frequency time domain waveform to obtain a full-frequency spectrum waveform corresponding to each full-frequency time domain waveform;
the debugging equipment acquires a full-frequency phase-frequency curve corresponding to each full-frequency spectrum waveform, and performs octave processing and moving average smoothing processing on each full-frequency phase-frequency curve to obtain full-frequency phase-frequency data corresponding to each full-frequency phase-frequency curve;
the debugging equipment determines a frequency overlapping region of the full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data, and calculates a full-frequency phase difference of each full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data in the frequency overlapping region;
the debugging equipment calculates the variance of the phase difference of all the full frequencies to be used as a group of full frequency variance values corresponding to different delay values of the full frequencies;
the debugging equipment adds different delay values of ultra-low frequency to the ultra-low frequency data for multiple times to obtain a group of ultra-low frequency delay data corresponding to the different delay values of the ultra-low frequency, calculates the variance of the phase difference between each ultra-low frequency delay data and the full frequency data to obtain a group of ultra-low frequency variance values corresponding to the different delay values of the ultra-low frequency, and comprises the following steps:
adding different delay values of ultra-low frequency to the ultra-low frequency data for multiple times by the debugging equipment to obtain a group of ultra-low frequency time domain waveforms corresponding to the different delay values of the ultra-low frequency, wherein the ultra-low frequency delay data is the ultra-low frequency time domain waveforms;
the debugging equipment carries out Fourier transform processing on each ultra-low frequency time domain waveform to obtain an ultra-low frequency spectrum waveform corresponding to each ultra-low frequency time domain waveform;
the debugging equipment acquires an ultra-low frequency phase-frequency curve corresponding to each ultra-low frequency spectrum waveform, and performs octave processing and moving average smoothing processing on each ultra-low frequency phase-frequency curve to obtain ultra-low frequency phase-frequency data corresponding to each ultra-low frequency phase-frequency curve;
the debugging equipment determines a frequency overlapping region of the ultralow frequency phase frequency data and the full-frequency reference phase frequency data, and calculates the ultralow frequency phase difference of each ultralow frequency phase frequency data and the full-frequency reference phase frequency data in the frequency overlapping region;
the debugging device calculates the variance of the phase differences of all the ultralow frequencies as a set of ultralow frequency variance values corresponding to different delay values of the full frequency.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining, by the debugging device, a frequency overlapping region of the full-frequency phase-frequency data and the ultra-low-frequency reference phase-frequency data includes:
the debugging equipment determines a first overlapping region of the full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data;
and the debugging equipment determines a first sub-overlapping area in the first overlapping area according to an area selection instruction triggered by debugging personnel, and the first sub-overlapping area is used as a frequency overlapping area of the full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining, by the commissioning device, a frequency overlapping region between the ultra-low frequency phase-frequency data and the full-frequency reference phase-frequency data includes:
the debugging equipment determines a second overlapping region of the ultralow frequency phase frequency data and the full frequency reference phase frequency data;
and the debugging equipment determines a second sub-overlapping area in the second overlapping area according to an area selection instruction triggered by debugging personnel, and the second sub-overlapping area is used as a frequency overlapping area of the ultralow frequency phase frequency data and the full frequency reference phase frequency data.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the setting, by the commissioning device, the delay value corresponding to the target variance value to a target sound box corresponding to the target variance value includes:
the debugging equipment determines a delay value corresponding to the target variance value according to the target variance value;
the debugging equipment judges whether the full-frequency variance value comprises the target variance value, if so, the full-frequency sound box is determined to be the target sound box, and if not, the debugging equipment determines the ultra-low-frequency sound box to be the target sound box;
the debugging equipment sets the delay value to the target sound box.
The second aspect of the embodiments of the present invention discloses a delay compensation system based on speaker equipment, including:
the first acquisition unit is used for acquiring full-frequency data of a full-frequency loudspeaker box and ultralow-frequency data of an ultralow-frequency loudspeaker box;
a first variance calculating unit, configured to add different full-frequency delay values to the full-frequency data obtained by the first obtaining unit multiple times to obtain a set of full-frequency delay data corresponding to the different full-frequency delay values, and calculate a variance between a phase difference between each full-frequency delay data and the ultra-low frequency data to obtain a set of full-frequency variance values corresponding to the different full-frequency delay values;
a second variance calculating unit, configured to add different delay values of an ultra-low frequency to the ultra-low frequency data obtained by the first obtaining unit for multiple times to obtain a set of ultra-low frequency delay data corresponding to the different delay values of the ultra-low frequency, and calculate a variance of a phase difference between each piece of the ultra-low frequency delay data and the full-frequency data to obtain a set of ultra-low frequency variance values corresponding to the different delay values of the ultra-low frequency;
a determining unit, configured to determine a minimum variance value from the full-frequency variance value and the ultra-low-frequency variance value, as a target variance value;
and the setting unit is used for setting the delay value corresponding to the target variance value determined by the determining unit to the target sound box corresponding to the target variance value.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
the first processing unit is used for performing Fourier transform processing on the full-frequency data acquired by the first acquisition unit to obtain a full-frequency reference spectrum and performing Fourier transform processing on the ultralow-frequency data to obtain an ultralow-frequency reference spectrum after the first acquisition unit acquires the full-frequency data of a full-frequency loudspeaker box and the ultralow-frequency data of the ultralow-frequency loudspeaker box;
a second obtaining unit, configured to obtain a full-frequency reference phase curve according to the full-frequency reference spectrum obtained by the first processing unit, and obtain an ultra-low-frequency reference phase curve according to the ultra-low-frequency reference spectrum obtained by the first processing unit;
the second processing unit is configured to perform octave processing and moving average smoothing on the full-frequency reference phase curve obtained by the second obtaining unit to obtain full-frequency reference phase-frequency data, and perform octave processing and moving average smoothing on the ultra-low-frequency reference phase curve obtained by the second obtaining unit to obtain ultra-low-frequency reference phase-frequency data;
the first variance calculating unit includes:
a first sub-unit, configured to add different full-frequency delay values to the full-frequency data acquired by the first acquisition unit multiple times to obtain a set of full-frequency time-domain waveforms corresponding to the different full-frequency delay values, where the full-frequency delay data is the full-frequency time-domain waveform; the full-frequency time-domain waveform generating unit is further used for carrying out Fourier transform processing on each full-frequency time-domain waveform to obtain a full-frequency spectrum waveform corresponding to each full-frequency time-domain waveform; the full-frequency phase-frequency curve generating unit is further configured to obtain a full-frequency phase-frequency curve corresponding to each full-frequency spectrum waveform, and perform octave processing and moving average smoothing processing on each full-frequency phase-frequency curve to obtain full-frequency phase-frequency data corresponding to each full-frequency phase-frequency curve;
the second subunit is configured to determine a frequency overlapping region between the full-frequency phase-frequency data obtained by the first subunit and the ultra-low-frequency reference phase-frequency data obtained by the second processing unit;
a third subunit, configured to calculate a phase difference between the full-frequency phase-frequency data determined by each of the first subunits in the frequency overlapping region determined by the second subunit and the full frequency of the ultra-low-frequency reference phase-frequency data obtained by the second processing unit; the phase difference value calculation module is further configured to calculate a variance of phase differences of all the full bands as a set of full band variance values corresponding to different delay values of the full bands;
the second variance calculation unit includes:
a fourth sub-unit, configured to add different delay values of an ultra-low frequency to the ultra-low frequency data obtained by the first obtaining unit multiple times to obtain a group of ultra-low frequency time domain waveforms corresponding to the different delay values of the ultra-low frequency, where the ultra-low frequency delay data is the ultra-low frequency time domain waveform; the system is also used for carrying out Fourier transform processing on each ultra-low frequency time domain waveform to obtain an ultra-low frequency spectrum waveform corresponding to each ultra-low frequency time domain waveform; the system is also used for acquiring an ultralow frequency phase frequency curve corresponding to each ultralow frequency spectrum waveform, and performing octave processing and moving average smoothing processing on each ultralow frequency phase frequency curve to obtain ultralow frequency phase frequency data corresponding to each ultralow frequency phase frequency curve;
a fifth subunit, configured to determine a frequency overlapping region between the ultralow frequency phase-frequency data obtained by the fourth subunit and the full-frequency reference phase-frequency data obtained by the second processing unit;
a sixth subunit, configured to calculate an ultra-low frequency phase difference between the ultra-low frequency phase-frequency data determined by each fourth subunit in the frequency overlapping area determined by the fifth subunit and the full-frequency reference phase-frequency data obtained by the second processing unit; and the phase difference of all the ultralow frequencies is calculated to be used as a group of ultralow frequency variance values corresponding to different delay values of the full frequency.
As an alternative implementation, in the second aspect of the embodiment of the present invention, the second subunit includes:
a first module, configured to determine a first overlapping area between the full-frequency phase-frequency data obtained by the first subunit and the ultra-low-frequency reference phase-frequency data obtained by the second processing unit;
and the second module is used for determining a first sub-overlapping area in the first overlapping area determined by the first module according to an area selection instruction triggered by a debugging person, and the first sub-overlapping area is used as a frequency overlapping area of the full-frequency phase-frequency data and the ultra-low-frequency reference phase-frequency data.
As an alternative implementation, in the second aspect of the embodiment of the present invention, the fifth subunit includes:
a third module, configured to determine a second overlapping area between the ultralow frequency phase-frequency data obtained by the fourth subunit and the full-frequency reference phase-frequency data obtained by the second processing unit;
and the fourth module is used for determining a second sub-overlapping area in the second overlapping area determined by the third module according to an area selection instruction triggered by a debugging person, and the second sub-overlapping area is used as a frequency overlapping area of the ultralow frequency phase-frequency data and the full frequency reference phase-frequency data.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the setting unit includes:
a seventh subunit, configured to determine, according to the target variance value determined by the determining unit, a delay value corresponding to the target variance value;
an eighth subunit, configured to determine whether the full-frequency variance value obtained by the first variance calculating unit includes the target variance value;
a ninth subunit, configured to determine that the full-frequency loudspeaker box is the target loudspeaker box when the eighth subunit determines that the full-frequency variance value includes the target variance value; the eighth subunit is further configured to determine that the ultra-low frequency loudspeaker box is the target loudspeaker box when the eighth subunit determines that the full frequency variance value does not include the target variance value;
a tenth subunit, configured to set the delay value determined by the seventh subunit to the target sound box determined by the ninth subunit.
A third aspect of an embodiment of the present invention discloses a debugging apparatus, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of any one of the methods disclosed in the first aspect of the embodiments of the present invention.
A fourth aspect of the present embodiments discloses a computer-readable storage medium storing a program code, where the program code includes instructions for performing some or all of the steps of any one of the methods disclosed in the first aspect of the present embodiments.
A fifth aspect of the embodiments of the present invention discloses a computer program product, which, when running on a computer, causes the computer to perform part or all of the steps of any one of the methods disclosed in the first aspect of the embodiments of the present invention.
A sixth aspect of the present embodiment discloses an application publishing platform, where the application publishing platform is configured to publish the computer program product, and when the computer program product runs on a computer, the computer is caused to perform part or all of the steps of any one of the methods disclosed in the first aspect of the present embodiment.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the debugging equipment can firstly acquire full-frequency data of a full-frequency loudspeaker box and ultralow-frequency data of an ultralow-frequency loudspeaker box; secondly, adding different full-frequency delay values to full-frequency data for multiple times by debugging equipment to obtain a group of full-frequency delay data corresponding to the different full-frequency delay values, calculating the variance of the phase difference between each full-frequency delay data and each ultralow frequency data to obtain a group of full-frequency variance values corresponding to the different full-frequency delay values, adding different ultralow frequency delay values to ultralow frequency data by debugging equipment to obtain a group of ultralow frequency delay data corresponding to the different ultralow frequency delay values, calculating the variance of the phase difference between each ultralow frequency delay data and each full-frequency data to obtain a group of ultralow frequency variance values corresponding to the different ultralow frequency delay values; further, the debugging equipment determines the minimum variance value from the full-frequency variance value and the ultralow-frequency variance value as a target variance value; and then the debugging equipment sets the delay value corresponding to the target variance value to the target sound box corresponding to the target variance value. Therefore, by implementing the embodiment of the invention, the delay value can be accurately determined according to the variance value of the phase difference of the full-frequency amplitude-frequency curve and the low-frequency amplitude-frequency curve in the overlapping region, the delay compensation can be automatically carried out on the sound box equipment according to the delay value, and the debugging efficiency is high.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a delay compensation method based on a sound box device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another delay compensation method based on a sound box device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of selecting a frequency dividing point according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a delay compensation system based on a speaker device according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another delay compensation system based on speaker equipment according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another delay compensation system based on speaker equipment according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a delay compensation method and system based on sound box equipment, which can automatically and accurately perform delay compensation on the sound box equipment and have high debugging efficiency. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a delay compensation method based on a speaker device according to an embodiment of the present invention. As shown in fig. 1, the delay compensation method based on the speaker device may include the following steps:
101. the debugging equipment acquires full-frequency data of the full-frequency loudspeaker box and ultralow-frequency data of the ultralow-frequency loudspeaker box.
In the embodiment of the invention, the full-frequency loudspeaker box can cover the full-frequency loudspeaker or the wide-frequency loudspeaker for playing sound in low-frequency, medium-frequency and high-frequency ranges, and consists of a vibration system (a voice coil, a lead wire, a spring wave plate, a vibration film and a suspension edge), the full-frequency range of the full-frequency loudspeaker box is emitted from the same group of vibration assemblies, a point-to-surface sound production principle is formed, namely, a point sound source produces sound, the balance and the phase of the obtained sound range are consistent, the transient response of the full-frequency range is also consistent, therefore, the full-frequency loudspeaker box can create accurate sound field, human sound and musical instrument shapes, and the covered frequency range is 50-10000. The ultra-low frequency sound box is a special sound box for ultra-low frequency sound reproduction which is generally used for supplementing a full frequency sound box, is commonly used in large and medium sound systems, and can enhance the strength and the shocking sense of low frequency sound reproduction.
102. The debugging equipment adds different delay values of the full frequency to the full frequency data for multiple times to obtain a group of full frequency delay data corresponding to the different delay values of the full frequency, calculates the variance of the phase difference between each full frequency delay data and the ultralow frequency data, and obtains a group of full frequency variance values corresponding to the different delay values of the full frequency.
In the embodiment of the present invention, the different delay values of the full frequency may be values between 1 ms and 100ms, wherein the debugging device may add the different delay values of the full frequency to the full frequency data for multiple times in a continuously increasing manner, and time intervals between the different delay values of the full frequency may be equal or unequal, which is not limited in the embodiment of the present invention.
103. And adding different delay values of the ultralow frequency to the ultralow frequency data for multiple times by debugging equipment to obtain a group of ultralow frequency delay data corresponding to the different delay values of the ultralow frequency, and calculating the variance of the phase difference between each ultralow frequency delay data and the full frequency data to obtain a group of ultralow frequency variance values corresponding to the different delay values of the ultralow frequency.
In the embodiment of the present invention, the full-frequency delay value may be a value between 1 ms and 100ms, wherein the debugging device may add different full-frequency delay values to the full-frequency data for multiple times in a continuously increasing manner, and time intervals between the different full-frequency delay values may be equal or unequal, which is not limited in the embodiment of the present invention. The delay value of the ultra-low frequency may also be a value between 1 ms and 100ms, where the delay value of the ultra-low frequency may be the same as or different from the delay value of the full frequency, and the embodiment of the present invention is not limited.
104. And the debugging equipment determines the minimum variance value from the full frequency variance value and the ultralow frequency variance value as a target variance value.
105. And the debugging equipment sets the delay value corresponding to the target variance value to the target sound box corresponding to the target variance value.
In the embodiment of the invention, the debugging equipment can determine the minimum variance value in the set of the full-frequency variance value and the ultralow-frequency variance value as the target variance value, the delay value corresponding to the target variance value is the optimal debugging variance value, and meanwhile, the target loudspeaker box corresponding to the target variance value is the loudspeaker box to be debugged.
In the method described in fig. 1, the debugging device may first obtain full-frequency data of the full-frequency speaker and ultra-low-frequency data of the ultra-low-frequency speaker, then may obtain a set of full-frequency delay data corresponding to different delay values of the full frequency by adding different delay values of the full frequency to the full-frequency data for multiple times, and calculate a variance of a phase difference between each full-frequency delay data and the ultra-low-frequency data to obtain a set of full-frequency variance values corresponding to different delay values of the full frequency, and at the same time, the debugging device may also obtain a set of ultra-low-frequency delay data corresponding to different delay values of the ultra-low frequency by adding different delay values of the ultra-low-frequency data to the ultra-low-frequency data for multiple times, and calculate a variance of a phase difference between each ultra-low-frequency delay data and the full-frequency data to obtain a set of ultra-low-frequency; further, the debugging equipment can determine the minimum variance value from the full frequency variance value and the ultralow frequency variance value to serve as a target variance value, and finally, the debugging equipment sets the delay value corresponding to the target variance value to the target loudspeaker box corresponding to the target variance value. Therefore, by implementing the method described in fig. 1, the delay value can be accurately determined according to the variance value of the phase difference between the full-frequency amplitude-frequency curve and the low-frequency amplitude-frequency curve in the overlapping region, and the delay compensation can be automatically performed on the sound box device according to the delay value, so that the debugging efficiency is high.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart of another delay compensation method based on speaker equipment according to an embodiment of the present invention. As shown in fig. 2, the delay compensation method based on the speaker device may include the following steps:
201. the debugging equipment acquires full-frequency data of the full-frequency loudspeaker box and ultralow-frequency data of the ultralow-frequency loudspeaker box.
As an optional implementation manner, before the debugging device acquires the full-frequency data of the full-frequency loudspeaker box and the ultra-low-frequency data of the ultra-low-frequency loudspeaker box, the method may further include the following steps:
the debugging equipment acquires a full-frequency sound signal of a full-frequency loudspeaker box and an ultralow-frequency sound signal of an ultralow-frequency loudspeaker box through a debugging microphone;
the debugging equipment generates a group of full-frequency amplitude peak data corresponding to the full-frequency different delay values by adding the full-frequency different delay values to the full-frequency data for multiple times;
the debugging equipment generates a group of ultralow frequency amplitude peak data corresponding to the ultralow frequency different delay values by adding the ultralow frequency different delay values to the ultralow frequency data for multiple times;
the debugging equipment acquires maximum amplitude peak data in full-frequency amplitude peak data and ultralow-frequency amplitude peak data;
the debugging device sets the delay value corresponding to the maximum amplitude peak data to the sound box corresponding to the maximum amplitude peak data and performs step 201.
In the embodiment of the invention, before the automatic delay compensation is carried out by the method for determining the delay value by calculating the phase variance, the automatic delay compensation can be carried out by the method for determining the delay value by comparing the peak value of the amplitude value, so that the delay compensation debugging can be carried out on a full-frequency sound box and an ultra-low frequency sound box, the debugging accuracy is improved, a better sound reproduction effect is achieved, and the user experience is favorably improved.
202. And the debugging equipment performs Fourier transform processing on the full-frequency data to obtain a full-frequency reference spectrum, and performs Fourier transform processing on the ultralow-frequency data to obtain an ultralow-frequency reference spectrum.
In the embodiment of the invention, Fourier transform is a method for analyzing signals, time domain signals are subjected to Fourier transform to obtain frequency domain signals, debugging equipment is used for obtaining full frequency data of a time domain, and full frequency reference frequency spectrums of the frequency domain can be obtained after Fourier transform processing. The full frequency data is a full frequency signal of a time domain, and the ultra-low frequency data is an ultra-low frequency signal of the time domain.
203. The debugging equipment acquires a full-frequency reference phase curve according to the full-frequency reference frequency spectrum and acquires an ultra-low-frequency reference phase curve according to the ultra-low-frequency reference frequency spectrum.
204. And the debugging equipment performs octave processing and moving average smoothing on the full-frequency reference phase curve to obtain full-frequency reference phase-frequency data, and performs octave processing and moving average smoothing on the ultralow-frequency reference phase curve to obtain ultralow-frequency reference phase-frequency data.
In the embodiment of the invention, the octave, namely the octave power spectrum, divides the discrete frequency spectrum into at least one frequency band, then calculates the power spectrum in each frequency band respectively and then combines the power spectrum. The moving mean smoothing processing is moving median filtering, and the median filtering technology is a nonlinear smoothing filtering signal processing technology based on a sequencing statistic theory. When the moving average is smoothed, a central point of the ultra-low frequency reference phase curve may be determined first, and then a neighborhood of the central point, that is, a window, is determined, further, signal values in the window are sorted, a median (median) of the sorted signal values in the window is taken as a new value of the central signal, and when the window moves, the signal may be smoothed to remove noise in the image or the signal, where the shape of the window may be a square, a cross, or the like, which is not limited in the embodiment of the present invention. By carrying out octave processing and moving average value smoothing processing on the full-frequency reference phase curve, the noise generated in the signal processing process can be filtered, the accuracy of the acquired full-frequency reference phase-frequency data is improved, the error is reduced, and the stability of the system is improved.
205. The debugging equipment adds different delay values of the full frequency to the full frequency data for multiple times to obtain a group of full frequency delay data corresponding to the different delay values of the full frequency, calculates the variance of the phase difference between each full frequency delay data and the ultralow frequency data, and obtains a group of full frequency variance values corresponding to the different delay values of the full frequency.
206. The debugging equipment adds different full-frequency delay values to full-frequency data for multiple times to obtain a group of full-frequency time domain waveforms corresponding to the different full-frequency delay values, wherein the full-frequency delay data are the full-frequency time domain waveforms.
207. And the debugging equipment performs Fourier transform processing on each full-frequency time domain waveform to obtain a full-frequency spectrum waveform corresponding to each full-frequency time domain waveform.
208. The debugging equipment acquires a full-frequency phase-frequency curve corresponding to each full-frequency spectrum waveform, and performs octave processing and moving average smoothing processing on each full-frequency phase-frequency curve to obtain full-frequency phase-frequency data corresponding to each full-frequency phase-frequency curve.
209. And the debugging equipment determines a frequency overlapping region of the full-frequency phase frequency data and the ultralow-frequency reference phase frequency data.
Referring to fig. 3, fig. 3 is a schematic diagram of selecting a frequency division point according to an embodiment of the present invention. From fig. 3, a rectangular plane coordinate system can be seen, the horizontal axis of which represents the frequency of the sound in hertz (Hz) and the vertical axis of which represents the intensity of the sound in decibels (dB). The debugging equipment automatically determines the overlapping area of the amplitude-frequency response curve of the ultralow frequency loudspeaker box and the amplitude-frequency response curve of the full frequency loudspeaker box, the straight line C and the straight line D are target overlapping areas selected by a user in the overlapping area E, and the point F is the intersection point of the line A and the line B, namely the point F is the intersection point of the amplitude-frequency response curve A of the ultralow frequency loudspeaker box and the amplitude-frequency response curve B of the full frequency loudspeaker box and is a frequency dividing point required to be acquired in the debugging process. The target overlapping area between the straight line C and the straight line D may be preset by a user, or may be determined according to a region selection instruction triggered by a commissioning person.
As an optional implementation, the determining, by the commissioning device, a frequency overlapping region of the full-frequency phase-frequency data and the ultra-low-frequency reference phase-frequency data includes:
the debugging equipment determines a first overlapping region of full-frequency phase-frequency data and ultralow-frequency reference phase-frequency data;
and the debugging equipment determines a first sub-overlapping area in the first overlapping area according to an area selection instruction triggered by debugging personnel, and the first sub-overlapping area is used as a frequency overlapping area of full-frequency phase-frequency data and ultralow-frequency reference phase-frequency data.
210. And the debugging equipment calculates the phase difference of all frequencies of each full-frequency phase frequency data and the ultralow-frequency reference phase frequency data in the frequency overlapping region.
211. The debugging device calculates the variance of the phase difference of all the full frequencies as a set of full frequency variance values corresponding to different delay values of all the frequencies.
212. And adding different delay values of the ultralow frequency to the ultralow frequency data for multiple times by debugging equipment to obtain a group of ultralow frequency delay data corresponding to the different delay values of the ultralow frequency, and calculating the variance of the phase difference between each ultralow frequency delay data and the full frequency data to obtain a group of ultralow frequency variance values corresponding to the different delay values of the ultralow frequency.
As an optional implementation manner, adding different delay values of the ultra-low frequency to the ultra-low frequency data by the debugging device for multiple times to obtain a set of ultra-low frequency delay data corresponding to the different delay values of the ultra-low frequency, and calculating a variance of a phase difference between each piece of ultra-low frequency delay data and the full frequency data to obtain a set of ultra-low frequency variance values corresponding to the different delay values of the ultra-low frequency includes:
adding different delay values of the ultra-low frequency to the ultra-low frequency data for multiple times by debugging equipment to obtain a group of ultra-low frequency time domain waveforms corresponding to the different delay values of the ultra-low frequency, wherein the ultra-low frequency delay data is the ultra-low frequency time domain waveform;
the debugging equipment performs Fourier transform processing on each ultralow frequency time domain waveform to obtain an ultralow frequency spectrum waveform corresponding to each ultralow frequency time domain waveform;
the debugging equipment acquires an ultralow frequency phase frequency curve corresponding to each ultralow frequency spectrum waveform, and performs octave processing and moving average smoothing processing on each ultralow frequency phase frequency curve to obtain ultralow frequency phase frequency data corresponding to each ultralow frequency phase frequency curve;
and the debugging equipment determines the frequency overlapping region of the ultralow frequency phase frequency data and the full frequency reference phase frequency data.
The debugging equipment calculates the ultralow frequency phase difference between each piece of ultralow frequency phase frequency data and the full-frequency reference phase frequency data in the frequency overlapping region;
the debugging device calculates the variance of the phase differences of all the super-low frequencies as a set of super-low variance values corresponding to different delay values of the full frequency.
As an optional implementation, the determining, by the commissioning device, a frequency overlapping region of the ultra-low frequency phase-frequency data and the full-frequency reference phase-frequency data includes:
the debugging equipment determines a second overlapping region of the ultralow frequency phase frequency data and the full frequency reference phase frequency data;
and the debugging equipment determines a second sub-overlapping area in the second overlapping area according to an area selection instruction triggered by debugging personnel, and the second sub-overlapping area is used as a frequency overlapping area of the ultralow frequency phase frequency data and the full frequency reference phase frequency data.
213. And the debugging equipment determines the minimum variance value from the full frequency variance value and the ultralow frequency variance value as a target variance value.
214. And the debugging equipment determines a delay value corresponding to the target variance value according to the target variance value.
As an optional implementation manner, after the debugging device determines the delay value corresponding to the target variance value according to the target variance value, the method may further include the following steps:
the debugging equipment determines a delay debugging range according to the delay value, wherein the delay debugging range is in a value range taking the absolute value of the difference between the delay value and a preset width as a lower limit and taking the sum of the delay value and the preset width as an upper limit;
the debugging equipment selects a group of different second delay values of full frequency from the delay debugging range and selects a group of different second delay values of ultralow frequency from the delay debugging range;
adding different second delay values of the full frequency to the full frequency data for multiple times by the debugging equipment to obtain a group of full frequency delay data corresponding to the different delay values of the full frequency, and calculating the variance of the phase difference between each full frequency delay data and the ultralow frequency data to obtain a group of full frequency variance values corresponding to the different delay values of the full frequency;
adding different second delay values of the ultralow frequency to the ultralow frequency data for multiple times by the debugging equipment to obtain a group of ultralow frequency delay data corresponding to the different delay values of the ultralow frequency, and calculating the variance of the phase difference between each ultralow frequency delay data and the full frequency data to obtain a group of ultralow frequency variance values corresponding to the different delay values of the ultralow frequency;
the debugging device determines the minimum second variance value from the full frequency variance value and the ultra-low frequency variance value as the target variance value, and performs step 215.
In the embodiment of the invention, through the steps, after the delay value is determined, the delay value in the neighborhood taking the delay value as the center can be further measured so as to determine a more accurate delay value, which is beneficial to improving the debugging quality, so that the sound playing effect of the sound box group (a full-frequency sound box and an ultra-low-frequency sound box) is better, and the user experience is improved.
215. The debugging equipment judges whether the full frequency variance value comprises the target variance value, and if so, the step 216 and the step 218 are executed; if not, step 217 and step 218 are performed.
216. And the debugging equipment determines that the full-frequency loudspeaker box is the target loudspeaker box.
217. And the debugging equipment determines that the ultralow frequency sound box is the target sound box.
218. The commissioning device sets the delay value to the target loudspeaker.
In the embodiment of the present invention, the debugging device may set the delay value corresponding to the target variance value to the target sound box corresponding to the target variance value by performing the steps 214 to 218.
It can be seen that, by implementing the method described in fig. 2, not only can the delay value be accurately determined according to the variance value of the phase difference between the full-frequency amplitude-frequency curve and the low-frequency amplitude-frequency curve in the overlapping region, but also a more accurate delay value can be further determined after the target delay value is determined, and the delay compensation is automatically performed on the speaker equipment, which is beneficial to improving the debugging quality, so that the playback effect of the speaker group (full-frequency speaker and ultra-low frequency speaker) is better, and the user experience is improved.
EXAMPLE III
Referring to fig. 4, fig. 4 is a schematic structural diagram of a delay compensation system based on a speaker device according to an embodiment of the present invention. As shown in fig. 4, the system may include:
the first obtaining unit 301 is configured to obtain full-frequency data of a full-frequency loudspeaker box and ultra-low-frequency data of an ultra-low-frequency loudspeaker box.
The first variance calculating unit 302 is configured to add different delay values of the full frequency to the full frequency data acquired by the first acquiring unit 301 for multiple times to obtain a set of full frequency delay data corresponding to the different delay values of the full frequency, and calculate a variance of a phase difference between each full frequency delay data and each ultra-low frequency data to obtain a set of full frequency variance values corresponding to the different delay values of the full frequency.
The second variance calculating unit 303 is configured to add different delay values of the ultra-low frequency to the ultra-low frequency data obtained by the first obtaining unit 301 for multiple times to obtain a set of ultra-low frequency delay data corresponding to the different delay values of the ultra-low frequency, and calculate a variance of a phase difference between each piece of the ultra-low frequency delay data and the full frequency data to obtain a set of ultra-low frequency variance values corresponding to the different delay values of the ultra-low frequency.
In the embodiment of the present invention, the first obtaining unit 301 may first obtain full frequency data of a full frequency speaker and ultra-low frequency data of an ultra-low frequency speaker; then, the first variance calculating unit 302 adds different delay values of the full frequency to the full frequency data for multiple times to obtain a set of full frequency delay data corresponding to the different delay values of the full frequency, calculates a variance of a phase difference between each full frequency delay data and the ultra-low frequency data to obtain a set of full frequency variance values corresponding to the different delay values of the full frequency, and simultaneously, the second variance calculating unit 303 adds different delay values of the ultra-low frequency to the ultra-low frequency data for multiple times to obtain a set of ultra-low frequency delay data corresponding to the different delay values of the ultra-low frequency, and calculates a variance of a phase difference between each ultra-low frequency delay data and the full frequency data to obtain a set of ultra-low frequency variance values corresponding to the different delay values of the ultra-low frequency. The first variance calculating unit 302 and the second variance calculating unit 303 may be triggered to start at the same time, which is not limited in the embodiment of the present invention.
A determining unit 304, configured to determine a minimum variance value from the full frequency variance value and the ultra-low frequency variance value as a target variance value.
A setting unit 305, configured to set the delay value corresponding to the target variance value determined by the determining unit 304 to the target loudspeaker box corresponding to the target variance value.
In the system described in fig. 4, the determining unit 304 may determine a minimum variance value from the full variance value obtained by the first variance calculating unit 302 and the ultralow frequency variance value obtained by the second variance calculating unit 303 as a target variance value, and further, the setting unit 305 may set a delay value corresponding to the target variance value determined by the determining unit 304 to a target speaker corresponding to the target variance value. Therefore, by implementing the system described in fig. 4, the delay value can be accurately determined according to the variance value of the phase difference between the full-frequency amplitude-frequency curve and the low-frequency amplitude-frequency curve in the overlapping region, and the delay compensation can be automatically performed on the sound box device according to the delay value, so that the debugging efficiency is high.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another delay compensation system based on speaker equipment according to an embodiment of the present invention. The system shown in fig. 5 is optimized from the system shown in fig. 4. The system shown in fig. 5 may further include:
the first processing unit 306 is configured to, after the first acquiring unit 301 acquires the full-frequency data of the full-frequency loudspeaker and the ultra-low-frequency data of the ultra-low-frequency loudspeaker, perform fourier transform processing on the full-frequency data acquired by the first acquiring unit 301 to obtain a full-frequency reference spectrum, and perform fourier transform processing on the ultra-low-frequency data to obtain an ultra-low-frequency reference spectrum.
A second obtaining unit 307, configured to obtain a full-frequency reference phase curve according to the full-frequency reference spectrum obtained by the first processing unit 306, and obtain an ultra-low-frequency reference phase curve according to the ultra-low-frequency reference spectrum obtained by the first processing unit 306.
The second processing unit 308 is configured to perform octave processing and moving average smoothing on the full-frequency reference phase curve obtained by the second obtaining unit 307 to obtain full-frequency reference phase-frequency data, and perform octave processing and moving average smoothing on the ultra-low-frequency reference phase curve obtained by the second obtaining unit 307 to obtain ultra-low-frequency reference phase-frequency data.
Optionally, as shown in fig. 5, the first variance calculating unit 302 includes:
a first subunit 3021, configured to add different full-frequency delay values to the full-frequency data acquired by the first acquiring unit 301 multiple times, to obtain a set of full-frequency time-domain waveforms corresponding to the different full-frequency delay values, where the full-frequency delay data is the full-frequency time-domain waveform; the full-frequency time domain waveform generating unit is also used for carrying out Fourier transform processing on each full-frequency time domain waveform to obtain a full-frequency spectrum waveform corresponding to each full-frequency time domain waveform; and the full-frequency phase-frequency curve processing module is further used for obtaining a full-frequency phase-frequency curve corresponding to each full-frequency spectrum waveform, and performing octave processing and moving average smoothing processing on each full-frequency phase-frequency curve to obtain full-frequency phase-frequency data corresponding to each full-frequency phase-frequency curve.
A second sub-unit 3022, configured to determine a frequency overlapping region between the full-frequency phase-frequency data obtained by the first sub-unit 3021 and the ultra-low-frequency reference phase-frequency data obtained by the second processing unit 308.
A third subunit 3023, configured to calculate a phase difference between the full-frequency phase-frequency data determined by each first subunit 3021 in the frequency overlapping region determined by the second subunit 3022 and the full frequency of the ultra-low-frequency reference phase-frequency data obtained by the second processing unit 308; and calculating the variance of the phase difference of all full frequencies as a set of full frequency variance values corresponding to different delay values of the full frequencies.
Optionally, as shown in fig. 5, the second variance calculating unit 303 includes:
a fourth sub-unit 3031, configured to add different delay values of the ultra-low frequency to the ultra-low frequency data obtained by the first obtaining unit 301 multiple times to obtain a group of ultra-low frequency time domain waveforms corresponding to the different delay values of the ultra-low frequency, where the ultra-low frequency delay data is the ultra-low frequency time domain waveform; the system is also used for carrying out Fourier transform processing on each ultralow frequency time domain waveform to obtain an ultralow frequency spectrum waveform corresponding to each ultralow frequency time domain waveform; and the processing module is also used for acquiring the ultralow frequency phase frequency curve corresponding to each ultralow frequency spectrum waveform, and performing octave processing and moving average smoothing processing on each ultralow frequency phase frequency curve to obtain the ultralow frequency phase frequency data corresponding to each ultralow frequency phase frequency curve.
In this embodiment of the present invention, the fourth subunit 3031 may perform an octave processing and a moving average smoothing processing on each ultra-low frequency phase-frequency curve, and by performing the octave processing and the moving average smoothing processing on the ultra-low frequency phase-frequency curve, it is beneficial to eliminate noise interference of the ultra-low frequency phase-frequency curve, filter burrs on the ultra-low frequency phase-frequency curve, improve the anti-interference capability of the system, and improve the signal processing quality.
A fifth sub-unit 3032, configured to determine a frequency overlapping region between the ultra-low frequency phase-frequency data obtained by the fourth sub-unit 3031 and the full-frequency reference phase-frequency data obtained by the second processing unit 308.
A sixth sub-unit 3033, configured to calculate a phase difference between the ultra-low frequency phase-frequency data determined by each fourth sub-unit 3031 in the frequency overlapping region determined by the fifth sub-unit 3032 and the ultra-low frequency phase-frequency data of the full-frequency reference phase-frequency data obtained by the second processing unit 308; and also for calculating the variance of the phase differences for all the super low frequencies as a set of super low frequency variance values corresponding to different delay values for the full frequency.
Optionally, as shown in fig. 5, the second subunit 3022 includes:
a first module 30221, configured to determine a first overlap area between the full frequency phase frequency data obtained by the first sub-unit 3021 and the ultra low frequency reference phase frequency data obtained by the second processing unit 308.
A second module 30222, configured to determine, according to a region selection instruction triggered by a commissioning staff, a first sub-overlapping region from the first overlapping regions determined by the first module 30221, where the first sub-overlapping region is used as a frequency overlapping region between full-frequency phase-frequency data and ultra-low-frequency reference phase-frequency data.
In the embodiment of the invention, a user can determine the required frequency overlapping area in the first overlapping area automatically selected by the debugging equipment by triggering the area selection instruction, so that debugging personnel can conveniently debug and the flexibility of the system is improved.
Optionally, as shown in fig. 5, the fifth sub-unit 3032 includes:
a third module 30321, configured to determine a second overlap region between the ultra-low frequency phase-frequency data obtained by the fourth sub-unit 3031 and the full-frequency reference phase-frequency data obtained by the second processing unit 308.
A fourth module 30322, configured to determine, according to the region selection instruction triggered by the commissioning staff, a second sub-overlap region in the second overlap region determined by the third module 30321, as a frequency overlap region between the ultra-low frequency phase-frequency data and the full-frequency reference phase-frequency data.
Alternatively, as shown in fig. 5, the setting unit 305 includes:
a seventh sub-unit 3051, configured to determine, according to the target variance value determined by the determining unit 304, a delay value corresponding to the target variance value.
An eighth sub-unit 3052, configured to determine whether the full-frequency variance value obtained by the first variance calculating unit 302 includes a target variance value.
The ninth subunit 3053, configured to, when the eighth subunit 3052 determines that the full-frequency variance value includes the target variance value, determine that the full-frequency loudspeaker box is the target loudspeaker box; and is further configured to determine that the ultra-low frequency speaker is the target speaker when the eighth subunit 3052 determines that the full frequency variance value does not include the target variance value.
A tenth sub-unit 3054, configured to set the delay value determined by the seventh sub-unit 3051 to the target loudspeaker determined by the ninth sub-unit 3053.
It can be seen that, by implementing the system described in fig. 5, not only can the delay value be accurately determined according to the variance value of the phase difference between the full-frequency amplitude-frequency curve and the low-frequency amplitude-frequency curve in the overlapping region, which is favorable for improving the debugging quality, but also the noise filtering processing is performed in the process of calculating the variance value, so that the anti-interference capability of the system is improved, the accuracy of calculating the phase variance is improved, and further, the accuracy of determining the delay value is improved, so that the sound reproduction effect of the debugged sound box set (full-frequency sound box and ultra-low-frequency sound box) is better, and the user experience is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a debugging device according to an embodiment of the present invention. As shown in fig. 6, the commissioning device may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
wherein the processor 402 calls the executable program code stored in the memory 401 to perform part or all of the steps of the method in the above method embodiments.
The embodiment of the invention also discloses a computer readable storage medium, wherein the computer readable storage medium stores program codes, wherein the program codes comprise instructions for executing part or all of the steps of the method in the above method embodiments.
Embodiments of the present invention also disclose a computer program product, wherein, when the computer program product is run on a computer, the computer is caused to execute part or all of the steps of the method as in the above method embodiments.
The embodiment of the present invention also discloses an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, and when the computer program product runs on a computer, the computer is caused to execute part or all of the steps of the method in the above method embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are exemplary and alternative embodiments, and that the acts and modules illustrated are not required in order to practice the invention.
In various embodiments of the present invention, it should be understood that the sequence numbers of the above-mentioned processes do not imply an inevitable order of execution, and the execution order of the processes should be determined by their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
In addition, the terms "system" and "network" are often used interchangeably herein. It should be understood that the term "and/or" herein is merely one type of association relationship describing an associated object, meaning that three relationships may exist, for example, a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the embodiments provided herein, it should be understood that "B corresponding to A" means that B is associated with A from which B can be determined. It should also be understood, however, that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes 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), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present invention, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of each embodiment of the present invention.
The delay compensation method and system based on the sound box device disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A delay compensation method based on sound box equipment is characterized by comprising the following steps:
the debugging equipment acquires full-frequency data of a full-frequency loudspeaker box and ultralow-frequency data of an ultralow-frequency loudspeaker box;
adding different full-frequency delay values to the full-frequency data for multiple times by the debugging equipment to obtain a group of full-frequency delay data corresponding to the different full-frequency delay values, and calculating the variance of the phase difference between each full-frequency delay data and the ultralow frequency data to obtain a group of full-frequency variance values corresponding to the different full-frequency delay values;
adding different delay values of ultralow frequency to the ultralow frequency data for multiple times by the debugging equipment to obtain a group of ultralow frequency delay data corresponding to the different delay values of the ultralow frequency, and calculating the variance of the phase difference between each ultralow frequency delay data and the full frequency data to obtain a group of ultralow frequency variance values corresponding to the different delay values of the ultralow frequency;
the debugging equipment determines the minimum variance value from the full-frequency variance value and the ultralow frequency variance value as a target variance value;
the debugging equipment sets a delay value corresponding to the target variance value to a target sound box corresponding to the target variance value;
wherein the delay value of the added super-low frequency is the same as or different from the delay value of the added full frequency.
2. The method of claim 1, after the debugging device obtains full-frequency data of a full-frequency loudspeaker and ultra-low-frequency data of an ultra-low-frequency loudspeaker, further comprising:
the debugging equipment performs Fourier transform processing on the full-frequency data to obtain a full-frequency reference spectrum, and performs Fourier transform processing on the ultralow-frequency data to obtain an ultralow-frequency reference spectrum;
the debugging equipment acquires a full-frequency reference phase curve according to the full-frequency reference frequency spectrum and acquires an ultra-low-frequency reference phase curve according to the ultra-low-frequency reference frequency spectrum;
the debugging equipment performs octave processing and moving average smoothing on the full-frequency reference phase curve to obtain full-frequency reference phase-frequency data, and performs octave processing and moving average smoothing on the ultralow-frequency reference phase curve to obtain ultralow-frequency reference phase-frequency data;
the debugging device adds different full-frequency delay values to the full-frequency data for multiple times to obtain a set of full-frequency delay data corresponding to the different full-frequency delay values, calculates a variance of a phase difference between each full-frequency delay data and the ultra-low frequency data, and obtains a set of full-frequency variance values corresponding to the different full-frequency delay values, including:
adding different full-frequency delay values to the full-frequency data for multiple times by the debugging equipment to obtain a group of full-frequency time domain waveforms corresponding to the different full-frequency delay values, wherein the full-frequency delay data are the full-frequency time domain waveforms;
the debugging equipment carries out Fourier transform processing on each full-frequency time domain waveform to obtain a full-frequency spectrum waveform corresponding to each full-frequency time domain waveform;
the debugging equipment acquires a full-frequency phase-frequency curve corresponding to each full-frequency spectrum waveform, and performs octave processing and moving average smoothing processing on each full-frequency phase-frequency curve to obtain full-frequency phase-frequency data corresponding to each full-frequency phase-frequency curve;
the debugging equipment determines a frequency overlapping region of the full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data, and calculates a full-frequency phase difference of each full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data in the frequency overlapping region;
the debugging equipment calculates the variance of the phase difference of all the full frequencies to be used as a group of full frequency variance values corresponding to different delay values of the full frequencies;
the debugging equipment adds different delay values of ultra-low frequency to the ultra-low frequency data for multiple times to obtain a group of ultra-low frequency delay data corresponding to the different delay values of the ultra-low frequency, calculates the variance of the phase difference between each ultra-low frequency delay data and the full frequency data to obtain a group of ultra-low frequency variance values corresponding to the different delay values of the ultra-low frequency, and comprises the following steps:
adding different delay values of ultra-low frequency to the ultra-low frequency data for multiple times by the debugging equipment to obtain a group of ultra-low frequency time domain waveforms corresponding to the different delay values of the ultra-low frequency, wherein the ultra-low frequency delay data is the ultra-low frequency time domain waveforms;
the debugging equipment carries out Fourier transform processing on each ultra-low frequency time domain waveform to obtain an ultra-low frequency spectrum waveform corresponding to each ultra-low frequency time domain waveform;
the debugging equipment acquires an ultra-low frequency phase-frequency curve corresponding to each ultra-low frequency spectrum waveform, and performs octave processing and moving average smoothing processing on each ultra-low frequency phase-frequency curve to obtain ultra-low frequency phase-frequency data corresponding to each ultra-low frequency phase-frequency curve;
the debugging equipment determines a frequency overlapping region of the ultralow frequency phase frequency data and the full-frequency reference phase frequency data, and calculates the ultralow frequency phase difference of each ultralow frequency phase frequency data and the full-frequency reference phase frequency data in the frequency overlapping region;
the debugging device calculates the variance of the phase differences of all the ultralow frequencies as a set of ultralow frequency variance values corresponding to different delay values of the full frequency.
3. The method of claim 2, wherein the debugging device determining a frequency overlap region of the full frequency phase-frequency data and the ultra low frequency reference phase-frequency data comprises:
the debugging equipment determines a first overlapping region of the full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data;
and the debugging equipment determines a first sub-overlapping area in the first overlapping area according to an area selection instruction triggered by debugging personnel, and the first sub-overlapping area is used as a frequency overlapping area of the full-frequency phase-frequency data and the ultralow-frequency reference phase-frequency data.
4. The method of claim 2 or 3, wherein the debugging device determining a frequency overlap region of the ultra-low frequency phase-frequency data and the full-frequency reference phase-frequency data comprises:
the debugging equipment determines a second overlapping region of the ultralow frequency phase frequency data and the full frequency reference phase frequency data;
and the debugging equipment determines a second sub-overlapping area in the second overlapping area according to an area selection instruction triggered by debugging personnel, and the second sub-overlapping area is used as a frequency overlapping area of the ultralow frequency phase frequency data and the full frequency reference phase frequency data.
5. The method according to any one of claims 1 to 3, wherein the setting, by the commissioning device, the delay value corresponding to the target variance value to a target loudspeaker corresponding to the target variance value comprises:
the debugging equipment determines a delay value corresponding to the target variance value according to the target variance value;
the debugging equipment judges whether the full-frequency variance value comprises the target variance value, if so, the full-frequency sound box is determined to be the target sound box, and if not, the debugging equipment determines the ultra-low-frequency sound box to be the target sound box;
the debugging equipment sets the delay value to the target sound box.
6. The method of claim 4, wherein the debugging device setting the delay value corresponding to the target variance value to a target loudspeaker corresponding to the target variance value comprises:
the debugging equipment determines a delay value corresponding to the target variance value according to the target variance value;
the debugging equipment judges whether the full-frequency variance value comprises the target variance value, if so, the full-frequency sound box is determined to be the target sound box, and if not, the debugging equipment determines the ultra-low-frequency sound box to be the target sound box;
the debugging equipment sets the delay value to the target sound box.
7. A delay compensation system based on speaker equipment, comprising:
the first acquisition unit is used for acquiring full-frequency data of a full-frequency loudspeaker box and ultralow-frequency data of an ultralow-frequency loudspeaker box;
a first variance calculating unit, configured to add different full-frequency delay values to the full-frequency data obtained by the first obtaining unit multiple times to obtain a set of full-frequency delay data corresponding to the different full-frequency delay values, and calculate a variance between a phase difference between each full-frequency delay data and the ultra-low frequency data to obtain a set of full-frequency variance values corresponding to the different full-frequency delay values;
a second variance calculating unit, configured to add different delay values of an ultra-low frequency to the ultra-low frequency data obtained by the first obtaining unit for multiple times to obtain a set of ultra-low frequency delay data corresponding to the different delay values of the ultra-low frequency, and calculate a variance of a phase difference between each piece of the ultra-low frequency delay data and the full-frequency data to obtain a set of ultra-low frequency variance values corresponding to the different delay values of the ultra-low frequency;
a determining unit, configured to determine a minimum variance value from the full-frequency variance value and the ultra-low-frequency variance value, as a target variance value;
the setting unit is used for setting the delay value corresponding to the target variance value determined by the determining unit to a target sound box corresponding to the target variance value;
wherein the delay value of the added super-low frequency is the same as or different from the delay value of the added full frequency.
8. The system of claim 7, further comprising:
the first processing unit is used for performing Fourier transform processing on the full-frequency data acquired by the first acquisition unit to obtain a full-frequency reference spectrum and performing Fourier transform processing on the ultralow-frequency data to obtain an ultralow-frequency reference spectrum after the first acquisition unit acquires the full-frequency data of a full-frequency loudspeaker box and the ultralow-frequency data of the ultralow-frequency loudspeaker box;
a second obtaining unit, configured to obtain a full-frequency reference phase curve according to the full-frequency reference spectrum obtained by the first processing unit, and obtain an ultra-low-frequency reference phase curve according to the ultra-low-frequency reference spectrum obtained by the first processing unit;
the second processing unit is configured to perform octave processing and moving average smoothing on the full-frequency reference phase curve obtained by the second obtaining unit to obtain full-frequency reference phase-frequency data, and perform octave processing and moving average smoothing on the ultra-low-frequency reference phase curve obtained by the second obtaining unit to obtain ultra-low-frequency reference phase-frequency data;
the first variance calculating unit includes:
a first sub-unit, configured to add different full-frequency delay values to the full-frequency data acquired by the first acquisition unit multiple times to obtain a set of full-frequency time-domain waveforms corresponding to the different full-frequency delay values, where the full-frequency delay data is the full-frequency time-domain waveform; the full-frequency time-domain waveform generating unit is further used for carrying out Fourier transform processing on each full-frequency time-domain waveform to obtain a full-frequency spectrum waveform corresponding to each full-frequency time-domain waveform; the full-frequency phase-frequency curve generating unit is further configured to obtain a full-frequency phase-frequency curve corresponding to each full-frequency spectrum waveform, and perform octave processing and moving average smoothing processing on each full-frequency phase-frequency curve to obtain full-frequency phase-frequency data corresponding to each full-frequency phase-frequency curve;
the second subunit is configured to determine a frequency overlapping region between the full-frequency phase-frequency data obtained by the first subunit and the ultra-low-frequency reference phase-frequency data obtained by the second processing unit;
a third subunit, configured to calculate a phase difference between the full-frequency phase-frequency data determined by each of the first subunits in the frequency overlapping region determined by the second subunit and the full frequency of the ultra-low-frequency reference phase-frequency data obtained by the second processing unit; the phase difference value calculation module is further configured to calculate a variance of phase differences of all the full bands as a set of full band variance values corresponding to different delay values of the full bands;
the second variance calculation unit includes:
a fourth sub-unit, configured to add different delay values of an ultra-low frequency to the ultra-low frequency data obtained by the first obtaining unit multiple times to obtain a group of ultra-low frequency time domain waveforms corresponding to the different delay values of the ultra-low frequency, where the ultra-low frequency delay data is the ultra-low frequency time domain waveform; the system is also used for carrying out Fourier transform processing on each ultra-low frequency time domain waveform to obtain an ultra-low frequency spectrum waveform corresponding to each ultra-low frequency time domain waveform; the system is also used for acquiring an ultralow frequency phase frequency curve corresponding to each ultralow frequency spectrum waveform, and performing octave processing and moving average smoothing processing on each ultralow frequency phase frequency curve to obtain ultralow frequency phase frequency data corresponding to each ultralow frequency phase frequency curve;
a fifth subunit, configured to determine a frequency overlapping region between the ultralow frequency phase-frequency data obtained by the fourth subunit and the full-frequency reference phase-frequency data obtained by the second processing unit;
a sixth subunit, configured to calculate an ultra-low frequency phase difference between the ultra-low frequency phase-frequency data determined by each fourth subunit in the frequency overlapping area determined by the fifth subunit and the full-frequency reference phase-frequency data obtained by the second processing unit; and the phase difference of all the ultralow frequencies is calculated to be used as a group of ultralow frequency variance values corresponding to different delay values of the full frequency.
9. The system of claim 8, wherein the second sub-unit comprises:
a first module, configured to determine a first overlapping area between the full-frequency phase-frequency data obtained by the first subunit and the ultra-low-frequency reference phase-frequency data obtained by the second processing unit;
and the second module is used for determining a first sub-overlapping area in the first overlapping area determined by the first module according to an area selection instruction triggered by a debugging person, and the first sub-overlapping area is used as a frequency overlapping area of the full-frequency phase-frequency data and the ultra-low-frequency reference phase-frequency data.
10. The system according to claim 8 or 9, wherein the fifth sub-unit comprises:
a third module, configured to determine a second overlapping area between the ultralow frequency phase-frequency data obtained by the fourth subunit and the full-frequency reference phase-frequency data obtained by the second processing unit;
and the fourth module is used for determining a second sub-overlapping area in the second overlapping area determined by the third module according to an area selection instruction triggered by a debugging person, and the second sub-overlapping area is used as a frequency overlapping area of the ultralow frequency phase-frequency data and the full frequency reference phase-frequency data.
11. The system according to any one of claims 7 to 9, wherein the setting unit comprises:
a seventh subunit, configured to determine, according to the target variance value determined by the determining unit, a delay value corresponding to the target variance value;
an eighth subunit, configured to determine whether the full-frequency variance value obtained by the first variance calculating unit includes the target variance value;
a ninth subunit, configured to determine that the full-frequency loudspeaker box is the target loudspeaker box when the eighth subunit determines that the full-frequency variance value includes the target variance value; the eighth subunit is further configured to determine that the ultra-low frequency loudspeaker box is the target loudspeaker box when the eighth subunit determines that the full frequency variance value does not include the target variance value;
a tenth subunit, configured to set the delay value determined by the seventh subunit to the target sound box determined by the ninth subunit.
12. The system according to claim 10, wherein the setting unit comprises:
a seventh subunit, configured to determine, according to the target variance value determined by the determining unit, a delay value corresponding to the target variance value;
an eighth subunit, configured to determine whether the full-frequency variance value obtained by the first variance calculating unit includes the target variance value;
a ninth subunit, configured to determine that the full-frequency loudspeaker box is the target loudspeaker box when the eighth subunit determines that the full-frequency variance value includes the target variance value; the eighth subunit is further configured to determine that the ultra-low frequency loudspeaker box is the target loudspeaker box when the eighth subunit determines that the full frequency variance value does not include the target variance value;
a tenth subunit, configured to set the delay value determined by the seventh subunit to the target sound box determined by the ninth subunit.
CN201711479196.7A 2017-12-29 2017-12-29 Time delay compensation method and system based on sound box equipment Active CN107948864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711479196.7A CN107948864B (en) 2017-12-29 2017-12-29 Time delay compensation method and system based on sound box equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711479196.7A CN107948864B (en) 2017-12-29 2017-12-29 Time delay compensation method and system based on sound box equipment

Publications (2)

Publication Number Publication Date
CN107948864A CN107948864A (en) 2018-04-20
CN107948864B true CN107948864B (en) 2020-07-07

Family

ID=61938032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711479196.7A Active CN107948864B (en) 2017-12-29 2017-12-29 Time delay compensation method and system based on sound box equipment

Country Status (1)

Country Link
CN (1) CN107948864B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711015A (en) * 2012-05-29 2012-10-03 苏州上声电子有限公司 Method and device for controlling loudspeaker array sound field based on quadratic residue sequence combination
CN103414980A (en) * 2013-07-30 2013-11-27 浙江中科电声研发中心 Method for compensating delay and frequency response characteristics of multi-output channel sound system
CN107396274A (en) * 2017-07-07 2017-11-24 广州飞达音响股份有限公司 The method, apparatus and system of active linear array sound equipment sound field adjustment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711015A (en) * 2012-05-29 2012-10-03 苏州上声电子有限公司 Method and device for controlling loudspeaker array sound field based on quadratic residue sequence combination
CN103414980A (en) * 2013-07-30 2013-11-27 浙江中科电声研发中心 Method for compensating delay and frequency response characteristics of multi-output channel sound system
CN107396274A (en) * 2017-07-07 2017-11-24 广州飞达音响股份有限公司 The method, apparatus and system of active linear array sound equipment sound field adjustment

Also Published As

Publication number Publication date
CN107948864A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
US9344822B2 (en) Estimating nonlinear distortion and parameter tuning for boosting sound
CN108269578B (en) Method and apparatus for handling information
CN104053120B (en) A kind of processing method of stereo audio and device
US9134167B2 (en) Acoustic apparatus
US20220141612A1 (en) Spatial Audio Processing
EP3823301B1 (en) Sound field forming apparatus and method and program
CN108200526B (en) Sound debugging method and device based on reliability curve
CN109831733A (en) Test method, device, equipment and the storage medium of audio broadcast performance
CN104937659A (en) Vehicle engine sound extraction and reproduction
CN113170260B (en) Audio processing method and device, storage medium and electronic equipment
CN110475181B (en) Equipment configuration method, device, equipment and storage medium
US9106993B2 (en) Sound processing apparatus
CN107948864B (en) Time delay compensation method and system based on sound box equipment
CN113077771B (en) Asynchronous chorus sound mixing method and device, storage medium and electronic equipment
CN112669797B (en) Audio processing method, device, electronic equipment and storage medium
JP5627440B2 (en) Acoustic apparatus, control method therefor, and program
JP2011227417A (en) Sound processing apparatus
CN111045633A (en) Method and apparatus for detecting loudness of audio signal
CN107948862B (en) Automatic compensation delay method and system for sound box equipment
US20180070177A1 (en) Phase Control Signal Generation Device, Phase Control Signal Generation Method, and Phase Control Signal Generation Program
Mu Perceptual quality improvement and assessment for virtual bass system
JP2017139592A (en) Acoustic processing method and acoustic processing apparatus
CN110335623A (en) Audio data processing method and device
JP2016122157A (en) Voice processor
CN111654798A (en) Automatic debugging method and system for loudspeaker

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Li Zhixiong

Inventor after: Huang Shifeng

Inventor after: Li Zhuliang

Inventor after: Zhang Guobiao

Inventor before: Li Zhixiong

Inventor before: Huang Shifeng

Inventor before: Li Zhuliang

Inventor before: Zhang Guobiao

GR01 Patent grant
GR01 Patent grant