CN104468908A - Method for eliminating noise, and electronic equipment - Google Patents

Method for eliminating noise, and electronic equipment Download PDF

Info

Publication number
CN104468908A
CN104468908A CN201310431773.0A CN201310431773A CN104468908A CN 104468908 A CN104468908 A CN 104468908A CN 201310431773 A CN201310431773 A CN 201310431773A CN 104468908 A CN104468908 A CN 104468908A
Authority
CN
China
Prior art keywords
electronic device
noise
held state
determining
algorithm
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.)
Pending
Application number
CN201310431773.0A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310431773.0A priority Critical patent/CN104468908A/en
Publication of CN104468908A publication Critical patent/CN104468908A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method for eliminating noise, and electronic equipment, which are applied to the field of electron and aim to overcome the defect of poor noise elimination result in prior art. The method comprises the steps of detecting a held state of first electronic equipment when initiating or receiving a voice communication request; according to the held state, determining a first noise elimination algorithm; and performing noise elimination according to the first noise elimination algorithm in voice communication. The method is applied to the electronic equipment for eliminating noise.

Description

Method for eliminating noise and electronic equipment
Technical Field
The present invention relates to the field of electronics, and in particular, to a method for eliminating noise and an electronic device.
Background
In general, in order to eliminate the environmental noise and improve the call quality, a noise elimination method needs to be adopted on the mobile phone. Noise cancellation is currently performed mainly by means of dual microphones. The double microphones comprise a main microphone and an auxiliary microphone, the main microphone mainly collects voice and environmental noise, the auxiliary microphone mainly collects environmental noise, and the voice collected by the main microphone and the auxiliary microphone is processed.
However, noise cancellation by the dual-microphone method is often performed according to different holding states of the mobile phone, for example, a left-handed handset or a right-handed handset, and corresponding noise cancellation parameters are different.
Disclosure of Invention
The embodiment of the invention provides a method for eliminating noise and electronic equipment, aiming at solving the defect of poor noise elimination effect in the prior art.
A first aspect of the present invention provides a method of removing noise, comprising:
when a voice call request is initiated or received, detecting the held state of the first electronic equipment;
determining a first noise cancellation algorithm based on the held state;
and denoising based on the first denoising algorithm when the voice call is carried out.
With reference to the first aspect, in a first possible implementation manner, when a sensing unit is disposed on a side surface of the first electronic device, the detecting a held state of the first electronic device includes:
when the first electronic device is in a holding state, sensing a touch position through the sensing unit;
and determining the held state of the first electronic equipment according to the touch position.
With reference to the first aspect, in a second possible implementation manner, when an acceleration sensor is disposed on a side surface of the first electronic device, the detecting a held state of the first electronic device includes:
detecting an acceleration parameter of a user when the first electronic equipment initiates or receives a voice call request through the acceleration sensor;
and determining the held state of the first electronic equipment according to the acceleration parameter.
With reference to the first aspect, in a third possible implementation manner, the detecting a held state of the first electronic device when initiating or receiving a voice call request includes:
detecting an acceleration parameter of a user when the first electronic equipment initiates or receives a voice call request through the acceleration sensor;
and determining the held state of the first electronic equipment according to the acceleration parameter.
With reference to the first aspect, in a fourth possible implementation manner, the determining, by the first electronic device, a first noise cancellation algorithm before the determining, based on the held state, that the first electronic device includes at least two trigger positions corresponding to trigger call signals further includes:
acquiring an environmental noise parameter in a held state of the first electronic device;
and denoising the call of the first electronic device according to the environmental noise parameter, acquiring a corresponding denoising algorithm, and storing the denoising algorithm as the preset denoising algorithm, wherein the preset denoising algorithm comprises the first denoising algorithm.
With reference to the first aspect, the first or fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the held state of the first electronic device includes: left hand held or right hand held.
With reference to the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner, the ambient noise parameter includes at least one of the following: a voice suppression parameter, a noise suppression parameter, and a direction parameter.
With reference to the first aspect or any one of the first to sixth possible implementation manners of the first aspect, in a seventh possible implementation manner, the first denoising algorithm includes:
determining a first noise cancellation algorithm based on the held state, comprising:
if the held state of the first electronic equipment is left-handed holding, determining that the first denoising algorithm is a denoising algorithm corresponding to left-handed holding;
or,
and if the held state of the first electronic equipment is the right hand held machine, determining that the first denoising algorithm is a denoising algorithm corresponding to the right hand held machine.
A second aspect of the present invention provides an electronic apparatus comprising:
the detection unit is used for detecting the held state of the electronic equipment when a voice call request is initiated or received;
a judging unit for determining a first noise removal algorithm based on the held state;
and the noise elimination unit is used for carrying out noise elimination processing based on the first noise elimination algorithm when the voice call is carried out.
With reference to the second aspect, in a first possible implementation manner, when a sensing unit is disposed on a side surface of the electronic device, the detecting unit includes:
the touch subunit is used for sensing a touch position through the sensing unit when the electronic equipment is in a holding state;
and the determining subunit is used for determining the held state of the electronic equipment according to the touch position.
With reference to the second aspect, in a second possible implementation manner, when an acceleration sensor is disposed on a side surface of the electronic device, the detecting unit includes:
the receiving subunit is used for detecting an acceleration parameter of a user when the electronic equipment initiates or receives a voice call request through the acceleration sensor;
and the determining subunit is used for determining the held state of the electronic equipment according to the acceleration parameter.
With reference to the second aspect, in a third possible implementation manner, the electronic device includes at least two trigger positions corresponding to trigger call signals, and the detecting unit includes:
the judging subunit is used for judging the triggering position of the user in the first electronic device when initiating or receiving a voice call request;
and the determining subunit is used for determining the held state of the first electronic equipment according to the trigger position.
With reference to the second aspect, in a fourth possible implementation manner, the electronic device includes at least two trigger positions corresponding to trigger call signals, and the detecting unit includes: :
the acquisition subunit is used for acquiring environmental noise parameters in the held state of the first electronic equipment;
and the processing subunit is configured to perform denoising processing on the call of the first electronic device according to the environmental noise parameter, acquire a corresponding denoising algorithm, and store the corresponding denoising algorithm as the preset denoising algorithm, where the preset denoising algorithm includes the first denoising algorithm.
With reference to the second aspect, or the first or fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, the held state of the electronic device includes: left hand held or right hand held. .
With reference to the fourth possible implementation manner of the second aspect, in a sixth possible implementation manner, the ambient noise parameter includes at least one of the following: a voice suppression parameter, a noise suppression parameter, and a direction parameter.
With reference to the second aspect or any one of the first to sixth possible implementation manners of the second aspect, in a seventh possible implementation manner, the determining unit is specifically configured to:
if the held state of the electronic equipment is left-handed holding, determining that the first noise elimination algorithm is a noise elimination algorithm corresponding to the left-handed holding;
or,
and if the held state of the electronic equipment is the right hand held machine, determining that the first denoising algorithm is a denoising algorithm corresponding to the right hand held machine.
According to the method for eliminating the noise and the electronic device, the first noise eliminating algorithm is determined according to the held state of the electronic device, and the noise eliminating processing is carried out based on the first noise eliminating algorithm when the voice call is carried out according to the preset noise eliminating parameters, so that the noise eliminating effect of the electronic device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for eliminating noise according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for removing noise according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for removing noise according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface for answering a call of an electronic device according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a telephone dialing interface of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to yet another embodiment of the invention;
fig. 10 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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.
Embodiments of the present invention may be applied to an electronic device, wherein the electronic device comprises: mobile phones, fixed phones, tablet computers, and the like. In this embodiment, the first electronic device can perform a voice call with the second electronic device, and the first electronic device most commonly includes a mobile phone, and this embodiment takes the mobile phone as an example for description.
Fig. 1 is a flowchart illustrating a method for removing noise according to an embodiment of the present invention, where the method is generally performed by an electronic device, and referring to fig. 1, the method may include the following steps:
step 101, detecting a held state of a first electronic device when a voice call request is initiated or received.
The first electronic device generally includes a mobile phone, and the held state of the first electronic device generally includes a left handset and a right handset.
Specifically, optionally, when the sensing unit is disposed on the side surface of the first electronic device, in step 101, detecting the held state of the first electronic device may include the following steps:
step 101a, when the first electronic device is in a holding state, sensing a touch position through a sensing unit.
For example, a sensing unit may be disposed on a side surface of the first electronic device, and different touch positions may be distinguished by different points sensed by the side surfaces when the left handset and the right handset are used
And step 101b, determining the held state of the first electronic equipment according to the touch position.
Different touch positions are distinguished through different points respectively sensed by the side surface when the left hand is held and the right hand is held, and whether the left hand is held or the right hand is held is judged according to the touch positions.
Alternatively, when the acceleration sensor is disposed on the side surface of the first electronic device, the step 101 of detecting the held state of the first electronic device may include the steps of:
step 101c, detecting an acceleration parameter of the user when the first electronic device initiates or receives a voice call request through an acceleration sensor.
And step 101d, determining the held state of the first electronic equipment according to the acceleration parameters.
For example, an acceleration sensor may be provided, which distinguishes between the left hand-held set and the right hand-held set by detecting a difference in the parameter between when the left hand is placed from bottom to top to the ear and when the right hand is placed from bottom to top to the ear.
Step 102, determining a first noise elimination algorithm based on the held state.
The first noise cancellation algorithm generally cancels noise based on the dual microphones, and the first electronic device adopts different environmental noise parameters corresponding to different held states, where the environmental noise parameters generally include: voice suppression parameters, noise suppression parameters, direction parameters, and the like. The above-mentioned environmental noise parameters are different for different held states, and each held state has its corresponding environmental noise parameter to optimize the noise cancellation effect in the held state.
Wherein determining the first denoising algorithm may include:
if the held state of the first electronic equipment is left-handed holding, determining that the first noise elimination algorithm is a noise elimination algorithm corresponding to the left-handed holding;
or if the held state of the first electronic device is the right handset, determining that the first noise cancellation algorithm is the noise cancellation algorithm corresponding to the right handset.
Through the held state detected in step 101, if the held state of the first electronic device is left-handed holding, determining that the first denoising algorithm is a denoising algorithm corresponding to left-handed holding, specifically, the environmental noise parameter includes an environmental noise parameter corresponding to left-handed holding; or if the held state of the first electronic device is the right handset, determining that the first denoising algorithm is a denoising algorithm corresponding to the right handset, specifically, the environmental noise parameter includes an environmental noise parameter corresponding to the right handset.
And 103, denoising based on a first denoising algorithm when the voice call is performed.
According to the first noise cancellation algorithm determined in step 102, for example, a noise cancellation algorithm corresponding to a left holding, the first electronic device performs noise cancellation on the received input signal (i.e., voice) when the user performs a voice call.
In the embodiment, the first noise elimination algorithm is determined according to the held state of the electronic equipment, and the noise elimination processing is performed based on the first noise elimination algorithm when the voice call is performed, so that the noise elimination effect of the electronic equipment is improved.
Fig. 2 is a flowchart illustrating a method for removing noise according to another embodiment of the present invention, the method is generally performed by an electronic device, and referring to fig. 2, the method may include the following steps:
step 201, when a voice call request is initiated or received, detecting a held state of a first electronic device.
The first electronic device generally includes a mobile phone, and the held state of the first electronic device generally includes a left handset and a right handset.
Specifically, preferably, the first electronic device may include at least two trigger positions corresponding to the trigger call signal, and when a voice call request is initiated or received, the held state of the first electronic device is detected, and step 201 may include the following steps:
step 201a, when a voice call request is initiated or received, determining a trigger position of a user at a first electronic device.
The voice call request is initiated and the call is generally called, and the voice call request is received and the call is generally called. The call signal includes an answering signal and a dialing signal. For example, an answer signal is triggered at the interface for answering a call, and a dial signal is triggered at the interface for dialing a call.
The first electronic device may include at least two trigger positions corresponding to the trigger call signal. The trigger positions can be arranged on the touch keys at two different positions on the touch screen, and different trigger positions can be distinguished through different positions.
The implementation manner of the trigger position is not limited in this embodiment.
And step 201b, determining the held state of the first electronic equipment according to the trigger position.
For example, two touch keys for triggering a call signal may be provided in the electronic device, it is understood that the call signal may be a signal triggered by answering or dialing a call when applied to a mobile phone function, one is on the left side of the electronic device, and the other is on the right side of the electronic device, and the positions of the two touch keys are not limited in this embodiment. The two touch keys are different in position and are used for indicating different held states, for example, the touch key on the left side of the electronic device indicates a left hand-held machine, and the touch key on the right side of the electronic device indicates a right hand-held machine. Of course, two keys may be provided on the electronic device for performing similar functions.
In this embodiment, through steps 201a and 201b, the held state of the electronic device can be detected.
Based on the held state, a first noise cancellation algorithm is determined, step 202.
The first noise cancellation algorithm generally cancels noise based on the dual microphones, and the first electronic device adopts different environmental noise parameters corresponding to different held states, where the environmental noise parameters generally include: voice suppression parameters, noise suppression parameters, direction parameters, and the like. The above-mentioned environmental noise parameters are different for different held states, and each held state has its corresponding environmental noise parameter to optimize the noise cancellation effect in the held state.
Wherein determining the first denoising algorithm may include:
if the held state of the first electronic equipment is left-handed holding, determining that the first noise elimination algorithm is a noise elimination algorithm corresponding to the left-handed holding;
or if the held state of the first electronic device is the right handset, determining that the first noise cancellation algorithm is the noise cancellation algorithm corresponding to the right handset.
Through the held state detected in step 201, if the held state of the first electronic device is left-handed holding, determining that the first denoising algorithm is a denoising algorithm corresponding to left-handed holding, specifically, the environmental noise parameter includes an environmental noise parameter corresponding to left-handed holding; or if the held state of the first electronic device is the right handset, determining that the first denoising algorithm is a denoising algorithm corresponding to the right handset, specifically, the environmental noise parameter includes an environmental noise parameter corresponding to the right handset.
And step 203, performing noise elimination processing based on the first noise elimination algorithm when the voice call is performed.
According to the first noise cancellation algorithm determined in step 202, for example, a noise cancellation algorithm corresponding to a left-handed holding, the first electronic device performs noise cancellation on the received input signal (i.e., voice) when the user performs a voice call.
In the embodiment, the first noise elimination algorithm is determined according to the held state of the electronic equipment, and the noise elimination processing is performed based on the first noise elimination algorithm when the voice call is performed, so that the noise elimination effect of the electronic equipment is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for removing noise according to another embodiment of the present invention. Referring to fig. 3, the method may include the steps of:
step 301, collecting an ambient noise parameter in a held state of the first electronic device.
The held state of the first electronic device generally includes a left handset and a right handset, and the two different trigger positions of the user on the first electronic device correspond to the left handset and the right handset respectively.
The voice and the environmental noise are collected through the main microphone, and the environmental noise is collected through the auxiliary microphone.
Step 302, performing noise elimination processing on the call of the first electronic device according to the environmental noise parameters, acquiring a corresponding noise elimination algorithm, and storing the corresponding noise elimination algorithm as a preset noise elimination algorithm, wherein the preset noise elimination algorithm comprises a first noise elimination algorithm.
For example, when the left handset is held by the left hand, the sound collected by the main microphone and the auxiliary microphone is processed, the environmental noise is filtered through a group of environmental noise parameters to obtain the optimal noise cancellation effect, and the environmental noise parameters of the group corresponding to the left handset are stored as the preset noise cancellation algorithm corresponding to the left handset; and when the right hand set is used, the sound collected by the main microphone and the auxiliary microphone is processed, the environmental noise is filtered through a group of environmental noise parameters to obtain the optimal noise elimination effect, and the group of environmental noise parameters corresponding to the right hand set are stored as the preset noise elimination algorithm corresponding to the right hand set.
The method comprises the steps of conducting noise elimination processing on a call of the first electronic device in a current held state, obtaining corresponding environment noise parameters and storing the corresponding environment noise parameters as a preset noise elimination algorithm, so that the environment noise parameters corresponding to different held states can be obtained, the first electronic device can conveniently obtain the corresponding preset environment noise parameters according to the held state of the first electronic device, and the first electronic device can eliminate noise of a received input signal during voice call of a user, and therefore noise elimination effect is improved.
Step 303, detecting a held state of the first electronic device when initiating or receiving a voice call request.
Specifically, optionally, when the sensing unit is disposed on the side surface of the first electronic device, step 303 detects the held state of the first electronic device, and reference may be made to steps 101a and 101b of the above embodiment. And will not be described in detail herein.
Still alternatively, when the side of the first electronic device is provided with the acceleration sensor, step 303 detects the held state of the first electronic device, and reference may be made to steps 101c and 101d of the above-described embodiment. And will not be described in detail herein.
Still alternatively, the first electronic device may include at least two trigger positions corresponding to the triggered listening signal, and when a voice call request is initiated or received, step 303 detects a held state of the first electronic device, which may refer to steps 201a and 201b of the foregoing embodiment. And will not be described in detail herein.
Step 304, based on the held state, a first noise cancellation algorithm is determined.
The first noise cancellation algorithm generally cancels noise based on the dual microphones, and the first electronic device adopts different environmental noise parameters corresponding to different held states, where the environmental noise parameters generally include: voice suppression parameters, noise suppression parameters, direction parameters, and the like. The above-mentioned environmental noise parameters are different for different held states, and each held state has its corresponding environmental noise parameter to optimize the noise cancellation effect in the held state.
Wherein determining the first denoising algorithm may include:
if the held state of the first electronic equipment is left-handed holding, determining that the first noise elimination algorithm is a noise elimination algorithm corresponding to the left-handed holding;
or if the held state of the first electronic device is the right handset, determining that the first noise cancellation algorithm is the noise cancellation algorithm corresponding to the right handset.
Through the held state detected in step 303, if the held state of the first electronic device is left-handed holding, determining that the first denoising algorithm is a denoising algorithm corresponding to left-handed holding, specifically, the environmental noise parameter includes an environmental noise parameter corresponding to left-handed holding; or if the held state of the first electronic device is the right handset, determining that the first denoising algorithm is a denoising algorithm corresponding to the right handset, specifically, the environmental noise parameter includes an environmental noise parameter corresponding to the right handset.
Step 305 performs noise cancellation processing based on a first noise cancellation algorithm when a voice call is performed.
In this case, according to the first noise cancellation algorithm determined in step 304, for example, a noise cancellation algorithm corresponding to the left holding, the first electronic device performs noise cancellation on the received input signal (i.e., voice) when the user makes a voice call.
In the embodiment, the first noise elimination algorithm is determined according to the held state of the electronic equipment, and the noise elimination processing is performed on the electronic equipment based on the first noise elimination algorithm when the voice call is performed according to the preset noise elimination parameter, so that the noise elimination effect of the electronic equipment is improved.
Specifically, taking a call answering process as an example, referring to fig. 4, fig. 4 is a schematic view of a call answering interface of an electronic device according to an embodiment of the present invention. Two touch keys for triggering the listening signal are arranged in fig. 4, and the positions of the touch keys are left-hand listening 411 and right-hand listening 412 shown in fig. 4, which correspond to the left handset and the right handset respectively.
When a user needs to answer a call, for example, the user holds the phone with the left hand, the user selects the left hand to answer 411, an answer signal is triggered on an interface for dialing the call, the electronic equipment judges the trigger position of the user on the interface of the electronic equipment, and judges the held state of the electronic equipment according to the trigger position, so that the electronic equipment is held with the left hand. And then acquiring a preset denoising algorithm corresponding to the left holding machine, and denoising the input signal (namely voice) of the electronic equipment.
For another example, when a user needs to make a call, referring to fig. 5, fig. 5 is a schematic diagram of a call interface of an electronic device according to an embodiment of the present invention. Two touch keys for triggering the listening signal are arranged in fig. 5, and the positions of the touch keys are a left hand dialing 511 and a right hand dialing 512 shown in fig. 5, which correspond to a left handset and a right handset respectively. The dial key area 513 is shown in simplified form in fig. 5.
When a user needs to make a call, for example, the user holds the phone with the left hand, the left hand is selected to make a call 511, a dialing signal is triggered on an interface of the call, the electronic equipment judges the trigger position of the user on the interface of the electronic equipment, and the held state of the electronic equipment is judged according to the trigger position, so that the electronic equipment is held with the left hand. And then acquiring a preset denoising algorithm corresponding to the right hand-held set, and denoising the input signal (namely voice) of the electronic equipment.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, which can implement the above-mentioned noise canceling method, and the principle and the beneficial effects of the electronic device are the same. Referring to fig. 6, the electronic device includes: a detection unit 11, a judgment unit 21 and a noise cancellation unit 31.
The detecting unit 11 is configured to detect a held state of the electronic device when a voice call request is initiated or received.
The held state generally includes a left hand-held device and a right hand-held device.
A judging unit 21 for determining a first noise canceling algorithm based on the held state.
The first noise cancellation algorithm generally cancels noise based on the dual microphones, and the first electronic device adopts different environmental noise parameters corresponding to different held states, where the environmental noise parameters generally include: voice suppression parameters, noise suppression parameters, direction parameters, and the like. The above-mentioned environmental noise parameters are different for different held states, and each held state has its corresponding environmental noise parameter to optimize the noise cancellation effect in the held state.
The determining unit 21 is specifically configured to:
if the held state of the electronic equipment is left-handed holding, determining that the first noise elimination algorithm is a noise elimination algorithm corresponding to the left-handed holding;
or,
and if the held state of the electronic equipment is the right hand held machine, determining that the first denoising algorithm is a denoising algorithm corresponding to the right hand held machine.
And a noise canceling unit 31 configured to perform noise canceling processing based on a first noise canceling algorithm when performing a voice call.
For example, the detection unit 11 detects that the electronic device is left-handed, and the judgment unit 21 obtains a denoising algorithm corresponding to left-handed holding, so as to denoise the received input signal for the electronic device during the voice call of the user.
According to the electronic equipment provided by the embodiment of the invention, the noise elimination unit can perform noise elimination processing on the electronic equipment based on the first noise elimination algorithm when the electronic equipment is in voice call according to the held state of the electronic equipment, so that the noise elimination effect of the electronic equipment is improved.
On the basis of the above scheme, referring to fig. 7, optionally, when the side of the electronic device is provided with a sensing unit, the detecting unit 11 includes: a touch subunit 111 and a determination subunit 112.
The touch subunit 111 is configured to sense a touch position through the sensing unit when the electronic device is in a holding state.
And a determining subunit 112, configured to determine a held state of the electronic device according to the touch position.
Still alternatively, referring to fig. 8, when the side of the electronic device is provided with an acceleration sensor, the detection unit 11 includes: a receiving subunit 113 and a determining subunit 114.
The receiving subunit 113 is configured to detect, through an acceleration sensor, an acceleration parameter of a user when the electronic device initiates or receives a voice call request;
and a determining subunit 114 for determining the held state of the electronic device according to the acceleration parameter.
Still alternatively, referring to fig. 9, the electronic device includes at least two triggering positions corresponding to the triggered listening signal, and the detecting unit 11 may include: a judgment subunit 115 and a determination subunit 116.
The determining subunit 115 is configured to determine, when initiating or receiving a voice call request, a trigger position of the user at the first electronic device.
The voice call request is initiated and the call is generally called, and the voice call request is received and the call is generally called. The call signal includes an answering signal and a dialing signal. For example, an answer signal is triggered at the interface for answering a call, and a dial signal is triggered at the interface for dialing a call.
The first electronic device may include at least two trigger positions corresponding to the trigger call signal. The trigger positions can be arranged on the touch keys at two different positions on the touch screen, and different trigger positions can be distinguished through different positions.
The implementation manner of the trigger position is not limited in this embodiment.
A determining subunit 116, configured to determine a held state of the first electronic device according to the trigger position.
For example, two touch keys for triggering a call signal may be provided in the electronic device, it is understood that the call signal may be a signal triggered by answering or dialing a call when applied to a mobile phone function, one is on the left side of the electronic device, and the other is on the right side of the electronic device, and the positions of the two touch keys are not limited in this embodiment. The two touch keys are different in position and are used for indicating different held states, for example, the touch key on the left side of the electronic device indicates a left hand-held machine, and the touch key on the right side of the electronic device indicates a right hand-held machine. Of course, two keys may be provided on the electronic device for performing similar functions.
In this embodiment, the held state of the electronic device can be detected by the judging subunit 115 and the determining subunit 116.
Fig. 10 is a schematic structural diagram of an electronic device according to another embodiment of the present invention, which can implement the above-mentioned noise canceling method, and the principle and the advantageous effects thereof are the same. Referring to fig. 10, the electronic device includes: a detection unit 11, a judgment unit 21 and a noise cancellation unit 31.
The detecting unit 11 is configured to detect a held state of the electronic device when a voice call request is initiated or received.
The held state generally includes a left hand-held device and a right hand-held device.
A judging unit 21 for determining a first noise canceling algorithm based on the held state.
The first noise cancellation algorithm generally cancels noise based on the dual microphones, and the first electronic device adopts different environmental noise parameters corresponding to different held states, where the environmental noise parameters generally include: voice suppression parameters, noise suppression parameters, direction parameters, and the like. The above-mentioned environmental noise parameters are different for different held states, and each held state has its corresponding environmental noise parameter to optimize the noise cancellation effect in the held state.
The determining unit 21 is specifically configured to:
if the held state of the electronic equipment is left-handed holding, determining that the first noise elimination algorithm is a noise elimination algorithm corresponding to the left-handed holding;
or,
and if the held state of the electronic equipment is the right hand held machine, determining that the first denoising algorithm is a denoising algorithm corresponding to the right hand held machine.
And a noise canceling unit 31 configured to perform noise canceling processing based on a first noise canceling algorithm when performing a voice call.
For example, the detection unit 11 detects that the electronic device is left-handed, and the judgment unit 21 obtains a denoising algorithm corresponding to left-handed holding, so as to denoise the received input signal for the electronic device during the voice call of the user.
According to the electronic equipment provided by the embodiment of the invention, the noise elimination unit can perform noise elimination processing on the electronic equipment based on the first noise elimination algorithm when the electronic equipment is in voice call according to the held state of the electronic equipment, so that the noise elimination effect of the electronic equipment is improved.
Optionally, on the basis of the above scheme, the electronic device includes at least two trigger positions corresponding to the trigger call signal, and the detecting unit 11 may include: an acquisition sub-unit 117 and a processing sub-unit 118.
An acquisition subunit 117, configured to acquire an ambient noise parameter in a held state of the first electronic device.
The held state of the electronic device generally includes a left handset and a right handset, and the two different trigger positions of the user on the electronic device correspond to the left handset and the right handset respectively.
The acquisition subunit may include a primary microphone through which speech and ambient noise are acquired, for example, and a secondary microphone through which ambient noise is acquired, for example.
The processing subunit 118 is configured to perform denoising processing on a call of the electronic device according to the environmental noise parameter, acquire a corresponding denoising algorithm, and store the corresponding denoising algorithm as a preset denoising algorithm, where the preset denoising algorithm includes a first denoising algorithm.
For example, when the mobile phone is held by the left hand, a set of environmental noise parameters is obtained through the acquisition subunit 117, the environmental noise is filtered out, the optimal noise cancellation effect is obtained, and the set of environmental noise parameters corresponding to the left mobile phone is stored as the preset noise cancellation algorithm corresponding to the left mobile phone; when the right hand set is used, a group of environmental noise parameters are obtained through the acquisition subunit 1117, the environmental noise is filtered to obtain the optimal noise elimination effect, and the environmental noise parameters of the right hand set corresponding to the group are stored as the preset noise elimination algorithm corresponding to the right hand set.
Then, the detection unit 21 detects the held state of the electronic device, and determines a first noise canceling algorithm based on the held state, and then the noise canceling unit 31 is used for performing noise canceling processing based on the first noise canceling algorithm when performing voice call.
According to the scheme, the noise elimination processing is carried out on the conversation of the electronic equipment in the current held state, the corresponding environmental noise parameters are obtained and stored as the preset environmental noise parameters, the different environmental noise parameters corresponding to the held state can be obtained, so that the electronic equipment can obtain the corresponding preset environmental noise parameters according to the held state of the electronic equipment, the noise of the received input signal is eliminated when the user carries out voice conversation for the electronic equipment, and the noise elimination effect is improved.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (16)

1. A method for eliminating noise is applied to a first electronic device, wherein the first electronic device can carry out voice call with a second electronic device, and the method comprises the following steps:
when a voice call request is initiated or received, detecting the held state of the first electronic equipment;
determining a first noise cancellation algorithm based on the held state;
and denoising based on the first denoising algorithm when the voice call is carried out.
2. The method according to claim 1, wherein when a side of the first electronic device is provided with a sensing unit, the detecting of the held state of the first electronic device comprises:
when the first electronic device is in a holding state, sensing a touch position through the sensing unit;
and determining the held state of the first electronic equipment according to the touch position.
3. The method according to claim 1, wherein when the side of the first electronic device is provided with an acceleration sensor, the detecting the held state of the first electronic device comprises:
detecting an acceleration parameter of a user when the first electronic equipment initiates or receives a voice call request through the acceleration sensor;
and determining the held state of the first electronic equipment according to the acceleration parameter.
4. The method of claim 1, wherein the first electronic device comprises at least two trigger positions corresponding to trigger call signals, and wherein detecting the held state of the first electronic device when initiating or receiving a voice call request comprises:
when a voice call request is initiated or received, judging the trigger position of the user in the first electronic equipment;
and determining the held state of the first electronic equipment according to the trigger position.
5. The method of claim 1, wherein the first electronic device comprises at least two trigger positions corresponding to trigger call signals, and wherein determining the first noise cancellation algorithm based on the held state is preceded by:
acquiring an environmental noise parameter in a held state of the first electronic device;
and denoising the call of the first electronic device according to the environmental noise parameter, acquiring a corresponding denoising algorithm, and storing the denoising algorithm as the preset denoising algorithm, wherein the preset denoising algorithm comprises the first denoising algorithm.
6. The method according to any one of claims 1 to 5, wherein the held state of the first electronic device comprises: left hand held or right hand held.
7. The method of claim 5, wherein the ambient noise parameter comprises at least one of: a voice suppression parameter, a noise suppression parameter, and a direction parameter.
8. The method according to any one of claims 1 to 7, wherein determining a first noise cancellation algorithm based on the held state comprises:
if the held state of the first electronic equipment is left-handed holding, determining that the first denoising algorithm is a denoising algorithm corresponding to left-handed holding;
or,
and if the held state of the first electronic equipment is the right hand held machine, determining that the first denoising algorithm is a denoising algorithm corresponding to the right hand held machine.
9. An electronic device, comprising:
the detection unit is used for detecting the held state of the electronic equipment when a voice call request is initiated or received;
a judging unit for determining a first noise removal algorithm based on the held state;
and the noise elimination unit is used for carrying out noise elimination processing based on the first noise elimination algorithm when the voice call is carried out.
10. The electronic device according to claim 9, wherein when the side of the electronic device is provided with the sensing unit, the detection unit includes:
the touch subunit is used for sensing a touch position through the sensing unit when the electronic equipment is in a holding state;
and the determining subunit is used for determining the held state of the electronic equipment according to the touch position.
11. The electronic apparatus according to claim 9, wherein when the side of the electronic apparatus is provided with an acceleration sensor, the detection unit includes:
the receiving subunit is used for detecting an acceleration parameter of a user when the electronic equipment initiates or receives a voice call request through the acceleration sensor;
and the determining subunit is used for determining the held state of the electronic equipment according to the acceleration parameter.
12. The electronic device of claim 9, wherein the electronic device comprises at least two trigger positions corresponding to trigger a call signal, and wherein the detecting unit comprises:
the judging subunit is used for judging the triggering position of the user in the first electronic device when initiating or receiving a voice call request;
and the determining subunit is used for determining the held state of the first electronic equipment according to the trigger position.
13. The electronic device of claim 9, wherein the electronic device comprises at least two trigger positions corresponding to trigger a call signal, and wherein the detecting unit comprises:
the acquisition subunit is used for acquiring environmental noise parameters in the held state of the first electronic equipment;
and the processing subunit is configured to perform denoising processing on the call of the first electronic device according to the environmental noise parameter, acquire a corresponding denoising algorithm, and store the corresponding denoising algorithm as the preset denoising algorithm, where the preset denoising algorithm includes the first denoising algorithm.
14. The electronic device according to any one of claims 9 to 13, wherein the held state of the electronic device includes: left hand held or right hand held.
15. The electronic device of claim 13, wherein the ambient noise parameter comprises at least one of: a voice suppression parameter, a noise suppression parameter, and a direction parameter.
16. The electronic device according to any one of claims 9 to 15, wherein the determining unit is specifically configured to:
if the held state of the electronic equipment is left-handed holding, determining that the first noise elimination algorithm is a noise elimination algorithm corresponding to the left-handed holding;
or,
and if the held state of the electronic equipment is the right hand held machine, determining that the first denoising algorithm is a denoising algorithm corresponding to the right hand held machine.
CN201310431773.0A 2013-09-22 2013-09-22 Method for eliminating noise, and electronic equipment Pending CN104468908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310431773.0A CN104468908A (en) 2013-09-22 2013-09-22 Method for eliminating noise, and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310431773.0A CN104468908A (en) 2013-09-22 2013-09-22 Method for eliminating noise, and electronic equipment

Publications (1)

Publication Number Publication Date
CN104468908A true CN104468908A (en) 2015-03-25

Family

ID=52914252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310431773.0A Pending CN104468908A (en) 2013-09-22 2013-09-22 Method for eliminating noise, and electronic equipment

Country Status (1)

Country Link
CN (1) CN104468908A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047730A (en) * 2006-03-31 2007-10-03 Tcl通讯科技控股有限公司 Mobile phone with sensor for detection of user's handling
US20090016545A1 (en) * 2006-08-23 2009-01-15 Quellan, Inc. Pre-configuration and control of radio frequency noise cancellation
CN101909099A (en) * 2009-06-03 2010-12-08 富士通株式会社 Portable radio communication equipment and control method thereof
CN102739867A (en) * 2012-06-19 2012-10-17 青岛海信移动通信技术股份有限公司 Method and mobile terminal for reducing noise by double microphones (MICs)
CN102801861A (en) * 2012-08-07 2012-11-28 歌尔声学股份有限公司 Voice enhancing method and device applied to cell phone
CN103079148A (en) * 2012-12-28 2013-05-01 中兴通讯股份有限公司 Method and device for reducing noise of two microphones of terminal
CN103219011A (en) * 2012-01-18 2013-07-24 联想移动通信科技有限公司 Noise reduction method, noise reduction device and communication terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047730A (en) * 2006-03-31 2007-10-03 Tcl通讯科技控股有限公司 Mobile phone with sensor for detection of user's handling
US20090016545A1 (en) * 2006-08-23 2009-01-15 Quellan, Inc. Pre-configuration and control of radio frequency noise cancellation
CN101909099A (en) * 2009-06-03 2010-12-08 富士通株式会社 Portable radio communication equipment and control method thereof
CN103219011A (en) * 2012-01-18 2013-07-24 联想移动通信科技有限公司 Noise reduction method, noise reduction device and communication terminal
CN102739867A (en) * 2012-06-19 2012-10-17 青岛海信移动通信技术股份有限公司 Method and mobile terminal for reducing noise by double microphones (MICs)
CN102801861A (en) * 2012-08-07 2012-11-28 歌尔声学股份有限公司 Voice enhancing method and device applied to cell phone
CN103079148A (en) * 2012-12-28 2013-05-01 中兴通讯股份有限公司 Method and device for reducing noise of two microphones of terminal

Similar Documents

Publication Publication Date Title
US20240137435A1 (en) Method and device for audio input routing
CN107026934B (en) A kind of sound localization method and device
WO2017143805A1 (en) Echo elimination method, device, and computer storage medium
EP2987243B1 (en) Method of controlling power and electronic device thereof
CN102638612B (en) Method and device for ending conversation
JP4798218B2 (en) Telephone device
CN111986693B (en) Audio signal processing method and device, terminal equipment and storage medium
CN105391854A (en) Audio incoming call processing method and audio incoming call processing device
CN103095915B (en) A kind of method that prevents maloperation and mobile phone based on touch-screen mobile phone
CN109994111B (en) Interaction method, interaction device and mobile terminal
JP2008141688A (en) Portable terminal equipment
CN109754823A (en) A kind of voice activity detection method, mobile terminal
CN103929522A (en) Control method and control apparatus of electronic device, and electronic device
CN107181853A (en) The electronic installation of microphone switching method and application this method
US20150179185A1 (en) Use of sensors for noise suppression in a mobile communication device
CN111083297A (en) Echo cancellation method and electronic equipment
CN108766453A (en) Voice de-noising method, device, readable storage medium storing program for executing and mobile terminal
WO2015131743A1 (en) Incoming call processing method, device and terminal
WO2008110877A1 (en) Battery saving selective screen control
WO2012055118A1 (en) Control methods for communication devices
CN105335635A (en) Unlocking method and device
CN106604183A (en) Method and device of controlling pickup range of multi-microphone denoising of terminal
CN105338170A (en) Method and device for filtering background noise
CN110992973A (en) Signal time delay determination method and electronic equipment
CN112804612B (en) Earphone control method, earphone control device, earphone and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication