CN107124494B - Earphone noise reduction method and device - Google Patents

Earphone noise reduction method and device Download PDF

Info

Publication number
CN107124494B
CN107124494B CN201710473835.2A CN201710473835A CN107124494B CN 107124494 B CN107124494 B CN 107124494B CN 201710473835 A CN201710473835 A CN 201710473835A CN 107124494 B CN107124494 B CN 107124494B
Authority
CN
China
Prior art keywords
noise
mic
loss coefficient
signal
module
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.)
Active
Application number
CN201710473835.2A
Other languages
Chinese (zh)
Other versions
CN107124494A (en
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.)
Shenzhen Taihengnuo Technology Co Ltd
Original Assignee
Shenzhen Taihengnuo Technology Co 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 Shenzhen Taihengnuo Technology Co Ltd filed Critical Shenzhen Taihengnuo Technology Co Ltd
Priority to CN201710473835.2A priority Critical patent/CN107124494B/en
Publication of CN107124494A publication Critical patent/CN107124494A/en
Application granted granted Critical
Publication of CN107124494B publication Critical patent/CN107124494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/19Arrangements of transmitters, receivers, or complete sets to prevent eavesdropping, to attenuate local noise or to prevent undesired transmission; Mouthpieces or receivers specially adapted therefor
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K2210/00Details of active noise control [ANC] covered by G10K11/178 but not provided for in any of its subgroups
    • G10K2210/10Applications
    • G10K2210/108Communication systems, e.g. where useful sound is kept and noise is cancelled
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10KSOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
    • G10K2210/00Details of active noise control [ANC] covered by G10K11/178 but not provided for in any of its subgroups
    • G10K2210/30Means
    • G10K2210/301Computational
    • G10K2210/3045Multiple acoustic inputs, single acoustic output

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)
  • Telephone Set Structure (AREA)
  • Noise Elimination (AREA)

Abstract

The embodiment of the invention provides a method and a device for reducing noise of a receiver, which are applied to terminal equipment, wherein the terminal equipment comprises a first microphone MIC and a second MIC, and the method comprises the following steps: acquiring an initial signal received by a receiver; acquiring a noise signal acquired by a first MIC, a playing loss coefficient of a receiver and a noise loss coefficient between the first MIC and a second MIC; the distance between the first MIC and the earphone is larger than a first threshold value, and the distance between the second MIC and the earphone is smaller than a second threshold value; determining a reverse noise signal according to the noise signal, the playing loss coefficient and the noise loss coefficient; and performing noise reduction processing on the initial signal according to the reverse noise signal. The method is used for improving the voice call quality of the terminal equipment.

Description

Earphone noise reduction method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for reducing noise of a receiver.
Background
At present, many terminal devices (mobile phones, tablet computers, and other devices) have a voice call function, and a handset is usually arranged in the terminal device, so that a user can answer the voice of the other party through the handset.
When the user performs voice communication with other terminal equipment through the terminal equipment, the user can answer the voice of the other party through a receiver of the terminal equipment. However, the environment where the user is located usually has noise, and when the user listens to the voice of the other party through the earphone, the noise in the environment also spreads to the ear of the user, so that the noise in the environment may interfere the user in recognizing the voice heard from the earphone, and further, the voice call quality of the terminal device is poor.
Disclosure of Invention
The embodiment of the invention provides a method and a device for reducing noise of a receiver, which improve the voice call quality of terminal equipment.
In a first aspect, an embodiment of the present invention provides an earpiece noise reduction method, which is applied to a terminal device, where the terminal device includes a first microphone MIC and a second MIC, and the method includes:
acquiring an initial signal received by a receiver;
acquiring a noise signal acquired by the first MIC, a playing loss coefficient of the receiver and a noise loss coefficient between the first MIC and the second MIC; wherein a distance between the first MIC and the earpiece is greater than a first threshold, and a distance between the second MIC and the earpiece is less than a second threshold;
determining a reverse noise signal according to the noise signal, the playing loss coefficient and the noise loss coefficient;
and carrying out noise reduction processing on the initial signal according to the reverse noise signal.
In one possible implementation, obtaining a playback loss factor of the earpiece and a noise loss factor between the first MIC and the second MIC includes:
and acquiring the playing loss coefficient and the noise loss coefficient in a preset storage space of the terminal equipment, wherein the playing loss coefficient and the noise loss coefficient are generated in advance.
In another possible implementation manner, before obtaining the play loss coefficient from the preset storage space of the terminal device, the method further includes:
sending a first electrical signal to the earpiece;
controlling the receiver to convert the first electric signal into a first voice signal and controlling the receiver to play the first voice signal;
controlling the second MIC to receive the first voice signal and controlling the second MIC to convert the first voice signal into a second electric signal;
determining a ratio of the first electrical signal to the second electrical signal as the playing loss coefficient;
and storing the playing loss coefficient in the preset storage space.
In another possible implementation manner, before obtaining the noise loss factor in the preset storage space of the terminal device, the method further includes:
acquiring a third electric signal generated by the first MIC according to preset noise in a simulation scene, wherein the simulation scene is a scene that the ear of a user is close to the receiver;
acquiring a fourth electric signal generated by the second MIC according to the preset noise;
determining a ratio of the third electrical signal and the fourth electrical signal as the noise loss coefficient;
and storing the noise loss coefficient in the preset storage space.
In another possible implementation, determining an inverse noise signal according to the noise signal, the playing loss coefficient, and the noise loss coefficient includes:
determining the inverse noise signal y by the following formula one:
Figure BDA0001327729110000021
wherein n is a noise signal, m is the playing loss coefficient, and k is the noise loss coefficient.
In a second aspect, an embodiment of the present invention provides an earphone noise reduction apparatus, which is applied to a terminal device, where the terminal device includes a first microphone MIC and a second MIC, and the apparatus includes: a first obtaining module, a second obtaining module, a first determining module and a noise reduction processing module, wherein,
the first acquisition module is used for acquiring an initial signal received by a receiver;
the second obtaining module is used for obtaining the noise signal acquired by the first MIC, the playing loss coefficient of the receiver and the noise loss coefficient between the first MIC and the second MIC; wherein a distance between the first MIC and the earpiece is greater than a first threshold, and a distance between the second MIC and the earpiece is less than a second threshold;
the first determining module is configured to determine a reverse noise signal according to the noise signal, the playing loss coefficient, and the noise loss coefficient;
and the noise reduction processing module is used for carrying out noise reduction processing on the initial signal according to the reverse noise signal.
In a possible implementation manner, the second obtaining module is specifically configured to:
and acquiring the playing loss coefficient and the noise loss coefficient in a preset storage space of the terminal equipment, wherein the playing loss coefficient and the noise loss coefficient are generated in advance.
In another possible embodiment, the apparatus further comprises a sending module, a control module, a second determining module, and a storage module, wherein,
the sending module is configured to send a first electrical signal to the receiver before the second obtaining module obtains the play loss coefficient in a preset storage space of the terminal device;
the control module is used for controlling the receiver to convert the first electric signal into a first voice signal and controlling the receiver to play the first voice signal;
the control module is further configured to control the second MIC to receive the first voice signal and control the second MIC to convert the first voice signal into a second electric signal;
the second determining module is configured to determine a ratio of the first electrical signal to the second electrical signal as the playing loss coefficient;
the storage module is used for storing the playing loss coefficient in the preset storage space.
In another possible implementation manner, the apparatus further includes a third obtaining module, a third determining module, wherein,
the third obtaining module is configured to obtain a third electrical signal generated by the first MIC according to a preset noise in a simulated scene before the second obtaining module obtains the noise loss coefficient in a preset storage space of the terminal device, where the simulated scene is a scene in which an ear of the user is close to the earpiece;
the third obtaining module is further configured to obtain a fourth electrical signal generated by the second MIC according to the preset noise;
the third determining module is configured to determine a ratio of the third electrical signal to the fourth electrical signal as the noise loss coefficient;
the storage module is further configured to store the noise loss coefficient in the preset storage space.
In another possible implementation manner, the first determining module is specifically configured to:
determining the inverse noise signal y by the following formula one:
Figure BDA0001327729110000031
wherein n is a noise signal, m is the playing loss coefficient, and k is the noise loss coefficient.
According to the method and the device for reducing the noise of the receiver, after the initial signal received by the receiver is obtained, the noise signal acquired by the first MIC, the playing loss coefficient of the receiver and the noise loss coefficient between the first MIC and the second MIC are obtained, the reverse noise signal is determined according to the noise signal, the playing loss coefficient and the noise loss coefficient, and then the noise reduction processing is carried out on the initial signal according to the initial signal and the reverse noise signal. In the process, the reverse noise signal can be accurately calculated according to the noise signal, the playing loss coefficient and the noise loss coefficient, and the noise reduction processing is carried out on the initial signal received by the terminal equipment according to the reverse noise signal, so that the sound signal converted by the receiver comprises the reverse noise which can be offset with the noise in the environment, so that a user can listen to the accurate sound signal sent by the other side, and the voice call quality of the terminal equipment 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 view of an application scenario of a receiver noise reduction method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of an earpiece noise reduction method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for generating a playing loss factor according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating a method for generating a noise loss factor according to an embodiment of the present invention;
fig. 5 is a first schematic structural diagram of an earpiece noise reduction device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an earpiece noise reduction device according to an 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.
Fig. 1 is a schematic view of an application scenario of an earpiece noise reduction method according to an embodiment of the present invention. Referring to fig. 1, handsets RCV, MIC1, and MIC2 are provided in a terminal apparatus. The distance between the MIC1 and the RCV of the receiver is far, and the distance between the MIC2 and the RCV of the receiver is near. Because of the close distance between the MIC2 and the earpiece, the voice signal collected by the MIC2 is approximately the same as the voice signal heard by the user. When a user listens to voice through an earphone RCV, the MIC is not shielded by ears generally, so that the MIC1 can accurately acquire the noise in the environment; meanwhile, when the user listens to speech through the RCV, the ear of the user is closer to the RCV and MIC2, the ear and MIC2 are shielded from each other, and therefore, the noise reaching the ear and MIC2 is generally less than the actual noise in the environment.
In the process of carrying out voice communication between terminal equipment and other terminal equipment, after the terminal equipment receives a radio signal, according to environmental noise acquired by MIC1 and attribute information of receivers RCV, MIC1 and MIC, a reverse noise signal can be accurately calculated, and noise reduction processing is carried out on an initial radio signal received by the terminal equipment according to the reverse noise signal, so that the sound signal converted by the receivers RCV comprises reverse noise, and the reverse noise can be offset with noise in the environment, so that a user can listen to an accurate sound signal sent by the other party.
The technical means shown in the present application will be described in detail below with reference to specific examples. It should be noted that the following specific embodiments may be combined with each other, and description of the same or similar contents is not repeated in different embodiments.
Fig. 2 is a schematic flow chart of an earpiece noise reduction method according to an embodiment of the present invention. Referring to fig. 2, the method may include:
s201, acquiring an initial signal received by a receiver.
The execution main body of the embodiment of the invention can be a receiver noise reduction device (hereinafter referred to as a noise reduction device for short), and the device can be arranged in terminal equipment. Alternatively, the noise reduction means may be implemented by software, or the noise reduction means may be implemented by a combination of software and hardware.
The technical scheme shown in the embodiment of fig. 2 can be implemented in the process of voice communication between the terminal device and other terminal devices. For example, during the process of performing voice communication between the terminal device and another terminal device, the technical solution shown in the embodiment of fig. 2 may be executed in real time, or the technical solution shown in the embodiment of fig. 2 may be executed after the terminal device receives a voice segment sent by another terminal device, which is not limited in this embodiment of the present invention.
After the terminal device receives the radio signal transmitted by other terminal devices, the radio signal is transmitted to the receiver, that is, the initial signal received by the receiver is a radio signal.
S202, acquiring a noise signal acquired by the first MIC, a playing loss coefficient of a receiver and a noise loss coefficient between the first MIC and the second MIC.
In an embodiment of the present invention, a distance between the first MIC and the earpiece is greater than a first threshold, and a distance between the second MIC and the earpiece is less than a second threshold. For example, the first threshold may be 1.5 centimeters and the second threshold may be 0.5 centimeters. In an actual application process, the first threshold and the second threshold may be set according to actual needs, which is not specifically limited in the embodiment of the present invention.
In an embodiment of the present invention, the first MIC and the second MIC may receive an acoustic signal and convert the acoustic signal into an electrical signal.
Optionally, in the embodiment of the present invention, the noise signal acquired by the first MIC is an electrical signal into which the sound signal acquired by the first MIC is converted.
Loss exists in the process that the receiver converts the received electric signals into the acoustic signals, and the playing loss coefficient of the receiver is used for indicating the loss condition of the receiver for converting the electric signals. It should be noted that, in the embodiment shown in fig. 3, a process of determining a loss factor of an earpiece is described in detail, and details are not described here again.
Because first MIC and second MIC set up the position difference on terminal equipment, and when the user answered the sound of other side through terminal equipment's earphone, ear and second MIC can shelter from each other, and ear and first MIC can not shelter from each other, consequently, under the prerequisite that the external noise is the same, the noise signal that first MIC gathered and obtained is different with the noise signal that second MIC gathered. The amplitude of the noise signal acquired by the second MIC is usually smaller than that acquired by the first MIC. Optionally, the noise loss coefficient between the first MIC and the second MIC may be a ratio of a first noise signal acquired by the first MIC and a second noise signal acquired by the second MIC. It should be noted that, in the embodiment shown in fig. 4, a process of determining a noise loss coefficient between the first MIC and the second MIC is described in detail, and details are not repeated here.
In the embodiment of the invention, the playing loss coefficient of the receiver and the noise loss coefficient between the first MIC and the second MIC are stored in the preset storage space of the terminal equipment, and when the playing loss coefficient and the noise loss coefficient need to be acquired, the playing loss coefficient and the noise loss coefficient can be directly acquired in the preset storage space. The playing loss factor and the noise loss factor in the preset storage space are generated in advance, for example, the playing loss factor and the noise loss factor in the preset storage space may be generated in advance when the terminal device leaves a factory.
S203, determining a reverse noise signal according to the noise signal, the playing loss coefficient and the noise loss coefficient.
Alternatively, the inverse noise signal y may be determined by the following formula one:
Figure BDA0001327729110000061
where n is a noise signal, m is a playback loss coefficient, and k is a noise loss coefficient.
Since the noise signal is an electrical signal, the obtained inverse noise signal is also an electrical signal.
And S204, carrying out noise reduction processing on the initial signal according to the initial signal and the reverse noise signal.
Optionally, the original signal and the inverse noise signal may be subjected to superposition processing to implement noise reduction processing on the original signal.
According to the method for reducing the noise of the receiver, after the initial signal received by the receiver is obtained, the noise signal acquired by the first MIC, the playing loss coefficient of the receiver and the noise loss coefficient between the first MIC and the second MIC are obtained, the reverse noise signal is determined according to the noise signal, the playing loss coefficient and the noise loss coefficient, and then the noise reduction processing is carried out on the initial signal according to the initial signal and the reverse noise signal. In the process, the reverse noise signal can be accurately calculated according to the noise signal, the playing loss coefficient and the noise loss coefficient, and the noise reduction processing is carried out on the initial signal received by the terminal equipment according to the reverse noise signal, so that the sound signal converted by the receiver comprises the reverse noise which can be offset with the noise in the environment, so that a user can listen to the accurate sound signal sent by the other side, and the voice call quality of the terminal equipment is improved.
Before the embodiment shown in fig. 2 is executed, the playing loss coefficient of the earphone may be preset, and optionally, the playing loss coefficient of the earphone may be generated in the following feasible implementation manner, specifically, please refer to the embodiment shown in fig. 3.
Fig. 3 is a flowchart illustrating a method for generating a playing loss factor according to an embodiment of the present invention. Referring to fig. 3, the method may include:
and S301, sending a first electric signal to the earphone.
Optionally, the playing loss coefficient of the earpiece in the terminal device may be determined before the terminal device leaves the factory, and of course, in the actual application process, the playing loss coefficient of the earpiece may also be determined again according to actual needs.
It should be noted that, in the embodiment shown in fig. 3, in the process of determining the playing loss coefficient of the earpiece, it is required to ensure that the environmental noise is zero, or the environmental noise is smaller than the preset noise, and the preset noise may be set according to actual needs.
Optionally, the first electrical signal may be generated by a preset module of the terminal device, and the first electrical signal is sent to the earpiece. The first electric signal is used for simulating the terminal equipment to receive the radio signal sent by other terminal equipment, wherein the first electric signal can be converted into a sound signal by the earphone.
S302, the receiver is controlled to convert the first electric signal into a first voice signal, and the receiver is controlled to play the first voice signal.
After the first electric signal is received by the receiver, the first electric signal is converted into a first voice signal, and the first voice signal is played through the receiver.
And S303, controlling the second MIC to receive the first voice signal and controlling the second MIC to convert the first voice signal into a second electric signal.
After the first voice signal is played by the receiver, the second MIC can acquire the first voice signal played by the receiver, and because the second MIC is closer to the receiver, the first voice signal played by the receiver and the first voice signal received by the second MIC can be approximately equal. After the second MIC receives the first voice signal, the second MIC converts the first voice signal into a second electric signal. The loss may be approximately zero during the second MIC speaking the first voice signal into the second electric signal.
S304, determining the ratio of the first electric signal to the second electric signal as a playing loss coefficient.
Optionally, a ratio of the amplitude of the first electrical signal to the amplitude of the second electrical signal may be determined as the playing loss factor.
Since the earphone has loss in the process of converting the first electrical signal into the first sound signal, and the second electrical signal is an electrical signal corresponding to the first sound signal, the ratio of the first electrical signal to the second electrical signal is usually greater than 1.
Optionally, after the playing loss coefficient is determined, the playing loss coefficient may be stored in a preset storage space, so that when the terminal device needs to use the playing loss coefficient, the playing loss coefficient is directly obtained in the preset storage space. Of course, in the actual application process, the playing loss coefficient in the preset storage space may also be updated according to actual needs.
Through the embodiment shown in fig. 3, the playing loss factor of the receiver in the terminal device can be accurately determined.
Before any of the above embodiments is performed, a noise loss coefficient between the first MIC and the second MIC may be preset, and optionally, the noise loss coefficient may be generated in the following feasible implementation manner, specifically, please refer to the embodiment shown in fig. 4.
Fig. 4 is a schematic flowchart of a method for generating a noise loss factor according to an embodiment of the present invention. Referring to fig. 4, the method may include:
s401, acquiring a third electric signal generated by the first MIC according to preset noise in a simulation scene.
Optionally, the noise loss coefficient may be determined before the terminal device leaves the factory, and of course, in the actual application process, the noise loss coefficient may also be determined again according to actual needs.
In the embodiment of the invention, the simulation scene is a scene in which the user holds the terminal equipment to receive the call.
It should be noted that, in the embodiment shown in fig. 4, in the process of determining the noise loss coefficient between the first MIC and the second MIC, it is required to ensure that a preset noise exists in the environment, and a decibel of the preset noise is greater than a preset threshold, and the preset threshold may be set according to actual needs.
When the preset noise exists in the environment, the preset noise is collected through the first MIC, and a third electric signal is generated according to the collected preset noise.
And S402, acquiring a fourth electric signal generated by the second MIC according to preset noise.
And when preset noise exists in the environment, acquiring the preset noise through the second MIC, and generating a fourth electric signal according to the acquired preset noise.
And S403, determining the ratio of the third electric signal to the fourth electric signal as a noise loss coefficient.
Because the second MIC is shielded by the ear, under the premise that the environmental noise is the same, the noise acquired by the first MIC and the noise acquired by the second MIC are different, and therefore the third electric signal generated by the first MIC and the fourth electric signal acquired by the second MIC are different.
Alternatively, the ratio of the amplitude of the third electrical signal to the amplitude of the fourth electrical signal may be determined as the noise loss factor.
Optionally, after the noise loss coefficient is determined, the noise loss coefficient may be stored in a preset storage space, so that when the terminal device needs to use the noise loss coefficient, the noise loss coefficient may be directly obtained in the preset storage space. Of course, in the actual application process, the noise loss coefficient in the preset storage space may also be updated according to actual needs.
Through the embodiment shown in fig. 3, the noise loss coefficient between the first MIC and the second MIC in the terminal equipment can be accurately determined and obtained
The technical solutions shown in the above method embodiments are described in detail below by specific examples.
For example, it is assumed that the mobile phone includes MIC1 and MIC2, where the MIC1 is farther away from the handset of the mobile phone, and the MIC2 is closer to the handset of the mobile phone.
The playing loss coefficient m of the receiver is 2, and the noise loss coefficient k between the MIC1 and the MIC2 is 3, which are stored in the terminal device. In the process of answering a call by a user through a mobile phone, the environment where the user is located is assumed to have noise n, and a radio signal received by the mobile phone is x.
Under the condition that the noise of the receiver is not reduced, the electric signals corresponding to the sound acquired by the MIC2 are as follows:
Figure BDA0001327729110000091
wherein the content of the first and second substances,
Figure BDA0001327729110000092
an electrical signal corresponding to the sound played by the handset collected by the MIC2,
Figure BDA0001327729110000093
the resulting ambient noise collected for MIC2 corresponds to an electrical signal. Since the sound collected by the MIC2 is approximately equal to the sound heard by the user's ear, the electrical signal corresponding to the sound heard by the user's ear is also the sameIt can be seen that the sound heard by the user includes noise
Figure BDA0001327729110000095
Under the condition of noise reduction of the receiver, according to the formula I, the reverse noise signal can be determined to be obtained
Figure BDA0001327729110000096
Then, the reverse noise signal and the radio signal received by the mobile phone are superposed to obtain
Figure BDA0001327729110000097
Correspondingly, when the receiver plays the sound, the receiver will play the sound
Figure BDA0001327729110000098
Converting into sound signal and playing. Correspondingly, the electrical signals corresponding to the sound signals acquired by the MIC2 are:
Figure BDA0001327729110000099
since the sound collected by the MIC2 is approximately equal to the sound heard by the user's ear, the electrical signal corresponding to the sound heard by the user's ear is also the same
Figure BDA00013277291100000910
It is thus understood that the sound heard by the user does not include noise.
Therefore, by the method, when noise exists in the environment where the user is located, the sound heard by the user still does not include the noise, so that the user can hear an accurate sound signal sent by the opposite side, and the voice call quality of the terminal device is improved.
Fig. 5 is a first schematic structural diagram of an earpiece noise reduction device according to an embodiment of the present invention. The device is applied to a terminal device which comprises a first microphone MIC and a second MIC. Referring to fig. 5, the apparatus includes: a first obtaining module 11, a second obtaining module 12, a first determining module 13 and a noise reduction processing module 14, wherein,
the first obtaining module 11 is configured to obtain an initial signal received by an earphone;
the second obtaining module 12 is configured to obtain a noise signal acquired by the first MIC, a playing loss coefficient of the earpiece, and a noise loss coefficient between the first MIC and the second MIC; wherein a distance between the first MIC and the earpiece is greater than a first threshold, and a distance between the second MIC and the earpiece is less than a second threshold;
the first determining module 13 is configured to determine a reverse noise signal according to the noise signal, the playing loss coefficient, and the noise loss coefficient;
the noise reduction processing module 14 is configured to perform noise reduction processing on the initial signal according to the inverse noise signal.
The earpiece noise reduction device provided by the embodiment of the invention can execute the technical scheme shown in the method embodiment, the implementation principle and the beneficial effect are similar, and the details are not repeated here.
In a possible implementation manner, the second obtaining module 12 is specifically configured to:
and acquiring the playing loss coefficient and the noise loss coefficient in a preset storage space of the terminal equipment, wherein the playing loss coefficient and the noise loss coefficient are generated in advance.
Fig. 6 is a schematic structural diagram of an earpiece noise reduction device according to an embodiment of the present invention. On the basis of the embodiment shown in fig. 5, please refer to fig. 6, the apparatus further comprises a sending module 15, a control module 16, a second determining module 17 and a storing module 18, wherein,
the sending module 15 is configured to send a first electrical signal to the receiver before the second obtaining module 12 obtains the playing loss coefficient in a preset storage space of the terminal device;
the control module 16 is configured to control the receiver to convert the first electrical signal into a first voice signal, and control the receiver to play the first voice signal;
the control module 16 is further configured to control the second MIC to receive the first voice signal, and control the second MIC to convert the first voice signal into a second electric signal;
the second determining module 17 is configured to determine a ratio of the first electrical signal to the second electrical signal as the playing loss factor;
the storage module 18 is configured to store the playing loss factor in the preset storage space.
In another possible implementation, the apparatus further includes a third obtaining module 19, a third determining module 110, wherein,
the third obtaining module 19 is configured to, before the second obtaining module 17 obtains the noise loss coefficient in a preset storage space of the terminal device, obtain, in a simulated scene, a third electrical signal generated by the first MIC according to a preset noise, where the simulated scene is a scene in which an ear of the user is close to the earpiece;
the third obtaining module 19 is further configured to obtain a fourth electrical signal generated by the second MIC according to the preset noise;
the third determining module 110 is configured to determine a ratio of the third electrical signal and the fourth electrical signal as the noise loss factor;
the storage module 18 is further configured to store the noise loss factor in the preset storage space.
In another possible implementation manner, the first determining module 13 is specifically configured to:
determining the inverse noise signal y by the following formula one:
wherein n is a noise signal, m is the playing loss coefficient, and k is the noise loss coefficient.
The earpiece noise reduction device provided by the embodiment of the invention can execute the technical scheme shown in the method embodiment, the implementation principle and the beneficial effect are similar, and the details are not repeated here.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand 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 such modifications or substitutions do not depart from the spirit and scope of the embodiments of the present invention.

