EQ equalization coefficient switching method and device, storage medium and electronic equipment

By gradually adjusting the gain variable during the EQ equalization coefficient switching process, a smooth transition is achieved, the problem of sound discontinuity in the existing technology is solved, and the user experience is improved.

CN119496474APending Publication Date: 2025-02-21ZHUHAI HUGE IC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411496718.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The prior art causes discontinuity of sound effects during the switching of EQ equalization coefficients, causing auditory discomfort to the user.

Method used

By introducing two gain variables gain0 and gain1, and gradually adjusting their values ​​when switching EQ equalization coefficients, a smooth transition from the original EQ equalization coefficient H0 to the target EQ equalization coefficient H1 is achieved.

Benefits of technology

Avoid audio distortion or abruptness that may be caused by sudden changes in EQ equalization, improves the user experience and ensures consistency in volume.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496474A_ABST
    Figure CN119496474A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an EQ equalization coefficient switching method and device, a storage medium and electronic equipment, and relates to the field of audio processing. According to the invention, two gain variables, namely gain0 and gain1, are introduced, and the values of the gain variables are gradually adjusted when the EQ equalization coefficients are switched, so that smooth transition from the original EQ equalization coefficient H0 to the target EQ equalization coefficient H1 is realized. The smooth switching avoids audio distortion or abrupt feeling possibly caused by sudden change of EQ balance, and improves user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio processing, and in particular to a method, device, storage medium and electronic device for switching EQ equalization coefficients. Background Art

[0002] In the current field of audio and video processing technology, audio and video processing chips generally integrate EQ equalization modules, which provide users with a variety of equalization effect options to meet different auditory needs. In actual applications, users often frequently switch between different equalization effects based on personal preferences or specific scene requirements. The technical principle behind this is to adjust and change the sound effects by switching between different equalization coefficients applied to the EQ equalization module.

[0003] However, in the process of switching the EQ coefficient, the traditional method often adopts a more direct approach: first, the input signal of the EQ module is gradually faded out to a silent state, that is, the volume is gradually reduced to zero; then, after the EQ coefficient is switched, the input signal of the EQ module is faded back in, that is, the volume is gradually restored to a normal level. The disadvantage of this method is that during the switching of the coefficient, due to the fade-out and fade-in process of the input signal, the audience will experience a period of silence or a significant change in volume, thereby destroying the continuity of the sound effect and giving the user a sense of auditory incoherence. Summary of the invention

[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for switching EQ equalization coefficients, which can solve the problem of auditory incoherence caused to users when switching EQ equalization coefficients in the prior art. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for switching an EQ equalization coefficient, the method comprising:

[0006] receiving a switching control signal;

[0007] In response to the switching control signal, an original EQ equalization coefficient H0 is obtained, a target EQ equalization coefficient H1 to be switched is obtained, and a volume value V set by a user is obtained;

[0008] Monitor data on the input interface;

[0009] When a current audio stream sequence x(n) is received through the input interface, determining whether gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V; wherein gain0(1)=V, gain1(1)=0;

[0010] If yes, generate the output sequence according to the formula y(n)=x(n)*H1*V;

[0011] If not, update gain0(n)=gain0(n-1)-△, gain1(n)=gain1(n-1)+△ according to the formula, and process the current audio stream sequence according to the formula: y(n)=x(n)*(H0*gain0(n)+H1*gain1(n)) to generate the output sequence;

[0012] Send the generated output sequence through the output interface.

[0013] In a second aspect, an embodiment of the present application provides an audio processing device, the device comprising:

[0014] A receiving unit, configured to receive a switching control signal;

[0015] An acquisition unit, configured to acquire an original EQ equalization coefficient H0 and a target EQ equalization coefficient H1 to be switched in response to the switching control signal, and acquire a volume value V set by a user;

[0016] A monitoring unit, used for monitoring data at an input interface;

[0017] a judgment unit, configured to judge whether gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V when a current audio stream sequence x(n) is received through the input interface; wherein gain0(1)=V, gain1(1)=0;

[0018] A generating unit, for, if yes, generating an output sequence according to the formula y(n)=x(n)*H1*V; if no, updating gain0(n)=gain0(n-1)-△, gain1(n)=gain1(n-1)+△ according to the formula, and processing the current audio stream sequence according to the formula: y(n)=x(n)*(H0*gain0(n)+H1*gain1(n)) to generate an output sequence;

[0019] The sending unit is used to send the generated output sequence through the output interface.

[0020] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0021] In a fourth aspect, an embodiment of the present application provides an electronic device, which may be a tablet computer, a personal computer, a mobile phone, or other device with an audio processing function. The electronic device may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above method steps.

[0022] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0023] By introducing two gain variables, gain0 and gain1, and gradually adjusting their values ​​when switching the EQ coefficient, a smooth transition from the original EQ coefficient H0 to the target EQ coefficient H1 is achieved. This smooth switching avoids audio distortion or abruptness caused by sudden changes in EQ, and improves the user experience.

[0024] The volume value V set by the user is taken into account and applied to the audio signal after EQ processing. In this way, the user can adjust the volume according to his or her preferences and needs without affecting the effect of EQ processing. At the same time, the volume value V also plays a key role in the EQ switching process, ensuring the consistency of the volume before and after the switch.

[0025] By monitoring the audio stream sequence received by the input interface and performing EQ equalization and gain adjustment in real time, this technical solution realizes real-time processing of audio signals. This processing method can ensure the continuity and integrity of the audio signal while reducing processing delay and audio distortion.

[0026] It has certain scalability and compatibility. By adjusting the EQ coefficients H0 and H1, as well as the update step lengths △ of the gain variables gain0 and gain1, it can adapt to different audio processing requirements. In addition, this technical solution can also be combined with other audio processing technologies (such as noise suppression, echo cancellation, etc.) to further improve the audio processing effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 It is a schematic diagram of the network architecture provided by the embodiment of the present application;

[0029] Figure 2 It is a flowchart of a method for switching EQ equalization coefficients provided in an embodiment of the present application;

[0030] Figure 3 It is a structural schematic diagram of an audio processing device provided by the present application;

[0031] Figure 4 This is another structural schematic diagram of an audio processing device provided by the present application. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0033] It should be noted that the EQ equalization coefficient switching method provided in the present application is generally performed by an audio processing device, and accordingly, the audio processing device is generally arranged in the audio processing device.

[0034] Figure 1 An exemplary system architecture of an EQ equalization coefficient switching method or an audio processing device that can be applied to the present application is shown.

[0035] like Figure 1 As shown, the system architecture may include: an audio source 101, an audio processing device 102, and an audio playback device 103. The audio source 101, the audio processing device 102, and the audio playback device 103 may communicate with each other in a wired manner or a wireless manner, for example: a wired communication link includes an optical fiber, a twisted pair, or a coaxial cable, etc., and a wireless communication link includes a Bluetooth communication link, a wireless fidelity (WIreless-FIdelity, Wi-Fi) communication link, or a microwave communication link, etc.

[0036] Among them, the audio source 101 generates or provides audio signals according to demand. For example, a microphone captures human voice or environmental sound, a musical instrument produces music sound, and a CD player plays a pre-recorded audio file. The audio processing device 102 receives and processes the audio signal: the audio processing device 102 receives the audio signal from the audio source 101. According to preset or real-time parameter settings, the audio processing device 102 performs various processing on the audio signal to improve the sound quality, adjust the volume, eliminate noise, etc. The processed audio signal is sent to the output interface and is ready to be transmitted to the audio playback device 103. The audio playback device 103 plays the audio signal: the audio playback device 103 receives the audio signal from the audio processing device 102. The audio playback device 103 converts the received audio signal into audible sound and outputs it through a playback device such as a speaker or headphones.

