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.
It is the flow chart of the sound quality adjusting method of earphone provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, is applied to terminal,
The terminal is connected with earphone, and the earphone includes auricular concha.As shown in Figure 1, comprising the following steps:
Whether step 101, the detection earphone are inserted into wearer's ear canal.
In this step, it can detect the real-time range between auricular concha and wearer's ear canal eardrum.If detecting described
Real-time range between auricular concha and wearer's ear canal eardrum is less than or equal to pre-determined distance threshold value, then obtain it is described in real time away from
From state duration.If the state duration is greater than or equal to preset time threshold, it is determined that detect the ear
Machine is inserted into wearer's ear canal.Wherein, the state duration be detect the real-time range be less than or equal to it is default away from
Duration from threshold value.Wherein, the pre-determined distance threshold value and preset time threshold can be preset.
Step 102, when detecting that earphone is inserted into wearer's ear canal, detect auricular concha and wearer's ear canal eardrum it
Between distance.
In embodiments of the present invention, distance measuring sensor can be set on auricular concha.When detecting that earphone is worn into wearer
When ear canal, the distance between auricular concha and wearer's ear canal eardrum are detected using the distance measuring sensor.
Step 103 determines the corresponding acoustic pressure adjusted value of the distance between the auricular concha and wearer's ear canal eardrum.
Specifically, in this step, according to preset first corresponding relationship, determining the auricular concha and wearer's ear canal
The corresponding first ear canal coupler length value of the distance between eardrum determines described first according to preset second corresponding relationship
The corresponding acoustic pressure adjusted value of ear canal coupler length value.Wherein, first corresponding relationship is auricular concha and wearer's ear canal periosteum
The distance between the corresponding relationship of cavity length is coupled with ear canal, second corresponding relationship is ear canal coupler length value and acoustic pressure
The corresponding relationship of adjusted value.
Wherein, first corresponding relationship and the second corresponding relationship can be preset.
For the second corresponding relationship, in practical applications, it is long which can be multiple single ear canal couplers
The corresponding relationship of angle value and single acoustic pressure adjusted value is also possible to multiple ear canal coupler length range values and acoustic pressure adjustment model
Enclose the corresponding relationship of value.
Specifically, obtaining the curved line relation between ear canal coupler length value and sound pressure level.According to the ear canal coupler
Curved line relation between length value and sound pressure level obtains M sound pressure level corresponding to N number of ear canal coupler length value, by the N
Corresponding relationship between a ear canal coupler length value and the M sound pressure level is determined as second corresponding relationship;Wherein, N
It is natural number with M.
Step 104, according to the acoustic pressure adjusted value, adjust the acoustic pressure of the audio signal of the earphone output.
In this step, the sound pressure level for the audio signal that the earphone exports is adjusted to the acoustic pressure adjusted value.
In this way, in the embodiment of the present invention, when detecting that earphone is inserted into wearer's ear canal, according to the auricular concha detected and
The distance between wearer's ear canal eardrum determines corresponding acoustic pressure adjusted value, and defeated using the acoustic pressure adjusted value adjustment earphone
The acoustic pressure of audio signal out.Therefore, using the scheme of the embodiment of the present invention, earphone can be worn according to different earphone wearers
Difference, adjust the acoustic pressure of the audio signal of output, solve the sound quality exported as wearing same earphone brought by difference
Different problems.
In the embodiment of the present invention, the above method can be applied to terminal, such as: mobile phone, tablet computer (Tablet
Personal Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
Referring to fig. 2, Fig. 2 is the flow chart of the sound quality adjusting method of earphone provided in an embodiment of the present invention, as shown in Fig. 2,
The following steps are included:
Step 201 presets the first corresponding relationship and the second corresponding relationship.
Wherein, first corresponding relationship is that the distance between auricular concha and wearer's ear canal periosteum couple cavity length with ear canal
Corresponding relationship, second corresponding relationship be ear canal coupler length value and acoustic pressure adjusted value corresponding relationship.
For the first corresponding relationship, the distance between settable auricular concha and wearer's ear canal periosteum herein, with some ear canal
The corresponding relationship for coupling cavity length, can also be arranged the distance between some auricular concha and wearer's ear canal periosteum range and some ear
The corresponding relationship of road coupler length range.
For the second corresponding relationship, in embodiments of the present invention, the coupler formed after earphone and human ear wearing is in acoustics
Upper to become ante-chamber, the acoustic capacitance of ante-chamber mainly influences the high band of earphone, and Principles of Acoustics figure is as shown in Figure 3.
In Fig. 3, Cas, Ras, Mas, Ca2 physical quantity are known quantities.It is acoustic resistance that Ma1, which is acoustic mass, Ra1, the two physics
It measures related with the ante-chamber of headset body.Once headset designs sizing after, the two parameters it is also known that.What wherein Ca1 was indicated is ear
The corresponding acoustic capacitance for the sealed coupling cavity space that machine and ear canal are formed, physical expressions are as follows:
Ca1=V/ ρ C0 2=SdLg/ ρ C0 2 (1)
In formula (1), V represents the volume for the sealed coupling cavity space that earphone and ear canal are formed, and Sd indicates the section of ear canal
Product, Lg indicate the length of coupler, and ρ indicates the density of air, C0Indicate the spread speed of sound wave.Due to wearing in earphone and ear canal
The comparison in difference for wearing rear Sd is small, can default it here for steady state value.It is further done and is simplified such as Fig. 4 institute according to the schematic diagram of Fig. 3
Show.The wherein equivalent total impedance at other several (Ca2, Cas, Mas, Ras) physical quantitys of Zb, Za Ma1, Ca1, Ra1 it is equivalent
Impedance.It derives, the acoustic pressure and wear the relationship between coupler that human ear receives are as follows:
From formula (2), formula (3) as can be seen that the acoustic pressure Pa that human ear receives is to be in reverse phase with Lg (coupling cavity length)
The relationship of pass.That is, the value of Lg is bigger, the acoustic pressure of high band is lower.It, can be by detecting according to this acoustic formula
Out, for the value of different coupling cavity length Lg, by the output of corresponding adjustment Pg, the high band that human ear can be made to receive
Acoustic pressure Pa always one it is metastable numerically.
Based on above-mentioned acoustics mechanism, it can be confirmed out and set according to desired best sound effect in the headset designs stage
Curved line relation between the value Lg and acoustic pressure Pg of the corresponding ear canal coupling cavity length of timing.Then, according to the curved line relation, with ±
0.1mm is deviation precision, deviation range is ± 2mm, to simulate the length for the coupler that practical human ear is worn, and is successively calculated
Corresponding sound pressure level Pg+ △ Pg.Then, it according to the multiple groups numerical value of acquisition, establishes between Lg+ △ Lg and corresponding Pg+ △ Pg
Corresponding relationship.
In practical applications, the pre-set corresponding relationship can be the value range and acoustic pressure model of ear canal coupling cavity length
Enclose the corresponding relationship between value.For example, the corresponding relationship can be corresponding relationship as shown in table 1 below.
Table 1
The range of ear canal coupling cavity length |
Acoustic pressure range |
a1mm–a2mm |
Pg1-pg2 |
a3mm–a4mm |
Pg3-pg4 |
a4mm–a5mm |
Pg5-pg6 |
Numerical value in above table can be arbitrarily arranged.
Whether step 202, the detection terminal are playing audio data and whether the detection earphone is inserted into pendant
Wearer's ear canal.
When detecting that the terminal is playing audio data and earphone is worn, 203 are thened follow the steps;If terminal is not broadcast
Playback frequency file perhaps do not worn by earphone, can be terminated or be continued return step 202 and be detected.
Step 203, detection the distance between auricular concha and wearer's ear canal eardrum.
In embodiments of the present invention, distance measuring sensor can be set on auricular concha.When detecting that earphone is worn into ear canal,
The distance between auricular concha and wearer's ear canal eardrum are detected using the distance measuring sensor.When detecting that earphone is worn into ear canal
When, starting distance measuring sensor work.For the distance measuring sensor that the present invention uses for high-precision laser range-finding sensor, precision is reachable
1um。
Step 204 determines the corresponding acoustic pressure adjusted value of the distance between the auricular concha and wearer's ear canal eardrum.
The distance detected according to step 203, the first corresponding relationship being arranged in finding step 201, determines this apart from right
The the first ear canal coupler length value answered.Then, second be arranged in the first ear canal coupler length value finding step 201 is utilized
Corresponding acoustic pressure adjusted value can be obtained in corresponding relationship.
By taking the corresponding relationship is the corresponding relationship of multiple ear canal coupler length range values and acoustic pressure adjusting range value as an example.
According to the distance that detected, determine that this, apart from corresponding ear canal coupler length range, is determined further according to the corresponding relationship
Corresponding acoustic pressure adjusting range.
Step 205, according to the acoustic pressure adjusted value, adjust the acoustic pressure of the audio signal of the earphone output.
By the above-mentioned means, can ensure that according to the coupling cavity length detected, the acoustic pressure of the high band exported from earphone
Curve is still that design is consistent, so that the earphone acoustical quality that consumer hears is always consistent.
In this way, in the embodiment of the present invention, when detecting that earphone is inserted into wearer's ear canal, according to the auricular concha detected and
The distance between wearer's ear canal eardrum determines corresponding acoustic pressure adjusted value, and defeated using the acoustic pressure adjusted value adjustment earphone
The acoustic pressure of audio signal out.Therefore, using the scheme of the embodiment of the present invention, earphone can be worn according to different earphone wearers
Difference, adjust the acoustic pressure of the audio signal of output, solve the sound quality exported as wearing same earphone brought by difference
Different problems.
It is the structure chart that the present invention implements the terminal provided referring to Fig. 5, Fig. 5.The terminal is connected with earphone;The earphone
Including auricular concha, the earphone wears the ear canal into human body by the auricular concha.As shown in figure 5, the terminal packet of the embodiment of the present invention
It includes: including:
First detection module 501, for detecting whether the earphone is inserted into wearer's ear canal;Second detection module 502,
For detecting auricular concha and wearer's ear when the first detection module 501 detects that earphone is inserted into wearer's ear canal
The distance between road eardrum;Determining module 503, for determining the auricular concha that second detection module 501 detects and described
The corresponding acoustic pressure adjusted value of the distance between wearer's ear canal eardrum;Module 504 is adjusted, for determining according to determining module 502
Acoustic pressure adjusted value, adjust the acoustic pressure of the audio signal of earphone output.
In practical applications, the sound quality adjusting parameter includes acoustic pressure adjusted value.As shown in fig. 6, the determining module 503
It include: the first determining submodule 5031, for determining the auricular concha and wearer's ear according to preset first corresponding relationship
The corresponding first ear canal coupler length value of the distance between road eardrum;Second determines submodule 5032, for according to preset
Second corresponding relationship determines the corresponding acoustic pressure adjusted value of the first ear canal coupler length value.Wherein, the described first corresponding pass
System is the corresponding relationship that the distance between auricular concha and wearer's ear canal periosteum couple cavity length with ear canal, second corresponding relationship
For the corresponding relationship of ear canal coupler length value and acoustic pressure adjusted value.
Wherein, the adjustment module 504 is specifically used for, and the sound pressure level for the audio signal that the earphone exports is adjusted to institute
State acoustic pressure adjusted value.
As shown in fig. 7, the terminal further include: first obtains module 505, for obtaining ear canal coupler length value harmony
Curved line relation between pressure value;Second obtains module 506, for according between the ear canal coupler length value and sound pressure level
Curved line relation obtains M sound pressure level corresponding to N number of ear canal coupler length value;First processing module 507 is used for the N
Corresponding relationship between a ear canal coupler length value and the M sound pressure level is determined as second corresponding relationship;Wherein, N
It is natural number with M.
As shown in figure 8, the terminal further include: state detection module 508, for detecting whether the terminal is playing
Audio data;Second detection module 501 is specifically used for, and when detecting that the terminal is playing audio data, then examines
Survey the distance between auricular concha and wearer's ear canal eardrum.
As shown in figure 9, the first detection module 501 includes:
First detection sub-module 5011, for detecting the real-time range between auricular concha and wearer's ear canal eardrum;The
One acquisition submodule 5012, if for detect the real-time range between the auricular concha and wearer's ear canal eardrum be less than or
Equal to pre-determined distance threshold value, then the state duration of the real-time range is obtained;First determines submodule 5013, if being used for institute
State duration is stated more than or equal to preset time threshold, it is determined that detect that the earphone is inserted into wearer's ear canal;Its
In, the state duration is to detect that the real-time range is less than or equal to the duration of pre-determined distance threshold value.
Terminal 500 can be realized each process that terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2, to avoid repeating, this
In repeat no more.
In this way, in the embodiment of the present invention, when detecting that earphone is inserted into wearer's ear canal, according to the auricular concha detected and
The distance between wearer's ear canal eardrum determines corresponding acoustic pressure adjusted value, and defeated using the acoustic pressure adjusted value adjustment earphone
The acoustic pressure of audio signal out.Therefore, using the scheme of the embodiment of the present invention, earphone can be worn according to different earphone wearers
Difference, adjust the acoustic pressure of the audio signal of output, solve the sound quality exported as wearing same earphone brought by difference
Different problems.
It as shown in Figure 10, is the schematic diagram of the terminal of the embodiment of the present invention.The terminal 1000 includes: control and processing mould
Block 1001, music module 1002, handset module 1003, distance measuring sensor 1004.
Wherein, the control is mainly responsible for the data that analysis distance measuring sensor 1004 obtains with processing module 1001, and really
Fixed corresponding acoustic pressure output valve, notice music module 120 execute corresponding output function;The music module 1002 is responsible for feed-in
Earphone music, and the functions such as the broadcasting of music, sound quality adjustment according to the instruction of control and processing module, can be controlled;The earphone
Module 1003 can be wired earphone, wireless headset;The handset module includes auricular concha, and the auricular concha is earphone and human ear ear
The component of road wear contact;As shown in figure 11, the auricular concha 10031 that the distance measuring sensor 1004 is mounted on handset module 1003 is surveyed
It needs away from sensor using high-precision sensor, it is desirable that its precision is not less than 1um;After earphone and human ear canal fitting,
The distance measuring sensor 1004 can be with the distance of real-time measurement produce agaric shell surface lid to human ear ear canal eardrum.
It is the structure chart that the present invention implements the terminal provided referring to Figure 12, Figure 12, as shown in figure 12, terminal 1200 includes:
At least one processor 1201, memory 1202, at least one network interface 1204 and user interface 1203.In terminal 1200
Various components are coupled by bus system 1205.It is understood that bus system 1205 is for realizing between these components
Connection communication.Bus system 1205 further includes that power bus, control bus and status signal are total in addition to including data/address bus
Line.But for the sake of clear explanation, various buses are all designated as bus system 1205 in Figure 12.
Wherein, user interface 1203 may include display, keyboard or pointing device (for example, mouse, trace ball
(track ball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 1202 in the embodiment of the present invention can be volatile memory or non-volatile memories
Device, 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), erasable programmable are only
Read memory (Erasable P ROM, EPROM), electrically erasable programmable read-only memory (Electrically EP ROM,
) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), use
Make External Cache.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 D RAM, SDRAM), double data speed synchronous dynamic RAM (Double
Data Rate SD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM,
ESDRAM), synchronized links dynamic random access memory (Synch link D RAM, SLDRAM) and direct rambus are random
It accesses memory (Direct Rambus RAM, DRRAM).The memory 1202 of system and method described herein is intended to include
But it is not limited to the memory of these and any other suitable type.
In some embodiments, memory 1202 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 12021 and application program 12022.
Wherein, operating system 12021 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 12022 includes various application programs, such as matchmaker
Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented
The program of example method may be embodied in application program 12022.
The terminal is connected with earphone, and the earphone includes auricular concha.
In embodiments of the present invention, by the program or instruction of calling memory 1202 to store, specifically, can be application
The program or instruction stored in program 12022, processor 1201 are used for: detecting whether the earphone is inserted into wearer's ear canal;
When detecting that earphone is inserted into wearer's ear canal, the distance between auricular concha and wearer's ear canal eardrum are detected;Determine institute
State the corresponding acoustic pressure adjusted value of the distance between auricular concha and wearer's ear canal eardrum;According to the acoustic pressure adjusted value, adjustment
The acoustic pressure of the audio signal of the earphone output.
The method that the embodiments of the present invention disclose can be applied in processor 1201, or real by processor 1201
It is existing.Processor 1201 may be a kind of IC chip, the processing capacity with signal.During realization, the above method
Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1201 or software form.Above-mentioned
Processor 1201 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated
Integrated circuit (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 1202, processor 1201 reads the information in memory 1202, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (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 processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, processor 1201 is also used to: according to preset first corresponding relationship, determining the auricular concha and the wearing
The corresponding first ear canal coupler length value of the distance between person's ear canal eardrum;According to preset second corresponding relationship, institute is determined
State the corresponding acoustic pressure adjusted value of the first ear canal coupler length value;Wherein, first corresponding relationship is auricular concha and wearer's ear
The distance between road periosteum couples the corresponding relationship of cavity length with ear canal, and second corresponding relationship is ear canal coupler length value
With the corresponding relationship of acoustic pressure adjusted value.
Optionally, processor 1201 is also used to: obtaining the curved line relation between ear canal coupler length value and sound pressure level;Root
According to the curved line relation between the ear canal coupler length value and sound pressure level, M corresponding to N number of ear canal coupler length value is obtained
A sound pressure level;Corresponding relationship between N number of ear canal coupler length value and the M sound pressure level is determined as described second
Corresponding relationship;Wherein, N and M is natural number.
Optionally, processor 1201 is also used to: the sound pressure level for the audio signal that the earphone exports is adjusted to the sound
Press adjusted value.
Optionally, processor 1201 is also used to: detecting whether the terminal is playing audio data;It is described when detecting
When terminal is playing audio data, then the distance between auricular concha and wearer's ear canal eardrum are detected.
Optionally, processor 1201 is also used to: test between real-time detection auricular concha and wearer's ear canal eardrum away from
From;If detect that the measuring distance between the auricular concha and wearer's ear canal eardrum is less than or equal to pre-determined distance,
Detect that the earphone is inserted into wearer's ear canal.
Terminal 1200 can be realized each process that terminal is realized in previous embodiment, no longer superfluous here to avoid repeating
It states.
In this way, in the embodiment of the present invention, when detecting that earphone is inserted into wearer's ear canal, according to the auricular concha detected and
The distance between wearer's ear canal eardrum determines corresponding acoustic pressure adjusted value, and defeated using the acoustic pressure adjusted value adjustment earphone
The acoustic pressure of audio signal out.Therefore, using the scheme of the embodiment of the present invention, earphone can be worn according to different earphone wearers
Difference, adjust the acoustic pressure of the audio signal of output, solve the sound quality exported as wearing same earphone brought by difference
Different problems.
It is the structure chart that the present invention implements the terminal provided referring to Figure 13, Figure 13, as shown in figure 13, terminal 1300 includes penetrating
Frequently (Radio Frequency, RF) circuit 1310, memory 1320, input unit 1330, display unit 1340, processor
1350, voicefrequency circuit 1360, communication module 1370, power supply 1380.
Wherein, input unit 1330 can be used for receiving the number or character information of user's input, and generation and terminal
The related signal input of 1300 user setting and function control.Specifically, in the embodiment of the present invention, the input unit 1330
It may include touch panel 1331.Touch panel 1331, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses the operations of any suitable object or attachment on touch panel 1331 such as finger, stylus), and according to
Preset formula drives corresponding attachment device.Optionally, touch panel 1331 may include touch detecting apparatus and touch
Two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected,
Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching
Point coordinate, then gives the processor 1350, and can receive order that processor 1350 is sent and be executed.Furthermore, it is possible to adopt
Touch panel 1331 is realized with multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1331, input unit 1330 can also include other input equipments 1332, other input equipments 1332 can include but is not limited to
One of physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are more
Kind.
Wherein, display unit 1340 can be used for showing information input by user or be supplied to the information and terminal of user
1300 various menu interfaces.Display unit 1340 may include display panel 1341, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 1341.
It should be noted that touch panel 1331 can cover display panel 1341, touch display screen is formed, when the touch display screen
After detecting touch operation on it or nearby, processor 1350 is sent to determine the type of touch event, is followed by subsequent processing
Device 1350 provides 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.The touch screen of the embodiment of the present invention is soft
Property screen, organic transparent conductive film of carbon nanotube is posted in two faces of flexible screen.
Wherein processor 1350 is the control centre of terminal 1300, utilizes each of various interfaces and connection whole mobile phone
A part by running or execute the software program and/or module that are stored in first memory 1321, and is called and is stored in
Data in second memory 1322 execute the various functions and processing data of terminal 1300, to carry out to terminal 1300 whole
Body monitoring.Optionally, processor 1350 may include one or more processing units.
The terminal is connected with earphone, and the earphone includes auricular concha.
In embodiments of the present invention, by call store the first memory 1321 in software program and/or module and/
Or the data in the second memory 1322, processor 1350 are used for: detecting whether the earphone is inserted into wearer's ear canal;When
When detecting that earphone is inserted into wearer's ear canal, the distance between auricular concha and wearer's ear canal eardrum are detected;Described in determination
The corresponding acoustic pressure adjusted value of the distance between auricular concha and wearer's ear canal eardrum;According to the acoustic pressure adjusted value, institute is adjusted
State the acoustic pressure of the audio signal of earphone output.
Optionally, processor 1350 is also used to: according to preset first corresponding relationship, determining the auricular concha and the wearing
The corresponding first ear canal coupler length value of the distance between person's ear canal eardrum;According to preset second corresponding relationship, institute is determined
State the corresponding acoustic pressure adjusted value of the first ear canal coupler length value;Wherein, first corresponding relationship is auricular concha and wearer's ear
The distance between road periosteum couples the corresponding relationship of cavity length with ear canal, and second corresponding relationship is ear canal coupler length value
With the corresponding relationship of acoustic pressure adjusted value.
Optionally, processor 1350 is also used to: obtaining the curved line relation between ear canal coupler length value and sound pressure level;Root
According to the curved line relation between the ear canal coupler length value and sound pressure level, M corresponding to N number of ear canal coupler length value is obtained
A sound pressure level;Corresponding relationship between N number of ear canal coupler length value and the M sound pressure level is determined as described second
Corresponding relationship;Wherein, N and M is natural number.
Optionally, processor 1350 is also used to: the sound pressure level for the audio signal that the earphone exports is adjusted to the sound
Press adjusted value.
Optionally, processor 1350 is also used to: detecting whether the terminal is playing audio data;It is described when detecting
When terminal is playing audio data, then the distance between auricular concha and wearer's ear canal eardrum are detected.
Optionally, processor 1350 is also used to: test between real-time detection auricular concha and wearer's ear canal eardrum away from
From;If detect that the measuring distance between the auricular concha and wearer's ear canal eardrum is less than or equal to pre-determined distance,
Detect that the earphone is inserted into wearer's ear canal.
Terminal 1300 can be realized each process that terminal is realized in previous embodiment, no longer superfluous here to avoid repeating
It states.
In this way, in the embodiment of the present invention, when detecting that earphone is inserted into wearer's ear canal, according to the auricular concha detected and
The distance between wearer's ear canal eardrum determines corresponding acoustic pressure adjusted value, and defeated using the acoustic pressure adjusted value adjustment earphone
The acoustic pressure of audio signal out.Therefore, using the scheme of the embodiment of the present invention, earphone can be worn according to different earphone wearers
Difference, adjust the acoustic pressure of the audio signal of output, solve the sound quality exported as wearing same earphone brought by difference
Different problems.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program and (refer to
Enable), which performs the steps of when being executed by processor
When detecting that earphone is worn into ear canal, the distance between auricular concha and ear canal eardrum are detected;Determine the auricular concha
The corresponding sound quality adjusting parameter of the distance between the ear canal eardrum;It is defeated that the earphone is adjusted according to the sound quality adjusting parameter
The sound quality of audio signal out.
Optionally, following steps be can also be achieved: determining the distance between the auricular concha and the ear canal eardrum corresponding
One ear canal coupler length value;The corresponding relationship of ear canal coupler length value and acoustic pressure adjusted value is searched, first ear is obtained
The corresponding acoustic pressure adjusted value of road coupler length value.
Optionally, following steps be can also be achieved: the sound pressure level of the audio signal of the earphone output is adjusted, so that the ear
The sound pressure level of the audio signal of machine output is equal to the acoustic pressure adjusted value.
Optionally, following steps be can also be achieved: presetting pair of the ear canal coupler length value and acoustic pressure adjusted value
It should be related to.
Optionally, following steps be can also be achieved: determining whether the terminal is playing audio file;When determining the end
When end is playing audio file, the distance between auricular concha and ear canal eardrum are detected.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present 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.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
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.