Equalizer parameter setting method, audio system, device, and readable storage medium
The equalizer parameter setting method uses PSO to iteratively refine equalizer settings based on user preferences, addressing the limitations of restrictive or complex manual adjustments, thereby improving user experience.
Patent Information
- Application Number
- JP2024020287
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-02-15
- Filing Date
- 2024-02-14
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2044-02-14
AI Technical Summary
Existing audio equalizer settings in mobile devices are either too restrictive or require complex adjustments, making it difficult for users to accurately set equalizer parameters that match their preferences.
An equalizer parameter setting method using particle swarm optimization (PSO) to iteratively update an equalizer population, determining a final iterative target equalizer curve based on user preference data, reducing the search space and improving convergence speed and accuracy.
Facilitates quick and accurate setting of equalizer parameters that match user preferences, simplifying the adjustment process and enhancing user experience.
Smart Images

Figure 0007711242000008 
Figure 0007711242000009 
Figure 0007711242000010
Abstract
Description
Technical Field
[0001] This application relates to the technical field of audio devices, and particularly to an equalizer parameter setting method, an audio system, a device, and a readable storage medium.
Background Art
[0002] With the development of communication technology, users can not only perform operations such as making calls and sending short messages through mobile terminals such as mobile phones, but also play music through mobile terminals such as mobile phones. Adjusting the acoustic effect of music can be achieved by adjusting equalizer parameters. An equalizer (EQ) is an electronic device that can adjust the amplification amount of electrical signals of various frequency components respectively. By adjusting electrical signals of various different frequencies, it compensates for the defects of speakers and sound fields, compensates and modifies various sounds, and in some cases has other special functions.
[0003] Generally, in order to provide users with a good acoustic experience, manufacturers of each mobile device set the following two modes of the audio equalizer alone or simultaneously in the music player of the mobile terminal to allow users to adjust the acoustic effect of the player. That is, one is the fixed frequency band gain mode of the audio equalizer, but the fixed frequency band gain mode is greatly restricted and it is difficult to meet the needs of all users. The other is the custom frequency band gain mode of the audio equalizer, but the adjustment of the custom frequency band gain mode is complicated. Generally, even if a user clarifies their preferences, it is difficult to adjust the equalizer parameters that match their preferences.
Summary of the Invention
Problems to be Solved by the Invention
[0004] This application provides at least an equalizer parameter setting method, an audio system, a device, and a readable storage medium to solve the above problems in the prior art.
Means for Solving the Problem
[0005] The equalizer parameter setting method according to the first aspect of the present application includes: obtaining an initial equalizer population including a plurality of equalizer curves, each of which includes equalizer parameters in a plurality of dimensions; obtaining a first equalizer curve and a second equalizer curve in the initial equalizer population, the similarity of which is less than a predetermined threshold; determining, based on user preference data, a first equalizer curve or a second equalizer curve as a target equalizer curve; obtaining an iterative equalizer population based on the target equalizer curve, and obtaining an iterative target equalizer curve based on the iterative equalizer population; when the number of iterations reaches a predetermined number, obtaining a final iterative target equalizer curve, and setting corresponding equalizer parameters based on the final iterative target equalizer curve. It includes.
[0006] Preferably, the step of obtaining an iterative equalizer population based on the target equalizer curve includes: calculating a weighted centroid curve of the target equalizer curve based on the target equalizer curve and a weight coefficient; obtaining an iterative equalizer population based on the weighted centroid curve and the initial equalizer population. It includes.
[0007] Preferably, the step of obtaining an iterative equalizer population based on the weighted centroid curve and the initial equalizer population includes: obtaining a first parameter including all differences between the target equalizer curve and the remaining equalizer curves in the target equalizer curve and the initial equalizer population based on the target equalizer curve and the initial equalizer population; Obtaining a second parameter including all differences between the weight center of gravity curve and the remaining equalizer curves of the initialization equalizer population based on the weight center of gravity curve and the initialization equalizer population; Calculating an iteration speed based on the first parameter, the second parameter, the first sampling step size, the second sampling step size, the inertia weight, and the initial velocity; Obtaining an iterative equalizer population based on the iteration speed and the initialization equalizer population; including.
[0008] Preferably, the step of setting the corresponding equalizer parameter based on the final iterative target equalizer curve includes: Obtaining a first weight value based on the final iterative target equalizer curve and the first weight parameter; Obtaining a second weight value based on the second weight parameter whose sum with the first weight parameter is 1 and the weight center of gravity curve; Calculating the sum of the first weight value and the second weight value, and obtaining a set target equalizer curve whose all equalizer parameters are the corresponding equalizer parameters; including.
[0009] Preferably, the step of obtaining the first equalizer curve and the second equalizer curve in the initialization equalizer population with a similarity less than a predetermined threshold includes: Determining a similarity matrix based on the cosine similarity; Inputting any two equalizer curves in the initialization equalizer population into the similarity matrix to obtain the similarity of any two equalizer curves; Determining any two equalizer curves as the first equalizer curve and the second equalizer curve based on the similarity of any two equalizer curves being less than a predetermined threshold; including.
[0010] Preferably, the predetermined number of times is 4 to 12 times.
[0011] Preferably, the predetermined threshold value sequentially decreases based on the number of iterations or is a fixed constant, and the predetermined threshold value is greater than zero and less than 1.
[0012] The audio system according to the second aspect of the present application includes a communication device and an audio device. The communication device includes a first control module and a first audio module. The audio device includes a second control module and a second audio module. The first control module obtains an initialization equalizer population, and the initialization equalizer population includes a plurality of equalizer curves. The equalizer curve includes equalizer parameters in a plurality of dimensions. The first control module further obtains a first equalizer curve and a second equalizer curve from the initialization equalizer population, and the similarity between the first equalizer curve and the second equalizer curve is less than a predetermined threshold value. The first audio module transmits the first equalizer curve and the second equalizer curve to the second audio module. The second audio module receives the first equalizer curve and the second equalizer curve. The second control module determines a first equalizer curve or a second equalizer curve as a target equalizer curve based on user preference data. The first control module further obtains the target equalizer curve from the second control module by communicating with the second control module, obtains an iterative equalizer population based on the target equalizer curve, and obtains an iterative target equalizer curve based on the iterative equalizer population. When the number of iterations reaches a predetermined number, the second control module further obtains a final iterative target equalizer curve and sets corresponding equalizer parameters based on the final iterative target equalizer curve.
[0013] The electronic device according to the third aspect of the present application includes a memory and a processor coupled to each other. The processor realizes the above equalizer parameter setting method by executing program instructions stored in the memory.
[0014] The computer-readable storage medium according to the fourth aspect of the present application stores a computer program that can implement the equalizer parameter setting method when executed by a processor.
[0015] The beneficial effects of the present application are as follows. Different from the prior art, the present application performs iterative selection based on the initialization equalizer population, iteratively updates the equalizer population, and when the number of iterations reaches a predetermined threshold, outputs the final iterative target equalizer curve, and sets the corresponding equalizer parameters based on the final iterative target equalizer curve. By using the population evolution strategy, it is possible to realize the reduction of the search space range, improve the convergence speed, and finally improve the matching accuracy between the set equalizer parameters and the user preference data.
[0016] It should be understood that the above general description and the detailed description to be described later are merely exemplary and explanatory, and do not limit the present application.
[0017] To more clearly explain the technical means in the embodiments of the present application, the drawings necessary for describing the embodiments are briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative effort.
Brief Description of Drawings
[0018]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Embodiments for Carrying Out the Invention
[0019] In order for those skilled in the art to better understand the technical means of the present application, the equalizer parameter setting method, audio system, device, and readable storage medium according to the present application will be further described in detail below by combining the drawings and specific embodiments. It should be understood that the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor belong to the protection scope of the present application.
[0020] The terms "first", "second", etc. in the present application are for distinguishing different objects and not for explaining a specific order. Also, the terms "include", "have", and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device including a series of steps or units is not limited to the shown steps or units, and preferably further includes steps or units not shown, or preferably further includes steps or units inherent to these processes, methods, products, or devices.
[0021] The present application provides an equalizer parameter setting method to solve the problem in the prior art that it is difficult for a user to accurately and quickly set equalizer parameters corresponding to personal preferences. FIG. 1 is a flowchart of an embodiment of the equalizer parameter setting method of the present application.
[0022] The entity that executes the equalizer parameter setting method of the present application may be an audio system. For example, the equalizer parameter setting method may be executed by a terminal device, a server, or other processing devices. The audio system may include a user equipment (UE), a mobile device, a user terminal, a terminal, a mobile phone, a wireless phone, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, and the like. In some possible implementation forms, the equalizer parameter setting method may be realized by a processor calling computer-readable instructions stored in a memory.
[0023] Specifically, the entity that executes the equalizer parameter setting method of this embodiment is an audio system. FIG. 6 is a schematic configuration diagram of an embodiment of the audio system of the present application. As shown in FIG. 6, the audio system 60 of this embodiment includes a communication device 61 and an audio device 62. The communication device 61 includes a first control module 611 and a first audio module 612. The audio device 62 includes a second control module 621 and a second audio module 622.
[0024] Specifically, in this embodiment, the communication device 61 may specifically be a mobile phone or a tablet, etc., and the audio device 62 may specifically be a Bluetooth (registered trademark) earphone, etc. The communication device 61 and the audio device 62 realize signal transmission through Bluetooth connection.
[0025] The first control module 611 and the second control module 621 realize data communication by SPP (Serial Port Profile) or BLE (Bluetooth Low Energy), and the first audio module 612 and the second audio module 622 realize data communication by the A2DP (Advanced Audio Distribution Profile) protocol.
[0026] The first control module 611 controls the first audio module 612 to send an audio signal to the audio device 62. The second audio module 622 plays corresponding music based on the audio signal. The first control module 611 further sends an equalizer parameter curve to the second control module 621, and the second control module 621 sets the equalizer parameters of the audio device 62 based on the equalizer parameter curve.
[0027] The equalizer parameter setting method of this embodiment is based on particle swarm optimization (PSO, Particle Swarm Optimization), and through multiple test interactions, the equalizer parameters matching personal preferences can be quickly set.
[0028] Particle swarm optimization is inspired by the foraging of migratory birds and is a population evolutionary intelligent algorithm that moves individuals within a population to good regions according to their adaptability to the environment. However, without using an evolutionary operator for individuals, each individual is regarded as a particle (point) without volume in a D-dimensional search space, and these particles fly at a certain speed in the search space, and this speed is dynamically adjusted based on their own flight experience and the flight experience of their peers.
[0029] Specifically, as shown in FIG. 1, the equalizer parameter setting method of the embodiment of the present disclosure may include the following steps S11 to S15.
[0030] In step S11, an initialization equalizer population is obtained.
[0031] The initialization equalizer population of this embodiment includes a plurality of equalizer curves, and each equalizer curve includes equalizer parameters in a plurality of dimensions, that is, there is a search space in a plurality of dimensions. Specifically, each equalizer curve of this embodiment can be regarded as one particle. The initialization equalizer population may be obtained by the first control module 611.
[0032] Preferably, each equalizer curve includes 20 dimensions, that is, there is a 20-dimensional search space, or includes 8 dimensions, that is, there is an 8-dimensional search space.
[0033] In particular, the initialization equalizer population of this embodiment may be randomly generated, may be selected from a database used by conventional users, and the data stored in the database may be parameters set by the user himself when using other similar products.
[0034] In step S12, a first equalizer curve and a second equalizer curve among the initialization equalizer population are obtained.
[0035] The initialization equalizer population includes a plurality of equalizer curves, and two equalizer curves, that is, the first equalizer curve and the second equalizer curve, are randomly selected from the plurality of equalizer curves. The first equalizer curve and the second equalizer curve may be obtained by the first control module 611.
[0036] Specifically, in order to improve the discrimination degree, the similarity between the two randomly selected equalizer curves needs to be smaller than a predetermined threshold. Therefore, it is necessary to determine the similarity between the two randomly selected equalizer curves and determine the corresponding first equalizer curve and second equalizer curve based on the similarity.
[0037] Preferably, for the specific steps of obtaining the first equalizer curve and the second equalizer curve in the initializer population, refer to FIG. 5 further. FIG. 5 is a specific flowchart of step S12 in FIG. 1. Specifically, it includes the following steps S21 to S24.
[0038] In step S21, a similarity matrix is determined based on the cosine similarity.
[0039] In this embodiment, it is necessary to first set a similarity matrix for calculating the similarities corresponding to the first equalizer curve and the second equalizer curve. Specifically, in this embodiment, a similarity matrix is determined based on the cosine similarity. The similarity matrix is specifically represented by the following formula.
Number
Number
Number
[0040] Specifically, the similarity matrix ranges from -1 to 1. -1 indicates that the two vectors (equalizer curves) are exactly in opposite directions, 1 indicates that the two vectors (equalizer curves) are exactly in the same direction, 0 indicates that the two vectors (equalizer curves) are independent, and the values in between represent intermediate similarities or differences. Therefore, the predetermined threshold set in this embodiment is greater than 0 and less than 1.
[0041] In step S22, any two equalizer curves in the initialized equalizer population are input into a similarity matrix to obtain the similarity between any two equalizer curves.
[0042] The first control module 611 of this embodiment inputs any two equalizer curves in the initialized equalizer population into a similarity matrix, and calculates the similarity between any two equalizer curves using the similarity matrix.
[0043] In step S23, based on the similarity between any two equalizer curves being smaller than a predetermined threshold, any two equalizer curves are determined as the first equalizer curve and the second equalizer curve.
[0044] If it is determined that the similarity calculated in step S22 is smaller than a predetermined threshold, it can be determined that any two equalizer curves have a certain degree of difference, but the difference is not too large. Thus, when subsequently selecting and iterating the corresponding equalizer curves, it is impossible to realize that the difference between the selected iterative equalizer curves is too large to select an equalizer parameter that matches the user preference data from nearby equalizer parameters.
[0045] The predetermined threshold of this embodiment may be a fixed constant, or may be converted according to the number of iterative selections of the equalizer curve. Specifically, it may sequentially decrease based on the number of iterations.
[0046] Preferably, if it is determined that the similarity calculated in step S22 is greater than or equal to a predetermined threshold, step S24 is further executed.
[0047] In step S24, based on the similarity between any two equalizer curves being greater than or equal to a predetermined threshold, the initialized equalizer population is repeatedly searched to obtain a new first equalizer curve and a new second equalizer curve such that the similarity between the new first equalizer curve and the new second equalizer curve is smaller than the predetermined threshold.
[0048] When it is determined that the similarity is equal to or greater than a predetermined threshold value, it is proved that the similarity between the two equalizer curves is too large, and it is difficult to distinguish between the first equalizer curve and the second equalizer curve. Therefore, the first control module 611 further searches for an initialization equalizer population, obtains a new first equalizer curve and a new second equalizer curve, calculates the similarity between the new first equalizer curve and the new second equalizer curve, and repeats the process until the similarity between the new first equalizer curve and the new second equalizer curve becomes smaller than the predetermined threshold value.
[0049] Furthermore, after completing step S23 or completing step S24, the first audio module 612 transmits the first equalizer curve and the second equalizer curve to the second audio module 622. The second audio module 622 receives the first equalizer curve and the second equalizer curve and further executes step S13.
[0050] In step S13, based on the user preference data, the first equalizer curve or the second equalizer curve is determined as the target equalizer curve.
[0051] The second control module 621 of this embodiment compares the first equalizer curve and the second equalizer curve based on the user preference data, and determines the first equalizer curve or the second equalizer curve as the target equalizer curve. Preferably, in step S13, the user wearing the audio device 62 may be selected according to personal preferences.
[0052] In step S14, an iterative equalizer population is obtained based on the target equalizer curve, and an iterative target equalizer curve is obtained based on the iterative equalizer population.
[0053] After the second control module 621 selects the corresponding target equalizer curve based on step S13, it transmits the curve to the first control module 611 that communicates with the second control module 621. The first control module 611 obtains the target equalizer curve from the second control module 621 and obtains the iterative equalizer population based on the target equalizer curve, that is, updates it to the corresponding iterative equalizer population.
[0054] Preferably, specifically, for the process of obtaining the iterative equalizer population based on the target equalizer curve, continue to refer to FIG. 2, which is a specific flowchart of step S14 in FIG. 1. Specifically, it includes the following steps S141 and S142.
[0055] In step S141, based on the target equalizer curve and the weight coefficient, the weighted centroid curve of the target equalizer curve is calculated.
[0056] The weighted centroid curve of this embodiment can be expressed by the following formula.
Equation
[0057] In step S142, based on the weighted centroid curve and the initialized equalizer population, the iterative equalizer population is obtained.
[0058] The first control module 611 of this embodiment updates the initialized equalizer population based on the weighted centroid curve calculated in step S141 to obtain a new iterative equalizer population, and further performs iterative selection based on the new iterative equalizer population.
[0059] Preferably, specifically, with reference to FIG. 3 for the process of obtaining the iterative equalizer population based on the weight center of gravity curve and the initialization equalizer population, FIG. 3 is a specific flowchart of step S142 in FIG. 2. Specifically, it includes the following steps S1421 to S1424.
[0060] In step S1421, a first parameter is obtained based on the target equalizer curve and the initialization equalizer population.
[0061] The first parameter of this embodiment includes all the differences between the target equalizer curve and the remaining equalizer curves in the initialization equalizer population.
[0062] In step S1422, a second parameter is obtained based on the weight center of gravity curve and the initialization equalizer population.
[0063] The second parameter of this embodiment includes all the differences between the weight center of gravity curve and the remaining equalizer curves in the initialization equalizer population.
[0064] In step S1423, an iteration speed is calculated based on the first parameter, the second parameter, the first sampling step size, the second sampling step size, the inertial weight, and the initial speed.
[0065] The iteration speed of this embodiment can be expressed by the following formula.
Equation
[0066] is the initial velocity, and w is the inertia weight.
[0067] In step S1424, an iterative equalizer population is obtained based on the iteration velocity and the initialized equalizer population.
Equation
[0068] Furthermore, after the first control module 611 obtains the iterative equalizer population based on the target equalizer curve, that is, after updating to the corresponding iterative equalizer population, the iterative target equalizer curve is obtained in the iterative equalizer population. The step of obtaining the iterative target equalizer curve in the iterative equalizer population is the same as that described in steps S11 to S13, and the description is omitted here.
[0069] In step S15, when the number of iterations reaches a predetermined number, a final iterative target equalizer curve is obtained, and corresponding equalizer parameters are set based on the final iterative target equalizer curve.
[0070] After multiple iterative selections, that is, when the number of iterations reaches a predetermined number, the second control module 621 obtains a final iterative target equalizer curve, sets corresponding equalizer parameters based on the final iterative target equalizer curve, that is, sets the equalizer parameters of the audio device 62. Preferably, the predetermined number of times in this embodiment may be 4 to 12 times, specifically, it may be 5 to 7 times.
[0071] Preferably, specifically, for the process of setting corresponding equalizer parameters based on the final iterative target equalizer curve, continue to refer to FIG. 4. FIG. 4 is a specific flowchart of step S15 in FIG. 1. Specifically, it includes the following steps S151 to S153.
[0072] In step S151, based on the final iterative target equalizer curve and the first weight parameter, a first weight value is obtained.
[0073] In step S152, based on the weight centroid curve and the second weight parameter, a second weight value is obtained.
[0074] In step S153, the sum of the first weight value and the second weight value is calculated to obtain an equalizer curve to be set.
[0075] In this embodiment, the equalizer curve to be set can be expressed by the following formula.
Equation
[0076] Specifically, in step S153, all the equalizer parameters in the equalizer curve of the setting target calculated are the corresponding equalizer parameters. The second control module 621 correspondingly sets the equalizer parameters of the audio device 62 based on the equalizer parameters in the equalizer curve of the setting target.
[0077] This application performs iterative selection based on the initialization equalizer population, iteratively updates the equalizer population, outputs the final iterative target equalizer curve when the number of iterations reaches a predetermined threshold, and sets the corresponding equalizer parameters based on the final iterative target equalizer curve. By using the population evolution strategy, it is possible to realize the reduction of the search space range, improve the convergence speed, and finally improve the matching accuracy between the set equalizer parameters and the user preference data.
[0078] Also, in the equalizer parameter setting method of this application, by performing communication interaction through the communication device 61 and the audio device 62, the user can select the corresponding equalizer curve according to personal preferences, and realize the accurate setting of the equalizer parameters of the audio device 62 through simple human-machine interaction. This reduces the difficulty for the user himself, especially non-professional users, to set the equalizer parameters, and since the setting method is simple and interesting, it can improve the interestingness of equalizer parameter setting.
[0079] Also, regarding the electronic device according to the present application, referring to FIG. 7, FIG. 7 is a block diagram of an embodiment of the electronic device of the present application. The electronic device 70 includes a memory 71 and a processor 72 coupled to each other. The processor 72 realizes the steps of any of the above-described equalizer parameter setting method embodiments by executing program instructions stored in the memory 71. In one specific implementation scenario, the electronic device 70 may include, but is not limited to, a microcomputer and a server. Further, the electronic device 70 may further include mobile devices such as a notebook computer and a tablet computer, and is not limited herein.
[0080] Specifically, the processor 72 realizes the steps of any of the above-described equalizer parameter setting method embodiments by controlling the processor 72 itself and the memory 71. The processor 72 may be referred to as a CPU (Central Processing Unit). The processor 72 may be an integrated circuit chip having signal processing capabilities. The processor 72 may further be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or any ordinary processor, etc. Also, the processor 72 may be jointly realized by an integrated circuit chip.
[0081] Also, regarding the computer-readable storage medium according to the present application, referring to FIG. 8, FIG. 8 is a block diagram of an embodiment of the computer-readable storage medium of the present application. The computer-readable storage medium 80 stores a computer program 81 that can realize the steps of any of the above-described equalizer parameter setting method embodiments when executed by a processor.
[0082] In some embodiments, the functions or modules included in the apparatus according to the embodiments of the present disclosure execute the methods described in the above method embodiments. For specific implementations, reference may be made to the descriptions of the above method embodiments. For the sake of brevity, the descriptions are omitted here.
[0083] The above descriptions of the embodiments tend to emphasize the differences between the embodiments. For their commonalities or similarities, reference may be made to each other. For the sake of brevity, the descriptions are omitted here.
[0084] It should be understood that in some embodiments according to the present application, the disclosed methods and apparatuses may be implemented by other methods. For example, the above-described device embodiments are merely illustrative. For example, the division of modules or units is only a logical function division. When actually implemented, other division methods are also possible. For example, a unit or component may be coupled to or integrated with another system, and some functions may be omitted or not executed. Also, the shown or discussed mutual coupling, direct coupling, or communication connection may be realized by some interfaces, and the indirect coupling or communication connection between devices or units may be in electrical, mechanical, or other forms.
[0085] Also, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.
[0086] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such understanding, the essence of the technical means of this application, or the part that contributes to the prior art, or all or part of the technical means can be implemented in the form of a software product. The computer software product includes several instructions that cause a computer device (which may be a personal computer, a server, a network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of this application and is stored in a storage medium. The aforementioned storage medium includes various media capable of storing program codes, such as a USB disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0087] The above are only examples of this application and do not limit the protection scope of this application. Any equivalent structure or equivalent flow conversion made using the content of the specification and drawings of this application, or direct or indirect applications in other related technical fields, are all similarly included in the protection scope of this application.
Claims
1. Obtaining an initialization equalizer population including a plurality of equalizer curves each including a plurality of dimensional equalizer parameters; Obtaining a first equalizer curve and a second equalizer curve in the initialization equalizer population, the similarity of which is less than a predetermined threshold; Determining, based on user preference data, the first equalizer curve or the second equalizer curve as a target equalizer curve; Obtaining an iterative equalizer population based on the target equalizer curve, and obtaining an iterative target equalizer curve based on the iterative equalizer population; When the number of iterations reaches a predetermined number, obtaining a final iterative target equalizer curve, and setting corresponding equalizer parameters based on the final iterative target equalizer curve; An equalizer parameter setting method, comprising the above steps.
2. The step of obtaining an iterative equalizer population based on the target equalizer curve includes: Calculating a weighted centroid curve of the target equalizer curve based on the target equalizer curve and a weight coefficient; Obtaining the iterative equalizer population based on the weighted centroid curve and the initialization equalizer population. The equalizer parameter setting method according to claim 1, comprising the above steps.
3. The step of obtaining the iterative equalizer population based on the weighted centroid curve and the initialization equalizer population includes: Obtaining a first parameter including all differences between the target equalizer curve and the remaining equalizer curves in the initialization equalizer population based on the target equalizer curve and the initialization equalizer population; Obtaining a second parameter including all differences between the weighted centroid curve and the remaining equalizer curves in the initialization equalizer population based on the weighted centroid curve and the initialization equalizer population; Calculating an iterative speed based on the first parameter, the second parameter, a first sampling step size, a second sampling step size, an inertia weight, and an initial speed; Obtaining the iterative equalizer population based on the iterative speed and the initialization equalizer population. The equalizer parameter setting method according to claim 2, comprising the above steps.
4. The step of setting the corresponding equalizer parameters based on the final iterative target equalizer curve is the step of obtaining a first weight value based on the final iterative target equalizer curve and the first weight parameter; the step of obtaining a second weight value based on the second weight parameter whose sum with the first weight parameter is 1 and the weight centroid curve; the step of calculating the sum of the first weight value and the second weight value to obtain a set target equalizer curve whose all equalizer parameters are the corresponding equalizer parameters; The equalizer parameter setting method according to claim 2, comprising the above.
5. The step of obtaining a first equalizer curve and a second equalizer curve in the initialization equalizer population with a similarity less than a predetermined threshold is the step of determining a similarity matrix based on the cosine similarity; the step of inputting any two equalizer curves in the initialization equalizer population into the similarity matrix to obtain the similarity of the any two equalizer curves; the step of determining the any two equalizer curves as the first equalizer curve and the second equalizer curve based on the fact that the similarity of the any two equalizer curves is less than the predetermined threshold; The equalizer parameter setting method according to claim 1, comprising the above.
6. The predetermined number of times is 4 to 12. The equalizer parameter setting method according to claim 1, characterized in that.
7. The predetermined threshold decreases sequentially based on the number of iterations or is a fixed constant. The predetermined threshold is greater than zero and less than 1. The equalizer parameter setting method according to claim 1, characterized in that.
8. Including a communication device and an audio device, the communication device includes a first control module and a first audio module, and the audio device includes a second control module and a second audio module. The first control module obtains an initialization equalizer population, the initialization equalizer population includes a plurality of equalizer curves, and the equalizer curve includes equalizer parameters in a plurality of dimensions. The first control module further obtains a first equalizer curve and a second equalizer curve from the initializer population, and the similarity between the first equalizer curve and the second equalizer curve is less than a predetermined threshold. The first audio module transmits the first equalizer curve and the second equalizer curve to the second audio module. The second audio module receives the first equalizer curve and the second equalizer curve. The second control module determines, based on user preference data, the first equalizer curve or the second equalizer curve as a target equalizer curve. The first control module further obtains the target equalizer curve from the second control module by communicating with the second control module, obtains an iterative equalizer population based on the target equalizer curve, and obtains an iterative target equalizer curve based on the iterative equalizer population. The second control module further obtains a final iterative target equalizer curve when the number of iterations reaches a predetermined number, and sets corresponding equalizer parameters based on the final iterative target equalizer curve. An audio system characterized by this.
9. An electronic device comprising a memory and a processor coupled to each other, wherein the processor realizes the equalizer parameter setting method according to any one of claims 1 to 7 by executing program instructions stored in the memory.
10. A computer-readable storage medium storing a computer program that can realize the equalizer parameter setting method according to any one of claims 1 to 7 when executed by a processor.
Citation Information
Patent Citations
Multimedia data processing method and device
CN106601268A
Method of setting equalizing characteristic
JP1991007412A
Audio system and volume control method therefor
JP1998173457A
Acoustic apparatus
JP2010192995A