Sound effect adjustment parameter combination method and device and storage medium

By dynamically combining sound effect adjustment parameters, the problem of equalizer parameters occupying a large amount of flash memory in traditional headphones is solved, which saves storage space and simplifies maintenance, and provides the ability to quickly respond to user needs for sound effect adjustment.

CN121568005APending Publication Date: 2026-02-24BEJING EDIFIER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511638942.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-10
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

In traditional headphones, equalizer parameter combinations occupy a large amount of flash memory storage space, resulting in low storage resource utilization and increased maintenance workload.

Method used

A dynamic combination method is adopted. By setting multiple parameter groups, each of which includes at least one sound effect adjustment parameter, K sound effect adjustment parameters are retrieved from multiple parameter groups according to user instructions and audio playback device status information to generate a target equalizer parameter combination. Data combination is performed using a global buffer to avoid directly storing a large number of parameters.

Benefits of technology

It saves storage space, simplifies maintenance, and enables rapid response to user needs, achieving efficient sound effect adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121568005A_ABST
    Figure CN121568005A_ABST
Patent Text Reader

Abstract

The invention discloses a sound effect adjustment parameter combination method and device and a storage medium, and relates to the field of audio processing. The method comprises the steps that a plurality of parameter sets are set, each parameter set comprises at least one sound effect adjusting parameter, and at least one parameter set in the plurality of parameter sets comprises at least two sound effect adjusting parameters; according to the user instruction and / or the state information of the audio playing device, K kinds of sound effect adjusting parameters are called from the multiple parameter sets to serve as target sound effect adjusting parameters, and K is an integer larger than or equal to 2; and combining the called K types of target sound effect adjustment parameters into a target equalizer parameter combination, the target equalizer parameter combination being used for adjusting the audio playing device. The technical problem that in the prior art, a large number of equalizer parameter combinations need to be stored in the flash memory, and consequently the utilization rate of storage resources of the flash memory is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio processing, and more specifically, to a method, apparatus, and storage medium for combining sound effect adjustment parameters. Background Technology

[0002] Traditional headphones have a limited number of built-in EQ (Equalization) modes. With the advent of equal-loudness equalizers and adaptive equalizers, the number of equalizer groups has increased exponentially. For example, combining 5 equalizer modes, 16 equal-loudness levels, and 20 adaptive levels can generate 1600 equalizer mode parameters. Traditional software implementations fall into two categories: directly writing the 1600 arrays or using macros to replace the content at compile time. Both methods require writing the 1600 arrays into FLASH (Flash Memory), which not only consumes significant chip space resources but also increases maintenance workload.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This application provides a method, apparatus, and storage medium for combining sound effect adjustment parameters, which at least solves the technical problem in the prior art that requires storing a large number of equalizer parameter combinations in flash memory, resulting in low utilization of flash memory storage resources.

[0005] According to one aspect of the embodiments of this application, a method for combining sound effect adjustment parameters is provided, comprising: setting multiple parameter groups, wherein each parameter group includes at least one sound effect adjustment parameter, and at least one parameter group in the multiple parameter groups includes at least two sound effect adjustment parameters; retrieving K sound effect adjustment parameters from the multiple parameter groups as target sound effect adjustment parameters according to user instructions and / or status information of the audio playback device, wherein K is an integer greater than or equal to 2; and combining the retrieved K target sound effect adjustment parameters into a target equalizer parameter combination, wherein the target equalizer parameter combination is used to adjust the audio playback device.

[0006] Optionally, the retrieved K target sound effect adjustment parameters are combined into a target equalizer parameter combination, including: setting all frequency band parameters of the global buffer to zero through a memory operation function, wherein the data type of the global buffer is a global variable; locating the parameter storage location of each target sound effect adjustment parameter through a predefined address offset; and filling the K target sound effect adjustment parameters into the global buffer for data combination according to the frequency band and parameter storage location corresponding to each target sound effect adjustment parameter and the association order of the K target sound effect adjustment parameters to obtain the target equalizer parameter combination.

[0007] Optionally, based on the frequency band and parameter storage location corresponding to each target sound effect adjustment parameter and the association order of the K target sound effect adjustment parameters, the K target sound effect adjustment parameters are filled into the global buffer for data combination to obtain the target equalizer parameter combination. This includes: determining the filling priority of each target sound effect adjustment parameter according to the association order of the K target sound effect adjustment parameters, wherein the target sound effect adjustment parameter with a higher association order has a higher filling priority; and filling the K target sound effect adjustment parameters into the global buffer sequentially according to the frequency band, parameter storage location, and filling priority of each target sound effect adjustment parameter to obtain the target equalizer parameter combination.

[0008] Optionally, based on the frequency band, parameter storage location, and filling priority corresponding to each target sound effect adjustment parameter, the K types of target sound effect adjustment parameters are sequentially filled into the global buffer for data combination to obtain the target equalizer parameter combination. This includes: performing K rounds of target operations on the K types of target sound effect adjustment parameters, wherein each round of target operation includes: selecting the target sound effect adjustment parameter with the highest filling priority from at least one target sound effect adjustment parameter not filled into the global buffer as the first parameter; copying and filling the first parameter into the global buffer starting from the target address of the global buffer according to the frequency band and parameter storage location corresponding to the first parameter, wherein the target address is determined by the starting address of the global buffer and the amount of parameter data already filled into the global buffer; after completing the K rounds of target operations, combining all parameter data filled into the global buffer to obtain the target equalizer parameter combination.

