Audio system tuning method and device, storage medium and electronic equipment
By obtaining the frequency response and reverberation characteristics of a reference audio system and combining them with the number of equalizers in the audio system to be adjusted, the equalizer parameters are determined and adjusted. This solves the problem of complex and tedious audio system sound effect adjustment in the existing technology, and achieves the effect of simplifying the process and improving efficiency.
Patent Information
- Application Number
- CN202410256536.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2025-09-09
AI Technical Summary
In the prior art, the process of adjusting the sound effects of the audio system to be adjusted to be similar to that of the reference audio system is complicated and tedious, with a long cycle and low efficiency, and requires professionals to repeatedly compare and adjust.
By obtaining the frequency response and reverberation characteristics of a reference audio system and combining them with the number of equalizers in the audio system to be adjusted, the parameters of each equalizer are determined, and the audio system to be adjusted is adjusted based on the reference frequency response and reverberation characteristics, making adjustments in both frequency response and reverberation.
The adjustment process is simplified, the adjustment cycle is shortened, the tuning efficiency is improved, and the sound effect of the audio system to be adjusted is similar to that of the reference audio system.
Smart Images

Figure CN120612906A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of audio processing technology, and in particular to an audio system tuning method, device, storage medium, and electronic device. Background Art
[0002] Since music is an important art form and cultural activity, music-related products have also developed rapidly with the increase in user demand. Audio systems (e.g., speakers) have also developed accordingly, and the quality of the audio system's sound effects has become an important indicator for consumers to purchase the product.
[0003] In the related art, if you want to adjust the sound effect of the audio system to be adjusted to be close to that of another reference audio system with good sound effect, professionals are required to perform repeated comparisons and adjustments. The process is complicated, tedious, time-consuming and inefficient. Summary of the Invention
[0004] To overcome the problems existing in the related art, the present disclosure provides an audio system tuning method, device, storage medium and electronic device.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for tuning an audio system is provided, the method comprising:
[0006] Obtain reference frequency response characteristics of a reference audio system;
[0007] determining an equalizer parameter of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics;
[0008] determining a reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic;
[0009] The audio system to be adjusted is adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics.
[0010] Optionally, the equalizer parameters include a center frequency, a bandwidth value, and a gain value;
[0011] The step of determining the equalizer parameters of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics includes:
[0012] Dividing the reference frequency response characteristic into sub-reference frequency response characteristics equal to the number of the equalizers, wherein the sub-reference frequency response characteristics correspond one-to-one to the equalizers;
[0013] According to the sub-reference frequency response characteristic, a center frequency, a bandwidth value, and a gain value of an equalizer corresponding to the sub-reference frequency response characteristic are determined.
[0014] Optionally, the sub-reference frequency response characteristics include a plurality of continuous reference frequencies and a reference gain value corresponding to each of the reference frequencies;
[0015] The determining, based on the sub-reference frequency response characteristic, a center frequency, a bandwidth value, and a gain value of an equalizer corresponding to the sub-reference frequency response characteristic, includes:
[0016] Determining, according to the plurality of continuous reference frequencies, a center frequency and a bandwidth value of an equalizer corresponding to the sub-reference frequency response characteristics;
[0017] A gain value of an equalizer corresponding to the sub-reference frequency response characteristic is determined according to the reference gain values corresponding to the multiple continuous reference frequencies.
[0018] Optionally, determining, based on the multiple continuous reference frequencies, a center frequency and a bandwidth value of an equalizer corresponding to the sub-reference frequency response characteristics includes:
[0019] Calculating an average of the plurality of continuous reference frequencies to obtain a center frequency of the equalizer corresponding to the sub-reference frequency response characteristic;
[0020] The difference between the maximum reference frequency and the minimum reference frequency among the plurality of continuous reference frequencies is calculated to obtain a bandwidth value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0021] Optionally, determining the gain value of the equalizer corresponding to the sub-reference frequency response characteristic according to the reference gain values corresponding to the multiple continuous reference frequencies includes:
[0022] An average of the reference gain values corresponding to the plurality of continuous reference frequencies is calculated to obtain a reference gain average, and the reference gain average is used as a gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0023] Optionally, determining the gain value of the equalizer corresponding to the sub-reference frequency response characteristic according to the reference gain values corresponding to the multiple continuous reference frequencies includes:
[0024] Determining a maximum reference gain value and a minimum reference gain value from the reference gain values corresponding to the plurality of consecutive reference frequencies;
[0025] Obtaining a plurality of intermediate gain values according to the set step value, the maximum reference gain value, and the minimum reference gain value;
[0026] Calculating an average of the reference gain values corresponding to the plurality of consecutive reference frequencies to obtain a reference gain average;
[0027] The difference between each of the intermediate gain values and the reference gain mean is calculated, and the intermediate gain value with the smallest difference is used as the gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0028] Optionally, the reference reverberation characteristic includes a target impulse response;
[0029] Determining the reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic includes:
[0030] Performing an inverse transformation on the reference frequency response characteristic to obtain an inverse reference frequency response characteristic;
[0031] Obtaining a filtered signal according to the pulse signal and the reference frequency response inverse characteristic;
[0032] After the filtered signal is input into the reference audio system, a reference impulse response output by the reference audio system is obtained, and the reference impulse response is used as the target impulse response.
[0033] Optionally, the reference reverberation characteristic includes a target impulse response, and the audio system tuning method further includes:
[0034] Determine the reverberation duration;
[0035] Determining the reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic includes:
[0036] Performing an inverse transformation on the reference frequency response characteristic to obtain an inverse reference frequency response characteristic;
[0037] Obtaining a filtered signal according to the pulse signal and the reference frequency response inverse characteristic;
[0038] After inputting the filtered signal into the reference audio system, obtaining a reference impulse response output by the reference audio system;
[0039] The target impulse response is determined according to the reference impulse response and the reverberation duration.
[0040] Optionally, after adjusting the audio system to be adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics, the audio system tuning method further includes:
[0041] Determining dynamic range control parameters of the audio system to be adjusted;
[0042] The audio system to be adjusted is secondary adjusted according to the dynamic range control parameter.
[0043] According to a second aspect of an embodiment of the present disclosure, there is provided an audio system tuning device, the audio system tuning device comprising:
[0044] an acquisition module configured to acquire a reference frequency response characteristic of a reference audio system;
[0045] A first processing module is configured to determine an equalizer parameter of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics;
[0046] a second processing module, configured to determine a reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic;
[0047] The third processing module is configured to adjust the audio system to be adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics.
[0048] According to a third aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the program implements any step of the audio system tuning method provided in the first aspect of the present disclosure.
[0049] According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0050] a memory having a computer program stored thereon;
[0051] A processor is configured to execute the computer program in the memory to implement any step of the audio system tuning method provided in the first aspect of the present disclosure.
[0052] Through the above technical solution, the reference frequency response characteristics of the reference audio system are first obtained. Then, based on the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics, the equalizer parameters of each equalizer are determined. Then, based on the reference frequency response characteristics, the reference reverberation characteristics of the reference audio system are determined. Finally, the audio system to be adjusted is adjusted based on the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics. By determining the equalizer parameters of each equalizer based on the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics of the reference audio system, and then determining the reference reverberation characteristics based on the reference frequency response characteristics, the audio system to be adjusted is adjusted from both frequency response and reverberation aspects, so that the sound effects of the audio system to be adjusted are similar to those of the reference audio system. This simplifies the adjustment process, shortens the adjustment cycle, and improves tuning efficiency.
[0053] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following detailed description, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0055] Figure 1 The figure is a flow chart showing a method for tuning an audio system according to an exemplary embodiment.
[0056] Figure 2 is a flowchart of sub-steps of step S2 according to an exemplary embodiment.
[0057] Figure 3 is a flowchart of sub-steps of step S22 according to an exemplary embodiment.
[0058] Figure 4 is a flowchart of sub-steps of step S222 according to an exemplary embodiment.
[0059] Figure 5 is a flowchart of sub-steps of step S3 according to an exemplary embodiment.
[0060] Figure 6 is a flowchart of sub-steps of another step S3 according to an exemplary embodiment.
[0061] Figure 7 The figure is a flow chart showing another method for tuning an audio system according to an exemplary embodiment.
[0062] Figure 8 is a schematic diagram showing generation of an equalizer sub-model according to an exemplary embodiment.
[0063] Figure 9 is a schematic diagram showing generation of a reverberation sub-model according to an exemplary embodiment.
[0064] Figure 10 The figure is a schematic diagram showing an audio link according to an exemplary embodiment.
[0065] Figure 11 The figure is a block diagram showing a device for tuning an audio system according to an exemplary embodiment.
[0066] Figure 12 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0067] The following describes the specific embodiments of the present disclosure in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure and are not intended to limit the present disclosure.
[0068] In the following description, words such as “first” and “second” are only used for the purpose of distinguishing the description and should not be understood as indicating or implying relative importance or order.
[0069] Since music is an important art form and cultural activity, music-related products have also developed rapidly with the increase in user demand. Audio systems (e.g., speakers) have also developed accordingly, and the quality of the audio system's sound effects has become an important indicator for consumers to purchase the product.
[0070] In the related art, if you want to adjust the sound effect of the audio system to be adjusted to be close to that of another reference audio system with good sound effect, professionals are required to perform repeated comparisons and adjustments. The process is complicated, tedious, time-consuming and inefficient.
[0071] To solve the above technical problems, the equalizer parameters of each equalizer are determined by the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics of the reference audio system. The reference reverberation characteristics are then determined based on the reference frequency response characteristics. The audio system to be adjusted is adjusted from two aspects: frequency response and reverberation. This makes the sound effects of the audio system to be adjusted similar to those of the reference audio system, simplifies the adjustment process, shortens the adjustment cycle, and improves tuning efficiency.
[0072] See also Figure 1 , Figure 1 An audio system tuning method according to an exemplary embodiment is shown. The audio system tuning method can be used for an electronic device connected to an audio system to be tuned. The audio system tuning method includes steps S1 to S4.
[0073] Step S1: Obtain a reference frequency response characteristic of a reference audio system.
[0074] The reference frequency response characteristic may be a frequency response characteristic of a reference audio system.
[0075] For example, a test signal can be input into a reference audio system, played back by the reference audio system, and then detected and analyzed by an audio analyzer to obtain a reference frequency response characteristic of the reference audio system. The frequency response characteristic can represent the gain value at different frequency points.
[0076] In other embodiments, in order to improve and enhance the frequency response characteristics, frequency points and their corresponding gain values may be added by interpolation.
[0077] Step S2: determining the equalizer parameters of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics.
[0078] The equalizers in the system to be tuned are connected in series to form an equalizer sub-model. For example, the equalizer sub-model may be 32 equalizers connected in series.
[0079] The number of equalizers may be input by a user or read by an electronic device in the audio system to be adjusted, and this embodiment does not impose any limitation thereto.
[0080] The equalizer parameters of each equalizer are determined based on the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics. This can be understood as dividing the reference frequency response characteristics into multiple subsets, where the number of subsets is the same as the number of equalizers, each subset corresponds to an equalizer, and the equalizer parameters of the equalizer corresponding to the subset are determined based on the subsets.
[0081] Step S3: determining a reference reverberation characteristic of a reference audio system according to the reference frequency response characteristic.
[0082] The reference reverberation characteristic may be a reverberation characteristic of a reference audio system. The reverberation characteristic may be represented by an impulse response, and the reverberation effect may be restored by performing convolution processing on the impulse response.
[0083] Step S4: adjusting the audio system to be adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics.
[0084] According to each equalizer parameter, the equalizer corresponding to the equalizer parameter is adjusted to restore the frequency response effect of the reference audio; then convolution processing is performed based on the impulse response in the reference reverberation characteristics to restore the reverberation effect of the reference audio system.
[0085] The equalizer parameters of each equalizer are determined by the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics of the reference audio system. The reference reverberation characteristics are then determined by the reference frequency response characteristics. The audio system to be adjusted is adjusted from two aspects: frequency response and reverberation. This makes the sound effects of the audio system to be adjusted similar to those of the reference audio system, thus simplifying the adjustment process, shortening the adjustment cycle, and improving tuning efficiency.
[0086] In a possible implementation, the equalizer parameters may include a center frequency, a bandwidth value, and a gain value. Figure 2 , step S2 may include step S21 and step S22.
[0087] Step S21: Divide the reference frequency response characteristic into sub-reference frequency response characteristics as many as the number of equalizers.
[0088] Among them, the sub-reference frequency response characteristics correspond one to one with the equalizer.
[0089] The reference frequency response characteristic is divided into a plurality of continuous sub-reference frequency response characteristics, and the number of the sub-reference frequency response characteristics is the same as the number of equalizers, that is, each sub-reference frequency response characteristic corresponds to one equalizer.
[0090] The sub-reference frequency response characteristics include a plurality of continuous reference frequencies and a reference gain value corresponding to each reference frequency.
[0091] For example, if the number of equalizers is 5, the reference frequency response characteristic is divided into 5 consecutive sub-reference frequency response characteristics, namely a first sub-reference frequency response characteristic, a second sub-reference frequency response characteristic, a third sub-reference frequency response characteristic, a fourth sub-reference frequency response characteristic and a fifth sub-reference frequency response characteristic.
[0092] The maximum value of the reference frequency in the first sub-reference frequency response characteristic < the minimum value of the reference frequency in the second sub-reference frequency characteristic (< the maximum value of the reference frequency in the second sub-reference frequency response characteristic) < the minimum value of the reference frequency in the third sub-reference frequency characteristic (< the maximum value of the reference frequency in the third sub-reference frequency response characteristic) < the minimum value of the reference frequency in the fourth sub-reference frequency characteristic (< the maximum value of the reference frequency in the fourth sub-reference frequency response characteristic) < the minimum value of the reference frequency in the fifth sub-reference frequency characteristic (< the maximum value of the reference frequency in the fifth sub-reference frequency response characteristic).
[0093] Step S22 : determining the center frequency, bandwidth, and gain of the equalizer corresponding to the sub-reference frequency response characteristic according to the sub-reference frequency response characteristic.
[0094] In a possible implementation, the sub-reference frequency response characteristics include a plurality of continuous reference frequencies and a reference gain value corresponding to each reference frequency. Figure 3 , step S22 may include step S221 and step S222.
[0095] Step S221 : determining the center frequency and bandwidth value of the equalizer corresponding to the sub-reference frequency response characteristics according to a plurality of continuous reference frequencies.
[0096] Step S222 : determining a gain value of an equalizer corresponding to the sub-reference frequency response characteristic according to the reference gain values corresponding to the plurality of consecutive reference frequencies.
[0097] In a possible implementation, step S221 may include:
[0098] Calculating an average of a plurality of continuous reference frequencies in the sub-reference frequency response characteristic to obtain a center frequency of the equalizer corresponding to the sub-reference frequency response characteristic;
[0099] The difference between the maximum reference frequency and the minimum reference frequency among a plurality of continuous reference frequencies in the sub-reference frequency response characteristic is calculated to obtain a bandwidth value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0100] In a possible implementation, step S222 may include:
[0101] The average of the reference gain values corresponding to multiple consecutive reference frequencies in the sub-reference frequency response characteristic is calculated to obtain a reference gain average, and the reference gain average is used as the gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0102] In another possible implementation, see Figure 4 , step S222 may include steps S2221 to S2224.
[0103] Step S2221 : determining a maximum reference gain value and a minimum reference gain value from reference gain values corresponding to a plurality of consecutive reference frequencies.
[0104] The reference gain values corresponding to a plurality of consecutive reference frequencies are compared to determine a maximum reference gain value and a minimum reference gain value.
[0105] In step S2222, a plurality of intermediate gain values are obtained according to the set step value, the maximum reference gain value, and the minimum reference gain value.
[0106] Based on the set step value, the maximum reference gain value, and the minimum reference gain value, multiple intermediate gain values are obtained. It can be understood that, starting with the minimum reference gain value, the set step value is accumulated each time until the accumulated value exceeds the maximum reference gain value. Each accumulation according to the set step value will generate an intermediate gain value, thereby obtaining multiple intermediate gain values.
[0107] For example, if the minimum reference gain value is 20dB, the maximum reference gain value is 25dB, and the step value is set to 0.5dB, then the multiple intermediate gain values are 20.5dB, 21dB, 21.5dB, 22dB, 22.5dB, 23dB, 23.5dB, 24dB, and 24.5dB.
[0108] Based on the set step value, the maximum reference gain value, and the minimum reference gain value, multiple intermediate gain values are obtained. It can also be understood that, with the maximum reference gain value as the starting point, the value is decreased according to the set step value each time until the value after decrease is less than the minimum reference gain value. Each time the value is decreased according to the set step value, an intermediate gain value is generated, thereby obtaining multiple intermediate gain values.
[0109] Step S2223 , calculating the average of the reference gain values corresponding to a plurality of consecutive reference frequencies to obtain the reference gain average.
[0110] Step S2224 , calculating the difference between each intermediate gain value and the reference gain mean, and taking the intermediate gain value with the smallest difference as the gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0111] In one possible implementation, the reference reverberation characteristics include a target impulse response, see Figure 5 , step S3 may include steps S31 to S33.
[0112] Step S31 : performing inverse transformation on the reference frequency response characteristic to obtain an inverse reference frequency response characteristic.
[0113] Performing an inverse transformation on the reference frequency response characteristic can be understood as inverting the gain value in the reference frequency response characteristic to obtain an inverse reference frequency response characteristic.
[0114] For example, if the gain value corresponding to a frequency point is 21 dB, the inverse of the gain value is -21 dB. By performing the same operation on the gain value corresponding to each frequency point in the reference frequency response characteristic, the inverse reference frequency response characteristic can be obtained.
[0115] Step S32: Obtain a filtered signal according to the pulse signal and the reference inverse frequency response characteristic.
[0116] The pulse signal and the inverse frequency response characteristic of the reference are combined through a filter to generate a filtered signal.
[0117] Step S33: After inputting the filtered signal into the reference audio system, a reference impulse response output by the reference audio system is obtained, and the reference impulse response is used as the target impulse response.
[0118] The filtered signal is input into a reference audio system, and the reference audio system outputs a reference impulse response according to the filtered signal, and the reference impulse response is used as the target impulse response.
[0119] In another possible implementation, the reference reverberation characteristic includes a target impulse response, and the audio system tuning method may further include:
[0120] Determines the reverb duration.
[0121] The reverberation duration may be a fixed value set in advance, for example, 2 seconds, or may be set according to a valid segment of a reference impulse response, which is not limited in this embodiment.
[0122] See also Figure 6 , step S3 may include steps S34 to S37.
[0123] Step S34: performing inverse transformation on the reference frequency response characteristics to obtain an inverse reference frequency response characteristic.
[0124] Performing an inverse transformation on the reference frequency response characteristic can be understood as inverting the gain value in the reference frequency response characteristic to obtain an inverse reference frequency response characteristic.
[0125] For example, if the gain value corresponding to a frequency point is 21 dB, the inverse of the gain value is -21 dB. By performing the same operation on the gain value corresponding to each frequency point in the reference frequency response characteristic, the inverse reference frequency response characteristic can be obtained.
[0126] Step S35: Obtain a filtered signal according to the pulse signal and the reference inverse frequency response characteristic.
[0127] The pulse signal and the inverse frequency response characteristic of the reference are combined through a filter to generate a filtered signal.
[0128] Step S36: After inputting the filtered signal into the reference audio system, a reference impulse response output by the reference audio system is obtained.
[0129] The filtered signal is input into a reference audio system, and the reference audio system outputs a reference impulse response according to the filtered signal, and the reference impulse response is used as the target impulse response.
[0130] Step S37: determining a target impulse response according to the reference impulse response and the reverberation duration.
[0131] In the reference impulse response, a portion of the reference impulse response with a long reverberation duration is cut out and used as the target impulse response.
[0132] For example, if the reverberation duration is 2 seconds, the portion corresponding to 0 to 2 seconds in the reference impulse response may be used as the target impulse response.
[0133] By selecting the portion of the reverberation duration from the reference impulse response as the target impulse response, the amount of data processing is reduced and the tuning efficiency is improved.
[0134] In one possible implementation, see Figure 7 , Figure 7 This is a flow chart of another audio system tuning method according to an exemplary embodiment. The audio system tuning method can be used in an electronic device connected to an audio system to be tuned, and the audio system tuning method can include steps S101 to S106.
[0135] Step S101: Obtain a reference frequency response characteristic of a reference audio system.
[0136] Step S102 : determining the equalizer parameters of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics.
[0137] Step S103: determining a reference reverberation characteristic of a reference audio system according to the reference frequency response characteristic.
[0138] Step S104 : adjusting the audio system to be adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics.
[0139] Step S105 : determining the dynamic range control parameters of the audio system to be adjusted.
[0140] Dynamic Range Control (DRC) can be used to dynamically adjust the audio system's output amplitude, suppressing it within a preset range at high volume levels and increasing it appropriately at low volume levels. DRC can also be used to control audio output power, ensuring that the system's speakers don't clip and that audio remains clearly audible even at low volume levels.
[0141] The dynamic range control parameters of the audio system to be adjusted can be determined based on the dynamic range control parameters of the reference audio system.
[0142] Step S106 : performing secondary adjustment on the audio system to be adjusted according to the dynamic range control parameter.
[0143] It should be noted that the detailed description of step S101 , step S102 , step S103 and step S104 may refer to step S1 , step S2 , step S3 and step S4 respectively, and will not be repeated herein in this embodiment.
[0144] In one embodiment, the audio system tuning method can be divided into three processes: generating an equalizer sub-model, generating a reverberation sub-model, and generating a final tuning model.
[0145] (1) Generate the equalizer sub-model, see Figure 8 , the following is a brief description of the specific modules:
[0146] The frequency response curve calculation unit calculates the gain of the reference audio system for each frequency point. For example, the frequency response curve of the reference audio system measured by an audio analyzer can be used as input data. This unit parses the input data set and interpolates data outside the data set to generate the target frequency response curve.
[0147] The equalizer sub-model configuration unit can set some parameters of the target equalizer sub-model. For example, the equalizer sub-model here consists of multiple equalizers connected in series. As an example, you can set the number of equalizers, such as 32, as well as the center frequency and Q value (the ratio of center frequency to bandwidth) of each equalizer, and the gain range. Only the gain value of each equalizer remains to be determined.
[0148] The equalizer sub-model parameter calculation unit calculates the equalizer sub-model parameters that are closest to the target frequency response curve through the configured parameters and frequency response curve. After the center frequency, Q value, and gain value of each equalizer are determined, the corresponding frequency response curve can be calculated. The frequency response curve of multiple equalizers connected in series is the product of the frequency response curves of each equalizer. This is used as an example of the current frequency response curve. The gain value change of the equalizer can be set to a fixed step, such as 0.1db. Then, based on the configured parameters and the pending parameters, there are only a limited number of combinations. The average value of the difference between the current frequency response curve and the target frequency response curve of each set of parameters is used as the evaluation function. The smaller this value, the closer it is. Then, by traversing these combinations, the closest set of parameters can be obtained.
[0149] (2) Generate reverberation sub-model, see Figure 9 , the following is a brief description:
[0150] In order to obtain the reverberation characteristics of the reference audio system and its impulse response, the impulse response data is used for convolution to restore its reverberation effect. In order to avoid the influence of the equalizer, the impulse signal needs to first undergo an inverse transformation of the frequency response curve. As an example, the gain of each equalizer of the equalizer sub-model can be inverted, and the equalizer filter group can be used for filtering. The filtered signal passes through the reference audio system to obtain a reference impulse response. In combination with the reverberation sub-model configuration unit, some parameters are configured, such as the reverberation duration (for example, 0.5 to 2s), to obtain the target impulse response.
[0151] (3) Generate the final tuning model, see Figure 10 , here is a brief description:
[0152] After completing the above steps, the main body of the tuning model is complete. To further enhance the tuning model, you can use the tuning model configuration unit to add built-in audio effect submodules to the audio chain. For example, based on the existing equalizer and reverb submodels, you can also add other linear processing modules such as channel gain, dry gain, wet gain, and mixing through configuration items. You can also add a nonlinear processing module such as dynamic range control at the end to obtain the final tuning model.
[0153] At this point, the sound effects of the reference audio system have been roughly aligned. Later, you can adjust the specific parameters of each sub-module as needed, such as adjusting the equalizer effect and reverb effect, adjusting the input and output power through dynamic range control, etc., to achieve the final tuning goal.
[0154] To implement the above method embodiment, this embodiment provides an audio system tuning device, such as Figure 11 As shown, Figure 111 is a block diagram of an audio system tuning device according to an exemplary embodiment. The audio system tuning device can be applied to electronic devices, and the audio system tuning device 500 may include:
[0155] An acquisition module 501 is configured to acquire a reference frequency response characteristic of a reference audio system;
[0156] The first processing module 502 is configured to determine the equalizer parameters of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics;
[0157] The second processing module 503 is configured to determine a reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic;
[0158] The third processing module 504 is configured to adjust the audio system to be adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics.
[0159] Optionally, the equalizer parameters include a center frequency, a bandwidth value, and a gain value;
[0160] The first processing module 502 may include:
[0161] The first sub-processing module is configured to divide the reference frequency response characteristic into sub-reference frequency response characteristics as many as the number of equalizers, wherein the sub-reference frequency response characteristics correspond to the equalizers one-to-one;
[0162] The second sub-processing module is configured to determine, according to the sub-reference frequency response characteristic, a center frequency, a bandwidth value, and a gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0163] Optionally, the sub-reference frequency response characteristics include a plurality of continuous reference frequencies and a reference gain value corresponding to each reference frequency;
[0164] The second sub-processing module may include:
[0165] a center frequency and bandwidth value determination module, configured to determine the center frequency and bandwidth value of the equalizer corresponding to the sub-reference frequency response characteristics based on a plurality of continuous reference frequencies;
[0166] The gain value determination module is configured to determine a gain value of the equalizer corresponding to the sub-reference frequency response characteristic according to reference gain values corresponding to a plurality of continuous reference frequencies.
[0167] Optionally, the center frequency and bandwidth value determination module is specifically configured to:
[0168] Calculating the average of multiple continuous reference frequencies to obtain the center frequency of the equalizer corresponding to the sub-reference frequency response characteristics;
[0169] The difference between the maximum reference frequency and the minimum reference frequency among the multiple continuous reference frequencies is calculated to obtain a bandwidth value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0170] Optionally, the gain value determination module is specifically configured to:
[0171] The average of the reference gain values corresponding to a plurality of continuous reference frequencies is calculated to obtain a reference gain average, and the reference gain average is used as the gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0172] Optionally, the gain value determination module is specifically configured to:
[0173] Determining a maximum reference gain value and a minimum reference gain value from reference gain values corresponding to a plurality of continuous reference frequencies;
[0174] Obtaining a plurality of intermediate gain values according to a set step value, a maximum reference gain value, and a minimum reference gain value;
[0175] Calculating the average of the reference gain values corresponding to a plurality of consecutive reference frequencies to obtain a reference gain average;
[0176] The difference between each intermediate gain value and the reference gain mean is calculated, and the intermediate gain value with the smallest difference is used as the gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
[0177] Optionally, the reference reverberation characteristics include a target impulse response;
[0178] The second processing module 503 may include:
[0179] The third sub-processing module is configured to perform inverse transformation on the reference frequency response characteristic to obtain an inverse reference frequency response characteristic;
[0180] a fourth sub-processing module, configured to obtain a filtered signal according to the pulse signal and the reference inverse frequency response characteristic;
[0181] The fifth sub-processing module is configured to input the filtered signal into the reference audio system, obtain a reference impulse response output by the reference audio system, and use the reference impulse response as the target impulse response.
[0182] Optionally, the reference reverberation characteristic includes a target impulse response, and the audio system tuning device 500 may further include:
[0183] a fourth processing module, configured to determine a reverberation duration;
[0184] The second processing module 503 may include:
[0185] a sixth sub-processing module, configured to perform inverse transformation processing on the reference frequency response characteristic to obtain an inverse reference frequency response characteristic;
[0186] a seventh sub-processing module, configured to obtain a filtered signal according to the pulse signal and the reference inverse frequency response characteristic;
[0187] an eighth sub-processing module, configured to input the filtered signal into the reference audio system and obtain a reference impulse response output by the reference audio system;
[0188] The ninth sub-processing module is configured to determine a target impulse response according to the reference impulse response and the reverberation duration.
[0189] Optionally, the audio system tuning device 500 may further include:
[0190] A fifth processing module is configured to determine a dynamic range control parameter of the audio system to be adjusted;
[0191] The sixth processing module is configured to perform secondary adjustment on the audio system to be adjusted according to the dynamic range control parameter.
[0192] Regarding the audio system tuning device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the audio system tuning method, and will not be elaborated here.
[0193] Figure 12 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Figure 12 As shown, the electronic device 700 may include: a processor 701 , a memory 702 , and may further include one or more of a multimedia component 703 , an input / output (I / O) interface 704 , and a communication component 705 .
[0194] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned audio system tuning method. The memory 702 is used to store various types of data to support the operation of the electronic device 700. Such data may include, for example, instructions for any application or method operating on the electronic device 700, as well as application-related data, such as contact information, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent via the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules. The above-mentioned other interface modules may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more thereof, is not limited here. Therefore, the corresponding communication component 705 may include: a Wi-Fi module, a Bluetooth module, an NFC module, etc.
[0195] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned audio system tuning method.
[0196] In another exemplary embodiment, a non-transitory computer-readable storage medium including program instructions is also provided. A computer program is stored thereon. When executed by a processor, the program instructions implement the steps of the aforementioned audio system tuning method. For example, the computer-readable storage medium may be the aforementioned memory 702 including the program instructions. The program instructions may be executed by the processor 701 of the electronic device 700 to perform the aforementioned audio system tuning method.
[0197] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all fall within the scope of protection of the present disclosure.
[0198] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0199] In addition, the various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A method for tuning an audio system, characterized in that: The audio system tuning method comprises: Obtain reference frequency response characteristics of a reference audio system; determining an equalizer parameter of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics; determining a reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic; The audio system to be adjusted is adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics.
2. The audio system tuning method according to claim 1, wherein: The equalizer parameters include center frequency, bandwidth value, and gain value; The step of determining the equalizer parameters of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics includes: Dividing the reference frequency response characteristic into sub-reference frequency response characteristics equal to the number of the equalizers, wherein the sub-reference frequency response characteristics correspond one-to-one to the equalizers; According to the sub-reference frequency response characteristic, a center frequency, a bandwidth value, and a gain value of an equalizer corresponding to the sub-reference frequency response characteristic are determined.
3. The audio system tuning method according to claim 2, characterized in that: The sub-reference frequency response characteristics include a plurality of continuous reference frequencies and a reference gain value corresponding to each of the reference frequencies; The determining, based on the sub-reference frequency response characteristic, a center frequency, a bandwidth value, and a gain value of an equalizer corresponding to the sub-reference frequency response characteristic, includes: Determining, according to the plurality of continuous reference frequencies, a center frequency and a bandwidth value of an equalizer corresponding to the sub-reference frequency response characteristics; A gain value of an equalizer corresponding to the sub-reference frequency response characteristic is determined according to the reference gain values corresponding to the multiple continuous reference frequencies.
4. The audio system tuning method according to claim 3, wherein: Determining, based on the multiple continuous reference frequencies, a center frequency and a bandwidth value of an equalizer corresponding to the sub-reference frequency response characteristics includes: Calculating an average of the plurality of continuous reference frequencies to obtain a center frequency of the equalizer corresponding to the sub-reference frequency response characteristic; The difference between the maximum reference frequency and the minimum reference frequency among the plurality of continuous reference frequencies is calculated to obtain a bandwidth value of the equalizer corresponding to the sub-reference frequency response characteristic.
5. The audio system tuning method according to claim 3, wherein: The determining, based on the reference gain values corresponding to the plurality of continuous reference frequencies, a gain value of the equalizer corresponding to the sub-reference frequency response characteristic comprises: An average of the reference gain values corresponding to the plurality of continuous reference frequencies is calculated to obtain a reference gain average, and the reference gain average is used as a gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
6. The audio system tuning method according to claim 3, characterized in that: The determining, based on the reference gain values corresponding to the plurality of continuous reference frequencies, a gain value of the equalizer corresponding to the sub-reference frequency response characteristic comprises: Determining a maximum reference gain value and a minimum reference gain value from the reference gain values corresponding to the plurality of consecutive reference frequencies; Obtaining a plurality of intermediate gain values according to the set step value, the maximum reference gain value, and the minimum reference gain value; Calculating an average of the reference gain values corresponding to the plurality of consecutive reference frequencies to obtain a reference gain average; The difference between each of the intermediate gain values and the reference gain mean is calculated, and the intermediate gain value with the smallest difference is used as the gain value of the equalizer corresponding to the sub-reference frequency response characteristic.
7. The audio system tuning method according to claim 1, wherein: The reference reverberation characteristics include a target impulse response; Determining the reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic includes: Performing an inverse transformation on the reference frequency response characteristic to obtain an inverse reference frequency response characteristic; Obtaining a filtered signal according to the pulse signal and the reference frequency response inverse characteristic; After the filtered signal is input into the reference audio system, a reference impulse response output by the reference audio system is obtained, and the reference impulse response is used as the target impulse response.
8. The audio system tuning method according to claim 1, wherein: The reference reverberation characteristic includes a target impulse response, and the audio system tuning method further includes: Determine the reverberation duration; Determining the reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic includes: Performing an inverse transformation on the reference frequency response characteristic to obtain an inverse reference frequency response characteristic; Obtaining a filtered signal according to the pulse signal and the reference frequency response inverse characteristic; After inputting the filtered signal into the reference audio system, obtaining a reference impulse response output by the reference audio system; The target impulse response is determined according to the reference impulse response and the reverberation duration.
9. The audio system tuning method according to claim 1, wherein: After adjusting the audio system to be adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics, the audio system tuning method further includes: Determining dynamic range control parameters of the audio system to be adjusted; The audio system to be adjusted is secondary adjusted according to the dynamic range control parameter.
10. An audio system tuning device, characterized in that: The audio system tuning device comprises: an acquisition module configured to acquire a reference frequency response characteristic of a reference audio system; A first processing module is configured to determine an equalizer parameter of each equalizer according to the number of equalizers in the audio system to be adjusted and the reference frequency response characteristics; a second processing module, configured to determine a reference reverberation characteristic of the reference audio system according to the reference frequency response characteristic; The third processing module is configured to adjust the audio system to be adjusted according to the equalizer parameters corresponding to each equalizer and the reference reverberation characteristics.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the audio system tuning method according to any one of claims 1 to 9 are implemented.
12. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the audio system tuning method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Signal processing apparatus, signal processing method, and sound field correction system
CN101060316A
Frequency response correction method, electronic equipment and signal processing method
CN113949968A
Sound effect compensation method and device, earphone and storage medium
CN114157965A
Frequency response consistency calibration method and electronic equipment
CN116320905A
Characteristic measuring device for sound system and characteristic compensating system therefor
JP2004317397A