CN106445457A - Headphone sound channel switching method and device - Google Patents

Headphone sound channel switching method and device Download PDF

Info

Publication number
CN106445457A
CN106445457A CN201610872530.4A CN201610872530A CN106445457A CN 106445457 A CN106445457 A CN 106445457A CN 201610872530 A CN201610872530 A CN 201610872530A CN 106445457 A CN106445457 A CN 106445457A
Authority
CN
China
Prior art keywords
earphone
sound channel
channel
user
sensor signal
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
CN201610872530.4A
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610872530.4A priority Critical patent/CN106445457A/en
Publication of CN106445457A publication Critical patent/CN106445457A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The embodiment of the invention relates to the technical field of terminals, and discloses a headphone sound channel switching method and a headphone sound channel switching device. The headphone sound channel switching method comprises the following steps: receiving a sensor signal, acquired by an infrared sensor, by terminal equipment; according to the sensor signal, judging the wearing position of a first headphone; acquiring a first sound channel preset for the first headphone and a second sound channel preset for a second headphone; judging whether the first sound channel is matched with the wearing position of the first headphone; if the first sound channel is not matched with the wearing position of the first headphone, setting the sound channel corresponding to the first headphone as the second sound channel, and setting the sound channel corresponding to the second headphone as the first sound channel. According to the invention, through implementation of the headphone sound channel switching method and the headphone sound channel switching device, after a user wears the headphone, the left sound channel and the right sound channel can be automatically matched with a left ear and a right ear, so that when the user listens to stereo contents, a relatively good auditory experience is acquired.

Description

