Bass enhancement method, device, electronic device and storage medium

By using time domain processing algorithms to process low-frequency signals in audio processing, the problems of large calculation amount and long processing time caused by frequency domain processing in the prior art are solved, and fast processing and high efficiency of bass enhancement are achieved.

CN114067817BActive Publication Date: 2025-03-25YICHIP MICROELECTRONICS (HANGZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111310383.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2025-03-25
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

The prior art uses frequency domain processing methods in bass enhancement, resulting in large calculation volume and long processing time, which affects the real-time nature of audio playback.

Method used

By receiving the audio signal to be processed, low-frequency signals below the preset frequency value are extracted frame by frame and their status is judged. If it is in the first state, the process is performed using a preset time domain processing algorithm to obtain the first harmonic signal, and then the low-frequency signal is enhanced based on the harmonic signal.

Benefits of technology

Reduces calculations, improves processing speed, improves bass enhancement speed for audio signals to be processed, and enhances the real-time audio playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114067817B_ABST
    Figure CN114067817B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a bass enhancement method, device, electronic device and storage medium. The method includes: receiving an audio signal to be processed, extracting low-frequency signals whose frequencies are lower than a preset frequency value from the audio signal to be processed frame by frame; for the low-frequency signal of any frame, determining the state of the low-frequency signal, and when the low-frequency signal is in a first state, processing the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal; based on the first harmonic signal, enhancing the low-frequency signal of the corresponding frame in the audio signal to be processed, to obtain a bass-enhanced audio signal. Avoiding the large amount of calculations caused by frequency domain processing, achieving rapid processing of low-frequency signals in the first state, and improving the speed of bass enhancement of the audio signal to be processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of audio processing technology, and in particular to a bass enhancement method, device, electronic device and storage medium. Background Art

[0002] As multimedia devices become smaller and lighter, the speakers embedded in these devices are subject to strict size restrictions. Due to the size limitations of the speakers, small speakers have poor low-frequency reproduction capabilities. However, the low-frequency components in the audio play a very important role in the listening experience, directly affecting the loudness, fullness, thickness and sense of space of the sound.

[0003] In order to improve the low-frequency performance of small speakers, with the continuous deepening of psychoacoustic research, it is found that after the sound of multiple harmonics is superimposed, the listening experience can be equivalent to the original fundamental frequency sound. Therefore, harmonics are currently generated based on bass, and virtual bass is obtained by using harmonics. By playing virtual bass, users can get the same experience as the original bass.

[0004] However, in the current technical solutions, frequency domain processing methods are usually used to obtain multiple harmonics. In audio with more bass, this method will have a large amount of calculation and the processing time will be prolonged, resulting in the real-time performance of the audio playback being affected. Summary of the invention

[0005] The embodiments of the present application provide a bass enhancement method, device, electronic device and storage medium to reduce the amount of calculation in the prior art and improve the processing speed.

[0006] In a first aspect, an embodiment of the present application provides a bass enhancement method, the method comprising:

[0007] Receiving an audio signal to be processed, and extracting a low-frequency signal whose frequency is lower than a preset frequency value from the audio signal to be processed frame by frame;

[0008] For the low-frequency signal of any frame, determine the state of the low-frequency signal, and when the low-frequency signal is in a first state, process the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal;

[0009] The low-frequency signal of the corresponding frame in the audio signal to be processed is enhanced based on the first harmonic signal to obtain a bass-enhanced audio signal.

[0010] In a second aspect, an embodiment of the present application further provides a bass enhancement device, the bass enhancement device comprising:

[0011] A low-frequency signal acquisition module, used for receiving an audio signal to be processed, and extracting a low-frequency signal whose frequency is lower than a preset frequency value from the audio signal to be processed frame by frame;

[0012] a processing module, configured to determine the state of the low-frequency signal of any frame, and, when the low-frequency signal is in a first state, process the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal;

[0013] The enhancement module is used to enhance the low-frequency signal of the corresponding frame in the audio signal to be processed based on the first harmonic signal to obtain a bass-enhanced audio signal.

[0014] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0015] one or more processors;

[0016] a storage device for storing one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the bass enhancement method provided in any embodiment of the present application.

[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, a bass enhancement method as provided in any embodiment of the present application is implemented.

[0019] The technical solution of the embodiment of the present application determines the state of the low-frequency signal, and when the low-frequency signal is in a first state, processes the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal; then enhances the low-frequency signal in the audio signal to be processed based on the first harmonic signal to obtain a bass-enhanced audio signal. For some low-frequency signals, a large amount of calculation caused by frequency domain processing is avoided, and the low-frequency signal in the first state is quickly processed, thereby improving the speed of bass enhancement of the audio signal to be processed. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flowchart of a bass enhancement method provided in Embodiment 1 of the present application;

[0021] Figure 2 This is a schematic diagram of a flow chart for determining the state of a low-frequency signal provided in Embodiment 2 of the present application;

[0022] Figure 3 This is a schematic diagram of a process for processing a low-frequency signal in a second state provided by Embodiment 3 of the present application;

[0023] Figure 4This is a schematic diagram of a process for obtaining a second harmonic signal provided in Embodiment 3 of the present application;

[0024] Figure 5 A schematic diagram of the structure of a bass enhancement device provided in Embodiment 4 of the present application;

[0025] Figure 6 A schematic diagram of the structure of an electronic device provided in Example 5 of the present application. DETAILED DESCRIPTION

[0026] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0027] The technical solution of the present application can be mainly applied to the usage scenarios of smaller speakers, such as mobile phone speakers, laptop speakers, speakers of wireless Bluetooth headsets, speakers of headphones, speakers of wired headphones, etc.

[0028] The speaker produces sound through electroacoustic conversion. When the frequency of the audio signal is lower than the resonant frequency of the speaker, the sound produced by the speaker will attenuate sharply. For smaller speakers, the resonant frequency is about 100Hz~150Hz. If the audio signal is lower than this value, the speaker cannot produce sound normally.

[0029] Based on the above problems, harmonics are currently generated based on the bass, and virtual bass is obtained by using the harmonics. By playing the virtual bass, the user can get an experience equivalent to the original bass.

[0030] However, in the current technical solutions, frequency domain processing methods are usually used to obtain multiple harmonics. In audio with more bass, this method will have a large amount of calculation and the processing time will be prolonged, resulting in the real-time performance of the audio playback being affected.

[0031] In order to reduce the amount of calculation in the prior art and improve the processing speed, the present application provides a bass enhancement method, device, electronic device and storage medium. The following is an explanation in the form of embodiments.

[0032] Embodiment 1

[0033] Figure 1This is a flowchart of a bass enhancement method provided in Embodiment 1 of the present application. This embodiment is applicable to a scenario in which a low-frequency signal of an audio signal to be processed played by a speaker is enhanced. The method can be performed by a bass enhancement device, which can be implemented in hardware and / or software and can generally be integrated in an electronic device such as a computer with data computing capabilities. The method specifically includes the following steps:

[0034] Step 101: Receive an audio signal to be processed, and extract low-frequency signals whose frequencies are lower than a preset frequency value from the audio signal to be processed frame by frame.

[0035] Since the audio signal to be processed includes multiple frames, in this step, the low-frequency signal can be extracted frame by frame, and the low-frequency signal is a signal in the audio signal to be processed whose frequency is lower than the cutoff frequency of the speaker. In this embodiment, a preset filtering unit can be used to separate the low-frequency signal and the non-low-frequency signal in the audio signal to be processed.

[0036] Specifically, the audio signal to be processed may be input into a preset filter unit, and then a low-frequency signal below a preset frequency value filtered out by the preset filter unit is obtained, wherein the preset frequency value is a filter parameter of the preset filter unit.

[0037] Generally, the preset filtering unit can be set with two outputs, one for outputting a low-frequency signal lower than a preset frequency value, and the other for outputting other signals in the audio signal to be processed except the low-frequency signal, so as to synthesize the processed signal with the other signals after processing the low-frequency signal.

[0038] Step 102: for the low-frequency signal of any frame, determine the state of the low-frequency signal, and when the low-frequency signal is in a first state, process the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal.

[0039] In this step, the low-frequency signal may be in two states, namely, a first state and a second state. Specifically, the first state may be a transient state, and the second state may be a steady state. In the prior art, regardless of whether it is a transient signal or a steady-state signal, a frequency domain processing method is usually used to obtain a harmonic signal. However, for a transient signal, the frequency domain processing method will have a large amount of calculation. In order to reduce the amount of calculation, this step uses a preset time domain processing algorithm to process the low-frequency signal in the first state (i.e., in a transient state).