[0037] It should be understood that Figure 1 The number of audio sources 101, audio processing devices 102 and audio playback devices 103 is only illustrative and can be any number according to implementation requirements.

[0038] See also Figure 2 , is a flow chart of a method for switching an EQ equalization coefficient provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:

[0039] S201: Receive a switching control signal.

[0040] The audio processing device controls the interface (such as I 2 C, SPI, etc.) receives a switching control signal from an external controller (such as a microprocessor, DSP, etc.). This signal is usually a digital signal used to indicate that the audio processing device needs to switch to a different EQ (equalizer) equalization setting. The audio processing device interprets the signal and prepares for subsequent EQ equalization coefficient switching operations.

[0041] In some embodiments, the sound effect control panel is an interface for users to interact with the audio processing device, and generally includes controls such as knobs, buttons, and touch screens. These controls allow users to adjust the volume, select sound effect modes, switch equalizer settings, and the like. Users perform switching operations, such as selecting a new sound effect mode or equalizer setting, through the controls on the sound effect control panel. The switching operation may involve actions such as clicking a button, rotating a knob, sliding or clicking on a touch screen. When the user performs a switching operation, the sound effect control panel detects and identifies the action. Based on the user's operation, the control panel generates a switching control signal. This signal contains specific information about the switching operation that the user wishes to perform, such as an identifier of the target sound effect mode or equalizer setting. The audio processing device has one or more interfaces inside for receiving the switching control signal from the sound effect control panel. When the switching control signal is generated, it is sent to one of these interfaces and received by the audio processing device. Furthermore, the audio processing device may also change the current volume value based on the volume adjustment operation performed by the user on the sound effect control panel.

[0042] S202 , in response to the switching control signal, obtaining an original EQ equalization coefficient H0 , obtaining a target EQ equalization coefficient H1 to be switched, and obtaining a volume value V set by a user.

[0043] The audio processing device stores a preset set of EQ coefficients, which define the gain or attenuation of different frequency bands. According to the received switching control signal, the audio processing device retrieves the corresponding original EQ coefficient H0 and the target EQ coefficient H1 to be switched from the internal memory. At the same time, the audio processing device reads the volume value V set by the user through the user interface (such as a knob, button, digital interface, etc.) and stores it in the internal register for subsequent use.

[0044] In some embodiments of the present application, the user issues selection instructions through a user interface (such as a knob, a button, a touch screen, etc.), and these instructions generally correspond to a preset EQ equalization mode or a custom EQ equalization setting. In the internal memory of the audio processing device, one or more EQ equalization coefficient sets are pre-stored. These sets contain a variety of different EQ equalization settings, each of which corresponds to a specific set of EQ equalization coefficients. Upon receiving the user's selection instruction, the audio processing device will search for the corresponding EQ equalization coefficient in the preset EQ equalization coefficient set according to the instruction. Once found, this set of coefficients is marked as the target EQ equalization coefficient H1 to be switched.

[0045] S203: Monitor data at the input interface.

[0046] The audio processing device continuously monitors audio data from an external audio source through its audio input interface (such as an ADC interface). These audio data are usually in the form of a digital audio stream, including multiple continuous audio samples. The audio processing device is ready to receive these audio data for subsequent EQ equalization processing.

[0047] S204: When a current audio stream sequence x(n) is received through the input interface, determine whether gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V.

[0048] Wherein, gain0(1)=V, gain1(1)=0. When the audio processing device receives a current audio stream sequence x(n) through the input interface, it first checks the values ​​of gain0(n-1) and gain1(n-1) stored in the internal register. These two values ​​represent the weights of the original EQ coefficient H0 and the target EQ coefficient H1 currently being applied, respectively. Under the initial condition, gain0(1) is set to the volume value V set by the user, and gain1(1) is set to 0, indicating that the original EQ coefficient H0 is fully applied at the beginning of the switch.

