CN108495235B - Method and device for separating heavy and low sounds, computer equipment and storage medium - Google Patents
Method and device for separating heavy and low sounds, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108495235B CN108495235B CN201810410040.1A CN201810410040A CN108495235B CN 108495235 B CN108495235 B CN 108495235B CN 201810410040 A CN201810410040 A CN 201810410040A CN 108495235 B CN108495235 B CN 108495235B
- Authority
- CN
- China
- Prior art keywords
- signal
- frequency
- low
- audio signal
- time domain
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000005236 sound signal Effects 0.000 claims abstract description 134
- 238000001228 spectrum Methods 0.000 claims abstract description 43
- 238000001914 filtration Methods 0.000 claims abstract description 37
- 230000003595 spectral effect Effects 0.000 claims description 35
- 230000009466 transformation Effects 0.000 claims description 24
- 238000000926 separation method Methods 0.000 claims description 12
- 238000011084 recovery Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 230000010354 integration Effects 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 230000004044 response Effects 0.000 description 3
- 230000001131 transforming effect Effects 0.000 description 3
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000002238 attenuated effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Stereophonic System (AREA)
Abstract
The embodiment of the invention discloses a method and a device for separating heavy and low sounds, a sound box device and a storage medium, wherein the method comprises the following steps: carrying out low-pass filtering on an original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal; carrying out Fourier transform on the time domain low-frequency signal component, and converting the time domain low-frequency signal component into a low-frequency domain signal; performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal; carrying out inverse Fourier transform according to the frequency spectrum energy signal to obtain a subwoofer time domain audio signal; wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques. The technical scheme of the embodiment of the invention realizes the reduction of the hardware cost and the integration difficulty of the sound box equipment, meets the requirements of portability and convenience, and improves the auditory experience of the sound box equipment for playing audio.
Description
Technical Field
The embodiment of the invention relates to the technical field of audio processing, in particular to a method and a device for separating heavy and low sounds, a sound box device and a storage medium.
Background
A speaker is a hardware device commonly used in electronic devices. Generally, in an electronic device with an audio playing function, if there is only one single speaker box, the single speaker box is designed as a full-band speaker, and the playback frequency range is theoretically a full band. However, in practical application, due to the limitation of the volume of the sound box body and the caliber of the loudspeaker, full-band playback response is difficult to realize, so that the tone color of each frequency band is not full enough, and the auditory experience is influenced. In order to improve the tone quality, the prior art adopts a mode of carrying out frequency division design on a sound box, and a mode of matching a high pitch loudspeaker and a middle bass loudspeaker is adopted, so that the tone of each frequency band has better performance.
In the process of implementing the invention, the inventor finds that the prior art has the following defects:
although the frequency division design mode can improve the tone quality to a certain extent, a plurality of independent power amplifier modules and corresponding frequency division loudspeakers need to be matched with the electronic equipment. Therefore, the frequency division design mode leads to a complex hardware structure, thereby increasing the hardware cost of the electronic equipment, simultaneously enlarging the volume of the electronic equipment, further increasing the integration difficulty, and being difficult to meet the requirements of portability and convenience.
Disclosure of Invention
The embodiment of the invention provides a separation method and device of heavy bass, a sound box device and a storage medium, which can reduce the hardware cost and the integration difficulty of the sound box device, meet the requirements of portability and convenience and improve the auditory experience of the sound box device in playing audio.
In a first aspect, an embodiment of the present invention provides a method for separating heavy bass, including:
carrying out low-pass filtering on an original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal;
carrying out Fourier transform on the time domain low-frequency signal component, and converting the time domain low-frequency signal component into a low-frequency domain signal;
performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal;
carrying out Fourier inverse transformation on the frequency spectrum energy signal to obtain a subwoofer time domain audio signal;
wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
In a second aspect, an embodiment of the present invention further provides a subwoofer separation apparatus, including:
the signal filtering module is used for carrying out low-pass filtering on an original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal;
the signal transformation module is used for carrying out Fourier transformation on the time domain low-frequency signal component and converting the time domain low-frequency signal component into a low-frequency domain signal;
the gain control module is used for carrying out frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal;
the signal inverse transformation module is used for carrying out Fourier inverse transformation on the frequency spectrum energy signal to obtain a subwoofer time domain audio signal;
wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the subwoofer separation method provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for separating heavy and low sounds provided by any embodiment of the present invention.
According to the embodiment of the invention, time domain low-frequency signal components are obtained by low-pass filtering the original time domain audio signals; carrying out Fourier transform on the time domain low-frequency signal component to convert the time domain low-frequency signal component into a low-frequency domain signal; performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal; the method and the device have the advantages that Fourier inverse transformation is carried out on the frequency spectrum energy signal to obtain the bass time domain audio signal, the problems that in the prior art, the hardware cost is increased and the integration difficulty is increased due to the fact that frequency division design is carried out on the loudspeaker box are solved, the hardware cost and the integration difficulty of loudspeaker box equipment are reduced, the requirements of portability and convenience are met, and the auditory experience of audio playing of the loudspeaker box equipment is improved.
Drawings
Fig. 1 is a flowchart of a method for separating heavy bass according to an embodiment of the present invention;
fig. 2a is a flowchart of a method for separating heavy bass according to a second embodiment of the present invention;
fig. 2b is a system logic diagram of a subwoofer separation method according to a second embodiment of the present invention;
fig. 2c is a schematic diagram of a frequency response curve of an audio signal according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a heavy bass separation apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a subwoofer separation method according to an embodiment of the present invention, where the embodiment is applicable to a case of separating a subwoofer audio signal from an original time-domain audio signal, and the method can be executed by a subwoofer separation apparatus, which can be implemented by software and/or hardware, and can be generally integrated into various audio playback electronic devices (typically, various types of speakers or other electronic devices with speakers, etc.). As shown in fig. 1, the method includes the operations of:
s110, low-pass filtering is carried out on the original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal.
The original time-domain audio signal may be an unprocessed audio signal extracted from the sound source file.
In the embodiment of the present invention, after the original time domain audio signal is obtained, the original time domain audio signal may be low-pass filtered to obtain a time domain low-frequency signal component of the original time domain audio signal. The cut-off frequency of the low-pass filtering may be adaptively set according to hardware requirements of the related device (such as a sound box, etc.), which is not limited in the embodiment of the present invention. The frequency band corresponding to the time domain low frequency signal component obtained by the low pass filtering is the frequency band of the medium and low frequency signal played by the medium and low frequency speaker.
And S120, carrying out Fourier transform on the time domain low-frequency signal component, and converting the time domain low-frequency signal component into a low-frequency domain signal.
In the embodiment of the present invention, in order to further process the time-domain low-frequency signal component after the low-pass filtering, the time-domain low-frequency signal component may be subjected to fourier transform, and converted into a low-frequency-domain signal.
And S130, performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal.
Accordingly, in order to adjust the energy of the low-frequency domain signal, the frequency domain gain control may be performed on the converted low-frequency domain signal, so as to obtain a spectral energy signal.
It should be noted that, when performing frequency domain gain control on the low-frequency domain signal, the low-frequency signal energy can be adaptively adjusted according to the specific requirements of the actual product and the hardware acoustic characteristics of the corresponding middle and low-frequency speaker, so as to meet the quality experience of heavy bass sound. That is, the embodiments of the present invention do not limit the magnitude corresponding to the frequency domain gain of the low-frequency domain signal.
And S140, carrying out Fourier inverse transformation on the frequency spectrum energy signal to obtain a subwoofer time domain audio signal.
Correspondingly, if the low-frequency domain signal subjected to the frequency domain gain is to be played through a loudspeaker, the frequency spectrum energy signal also needs to be subjected to inverse fourier transform to obtain a corresponding time domain audio signal, and the time domain audio signal is the final bass time domain audio signal to be obtained.
Wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
In the embodiment of the present invention, although the functions of low-pass filtering, fourier transform, frequency domain gain control, inverse fourier transform, and the like can also be implemented by hardware in the prior art, a plurality of independent hardware modules need to be matched with the electronic device, which inevitably increases the hardware cost and the integration difficulty of the electronic device, and cannot meet the requirements of portable or desktop small-sized intelligent electronic devices. Therefore, in the embodiment of the invention, from the viewpoint of reducing the hardware cost and the integration difficulty of the equipment, the functions of low-pass filtering, Fourier transform, frequency domain gain control, inverse Fourier transform and the like are all realized by adopting a digital signal processing technology. Through the function, the bass audio component can be effectively separated from the original time domain audio signal, and the bass audio component is output and played after being enhanced.
It should be noted that the method for separating heavy and bass sounds provided by the embodiment of the present invention may be applied to an electronic device with a 2.1 channel speaker playing unit, and no bass power amplifying unit needs to be added to the device, so that the hardware cost can be effectively saved, the integration difficulty can be reduced, the requirements of portability and convenience can be met, and the auditory experience of the device in playing audio can be improved.
According to the embodiment of the invention, time domain low-frequency signal components are obtained by low-pass filtering the original time domain audio signals; carrying out Fourier transform on the time domain low-frequency signal component to convert the time domain low-frequency signal component into a low-frequency domain signal; performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal; the method and the device have the advantages that Fourier inverse transformation is carried out on the frequency spectrum energy signal to obtain the bass time domain audio signal, the problems that in the prior art, the hardware cost is increased and the integration difficulty is increased due to the fact that frequency division design is carried out on the loudspeaker box are solved, the hardware cost and the integration difficulty of loudspeaker box equipment are reduced, the requirements of portability and convenience are met, and the auditory experience of audio playing of the loudspeaker box equipment is improved.
Example two
Fig. 2a is a flowchart of a method for separating subwoofers according to a second embodiment of the present invention, which is embodied based on the above-described embodiment, and in this embodiment, a specific implementation manner is provided for performing inverse fourier transform on a spectral energy signal through a phase angle recovery process to obtain a subwoofer time-domain audio signal. Accordingly, as shown in fig. 2a, the method of the present embodiment may include:
s210, low-pass filtering is carried out on the original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal.
S220, carrying out Fourier transform on the time domain low-frequency signal component, and converting the time domain low-frequency signal component into a low-frequency domain signal.
In an optional embodiment of the present invention, the data format of the low-frequency domain signal x (k) is specifically: x (k) ═ a (k) + b (k) i; where a (k) is a real part, a (k) Re (x (k)), b (k) is an imaginary part, b (k) Im (x (k)), k is a frequency-point value, and i is an imaginary unit.
Specifically, when performing fourier transform on the time-domain low-frequency signal component, the data form of the low-frequency-domain signal x (k) may specifically be: x (k) ═ a (k) + b (k) i. Wherein, the value range of k can be [ -A, A ], and A is the cut-off frequency of the low-pass filtering.
And S230, acquiring phase angles of the low-frequency domain signals at different frequency points.
In the embodiment of the present invention, after the time domain low-frequency signal component is converted into the low-frequency domain signal through fourier transform, in order to recover the phase angle of the spectrum energy signal to the original state after the spectrum energy signal is processed, and avoid phase distortion, the phase angles of the low-frequency domain signal at different frequency points need to be obtained.
In an optional embodiment of the present invention, obtaining phase angles of the low-frequency domain signal at different frequency points includes:
calculating the phase angles of the low-frequency domain signal X (k) at different frequency points k according to the following formula:
wherein, AngleX(k) Is the phase angle.
In the complex plane, each complex number has a phase angle information. Correspondingly, the phase angles of the low-frequency domain signals at different frequency points can be obtained through the formula.
S240, performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal.
In an optional embodiment of the present invention, the performing frequency domain gain control on the low-frequency domain signal to obtain a spectral energy signal includes:
calculating a low-frequency energy signal E of the low-frequency domain signal X (k) according to the following formulaX(k):
EX(k)=|X(k)|2=Re(X(k))2+Im(X(k))2
For the low-frequency energy signal EX(k) Performing frequency domain gain control processing to obtain the frequency spectrum energy signal E'X(k)。
In the embodiment of the present invention, when performing frequency domain gain control on the low-frequency domain signal, the low-frequency energy signal corresponding to the low-frequency domain signal may be calculated by the above formula, and then the frequency domain gain control processing is performed on the low-frequency energy signal to obtain the frequency spectrum energy signal.
And S250, according to the phase angle, performing phase angle recovery on the spectrum energy signal to obtain a spectrum component.
Accordingly, before performing the inverse fourier transform on the spectral energy signal, in order to avoid phase distortion, phase angle recovery may be performed on the spectral energy signal.
In an optional embodiment of the present invention, the phase angle recovering the spectral energy signal to obtain spectral components includes:
the spectral energy signal E'X(k) Squaring to obtain a modulus of the spectrally subtracted spectral component complex number
Specifically, when the phase angle of the spectral energy signal is restored, it is first necessary to restore the spectral energy signal E'X(k) Squaring to obtain a modulus of spectrally subtracted spectral component complex numbersThen according to the mode of spectrum-subtracted spectrum component complex numberThe corresponding spectral components are calculated by the above formula.
And S260, carrying out Fourier inverse transformation on the frequency spectrum component to obtain the bass time domain audio signal.
And finally, performing inverse Fourier transform on the frequency spectrum components subjected to phase angle recovery, thereby obtaining the subwoofer time domain audio signal.
In an optional embodiment of the invention, the original time domain audio signal comprises a binaural audio signal or a mono audio signal; before the low-pass filtering the original time-domain audio signal, further comprising: when the original time domain audio signal is a two-channel audio signal, combining the two-channel audio signal; correspondingly, after performing inverse fourier transform on the spectral energy signal to obtain a subwoofer time-domain audio signal, the method further includes: outputting a first channel audio signal in the original time domain audio signal to a first loudspeaker, and outputting a second channel audio signal in the original time domain audio signal to a second loudspeaker; outputting the subwoofer time domain audio signal to a third speaker.
Wherein the two-channel audio signal may include a left-channel audio signal and a right-channel audio signal, the first-channel audio signal may be a left-channel audio signal, and correspondingly, the first speaker may be a left-channel speaker; the second channel audio signal may be a right channel audio signal and, correspondingly, the second speaker may be a right channel speaker. Of course, the first channel audio signal may also be a right channel audio signal, and correspondingly, the first speaker may be a right channel speaker; the second channel audio signal may also be a left channel audio signal and correspondingly the second speaker may be a left channel speaker. The embodiments of the present invention do not limit this.
In the embodiment of the present invention, if the original time domain audio signal is a binaural audio signal, before separating the bass, the binaural audio signal needs to be merged first, so as to extract the complete bass characteristic of the entire original time domain audio signal. Correspondingly, after the subwoofer time domain audio signal is acquired, the left channel audio signal in the original time domain audio signal can be sent to the left channel loudspeaker to be played, the right channel audio signal in the original time domain audio signal can be sent to the right channel loudspeaker to be played, and the subwoofer time domain audio signal can be sent to the middle and low frequency loudspeaker to be played. If the original time domain audio signal is a mono audio signal, no merging process is required. After the subwoofer time domain audio signal is obtained, the monophonic audio signal can be simultaneously sent to the left channel loudspeaker and the right channel loudspeaker for playing, and the subwoofer time domain audio signal is sent to the middle and low frequency loudspeaker for playing. Therefore, the method for separating the heavy bass in the embodiment of the invention can improve the sound effect of the medium and low frequency audio signal, thereby enriching the tone and improving the tone quality.
Fig. 2b is a system logic diagram of a method for separating heavy bass according to a second embodiment of the present invention, and in a specific example, as shown in fig. 2b, assuming that an original time domain audio signal is a binaural audio signal 101, the binaural audio signal 101 is combined to form a signal 102. Firstly, low-pass filtering processing is carried out on the signal 102, and a time domain low-frequency signal component 103 is output after filtering. The time domain low frequency signal component 103 is then fourier transformed (FFT) into a low frequency domain signal 104. And then, the low-frequency domain signal 104 is processed by retaining the phase angle to obtain phase angle information 105. And then, performing frequency domain gain control on the low-frequency domain signal 104 to obtain a spectral energy signal 106. Next, the spectral energy signal 106 is subjected to phase angle recovery to avoid phase distortion, and a spectral component 107 is obtained. Finally, the spectral components 107 are subjected to an inverse fourier transform (IFFT) process to obtain a subwoofer time-domain audio signal 108. When playing the audio signals, the left channel audio signal of the two-channel audio signal 101 may be sent to the left channel speaker 10 for playing, the right channel audio signal of the two-channel audio signal 101 may be sent to the right channel speaker 20 for playing, and the sub-bass time domain audio signal 108 may be sent to the mid-bass speaker 30 for playing.
For example, fig. 2c is a schematic diagram of a frequency response curve of an audio signal according to a second embodiment of the present invention. Where 201 is an original time domain audio signal, and 202 is a separated subwoofer time domain audio signal after being processed by the separation method of subwoofer in the embodiment of the present invention. As can be seen from the comparison of the two curves in fig. 2c, after the low frequency extraction and enhancement processing of the embodiment of the present invention, the energy of the curve 202 in the low frequency part (below 700 Hz) is significantly enhanced, which is improved by about 10dB compared to the original time domain audio signal. And the energy of the curve 202 at the middle and high frequency part is quickly attenuated, so that when the low-frequency loudspeaker plays a supper low-frequency time domain audio signal in use, excellent low-frequency experience can be generated, and the problems of interference or noise of middle and high frequencies and the like can be effectively avoided.
EXAMPLE III
Fig. 3 is a schematic diagram of a subwoofer separation apparatus according to a third embodiment of the present invention, as shown in fig. 3, the apparatus includes: a signal filtering module 310, a signal transforming module 320, a gain control module 330, and a signal inverse transforming module 340, wherein:
the signal filtering module 310 is configured to perform low-pass filtering on an original time-domain audio signal to obtain a time-domain low-frequency signal component of the original time-domain audio signal;
a signal transforming module 320, configured to perform fourier transform on the time domain low-frequency signal component, and transform the time domain low-frequency signal component into a low-frequency domain signal;
a gain control module 330, configured to perform frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal;
the signal inverse transformation module 340 is configured to perform inverse fourier transformation on the spectrum energy signal to obtain a subwoofer time domain audio signal;
wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
According to the embodiment of the invention, time domain low-frequency signal components are obtained by low-pass filtering the original time domain audio signals; carrying out Fourier transform on the time domain low-frequency signal component to convert the time domain low-frequency signal component into a low-frequency domain signal; performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal; the method and the device have the advantages that Fourier inverse transformation is carried out on the frequency spectrum energy signal to obtain the bass time domain audio signal, the problems that in the prior art, the hardware cost is increased and the integration difficulty is increased due to the fact that frequency division design is carried out on the loudspeaker box are solved, the hardware cost and the integration difficulty of loudspeaker box equipment are reduced, the requirements of portability and convenience are met, and the auditory experience of audio playing of the loudspeaker box equipment is improved.
Optionally, the apparatus further comprises: a phase angle obtaining module 350, configured to obtain phase angles of the low-frequency domain signal at different frequency points; the signal inverse transformation module 340 is further configured to perform phase angle restoration on the spectral energy signal according to the phase angle to obtain a spectral component, and perform inverse fourier transformation on the spectral component to obtain a subwoofer time domain audio signal.
Optionally, the data format of the low-frequency domain signal x (k) is specifically: x (k) ═ a (k) + b (k) i; where a (k) is a real part, a (k) Re (x (k)), b (k) is an imaginary part, b (k) Im (x (k)), k is a frequency-point value, and i is an imaginary unit.
Optionally, the phase angle obtaining module 350 is further configured to calculate a phase angle of the low-frequency domain signal x (k) at different frequency points k according to the following formula:
wherein, AngleX(k) Is the phase angle.
Optionally, the gain control module 330 is further configured to calculate a low-frequency energy signal E of the low-frequency domain signal x (k) according to the following formulaX(k):
EX(k)=|X(k)|2=Re(X(k))2+Im(X(k))2
For the low-frequency energy signal EX(k) Performing frequency domain gain control processing to obtain the frequency spectrum energy signal E'X(k)。
Optionally, the signal inverse transformation module 340 is further configured to transform the spectrum energy signal E'X(k) Squaring to obtain a modulus of the spectrally subtracted spectral component complex number
Optionally, the original time-domain audio signal includes a two-channel audio signal or a single-channel audio signal; the device further comprises: a signal merging module 360, configured to merge the two-channel audio signal when the original time-domain audio signal is a two-channel audio signal; a signal output module 370, configured to output a first channel audio signal in the original time-domain audio signal to a first speaker, and output a second channel audio signal in the original time-domain audio signal to a second speaker; outputting the subwoofer time domain audio signal to a third speaker.
The above-mentioned separating device for heavy bass can execute the separating method for heavy bass provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the executing method. For technical details that are not described in detail in this embodiment, reference may be made to the method for separating heavy bass provided in any embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of a computer device 412 suitable for use in implementing embodiments of the present invention. The computer device 412 shown in FIG. 4 is only one example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 412 is in the form of a general purpose computing device. Components of computer device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
The computer device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, camera, display 424, etc.), with one or more devices that enable a user to interact with the computer device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, computer device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) through Network adapter 420. As shown, network adapter 420 communicates with the other modules of computer device 412 over bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 412, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing, such as implementing the subwoofer separation method provided by the above-described embodiments of the present invention, by executing programs stored in the storage device 428.
That is, the processing unit implements, when executing the program: carrying out low-pass filtering on an original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal; carrying out Fourier transform on the time domain low-frequency signal component, and converting the time domain low-frequency signal component into a low-frequency domain signal; performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal; carrying out Fourier inverse transformation on the frequency spectrum energy signal to obtain a subwoofer time domain audio signal; wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
Performing low-pass filtering on the original time domain audio signal through the computer equipment to obtain a time domain low-frequency signal component; carrying out Fourier transform on the time domain low-frequency signal component to convert the time domain low-frequency signal component into a low-frequency domain signal; performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal; the method and the device have the advantages that Fourier inverse transformation is carried out on the frequency spectrum energy signal to obtain the bass time domain audio signal, the problems that in the prior art, the hardware cost is increased and the integration difficulty is increased due to the fact that frequency division design is carried out on the loudspeaker box are solved, the hardware cost and the integration difficulty of loudspeaker box equipment are reduced, the requirements of portability and convenience are met, and the auditory experience of audio playing of the loudspeaker box equipment is improved.
EXAMPLE six
An embodiment of the present invention further provides a computer storage medium storing a computer program, which when executed by a computer processor is configured to execute the method for separating heavy and bass sounds according to any one of the above embodiments of the present invention: carrying out low-pass filtering on an original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal; carrying out Fourier transform on the time domain low-frequency signal component, and converting the time domain low-frequency signal component into a low-frequency domain signal; performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal; carrying out Fourier inverse transformation on the frequency spectrum energy signal to obtain a subwoofer time domain audio signal; wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for separating bass, comprising:
carrying out low-pass filtering on an original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal;
carrying out Fourier transform on the time domain low-frequency signal component, and converting the time domain low-frequency signal component into a low-frequency domain signal;
performing frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal;
carrying out Fourier inverse transformation on the frequency spectrum energy signal to obtain a subwoofer time domain audio signal;
wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
2. The method of claim 1, further comprising, after performing a fourier transform on the time-domain low-frequency signal component to convert the time-domain low-frequency signal component into a low-frequency-domain signal:
acquiring phase angles of the low-frequency domain signals at different frequency points;
performing inverse fourier transform on the spectral energy signal to obtain a subwoofer time domain audio signal, including:
and according to the phase angle, after the frequency spectrum energy signal is subjected to phase angle recovery, obtaining a frequency spectrum component, and performing Fourier inverse transformation on the frequency spectrum component to obtain a bass time domain audio signal.
3. The method according to claim 1 or 2, wherein the low frequency domain signal x (k) is in the form of: x (k) ═ a (k) + b (k) i;
where a (k) is a real part, a (k) Re (x (k)), b (k) is an imaginary part, b (k) Im (x (k)), k is a frequency-point value, and i is an imaginary unit.
4. The method of claim 3, wherein obtaining phase angles of the low-frequency domain signals at different frequency points comprises:
calculating the phase angles of the low-frequency domain signal X (k) at different frequency points k according to the following formula:
wherein, AngleX(k) Is the phase angle.
5. The method of claim 3, wherein the performing frequency domain gain control on the low frequency domain signal to obtain a spectral energy signal comprises:
calculating a low-frequency energy signal E of the low-frequency domain signal X (k) according to the following formulaX(k):
EX(k)=|X(k)|2=Re(X(k))2+Im(X(k))2
For the low-frequency energy signal EX(k) Performing frequency domain gain control processing to obtain the frequency spectrum energy signal E'X(k)。
6. The method of claim 5, wherein the phase angle recovering the spectral energy signal to obtain spectral components comprises:
the spectral energy signal E'X(k) Squaring to obtain a modulus of the spectrally subtracted spectral component complex number
7. The method of claim 1, wherein the original time-domain audio signal comprises a two-channel audio signal or a mono audio signal;
before the low-pass filtering the original time-domain audio signal, further comprising:
when the original time domain audio signal is a two-channel audio signal, combining the two-channel audio signal;
correspondingly, after performing inverse fourier transform on the spectral energy signal to obtain a subwoofer time-domain audio signal, the method further includes:
outputting a first channel audio signal in the original time domain audio signal to a first loudspeaker, and outputting a second channel audio signal in the original time domain audio signal to a second loudspeaker;
outputting the subwoofer time domain audio signal to a third speaker.
8. A subwoofer separation device, comprising:
the signal filtering module is used for carrying out low-pass filtering on an original time domain audio signal to obtain a time domain low-frequency signal component of the original time domain audio signal;
the signal transformation module is used for carrying out Fourier transformation on the time domain low-frequency signal component and converting the time domain low-frequency signal component into a low-frequency domain signal;
the gain control module is used for carrying out frequency domain gain control on the low-frequency domain signal to obtain a frequency spectrum energy signal;
the signal inverse transformation module is used for carrying out Fourier inverse transformation on the frequency spectrum energy signal to obtain a subwoofer time domain audio signal;
wherein the low pass filtering, the Fourier transform, the frequency domain gain control, and the inverse Fourier transform are implemented by digital signal processing techniques.
9. A computer device, the device comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a subwoofer separation method as recited in any of claims 1-7.
10. A computer storage medium on which a computer program is stored which, when being executed by a processor, carries out the method of separating heavy bass sounds according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810410040.1A CN108495235B (en) | 2018-05-02 | 2018-05-02 | Method and device for separating heavy and low sounds, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810410040.1A CN108495235B (en) | 2018-05-02 | 2018-05-02 | Method and device for separating heavy and low sounds, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108495235A CN108495235A (en) | 2018-09-04 |
CN108495235B true CN108495235B (en) | 2020-10-09 |
Family
ID=63352626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810410040.1A Active CN108495235B (en) | 2018-05-02 | 2018-05-02 | Method and device for separating heavy and low sounds, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108495235B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113449255B (en) * | 2021-06-15 | 2022-11-11 | 电子科技大学 | Improved method and device for estimating phase angle of environmental component under sparse constraint and storage medium |
CN115494739B (en) * | 2022-11-22 | 2023-01-31 | 广州河东科技有限公司 | Intelligent sound and intelligent home linkage method and linkage system |
CN116388696B (en) * | 2023-06-06 | 2023-08-15 | 苏州华兴源创科技股份有限公司 | Noise signal generation method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1342386A (en) * | 1998-09-04 | 2002-03-27 | Srs实验室公司 | Low-frequency audio enhancement system |
CN101505443A (en) * | 2009-03-13 | 2009-08-12 | 北京中星微电子有限公司 | Virtual supper bass enhancing method and system |
CN101577848A (en) * | 2009-03-12 | 2009-11-11 | 北京中星微电子有限公司 | Supper bass boosting method and system |
CN107274907A (en) * | 2017-07-03 | 2017-10-20 | 北京小鱼在家科技有限公司 | The method and apparatus that directive property pickup is realized in dual microphone equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8976980B2 (en) * | 2011-03-24 | 2015-03-10 | Texas Instruments Incorporated | Modulation of audio signals in a parametric speaker |
-
2018
- 2018-05-02 CN CN201810410040.1A patent/CN108495235B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1342386A (en) * | 1998-09-04 | 2002-03-27 | Srs实验室公司 | Low-frequency audio enhancement system |
CN101577848A (en) * | 2009-03-12 | 2009-11-11 | 北京中星微电子有限公司 | Supper bass boosting method and system |
CN101505443A (en) * | 2009-03-13 | 2009-08-12 | 北京中星微电子有限公司 | Virtual supper bass enhancing method and system |
CN107274907A (en) * | 2017-07-03 | 2017-10-20 | 北京小鱼在家科技有限公司 | The method and apparatus that directive property pickup is realized in dual microphone equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108495235A (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10674262B2 (en) | Merging audio signals with spatial metadata | |
US20160189728A1 (en) | Voice Signal Processing Method and Apparatus | |
US20180213309A1 (en) | Spatial Audio Processing Apparatus | |
US10142763B2 (en) | Audio signal processing | |
CN108495235B (en) | Method and device for separating heavy and low sounds, computer equipment and storage medium | |
EP3542546A1 (en) | Analysis of spatial metadata from multi-microphones having asymmetric geometry in devices | |
CA2959090A1 (en) | A signal processing apparatus for enhancing a voice component within a multi-channel audio signal | |
US9313598B2 (en) | Method and apparatus for stereo to five channel upmix | |
CN109215675B (en) | Howling suppression method, device and equipment | |
CN106797526A (en) | Apparatus for processing audio, methods and procedures | |
US10547927B1 (en) | Systems and methods for processing an audio signal for replay on stereo and multi-channel audio devices | |
KR20220080146A (en) | Subband spatial and crosstalk processing using spectrally orthogonal audio components | |
Goodwin et al. | Multichannel surround format conversion and generalized upmix | |
CN111492669B (en) | Crosstalk cancellation for oppositely facing earspeaker systems | |
EP3599775B1 (en) | Systems and methods for processing an audio signal for replay on stereo and multi-channel audio devices | |
US20120020483A1 (en) | System and method for robust audio spatialization using frequency separation | |
US9706324B2 (en) | Spatial object oriented audio apparatus | |
JP6355049B2 (en) | Acoustic signal processing method and acoustic signal processing apparatus | |
CN111147655B (en) | Model generation method and device | |
US20050152554A1 (en) | Method and apparatus for processing audio signals | |
CN112133316A (en) | Spatial audio representation and rendering | |
CN111145793B (en) | Audio processing method and device | |
US20180197563A1 (en) | Audio signal processing circuit, in-vehicle audio system, audio component device and electronic apparatus including the same, and method of processing audio signal | |
CN117896666A (en) | Method for playback of audio data, electronic device and storage medium | |
CN115835120A (en) | Audio signal processing method, device, equipment and storage medium |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210520 Address after: 201210 4 / F, building 1, 701 Naxian Road, Shanghai pilot Free Trade Zone, Pudong New Area, Shanghai, China Patentee after: Shanghai Xiaodu Technology Co.,Ltd. Address before: 100012 3rd floor, building 10, No.18 ziyue Road, Chaolai science and Technology Industrial Park, No.1, Laiguangying middle street, Chaoyang District, Beijing Patentee before: AINEMO Inc. |