Claims (8)

1. An earphone noise reduction method is applied to a terminal device, wherein the terminal device comprises a first microphone MIC and a second MIC, and the method comprises the following steps:
acquiring an initial signal received by a receiver;
acquiring a noise signal acquired by the first MIC, a playing loss coefficient of the receiver and a noise loss coefficient between the first MIC and the second MIC; wherein a distance between the first MIC and the earpiece is greater than a first threshold, and a distance between the second MIC and the earpiece is less than a second threshold; wherein the first threshold is greater than the second threshold;
determining a reverse noise signal according to the noise signal, the playing loss coefficient and the noise loss coefficient;
according to the reverse noise signal, carrying out noise reduction processing on the initial signal;
wherein, determining a reverse noise signal according to the noise signal, the playing loss coefficient and the noise loss coefficient comprises:
determining the inverse noise signal y by the following formula one:
Figure FDA0002257882630000011
wherein n is a noise signal, m is the playing loss coefficient, and k is the noise loss coefficient.
2. The method of claim 1, wherein obtaining the playback loss factor of the earpiece and the noise loss factor between the first MIC and the second MIC comprises:
and acquiring the playing loss coefficient and the noise loss coefficient in a preset storage space of the terminal equipment, wherein the playing loss coefficient and the noise loss coefficient are generated in advance.
3. The method according to claim 2, further comprising, before obtaining the playing back loss factor from the preset storage space of the terminal device:
sending a first electrical signal to the earpiece;
controlling the receiver to convert the first electric signal into a first voice signal and controlling the receiver to play the first voice signal;
controlling the second MIC to receive the first voice signal and controlling the second MIC to convert the first voice signal into a second electric signal;
determining a ratio of the first electrical signal to the second electrical signal as the playing loss coefficient;
and storing the playing loss coefficient in the preset storage space.
4. The method according to claim 2, further comprising, before obtaining the noise loss factor in a preset storage space of the terminal device:
acquiring a third electric signal generated by the first MIC according to preset noise in a simulation scene, wherein the simulation scene is a scene that the ear of a user is close to the receiver;
acquiring a fourth electric signal generated by the second MIC according to the preset noise;
determining a ratio of the third electrical signal and the fourth electrical signal as the noise loss coefficient;
and storing the noise loss coefficient in the preset storage space.
5. An earphone noise reduction device is applied to a terminal device, the terminal device comprises a first microphone MIC and a second MIC, and the device comprises: a first obtaining module, a second obtaining module, a first determining module and a noise reduction processing module, wherein,
the first acquisition module is used for acquiring an initial signal received by a receiver;
the second obtaining module is used for obtaining the noise signal acquired by the first MIC, the playing loss coefficient of the receiver and the noise loss coefficient between the first MIC and the second MIC; wherein a distance between the first MIC and the earpiece is greater than a first threshold, and a distance between the second MIC and the earpiece is less than a second threshold; wherein the first threshold is greater than the second threshold;
the first determining module is configured to determine a reverse noise signal according to the noise signal, the playing loss coefficient, and the noise loss coefficient;
the noise reduction processing module is used for carrying out noise reduction processing on the initial signal according to the reverse noise signal;
wherein the first determining module is specifically configured to:
determining the inverse noise signal y by the following formula one:
Figure FDA0002257882630000021
wherein n is a noise signal, m is the playing loss coefficient, and k is the noise loss coefficient.
6. The apparatus of claim 5, wherein the second obtaining module is specifically configured to:
and acquiring the playing loss coefficient and the noise loss coefficient in a preset storage space of the terminal equipment, wherein the playing loss coefficient and the noise loss coefficient are generated in advance.
7. The apparatus of claim 6, further comprising a sending module, a control module, a second determining module, and a storage module, wherein,
the sending module is configured to send a first electrical signal to the receiver before the second obtaining module obtains the play loss coefficient in a preset storage space of the terminal device;
the control module is used for controlling the receiver to convert the first electric signal into a first voice signal and controlling the receiver to play the first voice signal;
the control module is further configured to control the second MIC to receive the first voice signal and control the second MIC to convert the first voice signal into a second electric signal;
the second determining module is configured to determine a ratio of the first electrical signal to the second electrical signal as the playing loss coefficient;
the storage module is used for storing the playing loss coefficient in the preset storage space.
8. The apparatus of claim 7, further comprising a third obtaining module, a third determining module, wherein,
the third obtaining module is configured to obtain a third electrical signal generated by the first MIC according to a preset noise in a simulated scene before the second obtaining module obtains the noise loss coefficient in a preset storage space of the terminal device, where the simulated scene is a scene in which an ear of the user is close to the earpiece;
the third obtaining module is further configured to obtain a fourth electrical signal generated by the second MIC according to the preset noise;
the third determining module is configured to determine a ratio of the third electrical signal to the fourth electrical signal as the noise loss coefficient;
the storage module is further configured to store the noise loss coefficient in the preset storage space.
CN201710473835.2A 2017-06-21 2017-06-21 Earphone noise reduction method and device Active CN107124494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710473835.2A CN107124494B (en) 2017-06-21 2017-06-21 Earphone noise reduction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710473835.2A CN107124494B (en) 2017-06-21 2017-06-21 Earphone noise reduction method and device