[0049] The audio processing device determines whether gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V set by the user. This judgment is used to determine whether the target EQ coefficient H1 should be directly applied or a smooth transition should be performed. If gain0(n-1) is equal to 0, it means that the original EQ coefficient H0 has been completely faded out; if gain1(n-1) is equal to the volume value V set by the user, it means that the target EQ coefficient H1 has been completely faded in.

[0050] In some embodiments of the present application, the audio processing device configures its input interface to match the output format and parameters (such as sampling rate, bit depth, number of channels, data format, etc.) of the audio source. One or more buffers are set inside the device to temporarily store the received audio stream data. The size and number of these buffers are usually determined according to the specifications of the chip and the system design requirements. When the audio source starts to send audio stream data, the audio processing chip receives these data through its input interface and writes them into a pre-configured buffer. The data reception process is usually continuous, and the device ensures that there is enough space to store the data before receiving new data to avoid data overflow or loss.

[0051] S205: If yes, generate an output sequence according to the formula y(n)=x(n)*H1*V.

[0052] If the judgment result is yes (i.e., gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V set by the user), the audio processing device will directly apply the target EQ equalization coefficient H1 and the volume value V set by the user to the current audio stream sequence x(n). The multiplication operation y(n)=x(n)*H1*V is performed by an internal DSP (digital signal processor) or similar computing unit, where H1 is the filter coefficient set of the target EQ equalization coefficient and V is the volume value set by the user. The calculated output sequence y(n) is then prepared to be sent to the output interface.

[0053] S206. If not, update gain0(n)=gain0(n-1)-△, gain1(n)=gain1(n-1)+△ according to the formula, and process the current audio stream sequence according to the formula: y(n)=x(n)*(H0*gain0(n)+H1*gain1(n)) to generate an output sequence.

[0054] If the judgment result is no (i.e., gain0(n-1) is not equal to 0 and gain1(n-1) is not equal to the volume value V set by the user), the audio processing device will perform a smooth transition process. First, the values ​​of gain0(n) and gain1(n) are updated according to a preset step size △ (a small positive number used to control the transition speed), so that gain0(n) gradually decreases and gain1(n) gradually increases, so as to achieve a smooth transition from the original EQ equalization coefficient H0 to the target EQ equalization coefficient H1.

[0055] The updated gain0(n) and gain1(n) values ​​are used to calculate the output sequence y(n) of the current audio stream sequence x(n). The audio processing device performs a weighted sum operation y(n)=x(n)*(H0*gain0(n)+H1*gain1(n)) through an internal DSP or similar computing unit, where H0 and H1 are the filter coefficient sets of the original and target EQ equalization coefficients, respectively. The calculated output sequence y(n) is then prepared to be sent to the output interface.

[0056] In some embodiments of the present application, the preset step length △=1 or other values, which can be set by the user according to actual needs.

[0057] S207: Send the generated output sequence through the output interface.

[0058] After generating the output sequence in S205 and S206, the audio processing device will send the generated output sequence y(n) to the subsequent audio playback device or system through its analog or digital output interface. These devices or systems may include speakers, headphones, digital audio players, etc. Through this step, the user can hear the audio content after EQ equalization and volume adjustment. Then the audio processing device continues to monitor the input interface.

[0059] For example, suppose a user is listening to a song and wants to switch from one EQ setting to another. After receiving the switch control signal, the audio processing device first retrieves the original EQ coefficient H0 and the target EQ coefficient H1, as well as the volume value V set by the user (e.g., 70% volume). Then, the audio processing device starts to monitor the audio data from the audio source.

[0060] When receiving the first audio stream sequence x(1), since gain0(1)=V and gain1(1)=0, the audio processing device directly applies the original EQ coefficient H0 and volume value V to x(1) and generates an output sequence y(1). In the following iterations, the audio processing device gradually reduces the value of gain0(n) and increases the value of gain1(n) (the step size of each iteration is △) to achieve a smooth transition from H0 to H1.

