Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of earphone pop sound removing method, system and dresses
It sets.
The technical solution used in the present invention is:
A kind of earphone pop sound removing method, comprising the following steps:
According to pop sound, audio threshold is set;
When starting to play audio, according to the comparative situation of audio volume and audio threshold, audio power amplifier is opened
It opens;
When audio finishes or suspends broadcasting, according to the comparative situation of audio volume and audio threshold, to audio function
Device is put to be closed.
It is described according to audio volume and audio as a kind of further improvement of earphone pop sound removing method
The comparative situation of threshold value, opens audio power amplifier, the step for specifically:
Judgement processing is carried out to the volume of audio in real time, when detecting that the volume of audio is greater than or equal to audio threshold
Just open audio power amplifier.
It is described according to audio volume and audio as a kind of further improvement of earphone pop sound removing method
The comparative situation of threshold value, closes audio power amplifier, the step for specifically:
Judgement processing is carried out to the volume of audio in real time, when detecting that the volume of audio is less than or equal to audio threshold
Just close audio power amplifier.
Another technical solution of the present invention is:
A kind of earphone pop sound elimination system, comprising:
Threshold setting unit, for setting audio threshold according to pop sound;
Power amplifier opening unit, for start play audio when, it is right according to the comparative situation of audio volume and audio threshold
Audio power amplifier is opened;
Power amplifier closing unit, for when audio finishes or suspends broadcasting, according to audio volume and audio threshold
Comparative situation closes audio power amplifier.
The further improvement of system is eliminated as a kind of earphone pop sound, the power amplifier opening unit is specially
For start play audio when, judgement processing is carried out to the volume of audio in real time, until detect the volume of audio be greater than or
Audio power amplifier is just opened when equal to audio threshold.
The further improvement of system is eliminated as a kind of earphone pop sound, the power amplifier closing unit specifically,
For judgement processing being carried out to the volume of audio in real time, until detecting audio when audio finishes or suspends broadcasting
Volume just closes audio power amplifier when being less than or equal to audio threshold.
Another technical solution of the present invention is:
A kind of earphone pop sound cancellation element, comprising:
Memory, for storing program;
Processor, for executing described program, described program makes the processor execute the earphone pop sound elimination
Method.
The beneficial effects of the present invention are:
A kind of earphone pop sound removing method of the present invention, system and device judge the size of audio volume by real-time detection
Earphone POP sound is eliminated to open and close the mode of this pure software of audio power amplifier, completely dispenses with increase chip area
Or the component of periphery, cost of manufacture is greatly saved and reduces design difficulty.
Specific embodiment
Specific embodiments of the present invention will be further explained with reference to the accompanying drawing:
With reference to Fig. 1, a kind of earphone pop sound removing method of the present invention, comprising the following steps:
According to pop sound, audio threshold is set;
When starting to play audio, according to the comparative situation of audio volume and audio threshold, audio power amplifier is opened
It opens;
When audio finishes or suspends broadcasting, according to the comparative situation of audio volume and audio threshold, to audio function
Device is put to be closed.
With reference to Fig. 3, it is further used as preferred embodiment, the comparison feelings according to audio volume and audio threshold
Condition opens audio power amplifier, the step for specifically:
Judgement processing is carried out to the volume of audio in real time, when detecting that the volume of audio is greater than or equal to audio threshold
Just open audio power amplifier.
Wherein, audio data is initially sent, then because audio data is being sent always, as long as one opening audio function at this time
Device is put, earphone will hear music.So pop sound is almost output to audio together in the moment for opening audio power amplifier
Earphone, as long as audio sound ratio pop sound is slightly larger, human ear, which would not be felt, opens the pop sound that audio power amplifier generates.
With reference to Fig. 4, it is further used as preferred embodiment, the comparison feelings according to audio volume and audio threshold
Condition closes audio power amplifier, the step for specifically:
Judgement processing is carried out to the volume of audio in real time, when detecting that the volume of audio is less than or equal to audio threshold
Just close audio power amplifier.
Wherein, close audio power amplifier process be also it is the same, find opportunity closing accurately when audio data is being sent always
Audio power amplifier, as long as the sound ratio pop sound of audio is slightly larger at this time, human ear, which would not be felt, closes what audio power amplifier generated
Pop sound.
The specific embodiment of the invention is as follows:
Wherein, the step of opening audio power amplifier is specific as follows:
S11, insertion earphone, click play music;
S12, software start to send audio data to audio power amplifier, but audio power amplifier remains as the state of closing at this time,
Earphone will not hear any sound;
S13, software carry out judgement processing to the audio data for being sent to audio power amplifier, when judgement is sent to audio power amplifier
When audio volume reaches audio threshold, software opens audio power amplifier;
S14, normal play audio, earphone normally hear sound.
The step of closing audio power amplifier is specific as follows:
When S21, audio normal play to end or click pause play;
S22, software carry out judgement processing to the audio data of broadcasting after recognizing the state of above-mentioned steps S21, work as judgement
When the audio volume of broadcasting reaches audio threshold, software closes audio power amplifier;
The power down of S23, at this time audio power amplifier, earphone are mute.
With reference to Fig. 2, a kind of earphone pop sound of the present invention eliminates system, comprising:
Threshold setting unit, for setting audio threshold according to pop sound;
Power amplifier opening unit, for start play audio when, it is right according to the comparative situation of audio volume and audio threshold
Audio power amplifier is opened;
Power amplifier closing unit, for when audio finishes or suspends broadcasting, according to audio volume and audio threshold
Comparative situation closes audio power amplifier.
It is further used as preferred embodiment, the power amplifier opening unit is particularly for starting to play audio
When, judgement processing is carried out to the volume of audio in real time, until detecting that the volume of audio is greater than or equal to audio threshold Shi Caikai
Open audio power amplifier.
It is further used as preferred embodiment, the power amplifier closing unit in audio specifically, for finishing
Or when pause broadcasting, judgement processing is carried out to the volume of audio in real time, until detecting that the volume of audio is less than or equal to audio
Audio power amplifier is just closed when threshold value.
A kind of earphone pop sound cancellation element of the present invention, comprising:
Memory, for storing program;
Processor, for executing described program, described program makes the processor execute the earphone pop sound elimination
Method.
From the foregoing it can be that the present invention eliminates ear in such a way that real-time detection judges this pure software of audio volume
Machine POP sound completely dispenses with the component for increasing chip area or periphery, and cost of manufacture is greatly saved and reduces design hardly possible
Degree.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace
It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.