CN113905310A - Bluetooth audio squeal detection and suppression method, device and medium - Google Patents

Bluetooth audio squeal detection and suppression method, device and medium Download PDF

Info

Publication number
CN113905310A
CN113905310A CN202111494573.0A CN202111494573A CN113905310A CN 113905310 A CN113905310 A CN 113905310A CN 202111494573 A CN202111494573 A CN 202111494573A CN 113905310 A CN113905310 A CN 113905310A
Authority
CN
China
Prior art keywords
howling
spectral coefficient
current frame
energy
audio
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.)
Granted
Application number
CN202111494573.0A
Other languages
Chinese (zh)
Other versions
CN113905310B (en
Inventor
李强
朱勇
王尧
叶东翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Barrot Wireless Co Ltd
Original Assignee
Barrot Wireless Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Barrot Wireless Co Ltd filed Critical Barrot Wireless Co Ltd
Priority to CN202111494573.0A priority Critical patent/CN113905310B/en
Publication of CN113905310A publication Critical patent/CN113905310A/en
Application granted granted Critical
Publication of CN113905310B publication Critical patent/CN113905310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/02Circuits for transducers, loudspeakers or microphones for preventing acoustic reaction, i.e. acoustic oscillatory feedback

Abstract

The application discloses a method, a device and a medium for detecting and inhibiting howling of Bluetooth audio, belonging to the technical field of Bluetooth and audio processing. The method mainly comprises the following steps: performing howling detection on a current frame audio spectral coefficient in the process of encoding and/or decoding the Bluetooth audio; if howling is detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, setting an inhibition delay count value by using an inhibition delay counter, and attenuating the spectral coefficient energy of the current howling frequency point of a first preset frame number immediately after the current frame audio spectral coefficient; wherein the inhibit delay count value is equal to the first predetermined number of frames. The method and the device have the advantages of strong universality, low complexity, saving calculation power, reducing inherent delay and improving user experience.

Description

Bluetooth audio squeal detection and suppression method, device and medium
Technical Field
The present invention relates to the field of bluetooth and audio processing technologies, and in particular, to a method, an apparatus, and a medium for detecting and suppressing howling of bluetooth audio.
Background
There are many typical application scenarios for wireless audio, such as karaoke based on bluetooth, wireless microphone based on bluetooth, and speaker based on bluetooth. These application scenarios, which may be abstracted from fig. 1 from a data stream perspective, present a closed-loop feedback path from the loudspeaker to the microphone. The existence of the closed loop feedback path can make the system tend to be unstable when the gain is large to a certain state, so that self-oscillation is generated to cause howling.
In the prior art, external equipment is inserted into a closed loop feedback path to realize howling suppression. Specifically, in the prior art, an audio signal is framed in an external device, the audio signal is converted from a time domain to a frequency domain by frames, whether howling occurs to the audio signal is determined based on frequency domain characteristics of the audio signal, and when howling is detected, howling suppression is completed by using a notch filter.
The howling suppression method adopted by the prior art has large calculation amount, certain delay and poor universality.
Disclosure of Invention
To solve the problems in the prior art, the present application mainly provides a method, an apparatus, and a medium for detecting and suppressing a howling of a bluetooth audio.
In order to achieve the above object, the present application adopts a technical solution that: provided is a howling detection and suppression method of Bluetooth audio, which comprises the following steps: performing howling detection on a current frame audio spectral coefficient in the process of encoding and/or decoding the Bluetooth audio; if howling is detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, setting an inhibition delay count value by using an inhibition delay counter, and attenuating the spectral coefficient energy of the current howling frequency point of a first preset frame number immediately after the current frame audio spectral coefficient; wherein the inhibit delay count value is equal to the first predetermined number of frames.
Another technical scheme adopted by the application is as follows: provided is a howling detection and suppression device for Bluetooth audio, including: the system comprises a howling detection module, a data processing module and a data processing module, wherein the howling detection module is used for carrying out howling detection on a current frame audio spectral coefficient in the process of coding and/or decoding the Bluetooth audio; the system comprises a howling suppression module, a data processing module and a data processing module, wherein the howling suppression module is used for attenuating the spectral coefficient energy of a current howling frequency point of a current frame audio spectral coefficient if howling is detected by the current frame audio spectral coefficient, setting a suppression delay count value by using a suppression delay counter, and attenuating the spectral coefficient energy of the current howling frequency point of a first preset frame number immediately after the current frame audio spectral coefficient; wherein the hold-down delay count value is equal to the first predetermined number of frames
Another technical scheme adopted by the application is as follows: a computer-readable storage medium is provided that stores computer instructions operable to perform a howling detection and suppression method for bluetooth audio in scheme one.
The technical scheme of the application can reach the beneficial effects that: the application designs a method, a device and a medium for detecting and inhibiting the squeal of the Bluetooth audio. The method has strong universality and low complexity, and can perform the squeal detection and inhibition of the Bluetooth audio in the Bluetooth coding and decoding without performing redundant time-frequency conversion, thereby saving the calculation power, reducing the inherent delay and improving the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a wireless audio data flow of a howling detection and suppression method for bluetooth audio according to the present application;
fig. 2 is a schematic diagram of an embodiment of a method for detecting and suppressing howling of bluetooth audio according to the present application;
fig. 3 is a diagram illustrating an embodiment of a method for bluetooth audio squeal detection and suppression according to the present application;
fig. 4 is a schematic diagram of an embodiment of a howling detection and suppression device for bluetooth audio according to the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
The following detailed description of the preferred embodiments of the present application, taken in conjunction with the accompanying drawings, will provide those skilled in the art with a better understanding of the advantages and features of the present application, and will make the scope of the present application more clear and definite.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 shows a specific embodiment of a howling detection and suppression method for bluetooth audio according to the present application.
In the embodiment shown in fig. 2, the method for detecting and suppressing howling of bluetooth audio mainly includes step S201, performing howling detection on a current frame audio spectral coefficient in the process of encoding and/or decoding the bluetooth audio;
step S202, if howling is detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, setting an inhibition delay count value by using an inhibition delay counter, and attenuating the spectral coefficient energy of the current howling frequency point of a first preset frame number immediately after the current frame audio spectral coefficient;
wherein the inhibit delay count value is equal to the first predetermined number of frames. According to the specific implementation mode, the howling detection and suppression of the Bluetooth audio are carried out during the Bluetooth coding and decoding, redundant time-frequency conversion is not needed, the calculation amount is reduced, the time delay is reduced, the user experience is improved, and the universality is good.
Specifically, when encoding and decoding the bluetooth audio, the audio spectrum coefficient of the first frame of the audio is defined as not having howling, and the initial value of the suppression delay counter is defined as 0. Further, when the value of the suppression delay counter is 0 and the howling is not detected in the previous frame audio spectral coefficient of the current frame audio spectral coefficient, whether the current frame audio spectral coefficient is howled or not is detected, if the howling is detected in the current frame audio spectral coefficient, the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient is attenuated, and the delay counter is updated according to the suppression delay count value. When the value of the suppression delay counter is not 0, judging whether the current frame audio spectral coefficient is howled or not by using the previous frame audio spectral coefficient of the current frame audio spectral coefficient, if the current frame audio spectral coefficient detects the howling, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, and updating the value of the suppression delay counter according to the suppression delay count value; and if the howling is not detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, and subtracting 1 from the value of the suppression delay counter.
In the embodiment shown in fig. 2, the howling detection and suppression method for bluetooth audio includes step S201, performing howling detection on the current frame audio spectral coefficients during encoding and/or decoding of bluetooth audio. The step lays a foundation for carrying out different howling suppression processing on the current frame according to the howling condition of the current frame audio spectral coefficient by carrying out howling detection on the current frame audio spectral coefficient, and can save calculation power. Meanwhile, howling detection is carried out in the coding and decoding processes, so that extra time-frequency conversion is not needed, an extra howling detection structure is not needed, the method is suitable for more scenes and coders and decoders of different models, the universality is improved, and the calculation power is saved.
Specifically, as shown in fig. 3, when encoding and decoding the bluetooth audio, the howling detection method adopted for the current frame audio spectral coefficient is determined according to the value of the suppression delay counter, and when the value of the suppression delay counter is 0, whether the current frame audio spectral coefficient is howled is determined by using the conventional howling detection method. And when the value of the suppression delay counter is larger than 0, performing fast howling detection by using the current frame audio spectral coefficient and the previous frame audio spectral coefficient of the current frame to judge whether the current frame spectral coefficient is howling or not.
In an embodiment of the application, the step S201 further includes, if the suppression delay count value is 0, determining whether the current frame audio spectral coefficient is howling according to the subband energy of the current frame audio spectral coefficient and a predetermined first energy threshold; and if the suppression delay count value is not 0, judging whether the current frame audio spectral coefficient is howled or not according to the spectral coefficient energy of the howling frequency point of the previous frame of the current frame audio spectral coefficient and the spectral coefficient energy of the frequency point, which is the same as the howling frequency point of the previous frame, in the current frame audio spectral coefficient. Different howling detection methods are adopted for the current frame audio spectrum coefficient according to whether the suppression delay count value is greater than 0, so that the calculation amount can be saved, the time delay caused by howling detection and howling suppression is reduced, and the user experience is improved.
Specifically, when the suppression delay count value is 0, the time-frequency conversion in the audio encoding and decoding process is used to obtain the current frame spectral coefficient, and the subband energy corresponding to the current frame audio spectral coefficient is calculated. For example, in the LC3 codec, a formula is utilized
Figure 733880DEST_PATH_IMAGE001
And
Figure 439668DEST_PATH_IMAGE002
calculating to obtain the audio pedigree of the current frameLow-delay modified discrete cosine transform results of numbers, and using low-delay modified discrete cosine transform results of audio spectral coefficients of current frame and formula
Figure 912850DEST_PATH_IMAGE003
And calculating to obtain the sub-band energy corresponding to the audio frequency spectrum coefficient of the current frame. Wherein
Figure 376192DEST_PATH_IMAGE004
Is the time domain audio signal input to LC3, and x (k) is the discrete cosine transformed spectral coefficients.
Then, the sub-band energies corresponding to the audio spectral coefficients of the current frame are sorted according to their magnitudes, and the maximum value of the sub-band energies corresponding to the audio spectral coefficients of the current frame is selected, for example, in an LC3 audio encoder, if the sub-band with the largest energy has the sequence number of
Figure 455007DEST_PATH_IMAGE005
The value range is
Figure 93930DEST_PATH_IMAGE006
Then the maximum value of the sub-band energy corresponding to the audio spectral coefficient of the current frame is
Figure 599997DEST_PATH_IMAGE007
And finally, comparing the maximum value of the sub-band energy corresponding to the current frame audio spectral coefficient with a first energy threshold, if the maximum value of the sub-band energy corresponding to the current frame audio spectral coefficient is smaller than the first energy threshold, the current frame audio spectral coefficient does not detect howling, and the energy attenuation operation is not performed on the current frame audio spectral coefficient. And if the maximum value of the sub-band energy corresponding to the current frame audio spectral coefficient is not less than the first energy threshold, determining whether the current frame audio spectral coefficient howls or not according to the maximum energy sub-band corresponding to the current frame audio spectral coefficient and the spectral coefficients of the two adjacent sub-bands.
The first energy threshold value can be set according to an empirical value, and a specific value can be set according to requirements, which is not specified in the application. Preferably, the first energy threshold should be expressed by a normalization method for avoiding ambiguity, for example, the first energy threshold is set to 0.005-0.01.
Specifically, when the suppression delay count value is not 0, if the spectral coefficient energy of a frequency point in the current frame of audio spectral coefficients, which is the same as the howling frequency point of the previous frame, is greater than the spectral coefficient energy of the howling frequency point of the previous frame, the current frame of audio spectral coefficients is determined to be howling. That is, when the suppression delay count value is not 0, if the howling frequency point of the audio spectral coefficient of the current frame is the same as the howling frequency point of the audio spectral coefficient of the previous frame of the current frame, and the spectral coefficient energy of the howling frequency point of the audio spectral coefficient of the current frame is increased or unchanged from the spectral coefficient energy of the howling frequency point of the audio spectral coefficient of the previous frame of the current frame, the howling is detected by the audio spectral coefficient of the current frame. By judging the value of the suppression delay counter, the current frame audio spectrum coefficient which can be used for quickly judging whether the howling exists is distinguished, so that the calculation amount during howling detection is reduced, the system delay is reduced, and the user experience is improved.
Step S201 further includes, when the suppression delay count value is 0, if the energy value of the maximum energy subband of the current frame audio spectral coefficient is not less than the first energy threshold, estimating a sine wave frequency and energy thereof corresponding to the howling according to the maximum energy subband and the spectral coefficients of two adjacent frames; and if the sine wave frequency corresponding to the howling in the previous frame audio spectral coefficients of the second preset frame number of the current frame audio spectral coefficients continuously appears and the energy is continuously increased, and the energy of the sine wave frequency corresponding to the howling in the current frame audio spectral coefficients is larger than a preset second energy threshold value, judging the current frame audio spectral coefficients as the howling. Whether the howling is carried out on the audio spectral coefficient of the current frame or not is further detected, the situation that the judgment is inaccurate and the howling frequency point can be found more accurately can be avoided, and a foundation is provided for carrying out accurate energy suppression on the howling frequency point.
Specifically, a sinusoidal oscillation is usually generated when howling occurs, so that it is necessary to estimate a frequency corresponding to the sinusoidal oscillation and an energy corresponding to the frequency to further determine whether the current frame audio spectral coefficient is howling. When the suppression delay count value is 0 andand when the energy value of the maximum energy sub-band of the current frame audio spectral coefficient is not less than the first energy threshold value, estimating the sine wave frequency of the current frame audio spectral coefficient by using the maximum energy sub-band of the current frame and the spectral coefficients of two adjacent frames of audio and calculating the energy corresponding to the sine wave frequency. For example, in LC3 codec, first, the method utilizes
Figure 550636DEST_PATH_IMAGE008
Figure 246191DEST_PATH_IMAGE009
Estimating the amplitude spectrum of the sine wave, wherein X (k) represents the audio spectral coefficient of the current frame, X (k +1) represents the audio spectral coefficient of the next frame of the current frame, X (k-1) represents the audio spectral coefficient of the previous frame of the current frame, and the amplitude spectrum of the sine wave is prevented from exceeding a reasonable range
Figure 739620DEST_PATH_IMAGE010
The following is made:
if it is not
Figure 416589DEST_PATH_IMAGE011
If it is not
Figure 854523DEST_PATH_IMAGE012
The computed amplitude spectrum of the audio spectral coefficients of the current frame is then used to estimate the integer part of the frequency of the corresponding sinusoid, e.g. using a formula
Figure 337457DEST_PATH_IMAGE013
Calculating to obtain an integer part of the frequency of the sine wave, wherein
Figure 626006DEST_PATH_IMAGE014
I.e. an integer part of the frequency of the sine wave.
Further, the energy corresponding to the frequency of the audio spectrum coefficient of the current frame is estimated, for example, the energy corresponding to the frequency of the sine wave is calculated by the following formula,
Figure 801772DEST_PATH_IMAGE015
and finally, after the sine wave frequency and the energy corresponding to the sine wave frequency are obtained through calculation, the current frame audio frequency spectrum coefficient with stable sine wave frequency, continuously rising energy corresponding to the sine wave frequency and energy corresponding to the sine wave frequency larger than a second energy threshold value is judged to be howling. The second energy threshold is a relative value, and can be set according to experience or requirements. Preferably, the second energy threshold is set to 0.1 to 0.2 when the full width of the spectral coefficient is set to 1.
Calculating the energy of the spectral coefficient of the continuous multi-frame audio signal by using the spectral coefficient of the continuous multi-frame audio signal before the current frame, screening out the frequency of the spectral coefficient of the continuous multi-frame audio signal, wherein the frequency of the energy exceeding the threshold value is the same, if so, the sine wave frequency of the audio spectral coefficient of the current frame is stable, and preferably, selecting the continuous 6 frames of audio signals to the continuous 15 frames of audio signals. In the audio encoding and decoding process, the audio signal can be divided into silence, background noise, voice and sine wave, wherein the energy corresponding to the silence and the denoised background noise is very small, and the maximum value of the sub-band energy can be screened out when being compared with the first energy threshold value. The speech is generally divided into unvoiced sound and voiced sound, the unvoiced sound has no obvious periodic characteristic, the fundamental tone in the voiced sound has strong periodic characteristic, but the period of the fundamental tone is slowly changed, and the frequency of the voiced sound is unstable, so that the speech is stable for a short time, and can be screened out after being compared by using multiple frames. But the sine wave frequency in howling is stable and remains unchanged during oscillation. The characteristic of the sine wave can be used for preliminarily screening out the audio frequency spectrum coefficient of the current frame which is possible to generate howling.
When howling occurs, the energy of the howling frequency point is continuously increased, so that the current frame audio frequency spectrum coefficient which is possible to be howled can be further preliminarily screened out by screening whether the energy corresponding to the sine wave frequency is continuously increased or not.
In the specific embodiment shown in fig. 2, the method for detecting and suppressing a howling of a bluetooth audio further includes step S202, if no howling is detected for a current frame of audio spectral coefficients, attenuating spectral coefficient energy of a current howling frequency point of the current frame of audio spectral coefficients, and setting a suppression delay count value by using a suppression delay counter to attenuate spectral coefficient energy of the current howling frequency point of a first predetermined number of frames immediately after the current frame of audio spectral coefficients. The step performs spectral coefficient energy attenuation on the current frame audio spectral coefficient by judging the howling state of the current frame audio spectral coefficient and the value of the inhibition delay counter, so that the calculated amount in the howling inhibition process is reduced, and the processing efficiency is improved.
In a specific embodiment of the present application, the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient is attenuated by 3dB or more, and the specific amount of the attenuated energy is not limited in the present invention.
In an embodiment of the application, the step S202 further includes, if the suppression delay count value is not 0 and howling is not detected in the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame, and subtracting 1 from the suppression delay count value. By setting the suppression delay counter, the predetermined number of audio frames after the audio spectrum number frame of the howling are subjected to sub-band energy attenuation, so that the howling suppression can be more thorough.
Specifically, when the suppression delay count value is 0, only when howling is detected by the current frame audio spectral coefficient, the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient is attenuated, and the suppression delay counter is updated to the suppression delay count value. And when the suppression delay count value is not 0, when howling is detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, updating the suppression delay counter to the suppression delay count value, when howling is not detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, and subtracting 1 from the original suppression delay count value, wherein the value of the suppression delay counter can be determined according to the requirement, and the method is not limited in the application. Specifically, the suppression delay counter needs to be updated to the suppression delay count value whenever the current frame audio spectrum coefficient howling is detected, for example, when the current frame audio spectrum coefficient howling is detected for two consecutive frames, the values of the suppression delay counters corresponding to the two frames are the suppression delay count values.
Fig. 4 shows an embodiment of a howling detection and suppression device for bluetooth audio according to the present invention.
In the embodiment shown in fig. 4, the apparatus for detecting and suppressing bluetooth audio howling mainly includes: a howling detection module 401, configured to perform howling detection on a current frame audio spectral coefficient in a process of encoding and/or decoding a bluetooth audio;
a howling suppression module 402, configured to attenuate, if howling is detected for a current frame audio spectral coefficient, spectral coefficient energy of a current howling frequency point of the current frame audio spectral coefficient, set a suppression delay count value by using a suppression delay counter, and attenuate, by a first predetermined number of frames immediately after the current frame audio spectral coefficient, spectral coefficient energy of the current howling frequency point;
wherein the inhibit delay count value is equal to the first predetermined number of frames. According to the specific embodiment, the Bluetooth coding and decoding are utilized to perform howling detection and howling inhibition, so that repetitive time-frequency conversion in the prior art during the howling detection and inhibition of the Bluetooth audio is avoided, the calculation amount is reduced, the time delay is reduced, the user experience is improved, and the universality is good.
In a specific embodiment of the present application, the howling detection module further includes a module, configured to determine whether the current frame audio spectral coefficient is howling according to subband energy of the current frame audio spectral coefficient and a predetermined first energy threshold if the suppression delay count value is 0;
and the module is used for judging whether the current frame audio spectral coefficient is howled or not according to the spectral coefficient energy of the howling frequency point of the previous frame of the current frame audio spectral coefficient and the spectral coefficient energy of the frequency point, which is the same as the howling frequency point of the previous frame, in the current frame audio spectral coefficient if the suppression delay count value is not 0.
The howling detection and suppression device for bluetooth audio provided by the present application may be used to execute the howling detection and suppression method for bluetooth audio described in any of the above embodiments, and its implementation principle and technical effect are similar, and are not described herein again.
In another particular embodiment of the present application, a computer readable storage medium stores computer instructions operable to perform the howling detection and suppression method for bluetooth audio described in the above embodiments.
In a specific embodiment of the present application, the functional blocks in the howling detection and suppression method for bluetooth audio may be directly in hardware, in a software module executed by a processor, or in a combination of the two.
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
The Processor may be a Central Processing Unit (CPU), other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), other Programmable logic devices, discrete Gate or transistor logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all equivalent structural changes made by using the contents of the specification and the drawings, which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (8)

1. A howling detection and suppression method for Bluetooth audio, comprising:
performing howling detection on a current frame audio spectral coefficient in the process of encoding and/or decoding the Bluetooth audio;
if howling is detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame audio spectral coefficient, setting an inhibition delay count value by using an inhibition delay counter, and attenuating the spectral coefficient energy of the current howling frequency point of a first preset frame number immediately after the current frame audio spectral coefficient;
wherein the inhibit delay count value is equal to the value of the first predetermined number of frames.
2. The method of claim 1, wherein the howling detection of the current frame audio spectral coefficients during the encoding and/or decoding of the Bluetooth audio comprises,
if the suppression delay count value is 0, judging whether the current frame audio spectral coefficient is howling or not according to the sub-band energy of the current frame audio spectral coefficient and a preset first energy threshold value;
if the suppression delay count value is not 0, judging whether the current frame audio spectral coefficient is howled or not according to the spectral coefficient energy of the howling frequency point of the previous frame of the current frame audio spectral coefficient and the spectral coefficient energy of the frequency point, which is the same as the howling frequency point of the previous frame, in the current frame audio spectral coefficient.
3. The method of Bluetooth audio squeal detection and suppression according to claim 1, further comprising,
and if the suppression delay count value is not 0 and howling is not detected by the current frame audio spectral coefficient, attenuating the spectral coefficient energy of the current howling frequency point of the current frame and subtracting 1 from the suppression delay count value.
4. The method of claim 2, wherein the step of determining whether the current frame audio spectral coefficient is howling according to the sub-band energy of the current frame audio spectral coefficient and a predetermined first energy threshold comprises,
if the energy value of the maximum energy sub-band of the audio spectral coefficient of the current frame is not less than the first energy threshold, estimating the sine wave frequency and the energy thereof corresponding to the howling according to the maximum energy sub-band and the spectral coefficients of the two adjacent sub-bands;
and if the sine wave frequency corresponding to the howling in the previous frame audio frequency spectral coefficients of the second preset frame number of the current frame audio frequency spectral coefficients continuously appears and the energy is continuously increased, and the energy of the sine wave frequency corresponding to the howling in the current frame audio frequency spectral coefficients is larger than a preset second energy threshold, judging the current frame audio frequency spectral coefficients as the howling.
5. The method for detecting and suppressing the howling of the bluetooth audio as claimed in claim 2, wherein the step of determining whether the current frame audio spectral coefficient is howling according to the spectral coefficient energy of the howling frequency point of the previous frame of the current frame audio spectral coefficient and the spectral coefficient energy of the frequency point in the current frame audio spectral coefficient which is the same as the howling frequency point of the previous frame comprises,
and if the spectral coefficient energy of the frequency point in the audio spectral coefficient of the current frame, which is the same as the howling frequency point of the previous frame, is greater than the spectral coefficient energy of the howling frequency point of the previous frame, judging the audio spectral coefficient of the current frame as howling.
6. A howling detection and suppression apparatus for bluetooth audio, comprising:
the system comprises a howling detection module, a data processing module and a data processing module, wherein the howling detection module is used for carrying out howling detection on a current frame audio spectral coefficient in the process of coding and/or decoding the Bluetooth audio;
a howling suppression module, configured to attenuate, if howling is detected for the current frame audio spectral coefficient, spectral coefficient energy of a current howling frequency point of the current frame audio spectral coefficient, set a suppression delay count value by using a suppression delay counter, and attenuate, by a first predetermined number of frames immediately after the current frame audio spectral coefficient, the spectral coefficient energy of the current howling frequency point;
wherein the inhibit delay count value is equal to the value of the first predetermined number of frames.
7. The Bluetooth audio howling detection and suppression device as claimed in claim 6, wherein the howling detection module further comprises,
a module configured to determine whether the current frame audio spectral coefficient howling occurs according to the sub-band energy of the current frame audio spectral coefficient and a predetermined first energy threshold if the suppression delay count value is 0;
and if the suppression delay count value is not 0, judging whether the current frame audio spectral coefficient is howled or not according to the spectral coefficient energy of the howling frequency point of the previous frame of the current frame audio spectral coefficient and the spectral coefficient energy of the frequency point, which is the same as the howling frequency point of the previous frame, in the current frame audio spectral coefficient.
8. A computer readable storage medium storing computer instructions, wherein the computer instructions are operable to perform the method of bluetooth audio squeal detection and suppression of any one of claims 1-5.
CN202111494573.0A 2021-12-09 2021-12-09 Bluetooth audio squeal detection and suppression method, device and medium Active CN113905310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111494573.0A CN113905310B (en) 2021-12-09 2021-12-09 Bluetooth audio squeal detection and suppression method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111494573.0A CN113905310B (en) 2021-12-09 2021-12-09 Bluetooth audio squeal detection and suppression method, device and medium

Publications (2)

Publication Number Publication Date
CN113905310A true CN113905310A (en) 2022-01-07
CN113905310B CN113905310B (en) 2022-03-01

Family

ID=79025762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111494573.0A Active CN113905310B (en) 2021-12-09 2021-12-09 Bluetooth audio squeal detection and suppression method, device and medium

Country Status (1)

Country Link
CN (1) CN113905310B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1302296C (en) * 1988-08-23 1992-06-02 Jung-Hoon Seo Muting circuit in a digital audio system
CN1398054A (en) * 2001-07-16 2003-02-19 松下电器产业株式会社 Whistler detection and suppresser thereof, its method and computer program products
US20080024216A1 (en) * 2006-06-29 2008-01-31 Realtek Semiconductor Corp. Switching audio power amplifier and method for pop noise suppression
CN105812993A (en) * 2014-12-29 2016-07-27 联芯科技有限公司 Howling detection and suppression method and device
US20210136230A1 (en) * 2017-09-29 2021-05-06 Dolby Laboratories Licensing Corporation Howl detection in conference systems
CN113724725A (en) * 2021-11-04 2021-11-30 北京百瑞互联技术有限公司 Bluetooth audio squeal detection suppression method, device, medium and Bluetooth device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1302296C (en) * 1988-08-23 1992-06-02 Jung-Hoon Seo Muting circuit in a digital audio system
CN1398054A (en) * 2001-07-16 2003-02-19 松下电器产业株式会社 Whistler detection and suppresser thereof, its method and computer program products
US20080024216A1 (en) * 2006-06-29 2008-01-31 Realtek Semiconductor Corp. Switching audio power amplifier and method for pop noise suppression
CN105812993A (en) * 2014-12-29 2016-07-27 联芯科技有限公司 Howling detection and suppression method and device
US20210136230A1 (en) * 2017-09-29 2021-05-06 Dolby Laboratories Licensing Corporation Howl detection in conference systems
CN113724725A (en) * 2021-11-04 2021-11-30 北京百瑞互联技术有限公司 Bluetooth audio squeal detection suppression method, device, medium and Bluetooth device

Also Published As

Publication number Publication date
CN113905310B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US11694711B2 (en) Post-processing gains for signal enhancement
JP6412132B2 (en) Voice activity detection method and apparatus
JP6793706B2 (en) Methods and devices for detecting audio signals
Moattar et al. A simple but efficient real-time voice activity detection algorithm
KR102110212B1 (en) Method and apparatus for controlling audio frame loss concealment
US6523003B1 (en) Spectrally interdependent gain adjustment techniques
US7957965B2 (en) Communication system noise cancellation power signal calculation techniques
CN113724725B (en) Bluetooth audio squeal detection suppression method, device, medium and Bluetooth device
CN113870885B (en) Bluetooth audio squeal detection and suppression method, device, medium, and apparatus
US10839820B2 (en) Voice processing method, apparatus, device and storage medium
CN112735449A (en) Audio coding method and device for optimizing frequency domain noise shaping
JP4551817B2 (en) Noise level estimation method and apparatus
CN113905310B (en) Bluetooth audio squeal detection and suppression method, device and medium
CN113921023A (en) Bluetooth audio squeal suppression method, device, medium and Bluetooth equipment
CN113205826B (en) LC3 audio noise elimination method, device and storage medium
CN114420148B (en) Howling detection and suppression method, device, medium and equipment
US9928841B2 (en) Method of packet loss concealment in ADPCM codec and ADPCM decoder with PLC circuit
Wang et al. Analysis and low-power hardware implementation of a noise reduction algorithm
CN114067814B (en) Howling detection and suppression method and device based on Bluetooth audio receiver
CN116884423A (en) Reverberation detection and suppression method, system, medium and equipment
CN116741201A (en) Howling detection method, system, decoding method and decoder of audio receiving end
Farsi et al. Improving voice activity detection used in ITU-T G. 729. B
CN116805999A (en) Howling detection method, system, coding method and coder of audio transmitting end
CN116978391A (en) Audio coding method, system, encoder, medium and equipment
CN115527550A (en) Single-microphone subband domain noise reduction method and system

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: A1009, floor 9, block a, No. 9, Shangdi Third Street, Haidian District, Beijing 100085

Patentee after: Beijing Bairui Internet Technology Co.,Ltd.

Address before: A1009, floor 9, block a, No. 9, Shangdi Third Street, Haidian District, Beijing 100085

Patentee before: BARROT WIRELESS Co.,Ltd.