[0061] For example, in the second iteration, gain0(2)=gain0(1)-△=V-△, gain1(2)=gain1(1)+△=△. The audio processing device then uses these updated weight values ​​to calculate y(2). This process continues until gain0(n-1) decreases to close to 0 and gain1(n-1) increases to close to V (or reaches a preset threshold). At this point, the audio processing device will directly apply the target EQ equalization coefficient H1 and volume value V to the current audio stream sequence x(n) and generate the final output sequence y(n). In this way, the user can hear smooth and continuous sound effects when switching EQ equalization settings.

[0062] The embodiments of the present application switch the EQ equalization coefficient, and specifically include the following beneficial effects:

[0063] This technical solution achieves a smooth transition from the original EQ coefficient (H0) to the target EQ coefficient (H1) by gradually adjusting two gain values ​​(gain0 and gain1). This smooth switching avoids the abrupt changes that may occur in the audio signal when switching the equalizer, thereby improving the user experience.

[0064] This technical solution allows the user to set a volume value (V) and take this volume value into account when switching the equalizer. This ensures that the volume of the audio signal remains at the user's desired level even during the switching process, further enhancing the consistency and satisfaction of the user experience.

[0065] This technical solution can dynamically adjust the weights of the two equalizer coefficients in the final output by updating the gain values ​​(gain0 and gain1) each time a new audio stream sequence is received. This dynamic adjustment mechanism makes the switching of the equalizer more natural and reduces the auditory discomfort caused by the switching.

[0066] This technical solution monitors data at the input interface and can respond to new audio stream sequences in real time. This flexibility ensures that no matter when the audio signal arrives, the system can immediately process it and generate the corresponding output sequence.

[0067] Based on the current gain value and equalizer coefficient, the scheme can efficiently generate the output sequence. This efficient output generation mechanism ensures real-time processing of audio signals and avoids the degradation of sound quality caused by processing delays.

[0068] This technical solution is based on simple mathematical formulas and logical judgments and is easy to implement in existing audio processing systems. At the same time, because it adopts a modular design concept, it is also easy to expand and modify as needed to adapt to different application scenarios and needs.

[0069] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0070] See also Figure 3 , which shows a schematic diagram of the structure of an audio processing device provided by an exemplary embodiment of the present application, hereinafter referred to as device 3. The device 3 can be implemented as all or part of an audio processing chip through software, hardware or a combination of both. The device 3 includes: a receiving unit 301, an acquiring unit 302, a monitoring unit 303, a judging unit 304, a generating unit 305 and a sending unit 306.

[0071] The receiving unit 301 is used to receive a switching control signal;

[0072] The acquisition unit 302 is used to acquire the original EQ equalization coefficient H0 and the target EQ equalization coefficient H1 to be switched in response to the switching control signal, and acquire the volume value V set by the user;

[0073] A monitoring unit 303, used for monitoring data at an input interface;

[0074] The judging unit 304 is used to judge whether gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V when a current audio stream sequence x(n) is received through the input interface; wherein gain0(1)=V, gain1(1)=0;

[0075] A generating unit 305 is used to generate an output sequence according to the formula y(n)=x(n)*H1*V if the answer is yes; if the answer is no, update gain0(n)=gain0(n-1)-△, gain1(n)=gain1(n-1)+△ according to the formula, and process the current audio stream sequence according to the formula: y(n)=x(n)*(H0*gain0(n)+H1*gain1(n)) to generate an output sequence;

[0076] The sending unit 306 is configured to send the generated output sequence through an output interface.

[0077] In one or more possible embodiments, the preset step size △=1.

[0078] In one or more possible embodiments, the receiving the switching control signal includes:

[0079] A switching control signal generated after a user performs a switching operation on the sound effect control panel is received.

[0080] In one or more possible embodiments, it further includes:

[0081] The adjusting unit is used to change the current volume value based on the volume adjustment operation performed by the user on the sound effect control panel.

[0082] In one or more possible embodiments, obtaining the target EQ equalization coefficient H1 to be switched includes:

[0083] According to the user's selection instruction, the target EQ equalization coefficient H1 to be switched is selected from the preset EQ equalization coefficient set.

[0084] In one or more possible embodiments, the input interface and the output interface are PCM interfaces.

[0085] In one or more possible embodiments, the current audio stream sequence is received through a buffer set by the input interface.

[0086] It should be noted that, when the device 3 provided in the above embodiment executes the switching method of the EQ equalization coefficient, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the audio processing device and the EQ equalization coefficient switching method provided in the above embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0087] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0088] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0089] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the EQ equalization coefficient switching method described in the above embodiments.

[0090] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one input interface 404 , an output interface 403 , a memory 405 , and at least one communication bus 402 .

[0091] The communication bus 402 is used to realize the connection and communication between these components.

[0092] The output interface 403 may include a display screen (Display) and a camera (Camera), and the optional output interface 403 may also include a standard wired interface and a wireless interface.

[0093] The input interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0094] The processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire terminal 400, and executes various functions of the terminal 400 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405.

[0095] Among them, the memory 405 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 405 may optionally be at least one storage device located away from the aforementioned processor 401. As Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.

[0096] exist Figure 4 In the electronic device 400 shown, the processor 401 can be used to call the application stored in the memory 405 and specifically execute the following Figure 2 The specific process can be referred to Figure 2 As shown, no further description is given here.

[0097] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0098] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for switching an EQ equalization coefficient, characterized in that: include: receiving a switching control signal; In response to the switching control signal, an original EQ equalization coefficient H0 is obtained, a target EQ equalization coefficient H1 to be switched is obtained, and a volume value V set by a user is obtained; Monitor data on the input interface; When a current audio stream sequence x(n) is received through the input interface, determining whether gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V; wherein gain0(1)=V, gain1(1)=0; If yes, generate the output sequence according to the formula y(n)=x(n)*H1*V; If not, update gain0(n)=gain0(n-1)-△, gain1(n)=gain1(n-1)+△ according to the formula, and process the current audio stream sequence according to the formula: y(n)=x(n)*(H0*gain0(n)+H1*gain1(n)) to generate the output sequence; Send the generated output sequence through the output interface.

2. The method according to claim 1, characterized in that △=1。 3. The method according to claim 1, characterized in that The receiving of the switching control signal comprises: A switching control signal generated after a user performs a switching operation on the sound effect control panel is received.

4. The method according to claim 3, characterized in that Also includes: The current volume value is changed based on the volume adjustment operation performed by the user on the sound effect control panel.

5. The method according to claim 1, characterized in that The step of obtaining the target EQ equalization coefficient H1 to be switched includes: According to the user's selection instruction, the target EQ equalization coefficient H1 to be switched is selected from the preset EQ equalization coefficient set.

6. The method according to claim 1, characterized in that The input and output interfaces are PCM interfaces.

7. The method according to claim 1, characterized in that Receive the current audio stream sequence through the buffer set by the input interface.

8. An audio processing device, characterized in that: include: A receiving unit, configured to receive a switching control signal; An acquisition unit, configured to acquire an original EQ equalization coefficient H0 and a target EQ equalization coefficient H1 to be switched in response to the switching control signal, and acquire a volume value V set by a user; A monitoring unit, used for monitoring data at an input interface; a judgment unit, configured to judge whether gain0(n-1) is equal to 0 or gain1(n-1) is equal to the volume value V when a current audio stream sequence x(n) is received through the input interface; wherein gain0(1)=V, gain1(1)=0; A generating unit, for, if yes, generating an output sequence according to the formula y(n)=x(n)*H1*V; if no, updating gain0(n)=gain0(n-1)-△, gain1(n)=gain1(n-1)+△ according to the formula, and processing the current audio stream sequence according to the formula: y(n)=x(n)*(H0*gain0(n)+H1*gain1(n)) to generate an output sequence; The sending unit is used to send the generated output sequence through the output interface.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.