A kind of earphone sound channel changing method and device
Technical field
The present invention relates to field of terminal technology, more particularly, to a kind of earphone sound channel changing method and device.
Background technology
Earphone, as the important accessory of the terminal devices such as mobile phone, walkman, is that daily life provides very Facilitate more.Earphone is mainly made up of earphone interface, microphone, L channel and R channel.Because audio file is mostly stereo The content that file, the L channel of earphone and R channel are play typically differs, then coordinates the image frame in video, can bring People's experience on the spot in person.
However, listening to stereo audio content using earphone to need people's correct left and right acoustic channels distinguishing earphone before wearing, so Afterwards left and right acoustic channels are worn to corresponding ear, just can hear correct sound field.If user is in dark light environment, no Method sees the mark of left and right acoustic channels on earphone, then may wear mistake, causes to hear contrary sound field.Especially need to coordinate in audio frequency When in the scene of video pictures, contrary sound field understands extreme influence video-see effect, and the sound for example hearing hero is from a left side While transmitting, and in the picture of reality, hero is then to enter picture from the right.As can be seen here it is impossible to correctly distinguish the left and right of earphone If sound channel, greatly affected the experience of user.
Content of the invention
Embodiments provide a kind of earphone sound channel changing method and device, can after earphone on user wears from Move and left and right acoustic channels and left and right ear are mated, and then when making user listen to stereo audio content using earphone, obtain and preferably listen Feel experience.
Embodiment of the present invention first aspect discloses a kind of earphone sound channel changing method, described earphone include the first earphone and Second earphone, described first earphone includes at least two infrared sensors, and methods described includes:
Terminal device receives the sensor signal that described infrared sensor obtains;
Determine the wearing position of described first earphone according to described sensor signal;
Obtain default first sound channel of described first earphone and the default second sound channel of described second earphone;
Judge whether described first sound channel and the wearing position of described first earphone mate;
If it is not, then corresponding for described first earphone sound channel is set to described second sound channel, described second earphone is corresponded to Sound channel be set to described first sound channel.
As a kind of optional embodiment, described terminal device receives the sensor signal that described infrared sensor obtains Before, methods described also includes:
Monitor described terminal device and whether set up with described earphone and be connected;
Described terminal device receives the sensor signal that described infrared sensor obtains, including:
If the built vertical connection with described earphone of described terminal device, described terminal device receives described infrared sensor and obtains The sensor signal taking.
As a kind of optional embodiment, described wear position according to what described sensor signal determined described first earphone Put, including:
The profile information of the user's body that the first earphone according to described sensor signal analysis closes on, described to determine First earphone is worn on left ear or the auris dextra of described user.
As a kind of optional embodiment, for L channel, described second sound channel is R channel to described first sound channel;Or Person, for described R channel, described second sound channel is described L channel to described first sound channel.
As a kind of optional embodiment, described first sound channel of described judgement with the wearing position of described first earphone is No coupling, including:
If described first earphone is worn on the left ear of described user, and described first sound channel is R channel, then judge described First sound channel is mismatched with the wearing position of described first earphone;Or,
If described first earphone is worn on the auris dextra of described user, and described first sound channel is L channel, then judge described First sound channel is mismatched with the wearing position of described first earphone.
Embodiment of the present invention second aspect discloses a kind of earphone Acoustic channel switching device, described earphone include the first earphone and Second earphone, described first earphone includes at least two infrared sensors, and described device includes:
Receiving unit, for receiving the sensor signal that described infrared sensor obtains;
Determining unit, for determining the wearing position of described first earphone according to described sensor signal;
Acquiring unit, for obtaining default first sound channel of described first earphone and the default rising tone of described second earphone Road;
Judging unit, for judging whether described first sound channel and the wearing position of described first earphone mate;
Switch unit, for when the wearing position of described first sound channel and described first earphone mismatches, by described the The corresponding sound channel of one earphone is set to described second sound channel, and corresponding for described second earphone sound channel is set to described first sound Road.
As a kind of optional embodiment, described device also includes:
Whether monitoring unit, be connected for monitoring described terminal device and being set up with described earphone;
Described receiving unit, specifically for when the built vertical connection of described terminal device and described earphone, receiving described red The sensor signal that outer sensor obtains.
As a kind of optional embodiment, described determining unit, specifically for according to described sensor signal analysis institute State the profile information of the user's body that the first earphone closes on, to determine that described first earphone is worn on left ear or the right side of described user Ear.
As a kind of optional embodiment, for L channel, described second sound channel is R channel to described first sound channel;Or Person, for described R channel, described second sound channel is described L channel to described first sound channel.
As a kind of optional embodiment, described judging unit, described in being worn on when described first earphone The left ear of user, and when described first sound channel is R channel, judge the wearing position of described first sound channel and described first earphone Mismatch;Or, specifically for being worn on the auris dextra of described user when described first earphone, and described first sound channel is L channel When, judge that described first sound channel and the wearing position of described first earphone mismatch.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In the embodiment of the present invention, terminal device receives the sensor signal that described infrared sensor obtains;According to described sensing Device signal judges the wearing position of described first earphone;Obtain default first sound channel of described first earphone and described second earphone Default second sound channel;Judge whether described first sound channel and the wearing position of described first earphone mate;If it is not, then will be described The corresponding sound channel of first earphone is set to described second sound channel, and corresponding for described second earphone sound channel is set to described first sound Road.As can be seen here, implement the embodiment of the present invention, automatically left and right acoustic channels and left and right ear can be carried out after earphone on user wears Coupling, and then when making user listen to stereo audio content using earphone, obtain preferable audio experience.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing briefly introduce it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of earphone sound channel changing method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of earphone sound channel changing method disclosed in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of earphone Acoustic channel switching device disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of earphone Acoustic channel switching device disclosed in the embodiment of the present invention;
Fig. 5 is a kind of structural representation of terminal device disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of terminal device disclosed in the embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step ground describes in detail it is clear that described embodiment is only present invention some embodiments, rather than whole enforcement Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of not making creative work All other embodiment, broadly falls into the scope of protection of the invention.
Term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second " etc. are for distinguishing Different objects, rather than be used for describing particular order.Additionally, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive comprising.For example contain process, method, system, product or the equipment of series of steps or unit It is not limited to step or the unit listed, but alternatively also include step or the unit do not listed, or alternatively also Including for these processes, method or intrinsic other steps of equipment or unit.
Embodiments provide a kind of earphone sound channel changing method and device, can after earphone on user wears from Move and left and right acoustic channels and left and right ear are mated, and then when making user listen to stereo audio content using earphone, obtain and preferably listen Feel experience.It is described in detail individually below.
Refer to Fig. 1, Fig. 1 is a kind of schematic flow sheet of earphone sound channel changing method disclosed in the embodiment of the present invention.Its In, the earphone sound channel changing method shown in Fig. 1 may comprise steps of:
101st, terminal device receives the sensor signal that infrared sensor obtains.
In the embodiment of the present invention, terminal device can be smart mobile phone, intelligent watch, palm PC, panel computer, individual number Word assistant (Personal Digital Assistant, PDA), point-of-sale terminal (Point of Sales, POS) etc., the present invention Embodiment is not subsequently repeated.
In the embodiment of the present invention, above-mentioned infrared sensor is the infrared sensor of configuration on earphone, and above-mentioned earphone includes the One earphone and the second earphone, wherein, the first earphone are configured with least two infrared sensors, for wearing first in user After earphone, obtain the body contour information of user by infrared sensor, and then judge that the first earphone is worn on left ear by user Or auris dextra.
Meanwhile, terminal device can be set up with earphone in several ways and be connected, and received by the connection set up The sensor signal that on first earphone, the infrared sensor of configuration obtains;For example, if above-mentioned earphone is wired earphone, will Earphone interface is connected to the audio output interface of terminal device, you can set up above-mentioned connection;Or, if above-mentioned earphone is bluetooth ear Machine, then can set up bluetooth wireless link to realize the transmission of sensor signal between this earphone and terminal device.Terminal device with The concrete grammar of connection is set up, the embodiment of the present invention is not limited between earphone.
102nd, the wearing position of the first earphone is determined according to the sensor signal.
As a kind of optional embodiment, above-mentioned infrared sensor can monitor the thermal radiation information of user's body, by it Be converted to sensor signal;Terminal device carries out pattern-recognition according to the sensor signal afterwards, the user's body that will obtain Thermal radiation information fit to the profile information of the user's body that the first earphone closes on, afterwards again by the profile to user's body The analysis of information, determines that the first earphone is worn on left ear or the auris dextra of above-mentioned user.
103rd, default first sound channel of the first earphone and the default second sound channel of the second earphone are obtained.
In the embodiment of the present invention, earphone connect terminal device when, the channel layout before being disconnected according to last time Mode, corresponding for the first earphone sound channel is preset as the first sound channel, and corresponding for the second earphone sound channel is preset as second sound channel.The When one sound channel is L channel, second sound channel corresponds to R channel;Or when in contrast, the first sound channel is R channel, the rising tone Road corresponds to L channel.
104th, judge whether the first sound channel is mated with the wearing position of the first earphone.
As a kind of optional embodiment, if the first earphone is worn on the left ear of above-mentioned user, and the first sound channel is the right side Sound channel, then judge that the first sound channel and the wearing position of the first earphone mismatch;Or, if the first earphone is worn on above-mentioned user's Auris dextra, and the first sound channel is L channel, then judge that the first sound channel and the wearing position of the first earphone mismatch.
105, if it is not, then corresponding for the first earphone sound channel is set to second sound channel, corresponding for the second earphone sound channel are set It is set to the first sound channel.
In the embodiment of the present invention, when the wearing position judging the first earphone and the first sound channel mismatch, need to exchange the One earphone and the corresponding sound channel of the second earphone, so that user can listen to correct sound field.
As can be seen here, using the method described by Fig. 1, can be automatically by left and right acoustic channels and a left side after earphone on user wears Auris dextra is mated, and then when making user listen to stereo audio content using earphone, obtains preferable audio experience.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of earphone sound channel changing method disclosed in the embodiment of the present invention. As shown in Fig. 2 the method may comprise steps of:
201st, whether monitoring terminal equipment is set up with earphone and is connected.
In the embodiment of the present invention, terminal device can be set up with earphone in several ways and be connected, and the company by setting up Receive the sensor signal that the infrared sensor of configuration on the first earphone obtains;For example, if above-mentioned earphone is wired ear Machine, then be connected to the audio output interface of terminal device by earphone interface, you can sets up above-mentioned connection;Or, if above-mentioned earphone For bluetooth earphone, then can set up bluetooth wireless link between this earphone and terminal device to realize the transmission of sensor signal.Eventually The concrete grammar being connected is set up, the embodiment of the present invention is not limited between end equipment and earphone.
202nd, if so, then terminal device receives the sensor signal that infrared sensor obtains.
In the embodiment of the present invention, above-mentioned infrared sensor is the infrared sensor of configuration on earphone, and above-mentioned earphone includes the One earphone and the second earphone, wherein, the first earphone are configured with least two infrared sensors, for wearing first in user After earphone, obtain the body contour information of user by infrared sensor, and then judge that the first earphone is worn on left ear by user Or auris dextra.
203rd, the wearing position of the first earphone is determined according to the sensor signal.
As a kind of optional embodiment, above-mentioned infrared sensor can monitor the thermal radiation information of user's body, by it Be converted to sensor signal;Terminal device carries out pattern-recognition according to the sensor signal afterwards, the user's body that will obtain Thermal radiation information fit to the profile information of the user's body that the first earphone closes on, afterwards again by the profile to user's body The analysis of information, determines that the first earphone is worn on left ear or the auris dextra of above-mentioned user.
204th, default first sound channel of the first earphone and the default second sound channel of the second earphone are obtained.
In the embodiment of the present invention, earphone connect terminal device when, the channel layout before being disconnected according to last time Mode, corresponding for the first earphone sound channel is preset as the first sound channel, and corresponding for the second earphone sound channel is preset as second sound channel.The When one sound channel is L channel, second sound channel corresponds to R channel;Or when in contrast, the first sound channel is R channel, the rising tone Road corresponds to L channel.
205th, judge whether the first sound channel is mated with the wearing position of the first earphone.
As a kind of optional embodiment, if the first earphone is worn on the left ear of above-mentioned user, and the first sound channel is the right side Sound channel, then judge that the first sound channel and the wearing position of the first earphone mismatch;Or, if the first earphone is worn on above-mentioned user's Auris dextra, and the first sound channel is L channel, then judge that the first sound channel and the wearing position of the first earphone mismatch.
206, if it is not, then corresponding for the first earphone sound channel is set to second sound channel, corresponding for the second earphone sound channel are set It is set to the first sound channel.
In the embodiment of the present invention, when the wearing position judging the first earphone and the first sound channel mismatch, need to exchange the One earphone and the corresponding sound channel of the second earphone, so that user can listen to correct sound field.
As can be seen here, using the method described by Fig. 2, can be automatically by left and right acoustic channels and a left side after earphone on user wears Auris dextra is mated, and then when making user listen to stereo audio content using earphone, obtains preferable audio experience.
Refer to Fig. 3, Fig. 3 is a kind of structural representation of earphone Acoustic channel switching device disclosed in the embodiment of the present invention.As Shown in Fig. 3, this device can include:
Receiving unit 301, for receiving the sensor signal that above-mentioned infrared sensor obtains.
In the embodiment of the present invention, above-mentioned infrared sensor is the infrared sensor of configuration on earphone, and above-mentioned earphone includes the One earphone and the second earphone, wherein, the first earphone are configured with least two infrared sensors, for wearing first in user After earphone, obtain the body contour information of user by infrared sensor, and then judge that the first earphone is worn on left ear by user Or auris dextra.
Determining unit 302, for determining the wearing position of the first earphone according to the sensor signal.
As a kind of optional embodiment, above-mentioned infrared sensor can monitor the thermal radiation information of user's body, by it Be converted to sensor signal;Terminal device carries out pattern-recognition according to the sensor signal afterwards, the user's body that will obtain Thermal radiation information fit to the profile information of the user's body that the first earphone closes on, afterwards again by the profile to user's body The analysis of information, determines that the first earphone is worn on left ear or the auris dextra of above-mentioned user.
Acquiring unit 303, for obtaining default first sound channel of the first earphone and the default second sound channel of the second earphone.
In the embodiment of the present invention, earphone connect terminal device when, the channel layout before being disconnected according to last time Mode, corresponding for the first earphone sound channel is preset as the first sound channel, and corresponding for the second earphone sound channel is preset as second sound channel.The When one sound channel is L channel, second sound channel corresponds to R channel;Or when in contrast, the first sound channel is R channel, the rising tone Road corresponds to L channel.
Judging unit 304, for judging whether the first sound channel is mated with the wearing position of the first earphone.
As a kind of optional embodiment, if the first earphone is worn on the left ear of above-mentioned user, and the first sound channel is the right side Sound channel, then judge that the first sound channel and the wearing position of the first earphone mismatch;Or, if the first earphone is worn on above-mentioned user's Auris dextra, and the first sound channel is L channel, then judge that the first sound channel and the wearing position of the first earphone mismatch.
Switch unit 305, for when the wearing position of the first sound channel and the first earphone mismatches, the first earphone being corresponded to Sound channel be set to second sound channel, corresponding for the second earphone sound channel is set to the first sound channel.
In the embodiment of the present invention, when the wearing position judging the first earphone and the first sound channel mismatch, need to exchange the One earphone and the corresponding sound channel of the second earphone, so that user can listen to correct sound field.
As can be seen here, using the device described by Fig. 3, can be automatically by left and right acoustic channels and a left side after earphone on user wears Auris dextra is mated, and then when making user listen to stereo audio content using earphone, obtains preferable audio experience.
See also Fig. 4, Fig. 4 is the structural representation of another kind of earphone Acoustic channel switching device disclosed in the embodiment of the present invention Figure.Wherein, the device shown in Fig. 4 is that device as shown in Figure 3 is optimized and obtains, compared with the device shown in Fig. 3, Fig. 4 Shown device also includes:
Monitoring unit 306, is connected for whether monitoring terminal equipment is set up with above-mentioned earphone.
In the embodiment of the present invention, terminal device can be set up with earphone in several ways and be connected, and the company by setting up Receive the sensor signal that the infrared sensor of configuration on the first earphone obtains;For example, if above-mentioned earphone is wired ear Machine, then be connected to the audio output interface of terminal device by earphone interface, you can sets up above-mentioned connection;Or, if above-mentioned earphone For bluetooth earphone, then can set up bluetooth wireless link between this earphone and terminal device to realize the transmission of sensor signal.Eventually The concrete grammar being connected is set up, the embodiment of the present invention is not limited between end equipment and earphone.
As can be seen here, using the device described by Fig. 4, can be automatically by left and right acoustic channels and a left side after earphone on user wears Auris dextra is mated, and then when making user listen to stereo audio content using earphone, obtains preferable audio experience.
Refer to Fig. 5, Fig. 5 is a kind of structural representation of terminal device disclosed in the embodiment of the present invention.As shown in figure 5, This terminal device includes:Processor 501 and memory 502;Wherein memory 502 can be used for processor 501 execution data Caching required for processing, can be also used for providing the result of processor 501 data that execution data processing is called and acquisition The memory space of data.
In embodiments of the present invention, processor 501 passes through to call the program code being stored in memory 502, is used for holding Row is following to be operated:
Terminal device receives the sensor signal that above-mentioned infrared sensor obtains;
Determine the wearing position of the first earphone according to the sensor signal;
Obtain default first sound channel of the first earphone and the default second sound channel of the second earphone;
Judge whether the first sound channel is mated with the wearing position of the first earphone;
If it is not, then corresponding for the first earphone sound channel is set to second sound channel, corresponding for the second earphone sound channel is set to First sound channel.
As can be seen here, in the terminal device described by Fig. 5, can be automatically by left and right acoustic channels after earphone on user wears When being mated with left and right ear, and then making user listen to stereo audio content using earphone, obtain preferable audio experience.
Refer to Fig. 6, Fig. 6 is the structural representation of another kind of terminal device disclosed in the embodiment of the present invention.As Fig. 6 institute Show, for convenience of description, illustrate only the part related to the embodiment of the present invention, particular technique details does not disclose, and refer to Present invention method part.This terminal can be including mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), the arbitrarily terminal device such as vehicle-mounted computer, So that terminal is as mobile phone as a example:
Fig. 6 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention.With reference to figure 6, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 601, memory 602, input block 603, display unit 604, Sensor 605, voicefrequency circuit 606, Wireless Fidelity (wireless fidelity, WiFi) module 607, processor 608 and Power supply 609 grade part.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 does not constitute the restriction to mobile phone, Ratio can be included and illustrate more or less of part, or combine some parts, or different part arrangements.
With reference to Fig. 6, each component parts of mobile phone is specifically introduced:
RF circuit 601 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, especially, by base station After downlink information receives, process to processor 608;In addition, up data is activation will be designed to base station.Generally, RF circuit 601 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuit 601 can also be communicated with network and other equipment by radio communication. Above-mentioned radio communication can use arbitrary communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 602 can be used for storing software program and module, and processor 608 is stored in memory 602 by operation Software program and module, thus executing various function application and the data processing of mobile phone.Memory 602 can mainly include Storing program area and storage data field, wherein, storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can store according to mobile phone using being created Data (such as voice data, phone directory etc.) etc..Additionally, memory 602 can include high-speed random access memory, acceptable Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state Part.
Input block 603 can be used for numeral or the character information of receives input, and produce with the user setup of mobile phone with And the key signals input that function control is relevant.Specifically, input block 603 may include contact panel 6031 and other inputs set Standby 6032.Contact panel 6031, also referred to as touch-screen, can collect user thereon or neighbouring touch operation (such as user makes With any suitable object such as finger, stylus or annex on contact panel 6031 or the operation near contact panel 6031), And corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 6031 may include touch detecting apparatus With two parts of touch controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect what touch operation brought Signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is changed Become contact coordinate, then give processor 608, and can the order sent of receiving processor 608 being executed.Furthermore, it is possible to adopt Realize contact panel 6031 with polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 6031, input block 603 can also include other input equipments 6032.Specifically, other input equipments 6032 can include but It is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Plant or multiple.
Display unit 604 can be used for display and by the information of user input or is supplied to the information of user and the various of mobile phone Menu.Display unit 604 may include display floater 6041, optionally, can adopt liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) aobvious to configure Show panel 6041.Further, contact panel 6031 can cover display floater 6041, when contact panel 6031 detects thereon Or after neighbouring touch operation, send processor 608 to determine the type of touch event, with preprocessor 608 according to touch The type of event provides corresponding visual output on display floater 6041.Although in figure 6, contact panel 6031 and display surface Plate 6041 is input and the input function to realize mobile phone as two independent parts, but in some embodiments it is possible to Will be integrated to contact panel 6031 and display floater 6041 and input and output function that realize mobile phone.
Mobile phone may also include at least one sensor 605, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light The brightness to adjust display floater 6041 for the light and shade, proximity transducer can cut out display floater when mobile phone moves in one's ear 6041 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect that in all directions, (generally three axles) adds The size of speed, can detect that size and the direction of gravity when static, can be used for identifying application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be described here.
Voicefrequency circuit 606, loudspeaker 6061, microphone 6062 can provide the COBBAIF between user and mobile phone.Audio frequency Electric signal after the voice data receiving conversion can be transferred to loudspeaker 6061, is converted to by loudspeaker 6061 by circuit 606 Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 6062, is connect by voicefrequency circuit 606 Voice data is converted to after receipts, then after voice data output processor 608 is processed, such as another to be sent to through RF circuit 601 One mobile phone, or voice data is exported to memory 602 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 607 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 6 shows WiFi module 607, but it is understood that, it is simultaneously not belonging to must be configured into of mobile phone, can not change as needed completely Omit in the scope of the essence becoming invention.
Processor 608 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, leads to Cross and run or software program and/or module that execution is stored in memory 602, and call and be stored in memory 602 Data, the various functions of execution mobile phone and processing data, thus carry out integral monitoring to mobile phone.Optionally, processor 608 can wrap Include one or more processing units;Preferably, processor 608 can integrated application processor and modem processor, wherein, should Mainly process operating system, user interface and application program etc. with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 608.
Mobile phone also includes the power supply 609 (such as battery) powered to all parts it is preferred that power supply can pass through power supply pipe Reason system is logically contiguous with processor 608, thus realizing management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also include camera, bluetooth module etc., will not be described here.
In previous embodiment, each step method flow process can the structure based on this terminal device be realized.Wherein application layer and Operating system nucleus all can be considered the part of the abstract structure of processor 608.
In embodiments of the present invention, processor 608 passes through to call the program code being stored in memory 602, is used for holding Row is following to be operated:
Terminal device receives the sensor signal that above-mentioned infrared sensor obtains;
Determine the wearing position of the first earphone according to the sensor signal;
Obtain default first sound channel of the first earphone and the default second sound channel of the second earphone;
Judge whether the first sound channel is mated with the wearing position of the first earphone;
If it is not, then corresponding for the first earphone sound channel is set to second sound channel, corresponding for the second earphone sound channel is set to First sound channel.
As a kind of optional embodiment, processor 608 passes through to call the program code being stored in memory 602, It is additionally operable to execute following operation:
Whether monitoring terminal equipment is set up with above-mentioned earphone is connected;
Terminal device receives the sensor signal that above-mentioned infrared sensor obtains, including:
If terminal device built vertical connection with above-mentioned earphone, terminal device receives the sensing that above-mentioned infrared sensor obtains Device signal.
As can be seen here, in the terminal device described by Fig. 6, can be automatically by left and right acoustic channels after earphone on user wears When being mated with left and right ear, and then making user listen to stereo audio content using earphone, obtain preferable audio experience.
It should be noted that in above-mentioned earphone Acoustic channel switching device and terminal device embodiment, included unit Simply divided according to function logic, but be not limited to above-mentioned division, as long as being capable of corresponding function; In addition, the specific name of each functional unit, also only to facilitate mutual distinguish, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in above-mentioned each method embodiment The program that can be by completes come the hardware to instruct correlation, and corresponding program can be stored in a kind of computer-readable recording medium In, storage medium mentioned above can be read-only storage, disk or CD etc..
These are only the present invention preferably specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope that the embodiment of the present invention discloses, the change that can readily occur in or replace Change, all should be included within the scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Enclose and be defined.

