CN117835118B - Audio equalization method and device - Google Patents

Audio equalization method and device Download PDF

Info

Publication number
CN117835118B
CN117835118B CN202410255473.XA CN202410255473A CN117835118B CN 117835118 B CN117835118 B CN 117835118B CN 202410255473 A CN202410255473 A CN 202410255473A CN 117835118 B CN117835118 B CN 117835118B
Authority
CN
China
Prior art keywords
gain
data
volume level
compensation
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410255473.XA
Other languages
Chinese (zh)
Other versions
CN117835118A (en
Inventor
刘正华
王明超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chengzi Digital Technology Co ltd
Original Assignee
Shenzhen Chengzi Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Chengzi Digital Technology Co ltd filed Critical Shenzhen Chengzi Digital Technology Co ltd
Priority to CN202410255473.XA priority Critical patent/CN117835118B/en
Publication of CN117835118A publication Critical patent/CN117835118A/en
Application granted granted Critical
Publication of CN117835118B publication Critical patent/CN117835118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

The application discloses an audio equalization method and device, which are characterized in that a plurality of different frequency points are obtained by octave point taking of current audio, then fusion processing is carried out based on gain data of each frequency point under a plurality of volume levels, finally optimal gain data of each frequency point under the volume level corresponding to the current audio is obtained, and the current audio is corrected by adopting the optimal gain data, so that the audio equalization effect is realized. The application can simply, conveniently and quickly acquire the corresponding gains of different frequency bands under each level of volume, thereby solving various problems caused by sharing a group of debugging parameters under full volume.

Description

Audio equalization method and device
Technical Field
The present invention relates to audio signal processing technologies, and in particular, to an audio equalization method and apparatus.
Background
The traditional floor sound box generally needs to meet the performance requirements of sound reproduction by depending on the design allowance of the sound box and the power amplifier, consumer electronic products in the prior art are limited by factors of volume and cost, and generally adopt a digital power amplifier chip integrated digital signal processing technology to optimize and improve sound quality, so that the performance of sound reproduction bandwidth, loudness and the like are ensured. However, considering the physical conditions of the passive loudspeaker and the working principle of the digital processing module such as DRC, various contradictory and mutually restrained index requirements still exist in the debugging process, so that the following defects occur: (1) In order to ensure the low frequency submergence under the small volume, the low frequency needs to be increased by more gain, but the problems of distortion and dynamic compression under the large volume are introduced; (2) In order to ensure the loudness of the product, the signal needs to be subjected to pressure limit lifting, so that the negative EQ effect under high volume is invalid, and the tone is not balanced; (3) The reasons such as the nonlinearity of the corresponding relation between the equal loudness curves and the loudness and the nonlinearity of the loudspeaker under high power can lead to the fact that although the tone quality is optimized by the DSP algorithm, the tone quality of the product still cannot be kept balanced under each volume curve.
Therefore, how to design a method for efficiently and simply optimizing the audio frequency balance degree of the volume is a technical problem to be solved.
Disclosure of Invention
Based on this, it is necessary to provide an audio equalization method and apparatus for solving the existing problems.
In a first aspect, an embodiment of the present application provides an audio equalization method, including the steps of:
dividing a current audio signal to be played into N frequency points through octave point taking, wherein the N frequency points are frequency point 1 and frequency point 2 … … frequency points N respectively;
Acquiring compensation gain data which need to be compensated for the N frequency points under the corresponding volume level Y of the current audio signal according to an equal-loudness curve, wherein the compensation gain data comprises compensation gain 1 and compensation gain 2 … … and compensation gain N;
the lifting gain data of the N frequency points under the maximum volume M and the default gain data under the default volume S are called, wherein the lifting gain data comprise lifting gain 1 and lifting gain 2 … … lifting gain N, and the default gain data comprise default gain 1 and default gain 2 … … default gain N;
gain weighting data corresponding to the N frequency points under the volume level Y are obtained according to the gain compensation data, the lifting gain data and a preset weighting model, wherein the gain weighting data comprises a gain weighting value 1 and a gain weighting value 2 … …;
obtaining optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal according to the gain weighted data, the lifting gain data and a preset gain processing model, wherein the optimal gain data comprises an optimal gain 1 and an optimal gain 2 … … optimal gain N;
And correcting the current audio signal according to the optimal gain data, and outputting the adjusted current audio signal.
Preferably, the obtaining, according to the equal-loudness curve, compensation gain data that needs to be compensated for the N frequency points at the volume level Y corresponding to the current audio signal, where the compensation gain data includes compensation gain 1, compensation gain 2 … …, and compensation gain N includes:
When the volume level is Time,/>
When the volume level isTime,/>
Wherein,Frequency point/>, at volume level YCompensation gain of compensation,/>Is frequency point/>Loudness values corresponding to equal loudness curves at volume level Y,/>Is frequency point/>Loudness values corresponding to equal loudness curves at default volume level S,/>Gain for volume level Y corresponding to volume curve,/>Gain of volume curve corresponding to default volume level S,/>Is frequency point/>Volume level at trigger pressure limit,/>
Preferably, gain weighted data corresponding to N frequency points under the volume Y level is obtained according to the gain compensation data, the boost gain data and a preset weighted model, where the gain weighted data includes a gain weighted value 1 and a gain weighted value 2 … …, and the gain weighted data includes a gain weighted value N:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>Corresponding gain weighting value at volume level Y,/>Is frequency point/>Boost gain at maximum volume level M,/>Is frequency point/>Frequency point/>, at default volume level SCorresponding default gains.
Preferably, according to the gain weighted data, the boost gain data and a preset gain processing model, optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal is obtained, where the optimal gain data includes an optimal gain 1, an optimal gain 2 … …, and an optimal gain N, and includes:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>And the corresponding optimal gain is at the volume level Y of the current audio.
In a second aspect, an embodiment of the present application provides an audio equalization apparatus, including:
the dividing unit divides the current audio signal to be played into N frequency points through octave point taking, wherein the N frequency points are frequency point 1 and frequency point 2 … … frequency points N respectively;
The compensation gain processing unit is used for obtaining compensation gain data which need to be compensated for the N frequency points under the corresponding volume level Y of the current audio signal according to an equal-loudness curve, wherein the compensation gain data comprise compensation gain 1 and compensation gain 2 … … compensation gain N;
The gain calling unit is used for calling the lifting gain data of the N frequency points under the maximum volume M and the default gain data under the default volume S, wherein the lifting gain data comprise lifting gain 1 and lifting gain 2 … … lifting gain N, and the default gain data comprise default gain 1 and default gain 2 … … default gain N;
Gain weighting processing unit, according to the gain compensation data, the boost gain data and a preset weighting model, gain weighting data corresponding to the N frequency points under the volume level Y are obtained, wherein the gain weighting data comprises a gain weighting value 1 and a gain weighting value2 … … and a gain weighting value N;
The optimal gain processing unit is used for obtaining optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal according to the gain weighted data, the lifting gain data and a preset gain processing model, wherein the optimal gain data comprises an optimal gain 1 and an optimal gain 2 … … and an optimal gain N;
And the audio equalization unit corrects the current audio signal according to the optimal gain data and outputs the adjusted current audio signal.
Preferably, the obtaining, according to the equal-loudness curve, compensation gain data that needs to be compensated for the N frequency points at the volume level Y corresponding to the current audio signal, where the compensation gain data includes compensation gain 1, compensation gain 2 … …, and compensation gain N includes:
When the volume level is Time,/>
When the volume level isTime,/>
Wherein,Frequency point/>, at volume level YCompensation gain of compensation,/>Is frequency point/>Loudness values corresponding to equal loudness curves at volume level Y,/>Is frequency point/>Loudness values corresponding to equal loudness curves at default volume level S,/>Gain for volume level Y corresponding to volume curve,/>Gain of volume curve corresponding to default volume level S,/>Is frequency point/>Volume level at trigger pressure limit,/>
Preferably, gain weighted data corresponding to N frequency points under the volume Y level is obtained according to the gain compensation data, the boost gain data and a preset weighted model, where the gain weighted data includes a gain weighted value 1 and a gain weighted value 2 … …, and the gain weighted data includes a gain weighted value N:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>Corresponding gain weighting value at volume level Y,/>Is frequency point/>Boost gain at maximum volume level M,/>Is frequency point/>Frequency point/>, at default volume level SCorresponding default gains.
Preferably, according to the gain weighted data, the boost gain data and a preset gain processing model, optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal is obtained, where the optimal gain data includes an optimal gain 1, an optimal gain 2 … …, and an optimal gain N, and includes:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>And the corresponding optimal gain is at the volume level Y of the current audio.
Preferably, the boost gain data and the default gain data are stored in a memory of the audio equalization device in advance.
In a third aspect, an embodiment of the present application provides an electronic device, including:
A processor;
A memory for storing the processor-executable instructions;
The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method steps described above.
Compared with the prior art, the invention has the following advantages: the method comprises the steps of obtaining a plurality of different frequency points by octave point taking of current audio, then carrying out fusion processing based on gain data of each frequency point under a plurality of volume levels, finally obtaining optimal gain data of each frequency point under the volume level corresponding to the current audio, and correcting the current audio by adopting the optimal gain data, so that the effect of audio equalization is achieved. The invention can simply, conveniently and quickly acquire the corresponding gains of different frequency bands under each level of volume, thereby solving various problems caused by sharing a group of debugging parameters under full volume.
Drawings
Exemplary embodiments of the present application may be more fully understood by reference to the following drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, and not constitute a limitation to the application. In the drawings, like reference numerals generally refer to like parts or steps.
Fig. 1 is a flowchart of an audio equalization method according to an exemplary embodiment of the present application;
fig. 2 is an octave point-taking diagram of an audio equalization method according to an exemplary embodiment of the present application;
FIG. 3 is a graph showing a frequency versus gain curve for an audio equalization method according to an exemplary embodiment of the present application;
FIG. 4 illustrates an isograph of an audio equalization method according to an exemplary embodiment of the present application;
FIG. 5 illustrates a schematic diagram of an electronic device provided in accordance with an exemplary embodiment of the present application;
Fig. 6 shows a schematic diagram of a computer-readable medium according to an exemplary embodiment of the application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
The embodiment of the application provides an audio equalization method and device, and the method and device are described below with reference to the accompanying drawings.
Referring to fig. 1, which illustrates an audio equalization method provided by some embodiments of the present application, as shown in fig. 1, the method may include the steps of:
s101: dividing a current audio signal to be played into N frequency points through octave point taking, wherein the N frequency points are frequency point 1 and frequency point 2 … … frequency points N respectively;
Different dotting modes can be adopted according to the storage size: (1) Taking a frequency point corresponding to a peak EQ (equalizer) under a default volume as the frequency point needing to be corrected: referring to fig. 2, the points selected are: 76,82,100,430,1.3k,4k,8k,10k,15khz. The mode has less frequency points, and has smaller demands on calculation force and storage capacity, but the accuracy is relatively low; (2) In the invention, octave point taking can be performed according to the EQ curve under the default volume, referring to FIG. 3, the drawn EQ curve is set based on EQ values, 31/61/121 points (the more the point is taken, the better the correction effect on tone quality) can be selected in the 10 octaves of 20-20 KHz on the curve according to the octave point taking mode, and finally, frequency selection is performed by combining the set values of an HPF (high pass filter) and an LPF (low pass filter), so that the selected frequency points are ensured to be in the playback range of the passive loudspeaker box.
S102: acquiring compensation gain data which need to be compensated for the N frequency points under the corresponding volume level Y of the current audio signal according to an equal-loudness curve, wherein the compensation gain data comprises compensation gain 1 and compensation gain 2 … … and compensation gain N;
specifically, the compensation gain data is obtained by:
When the volume level is Time,/>
When the volume level isTime,/>
Wherein,Frequency point/>, at volume level YCompensation gain of compensation,/>Is frequency point/>Loudness values corresponding to equal loudness curves at volume level Y,/>Is frequency point/>Loudness values corresponding to equal loudness curves at default volume level S,/>Gain for volume level Y corresponding to volume curve,/>Gain of volume curve corresponding to default volume level S,/>Is frequency point/>Volume level at trigger pressure limit,/>; Referring to fig. 4, the calculation of loudness is obtained from a standard equal loudness curve, the following being an example of calculation:
the default volume S is determined to correspond to the curve of 80dB loudness when SPLxs =85 dB at a value of 100 Hz; let the default volume be 25, i.e. s=25, with corresponding gain/>= -20, And at this time no compression limitation is triggered, i.e./>25; When the volume is reduced to y=17,/>= -30, So the corresponding loudness curve is then 70dB,/>=76dB;
S103: the lifting gain data of the N frequency points under the maximum volume M and the default gain data under the default volume S are called, wherein the lifting gain data comprise lifting gain 1 and lifting gain 2 … … lifting gain N, and the default gain data comprise default gain 1 and default gain 2 … … default gain N;
Specifically, both the boost gain data and the default gain data are stored in advance in the system memory.
S104: gain weighting data corresponding to the N frequency points under the volume level Y are obtained according to the gain compensation data, the lifting gain data and a preset weighting model, wherein the gain weighting data comprises a gain weighting value 1 and a gain weighting value 2 … …;
specifically, the gain weighted data is obtained by:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>Corresponding gain weighting value at volume level Y,/>Is frequency point/>Boost gain at maximum volume level M,/>Is frequency point/>Frequency point/>, at default volume level SCorresponding default gains.
S105: obtaining optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal according to the gain weighted data, the lifting gain data and a preset gain processing model, wherein the optimal gain data comprises an optimal gain 1 and an optimal gain 2 … … optimal gain N;
Specifically, the optimal gain data is obtained by:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>And the corresponding optimal gain is at the volume level Y of the current audio.
S106: and correcting the current audio signal according to the optimal gain data, and outputting the adjusted current audio signal.
After obtaining the optimal gain of each channel under the corresponding volume level Y of the current audio, correcting each frequency point according to the optimal gain data, so that the output audio realizes the equalizing effect.
Compared with the prior art, the invention has the following advantages: the method comprises the steps of obtaining a plurality of different frequency points by octave point taking of current audio, then carrying out fusion processing based on gain data of each frequency point under a plurality of volume levels, finally obtaining optimal gain data of each frequency point under the volume level corresponding to the current audio, and correcting the current audio by adopting the optimal gain data, so that the effect of audio equalization is achieved. The invention can simply, conveniently and quickly acquire the corresponding gains of different frequency bands under each level of volume, thereby solving various problems caused by sharing a group of debugging parameters under full volume.
In the above embodiment, a method is provided, and the application also provides a device corresponding to the method. The device provided by the embodiment of the application can implement the method, and the device can be realized by software, hardware or a combination of the software and the hardware. For example, the apparatus may comprise integrated or separate functional modules or units to perform the corresponding steps in the methods described above.
The apparatus 20 provided by the embodiment of the present application in some implementations of the embodiment of the present application has the same beneficial effects as the method provided by the foregoing embodiment of the present application for the same inventive concept.
As shown in fig. 5, the apparatus 20 may include:
The dividing unit 201 divides the current audio signal to be played into N frequency points through octave point taking, wherein the N frequency points are frequency point 1 and frequency point 2 … … frequency points N respectively;
The compensation gain processing unit 202 obtains compensation gain data which needs to compensate the N frequency points under the corresponding volume level Y of the current audio signal according to an equal-loudness curve, wherein the compensation gain data comprises compensation gain 1 and compensation gain 2 … … and compensation gain N;
The gain extracting unit 203 extracts the boost gain data of the N frequency points at the maximum volume M and the default gain data at the default volume S, where the boost gain data includes a boost gain 1 and a boost gain 2 … … and the default gain data includes a default gain 1 and a default gain 2 … …;
Gain weighting processing unit 204 obtains gain weighting data corresponding to the N frequency points at the volume level Y according to the gain compensation data, the boost gain data and a preset weighting model, where the gain weighting data includes gain weighting value 1 and gain weighting value 2 … … and gain weighting value N;
The optimal gain processing unit 205 obtains optimal gain data of the N frequency points under the volume level Y corresponding to the current audio signal according to the gain weighted data, the boost gain data and a preset gain processing model, where the optimal gain data includes an optimal gain 1 and an optimal gain 2 … …;
The audio equalization unit 206 corrects the current audio signal according to the optimal gain data and outputs the adjusted current audio signal.
The embodiment of the application also provides an electronic device corresponding to the method provided by the previous embodiment, wherein the electronic device can be an electronic device for a server, such as a server, and comprises an independent server, a distributed server cluster and the like, so as to execute the method; the electronic device may also be an electronic device for a client, such as a mobile phone, a notebook computer, a tablet computer, a desktop computer, etc., to perform the above method.
Referring to fig. 6, a schematic diagram of an electronic device according to some embodiments of the present application is shown. As shown in fig. 6, the electronic device 60 includes: a processor 600, a memory 601, a bus 602 and a communication interface 603, the processor 600, the communication interface 603 and the memory 601 being connected by the bus 602; the memory 601 stores a computer program executable on the processor 600, which processor 600 executes the method according to the application.
The memory 601 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 603 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 602 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 601 is configured to store a program, and the processor 600 executes the program after receiving an execution instruction, where the method disclosed in any of the foregoing embodiments of the present application may be applied to the processor 600 or implemented by the processor 600.
The processor 600 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware or instructions in software in processor 600. The processor 600 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 601 and the processor 600 reads the information in the memory 601 and performs the steps of the method described above in combination with its hardware.
The electronic device provided by the embodiment of the application and the method provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the electronic device and the method provided by the embodiment of the application due to the same inventive concept.
It is noted that the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application, and are intended to be included within the scope of the appended claims and description.

Claims (6)

1. An audio equalization method, comprising the steps of:
dividing a current audio signal to be played into N frequency points through octave point taking, wherein the N frequency points are frequency point 1 and frequency point 2 … … frequency points N respectively;
Acquiring compensation gain data which need to be compensated for the N frequency points under the corresponding volume level Y of the current audio signal according to an equal-loudness curve, wherein the compensation gain data comprises compensation gain 1 and compensation gain 2 … … and compensation gain N;
the lifting gain data of the N frequency points under the maximum volume M and the default gain data under the default volume S are called, wherein the lifting gain data comprise lifting gain 1 and lifting gain 2 … … lifting gain N, and the default gain data comprise default gain 1 and default gain 2 … … default gain N;
Gain weighted data corresponding to the N frequency points under the volume level Y are obtained according to the compensation gain data, the lifting gain data and a preset weighted model, wherein the gain weighted data comprises a gain weighted value 1 and a gain weighted value 2 … …;
obtaining optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal according to the gain weighted data, the lifting gain data and a preset gain processing model, wherein the optimal gain data comprises an optimal gain 1 and an optimal gain 2 … … optimal gain N;
correcting the current audio signal according to the optimal gain data, and outputting the adjusted current audio signal;
According to the compensation gain data, the boost gain data and a preset weighting model, gain weighting data corresponding to the N frequency points under the volume Y level are obtained, and the method comprises the following steps:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>Corresponding gain weighting value at volume level Y,/>Is frequency point/>Boost gain at maximum volume level M,/>Is frequency point/>Frequency point/>, at default volume level SCorresponding default gain,/>Gain of volume curve corresponding to default volume level S,/>Is frequency point/>Volume level at trigger pressure limit,/>
The obtaining the optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal according to the gain weighted data, the boost gain data and a preset gain processing model includes:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>Corresponding optimal gain at volume level Y of the current audio,/>Frequency point/>, at volume level YCompensating gain of compensation.
2. The method according to claim 1, wherein the obtaining compensation gain data for the N frequency points to be compensated at the volume level Y corresponding to the current audio signal according to the equal loudness curve, the compensation gain data including a compensation gain 1, a compensation gain 2 … …, and a compensation gain N includes:
When the volume level is Time,/>
When the volume level isTime,/>
Wherein,Is frequency point/>Loudness values corresponding to equal loudness curves at volume level Y,/>Is frequency point/>Loudness values corresponding to equal loudness curves at default volume level S,/>The gain of the volume level Y corresponds to the volume curve.
3. An audio equalization apparatus, comprising:
the dividing unit divides the current audio signal to be played into N frequency points through octave point taking, wherein the N frequency points are frequency point 1 and frequency point 2 … … frequency points N respectively;
The compensation gain processing unit is used for obtaining compensation gain data which need to be compensated for the N frequency points under the corresponding volume level Y of the current audio signal according to an equal-loudness curve, wherein the compensation gain data comprise compensation gain 1 and compensation gain 2 … … compensation gain N;
The gain calling unit is used for calling the lifting gain data of the N frequency points under the maximum volume M and the default gain data under the default volume S, wherein the lifting gain data comprise lifting gain 1 and lifting gain 2 … … lifting gain N, and the default gain data comprise default gain 1 and default gain 2 … … default gain N;
Gain weighting processing unit, according to the compensation gain data, the boost gain data and a preset weighting model, gain weighting data corresponding to the N frequency points under the volume level Y are obtained, wherein the gain weighting data comprises a gain weighting value 1 and a gain weighting value2 … … and a gain weighting value N;
The optimal gain processing unit is used for obtaining optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal according to the gain weighted data, the lifting gain data and a preset gain processing model, wherein the optimal gain data comprises an optimal gain 1 and an optimal gain 2 … … and an optimal gain N;
An audio equalization unit correcting the current audio signal according to the optimal gain data and outputting the adjusted current audio signal;
According to the compensation gain data, the boost gain data and a preset weighting model, gain weighting data corresponding to the N frequency points under the volume Y level are obtained, and the method comprises the following steps:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>Corresponding gain weighting value at volume level Y,/>Is frequency point/>Boost gain at maximum volume level M,/>Is frequency point/>Frequency point/>, at default volume level SCorresponding default gain,/>Gain of volume curve corresponding to default volume level S,/>Is frequency point/>Volume level at trigger pressure limit,/>
The obtaining the optimal gain data of the N frequency points under the corresponding volume level Y of the current audio signal according to the gain weighted data, the boost gain data and a preset gain processing model includes:
When (when) Time,/>
When (when)Time,/>
Wherein,Is frequency point/>Corresponding optimal gain at volume level Y of the current audio,/>Frequency point/>, at volume level YCompensating gain of compensation.
4. The apparatus of claim 3, wherein the obtaining compensation gain data for the N frequency points to be compensated for at the volume level Y corresponding to the current audio signal according to the equal loudness curve, the compensation gain data including a compensation gain 1, a compensation gain 2 … …, and a compensation gain N includes:
When the volume level is Time,/>
When the volume level isTime,/>
Wherein,Is frequency point/>Loudness values corresponding to equal loudness curves at volume level Y,/>Is frequency point/>Loudness values corresponding to equal loudness curves at default volume level S,/>The gain of the volume level Y corresponds to the volume curve.
5. The apparatus of claim 4, wherein the boost gain data and the default gain data are pre-stored in a memory of an audio equalization device.
6. An electronic device, the electronic device comprising:
A processor;
A memory for storing the processor-executable instructions;
the processor being configured to read the executable instructions from the memory and execute the executable instructions to implement the method steps of one of claims 1-2.
CN202410255473.XA 2024-03-06 2024-03-06 Audio equalization method and device Active CN117835118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410255473.XA CN117835118B (en) 2024-03-06 2024-03-06 Audio equalization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410255473.XA CN117835118B (en) 2024-03-06 2024-03-06 Audio equalization method and device

Publications (2)

Publication Number Publication Date
CN117835118A CN117835118A (en) 2024-04-05
CN117835118B true CN117835118B (en) 2024-05-17

Family

ID=90517737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410255473.XA Active CN117835118B (en) 2024-03-06 2024-03-06 Audio equalization method and device

Country Status (1)

Country Link
CN (1) CN117835118B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986636A (en) * 2010-11-19 2011-03-16 中兴通讯股份有限公司 Despiking coefficient update method and device suitable for frequency hopping and power fluctuation system
WO2021238458A1 (en) * 2020-05-29 2021-12-02 安克创新科技股份有限公司 Method for optimizing sound quality of speaker device
CN116980804A (en) * 2023-09-25 2023-10-31 腾讯科技(深圳)有限公司 Volume adjustment method, device, equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116546386A (en) * 2022-01-26 2023-08-04 瑞声光电科技(常州)有限公司 In-vehicle self-adaptive tone quality output method and device, storage medium and vehicle-mounted sound system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986636A (en) * 2010-11-19 2011-03-16 中兴通讯股份有限公司 Despiking coefficient update method and device suitable for frequency hopping and power fluctuation system
WO2021238458A1 (en) * 2020-05-29 2021-12-02 安克创新科技股份有限公司 Method for optimizing sound quality of speaker device
CN116980804A (en) * 2023-09-25 2023-10-31 腾讯科技(深圳)有限公司 Volume adjustment method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN117835118A (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US10687155B1 (en) Systems and methods for providing personalized audio replay on a plurality of consumer devices
CN105245195B (en) For the technology of distortion reduction multiband compressor reducer protected with sound quality
US20100215192A1 (en) Method and device for extension of low frequency output from a loudspeaker
US11134353B2 (en) Customized audio processing based on user-specific and hardware-specific audio information
JP6785907B2 (en) How to arrange wireless speakers, wireless speakers and terminal devices
CN111970628A (en) Audio signal enhancement method, device, storage medium and processor
WO2021238458A1 (en) Method for optimizing sound quality of speaker device
US20220358941A1 (en) Audio encoding and decoding method and audio encoding and decoding device
CN113949968A (en) Frequency response correction method, electronic equipment and signal processing method
US20150365061A1 (en) System and method for modifying an audio signal
CN117835118B (en) Audio equalization method and device
CN113613123A (en) Audio data processing method and device, earphone and storage medium
CN101422054B (en) Sound image localization apparatus
CN104168000A (en) Audio processing system and method
CN113613122B (en) Volume adjusting method, volume adjusting device, earphone and storage medium
CN115375518A (en) Abnormal paging method and related device
US20210384879A1 (en) Acoustic signal processing device, acoustic signal processing method, and non-transitory computer-readable recording medium therefor
US7974421B2 (en) Audio signal processing method and related device
CN211352437U (en) Audio output device and electronic equipment
CN112187204A (en) Electronic device and equalizer adjusting method thereof according to volume
US7965852B2 (en) Audio signal processing method and apparatus
US20190132677A1 (en) Signal processing device, signal processing method, and speaker device
WO2021215025A1 (en) Control device, control method, and program
TW201445878A (en) Audio processing system and method
KR102108513B1 (en) Audio processing system and method for compensating phase interference

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant