Whistling sound suppression method, earphone, and storage medium
AssigneesBeijing Xiaomi Mobile Software Co., Ltd., Beijing Xiaomi Pinecone Electronics Co., Ltd.
InventorLingsong Zhou
Life of this patent
Estimating the term…
Abstract
A whistling sound suppression method includes: obtaining an ambient audio signal, the ambient audio signal being a sound signal in a surrounding environment of an earphone; filtering the ambient audio signal according to a preset first filter group to obtain a first audio signal; obtaining an ear canal audio signal, the ear canal audio signal being a sound signal when the first audio signal propagates in an ear canal; and filtering a subsequently obtained ambient audio signal according to a preset second filter group to obtain a second audio signal in response to the ear canal audio signal meets a whistling condition.
Claims18
A whistling sound suppression method, comprising:
- obtaining an ambient audio signal, wherein the ambient audio signal is a sound signal in a surrounding environment of an earphone;
- filtering the ambient audio signal according to a preset first filter group to obtain a first audio signal;
- obtaining an ear canal audio signal, wherein the ear canal audio signal is a sound signal when the first audio signal propagates in an ear canal;
- and
- filtering a subsequently obtained ambient audio signal according to a preset second filter group to obtain a second audio signal in response to the ear canal audio signal meets a whistling condition, wherein a gain value of the preset second filter group is smaller than a gain value of the preset first filter group, wherein the ear canal audio signal meeting the whistling condition comprises:
- a local peak-valley difference in a preset local frequency band range where a full-band peak point of the ear canal audio signal is located meets a first condition, and an amplitude change of the ear canal audio signal meets a second condition.
An earphone, comprising:
- a microphone, a loudspeaker, a processor, and a memory, wherein the memory stores a computer program capable of running on the processor, and when running the computer program, the processor is configured to execute a whistling sound suppression method, comprising:
- obtaining an ambient audio signal, wherein the ambient audio signal is a sound signal in a surrounding environment of the earphone;
- filtering the ambient audio signal according to a preset first filter group to obtain a first audio signal;
- obtaining an ear canal audio signal, wherein the ear canal audio signal is a sound signal when the first audio signal propagates in an ear canal;
- and
- filtering a subsequently obtained ambient audio signal according to a preset second filter group to obtain a second audio signal in response to the ear canal audio signal meets a whistling condition, wherein a gain value of the preset second filter group is smaller than a gain value of the preset first filter group, wherein the ear canal audio signal meeting the whistling condition comprises:
- a local peak-valley difference in a preset local frequency band range where a full-band peak point of the ear canal audio signal is located meets a first condition, and an amplitude change of the ear canal audio signal meets a second condition.
A non-transitory computer-readable storage medium, storing a computer program, wherein when the computer program is executed by a processor, a whistling sound suppression method is realized, comprising:
- obtaining an ambient audio signal, wherein the ambient audio signal is a sound signal in a surrounding environment of an earphone;
- filtering the ambient audio signal according to a preset first filter group to obtain a first audio signal;
- obtaining an ear canal audio signal, wherein the ear canal audio signal is a sound signal when the first audio signal propagates in an ear canal;
- and
- filtering a subsequently obtained ambient audio signal according to a preset second filter group to obtain a second audio signal in response to the ear canal audio signal meets a whistling condition, wherein a gain value of the preset second filter group is smaller than a gain value of the preset first filter group, wherein the ear canal audio signal meeting the whistling condition comprises:
- a local peak-valley difference in a preset local frequency band range where a full-band peak point of the ear canal audio signal is located meets a first condition, and an amplitude change of the ear canal audio signal meets a second condition.
Dependencies are inferred from the claim text.