Claims (10)

1. a kind of earphone sound channel changing method, described earphone includes the first earphone and the second earphone it is characterised in that described first Earphone includes at least two infrared sensors, and methods described includes:
Terminal device receives the sensor signal that described infrared sensor obtains;
Determine the wearing position of described first earphone according to described sensor signal;
Obtain default first sound channel of described first earphone and the default second sound channel of described second earphone;
Judge whether described first sound channel and the wearing position of described first earphone mate;
If it is not, then corresponding for described first earphone sound channel is set to described second sound channel, by corresponding for described second earphone sound Road is set to described first sound channel.
2. according to claim 1 method it is characterised in that described terminal device receives the biography that described infrared sensor obtains Before sensor signal, methods described also includes:
Monitor described terminal device and whether set up with described earphone and be connected;
Described terminal device receives the sensor signal that described infrared sensor obtains, including:
If the built vertical connection with described earphone of described terminal device, described terminal device receives what described infrared sensor obtained Sensor signal.
3. according to claim 2 method it is characterised in that described determine described first earphone according to described sensor signal Wearing position, including:
The profile information of the user's body that the first earphone according to described sensor signal analysis closes on, to determine described first Earphone is worn on left ear or the auris dextra of described user.
4. according to any one methods described in claims 1 to 3 it is characterised in that described first sound channel for L channel institute Stating second sound channel is R channel;Or, for described R channel, described second sound channel is described L channel to described first sound channel.
5. according to claim 4 method it is characterised in that the pendant of described first sound channel of described judgement and described first earphone Wear whether position mates, including:
If described first earphone is worn on the left ear of described user, and described first sound channel is R channel, then judge described first Sound channel is mismatched with the wearing position of described first earphone;Or,
If described first earphone is worn on the auris dextra of described user, and described first sound channel is L channel, then judge described first Sound channel is mismatched with the wearing position of described first earphone.
6. a kind of earphone Acoustic channel switching device, described earphone includes the first earphone and the second earphone it is characterised in that described first Earphone includes at least two infrared sensors, and described device includes:
Receiving unit, for receiving the sensor signal that described infrared sensor obtains;
Determining unit, for determining the wearing position of described first earphone according to described sensor signal;
Acquiring unit, for obtaining default first sound channel of described first earphone and the default second sound channel of described second earphone;
Judging unit, for judging whether described first sound channel and the wearing position of described first earphone mate;
Switch unit, for when the wearing position of described first sound channel and described first earphone mismatches, by described first ear The corresponding sound channel of machine is set to described second sound channel, and corresponding for described second earphone sound channel is set to described first sound channel.
7. device according to claim 6 is it is characterised in that described device also includes:
Whether monitoring unit, be connected for monitoring described terminal device and being set up with described earphone;
Described receiving unit, specifically for when the built vertical connection of described terminal device and described earphone, receiving described infrared biography The sensor signal that sensor obtains.
8. device according to claim 7 it is characterised in that
Described determining unit, the wheel of the user's body closing on specifically for the first earphone according to described sensor signal analysis Wide information, to determine that described first earphone is worn on left ear or the auris dextra of described user.
9. the device according to any one in claim 6~8 is it is characterised in that described first sound channel is for L channel Described second sound channel is R channel;Or, for described R channel, described second sound channel is described L channel to described first sound channel.
10. device according to claim 9 it is characterised in that
Described judging unit, specifically for being worn on the left ear of described user when described first earphone, and described first sound channel is During R channel, judge that described first sound channel and the wearing position of described first earphone mismatch;Or,
Specifically for being worn on the auris dextra of described user when described first earphone, and when described first sound channel is L channel, judge Described first sound channel is mismatched with the wearing position of described first earphone.
CN201610872530.4A 2016-09-29 2016-09-29 Headphone sound channel switching method and device Pending CN106445457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610872530.4A CN106445457A (en) 2016-09-29 2016-09-29 Headphone sound channel switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610872530.4A CN106445457A (en) 2016-09-29 2016-09-29 Headphone sound channel switching method and device

Publications (1)

Publication Number Publication Date
CN106445457A true CN106445457A (en) 2017-02-22

Family

ID=58171771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610872530.4A Pending CN106445457A (en) 2016-09-29 2016-09-29 Headphone sound channel switching method and device

Country Status (1)

Country Link
CN (1) CN106445457A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391205A (en) * 2018-03-30 2018-08-10 广东欧珀移动通信有限公司 Left and right acoustic channels switching method and apparatus, readable storage medium storing program for executing, terminal
CN109391864A (en) * 2017-08-07 2019-02-26 富港电子(昆山)有限公司 Earphone and its sound channel control method
CN110999314A (en) * 2017-08-07 2020-04-10 伯斯有限公司 Earplug insertion sensing method using infrared technology
CN111372166A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Intelligent left and right ear identification method and earphone device
CN111766548A (en) * 2020-05-29 2020-10-13 维沃移动通信有限公司 Information prompting method and device, electronic equipment and readable storage medium
CN113411702A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Sound channel configuration method and electronic equipment
WO2022170925A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 Earphone incorrect wear identification method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026082A (en) * 2009-09-21 2011-04-20 联想(北京)有限公司 Track self-adaptive method and device for sound producing device
CN103258548A (en) * 2012-02-15 2013-08-21 富泰华工业(深圳)有限公司 Audio playing device and its controlling method
CN103974184A (en) * 2013-01-24 2014-08-06 华为终端有限公司 Sound channel switching method and device and multimedia equipment
CN105101016A (en) * 2015-08-07 2015-11-25 深圳市金立通信设备有限公司 Earphone sound channel switching method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026082A (en) * 2009-09-21 2011-04-20 联想(北京)有限公司 Track self-adaptive method and device for sound producing device
CN103258548A (en) * 2012-02-15 2013-08-21 富泰华工业(深圳)有限公司 Audio playing device and its controlling method
CN103974184A (en) * 2013-01-24 2014-08-06 华为终端有限公司 Sound channel switching method and device and multimedia equipment
CN105101016A (en) * 2015-08-07 2015-11-25 深圳市金立通信设备有限公司 Earphone sound channel switching method and terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109391864A (en) * 2017-08-07 2019-02-26 富港电子(昆山)有限公司 Earphone and its sound channel control method
CN109391864B (en) * 2017-08-07 2019-12-17 富港电子(昆山)有限公司 Earphone and sound channel control method thereof
CN110999314A (en) * 2017-08-07 2020-04-10 伯斯有限公司 Earplug insertion sensing method using infrared technology
CN110999314B (en) * 2017-08-07 2022-02-18 伯斯有限公司 Earplug insertion sensing method using infrared technology
CN108391205A (en) * 2018-03-30 2018-08-10 广东欧珀移动通信有限公司 Left and right acoustic channels switching method and apparatus, readable storage medium storing program for executing, terminal
CN108391205B (en) * 2018-03-30 2021-01-22 Oppo广东移动通信有限公司 Left and right channel switching method and device, readable storage medium and terminal
CN111372166A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Intelligent left and right ear identification method and earphone device
CN111372166B (en) * 2020-02-21 2021-10-01 华为技术有限公司 Intelligent left and right ear identification method and related equipment
CN113411702A (en) * 2020-03-16 2021-09-17 维沃移动通信有限公司 Sound channel configuration method and electronic equipment
CN111766548A (en) * 2020-05-29 2020-10-13 维沃移动通信有限公司 Information prompting method and device, electronic equipment and readable storage medium
CN111766548B (en) * 2020-05-29 2023-03-24 维沃移动通信有限公司 Information prompting method and device, electronic equipment and readable storage medium
WO2022170925A1 (en) * 2021-02-10 2022-08-18 华为技术有限公司 Earphone incorrect wear identification method and related device

Similar Documents

Publication Publication Date Title
CN106445457A (en) Headphone sound channel switching method and device
CN109041142A (en) Main earphone switching method and relevant device
CN106843730A (en) A kind of mobile terminal double screen changing method and mobile terminal
CN103489303B (en) A kind of remote control thereof and device
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN106453511A (en) Data backup method and data backup device
CN106991034A (en) A kind of method and apparatus and mobile terminal for monitoring interim card
CN106658354B (en) A kind of data transmission method and equipment
CN106445596A (en) Method and device for managing setting items
CN110190916A (en) A kind of power-sensing circuit and terminal
CN106341809A (en) Data transmission method and apparatus
CN108307529A (en) A kind of hotspot connection method and its mobile terminal
CN103533127A (en) Call control method of terminal and terminal
CN107977261A (en) Method, equipment, mobile terminal and the computer-readable storage medium of limiting process
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN106550152A (en) Realize the method and mobile terminal of modem energy-conservation
CN106502827A (en) A kind of data back up method and equipment
CN107786714A (en) Sound control method, apparatus and system based on vehicle-mounted multimedia equipment
CN109040424A (en) Antenna switching circuit, method, terminal and computer readable storage medium
CN107864497A (en) Method for switching network and mobile communication terminal and network side equipment
CN106131892A (en) The control method of network insertion and equipment
CN106231499A (en) A kind of audio Enhancement Method and device
CN106358318A (en) Hotspot building method and terminal equipment
CN106228994A (en) A kind of method and apparatus detecting tonequality
CN106506623B (en) A kind of data transmission method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication