CN106569774B - Method and terminal for removing noise - Google Patents

Method and terminal for removing noise Download PDF

Info

Publication number
CN106569774B
CN106569774B CN201610998704.1A CN201610998704A CN106569774B CN 106569774 B CN106569774 B CN 106569774B CN 201610998704 A CN201610998704 A CN 201610998704A CN 106569774 B CN106569774 B CN 106569774B
Authority
CN
China
Prior art keywords
data
terminal
sound data
microphone
sound
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
CN201610998704.1A
Other languages
Chinese (zh)
Other versions
CN106569774A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610998704.1A priority Critical patent/CN106569774B/en
Publication of CN106569774A publication Critical patent/CN106569774A/en
Application granted granted Critical
Publication of CN106569774B publication Critical patent/CN106569774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The invention discloses a method for removing noise and a terminal, which are used for solving the problem that the audio data played by a loudspeaker of the terminal cannot be filtered out through noise reduction in the prior art. The terminal acquires sound data through a microphone, and simultaneously acquires noise reference data which is the same as the sound data played by a loudspeaker of the terminal through an earphone plug inserted into the terminal, wherein the sound data comprises the sound data played by the loudspeaker of the terminal; the terminal removes the sound data which is the same as the noise reference data in the sound data acquired by the microphone. Since the sound data acquired by the microphone includes the sound data played by the speaker, the sound data played by the speaker may interfere with each other when the sound data acquired by the microphone is processed. According to the embodiment of the invention, after the terminal acquires the noise reference data, the sound data played by the loudspeaker contained in the sound data acquired by the microphone is removed, so that the noise in the sound data acquired by the microphone is reduced.

Description

Method and terminal for removing noise
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a terminal for removing noise.
Background
With the development of science and technology, more and more terminals have a voice recognition function, and the voice recognition is to convert voice data into corresponding texts or commands through recognition and understanding by the terminals. Existing speech recognition functions can recognize isolated words, keywords, and continuous speech.
When the terminal carries out voice recognition, the noise reduction processing is firstly carried out on the obtained voice data so as to ensure the purity of the voice data and further improve the voice recognition rate. Aiming at the condition of small environmental noise, the existing noise reduction processing method can be used for acquiring purer voice data, and the voice recognition rate is also high.
If audio is played through a loudspeaker at the terminal and voice recognition is performed at the same time, the acquired voice data contains audio data played by the loudspeaker, the current noise reduction processing cannot filter the audio data played by the loudspeaker at the terminal, and the voice data and the audio data played by the loudspeaker are mixed in the data for voice recognition. When voice recognition is performed, information contained in voice data cannot be accurately recognized, namely, the voice recognition function is affected, so that the voice recognition cannot be performed normally; eventually resulting in a lower speech recognition rate.
In summary, the existing noise reduction processing cannot filter out audio data played by a speaker of the terminal.
Disclosure of Invention
The invention provides a method for removing noise and a terminal, which are used for solving the problem that the audio data played by a loudspeaker of the terminal cannot be filtered out through noise reduction in the prior art.
The embodiment of the invention provides a method for removing noise, which comprises the following steps:
the method comprises the steps that a terminal acquires sound data through a microphone, and simultaneously acquires noise reference data which are the same as the sound data played by a loudspeaker of the terminal through an earphone plug inserted into the terminal, wherein the sound data comprise the sound data played by the loudspeaker of the terminal;
and the terminal removes the sound data which is the same as the noise reference data in the sound data acquired by the microphone.
The embodiment of the invention provides an earphone plug for removing noise, which comprises a first connector, a second connector and a grounding connector, wherein the first connector is connected with the second connector;
wherein the first joint is in internal communication with the second joint;
the first connector is connected with a left sound channel output port or a right sound channel output port of the terminal after the earphone plug is inserted into the terminal;
and the second connector is connected with a microphone MIC circuit of the terminal after the earphone plug is inserted into the terminal.
The embodiment of the invention provides a terminal for removing noise, which comprises:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring sound data through a microphone and simultaneously acquiring noise reference data which is the same as the sound data played by a loudspeaker of the terminal through an earphone plug inserted into the terminal, and the sound data comprises the sound data played by the loudspeaker of the terminal;
and the processing module is used for removing the sound data which is the same as the noise reference data in the sound data acquired by the microphone.
The terminal acquires sound data through a microphone, and simultaneously acquires noise reference data which is the same as the sound data played by a loudspeaker of the terminal through an earphone plug inserted into the terminal, wherein the sound data comprises the sound data played by the loudspeaker of the terminal; the terminal removes the sound data which is the same as the noise reference data in the sound data acquired by the microphone. Because the sound data acquired by the microphone includes the sound data played by the speaker, the sound data played by the speaker may interfere with each other when the sound data acquired by the microphone is processed. In the embodiment of the invention, the noise reference data transmitted to the earphone plug is the same as the sound data played by the loudspeaker of the terminal, and after the terminal acquires the noise reference data, the sound data played by the loudspeaker contained in the sound data acquired by the microphone can be removed, so that the noise in the sound data acquired by the microphone can be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart illustrating a method for removing noise according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a first earphone plug according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a second earphone plug according to the embodiment of the present invention;
FIG. 4 is a flow chart of a process for removing noise according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal for removing noise according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another noise-removing terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 1, an embodiment of the present invention provides a method for removing noise, including:
step 101: the method comprises the steps that a terminal acquires sound data through a microphone, and simultaneously acquires noise reference data which are the same as the sound data played by a loudspeaker of the terminal through an earphone plug inserted into the terminal, wherein the sound data comprise the sound data played by the loudspeaker of the terminal;
step 102: and the terminal removes the sound data which is the same as the noise reference data in the sound data acquired by the microphone.
If the speaker in the terminal is in the playing state before the earphone plug is inserted, the playing state of the speaker is not interrupted and the playing is continued when the earphone plug is inserted into the terminal, that is, the playing state of the speaker in the embodiment of the present invention is not affected by whether the earphone plug is inserted into the terminal or not.
When sound data are required to be acquired through a microphone, after an earphone plug is determined to be inserted into the terminal, the terminal transmits the sound data required to be played currently to a loudspeaker for playing, and simultaneously transmits the sound data required to be played currently to a first connector in the earphone plug; that is, the sound data played by the speaker is the same as the sound data transmitted to the first connector in the headphone plug.
There are many scenarios that require sound data to be captured by a microphone while a speaker is in a playing state. For example, when the speaker is in a playing state, the terminal voice recognition function is currently started, and at this time, the terminal acquires voice data including voice data through the microphone; for example, when the speaker is in a playing state, the recording function of the terminal is currently started, and at this time, the terminal acquires sound data through the microphone; when the loudspeaker is in a playing state, the voice data acquired by the microphone needs to be played currently, and at the moment, the terminal acquires the voice data through the microphone, processes the voice data and plays the voice data; for example, when the speaker is in a playing state, a user browses a web page using the terminal, and when the user clicks a read voice button in the web page, the terminal acquires voice data through the microphone.
The embodiment of the invention can adopt a specific earphone plug, which is different from the earphone plug in the prior art, and the earphone plug in the embodiment of the invention comprises a first joint, a second joint and a grounding joint;
wherein the first joint is in internal communication with the second joint;
the first connector is connected with a left sound channel output port or a right sound channel output port of the terminal after the earphone plug is inserted into the terminal;
and the second connector is connected with a microphone MIC circuit of the terminal after the earphone plug is inserted into the terminal.
It should be noted that, the grounding connector is used to perform grounding processing on the earphone plug, so as to ensure that the earphone plug can work normally.
As shown in fig. 2, a schematic structural diagram of an earphone plug according to an embodiment of the present invention is shown, where after the earphone plug is inserted into a terminal, a first connector is connected to a right channel output port of the terminal; with this arrangement, after the headphone plug is inserted into the terminal, the sound data input to the right channel output port in the terminal can be transmitted to the first connector. The first connector and the second connector are arranged to be communicated with each other internally, namely, data transmitted to the first connector can be transmitted to the second connector through the first connector; and meanwhile, after the earphone plug is inserted into the terminal, the second connector is connected with the microphone MIC circuit of the terminal, and by adopting the arrangement mode, the data in the second connector can be transmitted to the MIC circuit of the terminal, so that the MIC circuit can process the data in the second connector.
In the prior art, the insertion detection of the headphone plug is mainly performed based on whether a connector is connected with a left channel output port of a terminal to check, wherein the left channel output port in the terminal is located at the deepest position of a headphone jack in the terminal; that is, when the earphone plug is inserted, if the connector in the earphone plug is connected with the left channel output port in the terminal, the earphone plug is considered to be inserted, otherwise, the earphone plug is not inserted. If the earphone plug is detected to be inserted, the terminal interrupts the playing of the loudspeaker, transmits the played data to the earphone plug, and plays the sound data through the earphone. In this regard, it may be preferable to provide that after the headphone plug is inserted into the terminal, none of the connectors in the headphone plug are in contact with the left channel output port, for example, the first connector is connected to the right channel output port of the terminal, and the second connector is connected to the MIC circuit in the terminal.
If the earphone plug is inserted into the terminal, checking whether a connector is connected with a right sound channel output port of the terminal or not, wherein the right sound channel output port in the terminal is located at the deepest position of an earphone jack in the terminal; preferably, the earphone plug is configured such that no connector of the earphone plug contacts the right channel output port after the earphone plug is inserted into the terminal, for example, a first connector is connected to the left channel output port of the terminal, and a second connector is connected to the MIC circuit in the terminal.
It should be noted that, the terminal may also be set to not detect whether the headphone plug is inserted, that is, whether the headphone plug is inserted or not, the playing state of the speaker of the terminal will not change due to whether the headphone plug is inserted or not. In this case, the first connector may be configured to be connected to the right channel output port of the terminal after the headphone plug is inserted, or the first connector may be configured to be connected to the left channel output port of the terminal after the headphone plug is inserted; or a third connector is arranged in the earphone plug, the first connector and the third connector are respectively connected with the left channel output port and the right channel output port of the terminal, and the condition that the third connector is arranged is described in detail later.
And the terminal acquires the currently played sound data through a second connector communicated with the first connector in the earphone plug, and takes the acquired currently played sound data as the noise reference data.
If the set terminal does not detect whether the headphone plug is inserted, the headphone plug shown in fig. 3 may be used. The earphone plug shown in fig. 3 includes four connectors, a first connector, a second connector, a third connector, and a ground connector, where the second connector is connected to a microphone MIC circuit of the terminal after the earphone plug is inserted into the terminal, the first connector is connected to a right channel output port of the terminal after the earphone plug is inserted into the terminal, and the third connector is connected to a left channel output port of the terminal after the earphone plug is inserted into the terminal.
The earphone plug shown in fig. 3 can be classified into three types according to the connection manner inside the connector.
The first method comprises the following steps: the first connector is internally communicated with the second connector.
The method comprises the steps that a first type of earphone plug is adopted, and the terminal transmits sound data needing to be played at present to a first connector in the earphone plug. In the earphone plug, because the first connector is communicated with the second connector, the terminal can acquire the currently played sound data through the second connector communicated with the first connector in the earphone plug, and the acquired currently played sound data is used as the noise reference data.
And the second method comprises the following steps: the third joint is communicated with the inside of the second joint.
And the terminal transmits the current sound data to be played to a third connector in the earphone plug by adopting the earphone plug of the second type. In the earphone plug, because the third joint is communicated with the inside of the second joint, the terminal acquires the currently played sound data through the second joint which is communicated with the third joint in the earphone plug, and the acquired currently played sound data is used as the noise reference data.
And the third is that: the first joint is in communication with the interior of the second joint and the third joint is in communication with the interior of the second joint.
And by adopting the third type of earphone plug, the terminal can flexibly select to transmit the sound data which needs to be played currently to the third connector or the first connector in the earphone plug. And then, acquiring the currently played sound data through a second joint communicated with the first joint and the second joint, and taking the acquired currently played sound data as the noise reference data.
If the terminal is set to detect whether the headphone plug is inserted, the headphone plug shown in fig. 3 may be used.
If the earphone plug is inserted into the terminal, the detection is mainly carried out on the basis that whether a connector is connected with a left sound channel output port of the terminal or not, wherein the left sound channel output port in the terminal is located at the deepest position of an earphone jack in the terminal; the third connector of the earphone plug is in contact with the left sound channel output port of the terminal when the earphone plug is inserted, so that the length of the third connector can be set to be shorter, and the third connector cannot be in contact with the left sound channel output port of the terminal after the earphone plug is inserted into the terminal; the third joint can be coated with insulating materials outside to ensure that the earphone plug is not conducted with the left sound channel output port of the terminal;
if the earphone plug is inserted into the terminal, the detection is mainly carried out on the basis of whether a connector is connected with the right sound channel output port of the terminal; the first connector of the earphone plug is in contact with the right sound channel output port of the terminal when the earphone plug is inserted, and therefore, the first connector can be coated with an insulating material on the basis of the contact, so that the earphone plug is not conducted with the right sound channel output port of the terminal; the first connector may be arranged to have a smaller diameter so that the first connector does not contact the terminal after the headphone plug is inserted into the terminal.
The terminal converts the sound data acquired by the microphone into first channel data in stereo and converts the noise reference data into second channel data in stereo;
and the terminal removes the data which is the same as the second channel data in the first channel data.
In general, stereo sound includes left and right channels.
The terminal may convert the sound data acquired through the microphone into left channel data in stereo and convert the noise reference data into right channel data in stereo; the terminal may also convert the sound data acquired through the microphone into right channel data in stereo and convert the noise reference data into left channel data in stereo.
And if the terminal converts the sound data acquired by the microphone into left channel data in stereo and converts the noise reference data into right channel data in stereo, the terminal removes the same data in the left channel data as the right channel data.
And if the terminal converts the sound data acquired by the microphone into right channel data in stereo and converts the noise reference data into left channel data in stereo, the terminal removes the same data in the right channel data as the left channel data.
In implementation, the types of the sound data and the noise reference data acquired by the microphone are different, and the way of converting the sound data and the noise reference data acquired by the microphone into channel data in stereo is also different.
For example, the sound data acquired by the microphone and the noise reference data are analog data, and since the sound data needs to be processed, the analog data needs to be converted into a digital signal, and then the digital signal needs to be converted into channel data in stereo. And the terminal respectively converts the sound data acquired by the microphone and the noise reference data into digital signals.
After the digital signal is converted, the terminal converts the digital signal of the sound data acquired by the microphone into first channel data in stereo; and the terminal converts the digital signal of the noise reference data into second channel data in stereo.
And the terminal removes the data which is the same as the second channel data in the first channel data.
The terminal can convert the digital signal of the sound data acquired by the microphone into left channel data in stereo and convert the digital signal of the noise reference data into right channel data in stereo; the digital signal of the sound data acquired by the microphone may be converted into right channel data in stereo, and the digital signal of the noise reference data may be converted into left channel data in stereo.
For example, the terminal may convert the digital signal corresponding to the sound data and the noise reference data acquired by the microphone into stereo data in a PCM (Pulse code modulation) format by encoding, where the stereo data includes left channel data and right channel data, convert the digital signal of the sound data acquired by the microphone into left channel data in stereo, and convert the digital signal of the noise reference data into right channel data in stereo; the digital signal of the sound data acquired by the microphone may be converted into right channel data in stereo, and the digital signal of the noise reference data may be converted into left channel data in stereo.
And if the digital signal of the sound data acquired by the microphone is converted into left channel data in stereo and the digital signal of the noise reference data is converted into right channel data in stereo, the terminal removes the data which is the same as the right channel data in the left channel data.
The left channel data from which the same data is removed contains voice data, and the left channel data from which the same data is removed can be subjected to voice recognition processing to obtain information contained therein; playback processing may also be performed.
And if the digital signal of the sound data acquired by the microphone is converted into right channel data in stereo and the digital signal of the noise reference data is converted into left channel data in stereo, the terminal removes the data which is the same as the left channel data in the right channel data.
The right channel data from which the same data is removed contains voice data, and the right channel data from which the same data is removed can be subjected to voice recognition processing to obtain information contained therein; playback processing may also be performed.
Taking the connection of the first connector in the earphone plug and the right channel output port in the terminal as an example, as shown in fig. 4, a flow chart of a process of removing noise according to the embodiment of the present invention;
step 401: the terminal determines that the earphone plug is inserted;
step 402: the terminal transmits the sound data to be played to a loudspeaker for playing;
step 403: the terminal transmits the current sound data to be played to a first connector in the earphone plug;
step 404: the terminal acquires sound data through a microphone;
step 405: the terminal acquires the currently played sound data through a second connector which is communicated with the first connector in the earphone plug;
step 406: the terminal takes the currently played sound data acquired through the second connector as noise reference data;
step 407: the terminal respectively converts the sound data and the noise reference data acquired by the microphone into digital signals;
step 408: the terminal converts the digital signal of the sound data acquired by the microphone into left channel data in stereo;
step 409: the terminal converts the digital signal of the noise reference data into right channel data in stereo;
step 410: and the terminal removes the data which is the same as the right channel data in the left channel data.
Based on the same inventive concept, the present discovery embodiment further provides a terminal for removing noise, because the principle of the terminal for solving the problem is similar to the method for removing noise in the embodiments of the present invention, the implementation of the terminal may refer to the implementation of the method, and repeated details are not described again.
As shown in fig. 5, a terminal for removing noise according to an embodiment of the present invention includes an obtaining module 500 and a processing module 501:
an obtaining module 500, configured to obtain sound data through a microphone, and simultaneously obtain, through an earphone plug inserted into the terminal, noise reference data that is the same as the sound data played by a speaker of the terminal, where the sound data includes the sound data played by the speaker of the terminal;
a processing module 501, configured to remove sound data that is the same as the noise reference data from the sound data acquired by the microphone.
The playing state of the loudspeaker is not affected by whether the earphone plug is plugged into the terminal or not.
When sound data needs to be acquired through a microphone, after an earphone plug is determined to be inserted into the acquisition module 500, the acquisition module 500 transmits the sound data which needs to be played currently to a loudspeaker for playing, and transmits the sound data which needs to be played currently to a first connector in the earphone plug; that is, the sound data played by the speaker is the same as the sound data transmitted to the first connector in the headphone plug.
The embodiment of the invention can adopt a specific earphone plug, which is different from the earphone plug in the prior art, and the earphone plug in the embodiment of the invention comprises a first joint, a second joint and a grounding joint;
wherein the first joint is in internal communication with the second joint;
the first connector is connected with a left sound channel output port or a right sound channel output port of the terminal after the earphone plug is inserted into the terminal;
and the second connector is connected with a microphone MIC circuit of the terminal after the earphone plug is inserted into the terminal.
It should be noted that, the grounding connector is used to perform grounding processing on the earphone plug, so as to ensure that the earphone plug can work normally.
The obtaining module 500 obtains the currently playing sound data through a second connector in the earphone plug, which is communicated with the first connector, and uses the obtained currently playing sound data as the noise reference data.
The processing module 501 converts the sound data acquired by the microphone into first channel data in stereo, and converts the noise reference data into second channel data in stereo;
the processing module 501 removes the same data in the first channel data as the second channel data.
In general, stereo sound includes left and right channels.
The processing module 501 may convert the sound data acquired by the microphone into left channel data in stereo, and convert the noise reference data into right channel data in stereo; the processing module 501 may also convert the sound data acquired by the microphone into right channel data in stereo and convert the noise reference data into left channel data in stereo.
If the processing module 501 converts the sound data acquired by the microphone into left channel data in stereo and converts the noise reference data into right channel data in stereo, the processing module 501 removes the same data as the right channel data in the left channel data.
If the processing module 501 converts the sound data acquired by the microphone into right channel data in stereo and converts the noise reference data into left channel data in stereo, the processing module 501 removes the same data as the left channel data in the right channel data.
In implementation, the types of the sound data and the noise reference data acquired by the microphone are different, and the way of converting the sound data and the noise reference data acquired by the microphone into channel data in stereo is also different.
For example, the sound data acquired by the microphone and the noise reference data belong to analog data, and since the sound data needs to be processed, the analog data needs to be converted into a digital signal, and then the digital signal needs to be converted into channel data in stereo. The processing module 501 converts the sound data acquired by the microphone and the noise reference data into digital signals, respectively.
After converting into a digital signal, the processing module 501 converts the digital signal of the sound data acquired by the microphone into first channel data in stereo; the processing module 501 converts the digital signal of the noise reference data into the second channel data in stereo.
The processing module 501 removes the same data in the first channel data as the second channel data.
The processing module 501 may convert the digital signal of the sound data acquired by the microphone into left channel data in stereo, and convert the digital signal of the noise reference data into right channel data in stereo; the digital signal of the sound data acquired by the microphone may be converted into right channel data in stereo, and the digital signal of the noise reference data may be converted into left channel data in stereo.
If the processing module 501 converts the digital signal of the sound data acquired by the microphone into left channel data in stereo and converts the digital signal of the noise reference data into right channel data in stereo, the processing module 501 removes the same data as the right channel data in the left channel data.
The left channel data from which the same data is removed includes voice data, and the processing module 501 may perform voice recognition processing on the left channel data from which the same data is removed to obtain information included therein; playback processing may also be performed.
If the processing module 501 converts the digital signal of the sound data acquired by the microphone into right channel data in stereo and converts the digital signal of the noise reference data into left channel data in stereo, the processing module 501 removes the same data as the left channel data from the right channel data.
The right channel data from which the same data is removed includes voice data, and the processing module 501 may perform voice recognition processing on the right channel data from which the same data is removed to obtain information included therein; playback processing may also be performed.
The embodiment of the invention also provides a terminal for removing noise, and as shown in fig. 6, another terminal for removing noise in the embodiment of the invention is shown in a schematic structural diagram.
The processor may implement the function of the obtaining module 500 to transmit the sound data and the noise reference data played by the speaker, or the function of the processing module 501 to remove the noise by using the left and right channel data.
The dsp chip may implement the function of the obtaining module 500 to transmit the sound data and the noise reference data played by the speaker, and the function of the processing module 501 to convert the sound data and the noise reference data obtained by the microphone into the channel data in stereo.
The codec may perform the function of converting between analog data and digital signals of the acquisition module 500.
Specifically, the terminal converts the sound data to be played into analog data by using a Digital-to-analog converter (DAC) in a CODEC (coder-decoder), sends the analog data to a speaker for playing, and transmits the same analog data to a first connector in the headphone plug; because the first joint and the second joint are communicated internally, analog data in the first joint is transmitted to the second joint; the terminal acquires analog data of the second joint, and the analog data is used as noise reference data; the terminal acquires sound data through a microphone, and converts the sound data acquired through the microphone and noise reference data into Digital signals by using an Analog to Digital Converter (ADC) in the CODEC; the digital signals of the sound data and the noise reference data acquired by the microphone are converted into stereo data in an ADSP (digital signal processing chip), wherein the digital signals of the sound data acquired by the microphone are converted into left channel data and noise reference data in stereo, and are converted into right channel data. Separating left and right channel data by a terminal in a Processor (Application Processor), and removing the same data as the right channel data in the left channel data; the terminal performs voice recognition processing on the left channel data from which the same data is removed.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or terminal.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method of removing noise, the method comprising:
the terminal transmits the current sound data to be played to a loudspeaker for playing, and transmits the current sound data to be played to a first connector in an earphone plug;
the terminal acquires sound data through a microphone, acquires currently played sound data through a second connector communicated with the first connector in the earphone plug, and takes the acquired currently played sound data as noise reference data, wherein the sound data comprises sound data played through a loudspeaker of the terminal;
and the terminal removes the sound data which is the same as the noise reference data in the sound data acquired by the microphone.
2. The method of claim 1, wherein the terminal removing the same sound data as the noise reference data from the sound data acquired through the microphone comprises:
the terminal converts the sound data acquired by the microphone into first channel data in stereo and converts the noise reference data into second channel data in stereo;
and the terminal removes the data which is the same as the second channel data in the first channel data.
3. The method of claim 2, wherein the terminal converting the sound data acquired through the microphone into first channel data in stereo, comprises:
the terminal converts the sound data acquired by the microphone into a digital signal and converts the digital signal of the sound data acquired by the microphone into first channel data in stereo;
the terminal converts the noise reference data into second channel data in stereo, and the method comprises the following steps:
and the terminal converts the noise reference data into a digital signal and converts the digital signal of the noise reference data into second channel data in stereo.
4. The method of claim 2, wherein after the terminal removes the same data in the first channel data as the second channel data, the method further comprises:
and the terminal performs voice recognition processing on the first channel data.
5. A headphone plug for use in a method according to any one of claims 1 to 4, characterized in that
The earphone plug comprises a first connector, a second connector and a grounding connector;
wherein the first joint is in internal communication with the second joint;
the first connector is connected with a left sound channel output port or a right sound channel output port of the terminal after the earphone plug is inserted into the terminal;
and the second connector is connected with a microphone MIC circuit of the terminal after the earphone plug is inserted into the terminal.
6. A terminal for removing noise, the terminal comprising:
the acquisition module is used for transmitting the current sound data to be played to a loudspeaker for playing and transmitting the current sound data to be played to a first connector in the earphone plug; acquiring sound data through a microphone, acquiring the sound data which is played currently through a second connector which is communicated with the first connector in the earphone plug, and taking the acquired sound data which is played currently as noise reference data, wherein the sound data comprises sound data played through a loudspeaker of the terminal;
and the processing module is used for removing the sound data which is the same as the noise reference data in the sound data acquired by the microphone.
7. The terminal of claim 6, wherein the processing module is specifically configured to:
converting the sound data acquired by the microphone into first channel data in stereo, and converting the noise reference data into second channel data in stereo;
and removing the same data in the first channel data as the second channel data.
8. The terminal of claim 7, wherein the processing module is further configured to:
converting the sound data acquired through the microphone into a digital signal so as to convert the digital signal of the sound data acquired through the microphone into first channel data in stereo;
the noise reference data is converted into a digital signal so as to convert the digital signal of the noise reference data into second channel data in stereo.
CN201610998704.1A 2016-11-11 2016-11-11 Method and terminal for removing noise Active CN106569774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610998704.1A CN106569774B (en) 2016-11-11 2016-11-11 Method and terminal for removing noise

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610998704.1A CN106569774B (en) 2016-11-11 2016-11-11 Method and terminal for removing noise

