CN105451111A - Earphone play control method and apparatus and terminal - Google Patents

Earphone play control method and apparatus and terminal Download PDF

Info

Publication number
CN105451111A
CN105451111A CN201510917231.3A CN201510917231A CN105451111A CN 105451111 A CN105451111 A CN 105451111A CN 201510917231 A CN201510917231 A CN 201510917231A CN 105451111 A CN105451111 A CN 105451111A
Authority
CN
China
Prior art keywords
earphone
state
parameter information
submodule
state parameter
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.)
Granted
Application number
CN201510917231.3A
Other languages
Chinese (zh)
Other versions
CN105451111B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510917231.3A priority Critical patent/CN105451111B/en
Publication of CN105451111A publication Critical patent/CN105451111A/en
Application granted granted Critical
Publication of CN105451111B publication Critical patent/CN105451111B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present disclosure discloses an earphone play control method and apparatus and a terminal. The earphone play control method comprises: acquiring state parameter information of earphones connected with the terminal in the playing process; according to the state parameter information, judging whether the earphones are not in a worn used state; and when the earphones are not in the worn used state, controlling the terminal to stop outputting an audio signal to the earphones. According to the technical scheme adopted by the present disclosure, when a user takes off the earphones, the earphones can be automatically judged to be not in the worn used state so as to control the terminal to stop outputting the audio signal to the earphones, thereby achieving automatic stop of earphone play when the user takes off the earphones, and enabling the user not to carry out manual operation.

Description

Earphone control method for playing back, device and terminal
Technical field
The disclosure relates to electronic technology field, particularly relates to a kind of earphone control method for playing back, device and terminal.
Background technology
Earphone is a kind of converting unit, and it accepts the electric signal that media player sends, and electric signal is changed into by the loud speaker pressing close to ear the sound wave that can hear.Utilize earphone not only can listen to sound equipment alone when not affecting other people, and the impact of surrounding environment can be separated, helpful to the people used under the noisy environment such as journey or motion.
Under normal circumstances, earphone is connected by plug and media player are separable, and user is by the time-out of the button control media player on media player or broadcasting.In correlation technique, after user takes earphone because other scene gets involved, need to realize media player pause by the button on triggering media player and play; After user puts on earphone again, button again on triggering media player realize media player continue play, complex operation, especially when media player and earphone distant time, button on user's triggering media player is more difficult, causes user experience poor.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of earphone control method for playing back, device and terminal.
According to the first aspect of disclosure embodiment, provide a kind of earphone control method for playing back, described earphone control method for playing back comprises:
Obtain the state parameter information of earphone when playing be connected with described terminal;
Judge whether described earphone is not according to described state parameter information and wear using state;
When described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
In the disclosed embodiments, judge whether earphone is in by state parameter information and wear using state, when judge earphone be not in wear using state time, control terminal stop to earphone output audio signal, user need not perform again other operation, easy to use.
Alternatively, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Receive the voice signal that the microphone in described terminal or on earphone collects when described earphone is play;
Extract the state parameter information of frequency as described earphone of described voice signal.
Describedly judge whether described earphone is not according to described state parameter information and wear using state, comprising:
Obtain the frequency of the audio signal of described terminal plays;
Judge whether the frequency of described audio signal and the frequency of described voice signal match;
When the frequency of described audio signal and the frequency of described voice signal match, determine that described earphone is not in and wear using state.
In the disclosed embodiments, the frequency extracting described voice signal, as state parameter information, when the frequency of audio signal and the frequency of voice signal match, is determined that earphone is not in and is worn using state, avoid ambient noise interference and the erroneous judgement that causes, improve the accuracy of judgement.
Alternatively, the state parameter information of earphone when playing that described acquisition is connected with described terminal, also comprises:
Extract the state parameter information of amplitude as described earphone of described voice signal.
Describedly judge whether described earphone is not according to described state parameter information and wear using state, comprising:
Obtain the frequency of the audio signal of described terminal plays;
Judge whether the frequency of described audio signal and the frequency of described voice signal match;
When the frequency of described audio signal and the frequency of described voice signal match, judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted;
When the difference of described amplitude is more than or equal to default amplitude threshold, determines that described earphone is not in and wear using state.
In the disclosed embodiments, whether be in from audio frequency and amplitude two aspect determination earphones and wear using state, when the frequency of audio signal and the frequency of voice signal match, and whether the amplitude of current extracted described voice signal is when being more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted, determine that earphone is not in and wear using state, avoid the sound soundproof effect that is comparatively large or earplug play due to earphone bad and the erroneous judgement that causes, improve the accuracy of judgement.
Alternatively, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Obtain the spatial position data that gyroscope that described earphone is arranged in two earplugs collects;
Angle angle between the axis calculating two earplugs on described earphone according to described spatial position data is as described state parameter information.
Describedly judge whether described earphone is not according to described state parameter information and wear using state, comprising:
Whether the angle angle between the axis judging two earplugs on described earphone is less than or equal to predetermined angle threshold value;
When described angle angle is less than or equal to predetermined angle threshold value, determines that described earphone is not in and wear using state.
In the disclosed embodiments, judge whether earphone is in by the angle angle between the axis of two earplugs on earphone and wear using state, when angle angle is less than or equal to predetermined angle threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
Alternatively, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Obtain the range data between two earplugs that range sensor that described earphone is arranged collects;
Using described range data as described state parameter information.
Describedly judge whether described earphone is not according to described state parameter information and wear using state, comprising:
Judge whether described range data is less than or equal to predeterminable range threshold value;
When described range data is less than or equal to predeterminable range threshold value, determines that described earphone is not in and wear using state.
In the disclosed embodiments, whether be in by the Distance Judgment earphone on earphone between two earplugs and wear using state, when range data is less than or equal to predeterminable range threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
Alternatively, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Obtain the pressure data that at least one predeterminated position is arranged described earphone outer covering pressure sensor collects;
Using described pressure data as described state parameter information.
Describedly judge whether described earphone is not according to described state parameter information and wear using state, comprising:
Judge whether described pressure data is more than or equal to default pressure threshold;
When described pressure data is more than or equal to default pressure threshold, determines that described earphone is not in and wear using state.
In the disclosed embodiments, the pressure data collected by pressure sensor is judged whether earphone is in and wears using state, when pressure data is more than or equal to preset pressure threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
Also proposed a kind of earphone broadcast control device according to second aspect of the present disclosure, described earphone broadcast control device comprises:
State parameter information acquisition module, for obtaining the state parameter information of earphone when playing be connected with described terminal;
Using state judge module, the described state parameter information for obtaining according to described state parameter information acquisition module judges whether described earphone is not in and wears using state;
Signal output control module, for judge when described using state judge module described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
Alternatively, described state parameter information acquisition module, comprising:
Audible signal reception submodule, the voice signal that the microphone for receiving in described terminal or on earphone collects when described earphone is play;
First state parameter information extracts submodule, for extracting the state parameter information of frequency as described earphone of the described voice signal that described audible signal reception submodule receives.
Alternatively, described using state judge module, comprising:
First frequency obtains submodule, for obtaining the frequency of the audio signal of described terminal plays;
First matching judgment submodule, whether the frequency that frequency and described first state parameter information for judging the described audio signal that described first frequency acquisition submodule obtains extract the described voice signal that submodule extracts matches;
First using state determination submodule, for when described first matching judgment submodule judges that the frequency of described audio signal and the frequency of described voice signal match, determines that described earphone is not in and wears using state.
Alternatively, described state parameter information acquisition module, also comprises:
Second state parameter information extracts submodule, for extracting the state parameter information of amplitude as described earphone of the described voice signal that described audible signal reception submodule receives.
Alternatively, described using state judge module, comprising:
Second frequency obtains submodule, for obtaining the frequency of the audio signal of described terminal plays;
Second matching judgment submodule, whether the frequency that frequency and described first state parameter information for judging the described audio signal that described second frequency acquisition submodule obtains extract the described voice signal that submodule extracts matches;
Amplitude judges submodule, for when described second matching judgment submodule judges that the frequency of described audio signal and the frequency of described voice signal match, judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted;
Second using state determination submodule, for when described amplitude judges that submodule judges that the difference of described amplitude is more than or equal to default amplitude threshold, determines that described earphone is not in and wears using state.
Alternatively, described state parameter information acquisition module, comprising:
Spatial position data obtains submodule, for obtaining the spatial position data that gyroscope that described earphone is arranged in two earplugs collects;
Third state parameter information extracts submodule, and the angle angle between the axis calculating two earplugs on described earphone according to the described spatial position data of described spatial position data acquisition submodule acquisition is as described state parameter information.
Alternatively, described using state judge module, comprising:
Angle judges submodule, and whether the angle angle between the axis judging two earplugs on the described earphone that described third state parameter information extraction submodule extracts is less than or equal to predetermined angle threshold value;
3rd using state determination submodule, during for judging that submodule judges that described angle angle is less than or equal to predetermined angle threshold value when described angle, determining that described earphone is not in and wearing using state.
Alternatively, described state parameter information acquisition module, comprising:
Range data obtains submodule, for obtaining the range data between two earplugs that range sensor that described earphone is arranged collects;
4th state parameter information extracts submodule, for described range data being obtained the described range data of submodule acquisition as described state parameter information.
Alternatively, described using state judge module, comprising:
Distance Judgment submodule, for judging whether the described range data that described range data acquisition submodule obtains is less than or equal to predeterminable range threshold value;
4th using state determination submodule, for when described Distance Judgment submodule judges that described range data is less than or equal to predeterminable range threshold value, determines that described earphone is not in and wears using state.
Alternatively, described state parameter information acquisition module, comprising:
Pressure data obtains submodule, for obtaining the pressure data that at least one predeterminated position is arranged described earphone outer covering pressure sensor collects;
5th state parameter information extracts submodule, for described pressure data being obtained the described pressure data of submodule acquisition as described state parameter information.
Alternatively, described using state judge module, comprising:
Pressure judges submodule, for judging whether the described pressure data that described pressure data acquisition submodule obtains is more than or equal to default pressure threshold;
5th using state determination submodule, for when described pressure judges that submodule judges that described pressure data is more than or equal to default pressure threshold, determines that described earphone is not in and wears using state.
Also proposed a kind of terminal according to the third aspect of the present disclosure, comprising:
Processor;
For the memory of storage of processor executable instruction,
Wherein, described processor is configured to:
Obtain the state parameter information of earphone when playing be connected with described terminal;
Judge whether described earphone is not according to described state parameter information and wear using state;
When described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
From above technical scheme, the earphone Play Control scheme that the disclosure provides, by obtaining the state parameter information of earphone when playing, judge whether earphone is according to this state parameter information and wear using state, and when earphone be not in wear using state time, control terminal stop to earphone output audio signal.
Therefore, the method, when user takes earphone, can not be in earphone and wears using state by automatic decision, and then control terminal stops to earphone output audio signal, and realize user when taking earphone, the automatic pause that earphone is play, without the need to user's manual operation.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
In order to be illustrated more clearly in disclosure embodiment or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, for those of ordinary skills, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of scene schematic diagram that Fig. 1 provides for disclosure embodiment;
A kind of earphone control method for playing back schematic flow sheet that Fig. 2 provides for disclosure embodiment;
A kind of earphone control method for playing back schematic flow sheet that Fig. 3 provides for disclosure embodiment;
A kind of earphone control method for playing back schematic flow sheet that Fig. 4 provides for disclosure embodiment;
A kind of earphone control method for playing back schematic flow sheet that Fig. 5 provides for disclosure embodiment;
Fig. 6 is not in a kind of scene schematic diagram when wearing use for a kind of earphone that disclosure embodiment provides;
A kind of earphone control method for playing back schematic flow sheet that Fig. 7 provides for disclosure embodiment;
A kind of earphone control method for playing back schematic flow sheet that Fig. 8 provides for disclosure embodiment;
A kind of earphone broadcast control device structural representation that Fig. 9 provides for disclosure embodiment;
A kind of state parameter information acquisition module structural representation that Figure 10 provides for disclosure embodiment;
A kind of using state judge module structural representation that Figure 11 provides for disclosure embodiment;
A kind of state parameter information acquisition module structural representation that Figure 12 provides for disclosure embodiment;
A kind of using state judge module structural representation that Figure 13 provides for disclosure embodiment;
A kind of state parameter information acquisition module structural representation that Figure 14 provides for disclosure embodiment;
A kind of using state judge module structural representation that Figure 15 provides for disclosure embodiment;
A kind of state parameter information acquisition module structural representation that Figure 16 provides for disclosure embodiment;
A kind of using state judge module structural representation that Figure 17 provides for disclosure embodiment;
A kind of state parameter information acquisition module structural representation that Figure 18 provides for disclosure embodiment;
A kind of using state judge module structural representation that Figure 19 provides for disclosure embodiment;
The structural representation of a kind of terminal that Figure 20 provides for disclosure embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
A kind of scene schematic diagram that Fig. 1 provides for disclosure embodiment, figure comprises terminal 1 and earphone 2.Audio signal transmission can be play by wired or wireless mode by terminal 1 to earphone 2.Wherein, if terminal 1 by wired mode by audio signal transmission in earphone 2, then terminal 1 is directly connected by holding wire with earphone 2; If terminal 1 wirelessly by audio signal transmission in earphone 2, then terminal 1 and earphone 2 inside are provided with corresponding communication module, and described communication module can be bluetooth module, near-field communication module, wireless transport module etc.
In addition, a kind of scene schematic diagram of the present disclosure is only shown in Fig. 1, the particular type of terminal 1 and earphone 2 in figure, quantity and position therebetween, relativeness are all not limited to concrete form disclosed in Fig. 1, such as, terminal 1 can be the mobile phone, PDA, panel computer, MP3, MP4, intelligent wristwatch etc. of user; Earphone 2 can be headphone, supra-aural earphone, PlayGear Stealth etc., and those skilled in the art can select according to actual needs accordingly, and the disclosure does not limit this.
A kind of earphone control method for playing back schematic flow sheet that Fig. 2 provides for disclosure embodiment, this earphone control method for playing back can be applied to the terminal 1 in Fig. 1, and as shown in Figure 2, this earphone control method for playing back comprises the steps:
Step S100: obtain the state parameter information of earphone when playing be connected with described terminal.
In the disclosed embodiments, the information that state parameter information can gather for the transducer be arranged in earphone or terminal, or the information extracted in the information gathered at transducer.Wherein, when sensor setting is on earphone, the obtain manner of state parameter information is determined by the connected mode of earphone and terminal, specifically comprises: if earphone and terminal wired connection, then terminal obtains state parameter information by the holding wire of frames connecting with headphone and terminal; If earphone is connected with terminal wireless, then terminal obtains state parameter information by the communication module be arranged in terminal and earphone.
The object obtaining the state parameter information of earphone when playing is the using state being judged earphone by state parameter information, and that is, the state parameter information in disclosure embodiment is the state parameter information that can reflect earphone using state.Such as, audio-frequency information, acceleration information, gyroscope information, light sensing information, magnetic field induction information, pressure sensitive information, distance induction information, upset induction information, temperature sense information etc. can be selected.
Step S200: judge whether described earphone is not according to described state parameter information and wear using state.
Because state parameter information is in the disclosed embodiments the state parameter information that can reflect earphone using state, therefore, the using state of earphone can be judged according to the state parameter information obtained in step S100.Such as, by the state parameter information of acquisition and pre-conditionedly to compare (pre-conditioned be not in condition when wearing using state for earphone), if the state parameter information obtained meets pre-conditioned, then judging that earphone is not in wears using state; If the state parameter information obtained does not meet pre-conditioned, then judge that earphone is in and wear using state.
When described earphone be not in wear using state time, perform step S300; Otherwise process ends.
Step S300: control described terminal and stop to described earphone output audio signal.
In the disclosed embodiments, control that described terminal stops can playing for the media player pause on control terminal to described earphone output audio signal, the quiet or audio signal transmission wire road between disconnected end and earphone of media player on control terminal, the disclosure does not limit this, but its effect reached is earphone no longer received audio signal, earphone suspends to be play.That is, in the disclosed embodiments, when judge earphone be not in wear using state time, can automatically control earphone suspend play, user need not perform again other operation, easy to use.
As shown in Figure 3, it can comprise the following steps at step S100 embodiment illustrated in fig. 2 another embodiment of the present disclosure:
Step S101: receive the voice signal that the microphone in described terminal or on earphone collects when described earphone is play;
In the disclosed embodiments, in terminal or earphone be provided with microphone.Under normal circumstances, earphone be in wear using state time, due to earphone and terminal distant, the microphone in terminal or on earphone can not collect earphone play voice signal; But, after user takes earphone, usually earphone is placed on from the not far position of terminal, such as, terminal is mobile phone, usually earphone is placed on the side of mobile phone after user takes earphone, and the microphone now in terminal or on earphone can collect the voice signal that earphone is play.Based on this principle, the voice signal that the microphone in the disclosed embodiments in terminal or on earphone collects is as the basis for estimation of earphone using state.
Step S102: the state parameter information of frequency as described earphone extracting described voice signal.
Under normal circumstances, the environment not absolute squelch that user is residing when using earphone, ambient noise (musical sound etc. as in vehicle whistle sound, television acoustics sound, bar) can cause certain interference to the voice signal of microphone collection.If judge that user takes earphone when microphone collects outside noise, obviously can cause erroneous judgement, affect Consumer's Experience.Therefore, also need to distinguish that this voice signal is voice signal or the outside noise of earphone broadcasting after microphone collects voice signal.
Frequency is one of attribute important in voice signal, and it can reflect the bulk information comprised in voice signal, such as, can be known the song of music by the frequency analyzing one section of music; The content of talk can be known by the frequency analyzing one section of dialogue.Therefore, in the disclosed embodiments, extract the state parameter information of frequency as earphone of voice signal, and then differentiation microphone collects voice signal or outside noise that voice signal is earphone broadcasting, gets rid of the interference of outside noise.
On the basis of abovementioned steps S101 and S102, in disclosure embodiment, step S200 embodiment illustrated in fig. 2 can comprise the following steps:
Step S201: the frequency obtaining the audio signal of described terminal plays;
In above-mentioned steps S102, the object extracting the frequency of voice signal is to judge whether the voice signal that microphone collects is the voice signal that earphone is play.In order to realize this object, needing the frequency of the frequency of the voice signal collected by microphone and the audio signal of terminal plays to contrast, therefore, in the disclosed embodiments, obtaining the frequency of the audio signal of terminal plays.
Step S202: judge whether the frequency of described audio signal and the frequency of described voice signal match;
Ideally, if the voice signal of microphone collection is entirely the voice signal that earphone is play, then the frequency of audio signal should be mated completely with the frequency of voice signal, but under actual conditions, the voice signal that microphone collects can adulterate some noises unavoidably, causes the frequency of audio signal can not mate completely with the frequency of voice signal.For this situation, a matching degree threshold value is set in the disclosed embodiments, determines that when the frequency of audio signal and the frequency of voice signal are within matching degree threshold value the frequency of audio signal and the frequency of voice signal match.
When the frequency of described audio signal and the frequency of described voice signal match, perform step S203, otherwise, process ends.
Step S203: determine that described earphone is not in and wear using state.
In the disclosed embodiments, when the frequency of audio signal and the frequency of voice signal match, show that the microphone in terminal or on earphone collects the voice signal of earphone broadcasting, and then determine that earphone is placed near terminal after being taken by user, earphone is not in wears using state.
After step S203, perform above-mentioned steps S300, and then realize when user takes earphone, automatic control terminal stops to earphone output audio signal.
In the disclosed embodiments, the frequency extracting described voice signal, as state parameter information, when the frequency of audio signal and the frequency of voice signal match, is determined that earphone is not in and is worn using state, avoid ambient noise interference and the erroneous judgement that causes, improve the accuracy of judgement.
As shown in Figure 4, it is on basis embodiment illustrated in fig. 3, and above-mentioned steps S100 can also comprise the following steps for another embodiment of the present disclosure:
Step S103: the state parameter information of amplitude as described earphone extracting described voice signal.
Amplitude can reflect the size of the voice signal that microphone collects, and voice signal more large amplitude is larger; The less amplitude of voice signal is less.Under normal circumstances, after user takes earphone, the voice signal that microphone collects becomes large, and its reason is: after user takes earphone on the one hand, be placed on by earphone near terminal, the voice signal that microphone is collected that diminishes of the distance between earphone and microphone becomes large; After on the other hand user takes earphone, the voice signal that the earplug on earphone makes microphone collect without the obstacle (during user's wear headphones, ear can play certain barrier effect to voice signal) of voice signal becomes large.Based on this principle, in the disclosed embodiments using the Rule of judgment one of of the amplitude of voice signal as earphone using state, therefore, extract the state parameter information of amplitude as described earphone of described voice signal.
Using the amplitude of voice signal after state parameter information, when the frequency of described audio signal and the frequency of described voice signal match, the step S200 that disclosure embodiment provides can also comprise:
Step S204: judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted.
In the disclosed embodiments, the frequency of audio signal and the frequency of voice signal match and may there are two kinds of situations: one is that user takes earphone, and microphone collects the voice signal that earphone is play; Another kind is that user does not take earphone, but the bad voice signal causing microphone still can collect faint earphone playing of the sound soundproof effect that is comparatively large or earplug play due to earphone.
If when the frequency of audio signal and the frequency of voice signal match, namely determine that user takes earphone, erroneous judgement to a certain degree obviously can be brought.For this problem, introduce amplitude size in the disclosed embodiments and judge, namely judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted.
When the difference of described amplitude is more than or equal to default amplitude threshold, performs above-mentioned steps S203, determine that described earphone is not in and wear using state; Otherwise, process ends.
That is, in the disclosed embodiments, only have and meet " frequency of audio signal and the frequency of voice signal match " and " amplitude of current extracted voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last voice signal extracted " condition simultaneously, just determine that earphone is not in and wear using state, improve the accuracy that earphone using state is judged.
In the disclosed embodiments, whether be in from audio frequency and amplitude two aspect determination earphones and wear using state, when the frequency of audio signal and the frequency of voice signal match, and the amplitude of current extracted described voice signal is when being more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted, determine that earphone is not in and wear using state, avoid the sound soundproof effect that is comparatively large or earplug play due to earphone bad and the erroneous judgement that causes, improve the accuracy of judgement.
It is to be noted; above-described embodiment is only an exemplary description; those skilled in the art can adjust accordingly according to the order of actual conditions to above-mentioned determining step; such as; first can judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted; judge whether the frequency of described audio signal and the frequency of described voice signal match, and it all should be within protection range of the present disclosure again.
As shown in Figure 5, it can comprise the following steps at step S100 embodiment illustrated in fig. 2 another embodiment of the present disclosure:
Step S111: obtain the spatial position data that gyroscope that described earphone is arranged in two earplugs collects.
In the disclosed embodiments, earphone respectively establishes a gyroscope in two earplugs, the spatial position data that acquisition gyroscope collects is as the initial data of computing mode parameter information.
Step S112: the angle angle between the axis calculating two earplugs on described earphone according to described spatial position data is as described state parameter information.
Fig. 6 is not in a kind of scene schematic diagram when wearing use for a kind of earphone that disclosure embodiment provides, as shown in Figure 6, earphone be not in wear use time, due to the characteristic of earphone self, make between the axis of two earplugs on earphone in certain angle α, but when earphone is worn on the head of user, on earphone, two earplugs are tending towards parallel, i.e. angle between the axis of two earplugs becomes large.Based on this principle, can by the basis for estimation of the angle angle between the axis of two earplugs on earphone as earphone using state.
As shown in Figure 5, disclosure embodiment can comprise the following steps at step S200 embodiment illustrated in fig. 2:
Step S211: whether the angle angle between the axis judging two earplugs on described earphone is less than or equal to predetermined angle threshold value;
According to the above-mentioned description to Fig. 6, when user's wear headphones, on earphone two earplugs axis between angle become large, therefore, in the disclosed embodiments, set an angle threshold according to the state of earphone when not wearing use.Such as, when earphone be in do not wear using state time, on earphone two earplugs axis between angle α=135 °, when earphone be in wear using state time, on earphone two earplugs axis between angle α=170 °, then can choose numerical value between above-mentioned two angles as angle threshold, as 140 °, 145 ° or 150 ° etc.By calculate in step S112 gained to two earplugs axis between angle angle and this angle threshold compare, and then determine the using state of earphone.
When described angle angle is less than or equal to predetermined angle threshold value, perform step S212; Otherwise, process ends.
Step S212: determine that described earphone is not in and wear using state.
In the disclosed embodiments, due to the characteristic of earphone self, when user's wear headphones, on earphone two earplugs axis between angle become large; When user takes earphone, on earphone two earplugs axis between angle diminish.Therefore, when described angle angle is less than or equal to predetermined angle threshold value, determines that described earphone is not in and wear using state.
After step s 212, perform above-mentioned steps S300, and then realize when user takes earphone, automatically control described terminal and stop to described earphone output audio signal.
In the disclosed embodiments, judge whether earphone is in by the angle angle between the axis of two earplugs on earphone and wear using state, when angle angle is less than or equal to predetermined angle threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
As shown in Figure 7, it can comprise the following steps at step S100 embodiment illustrated in fig. 2 another embodiment of the present disclosure:
Step S121: obtain the range data between two earplugs that range sensor that described earphone is arranged collects;
As shown in Figure 6, due to the characteristic of earphone self, when user's wear headphones, the distance on earphone between two earplugs can become large; After user takes earphone, the distance on earphone between two earplugs can diminish.Therefore, can by the basis for estimation of the distance on earphone between two earplugs as earphone using state.In the disclosed embodiments, earphone is provided with range sensor, the range data between two earplugs that acquisition range sensor collects.
Step S122: using described range data as described state parameter information.
In the disclosed embodiments, the range data between two earplugs collected by range sensor is as state parameter information.
As shown in Figure 7, disclosure embodiment can comprise the following steps at step S200 embodiment illustrated in fig. 2:
Step S221: judge whether described range data is less than or equal to predeterminable range threshold value;
According to the above-mentioned description to Fig. 6, when user's wear headphones, the distance on earphone between two earplugs becomes large, therefore, in the disclosed embodiments, sets a distance threshold according to the state of earphone when not wearing use.Such as, when earphone be in do not wear using state time, the distance on earphone between two earplugs is 10cm; When earphone be in wear using state time, the distance on earphone between two earplugs is 20cm, then can choose numerical value between above-mentioned two distances as distance threshold, as 14cm, 15cm or 16cm etc.Range data between two earplugs collected by step S121 middle distance transducer and this distance threshold compare, and then determine the using state of earphone.
When described range data is less than or equal to predeterminable range threshold value, perform step S222; Otherwise, process ends.
Step S222: determine that described earphone is not in and wear using state.
In the disclosed embodiments, due to the self-characteristic of earphone, when user's wear headphones, the distance on earphone between two earplugs becomes large; When user takes earphone, the distance on earphone between two earplugs diminishes.Therefore, when the range data between two earplugs that range sensor collects is less than or equal to distance threshold, determines that described earphone is not in and wear using state.
After step S222, perform above-mentioned steps S300, and then realize when user takes earphone, automatic control terminal stops to earphone output audio signal.
In the disclosed embodiments, whether be in by the Distance Judgment earphone on earphone between two earplugs and wear using state, when range data is less than or equal to predeterminable range threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
As shown in Figure 8, it can comprise the following steps at step S100 embodiment illustrated in fig. 2 another embodiment of the present disclosure:
Step S131: obtain the pressure data that at least one predeterminated position is arranged described earphone outer covering pressure sensor collects;
In the disclosed embodiments, at least one predeterminated position arranges pressure sensor to earphone outer covering, after user takes earphone, be usually placed on loading end by earphone according to custom, the pressure sensor on earphone contacts with loading end and then produces pressure signal.It is pointed out that the disclosure does not do concrete restriction to the quantity of pressure sensor and setting position, those skilled in the art can select the quantity of pressure sensor according to actual needs, as 2,3 or 5 etc.
Step S132: using described pressure data as described state parameter information.
After user takes earphone, be placed on by earphone on loading end, the pressure sensor on earphone contacts with loading end and then produces pressure signal; When user's wear headphones, earphone departs from loading end, and the pressure sensor on earphone is separated with loading end, and pressure signal disappears.Based on this principle, in the disclosed embodiments, the pressure data collected by pressure sensor is as state parameter information.
As shown in Figure 8, the step S200 of disclosure embodiment embodiment described in Fig. 2 can comprise the following steps:
Step S231: judge whether described pressure data is more than or equal to default pressure threshold;
After user takes earphone, pressure sensor contacts with loading end, and the pressure data that pressure sensor collects becomes large, and therefore, in the disclosed embodiments, the pressure data that when contacting with loading end according to earphone, pressure sensor collects sets a pressure threshold.Such as, when earphone is placed on loading end, ideally, the pressure data that pressure sensor collects is 20N, then one can be selected to be less than the numerical value of these desired pressure data as pressure threshold, such as, can select 10N or 15N etc.The pressure data collected by pressure sensor in step S131 and this pressure threshold compare, and then determine the using state of earphone.
When described pressure data is more than or equal to default pressure threshold, perform step S232; Otherwise, process ends.
Step S232: determine that described earphone is not in and wear using state.
In the disclosed embodiments, when user take earphone earphone is placed on loading end time, pressure data that pressure sensor gathers becomes large.Therefore, when the pressure data judging that pressure sensor collects is more than or equal to default pressure threshold, determines that described earphone is not in and wear using state.
After step S232, perform above-mentioned steps S300, and then realize when user takes earphone, automatic control terminal stops to earphone output audio signal.
In the disclosed embodiments, the pressure data collected by pressure sensor is judged whether earphone is in and wears using state, when pressure data is more than or equal to preset pressure threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
Based on same open design, the disclosure embodiment still provides a kind of earphone broadcast control device.A kind of earphone broadcast control device structural representation that Fig. 9 provides for disclosure embodiment, as shown in Figure 9, this earphone broadcast control device is applied to terminal 1, and this earphone broadcast control device comprises:
State parameter information acquisition module 9100, is configured to obtain the state parameter information of earphone when playing be connected with described terminal;
In the disclosed embodiments, the information that state parameter information can gather for the transducer be arranged in earphone or terminal, or the information extracted in the information gathered at transducer.Wherein, when sensor setting is on earphone, the obtain manner of state parameter information is determined by the connected mode of earphone and terminal, specifically comprises: if earphone and terminal wired connection, then terminal obtains state parameter information by the holding wire of frames connecting with headphone and terminal; If earphone is connected with terminal wireless, then terminal obtains state parameter information by the communication module be arranged in terminal and earphone.
The object obtaining earphone state parameter information when playing is the using state being judged earphone by state parameter information, and that is, the state parameter information in disclosure embodiment is the state parameter information that can reflect earphone using state.Such as, audio-frequency information, acceleration information, gyroscope information, light sensing information, magnetic field induction information, pressure sensitive information, distance induction information, upset induction information, temperature sense information etc. can be selected.
Using state judge module 9200, the described state parameter information being configured to obtain according to described state parameter information acquisition module 9100 judges whether described earphone is not in and wears using state;
Because state parameter information is in the disclosed embodiments the state parameter information that can reflect earphone using state, therefore, the using state of earphone can be judged according to the state parameter information obtained in step S100.Such as, by the state parameter information of acquisition and pre-conditionedly to compare (pre-conditioned be not in condition when wearing using state for earphone), if the state parameter information obtained meets pre-conditioned, then judging that earphone is not in wears using state; If the state parameter information obtained does not meet pre-conditioned, then judge that earphone is in and wear using state.
Signal output control module 9300, be configured to when described using state judge module 9200 judge described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
In the disclosed embodiments, control that described terminal stops can playing for the media player pause on control terminal to described earphone output audio signal, the quiet or audio signal transmission wire road between disconnected end and earphone of media player on control terminal, the disclosure does not limit this, but its effect reached is earphone no longer received audio signal, earphone suspends to be play.That is, in the disclosed embodiments, when judge earphone be not in wear using state time, can automatically control earphone suspend play, user need not perform again other operation, easy to use.
In the disclosure one embodiment, as shown in Figure 10, the state parameter information acquisition module 9100 in Fig. 9, comprising:
Audible signal reception submodule 9101, is configured to receive the voice signal that the microphone in described terminal or on earphone collects when described earphone is play;
First state parameter information extracts submodule 9102, is configured to extract the state parameter information of frequency as described earphone of the described voice signal that described audible signal reception submodule 9101 receives.
Under normal circumstances, the environment not absolute squelch that user is residing when using earphone, ambient noise (musical sound etc. as in vehicle whistle sound, television acoustics sound, bar) can cause certain interference to the voice signal of microphone collection.If judge that user takes earphone when microphone collects outside noise, obviously can cause erroneous judgement, affect Consumer's Experience.Therefore, also need to distinguish that this voice signal is voice signal or the outside noise of earphone broadcasting after microphone collects voice signal.
In the disclosed embodiments, first state parameter information extracts the state parameter information of frequency as earphone that submodule 9102 is configured to extract voice signal, and then differentiation microphone collects voice signal or outside noise that voice signal is earphone broadcasting, gets rid of the interference of outside noise.
In the disclosure one embodiment, as shown in figure 11, on basis embodiment illustrated in fig. 10, the using state judge module 9200 in Fig. 9 also comprises:
First frequency obtains submodule 9201, is configured to the frequency of the audio signal obtaining described terminal plays;
First matching judgment submodule 9202, is configured to judge that described first frequency obtains the frequency that the frequency of the described audio signal that submodule 9201 obtains and described first state parameter information extract the described voice signal that submodule 9102 extracts and whether matches;
First using state determination submodule 9203, is configured to, when described first matching judgment submodule 9202 judges that the frequency of described audio signal and the frequency of described voice signal match, determine that described earphone is not in and wear using state.
In the disclosed embodiments, first state parameter information extracts submodule 9102 and is configured to extract the frequency of described voice signal as state parameter information, first using state determination submodule 9203 is configured to when the first matching judgment submodule 9202 judges that the frequency of audio signal and the frequency of voice signal match, determine that earphone is not in and wear using state, avoid ambient noise interference and the erroneous judgement that causes, improve the accuracy of judgement.
In the disclosure one embodiment, as shown in figure 12, the state parameter information acquisition module 9100 in Fig. 9, comprising:
Audible signal reception submodule 9101, is configured to receive the voice signal that the microphone in described terminal or on earphone collects when described earphone is play;
First state parameter information extracts submodule 9102, is configured to extract the state parameter information of frequency as described earphone of the described voice signal that described audible signal reception submodule 9101 receives;
Second state parameter information extracts submodule 9111, is configured to extract the state parameter information of amplitude as described earphone of the described voice signal that described audible signal reception submodule 9101 receives.
In the disclosure one embodiment, on basis embodiment illustrated in fig. 12, as shown in figure 13, the using state judge module 9200 in Fig. 9 comprises:
Second frequency obtains submodule 9211, is configured to the frequency of the audio signal obtaining described terminal plays;
Second matching judgment submodule 9212, is configured to judge that described second frequency obtains the frequency that the frequency of the described audio signal that submodule 9211 obtains and described first state parameter information extract the described voice signal that submodule 9102 extracts and whether matches;
Amplitude judges submodule 9213, be configured to when described second matching judgment submodule 9212 judges that the frequency of described audio signal and the frequency of described voice signal match, judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted;
Second using state determination submodule 9214, is configured to when described amplitude judges that submodule 9213 judges that the difference of described amplitude is more than or equal to default amplitude threshold, determines that described earphone is not in and wears using state.
That is, in the disclosed embodiments, only have and meet " frequency of audio signal and the frequency of voice signal match " and " amplitude of current extracted voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last voice signal extracted " condition simultaneously, just determine that earphone is not in and wear using state, improve the accuracy that earphone using state is judged.
In the disclosed embodiments, whether be in from audio frequency and amplitude two aspect determination earphones and wear using state, second using state determination submodule 9214 is configured to when the frequency of audio signal and the frequency of voice signal match, and the amplitude of current extracted described voice signal is when being more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted, determine that earphone is not in and wear using state, avoid the sound soundproof effect that is comparatively large or earplug play due to earphone bad and the erroneous judgement that causes, improve the accuracy of judgement.
In the disclosure one embodiment, as shown in figure 14, the state parameter information acquisition module 9100 in Fig. 9, comprising:
Spatial position data obtains submodule 9121, is configured to obtain the spatial position data that gyroscope that described earphone is arranged in two earplugs collects;
Third state parameter information extracts submodule 9122, is configured to obtain angle angle between axis that described spatial position data that submodule 9121 obtains calculates two earplugs on described earphone as described state parameter information according to described spatial position data.
In the disclosure one embodiment, on basis embodiment illustrated in fig. 14, as shown in figure 15, the using state judge module 9200 in Fig. 9, comprising:
Angle judges submodule 9221, is configured to judge whether the angle angle between the axis that described third state parameter information extracts two earplugs on described earphone that submodule 9122 extracts is more than or equal to predetermined angle threshold value;
3rd using state determination submodule 9222, is configured to, when described angle judges that submodule 9221 judges that described angle angle is more than or equal to predetermined angle threshold value, determine that described earphone is not in and wear using state.
In the disclosed embodiments, judge whether earphone is in by the angle angle between the axis of two earplugs on earphone and wear using state, 3rd using state determination submodule 9222 is configured to when angle angle is less than or equal to predetermined angle threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
In the disclosure one embodiment, as shown in figure 16, the state parameter information acquisition module 9100 in Fig. 9 comprises:
Range data obtains submodule 9131, is configured to obtain the range data between two earplugs that range sensor that described earphone is arranged collects;
4th state parameter information extracts submodule 9132, and the described range data being configured to described range data acquisition submodule 9131 to obtain is as described state parameter information.
In the disclosure one embodiment, on basis embodiment illustrated in fig. 16, as shown in figure 17, the using state judge module 9200 in Fig. 9, comprising:
Distance Judgment submodule 9231, is configured to judge whether the described range data that described range data acquisition submodule 9131 obtains is more than or equal to predeterminable range threshold value;
4th using state determination submodule 9232, is configured to, when described Distance Judgment submodule 9231 judges that described range data is more than or equal to predeterminable range threshold value, determine that described earphone is not in and wear using state.
In the disclosed embodiments, whether be in by the Distance Judgment earphone on earphone between two earplugs and wear using state, 4th using state determination submodule 9232 is configured to when range data is less than or equal to predeterminable range threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
In the disclosure one embodiment, as shown in figure 18, the state parameter information acquisition module 9100 in Fig. 9 comprises:
Pressure data obtains submodule 9141, is configured to obtain the pressure data that at least one predeterminated position is arranged described earphone outer covering pressure sensor collects;
5th state parameter information extracts submodule 9142, and the described pressure data being configured to described pressure data acquisition submodule 9141 to obtain is as described state parameter information.
In the disclosure one embodiment, on basis embodiment illustrated in fig. 18, as shown in figure 19, the using state judge module 9200 in Fig. 9, comprising:
Pressure judges submodule 9241, is configured to judge whether the described pressure data that described pressure data acquisition submodule 9141 obtains is more than or equal to default pressure threshold;
5th using state determination submodule 9242, is configured to when described pressure judges that submodule 9241 judges that described pressure data is more than or equal to default pressure threshold, determines that described earphone is not in and wears using state.
In the disclosed embodiments, the pressure data collected by pressure sensor is judged whether earphone is in and wears using state, 5th using state determination submodule 9242 is configured to when pressure data is more than or equal to preset pressure threshold value, determine that earphone is not in and wear using state, and then control terminal stops to earphone output audio signal, realize the automatic control that earphone is play.
Figure 20 is the block diagram of a kind of terminal according to an exemplary embodiment.Such as, terminal 2000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 20, terminal 2000 can comprise following one or more assembly: processing components 2002, memory 2004, power supply module 2006, multimedia groupware 2008, audio-frequency assembly 2010, the interface 2012 of I/O (I/O), sensor cluster 2014, and communications component 2016.
The integrated operation of the usual control terminal 2000 of processing components 2002, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 2002 can comprise one or more processor 2020 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 2002 can comprise one or more module, and what be convenient between processing components 2002 and other assemblies is mutual.Such as, processing components 2002 can comprise multi-media module, mutual with what facilitate between multimedia groupware 2008 and processing components 2002.
Memory 2004 is configured to store various types of data to be supported in the operation of terminal 2000.The example of these data comprises for any application program of operation in terminal 2000 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 2004 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 2006 is terminal 2000 provide electric power.Power supply module 2006 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 2000 and be associated.
Multimedia groupware 2008 is included in the screen providing an output interface between described terminal 2000 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 2008 comprises a front-facing camera and/or post-positioned pick-up head.When terminal 2000 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 2010 is configured to export and/or input audio signal.Such as, audio-frequency assembly 2010 comprises a microphone (MIC), and when terminal 2000 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 2004 further or be sent via communications component 2016.In certain embodiments, audio-frequency assembly 2010 also comprises a loud speaker, for output audio signal.
I/O interface 2012 is for providing interface between processing components 2002 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 2014 comprises one or more transducer, for providing the state estimation of various aspects for terminal 2000.Such as, sensor cluster 2014 can detect the opening/closing state of terminal 2000, the relative positioning of assembly, such as described assembly is display and the keypad of terminal 2000, the position of all right sense terminals 2000 of sensor cluster 2014 or terminal 2000 assemblies changes, the presence or absence that user contacts with terminal 2000, the variations in temperature of terminal 2000 orientation or acceleration/deceleration and terminal 2000.Sensor cluster 2014 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 2014 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 2014 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 2016 is configured to the communication being convenient to wired or wireless mode between terminal 2000 and other equipment.Terminal 2000 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 2016 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 2016 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal 2000 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 2004 of instruction, above-mentioned instruction can perform said method by the processor 2020 of terminal 2000.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make terminal can perform a kind of earphone control method for playing back, described method comprises:
Obtain the state parameter information of earphone when playing be connected with described terminal;
Judge whether described earphone is not according to described state parameter information and wear using state;
When described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
The above is only embodiment of the present disclosure, those skilled in the art is understood or realizes the disclosure.To be apparent to one skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from spirit or scope of the present disclosure, can realize in other embodiments.Therefore, the disclosure can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
The above is only embodiment of the present disclosure; it should be pointed out that for those skilled in the art, under the prerequisite not departing from disclosure principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection range of the present disclosure.

Claims (23)

1. an earphone control method for playing back, is characterized in that, is applied to terminal, comprising:
Obtain the state parameter information of earphone when playing be connected with described terminal;
Judge whether described earphone is not according to described state parameter information and wear using state;
When described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
2. earphone control method for playing back according to claim 1, is characterized in that, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Receive the voice signal that the microphone in described terminal or on earphone collects when described earphone is play;
Extract the state parameter information of frequency as described earphone of described voice signal.
3. earphone control method for playing back according to claim 2, is characterized in that, describedly judges whether described earphone is not according to described state parameter information and wears using state, comprising:
Obtain the frequency of the audio signal of described terminal plays;
Judge whether the frequency of described audio signal and the frequency of described voice signal match;
When the frequency of described audio signal and the frequency of described voice signal match, determine that described earphone is not in and wear using state.
4. earphone control method for playing back according to claim 2, is characterized in that, the state parameter information of earphone when playing that described acquisition is connected with described terminal, also comprises:
Extract the state parameter information of amplitude as described earphone of described voice signal.
5. earphone control method for playing back according to claim 4, is characterized in that, describedly judges whether described earphone is not according to described state parameter information and wears using state, comprising:
Obtain the frequency of the audio signal of described terminal plays;
Judge whether the frequency of described audio signal and the frequency of described voice signal match;
When the frequency of described audio signal and the frequency of described voice signal match, judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted;
When the difference of described amplitude is more than or equal to default amplitude threshold, determines that described earphone is not in and wear using state.
6. earphone control method for playing back according to claim 1, is characterized in that, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Obtain the spatial position data that gyroscope that described earphone is arranged in two earplugs collects;
Angle angle between the axis calculating two earplugs on described earphone according to described spatial position data is as described state parameter information.
7. earphone control method for playing back according to claim 6, is characterized in that, describedly judges whether described earphone is not according to described state parameter information and wears using state, comprising:
Whether the angle angle between the axis judging two earplugs on described earphone is less than or equal to predetermined angle threshold value;
When described angle angle is less than or equal to predetermined angle threshold value, determines that described earphone is not in and wear using state.
8. earphone control method for playing back according to claim 1, is characterized in that, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Obtain the range data between two earplugs that range sensor that described earphone is arranged collects;
Using described range data as described state parameter information.
9. earphone control method for playing back according to claim 8, is characterized in that, describedly judges whether described earphone is not according to described state parameter information and wears using state, comprising:
Judge whether described range data is less than or equal to predeterminable range threshold value;
When described range data is less than or equal to predeterminable range threshold value, determines that described earphone is not in and wear using state.
10. earphone control method for playing back according to claim 1, is characterized in that, the state parameter information of earphone when playing that described acquisition is connected with described terminal, comprising:
Obtain the pressure data that at least one predeterminated position is arranged described earphone outer covering pressure sensor collects;
Using described pressure data as described state parameter information.
11. earphone control method for playing back according to claim 10, is characterized in that, describedly judge whether described earphone is not according to described state parameter information and wear using state, comprising:
Judge whether described pressure data is more than or equal to default pressure threshold;
When described pressure data is more than or equal to default pressure threshold, determines that described earphone is not in and wear using state.
12. 1 kinds of earphone broadcast control devices, is characterized in that, be applied to terminal, comprising:
State parameter information acquisition module, for obtaining the state parameter information of earphone when playing be connected with described terminal;
Using state judge module, the described state parameter information for obtaining according to described state parameter information acquisition module judges whether described earphone is not in and wears using state;
Signal output control module, for judge when described using state judge module described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
13. earphone broadcast control devices according to claim 12, is characterized in that, described state parameter information acquisition module, comprising:
Audible signal reception submodule, the voice signal that the microphone for receiving in described terminal or on earphone collects when described earphone is play;
First state parameter information extracts submodule, for extracting the state parameter information of frequency as described earphone of the described voice signal that described audible signal reception submodule receives.
14. earphone broadcast control devices according to claim 13, is characterized in that, described using state judge module, comprising:
First frequency obtains submodule, for obtaining the frequency of the audio signal of described terminal plays;
First matching judgment submodule, whether the frequency that frequency and described first state parameter information for judging the described audio signal that described first frequency acquisition submodule obtains extract the described voice signal that submodule extracts matches;
First using state determination submodule, for when described first matching judgment submodule judges that the frequency of described audio signal and the frequency of described voice signal match, determines that described earphone is not in and wears using state.
15. earphone broadcast control devices according to claim 13, is characterized in that, described state parameter information acquisition module, also comprises:
Second state parameter information extracts submodule, for extracting the state parameter information of amplitude as described earphone of the described voice signal that described audible signal reception submodule receives.
16. earphone broadcast control devices according to claim 15, is characterized in that, described using state judge module, comprising:
Second frequency obtains submodule, for obtaining the frequency of the audio signal of described terminal plays;
Second matching judgment submodule, whether the frequency that frequency and described first state parameter information for judging the described audio signal that described second frequency acquisition submodule obtains extract the described voice signal that submodule extracts matches;
Amplitude judges submodule, for when described second matching judgment submodule judges that the frequency of described audio signal and the frequency of described voice signal match, judge whether the amplitude of current extracted described voice signal is more than or equal to default amplitude threshold with the difference of the amplitude of the last described voice signal extracted;
Second using state determination submodule, for when described amplitude judges that submodule judges that the difference of described amplitude is more than or equal to default amplitude threshold, determines that described earphone is not in and wears using state.
17. earphone broadcast control devices according to claim 12, is characterized in that, described state parameter information acquisition module, comprising:
Spatial position data obtains submodule, for obtaining the spatial position data that gyroscope that described earphone is arranged in two earplugs collects;
Third state parameter information extracts submodule, and the angle angle between the axis calculating two earplugs on described earphone according to the described spatial position data of described spatial position data acquisition submodule acquisition is as described state parameter information.
18. earphone broadcast control devices according to claim 17, is characterized in that, described using state judge module, comprising:
Angle judges submodule, and whether the angle angle between the axis judging two earplugs on the described earphone that described third state parameter information extraction submodule extracts is less than or equal to predetermined angle threshold value;
3rd using state determination submodule, during for judging that submodule judges that described angle angle is less than or equal to predetermined angle threshold value when described angle, determining that described earphone is not in and wearing using state.
19. earphone broadcast control devices according to claim 12, is characterized in that, described state parameter information acquisition module, comprising:
Range data obtains submodule, for obtaining the range data between two earplugs that range sensor that described earphone is arranged collects;
4th state parameter information extracts submodule, for described range data being obtained the described range data of submodule acquisition as described state parameter information.
20. earphone broadcast control devices according to claim 19, is characterized in that, described using state judge module, comprising:
Distance Judgment submodule, for judging whether the described range data that described range data acquisition submodule obtains is less than or equal to predeterminable range threshold value;
4th using state determination submodule, for when described Distance Judgment submodule judges that described range data is less than or equal to predeterminable range threshold value, determines that described earphone is not in and wears using state.
21. earphone broadcast control devices according to claim 12, is characterized in that, described state parameter information acquisition module, comprising:
Pressure data obtains submodule, for obtaining the pressure data that at least one predeterminated position is arranged described earphone outer covering pressure sensor collects;
5th state parameter information extracts submodule, for described pressure data being obtained the described pressure data of submodule acquisition as described state parameter information.
22. earphone broadcast control devices according to claim 21, is characterized in that, described using state judge module, comprising:
Pressure judges submodule, for judging whether the described pressure data that described pressure data acquisition submodule obtains is more than or equal to default pressure threshold;
5th using state determination submodule, for when described pressure judges that submodule judges that described pressure data is more than or equal to default pressure threshold, determines that described earphone is not in and wears using state.
23. 1 kinds of terminals, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction,
Wherein, described processor is configured to:
Obtain the state parameter information of earphone when playing be connected with described terminal;
Judge whether described earphone is not according to described state parameter information and wear using state;
When described earphone be not in wear using state time, control described terminal stop to described earphone output audio signal.
CN201510917231.3A 2015-12-10 2015-12-10 Earphone control method for playing back, device and terminal Active CN105451111B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510917231.3A CN105451111B (en) 2015-12-10 2015-12-10 Earphone control method for playing back, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510917231.3A CN105451111B (en) 2015-12-10 2015-12-10 Earphone control method for playing back, device and terminal

Publications (2)

Publication Number Publication Date
CN105451111A true CN105451111A (en) 2016-03-30
CN105451111B CN105451111B (en) 2019-03-19

Family

ID=55560824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510917231.3A Active CN105451111B (en) 2015-12-10 2015-12-10 Earphone control method for playing back, device and terminal

Country Status (1)

Country Link
CN (1) CN105451111B (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293601A (en) * 2016-08-09 2017-01-04 乐视控股(北京)有限公司 A kind of audio frequency playing method and device
CN106982402A (en) * 2017-05-19 2017-07-25 北京小米移动软件有限公司 Control method, device and earphone that earphone is played
CN107122161A (en) * 2017-04-27 2017-09-01 维沃移动通信有限公司 The control method for playing back and terminal of a kind of voice data
WO2018086619A1 (en) * 2016-11-14 2018-05-17 中兴通讯股份有限公司 Method and device for controlling media file
CN108174319A (en) * 2018-01-11 2018-06-15 中国地质大学(武汉) A kind of earphone intelligent controlling device based on MEMS pressure sensor
CN108304332A (en) * 2017-01-13 2018-07-20 飞捷科技股份有限公司 The method of electronic device and its signal switching apparatus and active switching signal
CN108668011A (en) * 2018-03-30 2018-10-16 联想(北京)有限公司 Output method, output equipment and electronic equipment
CN109040448A (en) * 2018-08-03 2018-12-18 联想(北京)有限公司 A kind of control method and electronic equipment
CN109068226A (en) * 2018-09-29 2018-12-21 安克创新科技股份有限公司 Earphone and its control method
CN109168098A (en) * 2018-08-17 2019-01-08 北海飞九天电子科技有限公司 A kind of Bluetooth of mobile phone earphone leaves automatically controls pause opening system and its control method in one's ear
CN109196879A (en) * 2016-05-27 2019-01-11 布佳通有限公司 Determine that the earphone at the ear of user exists
CN109379653A (en) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
CN109413556A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Equipment localization method, device, Headphone device and electronic equipment
CN110099322A (en) * 2019-05-23 2019-08-06 歌尔科技有限公司 A kind of detection method and device of earphone wearing state
CN110161575A (en) * 2019-05-22 2019-08-23 广州杰赛科技股份有限公司 A kind of intelligent wearable device disassembly status detection method, device and storage medium
WO2020015301A1 (en) * 2018-07-18 2020-01-23 安克创新科技股份有限公司 Noise reducing earphone
WO2020042155A1 (en) * 2018-08-29 2020-03-05 北京轩辕联科技有限公司 Method and device for playing audio streams separately in vehicle
WO2020087749A1 (en) * 2018-10-29 2020-05-07 歌尔股份有限公司 Earphone interaction control method and apparatus, and earphone and storage medium
CN111866691A (en) * 2020-06-10 2020-10-30 歌尔科技有限公司 State detection method and device of wireless earphone and earphone
CN112013949A (en) * 2020-08-06 2020-12-01 歌尔科技有限公司 Earphone wearing state determining method and device and earphone
US11178478B2 (en) 2014-05-20 2021-11-16 Mobile Physics Ltd. Determining a temperature value by analyzing audio
CN114567840A (en) * 2020-11-27 2022-05-31 北京小米移动软件有限公司 Audio output method and device, mobile terminal and storage medium
CN115119098A (en) * 2022-08-30 2022-09-27 荣耀终端有限公司 Audio playing control method, TWS earphone and storage medium
WO2023092789A1 (en) * 2021-11-26 2023-06-01 歌尔科技有限公司 Method and apparatus for detecting wearing state of tws earphones, and device and medium
WO2023124226A1 (en) * 2021-12-31 2023-07-06 荣耀终端有限公司 Movement reminder method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102293012A (en) * 2009-01-23 2011-12-21 索尼爱立信移动通讯有限公司 Acoustic in-ear detection for earpiece
CN102638742A (en) * 2011-02-14 2012-08-15 索尼公司 Sound signal output apparatus and sound signal output method
CN103051997A (en) * 2012-12-26 2013-04-17 广东欧珀移动通信有限公司 Earphone, and terminal equipment and method for controlling audio presentation through earphone
CN103581796A (en) * 2012-08-02 2014-02-12 索尼公司 Headphone device, wearing state detection device, and wearing state detection method
US20140172421A1 (en) * 2011-08-10 2014-06-19 Goertek Inc. Speech enhancing method, device for communication earphone and noise reducing communication earphone
CN103974158A (en) * 2013-02-04 2014-08-06 联想(北京)有限公司 Audio output device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102293012A (en) * 2009-01-23 2011-12-21 索尼爱立信移动通讯有限公司 Acoustic in-ear detection for earpiece
CN102638742A (en) * 2011-02-14 2012-08-15 索尼公司 Sound signal output apparatus and sound signal output method
US20140172421A1 (en) * 2011-08-10 2014-06-19 Goertek Inc. Speech enhancing method, device for communication earphone and noise reducing communication earphone
CN103581796A (en) * 2012-08-02 2014-02-12 索尼公司 Headphone device, wearing state detection device, and wearing state detection method
CN103051997A (en) * 2012-12-26 2013-04-17 广东欧珀移动通信有限公司 Earphone, and terminal equipment and method for controlling audio presentation through earphone
CN103974158A (en) * 2013-02-04 2014-08-06 联想(北京)有限公司 Audio output device

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11178478B2 (en) 2014-05-20 2021-11-16 Mobile Physics Ltd. Determining a temperature value by analyzing audio
US10659867B2 (en) 2016-05-27 2020-05-19 Bugatone Ltd. Identifying an acoustic signal for a user based on a feature of an aural signal
CN109196879A (en) * 2016-05-27 2019-01-11 布佳通有限公司 Determine that the earphone at the ear of user exists
CN106293601A (en) * 2016-08-09 2017-01-04 乐视控股(北京)有限公司 A kind of audio frequency playing method and device
WO2018086619A1 (en) * 2016-11-14 2018-05-17 中兴通讯股份有限公司 Method and device for controlling media file
CN108304332A (en) * 2017-01-13 2018-07-20 飞捷科技股份有限公司 The method of electronic device and its signal switching apparatus and active switching signal
CN107122161A (en) * 2017-04-27 2017-09-01 维沃移动通信有限公司 The control method for playing back and terminal of a kind of voice data
CN106982402A (en) * 2017-05-19 2017-07-25 北京小米移动软件有限公司 Control method, device and earphone that earphone is played
CN108174319A (en) * 2018-01-11 2018-06-15 中国地质大学(武汉) A kind of earphone intelligent controlling device based on MEMS pressure sensor
CN108668011A (en) * 2018-03-30 2018-10-16 联想(北京)有限公司 Output method, output equipment and electronic equipment
WO2020015301A1 (en) * 2018-07-18 2020-01-23 安克创新科技股份有限公司 Noise reducing earphone
CN109040448A (en) * 2018-08-03 2018-12-18 联想(北京)有限公司 A kind of control method and electronic equipment
CN109168098A (en) * 2018-08-17 2019-01-08 北海飞九天电子科技有限公司 A kind of Bluetooth of mobile phone earphone leaves automatically controls pause opening system and its control method in one's ear
WO2020042155A1 (en) * 2018-08-29 2020-03-05 北京轩辕联科技有限公司 Method and device for playing audio streams separately in vehicle
CN109068226A (en) * 2018-09-29 2018-12-21 安克创新科技股份有限公司 Earphone and its control method
CN109413556A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Equipment localization method, device, Headphone device and electronic equipment
CN109379653A (en) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 Audio frequency transmission method, device, electronic equipment and storage medium
WO2020063017A1 (en) * 2018-09-30 2020-04-02 Oppo广东移动通信有限公司 Audio transmission method and device, electronic apparatus, and storage medium
US11558687B2 (en) 2018-10-29 2023-01-17 Goertek Inc. Interactive control method and device of earphones, earphone and storage medium
WO2020087749A1 (en) * 2018-10-29 2020-05-07 歌尔股份有限公司 Earphone interaction control method and apparatus, and earphone and storage medium
CN110161575A (en) * 2019-05-22 2019-08-23 广州杰赛科技股份有限公司 A kind of intelligent wearable device disassembly status detection method, device and storage medium
CN110099322A (en) * 2019-05-23 2019-08-06 歌尔科技有限公司 A kind of detection method and device of earphone wearing state
CN111866691A (en) * 2020-06-10 2020-10-30 歌尔科技有限公司 State detection method and device of wireless earphone and earphone
CN112013949A (en) * 2020-08-06 2020-12-01 歌尔科技有限公司 Earphone wearing state determining method and device and earphone
CN114567840A (en) * 2020-11-27 2022-05-31 北京小米移动软件有限公司 Audio output method and device, mobile terminal and storage medium
CN114567840B (en) * 2020-11-27 2024-02-06 北京小米移动软件有限公司 Audio output method and device, mobile terminal and storage medium
WO2023092789A1 (en) * 2021-11-26 2023-06-01 歌尔科技有限公司 Method and apparatus for detecting wearing state of tws earphones, and device and medium
WO2023124226A1 (en) * 2021-12-31 2023-07-06 荣耀终端有限公司 Movement reminder method and electronic device
CN115119098A (en) * 2022-08-30 2022-09-27 荣耀终端有限公司 Audio playing control method, TWS earphone and storage medium
CN115119098B (en) * 2022-08-30 2022-12-27 荣耀终端有限公司 Audio playing control method, TWS earphone and storage medium

Also Published As

Publication number Publication date
CN105451111B (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN105451111A (en) Earphone play control method and apparatus and terminal
CN105262452A (en) Method and apparatus for adjusting volume, and terminal
US20110206215A1 (en) Personal listening device having input applied to the housing to provide a desired function and method
CN107493500A (en) Multimedia resource player method and device
CN105205955A (en) Method and device for sending out warning signal
CN106331338A (en) Volume adjusting method and device
CN104318934A (en) Method, terminal, wearable device and play device for closing multimedia file
CN106445453A (en) Method and device for switching audio output paths
CN105406828A (en) Sound equipment adjustment method and device
CN103986999A (en) Method, device and terminal equipment for detecting earphone impedance
CN105704317A (en) Antenna parameter adjustment method and apparatus, and electronic device
CN108549529A (en) Control the method and device of audio output
US10582290B2 (en) Earpiece with tap functionality
CN104935729B (en) Audio-frequency inputting method and device
CN106454644A (en) Audio playing method and device
CN105138319A (en) Event reminding method and apparatus
CN104378715A (en) Device and method for lowering earphone POP sound
CN106888327B (en) Voice playing method and device
CN105263044A (en) Method and device for adjusting smart home equipment
CN104394137A (en) Voice call reminding method and device
CN106990812A (en) USB connector and terminal device
CN106453838B (en) Volume adjusting method and device
CN105554631B (en) Audio switching method, device and electronic equipment
CN106126058A (en) Based reminding method and device
CN104112459A (en) Method and apparatus for playing audio data

Legal Events

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