CN108810706A - A kind of control method, device, computer equipment and the storage medium of earphone sound channel - Google Patents

A kind of control method, device, computer equipment and the storage medium of earphone sound channel Download PDF

Info

Publication number
CN108810706A
CN108810706A CN201810766173.2A CN201810766173A CN108810706A CN 108810706 A CN108810706 A CN 108810706A CN 201810766173 A CN201810766173 A CN 201810766173A CN 108810706 A CN108810706 A CN 108810706A
Authority
CN
China
Prior art keywords
earphone
receiver
wearing position
sound channel
sensor
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
Application number
CN201810766173.2A
Other languages
Chinese (zh)
Inventor
陶增辉
张习俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China New Engineering Technology Research Institute Co Ltd
Original Assignee
China New Engineering Technology Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China New Engineering Technology Research Institute Co Ltd filed Critical China New Engineering Technology Research Institute Co Ltd
Priority to CN201810766173.2A priority Critical patent/CN108810706A/en
Publication of CN108810706A publication Critical patent/CN108810706A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses a kind of control method, device, computer equipment and the storage medium of earphone sound channel, to solve the problems, such as to lead to profit inconvenient for use using need to artificially distinguish left and right acoustic channels when earphone.The control method of the earphone sound channel includes:Record movement locus of the earphone from initial position to face location;The receiver of the first wearing position of the face location and the corresponding earphone of the second wearing position is judged according to the movement locus;First sound channel is switched into the corresponding receiver of first wearing position and the second sound channel is switched into the corresponding receiver of second wearing position.The present invention by the movement locus of earphone to earphone sound channel self adaptive control it is simple and convenient so that user does not need to distinguish earphone sound channel before wearing earphone, promote usage experience sense.

Description

A kind of control method, device, computer equipment and the storage medium of earphone sound channel
Technical field
The present invention relates to the communications field more particularly to a kind of control method of earphone sound channel, device, computer equipment and deposit Storage media.
Background technology
Earphone is a pair of of converting unit, it receives the electric signal that media player or receiver are sent out, using close to ear Piece loud speaker convert it into the sound wave that can be heard.Earphone is usually separable with media player, is inserted using one Head connection.Sound equipment can be listened to alone in the case where not influencing other people;Also the sound of ambient enviroment can be separated.
Earphone is generally divided into L channel and right channel, restores and establish a multi-faceted sound field ring by left and right acoustic channels Border.It can restore true stereo when listening to music, auditory localization may be implemented when playing game, watching movie.It is now nearly all Earphone be all divided into " L " (representing L channel) and " R " (representing right channel), user will first confirm the side of " L " and " R " before wearing To.If " L " is worn over auris dextra, " R " is worn over left ear, will seriously affect user experience.User can ignore or see in the dark often The reasons such as unclear direction cause left and right regardless of sound channel is inconsistent with wearing position in this way, may result in, and influences the sense of hearing body of user It tests.
There is part research for the adaptive control method of earphone sound channel at present, for example, by the detection to wearing position, Earphone sound channel is distinguished by modes such as image recognitions.But current method is cut again after being worn by user It changes, is consumed when will produce certain, cause the inconvenience used.
The patent of Publication No. CN106254493A provides a kind of earphone sound channel self-adaptation control method and device, wherein Method include:Terminal receives the control signal that target headset is sent, and target headset includes that loudspeaker and at least two pressure pass Sensor, control signal are that the pressure sensor of target headset is generated in the wearing position for detecting target headset;Terminal base Judge the wearing position of target headset in control signal;The first sound channel circuit of terminal that terminal detection is connect with target headset is It is no to be matched with the wearing position of target headset;If mismatching, by the sound channel circuit for the terminal being connect with target headset by the first sound Road circuit switches to second sound channel circuit.The inventive embodiments also disclose corresponding device, can realize that user is wearing ear Do not need to distinguish left and right acoustic channels before machine, i.e., wear earphone in any case, the voice signals of the left and right acoustic channels of acquisition be always it is correct, Promote user's auditory effect.But this method needs again to judge after user wears, and is had centainly to the use of user Influence.
Invention content
The technical problem to be solved in the present invention is designed to provide a kind of control method of earphone sound channel, device, computer Equipment and storage medium, to solve the problems, such as using need to artificially be distinguished when earphone left and right acoustic channels cause it is inconvenient for use profit.
To achieve the goals above, the technical solution adopted by the present invention is:
A kind of control method of earphone sound channel, including step:
Record movement locus of the earphone from initial position to face location;
Judge the first wearing position of the face location and the corresponding institute of the second wearing position according to the movement locus State the receiver of earphone;
First sound channel is switched into the corresponding receiver of first wearing position and switches to the second sound channel The corresponding receiver of second wearing position.
In said program, the step of the record movement locus of the earphone from initial position to face location, specifically include:
First sensor and the 4th sensor, the second biography is respectively set in the first receiver, the second receiver and top of earphone Sensor and the 5th sensor, 3rd sensor and the 6th sensor;
When the 4th sensor, the 5th sensor and the 6th sensor receive pressure, the fortune of the earphone is judged It is dynamic to terminate;
The earphone is recorded to the face location by the first sensor, second sensor and 3rd sensor The direction of motion and move distance.
It is described to judge that the first wearing position of the face location and second is worn according to the movement locus in said program The step of wearing the receiver of the corresponding earphone in position, specifically includes:
Judge whether the earphone is more than given threshold to the move distance of the face location, if so, described in judgement Whether the direction of motion of earphone is first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described First receiver, the corresponding receiver of second wearing position are second receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described Second receiver, the corresponding receiver of second wearing position are first receiver;
Judge whether the earphone is more than given threshold to the move distance of the face location, if it is not, then described in judgement Whether the direction of motion of earphone is first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described Second receiver, the corresponding receiver of second wearing position are first receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described First receiver, the corresponding receiver of second wearing position are second receiver.
It is described first sound channel to be switched into the corresponding receiver of first wearing position and be described in said program Second sound channel switches to the step of second wearing position corresponding receiver, specifically includes:
Detect the corresponding receiver of first wearing position and the corresponding receiver of second wearing position;
Switch the corresponding circuit of first sound channel by microprocessor and first sound channel is connected to first pendant It wears the corresponding receiver in position and switches the second sound channel corresponding circuit and the second sound channel is connected to second wearing The corresponding receiver in position.
A kind of control device of earphone sound channel, including:
Logging modle, for recording movement locus of the earphone from initial position to face location;
Determination module, the first wearing position and second for judging the face location according to the movement locus are worn The receiver of the corresponding earphone in position;
Control module, for first sound channel to be switched to the corresponding receiver of first wearing position and by described Two sound channels switch to the corresponding receiver of second wearing position.
In said program, the logging modle specifically includes:
First sensor and the 4th is respectively set for the first receiver, the second receiver and top in earphone in setting unit Sensor, second sensor and the 5th sensor, 3rd sensor and the 6th sensor;
End unit, for when the 4th sensor, the 5th sensor and the 6th sensor receive pressure, judging The movement of the earphone terminates;
Computing unit is arrived for calculating the earphone by the first sensor, second sensor and 3rd sensor The direction of motion and move distance of the face location.
In said program, the determination module specifically includes:
First judging unit, for judging whether the earphone is more than setting threshold to the move distance of the face location Value, if so, judging whether the direction of motion of the earphone is first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described First receiver, the corresponding receiver of second wearing position are second receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described Second receiver, the corresponding receiver of second wearing position are first receiver;
Second judgment unit, for judging whether the earphone is more than setting threshold to the move distance of the face location Value, if it is not, then judging whether the direction of motion of the earphone is first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described Second receiver, the corresponding receiver of second wearing position are first receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described First receiver, the corresponding receiver of second wearing position are second receiver.
In said program, the control module specifically includes:
Detection unit, for detecting the corresponding receiver of first wearing position and second wearing position is corresponding listens Cylinder;
Switch unit switches the corresponding circuit of first sound channel for passing through microprocessor and connects first sound channel To the corresponding receiver of first wearing position and switches the corresponding circuit of the second sound channel and be connected to the second sound channel The corresponding receiver of second wearing position.
A kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, the processor realize the control of any one of the said program earphone sound channel when executing the computer program The step of method processed.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of any one of the said program control method of the earphone sound channel is realized when row.
The present invention has the following advantages compared with traditional technology:
The present invention by the movement locus of earphone to earphone sound channel self adaptive control so that user is not necessarily to before wearing earphone Earphone sound channel is distinguished, it is simple and convenient, promote usage experience sense.
Description of the drawings
Fig. 1 is the structure chart of the headphone of the embodiment of the present invention.
Fig. 2 is the flow diagram of the control method of earphone sound channel in one embodiment of the invention;
Fig. 3 is the coordinate schematic diagram that the movement locus of record earphone in a specific embodiment of the invention is established;
Fig. 4 is the structural schematic diagram of the control device of earphone sound channel in one embodiment of the invention.
Specific implementation mode
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described, However, the present invention is not limited to these examples.
Unless otherwise defined, the technical field technology people of all of technologies and scientific terms used here by the article and the present invention The normally understood meaning of member is identical.Used term is intended merely to describe specifically to implement in the description of the present invention herein The purpose of example, it is not intended that in the limitation present invention.Term as used herein " first ", " second " etc. are different right for distinguishing As, rather than for describing particular order.
The embodiment of the present invention according to user from place earphone initial point to wear earphone during, the movement locus of earphone, The corresponding sound channel of receiver corresponding to the final wearing position of earphone is determined, to which receiver is connected corresponding sound channel, to use Family no longer needs to judge earphone sound channel before wearing.
The embodiment of the present invention is by taking headphone as an example, and as shown in FIG. 1, FIG. 1 is the headphones of the embodiment of the present invention Structure chart.The headphone includes:First receiver 1, the second receiver 2, connector 3, first sensor 4, second sense Device 5 and 3rd sensor 6, microprocessor 7, the 4th sensor 8, the 5th sensor 9, the 6th sensor 10.Connector 3 is arc Shape, for connecting the first receiver 1 and the second receiver 2 and the headphone being made to stablize on the head of user.First sensor 4 It is arranged on the first receiver 1 with the 4th sensor 8, second sensor 5 and the 5th sensor 9 are arranged on the second receiver 2, third The top in connector 3 is arranged in sensor 6 and the 6th sensor 10, and microprocessor 7 is located inside earphone, for recording earphone Motion path and control track selection.Wherein, first sensor 4, second sensor 5 and 3rd sensor 6 are that gravity passes Sensor, the 4th sensor 8, the 5th sensor 9 and the 6th sensor 10 are pressure sensors.
Referring to Fig. 2, for the flow diagram of the control method of earphone sound channel in one embodiment of the invention, it will be respectively to each A step illustrates.
S101, movement locus of the record earphone from initial position to face location.
Initial position refers to that the position put of earphone before earphone is not used in user.When face location refers to that user wears earphone Position where earphone.Movement locus refers to movement locus of the earphone from initial position to face location.
The embodiment of the present invention is provided with gravity sensor on earphone, and the movement rail of earphone is obtained by gravity sensor Mark.Gravity sensor is exactly that it is utilized is internal due to this characteristic of crystal modification caused by acceleration.Due to this deformation Voltage is generated, as long as calculating the relationship generated between voltage and the acceleration applied, so that it may acceleration is converted to electricity Pressure output.
Microprocessor measures the acceleration caused by gravity by gravity sensor, can record earphone in Vertical Square To and horizontal direction motion path.By analyzing dynamic acceleration, the mode of earphone movement can be analyzed.It records as a result, Movement locus of the earphone from initial position to face location.
S103 judges the first wearing position and the second wearing position corresponding earphone of face location according to movement locus Receiver.
First wearing position and the second wearing position refer to the position for two receivers that face location wears earphone.Such as Usual user is to receive earphone signal by ear.Therefore the first wearing position and the second wearing position respectively refer to the left side of user Ear and auris dextra.In this, it is assumed that the first wearing position is the left ear of user, the second wearing position is the auris dextra of user.
Earphone includes the first receiver and the second receiver.For user when wearing earphone, the first wearing position may correspond to first Receiver or the second receiver, correspondingly, the second wearing position corresponds to the second receiver or the first receiver.
Microprocessor can analyze the movement locus of earphone entirety by the gravity sensor being set on earphone, to Judge the first wearing position and the second wearing position it is corresponding be the first receiver or the second receiver, so as to further into Row sound channel controls.
First sound channel is switched to the corresponding receiver of the first wearing position and second sound channel is switched to the second wearing by S105 The corresponding receiver in position.
First sound channel is the corresponding receiver sound channel of the first wearing position, and second sound channel is the corresponding receiver of the second wearing position Sound channel.Above-described embodiment assumes that the first wearing position is the left ear of user, and the second wearing position is the auris dextra of user.Therefore, originally In inventive embodiments, the first sound channel of definition is L channel, and second sound channel is right channel.
User receives the signal of the first sound channel by the receiver of the first wearing position when using earphone, wears by second The receiver for wearing position receives the signal of second sound channel.That is, the receiver that left ear is worn plays L channel, what auris dextra was worn listens Cylinder plays right channel.In this way, not interfering with the use of earphone, user is not necessarily to distinguish left and right receiver before wearing, can hear just True sound channel.
The present embodiment by microprocessor according to the movement locus of earphone to earphone sound channel self adaptive control so that user exists Earphone sound channel is not needed to distinguish before wearing earphone, it is simple and convenient, promote usage experience sense.
In one implements, step S101, movement locus of the record earphone from initial position to face location specifically includes:
First sensor and the 4th sensor, the second biography is respectively set in the first receiver, the second receiver and top of earphone Sensor and the 5th sensor, 3rd sensor and the 6th sensor;
When the 4th sensor, the 5th sensor and the 6th sensor receive pressure, the fortune of the earphone is judged It is dynamic to terminate;
Pass through the direction of motion and fortune of first sensor, second sensor and 3rd sensor record earphone to face location Dynamic distance.
Still by taking headphone as an example, the sensor of first sensor 1, second sensor 2 and 3rd sensor 3 can be Gravity sensor, gravity sensor are worked according to piezoelectric effect principle, and so-called piezoelectric effect refers to:It is " symmetrical for being not present The heteropolar crystal at center is added in the external force on crystal other than so that crystal is deformed upon, and will also change the polarized state of crystal, Electric field is established in crystals, this there is a phenomenon where the referred to as direct piezoelectric effects that polarizes since mechanical force makes medium ".
Gravity sensor is exactly that it is utilized is internal due to this characteristic of crystal modification caused by acceleration.Due to this Deformation generates voltage, as long as calculating the relationship generated between voltage and the acceleration applied, so that it may to convert acceleration At voltage output.
In one embodiment, reference axis is established by first sensor, second sensor and 3rd sensor, to Analyze the movement locus of earphone.
Referring to Fig. 3, for the reference axis schematic diagram of the movement locus foundation of record earphone in a specific embodiment of the invention.
Using first sensor and second sensor as x-axis, using 3rd sensor as y-axis, wherein second sensor is x-axis Positive direction, 3rd sensor are positive direction of the y-axis.A face can be formed due to 3 points, first sensor, the second sensing Device and 3rd sensor collectively constitute a plane, further, specific earphone can be obtained by the movement locus of earphone Whole movement locus, rather than be only merely the movement locus of some point.
In one embodiment, step S103 judges that the first wearing position of face location and second is worn according to movement locus The step of wearing the receiver of the corresponding earphone in position, specifically includes:
Judge whether earphone is more than given threshold to the move distance of face location, if so, the movement side of judgement earphone To whether being first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
Judge whether earphone is more than given threshold to the move distance of face location, if it is not, then judging the movement side of earphone To whether being first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver.
There are two types of situations from initial position to face location for earphone, for example, initial position is the platform of desktop, user Earphone is picked up from front to be worn;Or on the neck that initial position is user, user picks up from the position hung on neck Earphone is worn.Earphone distance from neck position to face location is closer, from elsewhere to face location apart from farther out.It is micro- Processor can calculate distance of the earphone from initial position to face location by move distance, if distance is no more than setting threshold Value, then judge that earphone is worn from neck position to face location, if more than given threshold, then judge that earphone is from the front of user It wears to face location.
Assume that earphone receiver position during pick up to wearing is not converted in the embodiment of the present invention.
The move distance of the first situation, earphone to face location is more than given threshold, and judgement earphone is before user It wears to face location side.Then continue to judge the direction of motion of earphone.
Here, the direction of motion of earphone refers to the horizontal direction of movement locus, by taking above-mentioned reference axis as an example, it is assumed that movement rail The negative direction of the y-axis of the horizontal direction of mark is first direction.When the direction of motion of earphone is first direction, then the first wearing position Corresponding receiver is the first receiver, and the corresponding receiver of the second wearing position is the second receiver.When the direction of motion of earphone is second When direction, then the corresponding receiver of the first wearing position is the second receiver, and the corresponding receiver of the second wearing position is the first receiver.
Specifically, assuming that the first wearing position is left ear, the second wearing position is auris dextra.When the direction of motion of earphone is the When one direction, i.e. negative direction of the y-axis, that is to say, that at this point, 3rd sensor is the direction far from user, since the first receiver is x Axis negative direction, i.e., on the left side, the second receiver is positive direction of the x-axis, i.e., on the right.When user picks up earphone, left ear wearing is First receiver, auris dextra wearing is the second receiver.Conversely, when the direction of motion of earphone is second direction, i.e. positive direction of the y-axis, That is, at this point, 3rd sensor is close to the direction of user, when earphone is to user movement, the first receiver is user's Auris dextra direction, the second receiver is in the left ear direction of user.Therefore it is the second receiver that left ear, which is worn, and it is the first receiver that auris dextra, which is worn,.
The move distance of the second situation, earphone to face location is not more than given threshold, then judges that earphone is from neck It wears to face location position.At this point, identification method is opposite with the first situation.Still by taking above-mentioned reference axis as an example, when earphone When the direction of motion is second direction, then the corresponding receiver of the first wearing position is the second receiver, and the second wearing position is corresponding to be listened Cylinder is the first receiver.When the direction of motion of earphone is first direction, the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver.
It is to be understood that in practical applications, estimate of situation is not limited to the above embodiments, it can be according to specific operation Situation carries out a variety of judgements.
Above-described embodiment according to the first wearing position of movement locus pair of earphone and the corresponding receiver of the second wearing position into Row judges, voluntarily judges without user, facilitates user's effective use earphone.
In one embodiment, the first sound channel is switched to the corresponding receiver of the first wearing position and by second by step S105 Sound channel switches to the corresponding receiver of the second wearing position, specifically includes:
Detect the corresponding receiver of the first wearing position and the corresponding receiver of the second wearing position;
Switching the corresponding circuit of the first sound channel by microprocessor, that the first sound channel is connected to the first wearing position is corresponding Receiver simultaneously switches second sound channel corresponding circuit second sound channel is connected to the corresponding receiver of the second wearing position.
The central processing unit that microprocessor is made of integrated circuit.These circuits execute control unit and arithmetical logic portion The function of part.It first passes through microprocessor and detects the corresponding receiver of the first wearing position and the corresponding receiver of the second wearing position, so Corresponding sound channel is switched to by correct output position by switching circuit afterwards.
For example, it is assumed that the first sound channel is L channel, second sound channel is right channel.It detects that the first wearing position is corresponding to listen Cylinder is the second receiver, and the corresponding receiver of the second wearing position is the first receiver.Since the first wearing position corresponds to the first sound channel, the Two wearing positions correspond to second sound channel.Then, the corresponding circuit of L channel is connected to the second receiver, by the corresponding electricity of right channel Road is connected to the first receiver.Microprocessor exports corresponding sound channel according to wearing position, in this way, no matter how user wears ear Machine can hear correct channel information.
In the present embodiment microprocessor according to the movement locus of earphone to earphone sound channel self adaptive control so that user is wearing Earphone sound channel is not needed to distinguish before wearing earphone, it is simple and convenient, promote usage experience sense.
Referring to Fig. 4, for the structural schematic diagram of the control device of earphone sound channel in one embodiment of the invention, earphone sound channel The structure of control device includes:
Logging modle 201, movement locus of the user record earphone from initial position to face location;
Determination module 203, the first wearing position and the second wearing position for judging face location according to movement locus The receiver of corresponding earphone;
Control module 205, for the first sound channel to be switched to the corresponding receiver of the first wearing position and cuts second sound channel Shift to the corresponding receiver of the second wearing position.
In one embodiment, logging modle 201 specifically includes:
First sensor and the 4th is respectively set for the first receiver, the second receiver and top in earphone in setting unit Sensor, second sensor and the 5th sensor, 3rd sensor and the 6th sensor;
End unit, for when the 4th sensor, the 5th sensor and the 6th sensor receive pressure, judging The movement of the earphone terminates;
Computing unit, for calculating earphone to face location by first sensor, second sensor and 3rd sensor The direction of motion and move distance.
The move distance for calculating earphone to face location specifically comprises the following steps:
S is distance, and t is the time accelerated, and a is acceleration, replace can obtain uniformly accelerated motion distance be often expressed as formula:
Run duration t can be carried out timing by microprocessor, and acceleration a is provided by gravity sensor, by calculating in the time 0 The calculus of S can be obtained total move distance in~t.
Wherein, the direction of motion about judgement earphone is as follows:
If the last wearing posture of earphone is uprightly to be worn on the head, it will be had before moving to face and be rotated into earphone directly The action of standing position state.
First method:When the earphone direction of motion is first direction, 3rd sensor can have towards the direction of motion at this time One acceleration for being significantly greater than first sensor and second sensor;When the earphone direction of motion is second direction, at this time the One sensor and second sensor can have the acceleration of significantly greater than 3rd sensor towards the direction of motion, be passed by record first The acceleration value of sensor, second sensor and 3rd sensor is the direction of motion that can determine whether earphone.
Second method:Calculate first sensor, the distance of second sensor and 3rd sensor during the motion.The The move distance of three sensors is bigger than the move distance of first sensor and second sensor, judges the earphone direction of motion for first Reversely;When the move distance of 3rd sensor is smaller than the move distance of first sensor and second sensor, judge that earphone moves Direction is second direction.
Two methods can select one kind or be used in conjunction with to improve judgment accuracy.
Preferably:
In one embodiment, determination module 203 specifically includes:
First judging unit, for judging whether earphone is more than given threshold to the move distance of face location, if so, Judge whether the direction of motion of earphone is first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
Second judgment unit, for judging whether earphone is more than given threshold to the move distance of face location, if it is not, then Judge whether the direction of motion of earphone is first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver.
In one embodiment, control module 205 specifically includes:
Detection unit, for detecting the corresponding receiver of the first wearing position and the corresponding receiver of the second wearing position;
First sound channel is connected to the first pendant by switch unit for switching the corresponding circuit of the first sound channel by microprocessor It wears the corresponding receiver in position and switches second sound channel corresponding circuit and second sound channel is connected to the second wearing position is corresponding to be listened Cylinder.
In the present embodiment microprocessor according to the movement locus of earphone to earphone sound channel self adaptive control so that user is wearing Earphone sound channel is not needed to distinguish before wearing earphone, it is simple and convenient, promote usage experience sense.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize following steps when executing computer program:User record ear Movement locus of the machine from initial position to face location;For judged according to movement locus face location the first wearing position and The receiver of the corresponding earphone of second wearing position;For the first sound channel to be switched to the corresponding receiver of the first wearing position and by Two sound channels switch to the corresponding receiver of the second wearing position.
In one embodiment, processor is executing computer program realization user record earphone from initial position to face position When the step for the movement locus set, following steps are implemented:
First sensor, second sensor and third is respectively set in the first receiver, the second receiver and top of earphone to pass Sensor;
Pass through the direction of motion and fortune of first sensor, second sensor and 3rd sensor calculating earphone to face location Dynamic distance.
In one embodiment, processor judges the first of face location according to movement locus in execution computer program realization When the step of the receiver of wearing position and the corresponding earphone of the second wearing position, following steps are implemented:
Judge whether earphone is more than given threshold to the move distance of face location, if so, the movement side of judgement earphone To whether being first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
Judge whether earphone is more than given threshold to the move distance of face location, if it is not, then judging the movement side of earphone To whether being first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver.
In one embodiment, processor is realized in execution computer program switches to the first wearing position pair by the first sound channel The receiver answered and when second sound channel is switched to the step of the corresponding receiver of the second wearing position, implements following steps:
Detect the corresponding receiver of the first wearing position and the corresponding receiver of the second wearing position;
First sound channel is connected to the first pendant by switch unit for switching the corresponding circuit of the first sound channel by microprocessor It wears the corresponding receiver in position and switches second sound channel corresponding circuit and second sound channel is connected to the second wearing position is corresponding to be listened Cylinder.
Above computer equipment according to the movement locus of earphone to earphone sound channel self adaptive control so that user is wearing ear Earphone sound channel is not needed to distinguish before machine, it is simple and convenient, promote usage experience sense.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, computer program Following steps are realized when being executed by processor:Movement locus of the user record earphone from initial position to face location;For root The receiver of the first wearing position and the corresponding earphone of the second wearing position of face location is judged according to movement locus;For by first Sound channel switches to the corresponding receiver of the first wearing position and second sound channel is switched to the corresponding receiver of the second wearing position.
In one embodiment, processor is executing computer program realization user record earphone from initial position to face position When the step for the movement locus set, following steps are implemented:
First sensor, second sensor and third is respectively set in the first receiver, the second receiver and top of earphone to pass Sensor;
Pass through the direction of motion and fortune of first sensor, second sensor and 3rd sensor calculating earphone to face location Dynamic distance.
In one embodiment, processor judges the first of face location according to movement locus in execution computer program realization When the step of the receiver of wearing position and the corresponding earphone of the second wearing position, following steps are implemented:
Judge whether earphone is more than given threshold to the move distance of face location, if so, the movement side of judgement earphone To whether being first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
Judge whether earphone is more than given threshold to the move distance of face location, if it is not, then judging the movement side of earphone To whether being first direction;
If the direction of motion of earphone is first direction, judge that the corresponding receiver of the first wearing position is the second receiver, the The corresponding receiver of two wearing positions is the first receiver;
If the direction of motion of earphone is second direction, judge that the corresponding receiver of the first wearing position is the first receiver, the The corresponding receiver of two wearing positions is the second receiver.
In one embodiment, processor is realized in execution computer program switches to the first wearing position pair by the first sound channel The receiver answered and when second sound channel is switched to the step of the corresponding receiver of the second wearing position, implements following steps:
Detect the corresponding receiver of the first wearing position and the corresponding receiver of the second wearing position;
First sound channel is connected to the first pendant by switch unit for switching the corresponding circuit of the first sound channel by microprocessor It wears the corresponding receiver in position and switches second sound channel corresponding circuit and second sound channel is connected to the second wearing position is corresponding to be listened Cylinder.
Above computer readable storage medium storing program for executing according to the movement locus of earphone to earphone sound channel self adaptive control so that user Earphone sound channel is not needed to distinguish before wearing earphone, it is simple and convenient, promote usage experience sense.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, computer program can be stored in a non-volatile computer and can be read In storage medium, the computer program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the application Any reference to memory, storage, database or other media used in each embodiment provided, may each comprise non- Volatibility/or volatile memory.Nonvolatile memory may include system memory (ROM), programming ROM (PROM), electricity Programming ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include that arbitrary access is deposited Reservoir (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of the above various embodiments can be combined arbitrarily, to keep description succinct, not to above-mentioned implementation Example in each technology all possible combinations be all described, as long as however, the combination of these technical characteristics be not present contradiction, all answer When the range for being considered that this specification is recorded.
Specific embodiment described herein is only an example for the spirit of the invention.Technology belonging to the present invention is led The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.

Claims (10)

1. a kind of control method of earphone sound channel, which is characterized in that including step:
Record movement locus of the earphone from initial position to face location;
Judge the first wearing position of the face location and the corresponding ear of the second wearing position according to the movement locus The receiver of machine;
First sound channel is switched to the corresponding receiver of first wearing position and second sound channel is switched to described second and is worn The corresponding receiver in position.
2. the control method of earphone sound channel according to claim 1, which is characterized in that the record earphone is from initial position To face location movement locus the step of, specifically include:
First sensor and the 4th sensor, second sensor is respectively set in the first receiver, the second receiver and top of earphone And the 5th sensor, 3rd sensor and the 6th sensor;
When the 4th sensor, the 5th sensor and the 6th sensor receive pressure, the movement knot of the earphone is judged Beam;
Movement of the earphone to the face location is recorded by the first sensor, second sensor and 3rd sensor Direction and move distance.
3. the control method of earphone sound channel according to claim 2, which is characterized in that described to be sentenced according to the movement locus It is the step of receiver of first wearing position of the face location of breaking and the corresponding earphone of the second wearing position, specific to wrap It includes:
Judge whether the earphone is more than given threshold to the move distance of the face location, if so, judging the earphone The direction of motion whether be first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described first Receiver, the corresponding receiver of second wearing position are second receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described second Receiver, the corresponding receiver of second wearing position are first receiver;
Judge whether the earphone is more than given threshold to the move distance of the face location, if it is not, then judging the earphone The direction of motion whether be first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described second Receiver, the corresponding receiver of second wearing position are first receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described first Receiver, the corresponding receiver of second wearing position are second receiver.
4. the control method of earphone sound channel according to claim 1, which is characterized in that described that first sound channel is switched to institute The step of stating the corresponding receiver of the first wearing position and second sound channel is switched into second wearing position corresponding receiver, tool Body includes:
Detect the corresponding receiver of first wearing position and the corresponding receiver of second wearing position;
Switch the corresponding circuit of first sound channel by microprocessor and first sound channel is connected to first wearing position It sets corresponding receiver and switches the second sound channel corresponding circuit and the second sound channel is connected to second wearing position Corresponding receiver.
5. a kind of control device of earphone sound channel, which is characterized in that including:
Logging modle, for recording movement locus of the earphone from initial position to face location;
Determination module, the first wearing position and the second wearing position for judging the face location according to the movement locus The receiver of the corresponding earphone;
Control module, for the first sound channel to be switched to the corresponding receiver of first wearing position and switches to second sound channel The corresponding receiver of second wearing position.
6. the control device of earphone sound channel according to claim 5, which is characterized in that the logging modle specifically includes:
Setting unit, for first sensor and the 4th sensing to be respectively set in the first receiver, the second receiver and top of earphone Device, second sensor and the 5th sensor, 3rd sensor and the 6th sensor;
End unit, for when the 4th sensor, the 5th sensor and the 6th sensor receive pressure, described in judgement The movement of earphone terminates;
Computing unit, for calculating the earphone described in by the first sensor, second sensor and 3rd sensor The direction of motion and move distance of face location.
7. the control device of earphone sound channel according to claim 6, which is characterized in that the determination module specifically includes:
First judging unit, for judging whether the earphone is more than given threshold to the move distance of the face location, if It is then to judge whether the direction of motion of the earphone is first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described first Receiver, the corresponding receiver of second wearing position are second receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described second Receiver, the corresponding receiver of second wearing position are first receiver;
Second judgment unit, for judging whether the earphone is more than given threshold to the move distance of the face location, if It is no, then judge whether the direction of motion of the earphone is first direction;
If the direction of motion of the earphone is first direction, judge that the corresponding receiver of first wearing position is described second Receiver, the corresponding receiver of second wearing position are first receiver;
If the direction of motion of the earphone is second direction, judge that the corresponding receiver of first wearing position is described first Receiver, the corresponding receiver of second wearing position are second receiver.
8. the control device of earphone sound channel according to claim 5, which is characterized in that the control module specifically includes:
Detection unit, for detecting the corresponding receiver of first wearing position and the corresponding receiver of second wearing position;
Switch unit switches the corresponding circuit of first sound channel for passing through microprocessor and first sound channel is connected to institute State the corresponding receiver of the first wearing position and switch the second sound channel corresponding circuit the second sound channel is connected to it is described The corresponding receiver of second wearing position.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 4 institute when executing the computer program The step of stating the control method of earphone sound channel.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of control method of earphone sound channel described in any one of claims 1 to 4 is realized when being executed by processor.
CN201810766173.2A 2018-07-12 2018-07-12 A kind of control method, device, computer equipment and the storage medium of earphone sound channel Pending CN108810706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810766173.2A CN108810706A (en) 2018-07-12 2018-07-12 A kind of control method, device, computer equipment and the storage medium of earphone sound channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810766173.2A CN108810706A (en) 2018-07-12 2018-07-12 A kind of control method, device, computer equipment and the storage medium of earphone sound channel

Publications (1)

Publication Number Publication Date
CN108810706A true CN108810706A (en) 2018-11-13

Family

ID=64076309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810766173.2A Pending CN108810706A (en) 2018-07-12 2018-07-12 A kind of control method, device, computer equipment and the storage medium of earphone sound channel

Country Status (1)

Country Link
CN (1) CN108810706A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012376A (en) * 2019-03-25 2019-07-12 歌尔科技有限公司 A kind of control method, earphone and the storage medium of earphone sound channel
CN111464906A (en) * 2020-04-10 2020-07-28 歌尔科技有限公司 Headset and left and right sound channel switching device and method thereof
CN112218196A (en) * 2019-07-10 2021-01-12 Oppo广东移动通信有限公司 Earphone and earphone control method
CN113411702A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Sound channel configuration method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316394A (en) * 2010-06-30 2012-01-11 索尼爱立信移动通讯有限公司 Bluetooth equipment and the audio frequency playing method that utilizes this bluetooth equipment
CN103686508A (en) * 2012-08-30 2014-03-26 蒙斯特有限公司 Automatic power adjusting headphones
CN104113794A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method, information processing system and headset
CN205622803U (en) * 2016-04-15 2016-10-05 北京京东尚科信息技术有限公司 Headset
CN107071648A (en) * 2017-06-19 2017-08-18 深圳市泰衡诺科技有限公司上海分公司 Sound plays regulating system, device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316394A (en) * 2010-06-30 2012-01-11 索尼爱立信移动通讯有限公司 Bluetooth equipment and the audio frequency playing method that utilizes this bluetooth equipment
CN103686508A (en) * 2012-08-30 2014-03-26 蒙斯特有限公司 Automatic power adjusting headphones
CN104113794A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method, information processing system and headset
CN205622803U (en) * 2016-04-15 2016-10-05 北京京东尚科信息技术有限公司 Headset
CN107071648A (en) * 2017-06-19 2017-08-18 深圳市泰衡诺科技有限公司上海分公司 Sound plays regulating system, device and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012376A (en) * 2019-03-25 2019-07-12 歌尔科技有限公司 A kind of control method, earphone and the storage medium of earphone sound channel
CN112218196A (en) * 2019-07-10 2021-01-12 Oppo广东移动通信有限公司 Earphone and earphone control method
CN113411702A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Sound channel configuration method and electronic equipment
CN113411702B (en) * 2020-03-16 2024-05-14 维沃移动通信有限公司 Sound channel configuration method and electronic equipment
CN111464906A (en) * 2020-04-10 2020-07-28 歌尔科技有限公司 Headset and left and right sound channel switching device and method thereof

Similar Documents

Publication Publication Date Title
CN108810706A (en) A kind of control method, device, computer equipment and the storage medium of earphone sound channel
US10306355B2 (en) Orientation free handsfree device
CN102823272B (en) Headphones
CN105228041A (en) A kind of information processing method and audio output device
US10959028B2 (en) Method for operating a hearing device and hearing device
WO2020015301A1 (en) Noise reducing earphone
US20180242069A1 (en) Earpiece with tap functionality
CN111698607B (en) TWS earphone audio output control method, apparatus, device and medium
CN103617801A (en) Voice detection method and device and electronic equipment
CN104052851A (en) Method and device for improving call quality of hand-free call device and hand-free call device
CN107040835A (en) Headphone device
CN113473286A (en) State detection method, earphone and computer readable storage medium
CN106302974B (en) information processing method and electronic equipment
WO2019109420A1 (en) Left and right channel determining method and earphone device
CN105120390A (en) Headphone socket, headphone plug and electronic device
CN108055605B (en) Neck wire Bluetooth earphone and application method thereof
WO2022170590A1 (en) Method for determining capacitance reference, apparatus for determining capacitance reference, and device
JP3202083U (en) A system for fitting an audio signal to the ear in use
CN113207056A (en) Wireless earphone and transparent transmission method, device and system thereof
CN104902363A (en) Method and device for assistantly recognizing earphone output end
WO2022199319A1 (en) Audio output method and apparatus, computer device, and storage medium
US20200314568A1 (en) Accelerometer-Based Selection of an Audio Source for a Hearing Device
CN206698392U (en) Noise cancelling headphone and electronic equipment
US11942107B2 (en) Voice activity detection with low-power accelerometer
CN115499744A (en) Earphone noise reduction method and device, computer readable storage medium and earphone

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113

RJ01 Rejection of invention patent application after publication