[0009] Optionally, based on user instructions and / or the status information of the audio playback device, K types of sound effect adjustment parameters are retrieved from the plurality of parameter groups as target sound effect adjustment parameters, including: generating an equalizer parameter switching instruction based on the user instructions and / or the status information of the audio playback device; and retrieving K types of sound effect adjustment parameters from the plurality of parameter groups as target sound effect adjustment parameters based on the equalizer parameter switching instruction without accessing flash memory.

[0010] Optionally, if a switch in the audio playback mode of the headphones is detected, an adjustment in the audio playback volume is detected, or a change in ambient noise is detected, the target equalizer parameter combination currently used by the headphones is updated.

[0011] Optionally, after combining the retrieved K target sound effect adjustment parameters into a target equalizer parameter combination, the starting address of the global buffer storing the target equalizer parameter combination is assigned to the underlying function; by executing the underlying function, the current audio playback mode of the audio playback device is adjusted.

[0012] Optionally, the types of sound effect adjustment parameters include: equalizer mode parameters, equal loudness level parameters, and adaptive level parameters. The equalizer mode parameters are used to determine the type and style of audio playback, the equal loudness level parameters are used to eliminate the differences in the auditory characteristics of the human ear at different volumes, and the adaptive level parameters are used to automatically adjust the equalizer according to user needs or the actual audio playback situation.

[0013] According to another aspect of the embodiments of this application, a sound effect adjustment parameter combination device is also provided, comprising: a parameter setting unit for setting multiple parameter groups, wherein each parameter group includes at least one sound effect adjustment parameter, and at least one of the multiple parameter groups includes at least two sound effect adjustment parameters; a first processing unit for retrieving K sound effect adjustment parameters from the multiple parameter groups as target sound effect adjustment parameters according to user instructions and / or status information of the audio playback device, wherein K is an integer greater than or equal to 2; and a second processing unit for combining the retrieved K target sound effect adjustment parameters into a target equalizer parameter combination, wherein the target equalizer parameter combination is used to adjust the audio playback device.

[0014] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, which stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located executes the above-described method for combining sound effect adjustment parameters.

[0015] According to another aspect of the embodiments of this application, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when one or more programs are executed by one or more processors, the one or more processors cause the one or more processors to perform the above-described sound effect adjustment parameter combination method.

[0016] As described above, in this embodiment, a dynamic combination approach is adopted. Multiple parameter groups are set, each including at least one sound effect adjustment parameter, and at least one of the multiple parameter groups includes at least two sound effect adjustment parameters. Then, based on user instructions and / or the status information of the audio playback device, K sound effect adjustment parameters are retrieved from the multiple parameter groups as target sound effect adjustment parameters, where K is an integer greater than or equal to 2. This achieves the goal of dynamically generating target equalizer parameter combinations, realizing the technical effects of saving storage space, simplifying maintenance, and quickly responding to user needs. Furthermore, it solves the technical problem in the prior art where a large number of equalizer parameter combinations need to be stored in flash memory, resulting in low utilization of flash memory storage resources. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 This is a flowchart of an optional method for combining sound effect adjustment parameters according to an embodiment of this application;

[0019] Figure 2 This is a schematic diagram of an optional parameter set stored in FLASH according to an embodiment of this application;

[0020] Figure 3 This is an optional EQ mode switching flowchart according to an embodiment of this application;

[0021] Figure 4 This is a schematic diagram of an optional sound effect adjustment parameter combination device according to an embodiment of this application. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] It should also be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data) collected in this application are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant laws, regulations, and standards of the relevant regions, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse. For example, this system has interfaces with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface, and the relevant information is obtained only after receiving consent from the aforementioned user or organization.

[0025] In an era of explosive growth in smart audio devices, headphones are no longer simply sound reproduction tools, but have become intelligent terminals that carry personalized listening experiences for users. From music lovers' pursuit of "a thousand ears, a thousand sounds" customized sound effects, to gamers' precise needs for footstep location, and to frequency band compensation for different hearing impairments in hearing aid scenarios, the few fixed EQ parameter combinations and ANC (Active Noise Cancellation) preset in traditional headphones can no longer meet diverse needs.

[0026] Secondly, with the evolution of adaptive technology, audio playback systems need to respond in real time to diverse environmental variables (including volume fluctuations, changes in ambient noise, changes in wearing posture, and even dynamic user heart rate) to drive intelligent and coordinated adjustment of EQ and ANC. For example, when five basic EQ modes (such as classical, rock, and vocal), 16 levels of equal loudness compensation (dynamically adapting frequency response at different volumes), and 20 levels of adaptive adjustment (including ambient noise compensation and wearing status detection) are combined, theoretically, up to 5 possible EQ parameter combinations can be achieved. 16 20 = 1600 possibilities. If a 10-level ANC parameter matrix is ​​added on top of this, the overall parameter space of the system will expand to 16,000 combinations. This means that the traditional headphone "preset mode" architecture is collapsing, and audio processing needs to enter the era of "parametric customization".

[0027] However, hardware resources for embedded devices are always scarce: the FLASH storage space of mainstream Bluetooth headsets is usually no more than 1MB, which also needs to store data such as the Bluetooth protocol stack, noise reduction algorithms, and user configurations. When engineers tried to write 1600 sets of EQ parameters directly into the firmware, they found that these arrays alone would occupy tens of KB of storage space, equivalent to one-third of the available storage. Even more challenging is the maintenance issue: each adjustment to the high-frequency gain of a basic mode requires manually modifying the corresponding items in the 1600 sets of data, causing the cost of compatibility testing during version iterations to increase exponentially.

[0028] This "space dilemma" is becoming increasingly apparent with the miniaturization trend of wearable devices: when the size of headphone chips shrinks by 50% but the storage unit density does not increase accordingly, the traditional "brute-force enumeration" software architecture has become a bottleneck for technology implementation. The industry urgently needs a solution that can meet the needs of massive parameter combinations without crowding out scarce storage resources.

[0029] To address the aforementioned issues, according to an embodiment of this application, an embodiment of a method for combining sound effect adjustment parameters is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0030] Optionally, according to the embodiments of this application, a sound effect adjustment parameter combination system (hereinafter referred to as the system) is provided as the execution subject of the sound effect adjustment parameter combination method of the embodiments of this application. The system can be a software system or an embedded system combining software and hardware. Of course, the method execution subject in the embodiments of this application can also be other forms of execution subject, such as devices, equipment, etc. It should be known by those skilled in the art that this application does not particularly limit the specific form of the method execution subject.

[0031] Figure 1 This is a flowchart of an optional sound effect adjustment parameter combination method according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0032] Step S101: Set multiple parameter groups, wherein each parameter group includes at least one sound effect adjustment parameter, and at least one of the multiple parameter groups includes at least two sound effect adjustment parameters.

[0033] Optionally, the sound effect adjustment parameters include, but are not limited to, equal loudness level parameters, and adaptive level parameters. Each parameter group may include at least one sound effect adjustment parameter. For example, the first parameter group may include equal loudness level parameters and adaptive level parameters; the second parameter group may include equal loudness level parameters and adaptive level parameters; and the third parameter group may include equal loudness level parameters, equal loudness level parameters, and adaptive level parameters. The types and number of sound effect adjustment parameters included in each parameter group are not particularly limited in this application.

[0034] Optionally, in the embodiments of this application, at least one parameter group among the multiple parameter groups will include at least two sound effect adjustment parameters. In other words, among the multiple parameter groups, not every parameter group will include only one sound effect adjustment parameter, but at least one parameter group will include multiple sound effect adjustment parameters.

[0035] In addition, when the sound effect adjustment parameters include equalizer mode parameters, equal loudness level parameters, and adaptive level parameters, the types of equalizer mode parameters, equal loudness level parameters, and adaptive level parameters can be further subdivided. For example, when the system initializes the program, it can set 5 equalizer mode parameters, 16 equal loudness level parameters, and 20 adaptive level parameters. These parameters are stored in three different arrays. The equalizer mode array, such as eq_modes[5], contains 5 different equalizer settings; the equal loudness level array, such as loudness_levels

[16] , contains 16 different equal loudness level parameters; and the adaptive level array, such as adaptive_gains

[20] , contains 20 different adaptive level parameters.

[0036] Among them, the equalizer mode parameter is used to determine the type and style of audio playback, the equal loudness level parameter is used to eliminate the differences in the auditory characteristics of the human ear at different volumes, and the adaptive level parameter is used to automatically adjust the equalizer according to user needs or the actual audio playback situation.

[0037] Alternatively, in the above manner, the system can dynamically generate the required target equalizer parameter combination according to the user's selection at runtime, without having to pre-store a large number of parameter combinations.

[0038] In practical applications, this initialization setting method is not only applicable to headphone devices but also to other audio playback devices, such as speaker systems and in-vehicle audio systems. Furthermore, the system can flexibly adjust the values ​​of X, Y, and Z according to different application scenarios and user needs. For example, for high-end headphone devices, the number of equalizer mode parameters (X value) can be increased to provide a wider range of sound effects; for specific music genres or usage scenarios, the equal loudness level parameter (Y value) and adaptive level parameter (Z value) can be adjusted to optimize sound quality. This flexible initialization setting method provides strong support for personalized adjustments to audio devices while also improving the system's scalability and adaptability.

[0039] Step S102: Based on the user instruction and / or the status information of the audio playback device, retrieve K sound effect adjustment parameters from the multiple parameter groups as target sound effect adjustment parameters, where K is an integer greater than or equal to 2.

[0040] Optionally, the system can select at least two sound effect adjustment parameters from multiple parameter groups as target sound effect adjustment parameters based on user instructions. For example, if the user instructs to lower the volume, the system can adjust the sound effect accordingly. The system can also select at least two sound effect adjustment parameters from multiple parameter groups as target sound effect adjustment parameters based on the status information of the audio playback device. For example, if the audio playback device detects increased ambient noise, the system can adjust the sound effect based on this device status information.

[0041] For example, when a user selects a specific equalizer mode, loudness level, and adaptive level, the system can receive these three parameters as input to determine the target parameters: the target equalizer mode parameter, the target loudness level parameter, and the target adaptive level parameter. During operation, the system can also automatically adjust the loudness level or adaptive level parameters of the audio playback device based on its current status (such as volume and content type) to optimize sound quality. For instance, at low volumes, the system can automatically increase the low-frequency and high-frequency loudness level parameters to ensure clear sound even at low volumes.

[0042] Optionally, the system can preset multiple scene modes, such as music mode, movie mode, and game mode. When the user selects different scene modes, the system can automatically adjust the device's equalizer mode parameters, equal loudness level parameters, and adaptive level parameters according to the preset parameters to provide the best listening experience.

[0043] Optionally, the system can incorporate machine learning algorithms to automatically adjust parameters based on user habits and preferences. For example, if a user frequently listens to music at low volumes, the system can learn this habit and automatically adjust the device's equal loudness level and adaptive level parameters to meet the user's needs.

[0044] Step S103: Combine the K types of target sound effect adjustment parameters into a target equalizer parameter combination, wherein the target equalizer parameter combination is used to adjust the audio playback device.

[0045] Alternatively, in order to achieve adaptive switching and adjustment of equalizer modes without using a large amount of flash memory, the system can use a global buffer at runtime to dynamically generate the target equalizer parameter combination required at the moment.

[0046] Optionally, the system can first initialize the global buffer by setting all data in the global buffer to zero.

[0047] Subsequently, the system can retrieve K sound effect adjustment parameters from the multiple parameter groups as target sound effect adjustment parameters according to the equalizer mode index selected by the user, and then fill each target sound effect adjustment parameter into the global buffer.

[0048] Ultimately, the global buffer contains a dynamically generated combination of target equalizer parameters based on user selection. This combination of target equalizer parameters will then be used to adjust the device's audio output to provide the best listening experience.

[0049] As described above, in this embodiment, a dynamic combination approach is adopted. Multiple parameter groups are set, each including at least one sound effect adjustment parameter, and at least one of the multiple parameter groups includes at least two sound effect adjustment parameters. Then, based on user instructions and / or the status information of the audio playback device, K sound effect adjustment parameters are retrieved from the multiple parameter groups as target sound effect adjustment parameters, where K is an integer greater than or equal to 2. This achieves the goal of dynamically generating target equalizer parameter combinations, realizing the technical effects of saving storage space, simplifying maintenance, and quickly responding to user needs. Furthermore, it solves the technical problem in the prior art where a large number of equalizer parameter combinations need to be stored in flash memory, resulting in low utilization of flash memory storage resources.

[0050] In one optional embodiment, the system can set X equalizer mode parameters, Y equal loudness level parameters, and Z adaptive level parameters, including: embedding the X equalizer mode parameters, Y equal loudness level parameters, and Z adaptive level parameters as a parameter set in the target program.

[0051] Optionally, by embedding the parameter set within the target program, storing a large number of pre-stored parameter combinations in external storage devices (such as FLASH) can be avoided, thus reducing storage space consumption. Furthermore, the built-in parameter set allows the program to quickly access and dynamically generate target equalizer parameter combinations at runtime without accessing external storage devices. This not only improves system responsiveness but also enhances system flexibility, enabling rapid adaptation to different user needs and device states. In addition, since the parameter set is built into the target program, maintenance becomes simpler. The system only needs to update the parameter set in the target program to cover all possible combinations, without needing to update each pre-stored parameter combination individually.

[0052] Optionally, the parameter set can also be stored in FLASH memory, including: pre-writing indivisible atomic-level parameter units in the FLASH storage space, such as... Figure 2 As shown, the parameter set can include 5 sets of basic equalizer mode parameters (Mode 1, Mode 2, Mode 3, Mode 4, Mode 5); 16 sets of equal loudness level parameters (Equal Loudness 1, Equal Loudness 2...Equal Loudness 16); and 20 sets of adaptive level parameters (including Adaptive Parameter 1, Adaptive Parameter 2...Adaptive Parameter 20), totaling 5 + 16 + 20 = 41 sets of basic data. Compared to the traditional solution that requires storing all 1600 sets of data, the storage method of this application significantly reduces the amount of data that needs to be stored in FLASH, thus overcoming the storage bottleneck.

[0053] In one optional embodiment, retrieving K sound effect adjustment parameters from the plurality of parameter groups as target sound effect adjustment parameters based on user instructions and / or the status information of the audio playback device includes: generating an equalizer parameter switching instruction based on the user instructions and / or the status information of the audio playback device; and retrieving K sound effect adjustment parameters from the plurality of parameter groups as target sound effect adjustment parameters based on the equalizer parameter switching instruction without accessing flash memory.

[0054] Optionally, when a user selects a specific equalizer mode, equal loudness level, and adaptive level, the system receives these parameters as input and generates corresponding equalizer parameter switching instructions. Subsequently, the system dynamically fills a local array to retrieve K sound effect adjustment parameters from the multiple parameter groups as target sound effect adjustment parameters and fills them into the global buffer to generate the target equalizer parameter combination. This dynamic filling process not only saves storage space but also simplifies maintenance, enabling audio playback devices to quickly generate the optimal sound quality adjustment scheme based on the user's real-time selection and the device's current state, thus improving the system's response speed and flexibility.

[0055] In practical applications, this method of dynamically generating equalizer parameter combinations has significant advantages. First, it provides personalized sound quality adjustments based on different user needs and preferences. Users can select different equalizer modes, equal loudness levels, and adaptive levels according to their preferences, and the system generates corresponding parameter combinations in real time to meet their individual needs. Second, combined with the system's automatic status detection function for audio playback devices, the system can automatically adjust parameters based on the device's current volume and the type of content being played, achieving more intelligent sound quality optimization. For example, when playing music, the system can automatically adjust the device's equal loudness level and adaptive level parameters based on the music genre to provide the best listening experience.

[0056] In one optional embodiment, the system can combine the retrieved K target audio effect adjustment parameters into a target equalizer parameter combination, including: first, setting all frequency band parameters in the global buffer to zero using a memory operation function, wherein the data type of the global buffer is a global variable; then, locating the parameter storage location of each target audio effect adjustment parameter using a predefined address offset; and finally, filling the global buffer with the K target audio effect adjustment parameters according to the frequency band and parameter storage location corresponding to each target audio effect adjustment parameter and the association order of the K target audio effect adjustment parameters to obtain the target equalizer parameter combination.

[0057] Optionally, during system initialization, an EQ parameter buffer of type global_eq_buf (i.e., the aforementioned global buffer, where the lifetime of the global buffer is consistent with the running cycle of the audio program, thereby avoiding repeated memory allocation and release) is created. For example, the EQ mode switching logic can be as follows:

[0058] Step 1, buffer zeroing initialization: Before each EQ mode switch, all frequency band parameters in the global buffer are set to zero using memory operation functions (e.g., memset(global_eq_buf, 0, sizeof(EQ_PARAMS))) to completely clear historical residual data and ensure the purity of parameter synthesis.

[0059] Step ②, Three-dimensional parameter address mapping: Based on the currently selected "Equalizer Mode ID (1-5)", "Equal Loudness Level (1-16)", and "Adaptive Level (1-20)", the storage location of the basic parameters is quickly located using predefined address offsets. In other words, the addresses of the three target EQs are located using predefined address offsets.

[0060] Optionally, based on the frequency band and parameter storage location corresponding to each target sound effect adjustment parameter and the association order of the K target sound effect adjustment parameters, the K target sound effect adjustment parameters are filled into the global buffer for data combination to obtain the target equalizer parameter combination. This includes: determining the filling priority of each target sound effect adjustment parameter according to the association order of the K target sound effect adjustment parameters, wherein the target sound effect adjustment parameter with a higher association order has a higher filling priority; and filling the K target sound effect adjustment parameters sequentially into the global buffer for data combination based on the frequency band, parameter storage location, and filling priority of each target sound effect adjustment parameter to obtain the target equalizer parameter combination.

[0061] For example, suppose the K target sound effect adjustment parameters include: target equalizer mode parameters, target equal loudness level parameters, and target adaptive level parameters. The system can determine the first priority target parameter, the second priority target parameter, and the third priority target parameter to be filled based on the association order of the target equalizer mode parameters, the target equal loudness level parameters, and the target adaptive level parameters, wherein the target parameter with the earlier association order corresponds to a higher filling priority. Then, according to the frequency band and parameter storage location corresponding to each target parameter, the first priority target parameter, the second priority target parameter, and the third priority target parameter are sequentially filled into the global buffer for data combination to obtain the target equalizer parameter combination.

[0062] Optionally, during the process of sequentially filling the K types of target sound effect adjustment parameters into the global buffer for data combination based on the frequency band, parameter storage location, and filling priority of each target sound effect adjustment parameter to obtain the target equalizer parameter combination, the system can perform K rounds of target operations on the K types of target sound effect adjustment parameters. Each round of target operations includes: selecting the target sound effect adjustment parameter with the highest filling priority from at least one target sound effect adjustment parameter that has not been filled into the global buffer as the first parameter; copying and filling the first parameter into the global buffer starting from the target address of the global buffer according to the frequency band and parameter storage location corresponding to the first parameter, wherein the target address is determined by the starting address of the global buffer and the amount of parameter data already filled into the global buffer.

[0063] After completing the K rounds of target operations, the system can combine all the parameter data filled into the global buffer to obtain the target equalizer parameter combination.

[0064] For example, suppose the K target sound effect adjustment parameters include: target equalizer mode parameters, target loudness level parameters, and target adaptive level parameters. The system can copy and fill the first-priority target parameters into the global buffer, starting from the starting address of the global buffer, based on the frequency band and parameter storage location corresponding to the first-priority target parameters. Then, based on the frequency band and parameter storage location corresponding to the second-priority target parameters, starting from the first address of the global buffer, the second-priority target parameters are copied and filled into the global buffer, where the first address is determined by the starting address of the global buffer and the data volume of the first-priority target parameters. Subsequently, based on the frequency band and parameter storage location corresponding to the third-priority target parameters, starting from the second address of the global buffer, the third-priority target parameters are copied and filled into the global buffer, where the second address is determined by the first address and the data volume of the second-priority target parameters. Finally, the data in the global buffer is combined to obtain the target equalizer parameter combination.

[0065] For example, after completing step ② above, the system can continue to perform the following steps:

[0066] Step 3, Segmented Data Fusion and Filling: Using memory block copying technology (such as the memcpy function), the three-dimensional parameters are concatenated in frequency band order. For example, suppose the first priority target parameter is an equalizer mode parameter, the second priority target parameter is an equal loudness level parameter, and the third priority target parameter is an adaptive level parameter. If the first priority target parameter is defined as 5 frequency bands, then its frequency bands are filled into segments 1-5 of the global buffer; if the second priority target parameter is defined as 2 frequency bands, then its frequency bands are filled into segments 6-7 of the global buffer; if the third priority target parameter is defined as 3 frequency bands, then its frequency bands are filled into segments 8-10 of the global buffer. Through this segmented address mapping + sequential concatenation method, lossless fusion of multi-dimensional parameters is achieved.

[0067] Step 4: After combining the target equalizer mode parameters, the target equal loudness level parameters, and the target adaptive level parameters to obtain the target equalizer parameter combination, the starting address of the global buffer storing the target equalizer parameter combination is assigned to the underlying function. By executing the underlying function, the current audio playback mode of the audio playback device is adjusted. In other words, the final generated global buffer data (global_eq_buf) is directly used as the current working EQ parameters of the audio playback device for subsequent audio processing modules to call, ensuring low-latency characteristics of real-time sound effect adjustment.

[0068] In one alternative embodiment, if a switch in the audio playback mode of the headphones is detected, an adjustment in the audio playback volume is detected, or a change in ambient noise is detected, the target equalizer parameter combination currently used by the headphones is updated.

[0069] Optionally, Figure 3 This is an optional EQ mode switching flowchart according to an embodiment of this application, such as... Figure 3 As shown, taking headphones as an example: the headphones support switching between 5 basic EQ modes, 16 levels of equal loudness EQ compensation, and 20 levels of adaptive EQ adjustment. The following steps can be performed to switch EQ modes:

[0070] Step 1: Pre-write the following data into the FLASH storage space: 5 sets of basic EQ mode parameters, 16 sets of equal loudness compensation parameters, and 20 sets of adaptive level parameters, for a total of 5+16+20=41 sets of basic data.

[0071] Step two: Power on the headphones; initialization complete.

[0072] Step 3: Headphone startup cycle detection or interrupt check, checking whether the following conditions are triggered:

[0073] The headphone's audio playback mode changes, the audio playback volume is adjusted, or the ambient noise changes.

[0074] If any of the above conditions are triggered, it means that you need to switch to EQ mode.

[0075] Step four involves obtaining the desired EQ mode, including: target equalizer mode parameter Q (Q: 1-5), target equal loudness level parameter W (W: 1-16), and target adaptive level parameter Z (Z: 1-20). Then, the FLASH memory is traversed to obtain the addresses of the target equalizer mode parameter Q, the target equal loudness level parameter W, and the target adaptive level parameter Z.

[0076] Step 5: Obtain the starting address A of the global buffer. Starting from A, use a copy function (such as memcpy) to copy the frequency band of the target equalizer mode parameter Q to the global buffer. Calculate the new address B (starting address A + data amount of target equalizer mode parameter X), and then starting from B, use a copy function (such as memcpy) to copy the frequency band of the target equal loudness level parameter W to the global buffer. Calculate the new address C (starting address A + data amount of target equal loudness level parameter Y + data amount of target equalizer mode parameter X), and finally, starting from C, use a copy function (such as memcpy) to copy the frequency band of the target adaptive level parameter Z to the global buffer.

[0077] Step six: Assign the starting address of the global buffer to the underlying function. By executing the underlying function, the frequency band of the global buffer is used to complete the EQ mode switching.

[0078] As can be seen from the above, the technical solution of this application can generate EQ parameter combinations in real time during audio program execution, thereby replacing the static storage mode in related technologies that requires pre-calculation and storage of EQ combination parameters. This is achieved by eliminating M... A preset parameter table of size N compresses the storage space occupied by the embedded hardware. Implementing the technical solution of this application only requires storing basic parameter seeds (M sets of core parameters + N scene conversion factors), thereby greatly reducing the amount of data that needs to be stored.

[0079] In an alternative embodiment, the system can also determine the data storage space of the global buffer based on the length of the adjustment parameters for each sound effect.

[0080] Alternatively, assuming the length of each equalizer mode parameter is n, the length of each equal loudness level parameter is m, and the length of each adaptive level parameter is p, then the minimum storable data length of the global buffer is n+m+p.

[0081] Optionally, before dynamically filling the global buffer, the system can determine the data storage space of the global buffer based on the length of each parameter, thereby ensuring that the data storage space can accommodate all the required parameters and thus avoiding array out-of-bounds or data loss problems.

[0082] Alternatively, if the size of a parameter group needs to be increased or decreased in the future, only the data storage space of the global buffer needs to be recalculated, without redesigning the entire array structure. For example, if the length of each equalizer mode parameter increases from n to n+1, only the minimum storable data length of the global buffer needs to be adjusted from n+m+p to n+m+p+1.

[0083] In one optional embodiment, the equalizer mode parameter is used to determine the type and style of audio playback, the equal loudness level parameter is used to eliminate the differences in the auditory characteristics of the human ear at different volumes, and the adaptive level parameter is used to automatically adjust the equalizer according to user needs or the actual audio playback situation.

[0084] Optionally, different equalizer mode parameters can optimize different types of audio content, such as music, movies, and games. Each mode can provide the best listening experience by adjusting the gain at different frequencies.

[0085] Optionally, since the human ear is sensitive to different frequencies at different volumes, the equal loudness level parameter can adjust these frequencies to make the audio sound more natural and balanced at different volumes.

[0086] Optionally, the adaptive rating parameter can automatically optimize sound quality based on factors such as user preferences, the type of content being played, or ambient noise.

[0087] Alternatively, through the above methods, the system can not only dynamically generate target equalizer parameter combinations according to user instructions, but also combine the device's automatic status detection function and intelligent adjustment algorithm to achieve more intelligent and personalized sound quality optimization, thereby providing the best listening experience.

[0088] According to another aspect of the embodiments of this application, a sound effect adjustment parameter combination device is also provided, wherein, Figure 4 This is a schematic diagram of an optional sound effect adjustment parameter combination device according to an embodiment of this application, such as... Figure 4 As shown, the sound effect adjustment parameter combination device includes: parameter setting unit 401, first processing unit 402, and second processing unit 403.

[0089] Optionally, the parameter setting unit 401 is used to set multiple parameter groups, wherein each parameter group includes at least one sound effect adjustment parameter, and at least one of the multiple parameter groups includes at least two sound effect adjustment parameters; the first processing unit 402 is used to retrieve K sound effect adjustment parameters from the multiple parameter groups as target sound effect adjustment parameters according to user instructions and / or the status information of the audio playback device, wherein K is an integer greater than or equal to 2; the second processing unit 403 is used to combine the retrieved K target sound effect adjustment parameters into a target equalizer parameter combination, wherein the target equalizer parameter combination is used to adjust the audio playback device.

[0090] Optionally, the second processing unit 403 includes: a first processing subunit, configured to set all frequency band parameters of the global buffer to zero using a memory operation function, wherein the data type of the global buffer is a global variable; a second processing subunit, configured to locate the parameter storage location of each target sound effect adjustment parameter using a predefined address offset; and a third processing subunit, configured to fill the K target sound effect adjustment parameters into the global buffer for data combination based on the frequency band and parameter storage location corresponding to each target sound effect adjustment parameter and the association order of the K target sound effect adjustment parameters, to obtain the target equalizer parameter combination.

[0091] Optionally, the third processing subunit includes: a first determining module, used to determine the filling priority of each target sound effect adjustment parameter according to the association order of the K target sound effect adjustment parameters, wherein the target sound effect adjustment parameter with a higher association order has a higher filling priority; and a data filling module, used to fill the K target sound effect adjustment parameters into the global buffer in sequence according to the frequency band, parameter storage location and filling priority of each target sound effect adjustment parameter to obtain the target equalizer parameter combination.

[0092] Optionally, the data filling module includes: a first filling submodule, configured to perform K rounds of target operations on the K types of target sound effect adjustment parameters, wherein each round of target operation includes: selecting the target sound effect adjustment parameter with the highest filling priority from at least one target sound effect adjustment parameter not filled into the global buffer as a first parameter; copying and filling the first parameter into the global buffer starting from the target address of the global buffer according to the frequency band and parameter storage location corresponding to the first parameter, wherein the target address is determined by the starting address of the global buffer and the amount of parameter data already filled into the global buffer; and a second filling submodule, configured to combine all parameter data filled into the global buffer after completing the K rounds of target operations to obtain the target equalizer parameter combination.

[0093] Optionally, the first processing unit 402 includes: a generation subunit and a selection subunit. The generation subunit is configured to generate an equalizer parameter switching instruction based on the user instruction and / or the status information of the audio playback device; the selection subunit is configured to, based on the equalizer parameter switching instruction, retrieve K sound effect adjustment parameters from the plurality of parameter groups as target sound effect adjustment parameters without accessing flash memory.

[0094] Optionally, the apparatus for dynamically generating equalizer parameter combinations further includes: an update unit, used to update the target equalizer parameter combination currently used by the headphones when a switch in the audio playback mode of the headphones is detected, an adjustment in the audio playback volume is detected, or a change in ambient noise is detected.

[0095] Optionally, the apparatus for dynamically generating equalizer parameter combinations further includes: a function assignment unit, used to assign the starting address of the global buffer storing the target equalizer parameter combination to the underlying function; and a function execution unit, used to adjust the current audio playback mode of the audio playback device by executing the underlying function.

[0096] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, which stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located executes the above-described method for combining sound effect adjustment parameters.

[0097] According to another aspect of the embodiments of this application, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when one or more programs are executed by one or more processors, the one or more processors cause the one or more processors to perform the above-described sound effect adjustment parameter combination method.

[0098] The above-described embodiments or examples disclosed in this application are not exhaustive, but merely illustrative of some embodiments or examples, and are not intended to limit the scope of protection of this application. Unless otherwise specified, each step in a particular embodiment or example can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment or example can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment or example can be arbitrarily interchanged. Furthermore, optional methods or examples in a particular embodiment or example can be arbitrarily combined; moreover, various embodiments or examples can be arbitrarily combined. For example, some or all steps of different embodiments or examples can be arbitrarily combined, and a particular embodiment or example can be arbitrarily combined with optional methods or examples of other embodiments or examples.