[0040] Specifically, the process of processing the low-frequency signal using the preset time domain processing algorithm can be as follows: half-wave rectifying the low-frequency signal to obtain a rectified signal; then gain adjusting the rectified signal to obtain a first harmonic signal.

[0041] In a specific embodiment, when half-wave rectification is performed on the low-frequency signal, all signal values ​​less than 0 in the low-frequency signal may be set to 0 to obtain a rectified signal.

[0042] In addition, after the rectified signal is obtained, the gain of the rectified signal needs to be adjusted. When the gain is adjusted, the gain value (G) for adjusting the rectified signal needs to be calculated based on the pre-acquired basic gain parameter.

[0043] It should be noted that the pre-acquired basic gain parameters may include an increase value (gain), a maximum value (gmax) and a minimum value (gmin) of the increase value. Generally, the basic gain parameters may be pre-set. In a specific example, gain may be set to 2.5, gmax may be set to 5, and gmin may be set to 1.

[0044] The formula for calculating the gain value (G) can be: ;

[0045] Among them, scale is the scale and offset is the offset. Specifically, ; .

[0046] It should be noted that the number of divisions refers to the number of divisions into which a range is divided. The larger the number of divisions, the higher the accuracy of the scale.

[0047] After the gain value is calculated, the rectified signal is adjusted using the gain value to obtain the first harmonic signal. The specific adjustment may be to uniformly multiply the amplitude of the rectified signal by the gain value, and to set the obtained product as the new amplitude of the rectified signal.

[0048] It should be noted that the preset time domain processing algorithm in this step can be implemented in a processor such as a single-chip microcomputer. In this case, the low-frequency signal needs to be converted from analog to digital, converted into a digital signal, and input into a processor equipped with the preset time domain processing algorithm for half-wave rectification and gain adjustment. The processed signal is then converted from digital to analog, converted into an analog signal for output.

[0049] Step 103: enhance the low-frequency signal in the audio signal to be processed based on the first harmonic signal to obtain a bass-enhanced audio signal.

[0050] Since the waves in the audio signal to be processed are composed of frames, in this step, the low-frequency signal in each frame can be replaced by the first harmonic signal corresponding to the frame to obtain the enhanced signal of the frame, and then the enhanced signals of each frame are superimposed through operations such as windowing and overlap and add (OLA) to obtain a complete and continuous bass-enhanced audio signal.

[0051] In this embodiment, the state of the low-frequency signal is determined, and when the low-frequency signal is in a first state, the low-frequency signal is processed using a preset time domain processing algorithm to obtain a first harmonic signal; then, the low-frequency signal in the audio signal to be processed is enhanced based on the first harmonic signal to obtain a bass-enhanced audio signal. For some low-frequency signals, a large amount of calculation caused by frequency domain processing is avoided, and the low-frequency signal in the first state is quickly processed, thereby improving the speed of bass enhancement of the audio signal to be processed.

[0052] Embodiment 2

[0053] See also Figure 2 , Figure 2 This is a flow chart of determining the state of a low-frequency signal provided in Embodiment 2 of the present application.

[0054] like Figure 2 As shown, in this embodiment, the process of determining the state of the low-frequency signal may include:

[0055] Step 201: perform differential comparison on signal parameters corresponding to adjacent frames of the low-frequency signal to obtain a comparison result.

[0056] Step 202: If the comparison result meets the preset transient determination condition, determine that the low-frequency signal is in the first state; otherwise, determine that the low-frequency signal is in the second state.

[0057] Generally speaking, in steady-state signals, harmonics can be seen as the superposition of slowly changing sinusoidal curves in frames of data, and there is no significant change in the peak value between two adjacent frames. However, for transient signals, there will be large changes in amplitude and peak frequency in the transient region between two adjacent frames.

[0058] Based on the above characteristics, this step uses the peak amplitude difference method to determine the state of the low-frequency signal. The specific peak amplitude is obtained by the onset detection function (ODF). The signal parameters mentioned in this step are the amplitude and peak frequency of the signal in each frame.

[0059] In a specific example, for the N-1th frame of the low-frequency signal, if the peak frequency and / or amplitude of the N-1th frame is correspondingly greater than the peak frequency and / or amplitude of the Nth frame, and the peak frequency and / or amplitude of the N-1th frame is correspondingly greater than the peak frequency and / or amplitude of the N-2th frame, when the peak frequency and / or amplitude of the N-1th frame is greater than a preset threshold, it is determined that the low-frequency signal is in the first state; otherwise, it is determined that the low-frequency signal is in the second state.

[0060] Embodiment 3

[0061] See also Figure 3 , Figure 3 It is a flowchart of processing a low-frequency signal in a second state provided in Embodiment 3 of the present application.

[0062] like Figure 3 As shown, the process of processing the low-frequency signal in the second state provided by this embodiment may include:

[0063] Step 301: When it is determined that the low-frequency signal is in the second state, the low-frequency signal is processed using a preset frequency domain processing algorithm to obtain a second harmonic signal.

[0064] In this step, the specific process of obtaining the second harmonic signal can be found in Figure 4 , Figure 4 This is a flow chart of obtaining a second harmonic signal provided in Embodiment 3 of the present application.

[0065] like Figure 4 As shown, the process of obtaining the second harmonic signal may include:

[0066] Step 401: Based on the cutoff frequency of the loudspeaker that plays the audio signal to be processed, a low-frequency signal is processed to obtain a plurality of initial harmonic signals.

[0067] In this step, the cutoff frequency of each speaker is different, and the processing of the low-frequency signal is also different. In order to improve the accuracy of harmonic generation, this step divides the low frequency into multiple sub-bands for separate processing. For example, the low frequency below 150Hz (the cutoff frequency of the speaker is 150Hz) is divided into 3 sub-bands, H1 can be 75Hz~150Hz; H2 can be 50Hz~75Hz; H3 can be 40~50Hz.

[0068] In order to avoid invalid compensation, for each sub-band, the lowest multiple of the lowest frequency needs to meet the condition of "lowest frequency * multiple is greater than or equal to 150Hz", that is, H1 can generate 2nd, 3rd, and 4th harmonics, H2 can generate 3rd, 4th, and 5th harmonics (because 2*50=100, 100 is less than 150, so it is necessary to start from 3rd), and H3 can generate 4th, 5th, and 6th harmonics.

[0069] It should be noted that, before generating the initial harmonic signal, this step can first downsample the low-frequency signal according to a preset multiple, and then convert the downsampled signal to the frequency domain according to a preset number of points. For example, if the preset multiple of downsampling is 16 and the preset number of points converted to the frequency domain is 512, if downsampling is not performed, the frequency band range of the frequency signal is 20kHz~48kHz. If a 512-point FFT (fast Fourier transform) is used, the accuracy of each FFT point is 48kHz / 512 = 93Hz.

[0070] If the downsampling is performed 16 times, the frequency band of the audio data after downsampling is 20kHz~3kHz. If a 512-point FFT is used, the accuracy of each FFT point is 3kHz / 512 = 6Hz. The FFT resolution becomes higher, and it can focus more on the low-frequency range.

[0071] Subsequently, a peak search operation is performed on the signal converted into the frequency domain, and the frequency corresponding to the maximum peak is determined as the fundamental frequency, and the fundamental frequency is processed to obtain a plurality of initial harmonic signals.

[0072] It should be noted that the peak-seeking operation can refer to related technologies and will not be described in detail here.

[0073] Since the human ear is sensitive to the distribution of peak positions in audio signals, in order to avoid distortion of human ear perception caused by harmonic signals changing the distribution of peak positions in audio signals, the present embodiment may also perform peak matching on the initial harmonic signal. Specifically, for any initial harmonic signal, the peak value of the low-frequency signal is searched within a preset neighborhood frequency range of the initial harmonic signal; and the frequency of the initial harmonic signal is replaced by the frequency of the low-frequency signal corresponding to the peak value.

[0074] Based on this, it can be avoided that after the harmonic signal is superimposed later, the peak value of a certain frequency point is too high compared to the original audio signal to be processed, which causes distortion perceived by the user.

[0075] Step 402: Perform equal loudness calculation on the initial harmonic signals to determine the amplitude of each initial harmonic signal.

[0076] In this step, the equal loudness calculation is to make the output volume of the harmonic signal consistent with the volume of the original audio signal to be processed at each frequency point.

[0077] In order to reduce the amount of calculation, before this step, the ratio of equal loudness harmonics to fundamental frequency amplitude at different frequencies can be pre-calculated. The specific table can be seen in the following table:

[0078]

