Audio signal processing method and processing apparatus, computer readable storage medium
Patent Information
- Application Number
- CN202611163586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-10-27
AI Technical Summary
[0003]本申请提供一种音频信号处理方法和处理装置、计算机可读存储介质,以解决相关技术中在整个频段都对音频信号采用固定增益的调节,导致输出的音频信号质量不佳的技术问题
[0015]通过上述第一方面提供的音频信号处理方法,首先获取当前输入的音频信号的频率;然后根据所述音频信号的频率确定所述音频信号所属的频率区间;最后根据所述音频信号所属的频率区间,确定对应的音频调节策略,采用对应的音频调节策略对所述音频信号的有效值或者峰值进行调节。这样,可以根据输入的音频信号的频率采用不同的音频调节策略对音频信号的有效值或者峰值进行调节,在保证输入的音频信号不会对扬声器造成损坏的同时,保证输出的音频信号的质量,从而保证输出的音质。
Smart Images

Figure CN122994677A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio signal processing technology, and in particular to an audio signal processing method and processing apparatus, and a computer-readable storage medium. Background Technology
[0002] In the audio field, the power of the audio signal output by an audio system often exceeds the rated power of the speaker. If the power of the output audio signal is not limited, the overloaded audio signal can damage the speaker. Therefore, it is necessary to adjust the power of the output audio signal. Related technologies typically employ Automatic Power Control (APC) to adjust the power of the output audio signal. This usually involves a fixed gain adjustment across the entire frequency band to ensure that the peak value of the audio signal is reduced to a preset threshold range, thus preventing damage to the speaker. However, as the frequency of the output audio signal changes, the impedance and displacement of the speaker also change. Therefore, if a fixed gain adjustment is applied across the entire frequency band, the quality of the output audio signal will be poor. Summary of the Invention
[0003] This application provides an audio signal processing method and processing apparatus, and a computer-readable storage medium, to solve the technical problem in the related art that the fixed gain adjustment of the audio signal across the entire frequency band results in poor quality of the output audio signal.
[0004] In a first aspect, this application provides an audio signal processing method, the audio signal processing method comprising: Get the frequency of the currently input audio signal; The frequency range to which the audio signal belongs is determined based on the frequency of the audio signal; Based on the frequency range to which the audio signal belongs, a corresponding audio adjustment strategy is determined, and the effective value or peak value of the audio signal is adjusted using the corresponding audio adjustment strategy.
[0005] In one possible design of this application, the audio signal processing method further includes: dividing the frequency range of the audio signal into at least two frequency intervals based on the relationship between the frequency of the audio signal and the speaker displacement, and the relationship between the frequency of the audio signal and the speaker impedance.
[0006] In one possible design of this application, determining the frequency range to which the audio signal belongs based on the frequency of the audio signal includes: When the frequency of the audio signal is 0-200Hz, the frequency range to which the audio signal belongs is determined to be the first frequency range; When the frequency of the audio signal is 200-10kHz, the frequency range to which the audio signal belongs is determined to be the second frequency range; When the frequency of the audio signal is greater than or equal to 10kHz, the frequency range to which the audio signal belongs is determined to be the third frequency range.
[0007] In one possible design of this application, determining the corresponding audio adjustment strategy based on the frequency range to which the audio signal belongs includes: When the frequency range to which the audio signal belongs is determined to be the first frequency range, the effective value or peak value of the audio signal is compressed using the first gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the second frequency range, the effective value or peak value of the audio signal is compressed using the second gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the third frequency range, the audio signal is not compressed. Wherein, the first gain adjustment parameter is smaller than the second gain adjustment parameter.
[0008] In one possible design of this application, the audio signal processing method further includes: after adjusting the effective value or peak value of the audio signal using a corresponding audio adjustment strategy, sending the adjusted audio signal to a speaker.
[0009] Secondly, this application also provides an audio signal processing apparatus, the audio signal processing apparatus comprising: An audio signal acquisition unit is used to acquire the frequency of the currently input audio signal; A frequency division unit is used to determine the frequency range to which the audio signal belongs based on the frequency of the audio signal. An audio signal conditioning unit is used to determine a corresponding audio conditioning strategy based on the frequency range to which the audio signal belongs, and to adjust the effective value or peak value of the audio signal using the corresponding audio conditioning strategy.
[0010] In one possible design of this application, the audio signal processing device further includes: The frequency range division unit is used to divide the frequency range of an audio signal into at least two frequency ranges based on the relationship between the frequency of the audio signal and the speaker displacement, and the relationship between the frequency of the audio signal and the speaker impedance.
[0011] In one possible design of this application, determining the frequency range to which the audio signal belongs based on the frequency of the audio signal includes: When the frequency of the audio signal is 0-200Hz, the frequency range to which the audio signal belongs is determined to be the first frequency range; When the frequency of the audio signal is 200-10kHz, the frequency range to which the audio signal belongs is determined to be the second frequency range; When the frequency of the audio signal is greater than or equal to 10kHz, the frequency range to which the audio signal belongs is determined to be the third frequency range.
[0012] In one possible design of this application, determining the corresponding audio adjustment strategy based on the frequency range to which the audio signal belongs includes: When the frequency range to which the audio signal belongs is determined to be the first frequency range, the effective value or peak value of the audio signal is compressed using the first gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the second frequency range, the effective value or peak value of the audio signal is compressed using the second gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the third frequency range, the audio signal is not compressed. Wherein, the first gain adjustment parameter is smaller than the second gain adjustment parameter.
[0013] Thirdly, this application also provides a computer-readable storage medium storing a computer program that, when run on a processor, executes the audio signal processing method described in any of the preceding claims.
[0014] Fourthly, this application also provides a computer program product comprising: computer program code, which, when executed on a computer, causes the computer to perform the audio signal processing method as described in any of the preceding claims.
[0015] The audio signal processing method provided in the first aspect above first obtains the frequency of the currently input audio signal; then, it determines the frequency range to which the audio signal belongs based on the frequency; finally, it determines a corresponding audio adjustment strategy based on the frequency range to which the audio signal belongs, and uses the corresponding audio adjustment strategy to adjust the effective value or peak value of the audio signal. In this way, different audio adjustment strategies can be used to adjust the effective value or peak value of the audio signal according to the frequency of the input audio signal, ensuring that the input audio signal does not damage the speaker while guaranteeing the quality of the output audio signal, thereby ensuring the output sound quality.
[0016] The beneficial effects provided by the other aspects and the various possible designs of the other aspects can be found in the beneficial effects of the first aspect and the various possible implementations of the first aspect, and will not be repeated here. Attached Figure Description
[0017] Figure 1 This is a schematic diagram illustrating the use of an APC module to adjust audio signals in related technologies. Figure 2 A schematic diagram illustrating the relationship between the displacement of the loudspeaker and the frequency of the audio signal, provided in an embodiment of this application; Figure 3 A schematic diagram illustrating the relationship between the impedance of a loudspeaker and the frequency of an audio signal, provided in an embodiment of this application; Figure 4 This is a schematic flowchart of an audio signal processing method provided in an embodiment of this application; Figure 5 This is a schematic diagram of the audio signal adjustment process provided in an embodiment of this application; Figure 6 This is a schematic diagram of the audio signal processing device provided in an embodiment of this application. Detailed Implementation
[0018] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c alone can mean: a alone, b alone, c alone, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0019] The terms “center,” “longitudinal,” “lateral,” “up,” “down,” “left,” “right,” “front,” and “rear,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0020] The terms "connected" and "connected" should be interpreted broadly. For example, in circuit structures, "connected" or "connected" can refer not only to physical connections but also to electrical or signal connections. This could be a direct connection (physical connection) or an indirect connection via at least one intermediate component, as long as the circuit is connected. It could also refer to the internal connection between two components. Similarly, a signal connection can refer to a connection via a circuit or a medium, such as radio waves. Those skilled in the art will understand the specific meaning of these terms in this application based on the specific circumstances.
[0021] In professional audio engineering, the profound significance of APC adjustment lies in establishing a dynamic balance between "physical safety" and "auditory experience." This can be understood from several dimensions: Preventing thermal failure and mechanical fatigue: Speaker damage primarily stems from two causes—overheating (burnout) of the voice coil and over-extension (tearing) of the diaphragm. APC calculates the speaker's true power consumption by monitoring the output current and voltage phase in real time, and immediately attenuates the gain once it approaches its physical limits. This is faster and more precise than passively relying on fuses or thermistors. Adapting to power supply fluctuations: In portable devices (such as Bluetooth speakers), battery voltage decreases as the battery level drops. APC dynamically adjusts the power output to ensure that insufficient power supply prevents the amplifier from entering a "clipping" state at low battery levels, thus avoiding direct burnout of the voice coil due to the DC component generated by clipping. A simple limiter can produce a "hard knee" effect at the threshold point, resulting in a muffled or tight sound. The advanced significance of APC adjustment lies in: Preserving transient details: APC typically employs slow-start, fast-release, or adaptive-release strategies. Faced with sudden drumbeats or explosions, it reacts quickly without "killing off" the attack, maintaining the impact of the sound. After the strong signal subsides, it quickly restores the volume, avoiding the abrupt "dropping" and "rising" sound (breathing effect). It compensates for the equal loudness curve of the human ear: at low volumes, the human ear is insensitive to low and extremely high frequencies. The advanced APC algorithm, combined with a psychoacoustic model, appropriately boosts the EQ gain of low and high frequencies while limiting the total power, ensuring the music remains full at low volumes (i.e., loudness balance), rather than simply "suppressing the sound."
[0022] In the audio field, the power of the audio signal output by an audio system often exceeds the power of the speaker. If the power (or amplitude) of the output audio signal is not limited, the overloaded audio signal can damage the speaker. Audio power amplifiers with Automatic Power Control (APC) can effectively protect the speaker. When the power of the output audio signal does not exceed a set threshold, the hardware APC module will not adjust the audio signal gain; when the output audio signal exceeds the set threshold, the hardware APC module will gradually adjust the gain until the output signal reaches the set threshold.
[0023] Figure 1 For a schematic diagram of audio signal adjustment using an APC module in related technologies, please refer to [link / reference]. Figure 1 As shown, when APC adjustment is not performed on the input audio signal, the peak value of the input audio signal is relatively large, which may damage the speaker and affect its lifespan. However, when APC adjustment is enabled, the peak value of the input audio signal can be adjusted to a preset threshold range, thus preventing damage to the speaker.
[0024] While APC modulation technology can adjust the power (also called amplitude) of the input audio signal, it simulates the speaker impedance based on an inductor and resistor connected in series. Therefore, it only considers the effect of the RMS / peak value on the audio power. However, the actual speaker impedance and displacement will change with the frequency of the input signal. Figure 2 For a schematic diagram illustrating the relationship between the speaker displacement and the frequency of the audio signal provided in this application embodiment, please refer to [link / reference]. Figure 2 As shown, it can be seen that the frequency of the input audio signal and the displacement of the speaker are not linearly or positively correlated. When the frequency of the input audio signal is between 0 and 60 Hz, the displacement of the speaker gradually decreases as the frequency of the audio signal increases. Then, when the frequency of the input audio signal is between 60 and 100 Hz, the displacement of the speaker gradually increases as the frequency of the audio signal increases. When the frequency of the input audio signal is greater than 100 Hz, the displacement of the speaker gradually decreases as the frequency of the audio signal increases. Figure 3 For a schematic diagram illustrating the relationship between the impedance of the loudspeaker and the frequency of the audio signal provided in this application embodiment, please refer to [link / reference]. Figure 3As shown, the relationship between the frequency of the input audio signal and the impedance of the speaker is not linear or positively correlated. When the frequency of the input audio signal is between 0 and 110 Hz, the impedance of the speaker increases rapidly with increasing frequency. Then, when the frequency of the input audio signal is between 110 and 5000 Hz, the impedance of the speaker gradually decreases with increasing frequency. When the frequency of the input audio signal is greater than 5000 Hz, the impedance of the speaker gradually increases again with increasing frequency. Therefore, it is evident that the displacement and impedance of the speaker change continuously with the frequency of the audio signal, rather than remaining constant. Furthermore, the magnitude of these changes is significant, thus greatly affecting the adjustment of the audio signal.
[0025] Related technologies use fixed impedance and fixed gain adjustment to regulate the input audio signal, ensuring that the peak value of the audio signal is reduced to a preset threshold range, thus preventing damage to the speaker. However, as the frequency of the output audio signal changes, the impedance and displacement of the speaker also change. Therefore, if a fixed gain adjustment is applied to the audio signal across the entire frequency range, the quality of the output audio signal will be poor. Furthermore, if the audio signal is compressed based on the effective value / peak value of the input audio signal at high frequencies, the audio signal output from the speaker will lack depth and brightness, also resulting in poor output audio signal quality.
[0026] This application analyzes the shortcomings of related technologies. APC control only limits the amplitude of the input signal. However, at high frequencies, such as when the input audio signal frequency is greater than 1kHz, the speaker displacement is very small. Therefore, even without APC control, the speaker will not be damaged when the input audio signal is high-frequency. When the input audio signal frequency is greater than 1kHz, the speaker impedance is very high, and the speaker loss is also very low when APC control is stopped, so the speaker will not be damaged. In addition, in some high-frequency-dominant audio, if APC compresses the input high-frequency audio signal, it will degrade the high-frequency sound quality and cause the sound to lose brightness and layering.
[0027] To overcome the shortcomings of the aforementioned related technologies, this application provides an audio signal processing method. First, the frequency of the currently input audio signal is acquired; then, the frequency range to which the audio signal belongs is determined based on the frequency; finally, a corresponding audio adjustment strategy is determined based on the frequency range to which the audio signal belongs, and the effective value or peak value of the audio signal is adjusted using the corresponding audio adjustment strategy. In this way, different audio adjustment strategies can be used to adjust the effective value or peak value of the audio signal according to the frequency of the input audio signal, ensuring that the input audio signal does not damage the speaker while guaranteeing the quality of the output audio signal, thereby ensuring the output sound quality.
[0028] Specifically, this embodiment proposes a frequency-band APC control strategy. Different APC compression thresholds are applied when the input audio signal is low-frequency or mid-frequency. Without exceeding speaker displacement and power consumption, the audio compression is kept at the optimal threshold, thus preventing speaker damage while maintaining the best sound quality. The audio signal is released in the high-frequency band, meaning no compression is applied to the input audio signal. This protects the speaker from damage while resulting in a brighter sound and improved sound quality layering.
[0029] Figure 4 For a schematic flowchart of the audio signal processing method provided in the embodiments of this application, please refer to [link / reference]. Figure 4 As shown, the audio signal processing method provided in this embodiment includes: S401. Obtain the frequency of the currently input audio signal.
[0030] In one embodiment of this application, the frequency of the currently input audio signal is first determined. Specifically, a frequency crossover can be used to determine which frequency range the current input audio signal falls within. The crossover uses an LC filter network (a combination of capacitor high-pass, inductor low-pass, and band-pass filters) to divide the input signal into specific frequency bands such as high, mid, and low frequencies, which drive dedicated speaker units respectively, thus avoiding damage to the tweeter unit by high-energy low frequencies or interference with the clarity of bass by high-frequency signals.
[0031] S402. Determine the frequency range of the audio signal based on its frequency.
[0032] In one embodiment of this application, the frequency range of the audio signal is divided into at least two frequency intervals based on the relationship between the frequency of the audio signal and the speaker displacement, and the relationship between the frequency of the audio signal and the speaker impedance. Different gain parameters are used to adjust the audio signal for each frequency interval.
[0033] In one embodiment of this application, determining the frequency range to which the audio signal belongs based on the frequency of the audio signal includes: When the frequency of the audio signal is 0-200Hz, the frequency range to which the audio signal belongs is determined to be the first frequency range; when the frequency of the audio signal is 200-10kHz, the frequency range to which the audio signal belongs is determined to be the second frequency range; when the frequency of the audio signal is greater than or equal to 10kHz, the frequency range to which the audio signal belongs is determined to be the third frequency range.
[0034] S403. Based on the frequency range to which the audio signal belongs, determine the corresponding audio adjustment strategy, and use the corresponding audio adjustment strategy to adjust the effective value or peak value of the audio signal.
[0035] In one embodiment of this application, determining the corresponding audio adjustment strategy based on the frequency range to which the audio signal belongs specifically includes: When the frequency range to which the audio signal belongs is determined to be the first frequency range, the effective value or peak value of the audio signal is compressed using the first gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the second frequency range, the effective value or peak value of the audio signal is compressed using the second gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the third frequency range, the audio signal is not compressed. Wherein, the first gain adjustment parameter is smaller than the second gain adjustment parameter, that is, when the frequency range to which the audio signal belongs is the first frequency range, the effective value or peak value of the audio signal is compressed to a greater extent.
[0036] Figure 5 For a schematic diagram of the audio signal adjustment process provided in the embodiments of this application, please refer to [link / reference]. Figure 5As shown, before receiving a signal, the APC module first uses a frequency divider to determine the different frequencies of the input signal. When the input audio signal is detected to be in the low frequency range of 0~200Hz, the effective value or peak value of the input signal is detected, and the input audio signal is compressed to RMS1 (i.e., the first effective value) or PEAK1 (i.e., the first peak value), and then output through the APC1 module. Similarly, when the input audio signal is detected to be in the range of 200~10kHz, the input audio signal is compressed to RMS2 (i.e., the second effective value) or PEAK2 (i.e., the second peak value), and then output through the APC2 module. If the input signal is greater than 10kHz, the APC module is not activated to process the audio signal. In the 200~10kHz mid-frequency range, the speaker displacement is approximately 0.1~0.5mm, and the impedance is 5~10 ohms. Assuming the peak input audio signal is 10V and the speaker's rated power is 1W, the peak input audio signal needs to be compressed to 2V. In the 0~200Hz low-frequency range, the speaker displacement is approximately 0.5~0.8mm, and the impedance is 8~60 ohms. The peak input audio signal needs to be compressed to 2.5V. In the high-frequency range above 10kHz, the speaker displacement is less than 0.1mm, and the impedance is greater than 15 ohms. During high frequencies below 1 minute, the APC module will not be activated, and the speaker will not be damaged.
[0037] In one embodiment of this application, it is assumed that the input signal is a music signal with a frequency range of 0-12kHz; The input music signal is processed by a crossover to obtain mid / low frequency and high frequency signals. When the frequency of the music signal is detected to be between 0-200Hz, the APC1 module detects the effective value (also called RMS value) or peak value of this frequency band, determines the speaker protection threshold based on the speaker displacement and impedance, and sets the adjustment gain gain1 to -6dB based on the protection threshold (different speakers have different displacement and impedance). Then, the APC1 module is activated to compress the audio signal of this frequency band according to the set gain gain1. When the frequency of the music signal is detected to be between 200-10kHz, the APC2 module detects the effective value or peak value of this frequency band, determines the speaker protection threshold based on the speaker displacement and impedance, and sets the adjustment gain gain2 to -3dB based on the protection threshold (different speakers have different displacement and impedance). Then, the APC2 module is activated to compress the audio signal of this frequency band according to the set gain gain2. When the frequency of the music signal is detected to be greater than -10kHz, no compression processing is performed on the audio signal, and the high-frequency music signal is released, that is, the audio signal is directly output to the speaker.
[0038] In one embodiment of this application, the audio signal processing method further includes: after adjusting the effective value or peak value of the audio signal using a corresponding audio adjustment strategy, sending the adjusted audio signal to a speaker, and the speaker can play the adjusted audio signal.
[0039] The following provides an audio signal processing apparatus, which can be understood in conjunction with the audio signal processing methods provided in the above embodiments.
[0040] This application also provides an audio signal processing device. Figure 6 For a schematic diagram of the audio signal processing device provided in the embodiments of this application, please refer to [link / reference]. Figure 6 As shown, the audio signal processing device includes: The audio signal acquisition unit 601 is used to acquire the frequency of the currently input audio signal; The frequency division unit 602 is used to determine the frequency range to which the audio signal belongs based on the frequency of the audio signal. The audio signal adjustment unit 603 is used to determine the corresponding audio adjustment strategy according to the frequency range to which the audio signal belongs, and to adjust the effective value or peak value of the audio signal using the corresponding audio adjustment strategy.
[0041] In one embodiment of this application, the audio signal processing device further includes: The frequency range division unit is used to divide the frequency range of an audio signal into at least two frequency ranges based on the relationship between the frequency of the audio signal and the speaker displacement, and the relationship between the frequency of the audio signal and the speaker impedance.
[0042] In one embodiment of this application, determining the frequency range to which the audio signal belongs based on the frequency of the audio signal includes: When the frequency of the audio signal is 0-200Hz, the frequency range to which the audio signal belongs is determined to be the first frequency range; When the frequency of the audio signal is 200-10kHz, the frequency range to which the audio signal belongs is determined to be the second frequency range; When the frequency of the audio signal is greater than or equal to 10kHz, the frequency range to which the audio signal belongs is determined to be the third frequency range.
[0043] In one embodiment of this application, determining the corresponding audio adjustment strategy based on the frequency range to which the audio signal belongs includes: When the frequency range to which the audio signal belongs is determined to be the first frequency range, the effective value or peak value of the audio signal is compressed using the first gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the second frequency range, the effective value or peak value of the audio signal is compressed using the second gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the third frequency range, the audio signal is not compressed. Wherein, the first gain adjustment parameter is smaller than the second gain adjustment parameter.
[0044] This application also provides a computer-readable storage medium storing a computer program that, when run on a processor, executes the audio signal processing method described in any of the above claims.
[0045] This application also provides a computer program product, which includes computer program code that, when run on a computer, causes the computer to execute any of the audio signal processing methods described above.
[0046] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive (SSD).
[0047] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the embodiments of this application.
[0048] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0049] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only 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 devices or units may be electrical, mechanical, or other forms.
[0050] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0051] In addition, 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.
[0052] If the aforementioned function 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 embodiment, essentially, or the part that contributes to the prior art, or a 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 memory (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0053] Finally, it should be noted that the above embodiments are merely specific implementations of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An audio signal processing method, characterized in that, The audio signal processing method includes: Get the frequency of the currently input audio signal; The frequency range to which the audio signal belongs is determined based on the frequency of the audio signal; Based on the frequency range to which the audio signal belongs, a corresponding audio adjustment strategy is determined, and the effective value or peak value of the audio signal is adjusted using the corresponding audio adjustment strategy.
2. The audio signal processing method according to claim 1, characterized in that, The audio signal processing method further includes: dividing the frequency range of the audio signal into at least two frequency intervals based on the relationship between the frequency of the audio signal and the speaker displacement, and the relationship between the frequency of the audio signal and the speaker impedance.
3. The audio signal processing method according to claim 1, characterized in that, Determining the frequency range to which the audio signal belongs based on its frequency includes: When the frequency of the audio signal is 0-200Hz, the frequency range to which the audio signal belongs is determined to be the first frequency range; When the frequency of the audio signal is 200-10kHz, the frequency range to which the audio signal belongs is determined to be the second frequency range; When the frequency of the audio signal is greater than or equal to 10kHz, the frequency range to which the audio signal belongs is determined to be the third frequency range.
4. The audio signal processing method according to claim 2, characterized in that, The step of determining the corresponding audio adjustment strategy based on the frequency range to which the audio signal belongs includes: When the frequency range to which the audio signal belongs is determined to be the first frequency range, the effective value or peak value of the audio signal is compressed using the first gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the second frequency range, the effective value or peak value of the audio signal is compressed using the second gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the third frequency range, the audio signal is not compressed. Wherein, the first gain adjustment parameter is smaller than the second gain adjustment parameter.
5. The audio signal processing method according to claim 1, characterized in that, The audio signal processing method further includes: after adjusting the effective value or peak value of the audio signal using a corresponding audio adjustment strategy, sending the adjusted audio signal to the speaker.
6. An audio signal processing device, characterized in that, The audio signal processing device includes: An audio signal acquisition unit is used to acquire the frequency of the currently input audio signal; A frequency division unit is used to determine the frequency range to which the audio signal belongs based on the frequency of the audio signal. An audio signal conditioning unit is used to determine a corresponding audio conditioning strategy based on the frequency range to which the audio signal belongs, and to adjust the effective value or peak value of the audio signal using the corresponding audio conditioning strategy.
7. The audio signal processing apparatus according to claim 6, characterized in that, The audio signal processing device further includes: The frequency range division unit is used to divide the frequency range of an audio signal into at least two frequency ranges based on the relationship between the frequency of the audio signal and the speaker displacement, and the relationship between the frequency of the audio signal and the speaker impedance.
8. The audio signal processing apparatus according to claim 7, characterized in that, Determining the frequency range to which the audio signal belongs based on its frequency includes: When the frequency of the audio signal is 0-200Hz, the frequency range to which the audio signal belongs is determined to be the first frequency range; When the frequency of the audio signal is 200-10kHz, the frequency range to which the audio signal belongs is determined to be the second frequency range; When the frequency of the audio signal is greater than or equal to 10kHz, the frequency range to which the audio signal belongs is determined to be the third frequency range.
9. The audio signal processing apparatus according to claim 7, characterized in that, The step of determining the corresponding audio adjustment strategy based on the frequency range to which the audio signal belongs includes: When the frequency range to which the audio signal belongs is determined to be the first frequency range, the effective value or peak value of the audio signal is compressed using the first gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the second frequency range, the effective value or peak value of the audio signal is compressed using the second gain adjustment parameter. When the frequency range to which the audio signal belongs is determined to be the third frequency range, the audio signal is not compressed. Wherein, the first gain adjustment parameter is smaller than the second gain adjustment parameter.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the audio signal processing method according to any one of claims 1 to 5.
11. A computer program product, characterized in that, The computer program product includes: computer program code, which, when run on a computer, causes the computer to perform the audio signal processing method as described in any one of claims 1 to 5.
