A kind of earphone noise-reduction method and device
Technical field
The invention belongs to wearable device technical field more particularly to a kind of earphone noise-reduction methods and device.
Background technique
Noise pollution is as one of internationally recognized four big pollutions, with the development of urbanization and the progress of technology, noise
Pollution also becomes more serious.When user plays audio by terminal peripheral earphone, ring can be reduced by earphone noise-reduction method
The noise signal in border protects the hearing of user.
Earphone noise-reduction method used at present, there are two types of implementation, first way be by earphone physically every
Disconnected noise, makes it cannot be introduced into human ear;The second way is that earphone collects noise, inside earphone carry out noise reverse phase with
Superposition offsets the noise for entering earphone, perceive human ear can not.
However, existing earphone noise-reduction method, needs that the key or toggle switch for adjusting noise reduction are arranged on earphone, is unfavorable for
Earphone it is highly integrated, and decrease of noise functions can not be opened or closed in time.The reason is that existing earphone noise-reduction method, such as
First way and the second way are needed for being opened or closed manually by the key or toggle switch on earphone
The decrease of noise functions of earphone, due to the fault of user's subjective judgement or the transfer of attention, this mode often will lead to decrease of noise functions
Inappropriate use.Such as decrease of noise functions is not opened in time when noise reaches and endangers human ear hearing, make listening for itself
Power is damaged;Or remain on decrease of noise functions in inaudible situation in the noise signal of environment, therefore can not and
When open or close decrease of noise functions, cause unnecessary power consumption, reduce the cruising ability of earphone.Meanwhile existing earphone noise reduction side
Method needs manufacturer that the hardware for adjusting noise reduction is arranged on earphone, therefore reduces the degree of integration of earphone.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of earphone noise-reduction method, it is intended to existing earphone noise-reduction method is solved,
It needs that the key or toggle switch for adjusting noise reduction are arranged on earphone, is unfavorable for the highly integrated of earphone, and can not open in time
Or the problem of closing decrease of noise functions.
The embodiments of the present invention are implemented as follows, a kind of earphone noise-reduction method, comprising:
Using ear microphone, the noise signal of local environment is acquired;
The noise signal is sent to the terminal of connection, or is made an uproar to the terminal of the connection transmission noise signal is corresponding
Value;
The judging result that the terminal returns is received, according to the judging result, decrease of noise functions is opened or closes noise reduction
Function.
The another object of the embodiment of the present invention is to provide a kind of noise reduction device of earphone, comprising:
Noise signal acquisition module acquires the noise signal of local environment for utilizing ear microphone;
Noise signal sending module, for being sent out to the terminal of the connection transmission noise signal, or to the terminal of connection
Send the noise signal corresponding level of noise;
Decrease of noise functions module, the judging result returned for receiving the terminal open noise reduction according to the judging result
Function closes decrease of noise functions.
In embodiments of the present invention, the judging result that the terminal returns is received, according to the judging result, opens noise reduction
Function or close decrease of noise functions, solve existing earphone noise-reduction method, need on earphone be arranged adjust noise reduction key or
Toggle switch is unfavorable for the highly integrated of earphone, and the problem of can not open or close decrease of noise functions in time.Beneficial effect is
Two aspects, on the one hand, manufacturer does not need the hardware that the setting on earphone adjusts noise reduction, and another aspect realizes automatic noise reduction,
Under the premise of not needing the key or toggle switch on earphone, decrease of noise functions can be opened or closed in time, to both improve
The degree of integration of earphone decreases unnecessary power consumption, improves the cruising ability of earphone.
Detailed description of the invention
Fig. 1 is the implementation flow chart of earphone noise-reduction method provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart of earphone noise-reduction method S102 provided in an embodiment of the present invention;
Fig. 3 is the implementation flow chart of earphone noise-reduction method S103 provided in an embodiment of the present invention;
Fig. 4 is the first structure block diagram of noise reduction device of earphone provided in an embodiment of the present invention;
Fig. 5 is the second structural block diagram of noise reduction device of earphone provided in an embodiment of the present invention;
Fig. 6 is the third structural block diagram of noise reduction device of earphone provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Embodiment one
Fig. 1 is the implementation flow chart of earphone noise-reduction method provided in an embodiment of the present invention, and details are as follows:
In step s101, using ear microphone, the noise signal of local environment is acquired;
Wherein, using ear microphone, the noise signal of local environment is acquired, there are two types of embodiments, and details are as follows:
The first embodiment:
It is spaced every preset detection, using ear microphone, acquires the noise signal of local environment.
It should be noted that too big variation can't usually occur whithin a period of time for the noise signal due to environment, because
This, carries out one-time detection to the noise signal of environment every preset detection interval, can further save the electricity of earphone
Consumption.
Second of embodiment:
When leaving the distance in the geographical location of noise signal of last acquisition local environment not less than pre-determined distance, benefit
With ear microphone, the noise signal of local environment is acquired.
It should be noted that since the distance that earphone leaves the geographical location of the noise signal detection of last local environment is super
After crossing pre-determined distance, it is possible to which, because of the distance on geographical location, local environment is also changed, at this time again to local environment
Noise signal carry out one-time detection, can inform the situation of change of the noise signal intensity of user's local environment in time.
It should be noted that it is less than pre-determined distance, but the longer situation of traveling time due to being possible to occur earphone movement,
It, but can not be real-time in order to avoid the noise signal intensity of the local environment in this longer traveling time has changed a lot
Acquisition, at this point, further, step S101 specifically:
When the distance that earphone leaves the geographical location of the noise signal detection of last local environment is less than pre-determined distance
When, if the time that the noise signal at this time apart from earphone last time local environment detects has been more than preset detection interval, ear
Machine also obtains the noise signal detection for carrying out local environment,
Thus the accuracy and real-time of the noise signal detection of local environment are further improved.
Similarly, it should be noted that, the GPS function that can be carried by earphone obtains the progress of earphone current distance last time
The distance in the geographical location of the noise signal detection of local environment, to judge whether the earphone leaves ring locating for last carry out
The distance in the geographical location of the noise signal detection in border is less than pre-determined distance.
In step s 102, the noise signal is sent to the terminal of connection, or made an uproar to described in the transmission of the terminal of connection
The corresponding level of noise of sound signal;
Wherein, the noise signal directly can be sent to the terminal of connection, the noise signal can also be sampled,
The corresponding level of noise of the noise signal is generated, sends the corresponding level of noise of the noise signal to the terminal of connection.Wherein, institute
Stating terminal is to carry out the equipment that order or data interacts with earphone by wired or wireless way.
The terminal includes but is not limited to smart phone, tablet computer, laptop, desktop computer, smart television.
It should be noted that between earphone and terminal connection can be established by any one wired mode, or by appointing
One kind of anticipating wirelessly establishes connection.It wirelessly include but is not limited to bluetooth, WIFI, 3G, 4G, 5G.Wherein, earphone does not have
There is display screen, can only functionally open or close noise reduction, any visual information of user and suggestion can not be given to,
The scheme of flexible control noise reduction can not be provided for user, by sending the noise signal to the terminal of connection or described making an uproar
The corresponding level of noise of sound signal, so that earphone reduces the controller processing data of earphone without judging noise signal
Pressure, meanwhile, also can receive connection terminal send control noise reduction scheme.
In step s 103, the judging result that the terminal returns is received, according to the judging result, opens decrease of noise functions
Or close decrease of noise functions.
Earphone receives the judging result that the terminal returns by preset communication interface, according to the judging result, inspection
It surveys the current state of decrease of noise functions and whether the judging result is consistent, if when consistent, the state for maintaining decrease of noise functions current, if
When inconsistent, change the current state of decrease of noise functions, open decrease of noise functions or closes decrease of noise functions.
In embodiments of the present invention, the judging result that the terminal returns is received, according to the judging result, opens noise reduction
Function or close decrease of noise functions, solve existing earphone noise-reduction method, need on earphone be arranged adjust noise reduction key or
Toggle switch is unfavorable for the highly integrated of earphone, and the problem of can not open or close decrease of noise functions in time.It will be traditional manual
Noise reduction is changed to automatic noise reduction, so that earphone is not only more humanized and intelligent, while being also more able to satisfy user to health ear
Demand.
Embodiment two
Fig. 2 is the implementation flow chart of earphone noise-reduction method S102 provided in an embodiment of the present invention, and details are as follows:
In step s 201, by the noise signal input sample channel of part;
In step S202, in the sampling channel, the noise signal of part is subjected to analog-to-digital conversion, generates institute
State the level of noise of noise signal;
In step S203, the corresponding level of noise of the noise signal is sent to the terminal of connection.
In embodiments of the present invention, the corresponding level of noise of the noise signal is sent to the terminal of connection, in order to receive
The judging result that terminal is generated according to noise signal opens decrease of noise functions or closes decrease of noise functions according to the judging result.
Embodiment three
Fig. 3 is the implementation flow chart of earphone noise-reduction method S103 provided in an embodiment of the present invention, and details are as follows:
In step S301, the judging result that the terminal returns is received, the judging result includes opening noise reduction
Judging result and close noise reduction judging result;
In step s 302, when the judging result is to open the judging result of noise reduction, decrease of noise functions is opened;
When the judging result is to open the judging result of noise reduction, whether the current state of the decrease of noise functions of test earphone
It is in the open state, when the current state of the decrease of noise functions of earphone is not at open state, open decrease of noise functions.
In step S303, when the judging result is to close the judging result of noise reduction, decrease of noise functions is closed.
When the judging result is to close the judging result of noise reduction, whether the current state of the decrease of noise functions of test earphone
It is in close state, when the current state of the decrease of noise functions of earphone is not at closed state, closes decrease of noise functions.
In embodiments of the present invention, it according to judging result, opens decrease of noise functions or closes decrease of noise functions, realize earphone
The function of automatic noise reduction, improves the degree of integration of earphone, decreases unnecessary power consumption, improve the continuation of the journey energy of earphone
Power.
Example IV
The embodiment of the present invention essentially describes the present invention in practical applications, and preferable implementing procedure, details are as follows:
After ear microphone collects the noise signal of environment, there are two types of processing modes:
If it is simulation noise reduction technology is used, then the noise signal of environment is divided into two-way, is converted carry out by ADC all the way
Calculating numerically, obtains the decibel value of noise signal, and another way is input to active noise reduction module as analog signal.
If the noise signal of environment is directly input to active noise reduction module using digital noise reduction technology, in module
Internal calculation and the decibel value for returning to noise signal.
This decibel value is transferred to terminal by by any one transmission mode.For example, transmission mode includes but is not limited to
Bluetooth transmission mode, WIFI transmission mode, 3G transmission mode, 4G transmission mode, 5G transmission mode.
It after terminal receives the decibel value of noise signal, analyzes it, returns to two contents:
First item content: show to the analysis of the noise signal of current environment in terminal as a result, and analyzing and providing user and make
With the suggestion of earphone;
Section 2 content: sending the corresponding command from trend earphone, by the function point analysis of earphone to most adapting to current noise ring
The use state in border.
If user's optimal use state that control earphone in receiving terminal does not reach, user can be enterprising in terminal or earphone
Row is adjusted, and is adjusted to earphone use state.
Embodiment five
The embodiment of the present invention essentially describes the present invention preferable implementing procedure in three different scenes, and details are as follows:
The noise signal decibel value of first scene, earphone acquisition environment provides noise reduction suggestion by smart phone, and details are as follows:
After ear microphone collects the noise signal of environment, the noise signal of environment is divided into two-way, passes through ADC all the way
Conversion carries out calculating numerically, and the noise signal decibel value for obtaining environment is 80dB.
The decibel value of acquisition is passed through Bluetooth transmission to smart phone.
After smart phone receives decibel value, analyzing it, it is known that 80dB can damage the hearing of human ear significantly, and
And user is by the excessive of volume adjustment.
After decrease of noise functions is opened, the currently used volume-level of user just will appear relatively excessive situation, therefore
It shows to analyze result and use on smart phone and suggest, display analyzes result and uses suggestion as follows:
It is recommended that user opens the decrease of noise functions of earphone, and the volume-level of earphone or mobile phone is reduced, to protect hearing.
Secondly, smart phone sends the order for opening active noise reduction function from trend earphone, and by the volume-level of earphone
It reduces.
The noise signal decibel value of second scene, earphone acquisition environment provides noise reduction suggestion by tablet computer, and details are as follows:
After ear microphone collects the noise signal of environment, the noise signal of environment is divided into two-way, passes through ADC all the way
Conversion carries out calculating numerically, and the noise signal decibel value for obtaining environment is 20dB.
The decibel value of acquisition is transferred to tablet computer by WIFI.
After plate receives decibel value, analyzing it, it is known that 20dB will not damage the hearing of human ear significantly, and
Human ear is to the sound hardly audible of 20dB, but active user opens decrease of noise functions.Therefore analysis is shown on tablet computer
As a result and suggestion is used: it is recommended that user closes the active noise reduction function of earphone and by the volume-level of earphone or mobile phone height, to protect
Human ear hears that the signal-to-noise ratio of sound remains unchanged after card active noise reduction function is closed;
Secondly, sending the order for closing active noise reduction function from trend earphone, and the volume-level of earphone is turned up.
The noise signal decibel value of third scene, earphone acquisition environment provides noise reduction suggestion by laptop, is described in detail such as
Under:
After ear microphone collects the noise signal of environment, the noise signal of environment is input to active noise reduction module,
After the resume module, the noise signal decibel value for exporting current environment is 60dB.
The decibel value of acquisition is passed through USB transmission to tablet computer.
It after plate receives decibel value, analyzes it, it is known that 60dB can damage significantly the hearing of human ear, and work as
Preceding user opens noise reduction.Therefore analysis result is shown on laptop and is used and is suggested: it is recommended that user keeps at present
Use state;
Laptop does not send any order to earphone.
Embodiment six
Fig. 4 is the first structure block diagram of noise reduction device of earphone provided in an embodiment of the present invention, which can be with
It runs in earphone.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 4, the noise reduction device of earphone, comprising:
Noise signal acquisition module 41 acquires the noise signal of local environment for utilizing ear microphone;
Noise signal sending module 42, for sending the noise signal, or the terminal to connection to the terminal of connection
Send the corresponding level of noise of the noise signal;
Decrease of noise functions module 43, the judging result returned for receiving the terminal open drop according to the judging result
Function of making an uproar closes decrease of noise functions.
In a kind of implementation of the present embodiment, in the noise reduction device of earphone, the noise signal acquisition module 41,
Specifically for being spaced every preset detection, using ear microphone, the noise signal of local environment is acquired.
In a kind of implementation of the present embodiment, in the noise reduction device of earphone, the noise signal acquisition module 41,
Specifically for when leaving the distance in the geographical location of noise signal of last acquisition local environment not less than pre-determined distance, benefit
With ear microphone, the noise signal of local environment is acquired.
It is earphone noise reduction dress provided in an embodiment of the present invention with reference to Fig. 5, Fig. 5 in a kind of implementation of the present embodiment
The second structural block diagram set, in the noise reduction device of earphone, the noise signal sending module 42, comprising:
Noise signal input unit 421, for by the noise signal input sample channel of part;
Decibel generation unit 422, for the noise signal of part being carried out modulus and is turned in the sampling channel
It changes, generates the level of noise of the noise signal;
Decibel transmission unit 423, for sending the corresponding level of noise of the noise signal to the terminal of connection.
It is earphone noise reduction dress provided in an embodiment of the present invention with reference to Fig. 6, Fig. 6 in a kind of implementation of the present embodiment
The third structural block diagram set, in the noise reduction device of earphone, the decrease of noise functions module 43, comprising:
Judging result receiving unit 431, the judging result returned for receiving the terminal, the judging result packet
It includes the judging result for opening noise reduction and closes the judging result of noise reduction;
Decrease of noise functions opening unit 432, for opening noise reduction when the judging result is to open the judging result of noise reduction
Function;
Decrease of noise functions closing unit 433, for closing noise reduction when the judging result is to close the judging result of noise reduction
Function.
Device provided in an embodiment of the present invention can be applied in aforementioned corresponding embodiment of the method, and details are referring to above-mentioned reality
The description of example is applied, details are not described herein.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can borrow
Help software that the mode of required common hardware is added to realize.The program can store in read/write memory medium, described
Storage medium, as random access memory, flash memory, read-only memory, programmable read only memory, electrically erasable programmable storage
Device, register etc..The storage medium is located at memory, and processor reads the information in memory, executes this hair in conjunction with its hardware
Method described in bright each embodiment.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.