CN103137158A - Method controlling audio playing and terminal - Google Patents
Method controlling audio playing and terminal Download PDFInfo
- Publication number
- CN103137158A CN103137158A CN2013100318310A CN201310031831A CN103137158A CN 103137158 A CN103137158 A CN 103137158A CN 2013100318310 A CN2013100318310 A CN 2013100318310A CN 201310031831 A CN201310031831 A CN 201310031831A CN 103137158 A CN103137158 A CN 103137158A
- Authority
- CN
- China
- Prior art keywords
- earphone
- state
- user
- sensor
- light quantity
- 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.)
- Pending
Links
Images
Abstract
The invention discloses a method controlling audio playing and a terminal. According to the method controlling the audio playing, when the terminal passes through audio played in a pair of earphones, a user state is set according to sensors of the earphones, the user state is a user unavailable state or a user receiving state; when the user state is the user unavailable state, the playing of the audio is stopped; and when the user state is in the user receiving state, the playing of the audio is controlled to be continued. By means of the method controlling the audio playing and the terminal, the paying or stopping of the audio is controlled according to the user state, the intelligence of the terminal is improved, and the terminal is enabled to be more humanized.
Description
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of method and terminal that audio frequency is play of controlling.
Background technology
Along with constantly exploitation and perfect of mobile communication technology, the terminals such as mobile phone, panel computer have become a part indispensable in people's daily life, and people not only can utilize terminal to carry out communication, can also carry out file transfer, shooting etc.
The interface of configuration audio frequency output is generally arranged in existing terminal, and the user can listen to the audio frequency such as music, broadcasting by the access earphone, not only can obtain high-quality tonequality by earphone, also can not have influence on other people in the public arena of privacy is arranged.But when user's listening to audio, if the user takes off earphone when leaving because of thing, need manually audio player to be closed, affected user's experience, and if the user forget and turn off audio frequency, the audio frequency in terminal will be until play and finish just to stop so, or the electric weight that always is played to terminal uses until exhausted, cause terminal power to consume in vain, brought inconvenience to the user, reduced the intelligent of terminal.
Summary of the invention
The embodiment of the present invention provides a kind of method and terminal that audio frequency is play of controlling, and can control audio frequency according to User Status and plays or stop.
The embodiment of the present invention provides a kind of method that audio frequency is play of controlling, and comprising:
When terminal is passed through the earphone audio plays, utilize the sensor of earphone to obtain User Status, described User Status leaves state for the user or the user listens to state;
If User Status is left state for the user, control stops audio plays;
If User Status is listened to state for the user, control and continue audio plays.
Correspondingly, the embodiment of the present invention also provides a kind of terminal, comprising:
Acquisition module is used for utilizing the sensor of earphone to obtain User Status when terminal is passed through the earphone audio plays, and described User Status leaves state for the user or the user listens to state;
The first control module is left state if be used for User Status for the user, controls to stop audio plays;
The second control module is listened to state if be used for User Status for the user, controls and continues audio plays.
In the embodiment of the present invention, can determine the user for leaving state according to sensor, perhaps for listening to state, thus the audio player plays audio frequency in control terminal or automatically stop.When the user took off earphone and leaves, terminal can stop according to the sensor of earphone audio frequency output, has facilitated user's operation, has promoted user's experience, has improved the intelligent of terminal, makes terminal more possess the characteristics of hommization.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of the required use of embodiment, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of controlling method first embodiment of audio frequency broadcast of the present invention;
Fig. 2 is a kind of schematic flow sheet of controlling method second embodiment of audio frequency broadcast of the present invention;
Fig. 3 is a kind of schematic flow sheet of controlling method the 3rd embodiment of audio frequency broadcast of the present invention;
Fig. 4 is a kind of schematic flow sheet of controlling method the 4th embodiment of audio frequency broadcast of the present invention;
Fig. 5 is the structural representation of a kind of terminal of providing of the embodiment of the present invention;
Fig. 6 is a kind of structural representation of the acquisition module of the embodiment of the present invention;
Fig. 7 is the another kind of structural representation of the acquisition module of the embodiment of the present invention;
Fig. 8 is another structural representation of the acquisition module of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
In embodiments of the present invention, terminal is obtained user's state by the sensor of earphone, and control the audio player plays audio frequency according to user's state, described terminal can possess for mobile phone, panel computer etc. the terminal of earphone access port, and described user's state can leave state or the user listens to state for the user;
The sensor type of described earphone can be range sensor and/or optical sensor, described range sensor and/or optical sensor can be placed in the middle of the earplug part of described earphone, and the earplug of described earphone partly can be designed as circle, when described earphone is removed when being placed on surface level, the direction of measurement that can guarantee described sensor is parallel with surface level, the state after making the sensor of described earphone earphone accurately to be detected to take off.
See also Fig. 1, for the embodiment of the present invention provides a kind of schematic flow sheet of controlling method first embodiment of audio frequency broadcast.As shown in Figure 1, said method comprising the steps of of the embodiment of the present invention:
S101 when terminal is passed through the earphone audio plays, utilizes the sensor of earphone to obtain User Status, and described User Status leaves state for the user or the user listens to state;
Concrete, described terminal utilizes the range sensor of earphone and/or optical sensor to obtain the current state of user by the earphone output audio.
S102, if User Status is left state for the user, control stops audio plays;
Concrete, if the user takes off earphone, terminal for leaving state, is preferably closed audio player by the sensor judgement user of earphone, stops audio frequency output.
If the S103 User Status is listened to state for the user, control and continue audio plays;
Concrete, if the user still hangs on earphone on ear, terminal, is controlled and is continued audio plays for listening to state by the sensor judgement user of earphone.
In the embodiment of the present invention, can determine the user for leaving state according to range sensor and/or optical sensor, perhaps for listening to state, thus the audio player plays audio frequency in control terminal or automatically stop.When the user took off earphone and leaves, terminal can stop according to the sensor of earphone audio frequency output, has facilitated user's operation, has promoted user's experience, has improved the intelligent of terminal, makes terminal more possess the characteristics of hommization.
See also Fig. 2, for the embodiment of the present invention provides a kind of schematic flow sheet of controlling method second embodiment of audio frequency broadcast.As shown in Figure 2, the described method of the embodiment of the present invention comprises the steps:
S201 when the earphone access being detected, loads the driver of the sensor of earphone, and described sensor type comprises in range sensor and optical sensor at least a;
Concrete, when the sensor of described earphone is range sensor, if when the earphone access being detected, the preferred driver that automatically loads the range sensor of earphone.
S202 when arriving the default time interval, obtains the state of earphone by range sensor;
Concrete, when described terminal was passed through the earphone output audio, the range sensor of described earphone can obtain at interval of one equal period the state of described earphone.Wherein, there is the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is the use state; There is not the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is state undetermined.Whether for example, detected a user's ear at interval of one minute and be close to described earphone, if so, setting described earphone is the use state; If not, setting described earphone is state undetermined.
S203, the state that judgement gets described earphone continuously are whether the number of times of state undetermined reaches the frequency threshold value that presets;
Concrete, preset frequency threshold value, if the number of times that the state of the earphone that described range sensor obtains is state undetermined has reached described frequency threshold value, change execution in step S204 in the continuous time interval; Otherwise, change execution in step S205 over to.For example, the set point number threshold value was three times, and described range sensor obtained the state of an earphone every one minute, if the state of the continuous earphone that obtains for three times is state undetermined, and execution in step S204; Otherwise, execution in step S205.
S204 determines that User Status is that the user leaves state, controls to stop audio plays;
Concrete, if being the number of times of state undetermined, the state of the earphone that described range sensor obtains reached frequency threshold value in the continuous time interval, for example, the set point number threshold value is three times, described range sensor obtained the state of an earphone every one minute, if the state of the continuous earphone that obtains for three times is state undetermined, determine that user's state is for leaving state, preferably close audio player, stop audio frequency output.
S205 determines that User Status is that the user listens to state, controls and continues audio plays;
Concrete, if the number of times that the state of the earphone that described range sensor obtained in the continuous time interval is state undetermined has not reached frequency threshold value, for example, the set point number threshold value is three times, described range sensor obtained the state of an earphone every one minute, if the state of the earphone that obtains continuously be the number of times of state undetermined less than three times, determine that user's state for listening to state, controls the continuation audio plays.
In the embodiment of the present invention, judge according to the range sensor of earphone the state of earphone is whether the number of times of state undetermined reaches frequency threshold value and can determine that the user is for leaving state within the continuous time interval, perhaps for listening to state, thereby the audio player plays audio frequency in control terminal or automatically stop, when the user takes off earphone and leaves, terminal can stop audio frequency output automatically, saved the loss of power of terminal, facilitated user's operation, promoted user's experience, improved the intelligent of terminal, made terminal more possess the characteristics of hommization.
See also Fig. 3, for the embodiment of the present invention provides a kind of schematic flow sheet of controlling method the 3rd embodiment of audio frequency broadcast.As shown in Figure 3, the described method of the embodiment of the present invention comprises the steps:
S301 when the earphone access being detected, loads the driver of the sensor of earphone, and described sensor type comprises in range sensor and optical sensor at least a;
Concrete, when the sensor of described earphone is optical sensor, if when the earphone access being detected, the preferred driver that automatically loads the optical sensor of earphone.
S302 when arriving the default time interval, obtains the logical light quantity of earphone by optical sensor;
Concrete, when described terminal was passed through the earphone output audio, the optical sensor of described earphone can obtain at interval of one equal period the logical light quantity of earphone.For example: at interval of the logical light quantity of obtaining an earphone in one minute.
S303, whether the logical light quantity of the described earphone that judgement gets continuously reaches greater than the number of times of default logical light quantity the frequency threshold value that presets;
Concrete, preset frequency threshold value, if the logical light quantity of the earphone that described optical sensor obtains has reached described frequency threshold value greater than the default number of times that leads to light quantity, change execution in step S304 in the continuous time interval; Otherwise, change execution in step S305 over to.For example, the set point number threshold value was three times, and described optical sensor obtained the logical light quantity of an earphone every one minute, if the logical light quantity of the continuous earphone that obtains for three times is all greater than default logical light quantity, execution in step S304; Otherwise, execution in step S305.
S304 determines that User Status is that the user leaves state, controls to stop audio plays;
Concrete, if the logical light quantity of the earphone that described optical sensor obtained in the continuous time interval has reached frequency threshold value greater than the number of times of default logical light quantity, for example, the set point number threshold value is three times, described optical sensor obtained the logical light quantity of an earphone every one minute, if the logical light quantity of the continuous earphone that obtains for three times all greater than default logical light quantity, determines that user's state is for leaving state, preferably close audio player, stop audio frequency output.
S305 determines that User Status is that the user listens to state, controls and continues audio plays;
Concrete, if the logical light quantity of the earphone that described optical sensor obtained in the continuous time interval does not reach frequency threshold value greater than the number of times of default logical light quantity, for example, the set point number threshold value is three times, described optical sensor obtained the logical light quantity of an earphone every one minute, if the logical light quantity of the earphone that obtains continuously less than three times, determines that user's state for listening to state, controls the continuation audio plays greater than the number of times of default logical light quantity.
In the embodiment of the present invention, judge according to the optical sensor of earphone whether the logical light quantity of earphone can determine that greater than default logical light quantity the user is for leaving state within the continuous time interval, perhaps for listening to state, thereby the audio player plays audio frequency in control terminal or automatically stop, when the user takes off earphone and leaves, terminal can stop audio frequency output automatically, saved the loss of power of terminal, facilitated user's operation, promoted user's experience, improved the intelligent of terminal, made terminal more possess the characteristics of hommization.
See also Fig. 4, for the embodiment of the present invention provides a kind of schematic flow sheet of controlling method the 4th embodiment of audio frequency broadcast.As shown in Figure 4, the described method of the embodiment of the present invention comprises the steps:
S401 when the earphone access being detected, loads the driver of the sensor of earphone, and described sensor type comprises in range sensor and optical sensor at least a;
Concrete, when the sensor of described earphone is range sensor and optical sensor, if when the earphone access being detected, preferred range sensor and the optical sensor that automatically loads earphone.
S402 when arriving the default time interval, obtains the state of earphone, and obtains the logical light quantity of described earphone by optical sensor by range sensor;
Concrete, when described terminal was passed through the earphone output audio, the sensor of described earphone can obtain at interval of one equal period the logical light quantity of state and the earphone of described earphone.For example, at interval of the logical light quantity of the state that obtained an earphone in a minute and earphone;
Wherein, there is the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is the use state; There is not the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is state undetermined.
S403, the state of the described earphone that judgement gets continuously is the number of times of state undetermined, and whether the described logical light quantity by earphone that gets continuously reaches the described frequency threshold value that presets greater than the default number of times that leads to light quantity;
Concrete, preset frequency threshold value, if being the number of times of state undetermined, the state of the earphone that described range sensor gets continuously reached described frequency threshold value, and the logical light quantity of the earphone that described optical sensor gets has continuously reached described frequency threshold value greater than the number of times of default logical light quantity, changes execution in step S404 over to; Otherwise, change execution in step S405 over to.
For example, the set point number threshold value is three times, described range sensor obtained the state of an earphone every one minute, described optical sensor obtained the logical light quantity of an earphone every one minute, if the state of the continuous earphone that obtains for three times is state undetermined, and the logical light quantity of the earphone that judgement was obtained in this three periods time intervals is all greater than default logical light quantity, execution in step S304; Otherwise, execution in step S305.
S404 determines that User Status is that the user leaves state, controls to stop audio plays;
concrete, if being the number of times of state undetermined, the state of the earphone that described range sensor gets continuously reached frequency threshold value, and the logical light quantity of the earphone that described optical sensor gets has continuously reached described frequency threshold value greater than the number of times of default logical light quantity, for example, the set point number threshold value is three times, described range sensor obtained the state of an earphone every one minute, described optical sensor obtained the logical light quantity of an earphone every one minute simultaneously, if the state of the continuous earphone that obtains for three times is state undetermined, and the logical light quantity of the earphone that obtains is all greater than default logical light quantity, determine that user's state is for leaving state, preferably close audio player, stop audio frequency output.
S405 determines that User Status is that the user listens to state, controls and continues audio plays;
concrete, if the logical light quantity that the state of the earphone that described range sensor obtained in the continuous time interval is the number of times of state undetermined and/or the earphone that described optical sensor obtained in this continuous time interval does not reach described frequency threshold value greater than the default number of times that leads to light quantity, for example, the set point number threshold value is three times, described range sensor obtained the state of an earphone every one minute, described optical sensor obtained the logical light quantity of an earphone every one minute simultaneously, if in three minutes, the state that range sensor only gets twice earphone is that state undetermined and/or optical sensor only get the logical light quantity of twice earphone greater than default logical light quantity, determine that the user is for listening to state, control and continue audio plays.
in the embodiment of the present invention, the state that obtains earphone according to range sensor and the optical sensor of earphone within the continuous time interval and the logical light quantity of earphone can determine that the user is for leaving state, perhaps for listening to state, thereby the audio player plays audio frequency in control terminal or automatically stop, when the user takes off earphone and leaves, terminal can stop audio frequency output automatically, saved the loss of power of terminal, facilitated user's operation, and judge according to two sensors, increased the accuracy of terminal judges User Status, promoted user's experience, improved the intelligent of terminal, make terminal more possess the characteristics of hommization.
See also Fig. 5, a kind of structural representation of terminal is provided for the embodiment of the present invention.As shown in Figure 5, described terminal 1 comprises:
In specific implementation, described terminal 1 is by the earphone output audio, and described acquisition module 11 can obtain according to the range sensor of earphone the current state of user; Also can obtain according to the optical sensor of earphone the current state of user; Can also be simultaneously obtain the current state of user according to range sensor and the optical sensor of earphone.
Concrete, if described acquisition module 11 obtains the current state of user according to the range sensor of earphone, please in the lump referring to Fig. 6, provide a kind of structural representation of acquisition module for the embodiment of the present invention.As shown in Figure 6, described acquisition module 11 comprises:
The first acquiring unit 111 when being used for arriving the default time interval, obtains the state of earphone by range sensor;
In specific implementation, when described terminal 1 was passed through the earphone output audio, described the first acquiring unit 111 can obtain at interval of one equal period the state of described earphone according to the range sensor of described earphone.Wherein, there is the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is the use state; There is not the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is state undetermined.For example, obtain the state of an earphone at interval of one minute described the first acquiring unit 111.
The first judging unit 112, whether the number of times that is used for state that judgement gets described earphone continuously and is state undetermined reaches the frequency threshold value that presets;
In specific implementation, preset frequency threshold value, the state of described the first judging unit 112 earphone that judgement was obtained in the continuous time interval according to described range sensor is whether the number of times of state undetermined has reached described frequency threshold value, for example, the set point number threshold value is three times, described the first judging unit 112 obtained the state of an earphone according to described range sensor every one minute, and judged whether the state of the continuous earphone that obtains for three times is state undetermined.
The first determining unit 113 is used for whether reaching the frequency threshold value that presets when being when number of times that state that judgement gets described earphone continuously is state undetermined, and definite User Status is left state for the user, otherwise definite User Status is listened to state for the user;
In specific implementation, if the number of times that the state of the earphone that described range sensor obtained in the continuous time interval is state undetermined has reached frequency threshold value, described the first definite User Status of determining unit 113 is left state for the user; Otherwise described the first definite User Status of determining unit 113 is listened to state for the user.
Concrete, if described acquisition module 11 obtains the current state of user according to the optical sensor of earphone, please in the lump referring to Fig. 7, provide the another kind of structural representation of acquisition module for the embodiment of the present invention.As shown in Figure 7, described acquisition module 11 comprises:
Second acquisition unit 114 when being used for arriving the default time interval, obtains the logical light quantity of earphone by optical sensor;
In specific implementation, when described terminal 1 was passed through the earphone output audio, described second acquisition unit 114 can obtain at interval of one equal period the logical light quantity of earphone according to the optical sensor of described earphone.For example: the logical light quantity of obtaining an earphone at interval of one minute described second acquisition unit 114.
The second judging unit 115 is used for judging whether the logical light quantity of the described earphone that gets continuously reaches greater than the default number of times that leads to light quantity the frequency threshold value that presets;
In specific implementation, preset frequency threshold value, whether described the second judging unit 115 has reached described frequency threshold value according to the logical light quantity of the earphone that described optical sensor judgement is obtained greater than the default number of times that leads to light quantity in the continuous time interval, for example, the set point number threshold value is three times, described the second judging unit 115 obtained the logical light quantity of an earphone every one minute according to described optical sensor, and whether the logical light quantity that judges the continuous earphone that obtains for three times is all greater than default logical light quantity
The second determining unit 116, whether the logical light quantity that is used for the described earphone that gets continuously when judgement reaches the frequency threshold value that presets when being greater than the default number of times that leads to light quantity, definite User Status is left state for the user, otherwise definite User Status is listened to state for the user;
In specific implementation, if the logical light quantity of the earphone that described optical sensor obtained in the continuous time interval has reached frequency threshold value greater than the number of times of default logical light quantity, described the second determining unit 116 determines that User Status leaves state for the user; Otherwise described the second definite User Status of determining unit 116 is listened to state for the user.
Concrete, if described acquisition module 11 obtains the current state of user according to range sensor and the optical sensor of earphone simultaneously, please in the lump referring to Fig. 8, provide another structural representation of acquisition module for the embodiment of the present invention.As shown in Figure 8, described acquisition module 11 comprises:
The 3rd acquiring unit 117 when being used for arriving the default time interval, obtaining the state of earphone, and obtains the logical light quantity of described earphone by optical sensor by range sensor;
In specific implementation, when described terminal 1 was passed through the earphone output audio, described the 3rd acquiring unit 117 can obtain at interval of one equal period the logical light quantity of state and the earphone of described earphone according to the sensor of described earphone.For example, obtain the logical light quantity of state and the earphone of an earphone at interval of one minute described the 3rd acquiring unit 117.
The 3rd judging unit 118, whether the number of times that is state undetermined for the state that judges the described earphone that gets continuously reaches the frequency threshold value that presets, and whether the described logical light quantity by earphone that judgement gets continuously reaches the described frequency threshold value that presets greater than the default number of times that leads to light quantity;
In specific implementation, preset frequency threshold value, the state of described the 3rd judging unit 118 earphone that judgement gets continuously according to described range sensor is whether the number of times of state undetermined has reached described frequency threshold value, and whether the logical light quantity of the earphone that gets continuously according to described optical sensor has reached described frequency threshold value greater than the number of times of default logical light quantity.
For example, the set point number threshold value is three times, described the 3rd judging unit 118 obtained the state of an earphone every one minute according to described range sensor, obtained the logical light quantity of an earphone every one minute according to described optical sensor, and whether the state that judges the continuous earphone that obtains for three times be state undetermined, and whether the logical light quantity of the earphone that obtains in this three periods time intervals of judgement is all greater than the logical light quantity of presetting.
The 3rd determining unit 119, reach if be used for the state of the described earphone get continuously and be the number of times of state undetermined the frequency threshold value that presets, and the described logical light quantity by earphone that gets continuously reaches the described frequency threshold value that presets greater than the default number of times that leads to light quantity, definite User Status is left state for the user, otherwise definite User Status is listened to state for the user;
In specific implementation, if being the number of times of state undetermined, the state of the earphone that described range sensor gets continuously reached frequency threshold value, and the logical light quantity of the earphone that described optical sensor gets has continuously reached described frequency threshold value greater than the number of times of default logical light quantity, and described the 3rd definite User Status of determining unit 119 is left state for the user; Otherwise described the 3rd definite User Status of determining unit 119 is listened to state for the user.
The first control module 12 is left state if be used for User Status for the user, controls to stop audio plays;
In specific implementation, if the User Status of determining according to the first determining unit 113 or the second determining unit 116 or the 3rd determining unit 119 are left state for the user, preferred terminal 1 is closed audio player, stops audio frequency and exports.
The second control module 13 is listened to state if be used for User Status for the user, controls and continues audio plays;
In specific implementation, if the User Status of determining according to the first determining unit 113 or the second determining unit 116 or the 3rd determining unit 119 are listened to state for the user, control terminal 1 continuation audio plays.
Need to prove, described terminal 1 also comprises load-on module, is used for loading the driver of earphone sensor when terminal 1 detects the earphone access.
In embodiments of the present invention, also provide a kind of system that audio frequency is play that controls, described system comprises terminal and earphone, wherein, the structure of described terminal can referring in the described embodiment in Fig. 5-8 about the associated description of terminal 1, do not give unnecessary details at this.Described earphone is built-in with sensor.
The sensor of described earphone can comprise: range sensor and/or optical sensor;
Described range sensor when be used for arriving the default time interval, obtains the state of earphone by range sensor, so that described terminal is obtained User Status according to the state of described earphone;
In specific implementation, there is the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state that described terminal 1 is set described earphone is the use state; There is not the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state that described terminal 1 is set described earphone is state undetermined;
Described optical sensor when being used for arriving the default time interval, obtains the logical light quantity of earphone, so that described terminal is obtained User Status according to the logical light quantity of described earphone by optical sensor.
in the embodiment of the present invention, the logical light quantity of the earphone that the state of the earphone that obtains continuously according to the range sensor of earphone and/or the optical sensor of earphone obtain continuously can determine that the user is for leaving state, perhaps for listening to state, thereby the audio player plays audio frequency in control terminal or automatically stop, when the user takes off earphone and leaves, terminal can stop audio frequency output automatically, saved the loss of power of terminal, facilitated user's operation, and can judge simultaneously according to two sensors, increased the accuracy of terminal judges User Status, promoted user's experience, improved the intelligent of terminal, make terminal more possess the characteristics of hommization.
Module described in the embodiment of the present invention or unit, can pass through universal integrated circuit, CPU(Central Processing Unit for example, central processing unit), or by ASIC(Application Specific Integrated Circuit, special IC) realize.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to complete by computer program, described program can be stored in a computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.
Claims (10)
1. control the method that audio frequency is play for one kind, it is characterized in that, comprising:
When terminal is passed through the earphone audio plays, utilize the sensor of earphone to obtain User Status, described User Status leaves state for the user or the user listens to state;
If User Status is left state for the user, control stops audio plays;
If User Status is listened to state for the user, control and continue audio plays.
2. method according to claim 1, is characterized in that, described terminal comprises by before the earphone audio plays:
When the earphone access being detected, load the driver of the sensor of earphone, described sensor type comprises in range sensor and sensor at least a.
3. method according to claim 2, is characterized in that, described sensor is range sensor, and described sensor according to earphone obtains User Status, comprising:
When arriving the default time interval, obtain the state of earphone by range sensor;
The state that judgement gets described earphone continuously is whether the number of times of state undetermined reaches the frequency threshold value that presets;
When being judged as YES, definite User Status is left state for the user, otherwise definite User Status is listened to state for the user;
Wherein, there is the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is the use state; There is not the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is state undetermined.
4. method according to claim 2, is characterized in that, described sensor is optical sensor, and described sensor according to earphone obtains User Status, comprising:
When arriving the default time interval, obtain the logical light quantity of earphone by optical sensor;
Whether the logical light quantity of the described earphone that judgement gets continuously reaches greater than the number of times of default logical light quantity the frequency threshold value that presets;
When being judged as YES, definite User Status is left state for the user, otherwise definite User Status is listened to state for the user.
5. method according to claim 3, is characterized in that, described sensor comprises: range sensor and optical sensor, and described sensor according to earphone obtains User Status, comprising:
When arriving the default time interval, obtain the state of earphone by range sensor, and obtain the logical light quantity of described earphone by optical sensor;
The state of the described earphone that judgement gets continuously is whether the number of times of state undetermined reaches the frequency threshold value that presets, and whether the described logical light quantity by earphone that judgement gets continuously reaches the described frequency threshold value that presets greater than the default number of times that leads to light quantity;
If being the number of times of state undetermined, the state of the described earphone that gets continuously reaches the frequency threshold value that presets, and the described logical light quantity by earphone that gets continuously reaches the described frequency threshold value that presets greater than the default number of times that leads to light quantity, definite User Status is left state for the user, otherwise definite User Status is listened to state for the user.
6. a terminal, is characterized in that, comprising:
Acquisition module is used for utilizing the sensor of earphone to obtain User Status when terminal is passed through the earphone audio plays, and described User Status leaves state for the user or the user listens to state;
The first control module is left state if be used for User Status for the user, controls to stop audio plays;
The second control module is listened to state if be used for User Status for the user, controls and continues audio plays.
7. terminal according to claim 6, is characterized in that, also comprises:
Load-on module is used for when the earphone access being detected, the driver of load sensor, and described sensor type comprises in range sensor and sensor at least a.
8. terminal according to claim 7, is characterized in that, described sensor is range sensor, and described acquisition module comprises:
The first acquiring unit when being used for arriving the default time interval, obtains the state of earphone by range sensor;
The first judging unit, whether the number of times that is used for state that judgement gets described earphone continuously and is state undetermined reaches the frequency threshold value that presets;
The first determining unit is used for whether reaching the frequency threshold value that presets when being when number of times that state that judgement gets described earphone continuously is state undetermined, and definite User Status is left state for the user, otherwise definite User Status is listened to state for the user;
Wherein, there is the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is the use state; There is not the applying object in the surface if described range sensor detects described earphone on the direction of measurement of described earphone, and the state of setting described earphone is state undetermined.
9. terminal according to claim 7, is characterized in that, described sensor is optical sensor, and described acquisition module also comprises:
Second acquisition unit when being used for arriving the default time interval, obtains the logical light quantity of earphone by optical sensor;
The second judging unit is used for judging whether the logical light quantity of the described earphone that gets continuously reaches greater than the default number of times that leads to light quantity the frequency threshold value that presets;
The second determining unit, whether the logical light quantity that is used for the described earphone that gets continuously when judgement reaches the frequency threshold value that presets when being greater than the default number of times that leads to light quantity, definite User Status is left state for the user, otherwise definite User Status is listened to state for the user.
10. terminal according to claim 8, is characterized in that, described sensor comprises: range sensor and optical sensor, and described acquisition module also comprises:
The 3rd acquiring unit when being used for arriving the default time interval, obtaining the state of earphone, and obtains the logical light quantity of described earphone by optical sensor by range sensor;
The 3rd judging unit, whether the number of times that is state undetermined for the state that judges the described earphone that gets continuously reaches the frequency threshold value that presets, and whether the described logical light quantity by earphone that judgement gets continuously reaches the described frequency threshold value that presets greater than the default number of times that leads to light quantity;
The 3rd determining unit, reach if be used for the state of the described earphone get continuously and be the number of times of state undetermined the frequency threshold value that presets, and the described logical light quantity by earphone that gets continuously reaches the described frequency threshold value that presets greater than the default number of times that leads to light quantity, definite User Status is left state for the user, otherwise definite User Status is listened to state for the user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013100318310A CN103137158A (en) | 2013-01-28 | 2013-01-28 | Method controlling audio playing and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013100318310A CN103137158A (en) | 2013-01-28 | 2013-01-28 | Method controlling audio playing and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103137158A true CN103137158A (en) | 2013-06-05 |
Family
ID=48496883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013100318310A Pending CN103137158A (en) | 2013-01-28 | 2013-01-28 | Method controlling audio playing and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103137158A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199655A (en) * | 2014-08-27 | 2014-12-10 | 深迪半导体(上海)有限公司 | Audio switching method, microprocessor and earphones |
CN106791191A (en) * | 2017-02-07 | 2017-05-31 | 广东小天才科技有限公司 | A kind of control method for playing back and device |
CN106851455A (en) * | 2017-02-23 | 2017-06-13 | 上海与德信息技术有限公司 | A kind of music control method and device based on earphone play mode |
CN107122161A (en) * | 2017-04-27 | 2017-09-01 | 维沃移动通信有限公司 | The control method for playing back and terminal of a kind of voice data |
WO2017147966A1 (en) * | 2016-02-29 | 2017-09-08 | 宇龙计算机通信科技(深圳)有限公司 | Headphone control method, headphone, and terminal |
CN107155119A (en) * | 2016-03-03 | 2017-09-12 | 璧典鸡 | A kind of multimedia equipment of mask type |
CN107205187A (en) * | 2017-06-21 | 2017-09-26 | 深圳市冠旭电子股份有限公司 | A kind of method, device and terminal device based on earphone control music |
CN110572731A (en) * | 2018-06-05 | 2019-12-13 | 四川斐讯信息技术有限公司 | Automatic shutdown wireless earphone and automatic shutdown method for wireless earphone |
CN112261536A (en) * | 2020-10-20 | 2021-01-22 | Tcl通讯(宁波)有限公司 | Earphone control method, earphone control device, terminal equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090131124A1 (en) * | 2007-11-20 | 2009-05-21 | Broadcom Corporation | Wireless earpiece determining proximity to user and operation based thereon |
CN101951534A (en) * | 2010-07-09 | 2011-01-19 | 深圳桑菲消费通信有限公司 | Method for additionally arranging sensor on earphone to adjust state of mobile terminal |
CN102149033A (en) * | 2010-10-28 | 2011-08-10 | 华为终端有限公司 | Earphone processing method and user equipment |
CN102750963A (en) * | 2012-06-29 | 2012-10-24 | 深圳市新太阳数码有限公司 | Intelligent DVD (Digital Video Disk) memory player and method |
-
2013
- 2013-01-28 CN CN2013100318310A patent/CN103137158A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090131124A1 (en) * | 2007-11-20 | 2009-05-21 | Broadcom Corporation | Wireless earpiece determining proximity to user and operation based thereon |
CN101951534A (en) * | 2010-07-09 | 2011-01-19 | 深圳桑菲消费通信有限公司 | Method for additionally arranging sensor on earphone to adjust state of mobile terminal |
CN102149033A (en) * | 2010-10-28 | 2011-08-10 | 华为终端有限公司 | Earphone processing method and user equipment |
CN102750963A (en) * | 2012-06-29 | 2012-10-24 | 深圳市新太阳数码有限公司 | Intelligent DVD (Digital Video Disk) memory player and method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199655A (en) * | 2014-08-27 | 2014-12-10 | 深迪半导体(上海)有限公司 | Audio switching method, microprocessor and earphones |
WO2017147966A1 (en) * | 2016-02-29 | 2017-09-08 | 宇龙计算机通信科技(深圳)有限公司 | Headphone control method, headphone, and terminal |
CN107155119A (en) * | 2016-03-03 | 2017-09-12 | 璧典鸡 | A kind of multimedia equipment of mask type |
CN106791191A (en) * | 2017-02-07 | 2017-05-31 | 广东小天才科技有限公司 | A kind of control method for playing back and device |
CN106851455A (en) * | 2017-02-23 | 2017-06-13 | 上海与德信息技术有限公司 | A kind of music control method and device based on earphone play mode |
CN107122161A (en) * | 2017-04-27 | 2017-09-01 | 维沃移动通信有限公司 | The control method for playing back and terminal of a kind of voice data |
CN107205187A (en) * | 2017-06-21 | 2017-09-26 | 深圳市冠旭电子股份有限公司 | A kind of method, device and terminal device based on earphone control music |
CN107205187B (en) * | 2017-06-21 | 2019-10-01 | 深圳市冠旭电子股份有限公司 | A kind of method, apparatus and terminal device based on earphone control music |
CN110572731A (en) * | 2018-06-05 | 2019-12-13 | 四川斐讯信息技术有限公司 | Automatic shutdown wireless earphone and automatic shutdown method for wireless earphone |
CN112261536A (en) * | 2020-10-20 | 2021-01-22 | Tcl通讯(宁波)有限公司 | Earphone control method, earphone control device, terminal equipment and storage medium |
CN112261536B (en) * | 2020-10-20 | 2023-08-04 | 深圳市凯狮博电子有限公司 | Earphone control method, earphone control device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103137158A (en) | Method controlling audio playing and terminal | |
CN110166871B (en) | Earphone charging box, TWS earphone, working state switching method and storage medium | |
CN108599304B (en) | Charging box, charging control method and related product | |
US20160234589A1 (en) | Audio apparatus and methods | |
CN104581535B (en) | A kind of earphone noise-reduction method and device | |
CN104978166A (en) | Volume adjusting method and device | |
US20120294454A1 (en) | Mobile terminal and earphone identifying method | |
CN103078997A (en) | Method and system for setting volume of mobile terminal and mobile terminal | |
CN103118191B (en) | Using control method and mobile terminal for iPhone wire control earphone | |
CN108132401A (en) | Charge abnormal detection method, device, storage medium and mobile terminal | |
CN105391124A (en) | Cell device management method, and cell device and system | |
CN110366062B (en) | TWS earphone in-place detection method and system | |
CN110650400A (en) | Wireless earphone and low-power-consumption method, device and system thereof | |
CN103559895A (en) | Audio playing terminal | |
CN103531214B (en) | A kind of control method of indoor equipment and control device | |
CN105430569A (en) | Playing method, playing device and terminal | |
CN101917514A (en) | Application control method and system, terminal and earphones | |
US10271126B2 (en) | Earphone noise reduction method and apparatus | |
CN105204633A (en) | Control method of mobile terminal music play and mobile terminal | |
CN104768092A (en) | Earphone and mobile terminal state switching system and method based on earphone | |
CN106878915B (en) | Control method, device and the playback equipment and mobile terminal of playback equipment | |
CN109450009B (en) | Charging control method and device and computer storage medium | |
CN107566618A (en) | volume adjusting method, device, terminal device and storage medium | |
CN107404753A (en) | Volume adjusting method, device, terminal and storage medium | |
CN105704604A (en) | Smart home earphones |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130605 |