Howling suppression method, hearing aid, and storage medium
The present disclosure relates to a howling suppression method. The method includes obtaining audio data and obtaining a first sub-band signal of frame signal in the audio data. The method further includes obtaining a second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal in response that the first sub-band signal is the first howling sub-band signal, and suppressing the howling frame signal in response that the second sub-band signal is the second howling sub-band signal and in response that the frame signal is the howling frame signal.
1 . A howling suppression method, the method comprising:
obtaining audio data;
obtaining a first sub-band signal of a frame signal in the audio data according to the audio data;
determining whether the first sub-band signal is a first howling sub-band signal, comprising: obtaining an energy value of the first sub-band signal according to the first sub-band signal of the frame signal, and comparing the energy value of the first sub-band signal with a preset energy threshold;
in response that the first sub-band signal is the first howling sub-band signal, obtaining a second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal;
determining whether the second sub-band signal is a second howling sub-band signal;
in response that the second sub-band signal is the second howling sub-band signal, determining whether the frame signal is a howling frame signal according to the second howling sub-band signal; and
suppressing the howling frame signal in response that the frame signal is the howling frame signal.
2 . The howling suppression method according to claim 1 , wherein the obtaining the first sub-band signal of the frame signal in the audio data according to the audio data comprises:
obtaining an audio sampling rate according to the audio data;
obtaining frame information according to the audio sampling rate;
obtaining frequency information according to the audio data;
dividing the audio data into audio signals of different preset frequency ranges according to the frequency information;
obtaining a first sub-band signal set by assigning each of the audio signals of different preset frequency ranges to corresponding first channel; and
obtaining the first sub-band signal of the frame signal according to the frame information and the first sub-band signal set.
3 . The howling suppression method according to claim 1 , wherein in response that the first sub-band signal is the first howling sub-band signal, obtaining the second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal comprises:
in response that the first sub-band signal is the first howling sub-band signal, dividing the first howling sub-band signal into first howling sub-band signals of different preset howling frequency ranges;
obtaining a second sub-band signal set by assigning each of the first howling sub-band signals of different preset howling frequency ranges to corresponding second channel; and
obtaining second sub-band signals according to the second sub-band signal set.
4 . The howling suppression method according to claim 1 , wherein the determining whether the second sub-band signal is the second howling sub-band signal comprises:
obtaining an energy value of the second sub-band signal according to the second sub-band signal and obtaining a target second sub-band signal with a largest energy value;
obtaining two energy values of two second sub-band signals adjacent to the target second sub-band signal;
calculating an energy ratio of two adjacent second sub-band signals and the target second sub-band signal according to the energy value of the target second sub-band signal and the two energy values of the two adjacent second sub-band signals; and
determining whether the target second sub-band signal is the second howling sub-band signal by comparing the energy ratio with a preset energy ratio.
5 . The howling suppression method according to claim 4 , wherein in response that the second sub-band signal is the second howling sub-band signal, the determining whether the frame signal is the howling frame signal according to the second howling sub-band signal comprises:
determining that the target second sub-band signal is the second howling sub-band signal in response to the energy ratio being greater than the preset energy ratio;
obtain a marked frame signal by marking the second howling sub-band signal; and
determining whether the frame signal is the howling frame signal according to the marked frame signal.
6 . The howling suppression method according to claim 1 , wherein the suppressing the howling frame signal in response that the frame signal is the howling frame signal comprises:
in response that the frame signal is the howling frame signal, obtaining a second howling suppression sub-band signal by setting the second howling sub-band signal of the howling frame signal as a preset value to suppress the howling frame signal;
obtaining the first howling suppression sub-band signal by combining the second howling suppression sub-band signal with other second sub-band signals; and
obtaining howling suppression audio data by combining the first howling suppression sub-band signal with other first sub-band signals.
7 . A howling suppression apparatus comprising:
an audio acquisition module, is configured to obtain audio data;
a first sub-band acquisition module, is configured to obtain a first sub-band signal of a frame signal in the audio data according to the audio data;
the first sub-band acquisition module, is further configured to determine whether the first sub-band signal is a first howling sub-band signal by obtaining an energy value of the first sub-band signal according to the first sub-band signal of the frame signal, and comparing the energy value of the first sub-band signal with a preset energy threshold;
a second sub-band acquisition module, is configured to obtain a second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal in response that the first sub-band signal is the first howling sub-band signal;
the second sub-band acquisition module, is further configured to determine whether the second sub-band signal is a second howling sub-band signal;
a howling determination module, is configured to determine whether the frame signal is a howling frame signal according to the second howling sub-band signal in response that the second sub-band signal is the second howling sub-band signal; and
the howling determination module, is further configured to suppress the howling frame signal in response that the frame signal is the howling frame signal.
8 . A hearing aid comprising:
a storage device and a processor, the processor executing at least one computer-readable instruction stored in the storage device to implement following functions:
obtaining audio data;
obtaining a first sub-band signal of a frame signal in the audio data according to the audio data;
determining whether the first sub-band signal is a first howling sub-band signal, comprising: obtaining an energy value of the first sub-band signal according to the first sub-band signal of the frame signal, and comparing the energy value of the first sub-band signal with a preset energy threshold;
in response that the first sub-band signal is the first howling sub-band signal, obtaining a second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal;
determining whether the second sub-band signal is a second howling sub-band signal;
in response that the second sub-band signal is the second howling sub-band signal, determining whether the frame signal is a howling frame signal according to the second howling sub-band signal; and
suppressing the howling frame signal in response that the frame signal is the howling frame signal.
9 . The hearing aid according to claim 8 , wherein the obtaining the first sub-band signal of frame signal in the audio data according to the audio data, the processor executing at least one computer-readable instruction to implement following functions:
obtaining an audio sampling rate according to the audio data;
obtaining frame information according to the audio sampling rate;
obtaining frequency information according to the audio data;
dividing the audio data into audio signals of different preset frequency ranges according to the frequency information;
obtaining a first sub-band signal set by assigning each of the audio signals of different preset frequency ranges to corresponding first channel; and
obtaining the first sub-band signal of the frame signal according to the frame information and the first sub-band signal set.
10 . The hearing aid according to claim 8 , wherein in response that the first sub-band signal is the first howling sub-band signal, the obtaining a second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal, the processor executing at least one computer-readable instruction to implement following functions:
in response that the first sub-band signal is the first howling sub-band signal, dividing the first howling sub-band signal into first howling sub-band signals of different preset howling frequency ranges;
obtaining a second sub-band signal set by assigning each of the first howling sub-band signals of different preset howling frequency ranges to corresponding second channel; and
obtaining second sub-band signals according to the second sub-band signal set.
11 . The hearing aid according to claim 8 , wherein the determining whether the second sub-band signal is the second howling sub-band signal, the processor executing at least one computer-readable instruction to implement following functions:
obtaining an energy value of the second sub-band signal according to the second sub-band signal and obtaining a target second sub-band signal with a largest energy value;
obtaining two energy values of two second sub-band signals adjacent to the target second sub-band signal;
calculating an energy ratio of two adjacent second sub-band signals and the target second sub-band signal according to the energy value of the target second sub-band signal and the two energy values of the two adjacent second sub-band signals; and
determining whether the target second sub-band signal is the second howling sub-band signal by comparing the energy ratio with a preset energy ratio.
12 . The hearing aid according to claim 11 , wherein in response that the second sub-band signal is the second howling sub-band signal, determining whether the frame signal is a howling frame signal according to the second howling sub-band signal, the processor executing at least one computer-readable instruction to implement following functions:
determining that the target second sub-band signal is the second howling sub-band signal in response to the energy ratio being greater than the preset energy ratio;
obtain a marked frame signal by marking the second howling sub-band signal; and
determining whether the frame signal is the howling frame signal according to the marked frame signal.
13 . A non-transitory storage medium having at least one computer-readable instruction stored thereon, and the at least one computer-readable instruction being executed by a processor, to implement following functions:
obtaining audio data;
obtaining a first sub-band signal of a frame signal in the audio data according to the audio data;
determining whether the first sub-band signal is a first howling sub-band signal, comprising obtaining an energy value of the first sub-band signal according to the first sub-band signal of the frame signal, and comparing the energy value of the first sub-band signal with a preset energy threshold;
in response that the first sub-band signal is the first howling sub-band signal, obtaining a second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal;
determining whether the second sub-band signal is a second howling sub-band signal;
in response that the second sub-band signal is the second howling sub-band signal, determining whether the frame signal is a howling frame signal according to the second howling sub-band signal; and
suppressing the howling frame signal in response that the frame signal is the howling frame signal.
14 . The non-transitory storage medium according to claim 13 , wherein the obtaining the first sub-band signal of frame signal in the audio data according to the audio data, the processor executing at least one computer-readable instruction to implement following functions:
obtaining an audio sampling rate according to the audio data;
obtaining frame information according to the audio sampling rate;
obtaining frequency information according to the audio data;
dividing the audio data into audio signals of different preset frequency ranges according to the frequency information;
obtaining a first sub-band signal set by assigning each of the audio signals of different preset frequency ranges to corresponding first channel; and
obtaining the first sub-band signal of the frame signal according to the frame information and the first sub-band signal set.
15 . The non-transitory storage medium according to claim 13 , wherein in response that the first sub-band signal is the first howling sub-band signal, the obtaining a second sub-band signal of the first howling sub-band signal according to the first howling sub-band signal, the processor executing at least one computer-readable instruction to implement following functions:
in response that the first sub-band signal is the first howling sub-band signal, dividing the first howling sub-band signal into first howling sub-band signals of different preset howling frequency ranges;
obtaining a second sub-band signal set by assigning each of the first howling sub-band signals of different preset howling frequency ranges to corresponding second channel; and
obtaining second sub-band signals according to the second sub-band signal set.
16 . The non-transitory storage medium according to claim 13 , wherein the determining whether the second sub-band signal is the second howling sub-band signal, the processor executing at least one computer-readable instruction to implement following functions:
obtaining an energy value of the second sub-band signal according to the second sub-band signal and obtaining a target second sub-band signal with a largest energy value;
obtaining two energy values of two second sub-band signals adjacent to the target second sub-band signal;
calculating an energy ratio of two adjacent second sub-band signals and the target second sub-band signal according to the energy value of the target second sub-band signal and the two energy values of the two adjacent second sub-band signals; and
determining whether the target second sub-band signal is the second howling sub-band signal by comparing the energy ratio with a preset energy ratio.
17 . The non-transitory storage medium according to claim 16 , wherein in response that the second sub-band signal is the second howling sub-band signal, determining whether the frame signal is a howling frame signal according to the second howling sub-band signal, the processor executing at least one computer-readable instruction to implement following functions:
determining that the target second sub-band signal is the second howling sub-band signal in response to the energy ratio being greater than the preset energy ratio;
obtain a marked frame signal by marking the second howling sub-band signal; and
determining whether the frame signal is the howling frame signal according to the marked frame signal.