Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an acoustic amplification system according to an embodiment of the present application. When acoustic feedback is not considered, the near-end voice signal 201 is picked up by the microphone 202 to obtain an input signal 203 (205), the input signal is acted by the power amplification forward gain unit 206 to obtain an amplified signal 207, the amplified signal is played by the loudspeaker 208 to obtain an amplified output signal 209, and the output signal 209 is more easily received by human ears compared with the voice signal 201. When acoustic feedback is considered, the amplified output signal 209 is passed through an acoustic feedback loop 210 to form a feedback speech signal 211, and the feedback speech signal 211 is picked up by the microphone 202 to form a closed loop. When the forward gain 206 and acoustic feedback loop 210 of the power amplifier meet the nyquist criterion, the system tends to be unstable, resulting in howling. The sound reinforcement system 20 in fig. 2 adds a howling detection module 212 and a filtering system module 204 to the original sound reinforcement system 10, so as to filter the input signal 203 containing howling and output the output signal 209 without howling. The howling detection module 212 detects the input signal 203 of the microphone 202, and if a howling component is detected, outputs a suppression parameter 213 to the filtering system 204, the input signal 203 is filtered by the filtering system 204 and then outputs a howling suppressed signal 205, and an amplified signal 207 is obtained after the input signal is filtered by the filtering system 204 and then is played by the loudspeaker 208 to obtain an output voice 209. If no howling component is detected, a command or corresponding suppression parameter 213 is output to the filtering system 204 without filtering the input signal 203, and the input signal of the forward gain 206 is the input signal 203 of the microphone 202.
Referring to fig. 3, fig. 3 is a flowchart illustrating a howling suppression method according to an embodiment of the present application. The method is applied to an electronic device or a chip in the electronic device, and specifically, as shown in fig. 3, fig. 3 illustrates an example in which the electronic device is taken as an execution subject of the method. The execution subject of the howling suppression method shown in other figures of the embodiment of the present invention is the same, and will not be described in detail later. The howling suppression method in the embodiment of the application comprises steps 301 to 306:
301. the electronic device receives a first signal input by the microphone.
In the embodiment of the present application, the electronic device may be a mobile phone, a stereo set, or an intercom, which includes a microphone and a microphone. The electronic equipment can amplify the voice signal input by the microphone so as to enable the loudspeaker to output, and a user can hear the voice signal more clearly.
In this embodiment of the present application, the first signal may be a voice signal received by the microphone from the outside, or may also be an audio signal acquired by the microphone through a communication interface or a memory, and the like.
302. The electronic equipment acquires a spectrum signal corresponding to the first signal.
In this embodiment of the present application, step 302 may specifically include: the electronic equipment carries out framing processing on the first signal to obtain a plurality of time domain signals; the electronic device converts the plurality of time domain signals into a plurality of spectral signals. Wherein the framing requires no less than 40 frames per second. The framing processing is beneficial to enable subsequent howling spectrum components to be detected more accurately. The spectrum signals corresponding to the time domain signals of different frames are different, and the different spectrum signals can be distinguished by adopting different frame identifiers.
Optionally, the electronic device may also directly convert the first signal into a frequency spectrum signal, without acquiring a time domain signal first, and the method for acquiring the frequency spectrum signal corresponding to the first signal is not limited in this embodiment of the application.
303. The electronic device determines a howling detection threshold based on a first spectral amplitude, which is a maximum spectral amplitude of the spectral signal within a preset reference frequency band.
In the embodiment of the present application, the preset reference frequency band is generally a low frequency band with a low occurrence probability of howling frequency points. Because the low frequency band with low occurrence probability of the howling frequency point is selected, the situation that the howling in the signal cannot be filtered due to the fact that the spectrum amplitude corresponding to the howling frequency point in the signal is smaller than the howling detection threshold can be avoided. Wherein the predetermined reference frequency band may be determined in two ways, one way being that only one cut-off frequency is determinedf c The predetermined reference band is represented by (0, f c ) (ii) a Alternatively, an initial frequency is determinedf s And cut-off frequencyf c Then the predetermined reference band can be expressed as (f s ,f c ). The embodiment of the present application does not limit how to determine the preset reference frequency band.
In this embodiment, the first spectral amplitude is a maximum spectral amplitude of the spectral signal within a preset reference frequency band. The first spectral amplitude is described using a practical example, such as the graphFig. 4 is a schematic diagram of spectral amplitudes of a spectrum signal according to an embodiment of the present application. Longitudinal axisARepresenting spectral amplitude, horizontal axis, of a spectral signalf i Representing the frequency points of the spectral signal, and the solid line representing the spectral amplitude of the spectral signalA(k,f i ),kIdentified for framing. Setting a predetermined reference band tof s , f c ) According to (f s , f c ) The magnitude of the corresponding spectral amplitude, and, as can be seen,f 0 corresponding to A (k, f 0 ) Is (a)f s , f c ) The maximum value in the corresponding spectral amplitude can thus be determined asA(k, f 0 ) Is the first spectral magnitude.
In one possible implementation, the howling detection threshold is a fixed value. The spectral amplitude of a spectral signal may be formulated asA(k,f i ) The reference band is a band of frequencies (0,f c ) WhereinkIn order to identify the sub-frame,f i are frequency points. The first spectral amplitudeThr_baseCan be expressed by the following formula:
wherein the magnitude of the howling detection threshold is equal to the first spectral amplitude.
In another possible implementation, the howling detection threshold may be a segmentation threshold related to frequency. At this time, the howling detection threshold corresponding to each frequency point may be determined based on the first spectrum amplitude and the first adjustment function. Spectral amplitude of the spectral signal isA(k,f i ) The reference band is a band of frequencies (0,f c ) The first adjusting function isa(k,f i ) The first spectral amplitude isThr_base. The howling detection thresholdThr(k,f i ) Can be used forExpressed by the following formula:
wherein the first adjusting functiona(k,f i ) The following conditions are satisfied:
through the implementation mode, the electronic equipment can set different howling detection threshold values based on different frequencies, and the howling spectrum components can be detected more accurately.
304. The electronic device determines a howling spectral component in the spectral signal based on the howling detection threshold.
In the embodiment of the present application, the howling spectrum component may be one howling frequency point in the spectrum signal, may also be multiple howling frequency points, and may also be a section of howling frequency band, which is not limited in this embodiment of the present application.
In a possible implementation manner, when the howling detection threshold is a fixed value, the specific implementation steps of step 304 are as follows: and if the spectrum amplitude corresponding to the first frequency point is larger than the howling detection threshold, determining that the first spectrum component is the howling spectrum component, wherein the first frequency point is any one or more frequency points of the spectrum signal. By comparing the howling detection threshold with the spectrum amplitudes corresponding to all the frequency points, the howling spectrum components are determined, and the mode can be beneficial to simultaneously detecting the howling or the broadband howling of a plurality of frequency points.
For example, as shown in FIG. 5, the vertical axisARepresenting spectral amplitude, horizontal axis, of a spectral signalf i Representing the frequency points of the spectral signal, and the solid line representing the spectral amplitude of the spectral signalA(k,f i ),kFor framing identification, (f s ,f c ) For presetting a reference frequency band, the howling detection threshold isThr_base. Will be provided withThr_baseComparing the frequency spectrum amplitude corresponding to each frequency point, it can be seen thatf 1 ,f 2 ) The frequency spectrum amplitude corresponding to the inner frequency point is larger thanThr_baseThe amount of the solvent to be used is, for example,f 3 corresponding toA(k,f 3 ) I.e. greater thanThr_base. Thus, the frequency band (f 1 ,f 2 ) Is a howling spectral component.
In another possible implementation manner, when the howling detection threshold is a segmentation threshold related to frequency, the specific implementation steps of step 304 are: and if the spectrum amplitude corresponding to the first frequency point is larger than the howling detection threshold corresponding to the first frequency point, determining that the first frequency point is the howling spectrum component, and the first frequency point is any one or more frequency points of the spectrum signal. By comparing the howling detection threshold and the spectrum amplitude corresponding to all the frequency points, the howling spectrum component is determined, and the mode can be beneficial to simultaneously detecting the howling or the broadband howling of a plurality of frequency points. In addition, since the howling detection threshold is a frequency-dependent segment threshold, the howling spectrum component in the spectrum signal can be detected more accurately.
For example, as shown in FIG. 6, the longitudinal axisARepresenting spectral amplitude, horizontal axisf i Representing frequency points, solid linesA(k,f i )Representing the spectral amplitude of the spectral signal, dashed lineThr(k,f i ) And indicating the howling detection threshold corresponding to each frequency point. Whistling detection thresholdThr(k,f i ) Compared with the spectral amplitude of the spectral signal, see (f 1,f 2 ) The frequency spectrum amplitude corresponding to the frequency point in the frequency range is greater than (f 1 ,f 2 ) The howling detection threshold corresponding to the frequency bin within the spectrum, for example,f 3 corresponding toA(k,f 3 ) I.e. greater thanThr(k,f 3 ). Thus, the frequency band (f 1 ,f 2 ) Is a howling spectral component.
305. The electronic equipment determines a suppression parameter based on the howling detection threshold and the spectral amplitude corresponding to the howling spectral component.
In the embodiment of the present application, the specific implementation manner of step 305 is: determining the suppression parameter corresponding to the howling frequency spectrum component based on the howling detection threshold and the frequency spectrum amplitude corresponding to the howling frequency spectrum component; and determining the suppression parameter corresponding to the frequency points except the howling frequency spectrum component as 1. The suppression parameter corresponding to one frequency point is 1, that is, the frequency point is not a howling frequency point, and the frequency point in the spectrum signal is not processed in the filtering process. If the suppression parameters corresponding to all the frequency points are all 1, it is indicated that no howling frequency spectrum component exists in the frequency spectrum signal, and the signal does not need to be filtered.
Wherein the suppression parameterG(k,f i ) Can be expressed by formula (4) or formula (5):
wherein, the formula (4) is a representation mode of the suppression parameter when the howling detection threshold is a fixed value; equation (5) is a representation of the suppression parameter when the howling detection threshold is a frequency-dependent segmentation threshold.
Optionally, the suppression parameter may also be determined based on the howling detection threshold, the spectral amplitude corresponding to the howling spectral component, and the second adjustment function. If the second adjustment function is expressed asβ(k,f i ) The second adjustment functionβ(k,f i ) Satisfies the condition that the content is more than or equal to 0β(k,f i ) 1, the above formula (4) and formula (5) can alternatively be expressed as formula (6) and formula (7), respectively:
wherein, formula (6) is a representation manner of the suppression parameter when the howling detection threshold is a fixed value; equation (7) is a representation of the suppression parameter when the howling detection threshold is a frequency-dependent segmentation threshold. The suppression parameters determined by the implementation mode are beneficial to more accurately filtering out howling.
306. The electronic device performs filtering processing on the spectrum signal based on the suppression parameter.
In the embodiment of the application, the electronic device performs filtering processing on the spectrum signal based on the suppression parameter, and obtains the spectrum signal after howling suppression after the filtering processing. The howling suppressed spectrum signalA s (k,f i ) Can be expressed as:
through the methods described in the above steps 301 to 306, it can be seen that, since all frequency points except the preset frequency band in the spectrum signal are detected by the howling detection threshold, the method can simultaneously detect the howling or the wideband howling of a plurality of frequency points in the spectrum signal, which is beneficial to suppressing the multi-frequency howling and the wideband howling.
For example, as shown in fig. 7, the upper graph in fig. 7 is a voice signal before howling processing, the sampling rate is 8000 Hz, and the duration is about 6.7 s, wherein the main howling component is indicated by a dashed box. It can be seen that the howling component is distributed in multiple frequencies or wide frequency, the maximum bandwidth is not lower than 1000Hz, and the maximum amplitude is close to the average amplitude of the near-end speech part below 2000 Hz. The lower graph in fig. 7 shows the voice signal after being processed by the howling suppression method proposed in the present application, and it can be seen that all howling components are effectively suppressed with almost no delay. Just because howling is effectively suppressed, no persistent howling component appears in the input speech signal before howling processing. After the howling suppression processing, the near-end voice parts except the howling components are not obviously suppressed or distorted, and the root mean square average value of all spectrum energy is only reduced by about 1dB, which shows that the method is not easy to cause tone quality deterioration while rapidly and effectively suppressing the howling, and has small limitation on system gain.
Referring to fig. 8, fig. 8 is a schematic flowchart of another howling suppression method according to an embodiment of the present application. The howling suppression method comprises steps 801-807. Wherein:
801. the electronic device determines that a maximum spectral amplitude of a signal to be output in the loudspeaker exceeds a preset threshold.
In the embodiment of the application, the maximum spectral amplitude of the signal to be output in the loudspeaker exceeds a preset threshold, which indicates that the signal to be amplified is to output a signal with a larger spectral amplitude, and the output signal may be picked up by a microphone of the electronic device to form acoustic feedback, so that howling occurs. By limiting the execution of howling suppression processing in this case, it is advantageous to reduce the calculation and to further achieve protection of the input signal in silent feedback, for example, when the loudspeaker of the electronic device is not outputting a signal, no acoustic feedback is formed and howling does not occur, so that howling suppression processing is not necessary.
In addition to meeting the requirement that the maximum spectral amplitude of the signal to be output exceeds the preset threshold, the signal to be output in the loudspeaker may also meet other preset requirements and then perform howling suppression processing, for example, the average spectral amplitude of the signal to be output exceeds the preset threshold, which is not limited in the embodiment of the present application.
The implementation mode is very suitable for application scenes of the mobile communication terminal. As shown in fig. 9, the first electronic device and the second electronic device may be a terminal device, an intercom, or the like. If the users of the first electronic device and the second electronic device are carrying out voice communication, the voice signal received by the microphone of the first electronic device is processed by the processor and then transmitted to the second electronic device, the processed voice signal is output by the microphone of the second electronic device, and the processing mode of the voice signal received by the microphone of the second electronic device is the same as the processing mode of the voice signal received by the microphone of the second electronic device. In this scenario, if the user of the second electronic device does not make a sound, the loudspeaker of the first electronic device does not need to output a signal, i.e., for the first electronic device, there is no acoustic feedback in this case, and howling does not occur. However, if the user of the first electronic device is speaking, and the processor of the first electronic device performs howling suppression processing on the voice signal input by the microphone, this may have a certain effect on the audio quality of the voice signal. Therefore, if the spectral amplitude of the signal to be output does not exceed the preset threshold, it indicates that the amplitude of the signal output by the loudspeaker is small or almost zero at this time, and in this case, there is no acoustic feedback, and there is no need to perform howling suppression processing on the input voice signal. By performing howling suppression processing on the condition that the maximum spectral amplitude of a signal to be output in the loudspeaker exceeds a preset threshold, it is beneficial to further realize protection of an input signal during silent feedback while reducing calculation.
802. The electronic device receives a first signal input by the microphone.
803. The electronic equipment acquires a spectrum signal corresponding to the first signal.
804. The electronic device determines a howling detection threshold based on a first spectral amplitude, which is a maximum spectral amplitude of the spectral signal within a preset reference frequency band.
805. The electronic device determines a howling spectral component in the spectral signal based on the howling detection threshold.
806. The electronic equipment determines a suppression parameter based on the howling detection threshold and the spectral amplitude corresponding to the howling spectral component.
807. The electronic device performs filtering processing on the spectrum signal based on the suppression parameter.
The specific implementation manners of steps 802 to 807 are the same as those of steps 301 to 306, and are not described herein again.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device may be a terminal device, a sound device, or the like. The electronic device 100 includes a processor 1010, a microphone 1020, a microphone 1030, and a memory 1040.
The Processor 1010 may be a Central Processing Unit (CPU), and the Processor 1010 may be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), off-the-shelf Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor, and optionally, the processor 1010 may be any conventional processor or the like.
Memory 1040 may include both read-only memory and random-access memory, and provides instructions and data to processor 1010. A portion of the memory 1040 may also include non-volatile random access memory.
Optionally, the electronic device 100 may further include a device other than the above-described device, such as a communication interface, which is not limited in this embodiment.
Wherein:
a processor 1010 for invoking program instructions stored in memory 1040.
A microphone 1020 for outputting the processed audio signal.
And a microphone 1030 for acquiring an audio signal.
A memory 1040 for storing program instructions.
The processor 1010 invokes program instructions stored in the memory 1040 to cause the electronic device 100 to perform the following operations: receiving a first signal input by the microphone 1030; acquiring a frequency spectrum signal corresponding to the first signal; determining a howling detection threshold based on a first spectrum amplitude, wherein the first spectrum amplitude is the maximum spectrum amplitude of the spectrum signal in a preset reference frequency band; determining a howling spectrum component in the spectrum signal based on the howling detection threshold; determining a suppression parameter based on the howling detection threshold and the spectral amplitude corresponding to the howling spectral component; and carrying out filtering processing on the spectrum signal based on the suppression parameter.
Fig. 11 shows an apparatus 110 for implementing the functions of the electronic device in fig. 3 and fig. 8 according to an embodiment of the present application. The apparatus may be an electronic device or an apparatus for an electronic device. The means for the electronic device may be a system of chips or a chip within the electronic device. The chip system may be composed of a chip, or may include a chip and other discrete devices. The apparatus 110 shown in fig. 11 may include a howling detection module 1101 and a howling filtering module 1102, where: a howling detection module 1101, configured to receive a first signal input by a microphone; a howling detection module 1101, further configured to obtain a spectrum signal corresponding to the first signal; the howling detection module 1101 is further configured to determine a howling detection threshold based on a first spectrum amplitude, where the first spectrum amplitude is a maximum spectrum amplitude of the spectrum signal within a preset reference frequency band; a howling detection module 1101, configured to determine a howling spectrum component in the spectrum signal based on the howling detection threshold; a howling detection module 1101, configured to determine a suppression parameter based on the howling detection threshold and a spectrum amplitude corresponding to the howling spectrum component; a howling filtering module 1102, configured to perform filtering processing on the spectrum signal based on the suppression parameter.
In a possible implementation manner, the howling detection module 1101 is further configured to determine that the first spectrum component is the howling spectrum component if the spectrum amplitude corresponding to the first frequency point is greater than the howling detection threshold, where the first frequency point is any one or more frequency points of the spectrum signal.
In a possible implementation manner, the howling detection module 1101 is further configured to determine the howling detection threshold corresponding to each frequency point based on the first spectrum amplitude and the first adjustment function.
In a possible implementation manner, the howling detection module 1101 is further configured to determine that the first frequency point is the howling spectrum component if the spectrum amplitude corresponding to the first frequency point is greater than the howling detection threshold corresponding to the first frequency point, where the first frequency point is any one or more frequency points of the spectrum signal.
In a possible implementation manner, the howling detection module 1101 is further configured to determine the suppression parameter corresponding to the howling spectrum component based on the howling detection threshold and the spectrum amplitude corresponding to the howling spectrum component;
and determining the suppression parameter corresponding to the frequency points except the howling frequency spectrum component as 1.
In a possible implementation manner, the howling detection module 1101 is further configured to determine the suppression parameter corresponding to the howling spectrum component based on the howling detection threshold, the spectrum amplitude corresponding to the howling spectrum component, and a second adjustment function.
In one possible implementation, the apparatus further includes a framing module and a frequency domain analysis module. The framing module is used for framing the first signal to obtain a plurality of time domain signals; the frequency domain analysis and conversion module is used for converting the plurality of time domain signals into a plurality of frequency spectrum signals.
In a possible implementation manner, the howling detection module 1101 is further configured to determine that a maximum spectral amplitude of a signal to be output in the loudspeaker exceeds a preset threshold.
The above-mentioned means may be, for example: a chip, or a chip module. Each module included in each apparatus and product described in the above embodiments may be a software module, a hardware module, or a part of the software module and a part of the hardware module. For example, for each device or product applied to or integrated in a chip, each module included in the device or product may be implemented by hardware such as a circuit, or at least a part of the modules may be implemented by a software program running on a processor integrated in the chip, and the rest (if any) part of the modules may be implemented by hardware such as a circuit; for each device and product applied to or integrated with the chip module, each module included in the device and product may be implemented in a hardware manner such as a circuit, and different modules may be located in the same component (e.g., a chip, a circuit module, etc.) or different components of the chip module, or at least a part of the modules may be implemented in a software program running on a processor integrated within the chip module, and the rest (if any) part of the modules may be implemented in a hardware manner such as a circuit; for each device and product applied to or integrated in the terminal, each module included in the device and product may be implemented by using hardware such as a circuit, different modules may be located in the same component (e.g., a chip, a circuit module, etc.) or different components in the terminal, or at least a part of the modules may be implemented by using a software program running on a processor integrated in the terminal, and the rest (if any) part of the modules may be implemented by using hardware such as a circuit.
The embodiment of the present application further provides a chip, where the chip can perform the relevant steps of the electronic device in the foregoing method embodiment. The chip is used for:
receiving a first signal input by a microphone; acquiring a frequency spectrum signal corresponding to the first signal; determining a howling detection threshold based on a first spectrum amplitude, wherein the first spectrum amplitude is the maximum spectrum amplitude of the spectrum signal in a preset reference frequency band; determining a howling spectrum component in the spectrum signal based on the howling detection threshold; determining a suppression parameter based on the howling detection threshold and the spectral amplitude corresponding to the howling spectral component; and carrying out filtering processing on the spectrum signal based on the suppression parameter.
In a possible implementation manner, the chip is further configured to determine that the first spectrum component is the howling spectrum component if the spectrum amplitude corresponding to the first frequency point is greater than the howling detection threshold, where the first frequency point is any one or more frequency points of the spectrum signal.
In a possible implementation manner, the chip is further configured to determine the howling detection threshold corresponding to each frequency point based on the first spectrum amplitude and the first adjustment function.
In a possible implementation manner, the chip is further configured to determine that the first frequency point is the howling spectrum component if the spectrum amplitude corresponding to the first frequency point is greater than the howling detection threshold corresponding to the first frequency point, where the first frequency point is any one or more frequency points of the spectrum signal.
In a possible implementation manner, the chip is further configured to determine the suppression parameter corresponding to the howling spectrum component based on the howling detection threshold and the spectrum amplitude corresponding to the howling spectrum component; and determining the suppression parameter corresponding to the frequency points except the howling frequency spectrum component as 1.
In a possible implementation manner, the chip is further configured to determine the suppression parameter corresponding to the howling spectrum component based on the howling detection threshold, the spectrum amplitude corresponding to the howling spectrum component, and a second adjustment function.
In a possible implementation manner, the first signal is subjected to framing processing to obtain a plurality of time domain signals; the plurality of time domain signals are converted into a plurality of spectral signals.
In one possible implementation, the chip is further configured to determine that a maximum spectral amplitude of a signal to be output in the loudspeaker exceeds a preset threshold.
As shown in fig. 12, fig. 12 is a schematic structural diagram of a module device according to an embodiment of the present application. The module device 120 can perform the steps related to the terminal device in the foregoing method embodiments, and the module device 120 includes: a communication module 1201, a power module 1202, a memory module 1203, and a chip module 1204.
The power module 1202 is configured to provide power for the module device; the storage module 1203 is used for storing data and instructions; the communication module 1201 is used for performing module device internal communication, or for performing communication between the module device and an external device; the chip module 1204 is configured to:
receiving a first signal input by a microphone; acquiring a frequency spectrum signal corresponding to the first signal; determining a howling detection threshold based on a first spectrum amplitude, wherein the first spectrum amplitude is the maximum spectrum amplitude of the spectrum signal in a preset reference frequency band; determining a howling spectrum component in the spectrum signal based on the howling detection threshold; determining a suppression parameter based on the howling detection threshold and the spectral amplitude corresponding to the howling spectral component; and carrying out filtering processing on the spectrum signal based on the suppression parameter.
In a possible implementation manner, the chip module 1204 is further configured to determine that the first spectrum component is the howling spectrum component if the spectrum amplitude corresponding to the first frequency point is greater than the howling detection threshold, where the first frequency point is any one or more frequency points of the spectrum signal.
In a possible implementation manner, the chip module 1204 is further configured to determine the howling detection threshold corresponding to each frequency point based on the first spectrum amplitude and the first adjustment function.
In a possible implementation manner, the chip module 1204 is further configured to determine that the first frequency point is the howling spectrum component if the spectrum amplitude corresponding to the first frequency point is greater than the howling detection threshold corresponding to the first frequency point, where the first frequency point is any one or more frequency points of the spectrum signal.
In a possible implementation manner, the chip module 1204 is further configured to determine the suppression parameter corresponding to the howling spectrum component based on the howling detection threshold and the spectrum amplitude corresponding to the howling spectrum component; and determining the suppression parameter corresponding to the frequency points except the howling frequency spectrum component as 1.
In a possible implementation manner, the chip module 1204 is further configured to determine the suppression parameter corresponding to the howling spectrum component based on the howling detection threshold, the spectrum amplitude corresponding to the howling spectrum component, and a second adjustment function.
In a possible implementation manner, the chip module 1204 is further configured to perform framing processing on the first signal to obtain a plurality of time domain signals; the plurality of time domain signals are converted into a plurality of spectral signals.
In one possible implementation, the chip module 1204 is further configured to determine that a maximum spectral amplitude of a signal to be output in the microphone exceeds a preset threshold.
Embodiments of the present application further provide a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is executed on a processor, the method flow of the above method embodiments is implemented.
Embodiments of the present application further provide a computer program product, where when the computer program product runs on a processor, the method flow of the above method embodiments is implemented.
It is noted that, for simplicity of explanation, the foregoing method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some acts may, in accordance with the present application, occur in other orders and/or concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The descriptions of the embodiments provided in the present application may be referred to each other, and the descriptions of the embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. For convenience and brevity of description, for example, the functions and operations performed by the devices and apparatuses provided in the embodiments of the present application may refer to the related descriptions of the method embodiments of the present application, and may also be referred to, combined with or cited among the method embodiments and the device embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.