[0079] Among them, SPL (dB) is the loudness (the first row represents different loudness levels), and the first column represents different frequencies.

[0080] For the above table, first calculate the loudness at different sound pressure levels of the fundamental tone at a certain frequency, then calculate the harmonic amplitudes at the same loudness, and record the amplitude ratio coefficient. For this purpose, we need to measure as many corresponding coefficients at different frequencies as possible and use interpolation method for estimation.

[0081] In a specific example, assume that the audio before processing is A, and the audio after generating harmonics is B; calculate the loudness LA of audio A. Since the loudness of audio B is directly related to the amplitude of the generated harmonics, if the amplitude of the generated harmonics is large, the loudness of audio B is large, and vice versa. Therefore, first set the harmonic amplitude to 1, calculate the loudness LB of audio B according to the amplitude 1, compare LB with LA. If LB > LA, then reduce the harmonic amplitude; if LB < LA, then increase the harmonic amplitude. Try different amplitude values until LB = LA; record the amplitude value at this time, which is the amplitude value to achieve equal loudness (since the initial amplitude was set to 1 before, the amplitude value at this time is also the amplitude ratio coefficient mentioned above), and write it into the table.

[0082] In this step, the equal-loudness calculation is to find a ratio coefficient from the above table according to the loudness and frequency of the audio signal to be processed mentioned above, and then multiply the amplitude of the current initial harmonic signal by this ratio coefficient, and use the product as the new amplitude of the initial harmonic signal.

[0083] Step 403: Filter out the initial harmonic signals corresponding to the amplitudes that do not meet the preset harmonic determination conditions, and generate second harmonic signals according to the remaining initial harmonic signals.

[0084] In this step, in order to avoid the side effects of the generated harmonics on the final audio signal, or to avoid generating spurious peak harmonics due to misjudgment of the fundamental frequency, a determination is made on the initial harmonic signals to be able to be used as second harmonic signals.

[0085] Specifically, the amplitude of any obtained initial harmonic signal and the amplitude of the fundamental frequency obtained in the previous process can be input, and it is judged whether the amplitude of the fundamental frequency is the maximum amplitude. If it is the maximum amplitude, then it is judged whether the difference between the amplitude of the initial harmonic signal and the amplitude of the fundamental frequency does not exceed a preset threshold (such as 15 dB). If so, the peak matching in the previous process can be performed, and then when the amplitude of the initial harmonic signal is not less than the amplitude of the fundamental frequency, this initial harmonic signal is used as one of the second harmonic signals.

[0086] If the difference between the amplitude of the initial harmonic signal and the amplitude of the fundamental frequency does not exceed the preset threshold, the peak matching is not performed, and when the amplitude of the initial harmonic signal is not less than the amplitude of the fundamental frequency, this initial harmonic signal is used as one of the second harmonic signals.

[0087] In addition, if the fundamental frequency amplitude is not the maximum amplitude, or the amplitude of the initial harmonic signal is smaller than the fundamental frequency amplitude, the initial harmonic signal is discarded.

[0088] Step 302: enhance the low-frequency signal in the audio signal to be processed based on the second harmonic signal to obtain a bass-enhanced audio signal.

[0089] In this step, the second harmonic signal needs to be converted into the time domain. Since the waves in the audio signal to be processed are composed of frames, in this step, the low-frequency signal in each frame can be replaced by the second harmonic signal converted into the time domain corresponding to the frame to obtain the enhanced signal of the frame. Then, the enhanced signals of each frame are superimposed through operations such as windowing and overlap and add (OLA) to obtain a complete and continuous bass-enhanced audio signal.

[0090] Embodiment 4

[0091] Figure 5 This is a schematic diagram of the structure of a bass enhancement device provided in the fourth embodiment of the present application. The bass enhancement device provided in the embodiment of the present application can execute the bass enhancement method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 5 As shown, the bass enhancement device specifically includes: a low-frequency signal acquisition module 501, a processing module 502, and an enhancement module 503.

[0092] The low-frequency signal acquisition module is used to receive the audio signal to be processed and extract the low-frequency signal whose frequency is lower than the preset frequency value in the audio signal to be processed frame by frame;

[0093] A processing module, for determining the state of the low-frequency signal of any frame, and when the low-frequency signal is in a first state, processing the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal;

[0094] The enhancement module is used to enhance the low-frequency signal of the corresponding frame in the audio signal to be processed based on the first harmonic signal to obtain a bass-enhanced audio signal.

[0095] This embodiment determines the state of the low-frequency signal, and when the low-frequency signal is in a first state, processes the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal; then enhances the low-frequency signal in the audio signal to be processed based on the first harmonic signal to obtain a bass-enhanced audio signal. For some low-frequency signals, a large amount of calculation caused by frequency domain processing is avoided, and the low-frequency signal in the first state is quickly processed, thereby improving the speed of bass enhancement of the audio signal to be processed.

[0096] Furthermore, the low-frequency signal acquisition module is specifically used to input the audio signal to be processed into a preset filtering unit, and acquire a low-frequency signal filtered out by the preset filtering unit and having a frequency lower than a preset frequency value.

[0097] Furthermore, the processing module includes:

[0098] A rectifier unit, used for performing half-wave rectification on the low-frequency signal to obtain a rectified signal;

[0099] The gain adjustment unit is used to perform gain adjustment on the rectified signal to obtain a first harmonic signal.

[0100] Furthermore, the processing module also includes:

[0101] A comparison unit, used for performing differential comparison on signal parameters corresponding to adjacent frames of the low-frequency signal to obtain a comparison result;

[0102] The state determination unit is used to determine that the low-frequency signal is in the first state if the comparison result meets the preset transient determination condition, and otherwise, determine that the low-frequency signal is in the second state.

[0103] Furthermore, the device also includes:

[0104] A frequency domain processing module, for processing the low frequency signal using a preset frequency domain processing algorithm to obtain a second harmonic signal when determining that the low frequency signal is in the second state;

[0105] The frequency domain enhancement module is used to enhance the low-frequency signal in the audio signal to be processed based on the second harmonic signal to obtain a bass-enhanced audio signal.

[0106] Furthermore, the frequency domain processing module includes:

[0107] A processing unit, configured to process the low-frequency signal based on a cutoff frequency of a loudspeaker that plays the audio signal to be processed, to obtain a plurality of initial harmonic signals;

[0108] A loudness calculation unit, used to perform equal loudness calculation on the initial harmonic signals to determine the amplitude of each initial harmonic signal;

[0109] The filtering unit is used to filter out the initial harmonic signal corresponding to the amplitude that does not meet the preset harmonic determination condition, and generate a second harmonic signal according to the remaining initial harmonic signal.

[0110] Furthermore, the frequency domain processing module also includes:

[0111] A peak search unit, for searching for a peak value of a low-frequency signal within a preset neighborhood frequency range of the initial harmonic signal for any initial harmonic signal;

[0112] The replacement unit is used to replace the frequency of the initial harmonic signal with the frequency of the low-frequency signal corresponding to the peak value.

[0113] Embodiment 5

[0114] Figure 6 A schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present application is shown in FIG. Figure 6 As shown, the electronic device includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of the processor 610 in the electronic device can be one or more. Figure 6 A processor 610 is taken as an example; the processor 610, the memory 620, the input device 630 and the output device 640 in the electronic device can be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0115] The memory 620, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the bass enhancement method in the embodiment of the present application (for example, the low-frequency signal acquisition module 501, the processing module 502, and the enhancement module 503 in the bass enhancement device). The processor 610 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 620, that is, implements the above-mentioned bass enhancement method.

[0116] That is, receiving the audio signal to be processed, and obtaining a low-frequency signal whose frequency is lower than a preset frequency value from the audio signal to be processed;

[0117] Determine the state of the low-frequency signal, and when the low-frequency signal is in a first state, process the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal;

[0118] The low-frequency signal in the audio signal to be processed is enhanced based on the first harmonic signal to obtain a bass-enhanced audio signal.

[0119] The memory 620 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 620 may further include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0120] The input device 630 may be used to receive input power construction drawings and generate key signal inputs related to user settings and function control of the electronic device. The output device 640 may include display devices such as a display screen.

[0121] Embodiment 6

[0122] Embodiment 6 of the present application further provides a storage medium including computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to perform a bass enhancement method. The method includes:

[0123] Receiving an audio signal to be processed, and obtaining a low-frequency signal having a frequency lower than a preset frequency value from the audio signal to be processed;

[0124] Determine the state of the low-frequency signal, and when the low-frequency signal is in a first state, process the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal;

[0125] The low-frequency signal in the audio signal to be processed is enhanced based on the first harmonic signal to obtain a bass-enhanced audio signal.

[0126] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the above method operations, can also execute related operations in the bass enhancement method provided in any embodiment of the present application.

[0127] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0128] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0129] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A bass enhancement method, characterized in that: The method comprises: Receiving an audio signal to be processed, and extracting a low-frequency signal whose frequency is lower than a preset frequency value from the audio signal to be processed frame by frame; For the low-frequency signal of any frame, determine the state of the low-frequency signal, and when the low-frequency signal is in a first state, process the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal; the first state is a transient state, and the preset time domain processing algorithm includes half-wave rectification and gain adjustment; Based on the first harmonic signal, the low-frequency signal of the corresponding frame in the audio signal to be processed is enhanced to obtain a bass-enhanced audio signal; When the low-frequency signal is in a second state, the low-frequency signal is processed using a preset frequency domain processing algorithm to obtain a second harmonic signal; the second state is a steady state; The low-frequency signal in the audio signal to be processed is enhanced based on the second harmonic signal to obtain a bass-enhanced audio signal.

2. The method according to claim 1, characterized in that The step of extracting the low-frequency signal whose frequency is lower than a preset frequency value from the audio signal to be processed frame by frame includes: The audio signal to be processed is input into a preset filtering unit frame by frame to obtain a low-frequency signal whose frequency is lower than a preset frequency value filtered out by the preset filtering unit.

3. The method according to claim 1, characterized in that When the low-frequency signal is in the first state, the low-frequency signal is processed by a preset time domain processing algorithm to obtain a first harmonic signal, including: Performing half-wave rectification on the low-frequency signal to obtain a rectified signal; The rectified signal is gain adjusted to obtain the first harmonic signal.

4. The method according to claim 1, characterized in that The determining the state of the low-frequency signal includes: Performing differential comparison on signal parameters corresponding to adjacent frames of the low-frequency signal to obtain a comparison result; If the comparison result satisfies a preset transient determination condition, it is determined that the low-frequency signal is in the first state; otherwise, it is determined that the low-frequency signal is in the second state.

5. The method according to claim 1, characterized in that The step of processing the low-frequency signal using a preset frequency domain processing algorithm to obtain a second harmonic signal includes: Processing the low-frequency signal based on the cutoff frequency of the speaker that plays the audio signal to be processed to obtain a plurality of initial harmonic signals; Performing equal loudness calculation on the initial harmonic signals to determine the amplitude of each of the initial harmonic signals; The initial harmonic signal corresponding to the amplitude that does not meet the preset harmonic determination condition is filtered out, and the second harmonic signal is generated according to the remaining initial harmonic signal.

6. The method according to claim 5, characterized in that After obtaining the multiple initial harmonic signals and before performing equal loudness calculation on the initial harmonic signals to determine the amplitude of each of the initial harmonic signals, the low-frequency signal is processed using a preset frequency domain processing algorithm to obtain a second harmonic signal, further comprising: For any initial harmonic signal, searching for a peak value of the low-frequency signal within a preset neighborhood frequency range of the initial harmonic signal; The frequency of the initial harmonic signal is replaced by the frequency of the low-frequency signal corresponding to the peak value.

7. A bass enhancement device, characterized in that: The device comprises: A low-frequency signal acquisition module, used for receiving an audio signal to be processed, and extracting a low-frequency signal whose frequency is lower than a preset frequency value from the audio signal to be processed frame by frame; A processing module, for determining the state of the low-frequency signal of any frame, and when the low-frequency signal is in a first state, processing the low-frequency signal using a preset time domain processing algorithm to obtain a first harmonic signal; the first state is a transient state, and the preset time domain processing algorithm includes half-wave rectification and gain adjustment; an enhancement module, configured to enhance the low-frequency signal of the corresponding frame in the audio signal to be processed based on the first harmonic signal to obtain a bass-enhanced audio signal; The device is also used for: When the low-frequency signal is in a second state, the low-frequency signal is processed using a preset frequency domain processing algorithm to obtain a second harmonic signal; the second state is a steady state; The low-frequency signal in the audio signal to be processed is enhanced based on the second harmonic signal to obtain a bass-enhanced audio signal.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the bass enhancement method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the bass enhancement method as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Virtual supper bass enhancing method and system

    CN101505443A

  • Method, device and system for encoding and decoding audios

    CN101662288A