[0099] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0100] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0102] The units described as separate components may or may not be physically separate. Similarly, the components shown as units may or may not be physical units; they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0103] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0105] The above are merely preferred embodiments of this application. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for combining sound effect adjustment parameters, characterized in that, include: Multiple parameter groups are set, wherein each parameter group includes at least one sound effect adjustment parameter, and at least one of the multiple parameter groups includes at least two sound effect adjustment parameters; Based on user instructions and / or the status information of the audio playback device, K sound effect adjustment parameters are retrieved from the plurality of parameter groups as target sound effect adjustment parameters, where K is an integer greater than or equal to 2; The retrieved K target sound effect adjustment parameters are combined into a target equalizer parameter combination, wherein the target equalizer parameter combination is used to adjust the audio playback device.

2. The method according to claim 1, characterized in that, The retrieved K target sound effect adjustment parameters are combined into a target equalizer parameter combination, including: The memory operation function sets all frequency band parameters of the global buffer to zero, wherein the data type of the global buffer is a global variable; The parameter storage location for each target sound effect adjustment parameter is located using a predefined address offset; Based on the frequency band and parameter storage location corresponding to each target sound effect adjustment parameter and the association order of the K target sound effect adjustment parameters, the K target sound effect adjustment parameters are filled into the global buffer for data combination to obtain the target equalizer parameter combination.

3. The method according to claim 2, characterized in that, Based on the frequency band and parameter storage location corresponding to each target sound effect adjustment parameter, and the association order of the K target sound effect adjustment parameters, the K target sound effect adjustment parameters are filled into the global buffer for data combination to obtain the target equalizer parameter combination, including: Based on the association order of the K target sound effect adjustment parameters, the filling priority of each target sound effect adjustment parameter is determined, wherein the target sound effect adjustment parameter that appears earlier in the association order has a higher filling priority. Based on the frequency band, parameter storage location, and filling priority corresponding to each target sound effect adjustment parameter, the K types of target sound effect adjustment parameters are sequentially filled into the global buffer for data combination to obtain the target equalizer parameter combination.

4. The method according to claim 3, characterized in that, Based on the frequency band, parameter storage location, and filling priority corresponding to each target sound effect adjustment parameter, the K types of target sound effect adjustment parameters are sequentially filled into the global buffer for data combination to obtain the target equalizer parameter combination, including: K rounds of target operations are performed on the K types of target sound effect adjustment parameters. Each round of target operation includes: selecting the target sound effect adjustment parameter with the highest filling priority from at least one target sound effect adjustment parameter that has not been filled into the global buffer as the first parameter; copying and filling the first parameter into the global buffer starting from the target address of the global buffer according to the frequency band and parameter storage location corresponding to the first parameter, wherein the target address is determined by the starting address of the global buffer and the amount of parameter data already filled into the global buffer; After completing the K rounds of target operations, all parameter data filled into the global buffer are combined to obtain the target equalizer parameter combination.

5. The method according to claim 1, characterized in that, Based on user instructions and / or the status information of the audio playback device, K sound effect adjustment parameters are retrieved from the plurality of parameter groups as target sound effect adjustment parameters, including: Generate equalizer parameter switching instructions based on the user instructions and / or the status information of the audio playback device; According to the equalizer parameter switching instruction, K sound effect adjustment parameters are retrieved from the multiple parameter groups as target sound effect adjustment parameters without accessing the flash memory.

6. The method according to claim 5, characterized in that, The method further includes: If the system detects a change in the audio playback mode of the headphones, an adjustment in the audio playback volume, or a change in ambient noise, the system updates the target equalizer parameter combination currently used by the headphones.

7. The method according to claim 1, characterized in that, After combining the retrieved K target sound effect adjustment parameters into a target equalizer parameter combination, the method further includes: Assign the starting address of the global buffer storing the target equalizer parameter combination to the underlying function; By executing the underlying function, the current audio playback mode of the audio playback device is adjusted.

8. The method according to any one of claims 1 to 7, characterized in that, The types of sound effect adjustment parameters include: equalizer mode parameters, equal loudness level parameters, and adaptive level parameters. The equalizer mode parameters are used to determine the type and style of audio playback, the equal loudness level parameters are used to eliminate the differences in the auditory characteristics of the human ear at different volumes, and the adaptive level parameters are used to automatically adjust the equalizer according to user needs or the actual audio playback situation.

9. A device for combining sound effect adjustment parameters, characterized in that, include: A parameter setting unit is used to set multiple parameter groups, wherein each parameter group includes at least one sound effect adjustment parameter, and at least one of the multiple parameter groups includes at least two sound effect adjustment parameters; The first processing unit is configured to retrieve K sound effect adjustment parameters from the plurality of parameter groups as target sound effect adjustment parameters based on user instructions and / or the status information of the audio playback device, wherein K is an integer greater than or equal to 2; The second processing unit is used to combine the retrieved K types of target sound effect adjustment parameters into a target equalizer parameter combination, wherein the target equalizer parameter combination is used to adjust the audio playback device.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device on which the computer-readable storage medium is located performs the sound effect adjustment parameter combination method according to any one of claims 1 to 8.