Audio device phase calibration method and device and electronic equipment
By generating a full pass filter to automatically calibrate the audio device phase, the problems of high labor costs and difficult debugging in traditional methods are solved, and high-precision audio device phase calibration is achieved.
Patent Information
- Application Number
- CN202411367288.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-03
AI Technical Summary
The phase calibration process of traditional audio devices is labor-intensive and requires professional skills and time. Tuners need to be proficient in using measurement software and debugging tools, and it is difficult.
By acquiring the phase difference between multiple audio devices, corresponding full pass filters are generated, and phase calibration of the audio device is used instead of manual debugging to improve accuracy.
It realizes the automation of phase calibration of audio devices, reduces labor costs and debugging difficulties, improves calibration accuracy, and simplifies the debugging process of multi-audio device systems.
Smart Images

Figure CN119255178A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of audio calibration, and in particular to a method, device and electronic equipment for phase calibration of an audio device. Background Art
[0002] The phase of an audio device refers to the relative position of its vibration mode in time when the audio device plays sound. In an audio system, the phase has an important influence on the time domain and frequency domain characteristics of the sound. The phase of the audio device can be adjusted to optimize the sound effect and stereo effect. For example, making the phase of two audio devices consistent when emitting sound can enhance the solidity and clarity of the sound, while opposite phases may cause the sound to diverge and become blurred. Therefore, in order to improve the sound quality experience of an audio system equipped with multiple audio devices, such as a home theater, car audio, etc., it is necessary to perform phase calibration on multiple audio devices in the audio system.
[0003] Currently, when performing phase calibration of an audio device, the equalizer is generally configured manually, and then the parameters of the phase equalizer are adjusted according to the actual listening experience or the phase result measured by software, and the effect is verified again to finally achieve phase calibration.
[0004] However, the manual phase calibration process usually needs to be repeated many times, and the parameters need to be adjusted repeatedly to basically debug the equalizer that meets the requirements and realize the phase calibration of the audio device. This process places high demands on the professional ability of the tuner, who needs to be proficient in using relevant measurement software and debugging tools, and also needs to have certain professional listening skills, and the labor cost is high. Summary of the invention
[0005] In view of this, the present application provides an audio device phase calibration method, device and electronic device to solve the technical problem of high labor cost for implementing audio device phase calibration in traditional solutions.
[0006] In a first aspect, the present application provides an audio device phase calibration method, comprising: acquiring phases of a first audio device and a second audio device; generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to a phase difference between the first audio device and the second audio device; calibrating the phase of the first audio device by using the first all-pass filter, and calibrating the phase of the second audio device by using the second all-pass filter.
[0007] Optionally, the process of phase calibration of the audio device may further include: if there is no calibrated audio device among the multiple audio devices to be calibrated, determining any two of the multiple audio devices to be calibrated as the first audio device and the second audio device respectively; if there is a calibrated audio device among the multiple audio devices to be calibrated, determining any calibrated audio device among the multiple audio devices to be calibrated as the first audio device, and determining any uncalibrated audio device among the multiple audio devices to be calibrated as the second audio device.
[0008] Optionally, if the first audio device is a calibrated audio device, the process of calibrating the phase of the first audio device through the first all-pass filter may further include: calibrating the phase of the first audio device through the first all-pass filter and a third all-pass filter determined by the first audio device in a historical phase calibration process.
[0009] Optionally, the process of generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the phase difference between the first audio device and the second audio device may further include: determining a target phase difference according to the phase difference between the first audio device and the second audio device, and determining a minimum phase system amplitude-frequency corresponding to the target phase difference; performing system function fitting using the target amplitude-frequency as input, and outputting a causal system function; generating an all-pass system function according to the causal system function, and generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the all-pass system function.
[0010] Optionally, the process of generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the phase difference between the first audio device and the second audio device may further include: determining a target phase difference according to the phase difference between the first audio device and the second audio device, and determining a minimum phase system amplitude-frequency corresponding to the target phase difference; determining a target frequency response according to the target phase difference and the minimum phase system amplitude-frequency; determining a target impulse response of the minimum phase system according to the target frequency response; performing system function fitting using the target impulse response as input and outputting a causal system function; generating an all-pass system function according to the causal system function, and generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the all-pass system function.
[0011] Optionally, the process of generating an all-pass system function based on the causal system function may also include: constructing an anti-causal system function having an amplitude-frequency characteristic opposite to that of the causal system function and a phase-frequency characteristic consistent with that of the causal system function; combining the causal system function with the anti-causal system function to generate the all-pass system function.
[0012] Optionally, the process of determining the target phase difference according to the phase difference between the first audio device and the second audio device may further include: subtracting the phase of the second audio device from the phase of the first audio device to obtain the phase difference; and determining half of the phase difference between the first audio device and the second audio device as the target phase difference.
[0013] Optionally, the process of generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the all-pass system function may also include: generating the second all-pass filter according to points where the poles of the all-pass system function are located within the unit circle; and swapping the zero poles of the all-pass system function corresponding to points where the poles of the all-pass system function are located outside the unit circle to generate the first all-pass filter.
[0014] According to a second aspect of the present application, there is provided an audio device phase calibration device, comprising: an acquisition module, configured to acquire the phases of a first audio device and a second audio device; a generation module, configured to generate a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the phase difference between the first audio device and the second audio device; and a calibration module, configured to calibrate the phase of the first audio device through the first all-pass filter, and calibrate the phase of the second audio device through the second all-pass filter.
[0015] The third aspect of the present application provides an electronic device, including: a processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method described in the first aspect of the embodiment.
[0016] The present application can achieve phase calibration of the first audio device and the second audio device by generating corresponding all-pass filters according to the phase difference between the first audio device and the second audio device, which can replace manual calibration and has high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0018] Figure 1 is a flowchart of a method for phase calibration of an audio device according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of a method for phase calibration of an audio device according to another embodiment of the present application;
[0020] Figure 3 is a flowchart of the steps of a method for generating an all-pass filter according to an embodiment of the present application;
[0021] Figure 4 is a flowchart of the steps of a method for generating an all-pass filter according to another embodiment of the present application;
[0022] Figure 5 is a flowchart of the steps of a method for generating an all-pass filter according to another embodiment of the present application;
[0023] Figure 6 is a schematic structural diagram of a phase calibration device for an audio device according to an embodiment of the present application;
[0024] Figure 7 It is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0026] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0027] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0028] The audio system is generally equipped with multiple audio devices, such as speakers, to provide a better sound quality experience. The specific scenarios can be home theaters, car audio, etc. However, due to the differences in the system frequency response and structural layout of different speakers, if they are not adjusted and optimized, the overall sound broadcast may not be harmonious, and the actual sound effect may not be good. Therefore, the multi-speaker audio system generally needs to be debugged by a professional tuner, and the system frequency response of different speakers is adjusted through digital signal processing and other methods to achieve the best overall audio effect. The phase calibration problem between different speakers is one of the important tasks of audio debugging, and it is difficult to debug. In the actual tuning work of a multi-speaker audio system, the tuner usually needs to spend a lot of time manually groping and repeatedly adjusting the equalizer of each speaker to achieve phase calibration.
[0029] Therefore, a phase calibration scheme for audio devices is needed to replace manual debugging, and to perform phase calibration on audio devices, especially audio devices in scenarios where multiple audio devices exist. This scheme proposes an audio device phase calibration method, device and electronic device to solve the above problem.
[0030] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.
[0031] Figure 1 is a flowchart of the steps of the phase calibration method of an audio device according to an embodiment of the present application. Figure 1 As shown, the audio device phase calibration method includes the following steps:
[0032] Step 101: Obtain phases of a first audio device and a second audio device.
[0033] Step 102: Generate a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the phase difference between the first audio device and the second audio device.
[0034] Step 103: calibrate the phase of the first audio device through a first all-pass filter, and calibrate the phase of the second audio device through a second all-pass filter.
[0035] In order to perform phase calibration on multiple audio devices in an audio system, the phases of the first audio device and the second audio device are first obtained, and the phase difference between the first audio device and the second audio device is calculated by direct subtraction. It should be noted that when calculating the phase difference between the first audio device and the second audio device, the phase difference of the entire frequency band is generally not used as the calibration target, but the phase difference is preprocessed, that is, the phase difference of some key frequency bands is selected as the calibration target, and the phase difference of the non-target frequency band is set to zero. Then, a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device are generated according to the phase difference between the first audio device and the second audio device to achieve phase calibration of the first audio device and the second audio device.
[0036] In the embodiment of the present application, by generating corresponding all-pass filters according to the phase difference between the first audio device and the second audio device, phase calibration of the first audio device and the second audio device can be achieved, which can replace manual calibration and has higher accuracy.
[0037] In a possible implementation, the process of phase calibration of the audio device may further include:
[0038] If there is no calibrated audio device among the multiple audio devices to be calibrated, any two audio devices to be calibrated among the multiple audio devices to be calibrated are respectively determined as the first audio device and the second audio device.
[0039] If there is a calibrated audio device among the multiple audio devices to be calibrated, any calibrated audio device among the multiple audio devices to be calibrated is determined as the first audio device, and any uncalibrated audio device among the multiple audio devices to be calibrated is determined as the second audio device.
[0040] When the audio device to be calibrated is calibrated for the first time, any two audio devices to be calibrated are selected from the audio devices to be calibrated to be determined as the first audio device and the second audio device respectively. After the calibration is completed, the obtained calibrated audio device is determined as the first audio device. In the subsequent calibration process, any uncalibrated audio device is selected from the audio devices to be calibrated to be determined as the second audio device, the second audio device is phase-calibrated with the first audio device, and the obtained calibrated audio devices are all determined as the first audio device until there is no uncalibrated audio device among the multiple audio devices to be calibrated.
[0041] For example, Figure 2As shown, the audio device phase calibration process may include the following steps:
[0042] Step 201 : Determine whether there is a calibrated audio device among the multiple audio devices to be calibrated. If yes, execute step 203 ; if no, execute step 202 .
[0043] Step 202 : Determine any two audio devices to be calibrated among the plurality of audio devices to be calibrated as a first audio device and a second audio device, respectively, and execute step 204 .
[0044] Step 203: determine any calibrated audio device among the multiple audio devices to be calibrated as a first audio device, and determine any uncalibrated audio device among the multiple audio devices to be calibrated as a second audio device.
[0045] Step 204: Obtain the phases of the first audio device and the second audio device.
[0046] Step 205: Generate a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the phase difference between the first audio device and the second audio device.
[0047] Step 206: calibrate the phase of the first audio device through a first all-pass filter, and calibrate the phase of the second audio device through a second all-pass filter.
[0048] Step 207 , determining whether there is an uncalibrated audio device among the multiple audio devices to be calibrated, if yes, executing step 203 , if no, terminating the current process.
[0049] It should be noted that, since the phases of the calibrated audio devices are consistent after each phase calibration, the first all-pass filter generated corresponding to the selected first audio device will be applied to perform phase calibration on all calibrated audio devices, so as to adjust the phases of all calibrated audio devices to be consistent through the first all-pass filter.
[0050] In the embodiment of the present application, each phase calibration process involves only two audio devices, so the difficulty of phase calibration is relatively low. The phase calibration between all audio devices is gradually achieved through iterative operations, which is simple and easy to operate.
[0051] In a possible implementation manner, if the first audio device is a calibrated audio device, the process of calibrating the phase of the first audio device by using the first all-pass filter may further include:
[0052] The phase of the first audio device is calibrated by using the first all-pass filter and the third all-pass filter determined by the first audio device in a historical phase calibration process.
[0053] For the first audio device that has undergone at least one phase calibration, after continuing the phase calibration, the first all-pass filter determined by the current phase calibration and the third all-pass filter determined by the historical phase calibration process are superimposed to achieve the phase calibration of the first audio device.
[0054] In the embodiment of the present application, phase calibration is performed on an audio device that performs phase calibration multiple times by superimposing all-pass filters, which is relatively simple to implement and reduces the complexity of phase calibration.
[0055] Figure 3 is a flowchart of the steps of the all-pass filter generation method according to an embodiment of the present application. Figure 3 As shown, the all-pass filter generation method includes the following steps:
[0056] Step 301: determine a target phase difference according to a phase difference between a first audio device and a second audio device, and determine a minimum phase system amplitude-frequency corresponding to the target phase difference.
[0057] Step 302: Use the target amplitude frequency as input to perform system function fitting and output a causal system function.
[0058] Step 303: Generate an all-pass system function according to the causal system function, and generate a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the all-pass system function.
[0059] In order to generate an all-pass filter, the target phase difference between the first audio device and the second audio device can be determined first. The phase difference between the first audio device and the second audio device can be directly used as the target phase difference by direct subtraction, and then the minimum phase system amplitude frequency corresponding to the target phase difference is obtained, and then the target amplitude frequency is used as input to perform system function fitting. It should be noted that before performing system function fitting, the upper limit of the order of the all-pass filter can be set, and then converted into the corresponding upper limit of the order of the system function, thereby limiting the subsequent function fitting. The higher the order of the all-pass filter, the more accurate the calculation result, but the calculation complexity will also increase. Therefore, when setting the order of the all-pass filter, the second order or the third order is usually selected, and other orders can also be set according to actual conditions. After the system function is fitted, the causal system function is output, and then the all-pass system function is generated to obtain the first all-pass filter corresponding to the first audio device and the second all-pass filter corresponding to the second audio device.
[0060] In the embodiment of the present application, through the above method, an all-pass filter can be generated for any model of audio device, thereby achieving phase calibration between audio devices, and the calculation result is a theoretical optimal solution with high accuracy.
[0061] Figure 4 is a flowchart of the steps of a method for generating an all-pass filter according to another embodiment of the present invention. Figure 4 As shown, the all-pass filter generation method includes the following steps:
[0062] Step 401: determine a target phase difference according to a phase difference between a first audio device and a second audio device, and determine a minimum phase system amplitude-frequency corresponding to the target phase difference.
[0063] Step 402: Determine the target frequency response according to the target phase difference and the minimum phase system amplitude-frequency.
[0064] Step 403: Determine a target impulse response of the minimum phase system according to the target frequency response.
[0065] Step 404: Use the target impulse response as input to perform system function fitting and output a causal system function.
[0066] Step 405: Generate an all-pass system function according to the causal system function, and generate a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the all-pass system function.
[0067] In order to generate an all-pass filter, the target phase difference between the first audio device and the second audio device can be determined first. Half of the phase difference between the first audio device and the second audio device can be directly used as the target phase difference by direct subtraction. Then, the minimum phase system amplitude frequency corresponding to the target phase difference is obtained. Then, the target frequency response is determined according to the minimum phase system amplitude frequency and the target phase difference. The target impulse response of the minimum phase system is further determined according to the target frequency response. The target impulse response is used as input to perform system function fitting. It should be noted that before performing system function fitting, the upper limit of the order of the all-pass filter can be set, and then converted into the corresponding upper limit of the order of the system function, thereby limiting the subsequent function fitting. The higher the order of the all-pass filter, the more accurate the calculation result, but the resulting calculation complexity will also increase. Therefore, when setting the order of the all-pass filter, the second order or the third order is usually selected, and other orders can also be set according to actual conditions. After the system function is fitted, the causal system function is output, and then the all-pass system function is generated to obtain the first all-pass filter corresponding to the first audio device and the second all-pass filter corresponding to the second audio device.
[0068] In the embodiment of the present application, through the above method, an all-pass filter can be generated for any model of audio device, thereby achieving phase calibration between audio devices. In addition, the target impulse response can characterize the acoustic characteristics of the audio device itself and the spatial propagation of the listening position, and the system function fitting through the target impulse response has high accuracy.
[0069] In one possible implementation, the process of generating an all-pass system function based on a causal system function may also include: constructing an anti-causal system function having an amplitude-frequency characteristic opposite to that of the causal system function and a phase-frequency characteristic consistent with that of the causal system function, combining the causal system function with the anti-causal system function, and generating an all-pass system function.
[0070] When generating an all-pass system function based on the causal system function, an anti-causal system function can be constructed, which has the opposite amplitude-frequency characteristics and the same phase-frequency characteristics as the causal system function. Specifically, it can be obtained by reversing the zero poles, such as the zero points in the unit circle of the causal system can be obtained by taking the reciprocal form to obtain the poles of the conjugate reciprocals outside the unit circle of the anti-causal system. Then, the causal system function is combined with the anti-causal system function to generate an all-pass system function. Since the phase frequency of the anti-causal system function is the same as that of the causal system function, and the amplitude frequency is opposite, the amplitude frequency of the combined system is constant and the phase frequency is doubled, which is the all-pass system function of the phase difference between the audio devices.
[0071] It can be seen that the phase frequency in the all-pass system function is doubled. Therefore, in order to directly obtain the same result as the phase difference between the first audio device and the second audio device, in the process of determining the target phase difference according to the phase difference between the first audio device and the second audio device, the phase of the first audio device can be subtracted from the phase of the second audio device to obtain the phase difference, and half of the phase difference between the first audio device and the second audio device can be determined as the target phase difference. At this time, the phase frequency of the all-pass system function is twice the target phase difference, which is the same as the phase difference between the first audio device and the second audio device.
[0072] In the embodiment of the present application, by constructing an anti-causal system function and processing a causal and anti-causal combined all-pass system function, the amplitude and frequency of the final fitted system function is made constant, ensuring that the fitting result must be an all-pass function, thereby ensuring the accuracy of phase calibration.
[0073] Figure 5 is a flowchart of the steps of a method for generating an all-pass filter according to another embodiment of the present application. Figure 5 As shown, the all-pass filter generation method includes the following steps:
[0074] Step 501: Generate a second all-pass filter according to the points where the pole positions of the all-pass system function are located within the unit circle.
[0075] Step 502: swap the zero poles of the all-pass system function corresponding to the points whose poles of the all-pass system function are outside the unit circle to generate a first all-pass filter.
[0076] After generating the all-pass system function according to the causal system function in step 303 or step 405, generating the first all-pass filter corresponding to the first audio device and the second all-pass filter corresponding to the second audio device according to the all-pass system function can be realized by the zero poles of the all-pass system function. Since the zero poles of the filter with real coefficients are conjugate or real numbers, and the zero poles of the all-pass system are reciprocal, the all-pass system function is split in the form of zero-pole pairs to obtain an all-pass filter with an order corresponding to the upper limit of the pre-set all-pass filter order. Then, the split system poles are distinguished according to the position of the poles of the split system. The poles are located within the unit circle, which are stable systems, while the poles are located outside the unit circle. The system zero poles are interchanged to convert it into a stable system. It should be noted that the audio device corresponding to the all-pass filter with poles located outside the unit circle is an audio device with a phase as a subtrahend in the phase difference calculation.
[0077] In an embodiment of the present application, for an unstable all-pass filter, a corresponding stable all-pass filter is introduced in another audio device whose phase is subtracted, instead of introducing an unstable all-pass filter in the audio device whose phase is subtracted, so as to ensure that the phase difference result is correctly calibrated while all the all-pass filters used are stable.
[0078] Figure 6 is a structural diagram of an audio device phase calibration device according to an embodiment of the present application. Figure 6 As shown, the audio device phase calibration device 600 includes:
[0079] An acquisition module 601 is used to acquire the phase of the first audio device and the second audio device;
[0080] A generating module 602, configured to generate a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to a phase difference between the first audio device and the second audio device;
[0081] The calibration module 603 is configured to calibrate the phase of the first audio device through a first all-pass filter, and calibrate the phase of the second audio device through a second all-pass filter.
[0082] In order to perform phase calibration on multiple audio devices in an audio system, the phases of the first audio device and the second audio device are first obtained, and the phase difference between the first audio device and the second audio device is calculated by direct subtraction. It should be noted that when calculating the phase difference between the first audio device and the second audio device, the phase difference of the entire frequency band is generally not used as the calibration target, but the phase difference is preprocessed, that is, the phase difference of some key frequency bands is selected as the calibration target, and the phase difference of the non-target frequency band is set to zero. Then, a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device are generated according to the phase difference between the first audio device and the second audio device to achieve phase calibration of the first audio device and the second audio device.
[0083] In the embodiment of the present application, the generation module 602 generates the corresponding all-pass filters respectively through the phase difference between the first audio device and the second audio device, and the phase calibration of the first audio device and the second audio device can be achieved through the calibration module 603, which can replace manual calibration and has higher accuracy.
[0084] It should be noted that, since the information interaction, execution process, etc. between the acquisition module 601, the generation module 602 and the calibration module 603 in the above-mentioned audio device phase calibration device 600 are based on the same concept as the above-mentioned audio device phase calibration method embodiment, the specific contents can be found in the description of the above-mentioned audio device phase calibration method embodiment, and will not be repeated here.
[0085] In this embodiment, an electronic device 700 is provided, such as Figure 7 As shown, it may include: a processor (processor) 701, a communication interface (Communications Interface) 702, a memory (memory) 703, and a communication bus 704. Among them:
[0086] The processor 701 , the communication interface 702 , and the memory 703 communicate with each other via the communication bus 704 .
[0087] The communication interface 702 is used to communicate with other electronic devices or servers.
[0088] The processor 701 is used to execute the program 705, and specifically can execute the relevant steps in the above-mentioned embodiment of the audio device phase calibration method.
[0089] Specifically, the program 705 may include program codes, which include computer operation instructions.
[0090] The processor 701 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0091] The memory 703 is used to store the program 705. The memory 703 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0092] The program 705 may be specifically used to enable the processor 701 to execute the audio device phase calibration method in the aforementioned embodiment.
[0093] The specific implementation of each step in program 705 can refer to the corresponding description of the corresponding steps and units in the above-mentioned audio device phase calibration method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0094] The electronic device 700 of the embodiment of the present application can achieve phase calibration of the first audio device and the second audio device by generating corresponding all-pass filters according to the phase difference between the first audio device and the second audio device, which can replace manual calibration and has high accuracy.
[0095] It should be understood that the specific examples in the embodiments of the present application are only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. Those skilled in the art can make various improvements and modifications based on the above embodiments, and these improvements or modifications all fall within the scope of protection of the present application.
[0096] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for phase calibration of an audio device, characterized in that: include: Obtaining the phase of the first audio device and the second audio device; generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to a phase difference between the first audio device and the second audio device; The phase of the first audio device is calibrated by the first all-pass filter, and the phase of the second audio device is calibrated by the second all-pass filter.
2. The method according to claim 1, characterized in that The method further comprises: If there is no calibrated audio device among the multiple audio devices to be calibrated, determining any two audio devices to be calibrated among the multiple audio devices to be calibrated as the first audio device and the second audio device respectively; If there is a calibrated audio device among the multiple audio devices to be calibrated, any calibrated audio device among the multiple audio devices to be calibrated is determined as the first audio device, and any uncalibrated audio device among the multiple audio devices to be calibrated is determined as the second audio device.
3. The method according to claim 2, characterized in that If the first audio device is a calibrated audio device, calibrating the phase of the first audio device by using the first all-pass filter includes: The phase of the first audio device is calibrated by using the first all-pass filter and the third all-pass filter determined by the first audio device in a historical phase calibration process.
4. The method according to claim 1, characterized in that: The step of generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the phase difference between the first audio device and the second audio device comprises: Determine a target phase difference according to the phase difference between the first audio device and the second audio device, and determine a minimum phase system amplitude-frequency corresponding to the target phase difference; Using the target amplitude frequency as input to perform system function fitting, and outputting a causal system function; An all-pass system function is generated according to the causal system function, and a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device are generated according to the all-pass system function.
5. The method according to claim 1, characterized in that The step of generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the phase difference between the first audio device and the second audio device comprises: Determine a target phase difference according to the phase difference between the first audio device and the second audio device, and determine a minimum phase system amplitude-frequency corresponding to the target phase difference; Determining a target frequency response according to the target phase difference and the minimum phase system amplitude-frequency; Determining a target impulse response of the minimum phase system according to the target frequency response; Using the target impulse response as input to perform system function fitting, and outputting a causal system function; An all-pass system function is generated according to the causal system function, and a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device are generated according to the all-pass system function.
6. The method according to claim 4 or 5, characterized in that: The generating of a full-pass system function according to the causal system function comprises: Constructing an anti-causal system function having opposite amplitude-frequency characteristics and consistent phase-frequency characteristics to the causal system function; The causal system function is combined with the anti-causal system function to generate the full-pass system function.
7. The method according to claim 6, characterized in that The determining a target phase difference according to the phase difference between the first audio device and the second audio device comprises: subtracting the phase of the second audio device from the phase of the first audio device to obtain the phase difference; A half of a phase difference between the first audio device and the second audio device is determined as a target phase difference.
8. The method according to claim 7, characterized in that The step of generating a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to the all-pass system function comprises: generating the second all-pass filter according to the point where the pole position of the all-pass system function is located within the unit circle; The poles and zeros of the all-pass system function corresponding to the points where the poles of the all-pass system function are located outside the unit circle are interchanged to generate the first all-pass filter.
9. An audio device phase calibration device, characterized in that: include: An acquisition module, configured to acquire the phase of the first audio device and the second audio device; a generating module, configured to generate a first all-pass filter corresponding to the first audio device and a second all-pass filter corresponding to the second audio device according to a phase difference between the first audio device and the second audio device; The calibration module is configured to calibrate the phase of the first audio device through the first all-pass filter, and calibrate the phase of the second audio device through the second all-pass filter.
10. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the method according to any one of claims 1 to 8.
