WO2016177204A1 - 噪音处理的方法及装置 - Google Patents

噪音处理的方法及装置 Download PDF

Info

Publication number
WO2016177204A1
WO2016177204A1 PCT/CN2016/077737 CN2016077737W WO2016177204A1 WO 2016177204 A1 WO2016177204 A1 WO 2016177204A1 CN 2016077737 W CN2016077737 W CN 2016077737W WO 2016177204 A1 WO2016177204 A1 WO 2016177204A1
Authority
WO
WIPO (PCT)
Prior art keywords
noise
terminal
phase
signal
processing
Prior art date
Application number
PCT/CN2016/077737
Other languages
English (en)
French (fr)
Inventor
潘宁
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177204A1 publication Critical patent/WO2016177204A1/zh

Links

Images

Classifications

    • 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
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1787General system configurations
    • G10K11/17873General system configurations using a reference signal without an error signal, e.g. pure feedforward
    • 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
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1785Methods, e.g. algorithms; Devices
    • 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
    • G10K11/00Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/16Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
    • G10K11/175Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
    • G10K11/178Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
    • G10K11/1787General system configurations
    • G10K11/17885General system configurations additionally using a desired external signal, e.g. pass-through audio such as music or speech
    • 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

Definitions

  • the present invention relates to the field of signal processing technologies, and in particular, to a method and apparatus for noise processing.
  • the main object of the present invention is to provide a noise processing method and apparatus, which aims to solve the technical problem that the existing terminal does not perform noise reduction processing on environmental noise.
  • the present invention provides a method of noise processing, the method of noise processing comprising the steps of:
  • the audio analog signal is output to an audio playback device connected to the terminal.
  • the method further includes:
  • the pre-stored phase offset parameter is updated using the phase offset parameter.
  • the step of acquiring a noise signal of an environment in which the terminal is located includes:
  • the step of acquiring a noise signal of an environment in which the terminal is located is performed.
  • the step of performing the inverse processing on the processed environmental noise signal comprises:
  • the processed environmental noise signal is inverted by an inverter circuit.
  • the step of outputting the audio analog signal to an audio playback device connected to the terminal comprises:
  • the amplified audio analog signal is output to an audio playback device connected to the terminal.
  • the present invention also provides a device for noise processing, the device for noise processing comprising:
  • a first acquiring module configured to acquire a noise signal of an environment in which the terminal is located
  • the first phase processing module is configured to perform phase offset processing on the acquired ambient noise signal according to the pre-stored phase offset parameter
  • a second phase processing module configured to invert the processed ambient noise signal to obtain an audio analog signal having a phase opposite to the ambient noise signal
  • an output module configured to output the audio analog signal to an audio playback device connected to the terminal.
  • the device for noise processing further comprises:
  • a second acquiring module configured to acquire a phase offset parameter corresponding to the phase adjustment command when receiving the phase adjustment instruction
  • an update module configured to update the pre-stored phase offset parameter with the phase offset parameter.
  • the first obtaining module is configured to:
  • the noise signal of the environment in which the terminal is located is acquired.
  • the second phase processing module is configured to:
  • the processed environmental noise signal is inverted by an inverter circuit.
  • the output module comprises:
  • An amplifying unit configured to perform amplification processing on the audio analog signal
  • An output unit configured to output the amplified audio analog signal to an audio playback device connected to the terminal.
  • Another embodiment of the present invention provides a computer storage medium storing execution instructions for performing the method in the above embodiments.
  • the method and apparatus for noise processing in the method of noise processing, after acquiring a noise signal of an environment in which the terminal is located, the terminal performs phase offset processing on the acquired environmental noise signal according to the pre-stored phase offset parameter.
  • the environmental noise signal after the phase offset processing is consistent with the waveform of the ambient noise signal heard by the user's ear, and then the processed environmental noise signal is inverted to obtain an environmental noise signal that is heard by the user's ear.
  • Opposite phase audio mode a pseudo signal, and finally outputting the audio analog signal to an audio playback device connected to the terminal.
  • the phase of the ambient noise signal is opposite to the audio analog signal.
  • the two signals are superimposed and canceled each other, thereby realizing the terminal to reduce the noise of the ambient noise.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for noise processing according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for noise processing according to the present invention.
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a noise processing apparatus according to the present invention.
  • FIG. 4 is a schematic diagram of functional modules of a second embodiment of a noise processing apparatus according to the present invention.
  • FIG. 5 is a schematic diagram of a refinement function module of an output module in a fourth embodiment of the apparatus for noise processing according to the present invention.
  • FIG. 1 is a schematic flow chart of a first embodiment of a noise processing method according to the present invention.
  • the method of noise processing includes the following steps:
  • Step S10 acquiring a noise signal of an environment in which the terminal is located
  • the noise signal of the environment in which the user is located is first acquired by the mobile phone, the pad, and the like carried by the user.
  • a sound collector is preset in the terminal, and ambient noise is collected by the sound collector to obtain an environmental noise signal.
  • the ambient noise refers to low- and medium-frequency noise in an environment that can be heard by a user's ear, such as noise in a frequency range of 100-1000 Hz.
  • Step S20 performing phase shift processing on the acquired environmental noise signal according to the pre-stored phase offset parameter
  • the ambient noise signal after the phase offset processing is consistent with the signal waveform of the ambient noise signal heard by the user's ear.
  • Step S30 performing inverse processing on the processed ambient noise signal to obtain an audio analog signal having a phase opposite to the ambient noise signal;
  • the phase-offset environmental noise signal is further subjected to phase inversion processing to obtain an audio phase opposite to the phase-offset environmental noise signal.
  • the analog signal that is, the audio analog signal that is opposite in phase to the ambient noise signal heard by the user's human ear.
  • the phase noise-processed environmental noise signal can be inverted by using a hardware circuit such as an inverter, and the phase offset processing can also be implemented by software.
  • the inversion processing of the ambient noise signal obtains an audio analog signal that is opposite in phase to the ambient noise signal heard by the user's human ear.
  • Step S40 outputting the audio analog signal to an audio playback device connected to the terminal.
  • the terminal After obtaining the audio analog signal opposite to the phase of the ambient noise signal heard by the user's ear through the above steps, the terminal outputs the audio analog signal to the audio playback device connected thereto, and the audio analog signal to be output through the audio playback device Transfer to the user's ear.
  • the audio playback device refers to an audio device having an audio playback function, including a wired headset, a wireless headset, and the like.
  • the terminal when the user needs to reduce the interference of the environmental noise, the terminal first acquires the noise signal of the environment in which the user is located, and performs phase offset processing on the acquired environmental noise signal according to the pre-stored phase offset parameter.
  • the environmental noise signal after the phase shift processing is consistent with the waveform of the ambient noise signal heard by the user's ear, and then the phase noise processed environmental noise signal is inverted to obtain the environmental noise heard by the user's ear.
  • An audio analog signal having an opposite phase of the signal, and finally outputting the audio analog signal to an audio playback device connected to the terminal.
  • the ambient noise signal is opposite to the audio of the phase.
  • the analog signals are superimposed and canceled each other, thereby realizing the noise reduction processing of the ambient noise through the terminal, thereby reducing the interference caused by the environmental noise to the user.
  • a second embodiment of the method for noise processing according to the present invention is proposed based on the first embodiment.
  • the method further includes:
  • Step S50 Acquire a phase offset parameter corresponding to the phase adjustment instruction when receiving the phase adjustment instruction
  • Step S60 updating the pre-stored phase offset parameter by using the phase offset parameter.
  • the noise reduction effect of the noise reduction processing by the terminal is fixed, but sometimes the user desires that the terminal can achieve different noise reduction effects under different conditions. Therefore, in order to improve the interactivity between the user and the terminal, the user can also manually control the noise reduction effect of the terminal.
  • the terminal is preset with a noise reduction adjustment icon.
  • the noise reduction adjustment icon is a horizontally arranged strip icon
  • the scroll noise adjustment icon is provided with a scroll bar
  • the scroll bar is preset to correspond to each horizontal position on the long strip icon.
  • a phase offset parameter value is provided.
  • the terminal When the user slides the scroll bar to the left or right to perform a phase adjustment operation in order to obtain different noise reduction effects, the terminal is regarded as receiving a phase adjustment command input by the user, and when the terminal receives the phase adjustment command, Obtaining a phase offset parameter value corresponding to a current position of the scroll bar, and updating the pre-stored phase offset parameter value by using the phase offset parameter value.
  • the ambient noise signal is then phase shifted according to the updated phase offset parameter value. For example, the preset phase shift parameter value corresponding to the horizontal position of the long strip icon in the scroll bar is 0.
  • the terminal receives the phase adjustment command, and the scroll bar is swept to the left.
  • the phase offset parameter value corresponding to the current current position is used to update the pre-stored phase offset parameter value with the phase offset parameter value.
  • the environmental noise signal is subjected to phase offset processing according to the acquired phase offset parameter value.
  • the phase noise processed environmental noise signal is subjected to phase inversion processing to obtain an audio analog signal having an opposite phase to the ambient noise signal heard by the user's human ear, and finally the audio analog signal is output, and the user hears the audio simulation.
  • the ambient noise signal and the audio analog signals having opposite phases are superimposed and canceled each other, thereby realizing noise reduction processing on the environmental noise.
  • the terminal When the user slides the scroll bar to different positions, the terminal acquires corresponding phase offset parameter values and performs different phase offset processing, thereby finally achieving different noise reduction effects. Therefore, the user can adjust the noise reduction effect of the terminal by sliding the scroll bar until the user feels that the ambient noise is the weakest.
  • the terminal when the terminal receives the phase adjustment command input by the user, the terminal acquires the phase offset parameter value corresponding to the phase adjustment command, and uses the phase offset parameter value to update the pre-stored phase offset parameter value. And then performing phase shift processing on the acquired environmental noise signal according to the phase offset parameter value, and performing phase inversion processing on the phase offset processed environmental noise signal to obtain an environmental noise signal that is heard by the user's human ear.
  • the audio analog signal with the opposite phase, and finally the audio analog signal is output.
  • the ambient noise signal and the audio analog signal with opposite phases are superimposed and cancel each other, thereby achieving Environmental noise is used for noise reduction.
  • different noise reduction effects are achieved due to the acquisition of different phase offset parameter values. Therefore, the user can achieve different noise reduction effects according to the requirements and improve the noise reduction effect.
  • the user experience when the terminal receives the phase adjustment command input by the user, the terminal acquires the phase offset parameter value corresponding to the phase adjustment command, and uses the phase offset parameter value to update the pre-stored phase offset parameter value. And
  • step S10 includes:
  • Step a when the terminal is connected to the audio playback device, performing the step of acquiring a noise signal of an environment in which the terminal is located.
  • the terminal when the terminal acquires environmental noise, the noise reduction process is performed, and the terminal system resource consumption is large. Moreover, in some cases, the user does not need to reduce the interference of environmental noise. At this time, the terminal performing noise reduction processing is useless. In order to reduce the waste of the resources of the terminal system, the processing of the noise reduction of the terminal is required by the user.
  • the terminal acquires the noise signal of the environment where the terminal is located when the user needs to reduce the environmental noise interference. , thereby performing noise reduction processing. It is considered that the earphone is usually worn when the user uses the terminal to make a call, listen to music, or watch a video, etc., and therefore the terminal is first checked.
  • the audio playback device refers to an audio device having an audio playback function, including a wired headset, a wireless headset, and the like.
  • it is first detected whether the audio interface of the terminal is connected to the wired earphone, and when detecting that the audio interface of the terminal is not connected to the wired earphone, further detecting whether the terminal is connected to the wireless earphone such as a Bluetooth earphone by means of Bluetooth or the like.
  • the terminal When detecting that the terminal is connected to the audio playback device, that is, detecting that the audio interface of the terminal is connected to the wired headset, or detecting that the wireless headset such as the Bluetooth headset is connected through Bluetooth or the like, the terminal collects the environment through the built-in sound collector. Noise, get an environmental noise signal. When the terminal is not detected to be connected to the audio playback device, no processing is performed.
  • the solution provided in this embodiment first detects whether the terminal is connected to the audio playback device, and only acquires a noise signal of the environment in which the terminal is located when the terminal is connected to the audio playback device, that is, when the user needs to reduce the interference of the environmental noise.
  • the process of reducing noise; when the terminal is not connected to the audio playback device, that is, when the user does not need to reduce the interference of the environmental noise, the noise reduction process is not performed, thereby reducing the waste of the terminal system resources.
  • the fourth embodiment of the method for noise processing according to the present invention is proposed based on any of the foregoing embodiments.
  • the step S30 includes:
  • step b the processed environmental noise signal is inverted by using an inverting circuit.
  • an inverting processing circuit may be preset in the terminal, and after the phase noise processing is performed on the environmental noise signal, the phase noise-processed environmental noise signal is reversed by the inverting processing circuit. Phase processing, obtaining an audio analog signal that is opposite in phase to the ambient noise signal heard by the user's human ear.
  • an A/D conversion circuit analog to digital converter
  • a negation circuit a negation circuit
  • a D/A conversion circuit digital to analog converter
  • the terminal After the terminal performs phase shift processing on the acquired environmental noise signal, first converting the phase offset processed environmental noise signal into a digital signal through an A/D conversion circuit, and then using the inverted circuit to The digital signal is inversely processed to obtain the inverted digital signal, and then the inverted digital signal is converted into an analog signal by a D/A conversion circuit, and the analog signal is phased with the ambient noise signal.
  • the opposite audio analog signal After the terminal performs phase shift processing on the acquired environmental noise signal, first converting the phase offset processed environmental noise signal into a digital signal through an A/D conversion circuit, and then using the inverted circuit to The digital signal is inversely processed to obtain the inverted digital signal, and then the inverted digital signal is converted into an analog signal by a D/A conversion circuit, and the analog signal is phased with the ambient noise signal.
  • the opposite audio analog signal After the terminal performs phase shift processing on the acquired environmental noise signal, first converting the phase offset processed environmental noise signal into a digital signal through an A/D conversion circuit, and then using the inverted
  • the step S40 includes:
  • Step c performing amplification processing on the audio analog signal
  • Step d outputting the amplified audio analog signal to an audio playback device connected to the terminal.
  • the audio analog signal After obtaining an audio analog signal having a phase opposite to the ambient noise signal, the audio analog signal is amplified.
  • the audio analog signal may be amplified by a signal amplifying circuit, and those skilled in the art may understand that the amplification process of the audio analog signal may also be implemented by other methods such as a software method.
  • the amplified audio analog signal is output to an audio playback device connected to the terminal, and the outputted amplified audio analog signal is transmitted to the user's ear through the audio playback device.
  • the phase noise-processed environmental noise signal is inversely processed by using the inverting circuit, thereby obtaining a phase opposite to the ambient noise signal.
  • the audio analog signal is amplified and output to the audio playback device.
  • the ambient noise signal is superimposed on the opposite phase of the audio analog signal, thereby canceling each other.
  • the noise reduction processing of the ambient noise by the terminal is realized, and the interference caused by the environmental noise to the user is reduced.
  • the present invention also provides a noise processing device, as shown in FIG. 3, such as 3 is a functional module diagram of the first embodiment of the noise processing device of the present invention.
  • the noise processing device includes:
  • the first obtaining module 10 is configured to acquire a noise signal of an environment in which the terminal is located;
  • the first acquisition module 10 of the device for noise processing first acquires a noise signal of an environment in which the terminal is located.
  • a sound collector is preset in the terminal, and the first acquisition module 10 obtains an environmental noise signal by collecting ambient noise through the sound collector.
  • the ambient noise refers to low- and medium-frequency noise in an environment that can be heard by a user's ear, such as noise in a frequency range of 100-1000 Hz.
  • the first phase processing module 20 is configured to perform phase offset processing on the acquired ambient noise signal according to the pre-stored phase offset parameter
  • the first phase processing module 20 performs phase offset processing on the acquired environmental noise signal according to the pre-stored phase offset parameter to obtain an environmental noise signal after the phase offset processing, and the environmental noise signal after the phase offset processing It is consistent with the signal waveform of the ambient noise signal heard by the user's ear.
  • the second phase processing module 30 is configured to perform inverse processing on the processed ambient noise signal to obtain an audio analog signal having a phase opposite to the ambient noise signal;
  • the second phase processing module 30 After obtaining the phase offset processed environmental noise signal by the first phase processing module 20, the second phase processing module 30 performs phase inversion processing on the phase offset processed ambient noise signal to obtain phase offset processing.
  • the audio analog signal with the opposite phase of the ambient noise signal that is, the audio analog signal having the opposite phase to the ambient noise signal heard by the user's human ear.
  • the first phase processing module 20 can perform inverse processing on the phase offset processed environmental noise signal by using a hardware circuit such as an inverter, and can also implement the software by means of software.
  • the inversion processing of the environmental noise signal after the phase shift processing is performed to obtain an audio analog signal having a phase opposite to that of the ambient noise signal heard by the user's human ear.
  • the output module 40 is configured to output the audio analog signal to an audio playback device connected to the terminal.
  • the output module 40 After obtaining an audio analog signal having a phase opposite to the ambient noise signal heard by the user's human ear through the second phase processing module 30, the output module 40 outputs the audio analog signal to the audio playback device connected to the terminal, and plays the audio through the audio.
  • the device transmits the audio analog signal output by the output module 40 to the user's ear.
  • the audio playback device refers to an audio device having an audio playback function, including a wired headset, a wireless headset, and the like.
  • the first acquiring module 10 first acquires a noise signal of the environment in which the terminal is located, and the first phase processing module 20 acquires the obtained phase offset parameter according to the pre-stored phase offset parameter.
  • the environmental noise signal is subjected to phase offset processing such that the environmental noise signal after the phase offset processing is consistent with the waveform of the ambient noise signal heard by the user's ear, and then the second phase processing module 30 processes the phase noise-treated ambient noise signal.
  • the apparatus for noise processing further includes:
  • the second obtaining module 50 is configured to acquire a phase offset parameter corresponding to the phase adjustment command when receiving the phase adjustment instruction;
  • the update module 60 is configured to update the pre-stored phase offset parameter with the phase offset parameter.
  • the noise reduction effect of the noise reduction processing in the above embodiment is fixed, but sometimes the user desires that the terminal can achieve different noise reduction effects under different conditions. Therefore, in order to improve the interactivity between the user and the terminal, the user can also manually control the noise reduction effect of the terminal.
  • the terminal is preset with a noise reduction adjustment icon.
  • the noise reduction adjustment icon is a horizontally arranged strip icon
  • the scroll noise adjustment icon is provided with a scroll bar
  • the scroll bar is preset to correspond to each horizontal position on the long strip icon.
  • a phase offset parameter value For example, the value of the phase shift parameter corresponding to the horizontal position of the scroll bar in the center of the long strip is set to 0 in advance.
  • the second acquisition module 50 receives the phase adjustment instruction corresponding to the phase adjustment operation input by the user, and when the second acquisition module 50 when receiving the phase adjustment instruction, obtain Take the phase offset parameter value corresponding to the current position of the scroll bar.
  • the update module 60 updates the pre-stored phase offset parameter value by using the phase offset parameter value. Then, the first phase processing module 20 performs phase offset processing on the ambient noise signal according to the phase offset parameter value updated by the update module 60.
  • the second phase processing module 30 performs phase inversion processing on the phase offset processed ambient noise signal to obtain an audio analog signal having a phase opposite to the ambient noise signal heard by the user's human ear, and finally the output module 40 outputs the audio simulation.
  • the signal when the user hears the audio analog signal and the ambient noise signal, the ambient noise signal and the opposite phase of the audio analog signal are superimposed and canceled each other, thereby realizing noise reduction processing on the ambient noise.
  • the second acquiring module 50 acquires corresponding different phase offset parameter values, so that the first phase processing module 20 performs different phase offset processing, and finally realizes different noise reduction. effect. Therefore, the user can adjust the noise reduction effect of the terminal by sliding the scroll bar until the user feels that the ambient noise is the weakest.
  • the second acquisition module 50 receives the phase adjustment instruction input by the user
  • the phase offset parameter value corresponding to the phase adjustment instruction is acquired, and then the update module 60 adopts the phase offset parameter value.
  • the first phase processing module 20 performs phase offset processing on the acquired ambient noise signal according to the updated phase offset parameter value
  • the second phase processing module 30 processes the phase offset again.
  • the ambient noise signal is subjected to phase inversion processing to obtain an audio analog signal having an opposite phase to the ambient noise signal heard by the user's human ear.
  • the output module 40 outputs the audio analog signal, and the user hears the audio analog signal and the ambient noise.
  • the ambient noise signal and the audio analog signals having opposite phases are superimposed and canceled each other, thereby realizing noise reduction processing on the environmental noise.
  • the user performs different phase adjustment operations on the terminal, different noise reduction effects are achieved due to the acquisition of different phase offset parameter values. Therefore, the user can achieve different noise reduction effects according to the requirements and improve the noise reduction effect. The user experience.
  • the third embodiment of the apparatus for noise processing according to the present invention is proposed based on the first embodiment or the second embodiment.
  • the first obtaining module 10 is configured to:
  • the noise signal of the environment in which the terminal is located is acquired.
  • the noise processing device acquires the environment of the terminal when the user needs to reduce the environmental noise interference. Noise signal, which is used to reduce noise.
  • the first acquisition module 10 first detects whether an audio playback device is connected to the terminal, in which the headset is usually worn when the user uses the terminal to make a call, listen to music, or watch a video.
  • the audio playback device refers to an audio device having an audio playback function, including a wired headset, a wireless headset, and the like.
  • the first obtaining module 10 first detects whether the audio interface of the terminal is connected to the wired earphone, and when detecting that the audio interface of the terminal is not connected to the wired earphone, further detecting whether the terminal is connected to the wireless earphone such as a Bluetooth headset through Bluetooth or the like. It can be understood by those skilled in the art that the first acquiring module 10 can also detect whether the terminal is connected to a wireless headset such as a Bluetooth headset through Bluetooth or the like. When the wireless headset is connected, it further detects whether the audio interface of the terminal is connected to the wired headset.
  • the first acquiring module 10 When the first obtaining module 10 detects that the terminal is connected to the audio playing device, that is, when detecting that the audio interface of the terminal is connected to the wired earphone, or detecting that the wireless headset such as the Bluetooth headset is connected through Bluetooth or the like, the first acquiring module 10 Acquire ambient noise by collecting ambient noise through the built-in sound collector. When the first acquisition module 10 does not detect that the terminal is connected to the audio playback device, no processing is performed.
  • the first acquiring module 10 first detects whether the terminal is connected to the audio playing device, and only when the terminal is connected to the audio playing device, that is, when the user needs to reduce the interference of the environmental noise, the first acquiring module 10 Obtaining the noise signal of the environment in which the terminal is located, and then performing noise reduction processing; when the terminal is not connected to the audio playback device, that is, when the user does not need to reduce the interference of the environmental noise, the noise reduction process is not performed, thereby reducing the terminal system resources. Waste.
  • the second phase processing module 30 is configured to:
  • the processed environmental noise signal is inverted by an inverter circuit.
  • an inverting processing circuit may be preset in the terminal. After the first phase processing module 20 performs phase shift processing on the ambient noise signal, the second phase processing module 30 passes the inverting processing circuit. The phase noise-processed ambient noise signal is inverted to obtain an audio analog signal having a phase opposite to that of the ambient noise signal heard by the user's human ear.
  • an A/D conversion circuit analog to digital converter
  • a negation circuit negation circuit
  • a D/A conversion circuit digital to analog converter
  • the analog signal is an audio analog signal that is opposite in phase to the ambient noise signal.
  • the output module 40 includes:
  • the amplifying unit 41 is configured to perform amplification processing on the audio analog signal
  • the output unit 42 is configured to output the amplified audio analog signal to an audio playback device connected to the terminal.
  • the amplifying unit 41 After obtaining an audio analog signal having a phase opposite to the ambient noise signal, the amplifying unit 41 performs amplification processing on the audio analog signal.
  • the amplifying unit 41 is preferably a signal amplifying circuit, and the audio analog signal is amplified by the signal amplifying circuit.
  • the output unit 42 outputs the amplified audio analog signal to the audio playback device connected to the terminal, and transmits the amplified audio analog signal output by the output unit 42 to the user's ear through the audio playback device.
  • the second phase processing module 30 when the phase noise processed environmental noise signal is acquired, the second phase processing module 30 performs inverse processing on the phase offset processed environmental noise signal by using an inverting circuit, thereby obtaining and The ambient noise signal has an opposite phase of the audio analog signal, and then the amplifying unit 41 amplifies the audio analog signal and outputs it to the audio playback device through the output unit 42.
  • the amplifying unit 41 amplifies the audio analog signal and outputs it to the audio playback device through the output unit 42.
  • the audio analog signals are superimposed and canceled each other, thereby realizing the noise reduction processing of the ambient noise through the terminal, thereby reducing the interference caused by the environmental noise to the user.
  • Embodiments of the present invention also provide a storage medium.
  • an execution instruction is stored in the storage medium, and the execution instruction is used to execute the foregoing method.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the method and apparatus for noise processing have the following beneficial effects: after acquiring the noise signal of the environment in which the terminal is located, the terminal performs phase shift on the acquired environmental noise signal according to the pre-stored phase offset parameter. Processing, so that the environmental noise signal after the phase offset processing is consistent with the waveform of the ambient noise signal heard by the user's ear, and then the processed environmental noise signal is inverted to obtain the environmental noise heard by the user's ear.
  • An audio analog signal having an opposite phase of the signal, and finally outputting the audio analog signal to an audio playback device connected to the terminal, when the user hears the audio analog signal and the ambient noise signal, due to the ambient noise signal and the audio simulation
  • the phase of the letter is just the opposite.
  • the two signals are superimposed and canceled each other, thus realizing the terminal to reduce the noise of the ambient noise.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

一种噪音处理的方法和装置,该噪音处理的方法包括步骤:获取终端所处环境的噪音信号(S10);根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理(S20);将处理后的环境噪音信号进行反相处理,以获得与环境噪音信号相位相反的音频模拟信号(S30);输出所述音频模拟信号至与所述终端连接的音频播放设备(S40)。实现了终端对环境噪音进行降噪处理。

Description

噪音处理的方法及装置 技术领域
本发明涉及信号处理技术领域,尤其涉及噪音处理的方法及装置。
背景技术
现今,手机、pad(平板电脑)等终端已经成为用户通讯、娱乐的必备品。当用户使用终端进行通话、听音乐或者看视频时,也即终端在播放音频信号时,若用户的周围环境存在噪音,此时用户通常希望能够减少环境噪音带来的干扰。但现有终端通常仅对其播放的音频信号进行降噪处理,而未针对环境噪音进行降噪处理。
发明内容
本发明的主要目的在于提出一种噪音处理的方法及装置,旨在解决现有终端未对环境噪音进行降噪处理的技术问题。
为实现上述目的,本发明提供一种噪音处理的方法,所述噪音处理的方法包括以下步骤:
获取终端所处环境的噪音信号;
根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理;
将处理后的环境噪音信号进行反相处理,以获得与环境噪音信号相位相反的音频模拟信号;
输出所述音频模拟信号至与所述终端连接的音频播放设备。
优选地,所述输出所述音频模拟信号至与所述终端连接的音频播放设备的步骤之后,还包括:
在接收到相位调节指令时,获取所述相位调节指令对应的相位偏移参数;
采用所述相位偏移参数更新预存的所述相位偏移参数。
优选地,所述获取终端所处环境的噪音信号的步骤包括:
在所述终端与音频播放设备连接时,执行所述获取终端所处环境的噪音信号的步骤。
优选地,所述将处理后的环境噪音信号进行反相处理的步骤包括:
采用反相电路对处理后的环境噪音信号进行反相处理。
优选地,所述输出所述音频模拟信号至与所述终端连接的音频播放设备的步骤包括:
将所述音频模拟信号进行放大处理;
输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备。
此外,为实现上述目的,本发明还提出一种噪音处理的装置,所述噪音处理的装置包括:
第一获取模块,设置为获取终端所处环境的噪音信号;
第一相位处理模块,设置为根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理;
第二相位处理模块,设置为将处理后的环境噪音信号进行反相处理,以获得与环境噪音信号相位相反的音频模拟信号;
输出模块,设置为输出所述音频模拟信号至与所述终端连接的音频播放设备。
优选地,所述噪音处理的装置还包括:
第二获取模块,设置为在接收到相位调节指令时,获取所述相位调节指令对应的相位偏移参数;
更新模块,设置为采用所述相位偏移参数更新预存的所述相位偏移参数。
优选地,所述第一获取模块设置为:
在所述终端与音频播放设备连接时,获取终端所处环境的噪音信号。
优选地,所述第二相位处理模块设置为:
采用反相电路对处理后的环境噪音信号进行反相处理。
优选地,所述输出模块包括:
放大单元,设置为将所述音频模拟信号进行放大处理;
输出单元,设置为输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备。
本发明另一实施例提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述实施例中的方法。
本发明提出的噪音处理的方法及装置,在所述噪音处理的方法中,终端获取终端所处环境的噪音信号后,根据预存的相位偏移参数对获取到的环境噪音信号进行相位偏移处理,使得相位偏移处理后的环境噪音信号与用户人耳听到的环境噪音信号的波形一致,然后再将处理后的环境噪音信号进行反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模 拟信号,最后输出所述音频模拟信号至与所述终端连接的音频播放设备,当用户接听到所述音频模拟信号以及环境噪音信号时,由于环境噪音信号与所述音频模拟信的相位正好相反,两个信号叠加后相互抵消,从而实现了终端对环境噪音进行降噪处理。
附图说明
图1为本发明噪音处理的方法第一实施例的流程示意图;
图2为本发明噪音处理的方法第二实施例的流程示意图;
图3为本发明噪音处理的装置第一实施例的功能模块示意图;
图4为本发明噪音处理的装置第二实施例的功能模块示意图;
图5为本发明噪音处理的装置第四实施例中输出模块的细化功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种噪音处理的方法,参照图1,图1为本发明噪音处理的方法第一实施例的流程示意图。
在本实施例中,该噪音处理的方法包括以下步骤:
步骤S10,获取终端所处环境的噪音信号;
随着科技的发展以及人们生活品质的提高,手机、pad(平板电脑)等终端已经成为用户通讯、娱乐的随身必备品,日常生活中用户会经常使用终端进行通话、听音乐或者看视频等。在用户的周围环境存在噪音时,例如,若用户在车站、商场、候车厅等公共场所时,周围环境存在各种噪音,用户希望能够减少环境噪音带来的干扰。为了解决此问题,在本实施例中,首先通过用户随身携带的手机、pad等终端获取其所处环境的噪音信号。优选地,在本实施例中,终端内预先设置有声音采集器,通过声音采集器采集环境噪音,获得环境噪音信号。其中,所述环境噪音是指用户人耳能听到的环境中的中低频噪音,例如频率在100-1000HZ范围内的噪音。
步骤S20,根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理;
由于终端与用户人耳之间存在一定的距离,环境噪音传送到终端的时间与传送到用户人耳的时间存在时间差,终端获取到的环境噪音信号与人耳听到的环境噪音信号之间会存在相位差。因此,在本实施例中,为了解决终端获取到的环境噪音信号与用户人耳听到的环境噪 音信号之间存在的相位差问题,在通过步骤S10获取到环境噪音信号后,根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理,获得相位偏移处理后的环境噪音信号,所述相位偏移处理后的环境噪音信号与用户人耳听到的环境噪音信号的信号波形一致。
步骤S30,将处理后的环境噪音信号进行反相处理,以获得与环境噪音信号相位相反的音频模拟信号;
通过步骤S20获得相位偏移处理后的环境噪音信号后,进一步将所述相位偏移处理后的环境噪音信号进行相位反相处理,从而获得与相位偏移处理后的环境噪音信号相位相反的音频模拟信号,也即获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号。本领域技术人员可以理解的是,可以通过采用反相器等硬件电路对所述相位偏移处理后的环境噪音信号进行反相处理,还可以通过软件的方式来实现所述相位偏移处理后的环境噪音信号的反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号。
步骤S40,输出所述音频模拟信号至与所述终端连接的音频播放设备。
当通过上述步骤获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号后,终端输出所述音频模拟信号至与其连接的音频播放设备,通过音频播放设备将输出的所述音频模拟信号传输至用户人耳。所述音频播放设备是指具有音频播放功能的音频设备,包括有线耳机、无线耳机等。当用户在接听到所述音频模拟信号以及用户所处环境中的环境噪音信号时,由于所述音频模拟信号与环境噪音信号的相位相反,所述音频模拟信号与环境噪音信号叠加后,两个信号相互抵消,从而降低了环境噪音对用户造成的干扰。
本实施例提供的方案,当用户需要降低环境噪音的干扰时,终端首先获取其所处环境的噪音信号,根据预存的相位偏移参数,对获取到的环境噪音信号进行相位偏移处理,使得相位偏移处理后的环境噪音信号与用户人耳听到的环境噪音信号的波形一致,然后再对相位偏移处理后的环境噪音信号进行反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号,最后输出所述音频模拟信号至与所述终端连接的音频播放设备,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了通过终端对环境噪音进行降噪处理,降低了环境噪音对用户造成的干扰。
可选地,如图2所示,基于第一实施例提出本发明噪音处理的方法第二实施例,在本实施例中,所述步骤S40之后,还包括:
步骤S50,在接收到相位调节指令时,获取所述相位调节指令对应的相位偏移参数;
步骤S60,采用所述相位偏移参数更新预存的所述相位偏移参数。
上述实施例中通过终端进行降低噪音处理的降噪效果是固定的,但有时候用户希望在不同的情况下终端可以达到不同的降噪效果。因此,为了提高用户与终端的交互性,使用户还能够通过手动控制终端的降噪效果,在本实施例中,终端预先设置有一降噪音效调节图标。 优选地,所述降噪音效调节图标为一水平设置的长条状图标,所述降噪音效调节图标上设置一滚动条,预先设置所述滚动条在长条状图标上每个水平位置对应一相位偏移参数值。当用户为了获得不同的降噪效果,用户向左或向右滑动所述滚动条进行相位调节操作时,视为终端接收到用户输入的相位调节指令,当终端接收到所述相位调节指令时,获取滚动条当前位置对应的相位偏移参数值,采用所述相位偏移参数值更新预存的相位偏移参数值。然后根据更新后的相位偏移参数值对所述环境噪音信号进行相位偏移处理。例如,预先设置滚动条在长条状图标的正中央水平位置对应的相位偏移参数值为0,当用户向左滑动所述滚动条时,终端接收到相位调节指令,获取滚动条向左滑动后的当前位置对应的相位偏移参数值,采用所述相位偏移参数值更新预存的相位偏移参数值。然后根据获取的所述相位偏移参数值对所述环境噪音信号进行相位偏移处理。再将相位偏移处理后的环境噪音信号进行相位反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号,最后输出所述音频模拟信号,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了对环境噪音进行降噪处理。用户将所述滚动条滑动到不同的位置时,终端获取到相应不同的相位偏移参数值,进行不同的相位偏移处理,从而最终实现不同的降噪效果。因此,用户可通过滑动所述滚动条,来调节终端的降噪效果,直至用户感觉听到的环境噪音最弱为止。
本实施例提供的方案,当终端在接收到用户输入的相位调节指令时,获取所述相位调节指令对应的相位偏移参数值,采用所述相位偏移参数值更新预存的相位偏移参数值,然后根据所述相位偏移参数值对获取的环境噪音信号进行相位偏移处理,再将相位偏移处理后的环境噪音信号进行相位反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号,最后输出所述音频模拟信号,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了对环境噪音进行降噪处理。当用户在终端上进行不同的相位调节操作时,由于获取到对应不同的相位偏移参数值,实现了不同的降噪效果,因此,通过本方案用户可根据需求达到不同的降噪效果,提高了用户体验。
可选地,基于第一实施例或第二实施例提出本发明噪音处理的方法第三实施例,在本实施例中,上述步骤S10包括:
步骤a,在所述终端与音频播放设备连接时,执行所述获取终端所处环境的噪音信号的步骤。
在上述实施例中,当终端获取到环境噪音时,就会进行降低噪音的处理,终端系统资源消耗大。并且,在一些情况下用户也不需要降低环境噪音的干扰,此时,终端进行降低噪音的处理就是无用的。为了减少终端系统资源的浪费,使得终端每次进行降低噪音的处理都是用户所需求的,在本实施例中,终端在用户需要降低环境噪音干扰的情况下才获取终端所处环境的噪音信号,从而进行降低噪音的处理。考虑到在用户使用终端来进行通话、听音乐或者看视频等需要降低环境噪音干扰时通常都会佩戴耳机,因此,在本实施例中,终端首先检 测是否有音频播放设备与终端连接,所述音频播放设备是指具有音频播放功能的音频设备,包括有线耳机、无线耳机等。优选地,首先检测终端的音频接口是否连接了有线耳机,在检测到终端的音频接口未连接有线耳机时,进一步检测终端是否通过蓝牙等方式与蓝牙耳机等无线耳机连接。本领域技术人员可以理解的是,也可以先检测终端是否通过蓝牙等方式与蓝牙耳机等无线耳机连接,在终端未与无线耳机连接时,进一步检测终端的音频接口是否连接有线耳机。
在检测到终端与音频播放设备连接时,也即检测到终端的音频接口连接了有线耳机,或者检测到终端与蓝牙耳机等无线耳机通过蓝牙等方式连接时,终端通过内置的声音采集器采集环境噪音,获得环境噪音信号。在未检测到终端与音频播放设备连接时,则不进行处理。
本实施例提供的方案,首先检测终端是否与音频播放设备连接,只有在终端与音频播放设备连接时,也即在用户需要降低环境噪音的干扰时,才获取终端所处环境的噪音信号,进行降低噪音的处理;在终端未与音频播放设备连接时,也即在用户不需要降低环境噪音的干扰时,不进行降噪处理,从而减少终端系统资源的浪费。
可选地,基于上述任一实施例提出本发明噪音处理的方法第四实施例,在本实施例中,所述步骤S30包括:
步骤b,采用反相电路对处理后的环境噪音信号进行反相处理。
在本实施例中,可在终端内预先设置一反相处理电路,当对所述环境噪音信号进行相位偏移处理后,通过该反相处理电路将相位偏移处理后的环境噪音信号进行反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号。优选地,也可以在终端内预先设置有A/D转换电路(analog to digital converter,模数转换器)、取反电路以及D/A转换电路(digital to analog converter,数模转换器)。当终端对获取的所述环境噪音信号进行相位偏移处理后,首先通过A/D转换电路将所述相位偏移处理后的环境噪音信号转换为数字信号,然后通过所述取反电路将所述数字信号进行取反处理,获得取反处理后的数字信号,再通过D/A转换电路将所述取反处理后的数字信号转换为模拟信号,则所述模拟信号为与环境噪音信号相位相反的音频模拟信号。
可选地,在本实施例中,所述步骤S40包括:
步骤c,将所述音频模拟信号进行放大处理;
步骤d,输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备。
在获得与环境噪音信号相位相反的音频模拟信后,将所述音频模拟信号进行放大处理。例如,可通过信号放大电路将所述音频模拟信号进行放大处理,本领域技术人员可以理解的是,还可以通过软件方法等其他方式实现对所述音频模拟信号的放大处理。然后,输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备,通过音频播放设备将输出的放大后的所述音频模拟信号传输至用户人耳。当用户通过所述音频播放设备接听到放大后的所述 音频模拟信号,以及接听到用户所处环境中的环境噪音信号时,由于所述音频模拟信号与环境噪音信号的相位相反,两个信号叠加后相互抵消,从而降低了环境噪音对用户造成的干扰。
本实施例提供的方案,在获取到相位偏移处理后的环境噪音信号时,通过采用反相电路对相位偏移处理后的环境噪音信号进行反相处理,从而获得与环境噪音信号相位相反的音频模拟信号,然后将该音频模拟信号放大后输出至音频播放设备,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了通过终端对环境噪音进行降噪处理,降低了环境噪音对用户造成的干扰。
本发明还提供了一种噪音处理的装置,如图3所示,如3为本发明噪音处理的装置第一实施例的功能模块示意图。
在本实施例中,该噪音处理的装置包括:
第一获取模块10,设置为获取终端所处环境的噪音信号;
随着科技的发展以及人们生活品质的提高,手机、pad(平板电脑)等终端已经成为用户通讯、娱乐的随身必备品,日常生活中用户会经常使用终端进行通话、听音乐或者看视频等。在用户的周围环境存在噪音时,例如,若用户在车站、商场、候车厅等公共场所时,周围环境存在各种噪音,用户希望能够减少环境噪音带来的干扰。为了解决此问题,提出一种噪音处理的装置,所述噪音处理的装置设置在终端中。在本实施例中,首先通过所述噪音处理的装置的第一获取模块10获取终端所处环境的噪音信号。优选地,在本实施例中,终端内预先设置有声音采集器,第一获取模块10通过声音采集器采集环境噪音获得环境噪音信号。其中,所述环境噪音是指用户人耳能听到的环境中的中低频噪音,例如频率在100-1000HZ范围内的噪音。
第一相位处理模块20,设置为根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理;
由于终端与用户人耳之间存在一定的距离,环境噪音传送到终端的时间与传送到用户人耳的时间存在时间差,因而第一获取模块10获取到的环境噪音信号与人耳听到的环境噪音信号之间会存在相位差。在本实施例中,为了解决第一获取模块10获取到的环境噪音信号与用户人耳听到的环境噪音信号之间存在的相位差问题,在第一获取模块10获取到环境噪音信号后,第一相位处理模块20根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理,获得相位偏移处理后的环境噪音信号,所述相位偏移处理后的环境噪音信号与用户人耳听到的环境噪音信号的信号波形一致。
第二相位处理模块30,设置为将处理后的环境噪音信号进行反相处理,以获得与环境噪音信号相位相反的音频模拟信号;
通过第一相位处理模块20获得相位偏移处理后的环境噪音信号后,第二相位处理模块30将所述相位偏移处理后的环境噪音信号进行相位反相处理,从而获得与相位偏移处理后的环 境噪音信号相位相反的音频模拟信号,也即获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号。本领域技术人员可以理解的是,第一相位处理模块20可以通过采用反相器等硬件电路对所述相位偏移处理后的环境噪音信号进行反相处理,还可以通过软件的方式来实现所述相位偏移处理后的环境噪音信号的反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号。
输出模块40,设置为输出所述音频模拟信号至与所述终端连接的音频播放设备。
当通过第二相位处理模块30获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号后,输出模块40输出所述音频模拟信号至与所述终端连接的音频播放设备,通过音频播放设备将输出模块40输出的所述音频模拟信号传输至用户人耳。所述音频播放设备是指具有音频播放功能的音频设备,包括有线耳机、无线耳机等。当用户在接听到所述音频模拟信号以及用户所处环境中的环境噪音信号时,由于所述音频模拟信号与环境噪音信号的相位相反,所述音频模拟信号与环境噪音信号叠加后,两个信号相互抵消,从而降低了环境噪音对用户造成的干扰。
本实施例提供的方案,当用户需要降低环境噪音的干扰时,第一获取模块10首先获取终端所处环境的噪音信号,第一相位处理模块20根据预存的相位偏移参数,对获取到的环境噪音信号进行相位偏移处理,使得相位偏移处理后的环境噪音信号与用户人耳听到的环境噪音信号的波形一致,然后第二相位处理模块30对相位偏移处理后的环境噪音信号进行反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号,最后输出模块40输出所述音频模拟信号至与所述终端连接的音频播放设备,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了通过终端对环境噪音进行降噪处理,降低了环境噪音对用户造成的干扰。
可选地,如图4所示,基于第一实施例提出本发明噪音处理的装置第二实施例,在本实施例中,所述噪音处理的装置还包括:
第二获取模块50,设置为在接收到相位调节指令时,获取所述相位调节指令对应的相位偏移参数;
更新模块60,设置为采用所述相位偏移参数更新预存的所述相位偏移参数。
上述实施例中进行降低噪音处理的降噪效果是固定的,但有时候用户希望在不同的情况下终端可以达到不同的降噪效果。因此,为了提高用户与终端的交互性,使用户还能够通过手动控制终端的降噪效果,在本实施例中,终端预先设置有一降噪音效调节图标。优选地,所述降噪音效调节图标为一水平设置的长条状图标,所述降噪音效调节图标上设置一滚动条,预先设置所述滚动条在长条状图标上每个水平位置对应一相位偏移参数值。例如,预先设置滚动条在长条状图标的正中央水平位置对应的相位偏移参数值为0。当用户为了获得不同的降噪效果,用户向左或向右滑动所述滚动条进行相位调节操作,第二获取模块50接收到用户输入的相位调节操作对应的相位调节指令,当第二获取模块50接收到所述相位调节指令时,获 取滚动条当前位置对应的相位偏移参数值。
当第二获取模块50获取到所述对应的相位偏移参数值后,更新模块60采用所述相位偏移参数值更新预存的相位偏移参数值。然后,第一相位处理模块20根据更新模块60更新的所述相位偏移参数值对所述环境噪音信号进行相位偏移处理。第二相位处理模块30再将相位偏移处理后的环境噪音信号进行相位反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号,最后输出模块40输出所述音频模拟信号,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了对环境噪音进行降噪处理。用户将所述滚动条滑动到不同的位置时,第二获取模块50获取到相应不同的相位偏移参数值,从而第一相位处理模块20进行不同的相位偏移处理,最终实现不同的降噪效果。因此,用户可通过滑动所述滚动条,来调节终端的降噪效果,直至用户感觉听到的环境噪音最弱为止。
本实施例提供的方案,当第二获取模块50在接收到用户输入的相位调节指令时,获取所述相位调节指令对应的相位偏移参数值,然后更新模块60采用所述相位偏移参数值更新预存的相位偏移参数值,第一相位处理模块20根据更新的所述相位偏移参数值对获取的环境噪音信号进行相位偏移处理,第二相位处理模块30再将相位偏移处理后的环境噪音信号进行相位反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号,最后输出模块40输出所述音频模拟信号,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了对环境噪音进行降噪处理。当用户在终端上进行不同的相位调节操作时,由于获取到对应不同的相位偏移参数值,实现了不同的降噪效果,因此,通过本方案用户可根据需求达到不同的降噪效果,提高了用户体验。
可选地,基于第一实施例或第二实施例提出本发明噪音处理的装置第三实施例,在本实施例中,所述第一获取模块10设置为:
在所述终端与音频播放设备连接时,获取终端所处环境的噪音信号。
在上述实施例中,当获取到环境噪音时,就会进行降低噪音的处理,终端系统资源消耗大。并且,在一些情况下用户也不需要降低环境噪音的干扰,此时,噪音处理的装置进行降低噪音的处理就是无用的。为了减少终端系统资源的浪费,使得每次进行降低噪音的处理都是用户所需求的,在本实施例中,噪音处理的装置在用户需要降低环境噪音干扰的情况下才获取终端所处环境的噪音信号,从而进行降低噪音的处理。考虑到在用户使用终端来进行通话、听音乐或者看视频等需要降低环境噪音干扰时通常都会佩戴耳机,因此,在本实施例中,第一获取模块10首先检测是否有音频播放设备与终端连接,所述音频播放设备是指具有音频播放功能的音频设备,包括有线耳机、无线耳机等。优选地,第一获取模块10首先检测终端的音频接口是否连接了有线耳机,在检测到终端的音频接口未连接有线耳机时,进一步检测终端是否通过蓝牙等方式与蓝牙耳机等无线耳机连接。本领域技术人员可以理解的是,第一获取模块10也可以先检测终端是否通过蓝牙等方式与蓝牙耳机等无线耳机连接,在终端未与 无线耳机连接时,进一步检测终端的音频接口是否连接有线耳机。
在第一获取模块10检测到终端与音频播放设备连接时,也即检测到终端的音频接口连接了有线耳机,或者检测到终端与蓝牙耳机等无线耳机通过蓝牙等方式连接时,第一获取模块10通过内置的声音采集器采集环境噪音获得环境噪音信号。在第一获取模块10未检测到终端与音频播放设备连接时,则不进行处理。
本实施例提供的方案,第一获取模块10首先检测终端是否与音频播放设备连接,只有在终端与音频播放设备连接时,也即在用户需要降低环境噪音的干扰时,第一获取模块10才获取终端所处环境的噪音信号,进而进行降低噪音的处理;在终端未与音频播放设备连接时,也即在用户不需要降低环境噪音的干扰时,不进行降噪处理,从而减少终端系统资源的浪费。
可选地,基于上述任一实施例提出本发明噪音处理的装置第四实施例,在本实施例中,所述第二相位处理模块30设置为:
采用反相电路对处理后的环境噪音信号进行反相处理。
在本实施例中,可在终端内预先设置一反相处理电路,当第一相位处理模块20对所述环境噪音信号进行相位偏移处理后,第二相位处理模块30通过该反相处理电路将相位偏移处理后的环境噪音信号进行反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号。优选地,也可以在终端内预先设置有A/D转换电路(analog to digital converter,模数转换器)、取反电路以及D/A转换电路(digital to analog converter,数模转换器)。当第一相位处理模块20对获取的所述环境噪音信号进行相位偏移处理后,第二相位处理模块30首先通过A/D转换电路将所述相位偏移处理后的环境噪音信号转换为数字信号,然后通过所述取反电路将所述数字信号进行取反处理,获得取反处理后的数字信号,再通过D/A转换电路将所述取反处理后的数字信号转换为模拟信号,所述模拟信号为即为与环境噪音信号相位相反的音频模拟信号。
可选地,参照图5,在本实施例中,所述输出模块40包括:
放大单元41,设置为将所述音频模拟信号进行放大处理;
输出单元42,设置为输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备。
在获得与环境噪音信号相位相反的音频模拟信后,放大单元41将所述音频模拟信号进行放大处理。例如,所述放大单元41优选为信号放大电路,通过所述信号放大电路将所述音频模拟信号进行放大处理。然后,输出单元42输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备,通过音频播放设备将输出单元42输出的放大后的所述音频模拟信号传输至用户人耳。当用户通过所述音频播放设备接听到放大后的所述音频模拟信号,以及接听到用户所处环境中的环境噪音信号时,由于所述音频模拟信号与环境噪音信号的相位相反,两个信号叠加后相互抵消,从而降低了环境噪音对用户造成的干扰。
本实施例提供的方案,在获取到相位偏移处理后的环境噪音信号时,第二相位处理模块30通过采用反相电路对相位偏移处理后的环境噪音信号进行反相处理,从而获得与环境噪音信号相位相反的音频模拟信号,然后放大单元41将该音频模拟信号放大后通过输出单元42输出至音频播放设备,用户接听到所述音频模拟信号以及环境噪音信号时,环境噪音信号与相位相反的所述音频模拟信号叠加后相互抵消,从而实现了通过终端对环境噪音进行降噪处理,降低了环境噪音对用户造成的干扰。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质中存储有执行指令,该执行指令用于执行上述的方法。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
工业实用性
如上所述,本发明实施例提供的噪音处理的方法及装置具有以下有益效果:终端获取终端所处环境的噪音信号后,根据预存的相位偏移参数对获取到的环境噪音信号进行相位偏移处理,使得相位偏移处理后的环境噪音信号与用户人耳听到的环境噪音信号的波形一致,然后再将处理后的环境噪音信号进行反相处理,获得与用户人耳听到的环境噪音信号相位相反的音频模拟信号,最后输出所述音频模拟信号至与所述终端连接的音频播放设备,当用户接听到所述音频模拟信号以及环境噪音信号时,由于环境噪音信号与所述音频模拟信的相位正好相反,两个信号叠加后相互抵消,从而实现了终端对环境噪音进行降噪处理。

Claims (10)

  1. 一种噪音处理的方法,所述噪音处理的方法包括以下步骤:
    获取终端所处环境的噪音信号;
    根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理;
    将处理后的环境噪音信号进行反相处理,以获得与环境噪音信号相位相反的音频模拟信号;
    输出所述音频模拟信号至与所述终端连接的音频播放设备。
  2. 如权利要求1所述的噪音处理的方法,其中,所述输出所述音频模拟信号至与所述终端连接的音频播放设备的步骤之后,还包括:
    在接收到相位调节指令时,获取所述相位调节指令对应的相位偏移参数;
    采用所述相位偏移参数更新预存的所述相位偏移参数。
  3. 如权利要求1所述的噪音处理的方法,其中,所述获取终端所处环境的噪音信号的步骤包括:
    在所述终端与音频播放设备连接时,执行所述获取终端所处环境的噪音信号的步骤。
  4. 如权利要求1所述的噪音处理的方法,其中,所述将处理后的环境噪音信号进行反相处理的步骤包括:
    采用反相电路对处理后的环境噪音信号进行反相处理。
  5. 如权利要求1-4任一项所述的噪音处理的方法,其中,所述输出所述音频模拟信号至与所述终端连接的音频播放设备的步骤包括:
    将所述音频模拟信号进行放大处理;
    输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备。
  6. 一种噪音处理的装置,所述噪音处理的装置包括:
    第一获取模块,设置为获取终端所处环境的噪音信号;
    第一相位处理模块,设置为根据预存的相位偏移参数,对获取的所述环境噪音信号进行相位偏移处理;
    第二相位处理模块,设置为将处理后的环境噪音信号进行反相处理,以获得与环境噪音信号相位相反的音频模拟信号;
    输出模块,设置为输出所述音频模拟信号至与所述终端连接的音频播放设备。
  7. 如权利要求6所述的噪音处理的装置,其中,所述噪音处理的装置还包括:
    第二获取模块,设置为在接收到相位调节指令时,获取所述相位调节指令对应的相位偏移参数;
    更新模块,设置为采用所述相位偏移参数更新预存的所述相位偏移参数。
  8. 如权利要求6所述的噪音处理的装置,其中,所述第一获取模块设置为:
    在所述终端与音频播放设备连接时,获取终端所处环境的噪音信号。
  9. 如权利要求6所述的噪音处理的装置,其中,所述第二相位处理模块设置为:
    采用反相电路对处理后的环境噪音信号进行反相处理。
  10. 如权利要求6-9任一项所述的噪音处理的装置,其中,所述输出模块包括:
    放大单元,设置为将所述音频模拟信号进行放大处理;
    输出单元,设置为输出放大后的所述音频模拟信号至与所述终端连接的音频播放设备。
PCT/CN2016/077737 2015-08-03 2016-03-29 噪音处理的方法及装置 WO2016177204A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510481905.X 2015-08-03
CN201510481905.XA CN106409279A (zh) 2015-08-03 2015-08-03 噪音处理的方法及装置

Publications (1)

Publication Number Publication Date
WO2016177204A1 true WO2016177204A1 (zh) 2016-11-10

Family

ID=57217382

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077737 WO2016177204A1 (zh) 2015-08-03 2016-03-29 噪音处理的方法及装置

Country Status (2)

Country Link
CN (1) CN106409279A (zh)
WO (1) WO2016177204A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107452368A (zh) * 2017-08-14 2017-12-08 海尔优家智能科技(北京)有限公司 一种家电设备的降噪方法及装置
CN113613145A (zh) * 2021-08-09 2021-11-05 深圳分贝声学科技有限公司 降噪处理方法及相关装置
CN114120956A (zh) * 2021-12-13 2022-03-01 Oppo广东移动通信有限公司 降噪方法、装置、车辆及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108806659A (zh) * 2017-04-27 2018-11-13 北京小米移动软件有限公司 空气净化器的降噪方法及装置、电子设备
CN109243453A (zh) * 2018-10-29 2019-01-18 珠海格力电器股份有限公司 语音信息的处理方法及装置、存储介质、电子装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211558A (zh) * 2006-12-28 2008-07-02 海尔集团公司 有源降噪方法及有源降噪装置
US20090170550A1 (en) * 2007-12-31 2009-07-02 Foley Denis J Method and Apparatus for Portable Phone Based Noise Cancellation
CN102223428A (zh) * 2011-06-24 2011-10-19 中兴通讯股份有限公司 一种降低噪声的方法及移动终端
CN102801868A (zh) * 2012-08-28 2012-11-28 北京北纬点易信息技术有限公司 在移动终端内进行实时环境噪声抑制的系统
CN203416398U (zh) * 2013-08-01 2014-01-29 清华大学 一种有源降噪耳机的电路
US20140270220A1 (en) * 2013-03-15 2014-09-18 Virgin America Inc. Aircraft predictive active noise cancellation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2445984B (en) * 2007-01-25 2011-12-07 Sonaptic Ltd Ambient noise reduction
CN201616843U (zh) * 2010-03-18 2010-10-27 华为终端有限公司 能够降低噪音的音频装置和降噪手机
CN102064781B (zh) * 2010-10-29 2015-09-09 华为终端有限公司 一种终端音频的调整方法、装置和终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211558A (zh) * 2006-12-28 2008-07-02 海尔集团公司 有源降噪方法及有源降噪装置
US20090170550A1 (en) * 2007-12-31 2009-07-02 Foley Denis J Method and Apparatus for Portable Phone Based Noise Cancellation
CN102223428A (zh) * 2011-06-24 2011-10-19 中兴通讯股份有限公司 一种降低噪声的方法及移动终端
CN102801868A (zh) * 2012-08-28 2012-11-28 北京北纬点易信息技术有限公司 在移动终端内进行实时环境噪声抑制的系统
US20140270220A1 (en) * 2013-03-15 2014-09-18 Virgin America Inc. Aircraft predictive active noise cancellation
CN203416398U (zh) * 2013-08-01 2014-01-29 清华大学 一种有源降噪耳机的电路

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107452368A (zh) * 2017-08-14 2017-12-08 海尔优家智能科技(北京)有限公司 一种家电设备的降噪方法及装置
CN107452368B (zh) * 2017-08-14 2021-05-07 海尔优家智能科技(北京)有限公司 一种家电设备的降噪方法及装置
CN113613145A (zh) * 2021-08-09 2021-11-05 深圳分贝声学科技有限公司 降噪处理方法及相关装置
CN114120956A (zh) * 2021-12-13 2022-03-01 Oppo广东移动通信有限公司 降噪方法、装置、车辆及存储介质

Also Published As

Publication number Publication date
CN106409279A (zh) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2016177204A1 (zh) 噪音处理的方法及装置
US8972251B2 (en) Generating a masking signal on an electronic device
US20170126192A1 (en) Method, device, and computer-readable medium for adjusting volume
US9113239B2 (en) Electronic device and method for selecting microphone by detecting voice signal strength
WO2018059030A1 (zh) 一种音量调节方法及终端
US20170318374A1 (en) Headset, an apparatus and a method with automatic selective voice pass-through
JP2016146547A (ja) 収音システム及び収音方法
CN106782613B (zh) 信号检测方法及装置
EP3576430A1 (en) Audio signal processing method and device, and storage medium
WO2018026083A1 (ko) 사용자 환경 기반의 청력 보조 장치 피팅 시스템 및 방법
CN107371102B (zh) 音频播放音量的控制方法、装置及存储介质和移动终端
WO2017071183A1 (zh) 一种语音处理方法、装置及拾音电路
WO2017166751A1 (zh) 移动终端音频调节方法、装置和电子设备
US10884696B1 (en) Dynamic modification of audio signals
WO2018018782A1 (zh) 一种降噪方法及终端、计算机存储介质
EP2887698B1 (en) Hearing aid for playing audible advertisement
JP5970125B2 (ja) 制御装置、制御方法及びプログラム
US9930467B2 (en) Sound recording method and device
JP2021164109A (ja) 音場補正方法、音場補正プログラムおよび音場補正システム
CN108391208B (zh) 信号切换方法、装置、终端、耳机及计算机可读存储介质
JP2014086847A (ja) 音響処理装置、電子機器及び音響処理方法
WO2015117550A1 (en) Method and apparatus for acquiring reverberated wet sound
CN108605067B (zh) 播放音频的方法和移动终端
CN109618062B (zh) 语音交互方法、装置、设备以及计算机可读存储介质
TWM515371U (zh) 攜帶式聽力檢測裝置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789198

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789198

Country of ref document: EP

Kind code of ref document: A1