Equalizer parameter setting method, audio system, apparatus, and readable storage medium
The iterative equalizer parameter setting method using PSO simplifies and enhances user experience by accurately adjusting audio settings to individual preferences, addressing the limitations of existing equalizer settings in mobile devices.
Patent Information
- Application Number
- JP2024020287
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-15
- Filing Date
- 2024-02-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-02-14
AI Technical Summary
Existing audio equalizer settings in mobile devices are either limited in flexibility or overly complex, making it difficult for users to accurately adjust parameters to match their personal preferences.
An iterative equalizer parameter setting method using a collective evolution strategy, such as Particle Swarm Optimization (PSO), to iteratively update an equalizer population and determine a final target equalizer curve based on user preference data, reducing the search space and improving convergence speed and accuracy.
The method simplifies the process of setting equalizer parameters, enhancing user experience by accurately matching audio settings to individual preferences through iterative updates and collective evolution strategies.
Smart Images

Figure 2024116100000001_ABST
Abstract
Description
[Technical field]
[0001] The present application relates to the technical field of audio equipment, and in particular to an equalizer parameter setting method, an audio system, an apparatus, and a readable storage medium. [Background technology]
[0002] With the development of communication technology, users can not only make calls and send short messages using mobile terminals such as mobile phones, but also play music using mobile terminals such as mobile phones, and adjust the sound effects of music by adjusting equalizer parameters. An equalizer (EQ) is an electronic device that can adjust the amount of amplification of electrical signals of various frequency components, and compensates for defects in speakers and sound fields by adjusting electrical signals of various different frequencies, and compensates for and modifies various sounds, and may have other special functions.
[0003] Generally, in order to provide users with a good acoustic experience, manufacturers of mobile devices set the following two modes of an audio equalizer in the music player of a mobile terminal, either alone or simultaneously, to allow users to adjust the acoustic effects of the player: one is a fixed frequency band gain mode of the audio equalizer, but the fixed frequency band gain mode is highly limited and it is difficult to meet the needs of all users; the other is a 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 expresses his or her preferences, it is difficult to adjust the audio equalizer parameters to match his or her preferences. Summary of the Invention [Problem to be solved by the invention]
[0004] SUMMARY OF THE PRESENT DISCLOSURE In order to solve the above problems in the prior art, the present application provides at least an equalizer parameter setting method, an audio system, an apparatus, and a readable storage medium. [Means for solving the problem]
[0005] An equalizer parameter setting method according to a first aspect of the present application includes: obtaining an initialization equalizer population including a plurality of equalizer curves, each of the equalizer curves including a plurality of dimensions of equalizer parameters; obtaining a first equalizer curve and a second equalizer curve having a similarity smaller than a predetermined threshold value from an initialized equalizer population; determining a first equalizer curve or a second equalizer curve as a target equalizer curve based on user preference data; 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 iteration target equalizer curve, and setting corresponding equalizer parameters according to the final iteration target equalizer curve; Includes.
[0006] Preferably, the step of obtaining an iterative equalizer population based on a target equalizer curve comprises: calculating a weighting centroid curve of the target equalizer curve based on the target equalizer curve and weighting coefficients; obtaining an iterative equalizer population based on the weight centroid curve and the initial equalizer population; Includes.
[0007] Preferably, the step of obtaining the iterative equalizer population based on the weighting centroid curve and the initialized equalizer population includes: obtaining a first parameter based on the target equalizer curve and the initialized equalizer population, the first parameter including all differences between the target equalizer curve and remaining equalizer curves of the initialized equalizer population; obtaining a second parameter based on the weighting centroid curve and the initialized equalizer population, the second parameter including all differences between the weighting centroid curve and the remaining equalizer curves of the initialized equalizer population; calculating an iteration velocity based on the first parameter, the second parameter, the first sampling step size, the second sampling step size, an inertia weight, and an initial velocity; obtaining an iterative equalizer population based on an iteration rate and an initialization equalizer population; Includes.
[0008] Preferably, the step of setting the corresponding equalizer parameters based on the final iterative target equalizer curve comprises: Obtaining a first weight value according to the final iterative target equalizer curve and the first weight parameter; obtaining a second weighting value based on a second weighting parameter whose sum with the first weighting parameter is 1 and the weighting centroid curve; Calculating the sum of the first weight value and the second weight value to obtain a target equalizer curve in which all equalizer parameters are corresponding equalizer parameters; Includes.
[0009] Preferably, the step of acquiring the first equalizer curve and the second equalizer curve having a similarity smaller than a predetermined threshold value from the initialized equalizer population includes: determining a similarity matrix based on cosine similarity; inputting any two equalizer curves from the initialized equalizer population into a similarity matrix to obtain a similarity between the any two equalizer curves; determining the two equalizer curves as a first equalizer curve and a second equalizer curve based on a similarity between the two equalizer curves being smaller than a predetermined threshold; Includes.
[0010] Preferably, the predetermined number of times is 4 to 12 times.
[0011] Preferably, the predetermined threshold decreases sequentially based on the number of iterations or is a fixed constant, and the predetermined threshold is greater than zero and less than one.
[0012] An audio system according to a second aspect of the present application includes a communication device and an audio device, the communication device including a first control module and a first audio module, the audio device including a second control module and a second audio module, The first control module obtains an initial equalizer population, the initial equalizer population includes a plurality of equalizer curves, and the equalizer curves include equalizer parameters of a plurality of dimensions; The first control module further obtains a first equalizer curve and a second equalizer curve from the initialized equalizer population, and a similarity between the first equalizer curve and the second equalizer curve is less than a predetermined threshold; The first audio module sends 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 the first equalizer curve or the second equalizer curve as a target equalizer curve based on the user preference data; The first control module further communicates with the second control module to obtain a target equalizer curve by the second control module, obtain an iterative equalizer population based on the target equalizer curve, and obtain an iterative target equalizer curve based on the iterative equalizer population; The second control module further obtains a final iteration target equalizer curve when the iteration number reaches a predetermined number, and sets corresponding equalizer parameters according to the final iteration target equalizer curve.
[0013] An electronic device according to a third aspect of the present application includes a memory and a processor coupled to each other, and the processor realizes the above-mentioned equalizer parameter setting method by executing program instructions stored in the memory.
[0014] A computer-readable storage medium according to a fourth aspect of the present application stores a computer program that, when executed by a processor, can realize the above-described equalizer parameter setting method.
[0015] The beneficial effects of the present application are as follows: Different from the prior art, the present application performs iterative selection based on an initialized equalizer population, iteratively updates the equalizer population, and outputs a final iteration target equalizer curve when the iteration number reaches a certain threshold, and sets corresponding equalizer parameters according to the final iteration target equalizer curve, and utilizes a population evolution strategy to realize the reduction of the search space range, improve the convergence speed, and improve the matching accuracy between the final set equalizer parameters and user preference data.
[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
[0017] In order to more clearly describe the technical means in the embodiments of the present application, the following briefly introduces drawings necessary for the description of the embodiments. 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 any creative efforts. [Brief description of the drawings]
[0018] [Figure 1] 1 is a flowchart of an embodiment of an equalizer parameter setting method of the present application. [Diagram 2] 2 is a specific flowchart of step S14 in FIG. 1. [Diagram 3] 3 is a specific flowchart of step S142 in FIG. 2. [Figure 4] 2 is a specific flowchart of step S15 in FIG. 1. [Diagram 5]2 is a specific flowchart of step S12 in FIG. 1. [Figure 6] 1 is a schematic diagram of an audio system according to an embodiment of the present invention; [Figure 7] FIG. 1 is a block diagram of an electronic device according to an embodiment of the present invention. [Figure 8] FIG. 2 is a block diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] In order to allow those skilled in the art to better understand the technical solutions of the present application, the equalizer parameter setting method, audio system, device and readable storage medium according to the present application will be described in more detail below in combination with drawings and specific embodiments. It should be understood that the described embodiments are only some of the embodiments of the present application, and are not all of the embodiments. All other embodiments obtained by those skilled in the art on the basis of the embodiments of the present application without creative labor are all within the scope of protection of the present application.
[0020] The terms "first", "second", etc. in this application are intended to distinguish between different objects, not to describe a particular order. Also, the terms "comprise", "have" and any variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or apparatus that includes a series of steps or units is not limited to the steps or units shown, and preferably further includes steps or units that are not shown, or preferably further includes steps or units that are inherent to those processes, methods, products or apparatus.
[0021] The present application provides an equalizer parameter setting method to solve the problem in the prior art that it is difficult for users to accurately and quickly set equalizer parameters that correspond to personal preferences. Figure 1 is a flowchart of an embodiment of the equalizer parameter setting method of the present application.
[0022] An entity that performs the equalizer parameter setting method of the present application may be an audio system, for example, the equalizer parameter setting method may be performed by a terminal device, a server or other processing device, and the audio system may include 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, etc. In some possible implementation forms, the equalizer parameter setting method may be realized by a processor invoking computer-readable instructions stored in a memory.
[0023] Specifically, the equalizer parameter setting method of this embodiment is performed by an audio system, and Fig. 6 is a schematic 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, and 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 be a mobile phone or a tablet, and the audio device 62 may be a Bluetooth (registered trademark) earphone, and the communication device 61 and the audio device 62 realize signal transmission through a Bluetooth connection.
[0025] The first control module 611 and the second control module 621 realize data communication using SPP (Serial Port Profile) or BLE (Bluetooth Low Energy), and the first audio module 612 and the second audio module 622 realize data communication using 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 equipment 62, and the second audio module 622 plays corresponding music based on the audio signal, and 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 equipment 62 based on the equalizer parameter curve.
[0027] The equalizer parameter setting method of this embodiment is based on Particle Swarm Optimization (PSO), and can quickly set equalizer parameters that match personal preferences through multiple test interactions.
[0028] Particle swarm optimization is inspired by migratory bird foraging and is a collective evolutionary intelligent algorithm that moves individuals in a population to good areas according to their fitness to the environment. However, it does not use evolutionary operators on individuals, but considers each individual as a volumeless particle (point) in a D-dimensional search space, and these particles fly in the search space with a constant speed, which is dynamically adjusted based on its own flying experience and the flying experience of its peers.
[0029] Specifically, as shown in FIG. 1, the equalizer parameter setting method according to the embodiment of the present disclosure may include the following steps S11 to S15.
[0030] In step S11, an initialized equalizer population is obtained.
[0031] The initial equalizer population in this embodiment includes multiple equalizer curves, and each equalizer curve includes multiple-dimensional equalizer parameters, that is, there is a multiple-dimensional search space. Specifically, each equalizer curve in this embodiment can be regarded as a particle. The initial equalizer population may be obtained by the first control module 611.
[0032] Preferably, each equalizer curve includes 20 dimensions, i.e. there is a 20 dimensional search space, or includes 8 dimensions, i.e. there is an 8 dimensional search space.
[0033] In particular, the initialized equalizer population in this embodiment may be randomly generated or may be selected from a database used by previous users, and the data stored in the database may be parameters that the users themselves set when using other similar products.
[0034] In step S12, a first equalizer curve and a second equalizer curve are obtained from the initialized equalizer population.
[0035] The initialization equalizer population includes a plurality of equalizer curves, and randomly selects two equalizer curves from the plurality of equalizer curves, that is, the first equalizer curve and the second equalizer curve. 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 two randomly selected equalizer curves needs to be smaller than a certain threshold value. Therefore, it is necessary to determine the similarity between two randomly selected equalizer curves, and determine the corresponding first equalizer curve and second equalizer curve based on the similarity.
[0037] Preferably, for specific steps of acquiring the first equalizer curve and the second equalizer curve of the initialized equalizer population, reference is further made to Fig. 5, which is a specific flowchart of step S12 in Fig. 1. Specifically, the process 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 set a similarity matrix for calculating the similarity corresponding to the first equalizer curve and the second equalizer curve in advance, and specifically, in this embodiment, the similarity matrix is determined based on the cosine similarity. Specifically, the similarity matrix is expressed by the following formula:
number
number
number
[0040] Specifically, the similarity matrix ranges from -1 to 1, where -1 represents that the two vectors (equalizer curves) are exactly in opposite directions, 1 represents that the two vectors (equalizer curves) are exactly in the same direction, 0 represents that the two vectors (equalizer curves) are independent, and values in between represent intermediate similarities or dissimilarities. 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 the any two equalizer curves.
[0042] The first control module 611 of this embodiment inputs any two equalizer curves from the initialized equalizer population into a similarity matrix, and calculates the similarity between the any two equalizer curves using the similarity matrix.
[0043] In step S23, if the similarity between any two equalizer curves is smaller than a predetermined threshold, the any two equalizer curves are determined as a first equalizer curve and a second equalizer curve.
[0044] If it is determined in step S22 that the calculated similarity is smaller than a predetermined threshold, it can be determined that the two equalizer curves have a certain difference, but the difference is not too large, so that when a corresponding equalizer curve is subsequently selected for iteration, the difference between the selected iterative equalizer curves will not be too large to realize the selection of equalizer parameters that match the user preference data from similar equalizer parameters.
[0045] The predetermined threshold value in this embodiment may be a fixed constant, or may vary with the number of iterations of the equalizer curve selection, specifically, may be successively decreased based on the number of iterations.
[0046] Preferably, if it is determined in step S22 that the calculated similarity is equal to or greater than a predetermined threshold, step S24 is further executed.
[0047] In step S24, based on the similarity between any two equalizer curves being equal to or greater than a predetermined threshold, the initialized equalizer population is iteratively 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 less than a predetermined threshold.
[0048] If it is determined that the similarity is equal to or greater than the predetermined threshold, it proves 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, so the first control module 611 further searches the initialized equalizer population to obtain 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 until the similarity between the new first equalizer curve and the new second equalizer curve is smaller than the predetermined threshold.
[0049] Further, after completing step S23 or completing step S24, the first audio module 612 sends the first equalizer curve and the second equalizer curve to the second audio module 622, and the second audio module 622 receives the first equalizer curve and the second equalizer curve, and further performs step S13.
[0050] In step S13, the first equalizer curve or the second equalizer curve is determined as a target equalizer curve based on the user preference data.
[0051] In this embodiment, the second control module 621 compares the first equalizer curve with 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, the step S13 may be selected by a user wearing the audio device 62 according to personal preference.
[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 sends it to the first control module 611 which communicates with the second control module 621, and the first control module 611 obtains the target equalizer curve through the second control module 621, and obtains an iterative equalizer population based on the target equalizer curve, i.e., updates to the corresponding iterative equalizer population.
[0054] Preferably, specifically, for the process of obtaining an iterative equalizer population based on a target equalizer curve, please 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, a weighting center curve of the target equalizer curve is calculated based on the target equalizer curve and the weighting coefficients.
[0056] The weighted center of gravity curve of this embodiment can be expressed by the following formula.
number
[0057] In step S142, an iterative equalizer population is obtained based on the weighting centroid curve and the initial equalizer population.
[0058] In step S141, the first control module 611 of this embodiment updates the initialized equalizer population according to the calculated weighting centroid curve to obtain a new iterative equalizer population, and then performs iterative selection according to the new iterative equalizer population.
[0059] Preferably, specifically, for a process of obtaining an iterative equalizer population based on the weighting centroid curve and the initialized equalizer population, please continue to refer to Fig. 3, which 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 initialized equalizer population.
[0061] The first parameter in 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 weighting centroid curve and the initialized equalizer population.
[0063] The second parameter in this embodiment includes all the differences between the weighting centroid curve and the remaining equalizer curves of the initialized equalizer population.
[0064] In step S1423, an iteration velocity is calculated 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.
[0065] The repetition rate in this embodiment can be expressed by the following formula:
number
[0066] In step S1424, an iterative equalizer population is obtained based on the iteration rate and the initialized equalizer population.
[0067] The iterative equalizer population of this embodiment can be expressed by the following equation:
number
[0068] Furthermore, the first control module 611 obtains an iterative equalizer population according to the target equalizer curve, i.e., updates to the corresponding iterative equalizer population, and then obtains an iterative target equalizer curve in the iterative equalizer population. The steps of obtaining an iterative target equalizer curve in the iterative equalizer population are as described in steps S11 to S13, and the description is omitted here.
[0069] In step S15, if the number of iterations reaches a predetermined number, a final iteration target equalizer curve is obtained, and corresponding equalizer parameters are set according to the final iteration target equalizer curve.
[0070] After multiple iterations of selection, i.e., when the number of iterations reaches a predetermined number, the second control module 621 obtains a final iteration target equalizer curve, and sets corresponding equalizer parameters according to the final iteration target equalizer curve, i.e., sets the equalizer parameters of the audio device 62. Preferably, the predetermined number in this embodiment may be 4 to 12 times, specifically, 5 to 7 times.
[0071] Preferably, specifically, for the process of setting corresponding equalizer parameters based on the final iterative target equalizer curve, please continue to refer to Fig. 4, which is a specific flowchart of step S15 in Fig. 1. Specifically, it includes the following steps S151 to S153.
[0072] In step S151, a first weight value is obtained according to the final iterative target equalizer curve and the first weight parameter.
[0073] In step S152, a second weight value is obtained based on the weighting centroid curve and the second weight parameter.
[0074] In step S153, the sum of the first weight value and the second weight value is calculated to obtain the equalizer curve to be set.
[0075] In this embodiment, the equalizer curve to be set can be expressed by the following formula.
number
[0076] Specifically, all the equalizer parameters in the equalizer curve to be set calculated in step S153 are corresponding equalizer parameters. The second control module 621 sets the equalizer parameters of the audio device 62 according to the equalizer parameters in the equalizer curve to be set.
[0077] The present application performs iterative selection based on the initialized equalizer population, iteratively updates the equalizer population, and outputs a final iteration target equalizer curve when the number of iterations reaches a predetermined threshold, and sets corresponding equalizer parameters based on the final iteration target equalizer curve, and utilizes a population evolution strategy to realize a reduction in the search space range, improve the convergence speed, and improve the matching accuracy between the finally set equalizer parameters and user preference data.
[0078] In addition, in the equalizer parameter setting method of the present application, by performing communication interaction via the communication device 61 and the audio device 62, the user can select a corresponding equalizer curve according to personal preference, and accurate setting of the equalizer parameters of the audio device 62 can be realized through simple human-machine interaction. This reduces the difficulty for the user himself, especially a non-professional user, to set the equalizer parameters, and the setting method is simple and interesting, thereby improving the enjoyment of setting the equalizer parameters.
[0079] Also, for the electronic device according to the present application, reference is made to FIG. 7, which is a block diagram of an embodiment of the electronic device according to the present application. The electronic device 70 includes a memory 71 and a processor 72 coupled to each other, and the processor 72 executes program instructions stored in the memory 71 to realize the steps of any of the above-mentioned equalizer parameter setting method embodiments. In one specific implementation scenario, the electronic device 70 may include, but is not limited to, a microcomputer and a server, and the electronic device 70 may further include a mobile device such as a notebook computer and a tablet computer, and is not limited thereto.
[0080] Specifically, the processor 72 realizes the steps of any of the above-mentioned equalizer parameter setting method embodiments by controlling itself and the memory 71. The processor 72 may be called 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 device, a discrete gate or transistor logic device, a discrete hardware component. The general-purpose processor may be a microprocessor, any ordinary processor, etc. The processor 72 may also be jointly realized by an integrated circuit chip.
[0081] With regard to a computer-readable storage medium according to the present application, reference is made to Fig. 8, which is a block diagram of an embodiment of the computer-readable storage medium according to the present application. A computer-readable storage medium 80 stores a computer program 81 that, when executed by a processor, can realize the steps of any of the above-described embodiments of the equalizer parameter setting method.
[0082] In some embodiments, the functions possessed by or modules included in the apparatus according to the embodiments of the present disclosure perform the methods described in the above method embodiments, and for specific implementations thereof, reference may be made to the descriptions in the above method embodiments, and for the sake of brevity, the descriptions will be omitted here.
[0083] The above description of each embodiment tends to emphasize the differences between the embodiments, and commonalities or similarities between them may be referenced, and will not be described here for the sake of brevity.
[0084] It should be understood that in some embodiments of the present application, the disclosed methods and devices may be realized in other ways. For example, the above-described device embodiments are merely illustrative, and the division into modules or units is merely a division of logical functions, and other division methods are possible when actually implemented, for example, the units or components may be combined or integrated with other systems, and some functions may be omitted or not executed. In addition, the shown or discussed mutual couplings, direct couplings, or communication connections may be realized by some interfaces, and the indirect couplings or communication connections between the devices or units may be electrical, mechanical, or other forms.
[0085] In addition, 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 integrated units may be implemented in the form of hardware or software functional units.
[0086] The integrated unit may be implemented in the form of a software functional unit and stored in one computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical means of the present application, or the part contributing to the prior art, or all or a part of the technical means, may be implemented in the form of a software product, and the computer software product is stored in a storage medium including some instructions that cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or a part of the steps of the method according to each embodiment of the present application. The aforementioned storage medium includes various media capable of storing program code, such as a U 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 is merely an embodiment of the present application, and does not limit the scope of protection of the present application. Any equivalent structure or equivalent flow conversion made by using the contents of the specification and drawings of the present application, or any direct or indirect application in other related technical fields, is also included in the scope of protection of the present application.
Claims
1. obtaining an initialization equalizer population including a plurality of equalizer curves, each of the equalizer curves including a plurality of dimensions of equalizer parameters; obtaining a first equalizer curve and a second equalizer curve having a similarity smaller than a predetermined threshold value from the initialized equalizer population; determining the first equalizer curve or the second equalizer curve as a target equalizer curve based on user preference data; 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 iteration target equalizer curve, and setting corresponding equalizer parameters according to the final iteration target equalizer curve; 23. An equalizer parameter setting method comprising:
2. The step of obtaining an iterative equalizer population based on the target equalizer curve comprises: calculating a weighting centroid curve of the target equalizer curve based on the target equalizer curve and weighting coefficients; obtaining the iterative equalizer population based on the weighting centroid curve and the initial equalizer population; 2. The equalizer parameter setting method according to claim 1, further comprising:
3. obtaining the iterative equalizer population based on the weighting centroid curve and the initial equalizer population, obtaining a first parameter based on the target equalizer curve and the initialized equalizer population, the first parameter including all differences between the target equalizer curve and the remaining equalizer curves of the initialized equalizer population; obtaining a second parameter based on the weighting centroid curve and the initialized equalizer population, the second parameter including all differences between the weighting centroid curve and the remaining equalizer curves of the initialized equalizer population; calculating an iteration velocity 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; obtaining the iterative equalizer population based on the iteration rate and the initialization equalizer population; 3. The equalizer parameter setting method according to claim 2, further comprising:
4. setting corresponding equalizer parameters based on the final iterative target equalizer curve, obtaining a first weighting value based on the final iterative target equalizer curve and a first weighting parameter; obtaining a second weight value based on the weighted centroid curve and a second weight parameter whose sum with the first weight parameter is 1; calculating a sum of the first weight value and the second weight value to obtain a target equalizer curve in which all equalizer parameters are the corresponding equalizer parameters; 3. The equalizer parameter setting method according to claim 2, further comprising:
5. The step of acquiring a first equalizer curve and a second equalizer curve having a similarity smaller than a predetermined threshold value from the initialized equalizer population includes: determining a similarity matrix based on cosine similarity; inputting any two equalizer curves from the initialized equalizer population into the similarity matrix to obtain a similarity between the any two equalizer curves; determining the two equalizer curves as the first equalizer curve and the second equalizer curve based on the similarity between the two equalizer curves being smaller than the predetermined threshold; 2. The equalizer parameter setting method according to claim 1, further comprising:
6. 2. The equalizer parameter setting method according to claim 1, wherein the predetermined number of times is 4 to 12 times.
7. 2. The method of claim 1, wherein the predetermined threshold value is either sequentially decreased based on the number of iterations or is a fixed constant, and the predetermined threshold value is greater than zero and less than one.
8. a communication device and an audio device, the communication device including a first control module and a first audio module, the audio device including a second control module and a second audio module; The first control module obtains an initial equalizer population, the initial equalizer population includes a plurality of equalizer curves, and the equalizer curves include equalizer parameters of a plurality of dimensions; The first control module further obtains a first equalizer curve and a second equalizer curve from the initialized equalizer population, and a similarity between the first equalizer curve and the second equalizer curve is smaller 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 the first equalizer curve or the second equalizer curve as a target equalizer curve based on user preference data; The first control module further communicates with the second control module to obtain the target equalizer curve by the second control module, obtain an iterative equalizer population based on the target equalizer curve, and obtain an iterative target equalizer curve based on the iterative equalizer population; The second control module further obtains a final iteration target equalizer curve when the number of iterations reaches a predetermined number, and sets corresponding equalizer parameters based on the final iteration target equalizer curve.
9. 8. An electronic device comprising a memory and a processor coupled to each other, the processor executing program instructions stored in the memory to realize the equalizer parameter setting method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program capable of implementing 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
