CN109743652A - Headset control method, earphone and computer readable storage medium - Google Patents
Headset control method, earphone and computer readable storage medium Download PDFInfo
- Publication number
- CN109743652A CN109743652A CN201910022195.2A CN201910022195A CN109743652A CN 109743652 A CN109743652 A CN 109743652A CN 201910022195 A CN201910022195 A CN 201910022195A CN 109743652 A CN109743652 A CN 109743652A
- Authority
- CN
- China
- Prior art keywords
- earphone
- state
- parameter
- distance
- control 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
Links
Landscapes
- Telephone Function (AREA)
- Headphones And Earphones (AREA)
Abstract
The invention discloses a kind of headset control methods, which comprises obtains the distance parameter of the detector detection of earphone setting;Earphone control parameter is determined according to the distance parameter and earphone state;Earphone operation is controlled according to the earphone control parameter.The invention also discloses earphones and computer readable storage medium.Present invention saves setting physical button or the costs of touch key-press, but also operating simpler convenience, improve operation convenience.
Description
Technical field
The present invention relates to ear phone technology field more particularly to headset control methods, earphone and computer readable storage medium.
Background technique
Earphone on the market is button or touch key-press operation, the partial function of Lai Shixian earphone, for example, temporarily at present
Stop, play, is upper (lower) one bent, receiving calls, turn off phone and volume adjustment etc..This mode need to be arranged special physics by
Key or touch key-press influence appearance, and when each operation, needing to find respective keys could be completed.This mode of operation causes
Cost of manufacture increases, and inconvenient benefit.
Summary of the invention
The main purpose of the present invention is to provide a kind of headset control method, earphone and computer readable storage medium, purports
Cause cost of manufacture to increase by the mode of operation that physical button control solving current earphone, and inconvenient sharp asks
Topic.
To achieve the above object, one aspect of the present invention provides a kind of headset control method, and the headset control method includes
Following steps:
Obtain the distance parameter of the detector detection of earphone setting;
Earphone control parameter is determined according to the distance parameter and earphone state;
Earphone operation is controlled according to the earphone control parameter.
Optionally, the distance parameter be earphone leave wearing position apart from when, it is described according to the distance parameter
The step of determining earphone control parameter with earphone state include:
When the distance left is more than the first pre-determined distance, and time departure is within the first preset time, the earphone of detection
When state is wearing state, determine that earphone control parameter is the first control parameter;
When the distance left is more than the first pre-determined distance, and time departure is more than the first preset time in the second preset time
Within, when the earphone state of detection is wearing state, determine that earphone control parameter is the second control parameter;
When the distance left is more than the first pre-determined distance, and time departure is more than the second preset time, the earphone shape of detection
When state is non-wearing state, determine earphone control parameter for shutdown.
Optionally, the distance parameter be shelter with a distance from earphone when, it is described according to the distance parameter and ear
Machine state determines that the step of earphone control parameter includes:
At a distance from shelter with earphone within the second pre-determined distance, the occlusion state of earphone is determined;
Determine that earphone control parameter is third control parameter according to the occlusion state of earphone.
Optionally, the step of occlusion state according to earphone determines third control parameter include:
When earphone state becomes non-occlusion state from occlusion state, determine that earphone control parameter is the 4th control parameter;
Reach preset times in the variation of earphone occlusion state, determines that earphone control parameter is the 5th control parameter;
When earphone is in occlusion state, and blocks the time more than third preset time, earphone control parameter is determined to close
Machine.
Optionally, the method, further includes:
Obtain the state of earphone;
When earphone is in wearing state, the mode of operation of a determining wherein earphone determines sound according to the mode of operation
Measure adjustment parameter;
According to the volume of the volume adjustment parameter regulation earphone.
Optionally, the mode of operation of a determination wherein earphone determines that volume adjustment is joined according to the mode of operation
Several steps include:
When wherein an earphone is removed, when the position for leaving third pre-determined distance carries out predetermined movement, according to described
Predetermined movement determines volume adjustment parameter.
Optionally, after the step of state for obtaining earphone, further includes:
When earphone is in wearing state, determine whether earphone is in the state of being blocked;
When earphone is in occlusion state, move back and forth within a preset range in shelter, it is true according to operation is moved back and forth
Accordatura amount regulating degree.
Optionally, the earphone of working as is in wearing state, determines whether earphone is in after the step of being blocked state, also
Include:
When earphone is in occlusion state, in shelter and earphone within the 4th pre-determined distance, and/or when persistently blocking
Between reach the 4th preset time, determine that volume adjustment parameter is volume adjustment parameter back and forth, the adjustment parameter back and forth is most
It recycles and adjusts between small volume and max volume.
In addition, to achieve the above object, another aspect of the present invention also provides a kind of earphone, the earphone include: memory,
Processor and it is stored in the computer program that can be run on the memory and on the processor, the computer program quilt
The step of processor realizes method as described above when executing.
In addition, to achieve the above object, further aspect of the present invention also provides a kind of computer readable storage medium, the meter
Earphone control program is stored on calculation machine readable storage medium storing program for executing, the earphone control program realizes institute as above when being executed by processor
The headset control method stated.
The distance parameter that the present invention is detected by obtaining the detection of earphone setting, determines earphone control in conjunction with the state of earphone
Parameter processed is directly realized by automatic control, rather than by way of physical button or touch key-press, need to be arranged physical button with
And need user to go for seeking physical button and operating physical key manually, save setting physical button or touch key-press at
This improves operation convenience but also operating simpler convenience.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the earphone control device for the hardware running environment that one embodiment of the invention scheme is related to;
Fig. 2 is the flow diagram of an embodiment of headset control method of the present invention;
Fig. 3 is the process for determining earphone control parameter in one embodiment of the invention according to the distance parameter and earphone state
Schematic diagram;
Fig. 4 is the stream for determining earphone control parameter in another embodiment of the present invention according to the distance parameter and earphone state
Journey schematic diagram;
Fig. 5 is the flow diagram for determining third control parameter in one embodiment of the invention according to the occlusion state of earphone;
Fig. 6 is the flow diagram of the another embodiment of headset control method of the present invention;
Fig. 7 is the mode of operation that a wherein earphone is determined in one embodiment of the invention, is determined according to the mode of operation
The flow diagram of volume adjustment parameter;
Fig. 8 is the flow diagram of the another embodiment of headset control method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: obtaining the distance parameter of the detector detection of earphone setting;According to
The distance parameter and earphone state determine earphone control parameter;Earphone operation is controlled according to the earphone control parameter.
Since current earphone causes cost of manufacture to increase by the mode of operation that physical button controls, and inconvenient benefit
The problem of.The present invention provides a solution, the distance parameter of the detection detection by obtaining earphone setting, in conjunction with earphone
State determines earphone control parameter, is directly realized by automatic control, rather than by way of physical button or touch key-press, it needs
Physical button is set and user is needed to go for seeking physical button and operating physical key manually, saves setting physical button
Or the cost of touch key-press improves operation convenience but also operating simpler convenience.
As shown in Figure 1, the earphone control device structure that Fig. 1 is the hardware running environment that the embodiment of the present invention is related to is shown
It is intended to.
As shown in Figure 1, the apparatus may include: processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI, bluetooth, common 2.4G interface).Memory 1005 can be high speed RAM memory, can also be with
It is stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be only
Stand on the storage device of aforementioned processor 1001.
Optionally, which can also include detector (optical sensor 1006 or range sensor) etc., with processing
Device, such as chip connection.
It, can be with it will be understood by those skilled in the art that apparatus structure shown in Fig. 1 does not constitute the restriction to the device
Including perhaps combining certain components or different component layouts than illustrating more or fewer components.Described device can be
Earphone or other can wear and can realize sound play electronic equipment.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium
Network communication module, Subscriber Interface Module SIM and earphone control application program.
In device shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor
1001 can be used for that the earphone stored in memory 1005 is called to control application program, and execute following operation:
Obtain the distance parameter of the detector detection of earphone setting;
Earphone control parameter is determined according to the distance parameter and earphone state;
Earphone operation is controlled according to the earphone control parameter.
Optionally, the distance parameter be earphone leave wearing position apart from when, processor 1001 can be used for adjusting
Application program is controlled with the earphone stored in memory 1005, and executes following operation:
When the distance left is more than the first pre-determined distance, and time departure is within the first preset time, the earphone of detection
When state is wearing state, determine that earphone control parameter is the first control parameter;
When the distance left is more than the first pre-determined distance, and time departure is more than the first preset time in the second preset time
Within, when the earphone state of detection is wearing state, determine that earphone control parameter is the second control parameter;
When the distance left is more than the first pre-determined distance, and time departure is more than the second preset time, the earphone shape of detection
When state is non-wearing state, determine earphone control parameter for shutdown.
Optionally, the distance parameter be shelter with a distance from earphone when, processor 1001 can be used for call deposits
The earphone control application program stored in reservoir 1005, and execute following operation:
At a distance from shelter with earphone within the second pre-determined distance, the occlusion state of earphone is determined;
Determine that earphone control parameter is third control parameter according to the occlusion state of earphone.
Optionally, processor 1001 can be used for that the earphone stored in memory 1005 is called to control application program, and hold
The following operation of row:
When earphone state becomes non-occlusion state from occlusion state, determine that earphone control parameter is the 4th control parameter;
Reach preset times in the variation of earphone occlusion state, determines that earphone control parameter is the 5th control parameter;
When earphone is in occlusion state, and blocks the time more than third preset time, earphone control parameter is determined to close
Machine.
Optionally, processor 1001 can be used for that the earphone stored in memory 1005 is called to control application program, and hold
The following operation of row:
Obtain the state of earphone;
When earphone is in wearing state, the mode of operation of a determining wherein earphone determines sound according to the mode of operation
Measure adjustment parameter;
According to the volume of the volume adjustment parameter regulation earphone.
Optionally, processor 1001 can be used for that the earphone stored in memory 1005 is called to control application program, and hold
The following operation of row:
When wherein an earphone is removed, when the position for leaving third pre-determined distance carries out predetermined movement, according to described
Predetermined movement determines volume adjustment parameter.
Optionally, after the step of state for obtaining earphone, processor 1001 can be used for calling memory 1005
The earphone of middle storage controls application program, and executes following operation:
When earphone is in wearing state, determine whether earphone is in the state of being blocked;
When earphone is in occlusion state, move back and forth within a preset range in shelter, it is true according to operation is moved back and forth
Accordatura amount regulating degree.
Optionally, the earphone of working as is in wearing state, determines whether earphone is in after the step of being blocked state, locates
Reason device 1001 can be used for that the earphone stored in memory 1005 is called to control application program, and execute following operation:
When earphone is in occlusion state, in shelter and earphone within the 4th pre-determined distance, and/or when persistently blocking
Between reach the 4th preset time, determine that volume adjustment parameter is volume adjustment parameter back and forth, the adjustment parameter back and forth is most
It recycles and adjusts between small volume and max volume.
Referring to Fig. 2, one embodiment of the invention provides a kind of headset control method, and the headset control method includes:
Step S10 obtains the distance parameter of the detector detection of earphone setting;
The earphone is chosen as wireless headset, naturally it is also possible to be wired earphone, is situated between in the present embodiment with wireless headset
It continues, the earphone includes left earphone and right earphone, and the earphone having certainly is only one, does not distinguish left and right ear;This implementation
Two earphones, left and right ear part are included with the earphone in example.
Detector is arranged in the earphone, and the detector can be set after earphone is worn on ear, close to ear
Side, or the side far from ear, what is detected close to the side of ear is distance that earphone leaves ear, one far from ear
Side is the distance that shelter blocks earphone.
Each earphone can according to need the position of setting detector, be also possible to be respectively provided with detector two positions,
It can also an only position setting wherein.
The distance parameter of the detector detection of earphone setting is obtained, the distance parameter includes the distance of ear in earphone
And/or shelter is with a distance from earphone.
Step S20 determines earphone control parameter according to the distance parameter and earphone state;
Earphone state includes the state worn and do not worn, certainly also includes not worn and by being worn to by not being worn to
The state that the state of wearing or part are worn.
Specifically, the earphone includes In-Ear (also can also be that half is In-Ear) and circumaural earphone, for In-Ear,
It wears earphone and is exactly that earphone has been put into cochlea, and for circumaural earphone, wearing earphone is exactly that earphone has covered ear.
It wears, all wears for the two earphone into ear;It does not wear, is not all worn into ear for two earphones;Part is worn, example
Such as, an ear wears earphone, and an ear is not worn;Or earphone is only partially placed into cochlea or circumaural earphone
A part of ear is only covered, referred to as part is worn.
In earphone work in perhaps earphone does not work or certain interval of time (30 milliseconds or 60 milliseconds,
Also the longer time that can according to need setting, (usually we obtained time of state at 100 milliseconds or so, and the usual time is shorter
The accuracy of acquisition state is higher) obtain earphone state.
After obtaining distance parameter and earphone state, earphone control parameter is determined according to distance parameter and earphone state,
There are corresponding relationship, this corresponding relationship is arranged in advance for the distance parameter and earphone state and earphone control parameter, for example, away from
It is A from parameter, earphone state is to wear, and earphone control parameter is control earphone pause/broadcasting;Distance parameter is A, earphone state
Not wear, earphone control parameter is next track/last track;Distance parameter is B, and earphone state is to wear, earphone control parameter
To answer the call/hanging up.More than, only some examples, do not represent all control corresponding relationships, other any distance ginsengs
The corresponding relationship of several and earphone state and earphone control parameter should all include within the scope of the present invention.
Optionally, in one embodiment of this invention, the distance parameter be earphone leave wearing position apart from when,
Distance parameter is that earphone leaves the distance of wearing position, that is, when earphone leaves ear and is in non-wearing state, earphone can leave use
The ear at family can have earphone and leave the distance parameter of ear and the time parameter left, the time parameter is in this
Time under wearing state, for instance in the duration of non-wearing state.The distance parameter of the earphone is by being arranged in ear
Sensor on machine detects to obtain, and the sensor is optical sensor (can also use range sensor), and the present embodiment is passed with light
Illustrate for sensor, the distance of ear is left by optical sensor test earphone.
After the distance parameter and time parameter that earphone leaves has been determined, according to the distance parameter, time parameter and inspection
The earphone wearing state of survey determines earphone control parameter.The earphone control parameter, which can be, to be executed pause, plays, receives calls
Or the function of hanging up the telephone.It is corresponding with distance parameter and time parameter, it is provided with distance parameter and time parameter and earphone control
The corresponding relationship of parameter processed.(for example, distance is L, time parameter T, earphone control parameter, which corresponds to control, to be suspended;Distance is
L1, time parameter T1, earphone control parameter correspond to control and answer the call.After determining earphone control parameter, according to the earphone
Control parameter controls earphone operation, for example, controlling the broadcasting/pause for realizing sound by earphone.Specifically, for example, current shape
State is broadcast state, and user has used aforesaid operations method to operate earphone at this time, that software will be by current user's operation
Pause function is converted to, if it is electricity condition is carried out, translates into the function that receives calls).
Optionally, with reference to Fig. 3, the distance parameter be earphone leave wearing position apart from when, it is described according to
The step of distance parameter and earphone state determine earphone control parameter include:
Step S21, when the distance left is more than the first pre-determined distance, and time departure is within the first preset time, inspection
When the earphone state of survey is wearing state, determine that earphone control parameter is the first control parameter;
Step S22, when the distance left is more than the first pre-determined distance, and time departure is more than the first preset time second
Within preset time, when the earphone state of detection is wearing state, determine that earphone control parameter is the second control parameter;
Step S23, when the distance left is more than the first pre-determined distance, and time departure is more than the second preset time, detection
Earphone state be non-wearing state when, determine earphone control parameter for shutdown.
And further, after by distance parameter and time parameter refinement, operated according to the process of step S21- step S23
Earphone, first pre-determined distance are also possible to other applicable distances such as 15mm or 8mm by taking 10mm as an example;Described first
Preset time also can also be other applicable times such as 2s or 3s by taking 1.5s as an example.Specifically, when taking out ear in cochlea
Machine, earphone system, which will calculate according to the data that environment electrical distance detection sensor returns and record earphone, leaves cochlea most short distance
From the continuous time more than 10 millimeters, if within certain continuous time (such as 1.5 seconds) put on again earphone (or earphone from
Cochlea maximum distance is less than 10 millimeters), pause will be executed according to corresponding relationship, be played, be received calls, the functions such as hang up the telephone
(the first control parameter);Same mode of operation, if the continuous time that earphone leaves cochlea is more than certain time (such as 1.5 seconds)
Afterwards (and within regular hour (such as 5 seconds), cochlea is put back to again, next track will be executed according to corresponding relationship, last track is hung
The functions (the second control parameter) such as power-off words;If earphone leave cochlea continuous time be more than the regular hour (such as 20 seconds, 30
Second etc.) successor do not put back to cochlea (or earphone from cochlea maximum distance not less than 10 millimeters) again so, shutdown will be executed
Function will execute power up function if putting back to cochlea again after shutdown.
And in one embodiment, with reference to Fig. 4, the distance parameter be shelter with a distance from earphone when, the basis
The step of distance parameter and earphone state determine earphone control parameter include:
Step S24 determines the occlusion state of earphone at a distance from shelter with earphone within the second pre-determined distance;
Step S25 determines that earphone control parameter is third control parameter according to the occlusion state of earphone.
Whether test earphone is blocked by obstructions, and the shelter can be hand or clothes or other and can block
The object of earphone.
When there are shelter, determine the distance parameter of shelter and earphone, for example, shelter and earphone distance 15mm or
Person 20mm.At a distance from shelter with earphone within the second pre-determined distance, the occlusion state of earphone is determined, described second is default
Distance is 10mm or 12mm or 8mm, is also possible to other applicable distances.
When at a distance from shelter with earphone within the second pre-determined distance, determines the occlusion state of earphone, judge earphone
Occlusion state whether change, such as, if become not blocking from blocking.Earphone control is determined according to the occlusion state of earphone
Parameter processed is third control parameter.The third control parameter can be pause/play, receive calls, hanging up the telephone;Yet
It can be next track, last track etc.;It can also be booting or shutdown etc..Occlusion state includes continuing to block or being become by blocking
Not block, or leaving earphone has been more than a pre-determined distance (for example, 10mm or 15mm etc. applicable distance).
With reference to Fig. 5, the step of occlusion state according to earphone determines third control parameter, includes:
Step S251 determines that earphone control parameter is the 4th when earphone state becomes non-occlusion state from occlusion state
Control parameter;
Step S252 reaches preset times in the variation of earphone occlusion state, determines that earphone control parameter is the 5th control ginseng
Number;
Step S253 determines earphone control when earphone is in occlusion state, and blocks the time more than third preset time
Parameter is shutdown.
Under occlusion state, there can be different situations, there are different control parameters.
Specifically, passing through hand (or other objects) close earphone and the maximum distance from earphone less than 10 millimeters, and fast
When (or the minimum range from earphone is greater than 10 millimeters) is left and abandoned blocking to speed, controlled according to occlusion state with earphone corresponding
Relationship executes pause, plays, and receive calls functions such as (the 4th control parameters), same mode of operation, if when certain
Interior (such as 2 seconds) continuously do 2 same operations, execute next track according to the corresponding relationship that occlusion state and earphone control,
Hang up the telephone functions such as (the 5th control parameters), same mode of operation, if the time that single blocks be more than certain time (such as
3 seconds) more than, shut-off function etc. will be executed.And the 4th control parameter, the 5th control parameter and/or the shutdown determined is third control
One kind of parameter processed, for the refinement of specifically determining third control parameter.
And the realization for earphone control parameter :+one environment light of main control chip (such as network reaches AB1526P) and away from
From three-in-one sensors (abbreviation optical sensor) or other distance measurement element+complete set operating circuits etc. such as detectings
(circuit is that existing circuit can be realized, and this is no longer going to repeat them).
After system boot, optical sensor is started to work, and time of work each second can be set according to practical application
Number, this system is primary using work in 0.15 second or so, and after the completion of work, optical sensor will enter dormant state to save function
Consumption.The every task of optical sensor will all acquire whether earphone leaves cochlea (or whether earphone is blocked) and single leaves ear
The information such as the number being blocked in the time (or time for being blocked of single or) of snail and certain time, then master control system
The data information of optical sensor acquisition back can be converted to different functions by software algorithm according to the rule of practical application
(e.g., suspending, restore to play, next track etc.).
And in one embodiment, the earphone can only have above by earphone at a distance from shelter either root
The control for completing earphone apart from one of both of these case of ear is left according to earphone, or can be led on an earphone
Both the above mode is crossed to complete the control of earphone.And when earphone has above two control mode, it can be according to the choosing of user
Select that one of or two kinds are completed earphone control to select;Or one of completion earphone is selected according to wearing state
Control, for example, controlling earphone operation at a distance from ear according to earphone in non-wearing state;And when wearing, according to this
Shelter controls earphone operation at a distance from earphone.And the mode of two basic change, for example, earphone does not have under special screne
It removes, when leaving ear distance controlling according to earphone, blocks in shelter more than more than certain time, execute shut-off function etc.,
For example, in the case where earphone leaves the control of ear distance parameter, addition is completed to shut down by way of blocking when running
Or booting control, it is more convenient, yet to be the superposing control under other scenes, superposing control can according to earphone state come
Determine, for example, wear and/or do not wear execute above-mentioned earphone leave ear distance or shelter and earphone away from
From.
Step S30 controls earphone operation according to the earphone control parameter.
After earphone control parameter has been determined, earphone operation is controlled according to the earphone control parameter.For example, control earphone
Pause, or control earphone play.
The distance parameter that the present embodiment is detected by obtaining the detector of earphone setting, determines earphone in conjunction with earphone state
Control parameter is directly realized by automatic control, rather than by way of physical button, it needs to be arranged physical button and needs to use
Family goes for seeking physical button and operating physical key manually, saves the cost of setting physical button or touch key-press, but also
Simpler convenience is operated, operation convenience is improved.
In one embodiment, with reference to Fig. 6, the method, further includes:
Step S40 obtains the state of earphone;
Step S50, when earphone is in wearing state, the mode of operation of a determining wherein earphone, according to the operation shape
State determines volume adjustment parameter;
Step S60, according to the volume of the volume adjustment parameter regulation earphone.
Earphone needs to adjust earphone state when playing sound, has corresponding physical button before, and setting volume sums it up
The key of volume down, and now no setting is required adjust volume physical button, volume is completed by the state of test earphone
Control.Specifically, obtain the state of earphone, when earphone be in wearing state, the mode of operation of a determination wherein earphone, according to
The mode of operation determines volume adjustment parameter;For example, an earphone switchs to non-wearing state by wearing, and there is deliberate action,
According to the volume of the amplitude adjusted earphone of deliberate action.
With reference to Fig. 7, the mode of operation of a determination wherein earphone determines that volume adjustment is joined according to the mode of operation
Several steps include:
Step S51, when wherein an earphone is removed, when the position for leaving third pre-determined distance carries out predetermined movement,
Volume adjustment parameter is determined according to the predetermined movement.
In the case where two earphones are all worn on ear, remove wherein one and (such as put on left ear, remove auris dextra, or anti-
It), and it is slowly moving back and forth in from cochlea a certain distance (third pre-determined distance, such as 50 millimeters), it will be according to mobile speed
Degree or moving distance change the size of volume, for example, movement speed is V1,1 grade of volume is turned up;Movement speed is
V2 turns down 1 grade of volume;Or mobile speed increases as volume is turned up, mobile speed, which is reduced to, turns down volume;
Or a direction moving distance increases height-regulating volume, volume is turned down in another direction moving distance increase.
In one embodiment, the step of mode for adjusting volume is also possible that with reference to Fig. 8, the state for obtaining earphone
Later, further includes:
Step S70 determines whether earphone is in the state of being blocked when earphone is in wearing state;
Step S80 moves back and forth when earphone is in occlusion state in shelter within a preset range, according to moving back
Dynamic operate determines volume adjustment degree;
Step S90, when shelter and earphone are within the 4th pre-determined distance, and the duration reaches the 4th preset time,
Determine that volume adjustment parameter is volume adjustment parameter back and forth, the adjustment parameter back and forth is between minimal volume and max volume
Circulation is adjusted.
When by blocking earphone, and slowly moving back and forth in a certain distance (such as 50 millimeters) realize the big of volume
It is small.
In addition, by blocking earphone, and be maintained within a certain distance (the 4th pre-determined distance, such as 10 millimeters) and continue
When time is more than certain time (the 4th preset time, such as 3 seconds), realize volume adjusting back and forth (minimum and maximum volume it
Between recycle) function.
The present embodiment realizes the adjusting of earpiece volume by the moving operation of moving operation or shelter for earphone,
The lower earpiece volume control mode of cost, more convenience are provided, volume control is completed in simple operations.
In addition, the embodiment of the present invention also proposes a kind of earphone, which is characterized in that the earphone includes: memory, processor
And it is stored in the computer program that can be run on the memory and on the processor, the computer program is by the place
The step of reason device realizes method as described above when executing.
The earphone is additionally provided with sensor, and the sensor setting is when wearing, close to the side of ear, convenient for detection
Earphone is at a distance from ear or the sensor is arranged far from the other side of earphone wearing, passes through shelter and earphone
Distance;The sensor is connect with chip, is controlled by the distance parameter of the sensor detection of the state and setting of test earphone
The operation of earphone.
In addition, the embodiment of the present invention also proposes that a kind of computer readable storage medium, computer readable storage medium are described
Earphone control program is stored on computer readable storage medium, the earphone control program is realized as above when being executed by processor
Headset control method described in embodiment.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In computer readable storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can
To be mobile phone, computer, server, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of headset control method, which is characterized in that the headset control method the following steps are included:
Obtain the distance parameter of the detector detection of earphone setting;
Earphone control parameter is determined according to the distance parameter and earphone state;
Earphone operation is controlled according to the earphone control parameter.
2. headset control method as described in claim 1, which is characterized in that left in the distance parameter for earphone and wear position
Set apart from when, described the step of determining earphone control parameter according to the distance parameter and earphone state includes:
When the distance left is more than the first pre-determined distance, and time departure is within the first preset time, the earphone state of detection
When for wearing state, determine that earphone control parameter is the first control parameter;
When the distance left is more than the first pre-determined distance, and time departure be more than the first preset time the second preset time it
It is interior, when the earphone state of detection is wearing state, determine that earphone control parameter is the second control parameter;
When the distance left is more than the first pre-determined distance, and time departure is more than the second preset time, and the earphone state of detection is
When non-wearing state, determine earphone control parameter for shutdown.
3. headset control method as described in claim 1, which is characterized in that the distance parameter be shelter from earphone
Apart from when, described the step of determining earphone control parameter according to the distance parameter and earphone state includes:
At a distance from shelter with earphone within the second pre-determined distance, the occlusion state of earphone is determined;
Determine that earphone control parameter is third control parameter according to the occlusion state of earphone.
4. headset control method as claimed in claim 3, which is characterized in that described to determine third according to the occlusion state of earphone
The step of control parameter includes:
When earphone state becomes non-occlusion state from occlusion state, determine that earphone control parameter is the 4th control parameter;
Reach preset times in the variation of earphone occlusion state, determines that earphone control parameter is the 5th control parameter;
When earphone is in occlusion state, and blocks the time more than third preset time, determine earphone control parameter for shutdown.
5. such as the described in any item headset control methods of Claims 1-4, which is characterized in that the method, further includes:
Obtain the state of earphone;
When earphone is in wearing state, the mode of operation of a determining wherein earphone determines volume tune according to the mode of operation
Save parameter;
According to the volume of the volume adjustment parameter regulation earphone.
6. headset control method as claimed in claim 5, which is characterized in that the operation shape of a determination wherein earphone
State, the step of determining volume adjustment parameter according to the mode of operation include:
When wherein an earphone is removed, when the position for leaving third pre-determined distance carries out predetermined movement, according to described default
It moves and determines volume adjustment parameter.
7. headset control method as claimed in claim 5, which is characterized in that it is described obtain earphone state the step of after,
Further include:
When earphone is in wearing state, determine whether earphone is in the state of being blocked;
When earphone is in occlusion state, move back and forth within a preset range in shelter, determines sound according to moving back and forth to operate
Measure regulating degree.
8. headset control method as claimed in claim 7, which is characterized in that the earphone of working as is in wearing state, determines ear
Whether machine is in after the step of being blocked state, further includes:
When earphone is in occlusion state, in shelter and earphone within the 4th pre-determined distance, and/or persistently blocks the time and reach
To the 4th preset time, determine that volume adjustment parameter is volume adjustment parameter back and forth, the adjustment parameter back and forth is in minimum sound
It recycles and adjusts between amount and max volume.
9. a kind of earphone, which is characterized in that the earphone includes: memory, processor and is stored on the memory and can
The computer program run on the processor realizes such as claim when the computer program is executed by the processor
The step of method described in any one of 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored with earphone control on the computer readable storage medium
Processing procedure sequence, the earphone control program realize that earphone described in any item of the claim 1 to 8 such as controls when being executed by processor
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910022195.2A CN109743652B (en) | 2019-01-09 | 2019-01-09 | Headset control method, headset, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910022195.2A CN109743652B (en) | 2019-01-09 | 2019-01-09 | Headset control method, headset, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109743652A true CN109743652A (en) | 2019-05-10 |
CN109743652B CN109743652B (en) | 2020-03-24 |
Family
ID=66364170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910022195.2A Active CN109743652B (en) | 2019-01-09 | 2019-01-09 | Headset control method, headset, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109743652B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110933551A (en) * | 2019-12-05 | 2020-03-27 | 歌尔股份有限公司 | Operation method and system of wireless earphone and wireless communication equipment |
CN110972010A (en) * | 2019-11-26 | 2020-04-07 | 歌尔股份有限公司 | Earphone control method, earphone and storage medium |
CN113301473A (en) * | 2021-06-10 | 2021-08-24 | 元心信息科技集团有限公司 | Method, device, equipment and storage medium for adjusting volume of earphone equipment |
CN113747299A (en) * | 2021-08-24 | 2021-12-03 | 深圳市豪恩声学股份有限公司 | Earphone and operation control method and system thereof |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180070184A1 (en) * | 2016-09-05 | 2018-03-08 | Unlimiter Mfa Co., Ltd. | Sound collection equipment having a function of answering incoming calls and control method of sound collection |
CN107846504A (en) * | 2017-10-10 | 2018-03-27 | 努比亚技术有限公司 | A kind of mode control method, equipment and computer-readable recording medium |
CN107995552A (en) * | 2018-01-23 | 2018-05-04 | 深圳市沃特沃德股份有限公司 | The control method and device of bluetooth headset |
CN108076209A (en) * | 2016-11-14 | 2018-05-25 | 中兴通讯股份有限公司 | Control the method and device of media file |
CN108549529A (en) * | 2018-04-08 | 2018-09-18 | 北京小米移动软件有限公司 | Control the method and device of audio output |
US10129382B2 (en) * | 2014-12-03 | 2018-11-13 | Fih (Hong Kong) Limited | Electronic device and method for controlling electronic device using headset |
CN108966087A (en) * | 2018-07-26 | 2018-12-07 | 歌尔科技有限公司 | A kind of wear condition detection method, device and the wireless headset of wireless headset |
CN108989937A (en) * | 2018-08-14 | 2018-12-11 | 歌尔科技有限公司 | A kind of gain adjusting method therefore of wireless headset, device and wireless headset |
CN109040896A (en) * | 2018-11-05 | 2018-12-18 | 长沙拓扑陆川新材料科技有限公司 | A kind of earphone and apart from detection cut-in method |
-
2019
- 2019-01-09 CN CN201910022195.2A patent/CN109743652B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10129382B2 (en) * | 2014-12-03 | 2018-11-13 | Fih (Hong Kong) Limited | Electronic device and method for controlling electronic device using headset |
US20180070184A1 (en) * | 2016-09-05 | 2018-03-08 | Unlimiter Mfa Co., Ltd. | Sound collection equipment having a function of answering incoming calls and control method of sound collection |
CN108076209A (en) * | 2016-11-14 | 2018-05-25 | 中兴通讯股份有限公司 | Control the method and device of media file |
CN107846504A (en) * | 2017-10-10 | 2018-03-27 | 努比亚技术有限公司 | A kind of mode control method, equipment and computer-readable recording medium |
CN107995552A (en) * | 2018-01-23 | 2018-05-04 | 深圳市沃特沃德股份有限公司 | The control method and device of bluetooth headset |
CN108549529A (en) * | 2018-04-08 | 2018-09-18 | 北京小米移动软件有限公司 | Control the method and device of audio output |
CN108966087A (en) * | 2018-07-26 | 2018-12-07 | 歌尔科技有限公司 | A kind of wear condition detection method, device and the wireless headset of wireless headset |
CN108989937A (en) * | 2018-08-14 | 2018-12-11 | 歌尔科技有限公司 | A kind of gain adjusting method therefore of wireless headset, device and wireless headset |
CN109040896A (en) * | 2018-11-05 | 2018-12-18 | 长沙拓扑陆川新材料科技有限公司 | A kind of earphone and apart from detection cut-in method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110972010A (en) * | 2019-11-26 | 2020-04-07 | 歌尔股份有限公司 | Earphone control method, earphone and storage medium |
CN110933551A (en) * | 2019-12-05 | 2020-03-27 | 歌尔股份有限公司 | Operation method and system of wireless earphone and wireless communication equipment |
CN113301473A (en) * | 2021-06-10 | 2021-08-24 | 元心信息科技集团有限公司 | Method, device, equipment and storage medium for adjusting volume of earphone equipment |
CN113747299A (en) * | 2021-08-24 | 2021-12-03 | 深圳市豪恩声学股份有限公司 | Earphone and operation control method and system thereof |
Also Published As
Publication number | Publication date |
---|---|
CN109743652B (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109743652A (en) | Headset control method, earphone and computer readable storage medium | |
CN106645978B (en) | The wearing state detection method and detection device of intelligent wearable device | |
CN105228041B (en) | A kind of information processing method and audio output device | |
CN105549740B (en) | A kind of method and apparatus of playing audio-fequency data | |
CN106445151B (en) | A kind of control method and terminal of screen luminance of terminal | |
WO2016192189A1 (en) | Method and apparatus for reducing power consumption of terminal device | |
CN107040660A (en) | Control method, device and the mobile terminal of mobile terminal playing volume | |
CN108646906A (en) | Frame per second method of adjustment, device, storage medium and intelligent terminal | |
CN107484068B (en) | A kind of domestic intelligent speaker and its control method | |
CN108510963A (en) | Method of adjustment, device, storage medium and the intelligent terminal of screen intensity | |
CN110868626A (en) | Method and device for preloading content data | |
CN105376903A (en) | Method and device for adjusting brightness | |
CN108848313B (en) | Multi-person photographing method, terminal and storage medium | |
CN108803896A (en) | Control method, apparatus, terminal and the storage medium of screen | |
CN106033248B (en) | A kind of information processing method and electronic equipment | |
CN108924375A (en) | Processing method, device, storage medium and the terminal of ringing volume | |
CN110213486A (en) | Image capturing method, terminal and computer readable storage medium | |
CN106357913A (en) | Method and device for prompting information | |
CN108234738A (en) | volume adjusting method, device, terminal and storage medium | |
CN108538258A (en) | Adjust method and device, the display equipment of back facet current | |
CN105786439A (en) | Method and device for controlling sound in terminal | |
CN107203264A (en) | The control method of display pattern, device, electronic equipment | |
CN106506846A (en) | A kind of method and device of control terminal audio frequency broadcast state | |
CN107908348B (en) | The method and mobile terminal of display | |
CN107463316A (en) | The method of adjustment and device of screen intensity |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |