[go: up one dir, main page]

CN106851486B - A kind of switching method and mobile terminal of earphone sound channel - Google Patents

A kind of switching method and mobile terminal of earphone sound channel Download PDF

Info

Publication number
CN106851486B
CN106851486B CN201611079993.1A CN201611079993A CN106851486B CN 106851486 B CN106851486 B CN 106851486B CN 201611079993 A CN201611079993 A CN 201611079993A CN 106851486 B CN106851486 B CN 106851486B
Authority
CN
China
Prior art keywords
earphone
value
parameter
mobile terminal
threshold value
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.)
Active
Application number
CN201611079993.1A
Other languages
Chinese (zh)
Other versions
CN106851486A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611079993.1A priority Critical patent/CN106851486B/en
Publication of CN106851486A publication Critical patent/CN106851486A/en
Application granted granted Critical
Publication of CN106851486B publication Critical patent/CN106851486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • 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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Otolaryngology (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides the switching methods and mobile terminal of a kind of earphone sound channel.This method comprises: the parameter of the impedance curve of real-time detection earphone;The parameter of the impedance curve is compared with the first default impedance parameter;If the parameter of the impedance curve is greater than the described first default impedance parameter, the left channel audio signal for being input to the earphone and right channel audio signal are swapped.The present invention passes through the parameter of the impedance curve of test earphone and is compared it with the first default impedance parameter, determine whether earphone is worn instead with this, and in the case where determining wear instead, the left and right acoustic channels audio signal of earphone is interchangeable, to realize automatic detection and switching to earphone left and right acoustic channels, avoid user when wearing anti-earphone to earphone carry out complex steps and earphone brought by manual switching wear uppick caused by inverse time stereo audio it is contrary, to cause the problem of user experience difference.

Description

A kind of switching method and mobile terminal of earphone sound channel
Technical field
The present invention relates to field of communication technology more particularly to a kind of switching methods and mobile terminal of earphone sound channel.
Background technique
With popularizing for mobile terminal, more and more people like listening to music and viewing video using mobile terminal, So in order to guarantee good listening experience, many users can listen to audio using earphone.And in order to which promote earphone listens to body It tests, the sound channel of left and right earphone can be made different, to enable users to hear relief audio.
But when user is when listening to stereo, if left and right earphone is worn instead, left and right acoustic channels is caused not wear correctly, that The experience of user's uppick is likely to music or the true environment of video and artistic conception be opposite.Especially seeing video When, if left and right acoustic channels are on the contrary, what i.e. left ear received is right audio channel, what auris dextra received is left channel audio, that Have on video screen it is directive movement with audio joined together be possible to be it is opposite, cause user experience poor.
And when facing left and right earphone and wearing the case where causing left and right acoustic channels that can not match with left and right ear instead, user only exists It can just find to wear instead, moreover, left and right acoustic channels can only be made by manual switching or so earphone when having worn anti-and uppick audio Normally, the scheme of left and right acoustic channels detection and switching can not carried out automatically still in the prior art.
Summary of the invention
The embodiment of the present invention provides the switching method and mobile terminal of a kind of earphone sound channel, to realize earphone left and right acoustic channels Automatic detection and switching avoid user from wearing when wearing anti-earphone to complex steps brought by earphone progress manual switching and earphone The stereo audio of uppick caused by inverse time it is contrary, to cause the problem of user experience difference.
In a first aspect, it is applied to mobile terminal the embodiment of the invention provides a kind of switching method of earphone sound channel, it is described Mobile terminal is connect with earphone, and the outside of the earphone is equipped with multiple leak holes, which comprises
The parameter of the impedance curve of earphone described in real-time detection;
The parameter of the impedance curve is compared with the first default impedance parameter;
If the parameter of the impedance curve is greater than the described first default impedance parameter, the left sound of the earphone will be input to Audio channel signal and right channel audio signal swap.
Second aspect, the embodiment of the invention also provides a kind of mobile terminal, the mobile terminal is connect with earphone, described The outside of earphone is equipped with multiple leak holes, and the mobile terminal includes:
Real-time detection module, the parameter of the impedance curve for earphone described in real-time detection;
First comparison module, for the parameter of the impedance curve to be compared with the first default impedance parameter;
Switching Module will be input to if the parameter for the impedance curve is greater than the described first default impedance parameter The left channel audio signal and right channel audio signal of the earphone swap.
In this way, the embodiment of the present invention is by the parameter of the impedance curve of test earphone and by itself and the first default impedance parameter Be compared, determine whether earphone is worn instead with this, and determine wear anti-in the case where, to the left and right acoustic channels audio signal of earphone into Row exchanges, to realize the automatic detection and switching to earphone left and right acoustic channels, avoids user when wearing anti-earphone to earphone Complex steps brought by progress manual switching and earphone wear the contrary of the stereo audio of uppick caused by inverse time, To cause the problem of user experience difference.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the switching method of the earphone sound channel of one embodiment of the invention;
Fig. 2 is the earphone schematic diagram of one embodiment of the invention;
Fig. 3 is the earphone schematic diagram of another embodiment of the present invention;
Fig. 4 is the block diagram of the mobile terminal of one embodiment of the invention;
Fig. 5 is the block diagram of another mobile terminal of Fig. 4 embodiment according to the present invention;
Fig. 6 is the block diagram of the mobile terminal of another embodiment of the invention;
Fig. 7 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.
Specific embodiment
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 description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, the flow chart of the switching method of the earphone sound channel of one embodiment of the invention is shown, movement is applied to Terminal, the mobile terminal are connect with earphone.
Referring to Fig. 2, the earphone of the embodiment of the present invention in addition to the upper and lower sides in earphone open up leak holes, (do not show by the prior art Except out), multiple leak holes have additionally also been opened up in the outer part when earphone is correctly worn, specifically, the embodiment of the present invention The outer side edges of left and right earphone (left earplug and right earplug i.e. shown in Fig. 2) be equipped with multiple leak holes (these being vertically arranged In the outer side edges of left earphone and right earphone respectively illustrate 2 leak holes 2L and 2R), it is described when in left and right, earphone is correctly worn The exposure of multiple leak holes, is in open state, wears that (i.e. left earphone is worn on auris dextra, and auris dextra the left and right earphone or so is counter Machine is worn on left ear) when, the multiple leak holes are then blocked by ear, that is, are blocked.Once and left and right acoustic channels wear anti-leak holes When being blocked, the parameter of the impedance curve of earphone (parameter for defaulting the impedance curve of left and right earphone here is consistent) will occur at this time Variation, can detecte to left and right earphone with this and wears anti-situation.
Specifically, the method can specifically include following steps:
Step 101, the parameter of the impedance curve of earphone described in real-time detection;
Wherein, when user, which wears the earphone that the above-mentioned side of the present invention is provided with leak holes, to come using mobile terminal playing audio (such as stereo music), the embodiment of the present invention can be measured in real time the parameter of the impedance curve of earphone;
Step 102, the parameter of the impedance curve is compared with the first default impedance parameter;
Then, the parameter for the impedance curve that will test is compared with pre-set first impedance parameter.
Step 103, if the parameter of the impedance curve is greater than the described first default impedance parameter, the ear will be input to The left channel audio signal and right channel audio signal of machine swap.
So, if the parameter of the impedance curve is greater than preset first impedance parameter, the above-mentioned side of earphone is revealed 2L and 2R are plugged in hole, i.e., earphone is worn instead, then needing that the left channel audio signal of left earphone will be input to and being input to auris dextra The right channel audio signal of machine is interchangeable, so that the auris dextra of user received is right channel audio signal, the left side of user What ear received is left channel audio signal, so that the music heard matches with actual scene.
In this way, the embodiment of the present invention is by the parameter of the impedance curve of test earphone and by itself and the first default impedance parameter Be compared, determine whether earphone is worn instead with this, and determine wear anti-in the case where, to the left and right acoustic channels audio signal of earphone into Row exchanges, to realize the automatic detection and switching to earphone left and right acoustic channels, avoids user when wearing anti-earphone to earphone Complex steps brought by progress manual switching and earphone wear the contrary of the stereo audio of uppick caused by inverse time, To cause the problem of user experience difference.
On the basis of the above embodiments, the switching method for illustrating the earphone sound channel of the embodiment of the present invention is continued with.
Optionally, in one embodiment, the parameter of above-mentioned impedance curve may include: first maximum of impedance curve Corresponding frequency f0 and Q value.
Optionally, in one embodiment, after the step 103, according to the method for the embodiment of the present invention further include: According to the frequency response curve of earphone described in the parameter regulation of the impedance curve.
That is, wearing inverse time in discovery left and right earphone, (i.e. the parameter of impedance curve is greater than the described first default impedance ginseng Number), low frequency, intermediate frequency and the high frequency for the music that left and right ear is heard also can be different, therefore, normal in order to enable users to uppick Stereo, the embodiment of the present invention can not only be interchangeable left and right acoustic channels audio signal, can also be according to the resistance detected The parameter (such as above-mentioned f0 and Q value) of anti-curve is adjusted come the parameter of the frequency response curve to earphone, so that user The frequency and loudness for the music that left and right ear is listened to are also normal.
It optionally,, then can be with when executing above-mentioned steps 102 when the parameter of above-mentioned impedance curve includes f0 and Q value It realizes in the following way: the f0 is compared with the first predeterminated frequency threshold value;By the Q value and the first default value of Q Threshold value is compared.
Correspondingly, can be made the following judgment when executing step 103: if f0 is greater than the first predeterminated frequency threshold Value, and the Q value is greater than the first default value of Q threshold value, then will be input to the left channel audio signal and right sound of the earphone Audio channel signal swaps.
On the contrary, illustrating that left and right earphone wears correct, the normal broadcasting sound of continuation if being unsatisfactory for above-mentioned Rule of judgment Frequently.
Optionally, referring to Fig. 3, in order to also realize the automatic adjustment of earpiece volume while realizing the switching of earphone sound channel, Be also provided on the outside of earphone according to an embodiment of the present invention horizontally arranged multiple leak holes (2L ' as shown in Figure 3 and 2R '), wherein the number of the horizontally arranged leak holes of exposure when the earphone wears relaxation is worn more than in the earphone The number of the horizontally arranged leak holes of exposure when compact.
Wherein, horizontally arranged leak holes and the leak holes being vertically arranged may exist the leak holes of a coincidence, i.e. Fig. 3 In be not only marked with 2R but also be marked with the leak holes of 2R ' and be not only marked with 2L but also be marked with the leak holes of 2L '.
Correspondingly, after executing step 103, can also include the following steps: according to the method for the embodiment of the present invention by The f0 detected is compared with second frequency threshold value, obtains the comparison result of f0;The Q value and second that will test Default value of Q threshold value is compared, and obtains the comparison result of Q value;According to the comparison knot of the comparison result of the f0 and the Q value Fruit adjusts the volume of the earphone.
Wherein, according to the comparison result of the f0 and the comparison result of the Q value, when adjusting the volume of the earphone, If the f0 is greater than the second predeterminated frequency threshold value, and the Q value is greater than the second default value of Q threshold value, then turns down described The volume of earphone;If the f0 is less than the second predeterminated frequency threshold value, and the Q value is less than the second default value of Q threshold value, The volume of the earphone is then turned up.
That is, if the comparison of earphone wearing is loose, the leak holes that horizontally arranged leak holes are blocked by ear It is less when tight compared with the comparison that earphone is worn.And if earphone wears relatively tight, earphone better tightness, then impedance curve It is thinner, so that f0 the and Q value detected is bigger;And if earphone wear it is more loose, earphone leakproofness is reported to the leadship after accomplishing a task, then hindering Anti- curve is also more fat, so that f0 the and Q value detected is smaller.Therefore, corresponding is all larger than in f0 the and Q value detected When two preset thresholds, then illustrate that earphone is worn relatively tight, then can moderately turn down earpiece volume to protect hearing;And such as Fruit then illustrates that earphone is worn more loose, then in order to protect when f0 the and Q value detected is respectively less than corresponding second preset threshold Demonstrate,prove the clarity listened to and and promoted and listen to impression, earpiece volume can moderately be turned up.In this way, the embodiment of the present invention can lead to Cross earphone side set up horizontally-arranged leak holes come test earphone wearing tightness mentioned to adjust the volume of earphone Rise user experience.
In a specific example, the switching flow of above-mentioned earphone sound channel can be realized by mobile terminal.It is specific and Speech:
The mobile terminal includes playing module, ear amplification module, judgment module, switching module, audio frequency parameter modified module.
Wherein, playing module is for playing normal audio signal and leak holes (such as the leak holes being vertically arranged) quilt After exchanging left and right acoustic channels audio signal after stifled, and adjust the audio signal after frequency response curve;
Ear amplification module is made of earphone power amplifier, analog-digital converter (ADC) and amplifier.Wherein, earphone power is put Big device is used to receive audio signal, and earphone is driven to work;ADC is used to the voltage and current signal of test earphone and is sent to amplification Device;Amplifier is used to amplify the ADC voltage and current signal sent and handles and upload amplified voltage and current signal To processor;
Judgment module, including processor, for being calculated using amplified voltage and current signal of the processor to upload Method processing, to obtain the real-time f0 and Q value of earphone, and by they respectively with corresponding first preset threshold (i.e. above-mentioned first Predeterminated frequency threshold value and the first default value of Q threshold value) it is compared, and be that real-time f0 is greater than the first predeterminated frequency threshold in comparison result Value, and when Q value is greater than the first default value of Q threshold value in real time, switching command is sent to switching module, and sends regulating command to sound Frequency parameter adapting module;
Switching module, for after receiving switching command, for being input to left channel audio signal and the right side of earphone Channel audio signal is interchangeable processing;
Audio frequency parameter modified module, for wearing the rear real-time f0 detected on the contrary for earphone after receiving regulating command Parameter regulation is carried out with frequency response curve of the Q value to left and right earphone and parameter loads.
By means of the mobile terminal of the embodiment of the present invention, the embodiment of the present invention can when earphone is connected with mobile terminal, It is directly realized by the automatic detection and switching of earphone left and right acoustic channels, user is avoided to carry out manual switching institute to earphone when wearing anti-earphone Bring complex steps and earphone wear the contrary of the stereo audio of uppick caused by inverse time, to cause user experience The problem for feeling difference, simplifies the operation of user, and the audio signal for the different sound channels that can wear inverse time to earphone in time is adjusted, Promote user experience.
Referring to Fig. 4, the block diagram of the mobile terminal of one embodiment of the invention is shown.The mobile terminal and earphone connect It connecing, the outside of the earphone is equipped with the multiple leak holes being vertically arranged, when in left and right, earphone is correctly worn, the multiple leak holes Exposure, the left and right earphone or so is counter wear when, the multiple leak holes are blocked, and mobile terminal shown in Fig. 4 includes:
Real-time detection module 401, the parameter of the impedance curve for earphone described in real-time detection;
First comparison module 402, for the parameter of the impedance curve to be compared with the first default impedance parameter;
Switching Module 403 will input if the parameter for the impedance curve is greater than the described first default impedance parameter Left channel audio signal and right channel audio signal to the earphone swap.
Optionally, referring to Fig. 5, on the basis of fig. 4, the mobile terminal further include:
Adjustment module 404, the frequency response curve for the earphone according to the parameter regulation of the impedance curve.
Wherein, the parameter of the impedance curve includes: the corresponding frequency f0 of first maximum of impedance curve, quality factor Q value.
Optionally, first comparison module 402 includes:
First Comparative sub-module 412, for the f0 to be compared with the first predeterminated frequency threshold value;
Second Comparative sub-module 422, for the Q value to be compared with the first default value of Q threshold value.
Optionally, referring to Fig. 5, on the basis of fig. 4, the mobile terminal further include:
Second comparison module 405, the f0 for will test are compared with second frequency threshold value, obtain the ratio of f0 Relatively result;
Third comparison module 406, the Q value for will test are compared with the second default value of Q threshold value, obtain Q The comparison result of value;
Module 407 is adjusted, for adjusting the earphone according to the comparison result of the f0 and the comparison result of the Q value Volume.
The adjustment module 407 includes:
Submodule 417 is turned down, if being greater than the second predeterminated frequency threshold value for the f0, and the Q value is greater than described Second default value of Q threshold value, then turn down the volume of the earphone;
Submodule 427 is turned up, if being less than the second predeterminated frequency threshold value for the f0, and the Q value is less than described Second default value of Q threshold value, then be turned up the volume of the earphone.
Mobile terminal can be realized the automatic inspection to earphone left and right acoustic channels that mobile terminal is realized in above method embodiment It surveys and switches, avoid user and complex steps brought by earphone progress manual switching and earphone are worn instead when wearing anti-earphone When caused uppick stereo audio it is contrary, to cause the problem of user experience difference, simplify user's Operation, the audio signal for the different sound channels that can wear inverse time to earphone in time are adjusted, and the effect of user experience are promoted, to keep away Exempt to repeat, which is not described herein again.
Fig. 6 is the block diagram of the mobile terminal of another embodiment of the invention.Mobile terminal 600 shown in fig. 6 includes: at least One processor 601, memory 602, at least one network interface 604 and user interface 603.It is each in mobile terminal 600 Component is coupled by bus system 605.It is understood that bus system 605 is logical for realizing the connection between these components Letter.Bus system 605 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But it is For the sake of clear explanation, in Fig. 6 various buses are all designated as bus system 605.The mobile terminal 600 (does not show with earphone It connects out), the outside of the earphone is equipped with multiple leak holes.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 602 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application The program or instruction stored in program 6022, parameter of the processor 601 for the impedance curve of earphone described in real-time detection;By institute The parameter for stating impedance curve is compared with the first default impedance parameter;If it is pre- that the parameter of the impedance curve is greater than described first If impedance parameter, then the left channel audio signal for being input to the earphone and right channel audio signal are swapped.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601. Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 602, processor 601 reads the information in memory 602, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, processor 601 is also used to: in the left channel audio signal and right audio channel that will be input to the earphone After signal swaps, according to the frequency response curve of earphone described in the parameter regulation of the impedance curve.
Wherein, the parameter of the impedance curve includes: the corresponding frequency f0 of first maximum of impedance curve, quality factor Q value.
Optionally, processor 601 is also used to: the f0 is compared with the first predeterminated frequency threshold value;
The Q value is compared with the first default value of Q threshold value.
Optionally, processor 601 is also used to: the left channel audio signal for being input to the earphone and right audio channel are believed After number swapping, the f0 that will test is compared with second frequency threshold value, obtains the comparison result of f0;It will test To the Q value be compared with the second default value of Q threshold value, obtain the comparison result of Q value;According to the comparison result of the f0 and The comparison result of the Q value, adjusts the volume of the earphone.
Optionally, processor 601 is also used to: if the f0 is greater than the second predeterminated frequency threshold value, and the Q value is greater than The second default value of Q threshold value, then turn down the volume of the earphone;If the f0 is less than the second predeterminated frequency threshold value, and The Q value is less than the second default value of Q threshold value, then the volume of the earphone is turned up.
Mobile terminal 600 can be realized the automatic detection to earphone left and right acoustic channels that mobile terminal is realized in previous embodiment And switching, it avoids user and when wearing anti-earphone is worn to complex steps brought by earphone progress manual switching and earphone inverse time The stereo audio of caused uppick it is contrary, to cause the problem of user experience difference, simplify the behaviour of user Make, the audio signal for the different sound channels that can wear inverse time to earphone in time is adjusted, and the effect of user experience is promoted, to avoid It repeats, which is not described herein again.
Fig. 7 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 7 700 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric Brain etc..
Mobile terminal 700 in Fig. 7 includes radio frequency (Radio Frequency, RF) circuit 710, memory 720, input Unit 730, display unit 740, processor 760, voicefrequency circuit 770, WiFi (Wireless Fidelity) module 780 and electricity Source 790.The mobile terminal 700 is connect with earphone (not shown), and the outside of the earphone is equipped with multiple leak holes.
Wherein, input unit 730 can be used for receiving mobile terminal user input number or character information, and generate with The mobile terminal user of mobile terminal 700 is arranged and the related signal input of function control.Specifically, the embodiment of the present invention In, which may include touch panel 731.Touch panel 731, also referred to as touch screen collect mobile terminal and use (for example mobile terminal user uses any suitable object or attachment such as finger, stylus for the touch operation of family on it or nearby Operation on touch panel 731), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 731 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects mobile terminal user's Touch orientation, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch detection Touch information is received on device, and is converted into contact coordinate, then gives the processor 760, and can receive the hair of processor 760 Next order is simultaneously executed.Furthermore, it is possible to using the multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave reality Existing touch panel 731.In addition to touch panel 731, input unit 730 can also include other input equipments 732, other inputs are set Standby 732 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick etc. are a variety of.
Wherein, display unit 740 can be used for showing the information by mobile terminal user's input or be supplied to mobile terminal and uses The information at family and the various menu interfaces of mobile terminal 700.Display unit 740 may include that display panel 741 optionally can To configure display using the forms such as LCD or Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) Panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 760 is sent to determine the type of touch event, is followed by subsequent processing device 760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 760 is the control centre of mobile terminal 700, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 721, and calling storage Data in second memory 722 execute the various functions and processing data of mobile terminal 700, thus to mobile terminal 700 Carry out integral monitoring.Optionally, processor 760 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/ Or the data in the second memory 722, parameter of the processor 760 for the impedance curve of earphone described in real-time detection;By institute The parameter for stating impedance curve is compared with the first default impedance parameter;If it is pre- that the parameter of the impedance curve is greater than described first If impedance parameter, then the left channel audio signal for being input to the earphone and right channel audio signal are swapped.
Optionally, processor 760 is also used to: in the left channel audio signal and right audio channel that will be input to the earphone After signal swaps, according to the frequency response curve of earphone described in the parameter regulation of the impedance curve.
Wherein, the parameter of the impedance curve includes: the corresponding frequency f0 of first maximum of impedance curve, quality factor Q value.
Optionally, processor 760 is also used to: the f0 is compared with the first predeterminated frequency threshold value;
The Q value is compared with the first default value of Q threshold value.
Optionally, processor 760 is also used to: the left channel audio signal for being input to the earphone and right audio channel are believed After number swapping, the f0 that will test is compared with second frequency threshold value, obtains the comparison result of f0;It will test To the Q value be compared with the second default value of Q threshold value, obtain the comparison result of Q value;According to the comparison result of the f0 and The comparison result of the Q value, adjusts the volume of the earphone.
Optionally, processor 760 is also used to: if the f0 is greater than the second predeterminated frequency threshold value, and the Q value is greater than The second default value of Q threshold value, then turn down the volume of the earphone;If the f0 is less than the second predeterminated frequency threshold value, and The Q value is less than the second default value of Q threshold value, then the volume of the earphone is turned up.
As it can be seen that the embodiment of the present invention can be realized the automatic detection and switching to earphone left and right acoustic channels, avoids user and exist Complex steps brought by manual switching are carried out to earphone when wearing anti-earphone and earphone wears the vertical of uppick caused by inverse time Body audio it is contrary, to cause the problem of user experience difference, simplify the operation of user, earphone can be worn in time The audio signal of the different sound channels of inverse time is adjusted, and promotes the effect of user experience, and to avoid repeating, which is not described herein again.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

1. a kind of switching method of earphone sound channel is applied to mobile terminal, the mobile terminal is connect with earphone, and feature exists In the outside of the earphone is equipped with multiple leak holes, which comprises
The parameter of the impedance curve of earphone described in real-time detection;
The parameter of the impedance curve is compared with the first default impedance parameter;
If the parameter of the impedance curve is greater than the described first default impedance parameter, the L channel sound of the earphone will be input to Frequency signal and right channel audio signal swap.
2. the method according to claim 1, wherein the left channel audio for being input to the earphone is believed described Number and right channel audio signal the step of swapping after, the method also includes:
According to the frequency response curve of earphone described in the parameter regulation of the impedance curve.
3. the method according to claim 1, wherein the parameter of the impedance curve includes: impedance curve first The corresponding frequency f0 of a maximum, Q value.
4. according to the method described in claim 3, it is characterized in that, the parameter by the impedance curve and the first pre- handicapping The step of anti-parameter is compared, comprising:
The f0 is compared with the first predeterminated frequency threshold value;
The Q value is compared with the first default value of Q threshold value.
5. according to the method described in claim 3, it is characterized in that, the left channel audio signal that the earphone will be input to After the step of being swapped with right channel audio signal, the method also includes:
The f0 that will test is compared with second frequency threshold value, obtains the comparison result of f0;
The Q value that will test is compared with the second default value of Q threshold value, obtains the comparison result of Q value;
According to the comparison result of the comparison result of the f0 and the Q value, the volume of the earphone is adjusted.
6. according to the method described in claim 5, it is characterized in that, the comparison result according to the f0 and the Q value Comparison result, the step of adjusting the volume of the earphone, comprising:
If the f0 is greater than the second predeterminated frequency threshold value, and the Q value is greater than the second default value of Q threshold value, then turns down The volume of the earphone;
If the f0 is less than the second predeterminated frequency threshold value, and the Q value is less than the second default value of Q threshold value, then is turned up The volume of the earphone.
7. a kind of mobile terminal, the mobile terminal is connect with earphone, which is characterized in that the outside of the earphone is equipped with multiple let out Reveal hole, the mobile terminal includes:
Real-time detection module, the parameter of the impedance curve for earphone described in real-time detection;
First comparison module, for the parameter of the impedance curve to be compared with the first default impedance parameter;
Switching Module will be input to described if the parameter for the impedance curve is greater than the described first default impedance parameter The left channel audio signal and right channel audio signal of earphone swap.
8. mobile terminal according to claim 7, which is characterized in that the mobile terminal further include:
Adjustment module, the frequency response curve for the earphone according to the parameter regulation of the impedance curve.
9. mobile terminal according to claim 7, which is characterized in that the parameter of the impedance curve includes: impedance curve The corresponding frequency f0 of first maximum, Q value.
10. mobile terminal according to claim 9, which is characterized in that first comparison module includes:
First Comparative sub-module, for the f0 to be compared with the first predeterminated frequency threshold value;
Second Comparative sub-module, for the Q value to be compared with the first default value of Q threshold value.
11. mobile terminal according to claim 9, which is characterized in that the mobile terminal further include:
Second comparison module, the f0 for will test are compared with second frequency threshold value, obtain the comparison result of f0;
Third comparison module, the Q value for will test are compared with the second default value of Q threshold value, obtain the comparison of Q value As a result;
Module is adjusted, for adjusting the volume of the earphone according to the comparison result of the f0 and the comparison result of the Q value.
12. mobile terminal according to claim 11, which is characterized in that the adjustment module includes:
Submodule is turned down, if being greater than the second predeterminated frequency threshold value for the f0, and the Q value is greater than described second and presets Q value threshold value, then turn down the volume of the earphone;
Submodule is turned up, if being less than the second predeterminated frequency threshold value for the f0, and the Q value is less than described second and presets Q value threshold value, then be turned up the volume of the earphone.
CN201611079993.1A 2016-11-29 2016-11-29 A kind of switching method and mobile terminal of earphone sound channel Active CN106851486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611079993.1A CN106851486B (en) 2016-11-29 2016-11-29 A kind of switching method and mobile terminal of earphone sound channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611079993.1A CN106851486B (en) 2016-11-29 2016-11-29 A kind of switching method and mobile terminal of earphone sound channel

Publications (2)

Publication Number Publication Date
CN106851486A CN106851486A (en) 2017-06-13
CN106851486B true CN106851486B (en) 2019-10-18

Family

ID=59145471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611079993.1A Active CN106851486B (en) 2016-11-29 2016-11-29 A kind of switching method and mobile terminal of earphone sound channel

Country Status (1)

Country Link
CN (1) CN106851486B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801113B (en) * 2017-10-09 2019-11-05 维沃移动通信有限公司 A kind of method, wireless headset and mobile terminal controlling wireless headset sound channel
CN107948792B (en) * 2017-12-07 2020-03-31 歌尔科技有限公司 Left and right sound channel determination method and earphone equipment
CN109240642B (en) * 2018-09-26 2021-09-03 深圳市中科明望通信软件有限公司 Volume adjusting method and device of terminal equipment and terminal equipment
CN109753777B (en) * 2018-12-29 2021-06-15 上海瑾盛通信科技有限公司 Identity recognition method, identity recognition device, storage medium and mobile terminal
CN114079836B (en) * 2020-08-20 2023-03-03 华为技术有限公司 Earphone set
CN115278470A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Method for calibrating left and right ear of earphone and earphone
CN114143653B (en) * 2021-11-30 2024-05-28 深圳市科奈信科技有限公司 Earphone radio mode switching method and earphone

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060088648A (en) * 2005-02-02 2006-08-07 엘지전자 주식회사 Channel monitoring device and control method
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
CN105681946A (en) * 2015-12-31 2016-06-15 东莞酷派软件技术有限公司 Headphone, headphone channel control method and terminal
CN106210949A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 The mode switching method of a kind of earphone and mode-changeover device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8594341B2 (en) * 2004-10-18 2013-11-26 Leigh M. Rothschild System and method for selectively switching between a plurality of audio channels

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060088648A (en) * 2005-02-02 2006-08-07 엘지전자 주식회사 Channel monitoring device and control method
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
CN105681946A (en) * 2015-12-31 2016-06-15 东莞酷派软件技术有限公司 Headphone, headphone channel control method and terminal
CN106210949A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 The mode switching method of a kind of earphone and mode-changeover device

Also Published As

Publication number Publication date
CN106851486A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106851486B (en) A kind of switching method and mobile terminal of earphone sound channel
CN106027809B (en) A kind of adjusting method and mobile terminal of volume
CN106341535B (en) A kind of audio play control method and mobile terminal
CN106101909B (en) A kind of method and mobile terminal of earphone noise reduction
CN106303804B (en) A kind of control method and mobile terminal of microphone
CN106055301B (en) A kind of sound volume setting method and mobile terminal
CN105827853B (en) A kind of output control method and mobile terminal of the outer playback amount of terminal
CN105246000A (en) Method for improving sound quality of headset and mobile terminal
CN106454588A (en) Earphone and earphone channel switching method
CN106101929A (en) A kind of protection human ear audition method and mobile terminal
CN107623776A (en) A volume control method, system and mobile terminal
CN106817656B (en) A kind of outer method and mobile terminal for putting sound system audio calibration
CN106358127A (en) Left and right sound channel switching method and mobile terminal
CN106205580B (en) A kind of audio data processing method and terminal
CN107277268A (en) A kind of audio frequency playing method and mobile terminal
CN106060710B (en) A kind of audio-frequency inputting method and electronic equipment
CN106714038B (en) A kind of control method and mobile terminal of sound intensity
CN103699501A (en) Audio equipment managing method and system of mobile terminal
CN106375576B (en) A kind of voice-frequency channel control method and mobile terminal
CN105916074A (en) Play control method for multimedia and terminal
CN106068009A (en) Method and the electronic installation of calibration is put outside speaker
CN106412671B (en) A kind of video broadcasting method and mobile terminal
CN106878868A (en) A kind of control device of loudspeaker, method and mobile terminal
CN107241642B (en) A kind of playback method and terminal
CN107547987B (en) A kind of effect adjusting method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant