Equalizer parameter setting method, audio devices, and readable storage medium
This application discloses an equalizer parameter setting method, an audio system, a device, and a readable storage medium. A computing device receives an initial equalizer population; and iteratively selects a first equalizer curve and a second equalizer curve from the initial equalizer population. An audio device selects, based on user preference data, the first equalizer curve or the second equalizer curve as a target equalizer curve. The computing device determines an iterative equalizer population based on the target equalizer curve to acquire an iterative target equalizer curve. After determining a number of iterations reaches a preset value, the computing device determines the final iterative target equalizer curve, and causes the audio device to set the corresponding equalizer parameters based on the final iterative target equalizer curve. This application iteratively selects based on the initial equalizer population, and utilizes a group evolution strategy to achieve a reduction in the search space range, improve convergence speed, and enhance the accuracy of matching between final set equalizer parameters and user preference data.
1 . A method for setting equalizer parameters, comprising:
receiving, by a computing device, an initial equalizer population comprising a plurality of equalizer curves, wherein the plurality of equalizer curves correspond to equalizer parameters of a plurality of dimensions;
executing a process of iteratively selecting, from the plurality of equalizer curves, a first equalizer curve and a second equalizer curve until a final iterative target equalizer curve is determined, wherein a similarity between the first equalizer curve and the second equalizer curve is less than a preset threshold;
receiving, by the computing device and from an audio device associated with a user, a user input comprising a selection of the first equalizer curve or the second equalizer curve as a target equalizer curve, wherein the selection is based on user preference data captured by the audio device;
determining, based on the target equalizer curve, an iterative equalizer population;
generating, based on the iterative equalizer population, an iterative target equalizer curve;
after determine that a number of iterations reaches a preset value, generating the final iterative target equalizer curve;
configuring, by the computing device and based on the final iterative target equalizer curve, the audio device to set the corresponding equalizer parameters; and
causing, by the computing device and based on the corresponding equalizer parameters, the audio device to output an audio signal customized for the user.
2 . The method for setting the equalizer parameters according to claim 1 , wherein determining the iterative equalizer population comprises:
determining, based on the target equalizer curve and a weighting coefficient, a weighted centroid curve of the target equalizer curve; and
determining, based on the weighted centroid curve and the initial equalizer population, the iterative equalizer population.
3 . The method for setting the equalizer parameters according to claim 2 , wherein determining the iterative equalizer population further comprises:
determining, based on the target equalizer curve and the initial equalizer population, a first parameter, wherein the first parameter comprises differences between the target equalizer curve and remaining equalizer curves in the initial equalizer population;
determining, based on the weighted centroid curve and the initial equalizer population, a second parameter, wherein the second parameter comprises differences between the weighted centroid curve and remaining equalizer curves in the initial equalizer population;
determining, based on the first parameter, the second parameter, a first sampling step size, a second sampling step size, an inertia weight, and an initial velocity, an iterative velocity; and
determining, based on the iterative velocity and the initial equalizer population, the iterative equalizer population.
4 . The method for setting the equalizer parameters according to claim 2 , wherein causing the audio device to set the corresponding equalizer parameters comprises:
determining, based on the final iterative target equalizer curve and a first weight parameter, a first weight value;
determining, based on the weighted centroid curve and a second weight parameter, a second weight value, wherein a sum of the first weight parameter and the second weight parameter is equal to one; and
determining, based on the sum of the first weight value and the second weight value, a set equalizer curve, wherein equalizer parameters in the set equalizer curve comprise the corresponding equalizer parameters in the final iterative target equalizer curve.
5 . The method for setting the equalizer parameters according to claim 1 , wherein interactively selecting the first equalizer curve and the second equalizer curve comprises:
determining, based on cosine similarity, a similarity matrix;
inputting any two equalizer curves from the initial equalizer population into the similarity matrix to obtain a similarity between the two equalizer curves; and
based on the similarity between the two equalizer curves being less than the preset threshold, identifying the two equalizer curves as the first equalizer curve and the second equalizer curve.
6 . The method for setting the equalizer parameters according to claim 1 , wherein the preset value is between 4-12.
7 . The method for setting the equalizer parameters according to claim 1 , wherein the preset threshold is progressively reduced based on the number of iterations, or the preset threshold is a fixed constant that is greater than zero and less than one.
8 . An electronic device, comprising:
one or more processors; and
memory storing instructions that, when executed by the one or more processors, cause the electronic device to perform the steps in claim 1 .
9 . An audio system comprising:
a computing device comprising a first control module and a first audio module; and
an audio device comprising a second control module and a second audio module;
wherein the first control module is configured to:
receive an initial equalizer population comprising a plurality of equalizer curves, wherein the plurality of equalizer curves correspond to equalizer parameters of a plurality of dimensions;
execute a process to iteratively select, from the plurality of equalizer curves, a first equalizer curve and a second equalizer curve from the plurality of equalizer curves, to determine an iterative target equalizer curve, wherein a similarity between the first equalizer curve and the second equalizer curve is less than a preset threshold;
receive, from the second control module of the audio device associated with a user, a user input comprising a selection of the first equalizer curve or the second equalizer curve as a target equalizer curve, wherein the selection is based on user preference data captured by the audio device;
determine, based on the target equalizer curve, an iterative equalizer population;
generate, based on the iterative equalizer population, the iterative target equalizer curve; and
after determining that a number of iterations reaches a preset value, cause the second control module to set, based on a final iterative target equalizer curve, the corresponding equalizer parameters on the audio device; and
cause, based on the corresponding equalizer parameters, the second control module to control the audio device to output an audio signal customized for the user.
10 . An audio device comprising:
one or more processors; and
memory storing instructions that, when executed by the one or more processors, cause the audio device to:
receive, from a computing device, a first equalizer curve and a second equalizer curve, wherein a similarity between the first equalizer curve and the second equalizer curve is less than a preset threshold, and wherein the first equalizer curve and the second equalizer curve are iteratively selected, from a plurality of equalizer curves associated with an initial equalizer population, until a final iterative target equalizer curve is determined, and wherein the plurality of equalizer curves correspond to equalizer parameters of a plurality of dimensions;
select, based on user preference data captured by the audio device and associated with a user, the first equalizer curve or the second equalizer curve as a target equalizer curve;
send, to the computing device, the selection of the first equalizer curve or the second equalizer curve as the target equalizer curve;
receive, from the computing device and after a determination that a number of iterations reaches a preset value, the final iterative target equalizer curve determined based on an iterative equalizer population, wherein the iterative equalizer population is determined based on the target equalizer curve;
set, based on the final iterative target equalizer curve, the corresponding equalizer parameters; and
output, based on the corresponding equalizer parameters, an audio signal customized for the user.
11 . The audio device according to claim 10 , wherein the instructions, when executed by the one or more processors, cause the audio device to set the corresponding equalizer parameters by:
determining, based on the final iterative target equalizer curve and a first weight parameter, a first weight value;
determining, based on a weighted centroid curve and a second weight parameter, a second weight value, wherein a sum of the first weight parameter and the second weight parameter is equal to one; and
determining, based on the sum of the first weight value and the second weight value, a set equalizer curve, wherein the equalizer parameters in the set equalizer curve comprise the corresponding equalizer parameters in the final iterative target equalizer curve.
12 . The audio device according to claim 10 , wherein the iterative equalizer population is determined based on a weighted centroid curve of the target equalizer curve and the initial equalizer population, and wherein the weighted centroid curve of the target equalizer curve is determined based on the target equalizer curve and a weighting coefficient.
13 . The audio device according to claim 12 , wherein the iterative equalizer population is further determined based on an iterative velocity and the initial equalizer population, wherein the iterative velocity is determined by:
determining, based on the target equalizer curve and the initial equalizer population, a first parameter, wherein the first parameter comprises differences between the target equalizer curve and remaining equalizer curves in the initial equalizer population;
determining, based on the weighted centroid curve and the initial equalizer population, a second parameter, wherein the second parameter comprises differences between the weighted centroid curve and remaining equalizer curves in the initial equalizer population; and
determining, based on the first parameter, the second parameter, a first sampling step size, a second sampling step size, an inertia weight, and an initial velocity.
14 . The audio device according to claim 10 , wherein the preset value is between 4-12.
15 . The audio device according to claim 10 , wherein the preset threshold is progressively reduced based on the number of iterations, or the preset threshold is a fixed constant that is greater than zero and less than one.
16 . One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause a computing device to:
receive an initial equalizer population comprising a plurality of equalizer curves, wherein the plurality of equalizer curves correspond to equalizer parameters of a plurality of dimensions;
execute a process to iteratively select, from the plurality of equalizer curves, a first equalizer curve and a second equalizer curve until a final iterative target equalizer curve is determined, wherein a similarity between the first equalizer curve and the second equalizer curve is less than a preset threshold;
receive, from an audio device associated with a user, a user input comprising a selection of the first equalizer curve or the second equalizer curve as a target equalizer curve, wherein the selection is based on user preference data captured by the audio device;
determine, based on the target equalizer curve, an iterative equalizer population;
generate, based on the iterative equalizer population, an iterative target equalizer curve;
after determining that a number of iterations reaches a preset value, generate the final iterative target equalizer curve;
configure, based on the final iterative target equalizer curve, the audio device to set the corresponding equalizer parameters; and
cause, based on the corresponding equalizer parameters, the audio device to output an audio signal customized for the user.
17 . The computer-readable media according to claim 16 , wherein the instructions, when executed by the one or more processors, cause the computing device to determine the iterative equalizer population by:
determining, based on the target equalizer curve and a weighting coefficient, a weighted centroid curve of the target equalizer curve; and
determining, based on the weighted centroid curve and the initial equalizer population, the iterative equalizer population.
18 . The computer-readable media according to claim 17 , wherein the instructions, when executed by the one or more processors, cause the computing device to determine the iterative equalizer population by:
determining, based on the target equalizer curve and the initial equalizer population, a first parameter, wherein the first parameter comprises differences between the target equalizer curve and remaining equalizer curves in the initial equalizer population;
determining, based on the weighted centroid curve and the initial equalizer population, a second parameter, wherein the second parameter comprises differences between the weighted centroid curve and remaining equalizer curves in the initial equalizer population;
determining, based on the first parameter, the second parameter, a first sampling step size, a second sampling step size, an inertia weight, and an initial velocity, an iterative velocity; and
determining, based on the iterative velocity and the initial equalizer population, the iterative equalizer population.
19 . The computer-readable media according to claim 17 , wherein the instructions, when executed by the one or more processors, cause the computing device to cause the audio device to set the corresponding equalizer parameters by:
determining, based on the final iterative target equalizer curve and a first weight parameter, a first weight value;
determining, based on the weighted centroid curve and a second weight parameter, a second weight value, wherein a sum of the first weight parameter and the second weight parameter is equal to one; and
determining, based on the sum of the first weight value and the second weight value, a set equalizer curve, wherein the equalizer parameters in the set equalizer curve comprise the corresponding equalizer parameters in the final iterative target equalizer curve.
20 . The computer-readable media according to claim 16 , wherein the instructions, when executed by the one or more processors, cause the computing device to interactively select the first equalizer curve and the second equalizer curve by:
determining, based on cosine similarity, a similarity matrix;
inputting any two equalizer curves from the initial equalizer population into the similarity matrix to obtain a similarity between the two equalizer curves; and
based on the similarity between the two equalizer curves being less than the preset threshold, identifying the two equalizer curves as the first equalizer curve and the second equalizer curve.