Patent ID: 9711164
Date: 2017-07-18
CPC Classifications: G10L,H04R

Claim:
1. A noise cancellation method for an electronic device, comprising: receiving a first audio signal containing a speech signal of a user and a noise signal received by a microphone; applying a Fast Fourier Transform operation on the first audio signal to generate a first spectrum, wherein the first spectrum contains a noise spectrum corresponding to a predetermined frequency range for a noise signal, and a voice spectrum corresponding to a predetermined frequency range for a speech signal; determining whether the user is outdoors or indoors according to an energy of the noise spectrum; comparing the energy of noise spectrum with a first predetermined value, when the user is determined to be outdoors; applying a first noise suppression to the first spectrum to remove outdoor noise when the energy of noise spectrum is larger than the first predetermined value; providing the user with an interface for the user to determine whether to forcedly apply the first noise suppression when the energy of noise spectrum is smaller than the first predetermined value; determining whether an echo noise exists in the first audio signal according to the first spectrum; estimating echo noise according to the first spectrum and comparing an energy of the echo noise with a second predetermined value, when the user is determined to be indoors; applying a second noise suppression to the first spectrum to remove the echo noise when the energy of the echo noise is larger than the second predetermined value; providing the user with an interface for the user to determine whether to forcedly apply the second noise suppression when the energy of the echo noise is smaller than the second predetermined value; and applying an Inverse Fast Fourier Transform operation on the first spectrum to generate a second audio signal.