Publications (2)

Publication Number Publication Date
CN106569774A CN106569774A (en) 2017-04-19
CN106569774B true CN106569774B (en) 2020-07-10

Family

ID=58542784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610998704.1A Active CN106569774B (en) 2016-11-11 2016-11-11 Method and terminal for removing noise

Country Status (1)

Country Link
CN (1) CN106569774B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107845388B (en) * 2017-12-25 2021-06-01 青岛海信移动通信技术股份有限公司 Voice recognition method and device
CN108196817B (en) * 2017-12-29 2021-01-01 广州酷狗计算机科技有限公司 Audio recognition method, device and storage medium
CN108335701B (en) * 2018-01-24 2021-04-13 青岛海信移动通信技术股份有限公司 Method and equipment for sound noise reduction
CN110187859A (en) * 2019-04-12 2019-08-30 华为技术有限公司 A kind of denoising method and electronic equipment
CN113905119A (en) * 2020-06-22 2022-01-07 阿里巴巴集团控股有限公司 Terminal cradle, control method thereof, audio processing method, audio processing system, electronic device, and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1101203A (en) * 1993-09-29 1995-04-05 黄大伟 Anti-noise earphone
CN1443349A (en) * 2000-07-19 2003-09-17 埃里弗克姆公司 Method and apparatus for removing noise from electronic signals
CN101924835A (en) * 2010-08-17 2010-12-22 惠州Tcl移动通信有限公司 Mobile telephone communication method and mobile telephone
CN102438187A (en) * 2011-12-22 2012-05-02 深圳市朵唯志远科技有限公司 General multifunctional earphone
CN103139678A (en) * 2012-12-31 2013-06-05 宁波大学 Method and device for smart phone headset jack function extension
CN103179295A (en) * 2011-12-26 2013-06-26 沈阳晨讯希姆通科技有限公司 Mobile terminal capable of removing echo and echo removing method thereof
CN104602155A (en) * 2015-01-14 2015-05-06 中山市天键电声有限公司 Wireless noise reduction earphone based on intelligent mobile terminal
CN106098054A (en) * 2016-06-13 2016-11-09 惠州Tcl移动通信有限公司 The defecator of speaker noise and method in a kind of speech recognition
CN106098078A (en) * 2016-06-14 2016-11-09 惠州Tcl移动通信有限公司 A kind of audio recognition method that may filter that speaker noise and system thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1101203A (en) * 1993-09-29 1995-04-05 黄大伟 Anti-noise earphone
CN1443349A (en) * 2000-07-19 2003-09-17 埃里弗克姆公司 Method and apparatus for removing noise from electronic signals
CN101924835A (en) * 2010-08-17 2010-12-22 惠州Tcl移动通信有限公司 Mobile telephone communication method and mobile telephone
CN102438187A (en) * 2011-12-22 2012-05-02 深圳市朵唯志远科技有限公司 General multifunctional earphone
CN103179295A (en) * 2011-12-26 2013-06-26 沈阳晨讯希姆通科技有限公司 Mobile terminal capable of removing echo and echo removing method thereof
CN103139678A (en) * 2012-12-31 2013-06-05 宁波大学 Method and device for smart phone headset jack function extension
CN104602155A (en) * 2015-01-14 2015-05-06 中山市天键电声有限公司 Wireless noise reduction earphone based on intelligent mobile terminal
CN106098054A (en) * 2016-06-13 2016-11-09 惠州Tcl移动通信有限公司 The defecator of speaker noise and method in a kind of speech recognition
CN106098078A (en) * 2016-06-14 2016-11-09 惠州Tcl移动通信有限公司 A kind of audio recognition method that may filter that speaker noise and system thereof

Also Published As

Publication number Publication date
CN106569774A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN106569774B (en) Method and terminal for removing noise
CN109246672B (en) Data transmission method, device and system and Bluetooth headset
US9812115B2 (en) Active noise-cancellation feedback signal transmission
US9788096B2 (en) Transmission method, mobile terminal, multi-channel headset, and audio play system
US20160269844A1 (en) Stereo headset, terminal, and audio signal processing methods thereof
US20210392437A1 (en) Audio playback circuit and terminal
US9866947B2 (en) Dual-microphone headset and noise reduction processing method for audio signal in call
EP3185521B1 (en) Voice wake-up method and device
CN103609139A (en) Headphones, audio device, audio system and method for transmitting signals
CN104267924A (en) Mobile terminal and audio processing method thereof
KR101878873B1 (en) Mobile Apparatus Capable of Multi Channel Receiving and Outputting Sound Using Common Connector and Operation Method therefor
US10482898B2 (en) System for robot to eliminate own sound source
CN109151783B (en) Data transmission method and device, electronic equipment and storage medium
US10217472B2 (en) System and method for data transmission over an audio jack
CN103974168A (en) Information processing method and electronic devices
CN109582270B (en) Method and device for multiplexing 3.5 mm interface and terminal equipment
CN110534110B (en) Robot and method, device and circuit for improving voice interaction recognition rate of robot
CN109473096B (en) Intelligent voice equipment and control method thereof
CN111083250A (en) Mobile terminal and noise reduction method thereof
CN111556406B (en) Audio processing method, audio processing device and earphone
CN107273087B (en) Audio input/output system, equipment and method based on Type-C interface
CN103986818A (en) Information processing method and electronic device
WO2016024143A1 (en) Method, apparatus and system for exchanging a data communication via an audio connector
CN107315701B (en) Law enforcement recorder
CN106488044B (en) Mobile phone and system for mobile sound card and implementation method

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
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder