CN108307261A - A kind of adaptive earphone sound channel switching method and apparatus - Google Patents

A kind of adaptive earphone sound channel switching method and apparatus Download PDF

Info

Publication number
CN108307261A
CN108307261A CN201710020256.2A CN201710020256A CN108307261A CN 108307261 A CN108307261 A CN 108307261A CN 201710020256 A CN201710020256 A CN 201710020256A CN 108307261 A CN108307261 A CN 108307261A
Authority
CN
China
Prior art keywords
headset earpiece
channel
value
threshold value
sound channel
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
CN201710020256.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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710020256.2A priority Critical patent/CN108307261A/en
Publication of CN108307261A publication Critical patent/CN108307261A/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
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)

Abstract

The embodiment of the invention discloses a kind of adaptive earphone sound channel switching method, the method includes:Obtain the distance parameter of headset earpiece;Wherein, the distance parameter includes the distance between the headset earpiece and user's auricle;According to the relationship between the distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of the headset earpiece.The embodiment of the present invention also discloses a kind of adaptive earphone Acoustic channel switching device simultaneously.

Description

A kind of adaptive earphone sound channel switching method and apparatus
Technical field
The present invention relates in the communications field adaptive earphone sound channel handoff technique more particularly to a kind of adaptive earphone sound Channel switching method and device.
Background technology
Earphone species in existing market are more and more, classify by earphone interface, including 3.5 millimeters of interface headphones and Universal serial bus (Universal Serial Bus, USB) interface headphones, wherein USB interface earphone includes that Micro-USB connects Mouth earphone, Mini-USB interface headphones and Type-C USB interface earphones;Classify to earphone in the way of wearing, including enters Aural headphone, PlayGear Stealth and headphone.There is the audio in the file of audio-frequency information for music playing file etc. Information is typically to be obtained using stereophonic recording mode, for experience such as the music of pursuing high-quality, in prior art In, mark R and L to realize played in stereo in order to which user can wear earphone according to mark usually on earphone.
But in the prior art scheme, user needs deliberately to confirm that headset earpiece corresponds to left ear or the right side before wearing earphone Ear can have the case where user is not according to the R and L mark wearing earphones on earphone, influence the stereophonic effect of audio-frequency information, Cause user poor using the experience effect of earphone.
Invention content
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of adaptive earphone sound channel switching method and dresses It sets, solves the problems, such as to need to confirm the mark and ear in headset earpiece when user wears earphone in the prior art, ensure that The stereophonic effect of the audio-frequency information of broadcasting improves the experience effect that user uses earphone.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
A kind of adaptive earphone sound channel switching method, the method includes:
Obtain the distance parameter of headset earpiece;Wherein, the distance parameter include the headset earpiece with user's auricle it Between distance;
According to the relationship between the distance parameter and pre-determined distance threshold value, it is determined whether switch the sound of the headset earpiece Road.
Optionally, first sensor, the distance parameter for obtaining headset earpiece, packet are provided in the headset earpiece It includes:
The distance parameter for obtaining the headset earpiece is measured by the first sensor.
Optionally, the relationship according between the distance parameter and pre-determined distance threshold value, it is determined whether described in switching The sound channel of headset earpiece, including:
The absolute value for calculating the distance parameter and the difference of distance reference value, obtains the first numerical value;
According to the relationship between first numerical value and the pre-determined distance threshold value, the present bit of the headset earpiece is obtained It sets and whether is matched with the headset earpiece current channel, and determine whether to switch the sound channel of the headset earpiece;
When detecting that the headset earpiece is stopped, the sound channel for switching the headset earpiece is original channel.
Optionally, the relationship according between first numerical value and the pre-determined distance threshold value, obtains the earphone Whether the current location of receiver matches with the headset earpiece current channel, and determines whether to switch the sound of the headset earpiece Road, including:
Judge the relationship between first numerical value and the pre-determined distance threshold value;
If first numerical value is less than or equal to the pre-determined distance threshold value, the current location of the headset earpiece is obtained It is matched with the headset earpiece current channel, without switching the sound channel;
If first numerical value is more than the pre-determined distance threshold value, the current location of the headset earpiece and the ear are obtained Machine receiver current channel mismatch, and according to default switching law switch the headset earpiece sound channel be and the headset earpiece The different sound channel of current channel.
Optionally, it is provided with second sensor in the headset earpiece, the method further includes:
The pressure parameter of the headset earpiece is obtained by the second sensor;Wherein, the pressure parameter includes institute State the pressure value between headset earpiece and the user's ear;
The absolute value for calculating the difference of the pressure parameter and compression force reference value, obtains second value;
Judge the relationship between the second value and preset pressure threshold value;
If first numerical value is more than the pre-determined distance threshold value and the second value is more than the preset pressure threshold value, The current location and the headset earpiece current channel for obtaining the headset earpiece mismatch, and according to the default switching law The sound channel for switching the headset earpiece is the sound channel different from the headset earpiece current channel.
Optionally, 3rd sensor and the 4th sensor are provided in the headset earpiece, the acquisition headset earpiece Before distance parameter, including:
The gravitation information of the headset earpiece is obtained by the 3rd sensor;
The angle information of the headset earpiece is obtained by the 4th sensor;
If the gravitation information is unsatisfactory for default gravity threshold value and the angle information is unsatisfactory for predetermined angle threshold value, generate Prompt message;Wherein, the prompt message is used to indicate the user and wears earphone again.
A kind of adaptive earphone Acoustic channel switching device, described device include:First acquisition unit and processing unit;Wherein:
The first acquisition unit, the distance parameter for obtaining headset earpiece;Wherein, the distance parameter includes described The distance between headset earpiece and user's auricle;
The processing unit, for according to the relationship between the distance parameter and pre-determined distance threshold value, it is determined whether cut Change the sound channel of the headset earpiece.
Optionally, first sensor is provided in the headset earpiece, the acquiring unit is specifically used for:
The distance parameter for obtaining the headset earpiece is measured by the first sensor.
Optionally, the processing unit includes:First computing module, first processing module and handover module;Wherein:
First computing module, the absolute value for calculating the distance parameter and the difference of distance reference value, obtains First numerical value;
The first processing module, for according to the relationship between first numerical value and the pre-determined distance threshold value, obtaining Whether matched with the headset earpiece current channel to the current location of the headset earpiece, and determines whether to switch the earphone The sound channel of receiver;
The handover module, for when detecting that the headset earpiece is stopped, switching the sound of the headset earpiece Road is original channel.
Optionally, the first processing module, is specifically used for:
Judge the relationship between first numerical value and the pre-determined distance threshold value;
If first numerical value is less than or equal to the pre-determined distance threshold value, the current location of the headset earpiece is obtained It is matched with the headset earpiece current channel, without switching the sound channel;
If first numerical value is more than the pre-determined distance threshold value, the current location of the headset earpiece and the ear are obtained Machine receiver current channel mismatch, and according to default switching law switch the headset earpiece sound channel be and the headset earpiece The different sound channel of current channel.
Optionally, second sensor is provided in the headset earpiece, the processing unit further includes:Acquisition module, Two computing modules, judgment module and Second processing module;Wherein:
The acquisition module, the pressure parameter for obtaining the headset earpiece by the second sensor;Wherein, institute It includes the pressure value between the headset earpiece and the user's ear to state pressure parameter;
Second computing module, the absolute value of the difference for calculating the pressure parameter and compression force reference value, obtains Second value;
The judgment module, for judging the relationship between the second value and preset pressure threshold value;
The Second processing module, if being more than the pre-determined distance threshold value and the second value for first numerical value More than the preset pressure threshold value, the current location and the headset earpiece current channel that obtain the headset earpiece mismatch, And the sound channel for switching the headset earpiece according to the default switching law is the sound different from the headset earpiece current channel Road.
Optionally, be provided with 3rd sensor and the 4th sensor in the headset earpiece, the first acquisition unit it Before further include:Second acquisition unit and generation unit;Wherein:
The second acquisition unit, the gravitation information for obtaining the headset earpiece by the 3rd sensor;
The second acquisition unit is additionally operable to obtain the angle information of the headset earpiece by the 4th sensor;
The generation unit, if being unsatisfactory for default gravity threshold value for the gravitation information and the angle information is unsatisfactory for Predetermined angle threshold value generates prompt message;Wherein, the prompt message is used to indicate the user and wears earphone again.
The adaptive earphone sound channel switching method and apparatus that the embodiment of the present invention is provided, by obtaining headset earpiece After distance parameter, according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of headset earpiece;This Sample by the distance between measurement headset earpiece to auricle, and is analyzed the distance of acquisition to switch the sound channel of earphone, solution The problem of mark and ear needed when user wears earphone in the prior art in confirmation headset earpiece of having determined, it ensure that broadcasting The stereophonic effect of audio-frequency information improves the experience effect that user uses earphone.
Description of the drawings
Fig. 1 is a kind of flow diagram of adaptive earphone sound channel switching method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another adaptive earphone sound channel switching method provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram for the position that first sensor is arranged in a kind of PlayGear Stealth provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another adaptive earphone sound channel switching method provided in an embodiment of the present invention;
Fig. 5 is that second sensor, 3rd sensor and the 4th is arranged in a kind of PlayGear Stealth provided in an embodiment of the present invention The schematic diagram of the position of sensor;
Fig. 6 is a kind of structural schematic diagram of adaptive earphone Acoustic channel switching device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another adaptive earphone Acoustic channel switching device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another adaptive earphone Acoustic channel switching device provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram for adaptive earphone Acoustic channel switching device that another embodiment of the present invention provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes.
The embodiment of the present invention provides a kind of adaptive earphone sound channel switching method, and shown referring to Fig.1, this method includes following Step:
Step 101, the distance parameter for obtaining headset earpiece.
Wherein, distance parameter includes the distance between headset earpiece and user's auricle.
Specifically, the distance parameter that step 101 obtains headset earpiece can be realized by terminal.Terminal can be have it is micro- The earphone of type controller is taken by the data collector being arranged in headset earpiece between headset earpiece and user's auricle Distance.
Step 102, according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switch the sound of headset earpiece Road.
Specifically, step 102 is according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switching earphone is listened The sound channel of cylinder can be realized by terminal.Pre-determined distance threshold value can be terminal production firm progress many experiments, and to realizing As a result an empirical value of analyzing processing acquisition is carried out;Can also be during follow-up use, according to the mark according to earphone The distance between headset earpiece and user's auricle when correct configuration earphone, are modified pre-determined distance threshold value, make pre-determined distance Threshold value is more in line with user's individual difference;The sound channel of earphone may include L channel and right channel.
The adaptive earphone sound channel switching method that the embodiment of the present invention is provided, the distance by obtaining headset earpiece are joined After number, according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of headset earpiece;In this way, logical Measurement headset earpiece is crossed the distance between to auricle, and the distance of acquisition is analyzed to switch the sound channel of earphone, is solved The problem of needing to confirm the mark and ear in headset earpiece when user wears earphone in the prior art, ensure that the audio of broadcasting The stereophonic effect of information improves the experience effect that user uses earphone.
The embodiment of the present invention provides a kind of adaptive earphone sound channel switching method, and with reference to shown in Fig. 2, this method includes following Step:
Step 201, terminal measure the distance parameter for obtaining headset earpiece by first sensor.
Specifically, first sensor can be the sensor for measurement distance, such as can be range sensor, close Sensor etc..First sensor can be arranged in headset earpiece, can be respectively provided with first sensor in two headset earpieces. It is proximity sensor as PlayGear Stealth, PlayGear Stealth and mobile communication, first sensor using terminal and is arranged in two ears It is illustrated on machine receiver, when PlayGear Stealth receives the audio-frequency information of mobile phone output, and user is by ear type ear After machine is worn, the proximity sensor being arranged in the headset earpiece of PlayGear Stealth can obtain headset earpiece and user respectively The distance parameter of acquisition is sent to the microcontroller in PlayGear Stealth by the distance parameter of left and right auricle, proximity sensor, Subsequent processing is carried out in order to the microcontroller pair pitch parameters of PlayGear Stealth.
Wherein, the position that proximity sensor is arranged on PlayGear Stealth can be the rear shell cover and casing in headset earpiece On, when the original channel of a headset earpiece of PlayGear Stealth is L channel, can be arranged in rear shell cover or casing The left side in rear shell cover or casing can be arranged when the original channel of corresponding another headset earpiece is right channel in right side, The left and right of rear shell cover or casing can determine according to the correct wearing mode of PlayGear Stealth, can be with earplug shown in Fig. 3 First sensor is set at dotted line frame 1 and/or 2 positions in formula earphone shape structural schematic diagram, wherein indicating the headset earpiece 3 of L Expression original channel is L channel, and the headset earpiece 4 for indicating R indicates that original channel is right channel.
Step 202, terminal calculate the absolute value of distance parameter and the difference of distance reference value, obtain the first numerical value.
Specifically, if the original channel of earphone is L channel, distance parameter can use a1It indicates;If the original sound of earphone Road is L channel, and the distance parameter of right channel can use a2It indicates, it is assumed that the distance reference value of L channel is b1, right channel Distance reference value is b2, wherein b1And b2It may be the same or different, then can obtain the first numerical value c of L channel1=| a1-b1|, the first numerical value c of right channel2=| a2-b2|。
Step 203, terminal obtain the present bit of headset earpiece according to the relationship between the first numerical value and pre-determined distance threshold value It sets and whether is matched with headset earpiece current channel, and determine whether to switch the sound channel of headset earpiece.
Wherein, step 203 terminal obtains working as headset earpiece according to the relationship between the first numerical value and pre-determined distance threshold value Whether front position matches with headset earpiece current channel, and determines whether that the sound channel for switching headset earpiece can pass through following steps To realize:
Step 203a, terminal judges the relationship between the first numerical value and pre-determined distance threshold value.
If step 203b, the first numerical value is less than or equal to pre-determined distance threshold value, terminal obtains the present bit of headset earpiece It sets and is matched with headset earpiece current channel, without switching sound channel.
If step 203c, the first numerical value is more than pre-determined distance threshold value, terminal obtains current location and the earphone of headset earpiece Receiver current channel mismatch, and according to default switching law switch headset earpiece sound channel be with headset earpiece current channel not Same sound channel.
Specifically, PlayGear Stealth can be to the first numerical value of L channel c1With L channel pre-determined distance threshold value g1, right channel One numerical value c2With right channel pre-determined distance threshold value g2Size comparison is carried out, c is worked as1≤g1And c2≤g2When, show headset earpiece to use The distance parameter of left and right acoustic channels between the auricle of family is allowing in variation range, illustrates the present bit for the headset earpiece that user wears It sets left ear to match with the original channel L channel of earphone, auris dextra is matched with the original channel right channel of earphone, therefore can not had to Carry out sound channel switching;Work as c1>g1And c2>g2When, show that headset earpiece to the distance parameter of the left and right ear between user's auricle has surpassed Go out to allow variation range, illustrates that the original channel of user's wearing is the right side that the current location of the headset earpiece of L channel is user Ear, original channel are that the current location of the headset earpiece of right channel is the left ear of user, therefore can be utilized in PlayGear Stealth The microcontroller of setting switches over the sound channel of headset earpiece, and the L channel for the headset earpiece worn on current auris dextra is cut It is changed to right channel, the right channel for the headset earpiece worn on left ear is switched to L channel.Wherein, miniature in PlayGear Stealth Controller can carry out sound channel switching by controlling the pin level of left and right acoustic channels.
Step 204, when detecting that headset earpiece is stopped, terminal switch headset earpiece sound channel be original channel.
Specifically, original channel can be that production firm is corresponding to each headset earpiece of earphone when earphone dispatches from the factory What sound channel was pre-set, it is referred to as the acquiescence sound channel of headset earpiece;It can be earphone that headset earpiece, which is stopped, It disconnects and communicating to connect with equipment, can also be that earphone does not detect audio-frequency information etc. in preset time.For example, working as mobile phone and ear After machine disconnects communication connection, the microcontroller in PlayGear Stealth produces when the sound channel of headset earpiece is switched to earphone manufacture The corresponding sound channel of corresponding each receiver of manufacturer's setting.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or concept, is referred to Description in other embodiments, details are not described herein again.
The adaptive earphone sound channel switching method that the embodiment of the present invention is provided, by the distance parameter for obtaining headset earpiece Afterwards, according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of headset earpiece;In this way, passing through Headset earpiece is measured the distance between to auricle, and the distance of acquisition analyze to switch the sound channel of earphone, solves and shows There is the problem of needing to confirm the mark and ear in headset earpiece when user wears earphone in technology, ensure that the audio letter of broadcasting The stereophonic effect of breath improves the experience effect that user uses earphone.
The embodiment of the present invention provides a kind of adaptive earphone sound channel switching method, and with reference to shown in Fig. 4, this method includes following Step:
Step 301, terminal obtain the gravitation information of headset earpiece by 3rd sensor.
Specifically, 3rd sensor can be the gravity sensor of the gravitation information for measuring headset earpiece.
Step 302, terminal obtain the angle information of headset earpiece by the 4th sensor.
Specifically, the 4th sensor can be the angular transducer of the angle information for measuring headset earpiece.Wherein, weight Whether force information and angle information can be used cooperatively, correctly worn for test earphone, for example, PlayGear Stealth correct pendant Wear mode be earphone casing vertically downward, the external auditory canal of user, wherein 3rd sensor are filled in the receiver front end of PlayGear Stealth It can be located on the same line, and can be arranged in the edge of headset earpiece front end with the installation position of the 4th sensor, In this way, the output of earpiece audio information can not be influenced;It can be that the earphone parallel with earphone casing is listened to be preferable to provide position Two marginal points up and down of cylinder front end central axes, 3rd sensor can be arranged at up contour point, can also be arranged following At edge point, corresponding 4th sensor can be arranged at down contour point, can also be arranged at up contour point, not appoint specifically What is limited.The specific installation position of 3rd sensor and the 4th sensor can be as shown in Figure 5, and 3rd sensor and the 4th passes Sensor can be arranged to be passed in the position at 5,6 place of dotted ellipse circle for the headset earpiece 3 that original channel is L channel and third Sensor and the 4th sensor can be arranged in the position where the dotted ellipse circle 7,8 for the headset earpiece 4 that original channel is right channel It sets.
Wherein, for the operation order between step 301 and step 302 without point of priority, step 301 can be in step 302 It executes later, or operation can be carried out at the same time with step 302, specific implementation procedure can be true according to actual application scenarios It is fixed;
Step 303, terminal judge whether gravitation information meets default gravity threshold value, while also judging whether angle information is full Then predetermined angle threshold value.
Specifically, the gravitation information obtained can use the performance of the compass in a similar existing mobile phone with angle information Form is come while being indicated, wherein the pointer of a similar cross may be used to indicate in gravitation information, and angle information can lead to 360 ° of scale dial plate is crossed to indicate, the angle that the gravitation information and angular transducer that can also obtain gravity sensor obtain Information is converted to corresponding numerical value and is shown.When default gravity threshold value can be to correctly wearing earphone to the center of gravity of earphone into The empirical value that a large amount of detections of row obtain;When predetermined angle threshold value can be to correctly wearing earphone to earphone casing with it is vertical Angle between position carries out the empirical value that a large amount of detections obtain.
If step 304, gravitation information are unsatisfactory for default gravity threshold value and angle information is unsatisfactory for predetermined angle threshold value, terminal Generate prompt message.
Wherein, prompt message is used to indicate user and wears earphone again.
Specifically, no matter whether angle information meets predetermined angle threshold value, as long as gravitation information, which meets, presets gravity threshold value, Or no matter whether gravitation information meets default gravity threshold value indicates earphone as long as angle information meets predetermined angle threshold value Correctly wear.When acquisition headset earpiece gravitation information not in default gravity threshold value and the angle information of headset earpiece When not in predetermined angle threshold value, indicate that the current wearing mode of earphone is incorrect, earphone can send the control for generating prompt message Equipment of the system instruction to being communicated with earphone prompts user again according to correct wearing mode in order to which equipment generates prompt message Wear earphone.
Step 305, terminal measure the distance parameter for obtaining headset earpiece by first sensor.
Step 306, terminal calculate the absolute value of distance parameter and the difference of distance reference value, obtain the first numerical value.
Step 307, terminal judge the relationship between the first numerical value and pre-determined distance threshold value.
Step 308, terminal obtain the pressure parameter of headset earpiece by second sensor.
Wherein, pressure parameter includes the pressure value between headset earpiece and user's ear.
Specifically, second sensor can be pressure sensor, such as in PlayGear Stealth, second sensor can be It is arranged on the edge of the headset earpiece front end vertical with earphone casing, it is preferred that can be set when original channel is L channel It, can be with when original channel is right channel on the right end edge for setting the central axes for being the vertical headset earpiece front end of earphone casing It is provided on the left end edge of the central axes of the vertical headset earpiece front end of earphone casing, specific installation position can be such as figure Shown in 5, second sensor can be arranged in the position where the dotted ellipse circle 9 for the headset earpiece 3 that original channel is L channel It sets and/or original channel is the position where the circle 10 of the headset earpiece 4 of right channel.
Step 309, terminal calculate the absolute value of the difference of pressure parameter and compression force reference value, obtain second value.
Step 310, terminal judge the relationship between second value and preset pressure threshold value.
Wherein, the dividing without priority of the operation order between step 305~307 and step 308~310, step 305~ 307 can execute after step 308~310, or operation can be carried out at the same time with step 308~310, specifically execute Journey can be determined according to actual application scenarios;
If step 311, the first numerical value are more than pre-determined distance threshold value and second value is more than preset pressure threshold value, earphone obtains The current location of headset earpiece is mismatched with headset earpiece current channel, and switches the sound of headset earpiece according to default switching law Road is the sound channel different from headset earpiece current channel.
Specifically, earphone can judge earphone current location and headset earpiece using distance parameter and pressure parameter simultaneously Whether matched between current channel, if as long as there are one numerical value to be less than corresponding threshold in the first numerical value and second numerical value Value, then it represents that the current location of headset earpiece is matched with headset earpiece current channel, i.e., left ear corresponds to the L channel of headset earpiece, Auris dextra corresponds to the right channel of headset earpiece.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or concept, is referred to Description in other embodiments, details are not described herein again.
The adaptive earphone sound channel switching method that the embodiment of the present invention is provided, the distance by obtaining headset earpiece are joined After number, according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of headset earpiece;In this way, logical Measurement headset earpiece is crossed the distance between to auricle, and the distance of acquisition is analyzed to switch the sound channel of earphone, is solved The problem of needing to confirm the mark and ear in headset earpiece when user wears earphone in the prior art, ensure that the audio of broadcasting The stereophonic effect of information improves the experience effect that user uses earphone.
An embodiment of the present invention provides a kind of adaptive earphone Acoustic channel switching device 4, Fig. 1~2,4 corresponding are can be applied to In a kind of adaptive earphone sound channel switching method that embodiment provides, with reference to shown in Fig. 6, which includes:First acquisition unit 41 and processing unit 42, wherein:
First acquisition unit 41, the distance parameter for obtaining headset earpiece.
Wherein, distance parameter includes the distance between headset earpiece and user's auricle.
Processing unit 42, for according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switching earphone The sound channel of receiver.
The adaptive earphone Acoustic channel switching device that the embodiment of the present invention is provided, the distance by obtaining headset earpiece are joined After number, according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of headset earpiece;In this way, logical Measurement headset earpiece is crossed the distance between to auricle, and the distance of acquisition is analyzed to switch the sound channel of earphone, is solved The problem of needing to confirm the mark and ear in headset earpiece when user wears earphone in the prior art, ensure that the audio of broadcasting The stereophonic effect of information improves the experience effect that user uses earphone.
Specifically, with reference to shown in Fig. 7, processing unit 42 includes:It first computing module 421, first processing module 422 and cuts Block 423 is changed the mold, wherein:
First computing module 421, the absolute value for calculating distance parameter and the difference of distance reference value, obtains the first number Value.
First processing module 422, for according to the relationship between the first numerical value and pre-determined distance threshold value, obtaining headset earpiece Current location whether matched with headset earpiece current channel, and determine whether switch headset earpiece sound channel.
Handover module 423, the sound channel for when detecting that headset earpiece is stopped, switching headset earpiece are original sound Road.
Further specifically, first processing module 422 is specifically used for executing following steps:
Judge the relationship between the first numerical value and pre-determined distance threshold value.
If the first numerical value is less than or equal to pre-determined distance threshold value, the current location and headset earpiece for obtaining headset earpiece are worked as Preceding sound channel matching, without switching sound channel.
If the first numerical value is more than pre-determined distance threshold value, the current location of headset earpiece is obtained with headset earpiece current channel not Matching, and it is the sound channel different from headset earpiece current channel to switch the sound channel of headset earpiece according to default switching law.
Specifically, with reference to shown in Fig. 8, processing unit 42 further includes:Acquisition module 424, judges second computing module 425 Module 426 and Second processing module 427, wherein:
Acquisition module 424, the pressure parameter for obtaining headset earpiece by second sensor.
Wherein, pressure parameter includes the pressure value between headset earpiece and user's ear.
Second computing module 425, the absolute value of the difference for calculating pressure parameter and compression force reference value, obtains the second number Value.
Judgment module 426, for judging the relationship between second value and preset pressure threshold value.
Second processing module 427, if being used for, the first numerical value is more than pre-determined distance threshold value and second value is more than preset pressure Threshold value, the current location and headset earpiece current channel for obtaining headset earpiece mismatch, and switch ear according to default switching law The sound channel of machine receiver is the sound channel different from headset earpiece current channel.
Specifically, with reference to shown in Fig. 9, which further includes:Second acquisition unit 43 and generation unit 44, wherein:
Second acquisition unit 43, the gravitation information for obtaining headset earpiece by 3rd sensor.
Second acquisition unit 43 is additionally operable to obtain the angle information of headset earpiece by the 4th sensor.
Generation unit 44, if being unsatisfactory for default gravity threshold value for gravitation information and angle information is unsatisfactory for predetermined angle threshold Value generates prompt message.
Wherein, prompt message is used to indicate user and wears earphone again.
It should be noted that the interactive process in the present embodiment between each unit and module, is referred to Fig. 1~2,4 Interactive process in a kind of adaptive earphone sound channel switching method that corresponding embodiment provides, details are not described herein again.
The adaptive earphone Acoustic channel switching device that the embodiment of the present invention is provided, the distance by obtaining headset earpiece are joined After number, according to the relationship between distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of headset earpiece;In this way, logical Measurement headset earpiece is crossed the distance between to auricle, and the distance of acquisition is analyzed to switch the sound channel of earphone, is solved The problem of needing to confirm the mark and ear in headset earpiece when user wears earphone in the prior art, ensure that the audio of broadcasting The stereophonic effect of information improves the experience effect that user uses earphone.
In practical applications, first acquisition unit 41, processing unit 42, second acquisition unit 43, generation unit 44, first Computing module 421, first processing module 422, handover module 423, acquisition module 424, the second computing module 425, judgment module 426 and Second processing module 427 can be by the central processing unit (Central in wireless data sending device Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field programmable gate array (Field Programmable Gate Array, FPGA) etc. realizations.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (12)

1. a kind of adaptive earphone sound channel switching method, which is characterized in that the method includes:
Obtain the distance parameter of headset earpiece;Wherein, the distance parameter includes between the headset earpiece and user's auricle Distance;
According to the relationship between the distance parameter and pre-determined distance threshold value, it is determined whether switch the sound channel of the headset earpiece.
2. described according to the method described in claim 1, it is characterized in that, be provided with first sensor in the headset earpiece The distance parameter of headset earpiece is obtained, including:
The distance parameter for obtaining the headset earpiece is measured by the first sensor.
3. according to the method described in claim 1, it is characterized in that, it is described according to the distance parameter and pre-determined distance threshold value it Between relationship, it is determined whether switch the sound channel of the headset earpiece, including:
The absolute value for calculating the distance parameter and the difference of distance reference value, obtains the first numerical value;
According to the relationship between first numerical value and the pre-determined distance threshold value, obtain the current location of the headset earpiece with Whether the headset earpiece current channel matches, and determines whether to switch the sound channel of the headset earpiece;
When detecting that the headset earpiece is stopped, the sound channel for switching the headset earpiece is original channel.
4. according to the method described in claim 3, it is characterized in that, described according to first numerical value and the pre-determined distance threshold Whether the relationship between value, the current location for obtaining the headset earpiece match with the headset earpiece current channel, and determine Whether the sound channel of the headset earpiece is switched, including:
Judge the relationship between first numerical value and the pre-determined distance threshold value;
If first numerical value is less than or equal to the pre-determined distance threshold value, current location and the institute of the headset earpiece are obtained The matching of headset earpiece current channel is stated, without switching the sound channel;
If first numerical value is more than the pre-determined distance threshold value, the current location and the earphone for obtaining the headset earpiece are listened Cylinder current channel mismatches, and it is current with the headset earpiece to switch the sound channel of the headset earpiece according to default switching law The different sound channel of sound channel.
5. described according to the method described in claim 3, it is characterized in that, be provided with second sensor in the headset earpiece Method further includes:
The pressure parameter of the headset earpiece is obtained by the second sensor;Wherein, the pressure parameter includes the ear Pressure value between machine receiver and the user's ear;
The absolute value for calculating the difference of the pressure parameter and compression force reference value, obtains second value;
Judge the relationship between the second value and preset pressure threshold value;
If first numerical value is more than the pre-determined distance threshold value and the second value is more than the preset pressure threshold value, obtain The current location of the headset earpiece is mismatched with the headset earpiece current channel, and is switched according to the default switching law The sound channel of the headset earpiece is the sound channel different from the headset earpiece current channel.
6. according to the method described in claim 1, it is characterized in that, being provided with 3rd sensor and the 4th in the headset earpiece Sensor, it is described obtain headset earpiece distance parameter before, including:
The gravitation information of the headset earpiece is obtained by the 3rd sensor;
The angle information of the headset earpiece is obtained by the 4th sensor;
If the gravitation information is unsatisfactory for default gravity threshold value and the angle information is unsatisfactory for predetermined angle threshold value, prompt is generated Information;Wherein, the prompt message is used to indicate the user and wears earphone again.
7. a kind of adaptive earphone Acoustic channel switching device, which is characterized in that described device includes:First acquisition unit and processing are single Member;Wherein:
The first acquisition unit, the distance parameter for obtaining headset earpiece;Wherein, the distance parameter includes the earphone The distance between receiver and user's auricle;
The processing unit, for according to the relationship between the distance parameter and pre-determined distance threshold value, it is determined whether switching institute State the sound channel of headset earpiece.
8. device according to claim 7, which is characterized in that first sensor is provided in the headset earpiece, it is described Acquiring unit is specifically used for:
The distance parameter for obtaining the headset earpiece is measured by the first sensor.
9. device according to claim 7, which is characterized in that the processing unit includes:First computing module, at first Manage module and handover module;Wherein:
First computing module, the absolute value for calculating the distance parameter and the difference of distance reference value, obtains first Numerical value;
The first processing module, for according to the relationship between first numerical value and the pre-determined distance threshold value, obtaining institute Whether the current location for stating headset earpiece matches with the headset earpiece current channel, and determines whether to switch the headset earpiece Sound channel;
The handover module, for when detecting that the headset earpiece is stopped, the sound channel for switching the headset earpiece is Original channel.
10. device according to claim 9, which is characterized in that the first processing module is specifically used for:
Judge the relationship between first numerical value and the pre-determined distance threshold value;
If first numerical value is less than or equal to the pre-determined distance threshold value, current location and the institute of the headset earpiece are obtained The matching of headset earpiece current channel is stated, without switching the sound channel;
If first numerical value is more than the pre-determined distance threshold value, the current location and the earphone for obtaining the headset earpiece are listened Cylinder current channel mismatches, and it is current with the headset earpiece to switch the sound channel of the headset earpiece according to default switching law The different sound channel of sound channel.
11. device according to claim 9, which is characterized in that second sensor is provided in the headset earpiece, it is described Processing unit further includes:Acquisition module, the second computing module, judgment module and Second processing module;Wherein:
The acquisition module, the pressure parameter for obtaining the headset earpiece by the second sensor;Wherein, the pressure Force parameter includes the pressure value between the headset earpiece and the user's ear;
Second computing module, the absolute value of the difference for calculating the pressure parameter and compression force reference value, obtains second Numerical value;
The judgment module, for judging the relationship between the second value and preset pressure threshold value;
The Second processing module is more than if being more than the pre-determined distance threshold value and the second value for first numerical value The preset pressure threshold value, the current location and the headset earpiece current channel for obtaining the headset earpiece mismatch, and press The sound channel for switching the headset earpiece according to the default switching law is the sound channel different from the headset earpiece current channel.
12. device according to claim 7, which is characterized in that be provided with 3rd sensor and in the headset earpiece Four sensors, the first acquisition unit further include before:Second acquisition unit and generation unit;Wherein:
The second acquisition unit, the gravitation information for obtaining the headset earpiece by the 3rd sensor;
The second acquisition unit is additionally operable to obtain the angle information of the headset earpiece by the 4th sensor;
The generation unit, if being unsatisfactory for default gravity threshold value for the gravitation information and the angle information is unsatisfactory for presetting Angle threshold generates prompt message;Wherein, the prompt message is used to indicate the user and wears earphone again.
CN201710020256.2A 2017-01-11 2017-01-11 A kind of adaptive earphone sound channel switching method and apparatus Pending CN108307261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710020256.2A CN108307261A (en) 2017-01-11 2017-01-11 A kind of adaptive earphone sound channel switching method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710020256.2A CN108307261A (en) 2017-01-11 2017-01-11 A kind of adaptive earphone sound channel switching method and apparatus

Publications (1)

Publication Number Publication Date
CN108307261A true CN108307261A (en) 2018-07-20

Family

ID=62872231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710020256.2A Pending CN108307261A (en) 2017-01-11 2017-01-11 A kind of adaptive earphone sound channel switching method and apparatus

Country Status (1)

Country Link
CN (1) CN108307261A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168098A (en) * 2018-08-17 2019-01-08 北海飞九天电子科技有限公司 A kind of Bluetooth of mobile phone earphone leaves automatically controls pause opening system and its control method in one's ear
CN109195058A (en) * 2018-11-29 2019-01-11 努比亚技术有限公司 Switching method, device, terminal and the storage medium of earphone sound channel
CN109257496A (en) * 2018-09-28 2019-01-22 努比亚技术有限公司 A kind of sound channel switching method, terminal and computer readable storage medium
CN110012376A (en) * 2019-03-25 2019-07-12 歌尔科技有限公司 A kind of control method, earphone and the storage medium of earphone sound channel
CN110891218A (en) * 2019-11-22 2020-03-17 歌尔智能科技有限公司 Earplug type earphone and wireless earphone system
CN112073804A (en) * 2020-09-10 2020-12-11 深圳创维-Rgb电子有限公司 Television sound adjusting method, television and storage medium
WO2021015761A1 (en) * 2019-07-24 2021-01-28 Hewlett-Packard Development Company L.P. Audio headset position detection
CN112351359A (en) * 2019-08-08 2021-02-09 联阳半导体股份有限公司 Earphone and earphone wearing detection method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079238A1 (en) * 2012-09-20 2014-03-20 International Business Machines Corporation Automated left-right headphone earpiece identifier
CN104202697A (en) * 2014-09-18 2014-12-10 苏州大学 Adaptive automatic left sound track and right sound track switching stereo headphone
CN104469624A (en) * 2014-12-16 2015-03-25 广东欧珀移动通信有限公司 Sound track switching method, sound track switching system and electronic equipment of headset and headset
CN105338447A (en) * 2015-10-19 2016-02-17 京东方科技集团股份有限公司 Earphone control circuit and method, earphone, and audio frequency output apparatus and method
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN105681946A (en) * 2015-12-31 2016-06-15 东莞酷派软件技术有限公司 Earphone, earphone channel control method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079238A1 (en) * 2012-09-20 2014-03-20 International Business Machines Corporation Automated left-right headphone earpiece identifier
CN104202697A (en) * 2014-09-18 2014-12-10 苏州大学 Adaptive automatic left sound track and right sound track switching stereo headphone
CN104469624A (en) * 2014-12-16 2015-03-25 广东欧珀移动通信有限公司 Sound track switching method, sound track switching system and electronic equipment of headset and headset
CN105338447A (en) * 2015-10-19 2016-02-17 京东方科技集团股份有限公司 Earphone control circuit and method, earphone, and audio frequency output apparatus and method
CN105530560A (en) * 2015-12-28 2016-04-27 苏州佳世达电通有限公司 Earphone
CN105681946A (en) * 2015-12-31 2016-06-15 东莞酷派软件技术有限公司 Earphone, earphone channel control method and terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168098A (en) * 2018-08-17 2019-01-08 北海飞九天电子科技有限公司 A kind of Bluetooth of mobile phone earphone leaves automatically controls pause opening system and its control method in one's ear
CN109168098B (en) * 2018-08-17 2020-05-22 深圳市华冠拓展电子有限公司 System for automatically controlling to suspend and open Bluetooth headset when mobile phone is away from ear and control method thereof
CN109257496A (en) * 2018-09-28 2019-01-22 努比亚技术有限公司 A kind of sound channel switching method, terminal and computer readable storage medium
CN109195058A (en) * 2018-11-29 2019-01-11 努比亚技术有限公司 Switching method, device, terminal and the storage medium of earphone sound channel
CN109195058B (en) * 2018-11-29 2022-01-14 努比亚技术有限公司 Earphone sound channel switching method, earphone sound channel switching device, terminal and storage medium
CN110012376A (en) * 2019-03-25 2019-07-12 歌尔科技有限公司 A kind of control method, earphone and the storage medium of earphone sound channel
WO2020192052A1 (en) * 2019-03-25 2020-10-01 歌尔科技有限公司 Earphone sound channel control method, earphone and storage medium
WO2021015761A1 (en) * 2019-07-24 2021-01-28 Hewlett-Packard Development Company L.P. Audio headset position detection
CN112351359A (en) * 2019-08-08 2021-02-09 联阳半导体股份有限公司 Earphone and earphone wearing detection method
CN110891218A (en) * 2019-11-22 2020-03-17 歌尔智能科技有限公司 Earplug type earphone and wireless earphone system
WO2021098016A1 (en) * 2019-11-22 2021-05-27 歌尔股份有限公司 Earbud-type earphone and wireless earphone system
CN112073804A (en) * 2020-09-10 2020-12-11 深圳创维-Rgb电子有限公司 Television sound adjusting method, television and storage medium

Similar Documents

Publication Publication Date Title
CN108307261A (en) A kind of adaptive earphone sound channel switching method and apparatus
CN104469624B (en) Earphone sound channel changing method, system, electronic equipment and earphone
CN104284286B (en) The determination of individual HRTF
US10284943B2 (en) Method and apparatus for adjusting sound field of an earphone and a terminal
CN106170989B (en) The recognition methods of earphone and device, the control method of earphone and device, earphone
US9743173B2 (en) Signal processing device, signal processing method, and computer program
CN105101016A (en) Earphone sound channel switching method and terminal
JP7316701B2 (en) hearing aid
CN109104684A (en) Microphone plug-hole detection method and Related product
US20160330541A1 (en) Audio duplication using dual-headsets to enhance auditory intelligibility
CN107205187A (en) A kind of method, device and terminal device based on earphone control music
US20230370788A1 (en) Method, apparatus and system for testing a bone conduction communication device
CN203984629U (en) The mobile terminal of interchangeable left and right acoustic channels output signal
CN207531083U (en) Wirelessly communicate headset detection device
CN108076400A (en) A kind of calibration and optimization method for 3D audio Headphone reproducings
CN111787479B (en) Method and system for correcting listening sensation of TWS earphone
CN111741400B (en) Earphone position adjusting method, device, equipment and storage medium
CN110944261B (en) Earphone sound effect control method and headset
EP3625976B1 (en) A method for determining distance between ears of a wearer of a sound generating object and an ear-worn, sound generating object
CN105163223A (en) Earphone control method and device used for three dimensional sound source positioning, and earphone
CN116208907A (en) Spatial audio processing device, apparatus, method and headphone
KR20150142925A (en) Stereo audio input apparatus
WO2021082874A1 (en) Earphone ear-oriented debugging method, apparatus and system, and wireless earphone
CN106412735A (en) Method and device for adjusting headset data, headset and terminal
CN115529527B (en) Ear hanging type 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: 20180720

RJ01 Rejection of invention patent application after publication