Publications (2)

Publication Number Publication Date
CN107124494A CN107124494A (en) 2017-09-01
CN107124494B true CN107124494B (en) 2020-02-14

Family

ID=59719327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710473835.2A Active CN107124494B (en) 2017-06-21 2017-06-21 Earphone noise reduction method and device

Country Status (1)

Country Link
CN (1) CN107124494B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9445184B2 (en) * 2013-12-03 2016-09-13 Bose Corporation Active noise reduction headphone
CN106205592B (en) * 2016-06-24 2020-07-28 努比亚技术有限公司 Noise reduction device and method
CN106303783A (en) * 2016-08-12 2017-01-04 北京金锐德路科技有限公司 Noise-reduction method and device

Also Published As

Publication number Publication date
CN107124494A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
US10269369B2 (en) System and method of noise reduction for a mobile device
KR101540896B1 (en) Generating a masking signal on an electronic device
US9071900B2 (en) Multi-channel recording
US8290537B2 (en) Sidetone adjustment based on headset or earphone type
US10277750B2 (en) Method and system for improving echo in hands-free call of mobile terminal
US20180293982A1 (en) Voice assistant extension device and working method therefor
US20070237339A1 (en) Environmental noise reduction and cancellation for a voice over internet packets (VOIP) communication device
KR101381289B1 (en) Wire and wireless earset using in ear-type microphone
CN100531242C (en) Sound reproduction device and method in portable electronic equipment
CN108777827B (en) Wireless earphone, volume adjusting method and related product
JP2006139307A (en) Apparatus having speech effect processing and noise control and method therefore
EP3217638B1 (en) Transferring information from a sender to a recipient during a telephone call under noisy environment
CN105260159B (en) A kind of audio frequency playing method and device
WO2014169757A1 (en) Method and terminal for adaptively adjusting frequency response
CN104427068A (en) Voice communication method and device
CN112822585A (en) Audio playing method, device and system of in-ear earphone
CN104217750A (en) A holographic audio record and playback method
CN109600703B (en) Sound amplification system, sound amplification method thereof, and computer-readable storage medium
JP5213584B2 (en) Call system
CN106657621B (en) Self-adaptive adjusting device and method for sound signal
CN108154886A (en) Noise suppressing method and device, electronic device and computer readable storage medium
CN104754099A (en) Conversation volume adjusting method
CN104883450A (en) Communication device and communication method for enhancing voice reception capacity
JP2012095047A (en) Speech processing unit
CN107124494B (en) Earphone noise reduction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant