CN106982403A - Detection method and terminal that a kind of earphone is worn - Google Patents

Detection method and terminal that a kind of earphone is worn Download PDF

Info

Publication number
CN106982403A
CN106982403A CN201710388938.9A CN201710388938A CN106982403A CN 106982403 A CN106982403 A CN 106982403A CN 201710388938 A CN201710388938 A CN 201710388938A CN 106982403 A CN106982403 A CN 106982403A
Authority
CN
China
Prior art keywords
audio signal
earphone
source
duct
sound
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.)
Withdrawn
Application number
CN201710388938.9A
Other languages
Chinese (zh)
Inventor
向攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201710388938.9A priority Critical patent/CN106982403A/en
Publication of CN106982403A publication Critical patent/CN106982403A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiments of the invention provide the detection method and terminal that a kind of earphone is worn, wherein method includes:Obtain the feedback audio signal that earphone source of sound audio signal in itself and earphone are received in duct;Extract the audio signal of wherein target frequency bands;Draw the characteristic value of the audio signal of target frequency bands;The difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal is calculated, and difference is compared with default poor threshold value;Corresponding prompting is sent according to comparative result.The feedback audio signal received by earphone source of sound audio signal in itself and earphone in duct, extract the audio signal of wherein target frequency bands, and draw the characteristic value of target frequency bands audio signal, the difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal is compared with default poor threshold value again, to reach the whether correct purpose of mode for judging that earphone is worn, accuracy is high, can detect in real time, simple and convenient.

Description

Detection method and terminal that a kind of earphone is worn
Technical field
The present invention relates to electronic technology field, more particularly to the detection method and terminal that a kind of earphone is worn.
Background technology
Earphone is by its special occupation mode, it is necessary to could embody the due effect of earphone institute in the case of correct wear Really.So, using a kind of detection mode, instruct user correctly to wear earphone, as a kind of very necessary measure, and this Planting detection mode needs accurate and practicality.
The guidance that existing earphone is worn, is informed with written document more, or passes through ergonomics, lifting earphone profile and people The compactness of ear, makes what the more comfortable this mode of wearer can also lift earphone to wear correctness.In addition, also having by inside and outside The modes, the method for test earphone wearing state such as side humidity difference, interior outside noise variance.
However, the written method for informing and being lifted the comfortableness under correct wear condition, is all the side by passively instructing Formula, allows user to feel and is adjusted to optimal wearing position, such mode initiative is poor.Detect humidity difference, noise variance Etc. mode, it is necessary to increase the other equipments such as more sensor, the increase to earphone cost is larger.
The content of the invention
Whether the embodiment of the present invention provides the detection method that a kind of earphone is worn, simply and easily earphone can be worn correct Detected in real time, accuracy is high.
In a first aspect, the embodiments of the invention provide the detection method that a kind of earphone is worn, this method includes:
Obtain the feedback audio signal that earphone source of sound audio signal in itself and earphone are received in duct;
Extract the audio signal of target frequency bands in the source of sound audio signal and the feedback audio signal;
The characteristic value of the audio signal of the target frequency bands is drawn according to the first preparatory condition;
Calculate between the characteristic value of the source of sound audio signal and the characteristic value of the feedback audio signal Difference, and the difference is compared with default poor threshold value;
Corresponding prompting is sent according to the comparative result between the difference and default poor threshold value.
On the other hand, the embodiments of the invention provide a kind of terminal, the terminal includes:
Acquiring unit, for obtaining the feedback sound that earphone source of sound audio signal in itself and earphone are received in duct Frequency signal;
Extraction unit, the audio for extracting target frequency bands in the source of sound audio signal and the feedback audio signal is believed Number;
Arithmetic element, the characteristic value of the audio signal for drawing the target frequency bands according to the first preparatory condition;
Comparing unit, for calculating described in the characteristic value and the feedback audio signal of the source of sound audio signal Difference between characteristic value, and the difference is compared with default poor threshold value;
Tip element, for sending corresponding prompting according to the comparative result between the difference and default poor threshold value.
Detection method and terminal that the earphone of the embodiment of the present invention is worn, by earphone source of sound audio signal in itself and The feedback audio signal that earphone is received in duct, extracts the sound of target frequency bands in source of sound audio signal and feedback audio signal Frequency signal, and draw according to preparatory condition the characteristic value of target frequency bands audio signal, then by the characteristic value of source of sound audio signal with Difference between the characteristic value of feedback audio signal is compared with default poor threshold value, judges that the mode that earphone is worn is to reach No correct purpose, accuracy is high, can detect in real time, simple and convenient.
Brief description of the drawings
Technical scheme, is used required in being described below to embodiment in order to illustrate the embodiments of the present invention more clearly Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow diagram for the detection method that a kind of earphone that the embodiment of the present invention one is provided is worn;
Fig. 2 is the schematic flow diagram for the detection method that a kind of earphone that the embodiment of the present invention two is provided is worn;
Fig. 3 is the schematic block diagram for the terminal that the embodiment of the present invention one is provided;
Fig. 4 is the schematic block diagram for the terminal that the embodiment of the present invention two is provided;
Fig. 5 is the schematic block diagram that the embodiment of the present invention three is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" be indicated Described feature, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, it is whole Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and "the" are intended to include plural form.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet PC of (for example, touch-screen display and/or touch pad) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
It should be appreciated that in embodiments of the present invention, alleged processor can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or the processing Device can also be any conventional processor etc..
It should be appreciated that terminal is only an example of portable multifunction device, and terminal can have than The shown more or less components of component, two or more components can be combined or can have different component Configuration or cloth Put.Can be with the combination of the hardware including one or more signal transactings and/or application specific integrated circuit, software or hardware and software To realize various parts.
It will also be understood that although term first, second etc. can be used for describing various elements herein, these elements should not This is limited to these terms.These terms are only used for these elements being distinguished from each other out.For example, not departing from the scope of the invention Under the premise of, first terminal can be referred to as second terminal, and similarly, second terminal can be referred to as first terminal.First Terminal and second terminal are terminal, but their not same terminals.
Referring to Fig. 1, it is the schematic flow diagram for the detection method that a kind of earphone that the embodiment of the present invention one is provided is worn, such as schemes Shown, this method comprises the following steps S11~S15:
Step S11:Obtain the feedback audio letter that earphone source of sound audio signal in itself and earphone are received in duct Number.
Specifically, can be by setting sensor to obtain the source of sound audio signal that earphone is sent inside earphone, and setting The actual sound produced is converted into audio signal by sensor to sense the sound actually produced in duct, that is, feeds back audio Signal.
Step S12:Extract the audio signal of target frequency bands in source of sound audio signal and feedback audio signal.
Specifically, the audio signal of target frequency bands set in advance is chosen in source of sound audio signal and feedback audio signal To carry out subsequent operation.
Wherein, step S12 includes step S12a.
Step S12a:Extract the low frequency signal in source of sound audio signal and feedback audio signal.
Specifically, because amplitude-versus-frequency curve has higher amplitude in low-frequency range, therefore in source of sound audio signal and feedback sound Choose the audio signal of low-frequency range in frequency signal to carry out subsequent operation, for example, choosing the audio signal in 20-100Hz frequency ranges Carry out subsequent manipulation,
Step S13:The characteristic value of the audio signal of target frequency bands is drawn according to the first preparatory condition.
Specifically, the characteristic value of the audio signal of target frequency bands is drawn according to the first preparatory condition, characteristic value is can be anti- Mirror the value of the frequency band audio characteristics of signals.
Wherein, step S13 includes step S13a.
Step S13a:The frequency for some numbers for dividing equally low frequency signal band frequency is obtained, according to the frequency of some numbers Point draws the low frequency weighted value of low frequency signal frequency amplitude.
Specifically, by taking the 20-100Hz of above-mentioned selection low frequency band as an example, by a stepping of 1Hz by 20-100Hz points For 80 frequency ranges, the average value of the frequency amplitude of 81 frequencies in 20-100Hz by a stepping of every 1Hz is calculated, one is obtained Individual weighted value F (20-100Hz).
Step S14:The difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal is calculated, and will Difference is compared with default poor threshold value.
Specifically, by taking the weighted value F (20-100Hz) of above-mentioned frequency amplitude as an example, the source of sound audio in 20-100Hz is passed through Signal can obtain the low frequency weighted value F1 (20-100Hz) of source of sound audio signal, pass through the feedback audio signal in 20-100Hz The low frequency weighted value F2 (20-100Hz) of feedback audio signal can be obtained.The low frequency weighted value F2 (20- of feedback audio signal A difference 100Hz) is had certainly between the low frequency weighted value F1 (20-100Hz) of source of sound audio signal, when earphone is worn just When really, this difference is also what is existed.A poor threshold value M can be preset herein, that is, is thought, as F1 (20-100Hz) and F2 Difference between (20-100Hz) is judged to wearing correctly when being no more than difference threshold value M, if F1 (20-100Hz) and F2 (20- Difference between 100Hz) exceedes poor threshold value M, then it is assumed that wear incorrect.
Step S15:Corresponding prompting is sent according to the comparative result between difference and default poor threshold value.
Specifically, the difference between source of sound audio signal and the characteristic value of feedback audio signal is entered with default poor threshold value Row compares, and corresponding prompting is sent according to comparative result, to inform whether user's earphone is worn correctly, as above example middle pitch source audio Signal F1 (20-100Hz) and the low frequency weighted value F2 (20-100Hz) of feedback audio signal difference is carried out with default poor threshold value M Compare, if difference is no more than poor threshold value M, sends earphone and wear correct prompting, or without sending prompting to user, directly Acquiescence is worn correctly, and is sent earphone when difference exceedes difference threshold value M and worn incorrect prompting, to remind user currently to wear It is incorrect.
The feedback audio signal received by earphone source of sound audio signal in itself and earphone in duct, extracts sound The audio signal of target frequency bands in source audio signal and feedback audio signal, and show that target frequency bands audio is believed according to preparatory condition Number characteristic value, then by the difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal and default poor threshold Value is compared, and to reach the whether correct purpose of mode for judging that earphone is worn, accuracy is high, can detect in real time, simple side Just.
Referring to Fig. 2, it is the schematic flow diagram for the detection method that a kind of earphone that the embodiment of the present invention two is provided is worn, such as schemes Shown, this method comprises the following steps S21~S26:
Step S21:Judge earphone currently whether in duct according to the second preparatory condition.
Specifically, whether the condition previously according to setting before detection method is carried out is in duct to earphone Judged, it is to avoid earphone does not carry out unnecessary detection operation in the case where wearing scene.
Wherein, step S21 includes step S21a and step S21b.
Step S21a:Judge that whether earphone is presently in the light intensity of environment less than default light intensity threshold value.
Specifically, when earphone is worn in duct, earphone front loudspeakers position is in duct, and light intensity is very It is weak, the threshold value of a light intensity is preset, if the light intensity for the position local environment that earphone front end is stretched into duct is low In default light intensity threshold value, then it is assumed that meet the condition that earphone is in duct, judge to be that earphone is worked as herein The judgement of preceding local environment light intensity.
Step S21b:If the light intensity of local environment is less than default light intensity threshold value, judge earphone currently whether by To circumferential pressure.
Specifically, if the light intensity of earphone local environment meets the condition of light intensity, that is, it is presently in environment Light intensity is less than default light intensity threshold value, then judges that earphone is current whether by circumferential pressure.Because earphone is in duct During portion, the circumferential squeezed state in ear canal wall, with reference to whether being preset by whether circumferential pressure and light intensity are less than Light intensity threshold value is judged, to reach the purpose for judging whether earphone is in duct.
Step S22:If earphone is in duct, earphone source of sound audio signal in itself and earphone are obtained inscribed in duct The feedback audio signal received.
Specifically, with reference to whether by circumferential pressure and light intensity whether less than default light intensity threshold value, to judge Whether earphone is in the purpose in duct, can be by setting sensor to obtain the source of sound audio letter that earphone is sent inside earphone Number, and setting sensor to sense the sound actually produced in duct, and the actual sound produced is converted into audio signal, That is feedback audio signal.
Step S23:Extract the audio signal of target frequency bands in source of sound audio signal and feedback audio signal.
Specifically, the audio signal of target frequency bands set in advance is chosen in source of sound audio signal and feedback audio signal To carry out subsequent operation.
Wherein, step S23 includes step S23a.
Step S23a:Extract the low frequency signal in source of sound audio signal and feedback audio signal.
Specifically, because amplitude-versus-frequency curve has higher amplitude in low-frequency range, therefore in source of sound audio signal and feedback sound Choose the audio signal of low-frequency range in frequency signal to carry out subsequent operation, for example, choosing the audio signal in 20-100Hz frequency ranges Carry out subsequent manipulation,
Step S24:The characteristic value of the audio signal of target frequency bands is drawn according to the first preparatory condition.
Specifically, the characteristic value of the audio signal of target frequency bands is drawn according to the first preparatory condition, characteristic value is can be anti- Mirror the value of the frequency band audio characteristics of signals.
Wherein, step S24 includes step S24a.
Step S24a:The frequency for some numbers for dividing equally low frequency signal band frequency is obtained, according to the frequency of some numbers Point draws the low frequency weighted value of low frequency signal frequency amplitude.
Specifically, by taking the 20-100Hz of above-mentioned selection low frequency band as an example, by a stepping of 1Hz by 20-100Hz points For 80 frequency ranges, the average value of the frequency amplitude of 81 frequencies in 20-100Hz by a stepping of every 1Hz is calculated, one is obtained Individual weighted value F (20-100Hz).
Step S25:The difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal is calculated, and will Difference is compared with default poor threshold value.
Specifically, by taking the weighted value F (20-100Hz) of above-mentioned frequency amplitude as an example, the source of sound audio in 20-100Hz is passed through Signal can obtain the low frequency weighted value F1 (20-100Hz) of source of sound audio signal, pass through the feedback audio signal in 20-100Hz The low frequency weighted value F2 (20-100Hz) of feedback audio signal can be obtained.The low frequency weighted value F2 (20- of feedback audio signal A difference 100Hz) is had certainly between the low frequency weighted value F1 (20-100Hz) of source of sound audio signal, when earphone is worn just When really, this difference is also what is existed.A poor threshold value M can be preset herein, that is, is thought, as F1 (20-100Hz) and F2 Difference between (20-100Hz) is judged to wearing correctly when being no more than difference threshold value M, if F1 (20-100Hz) and F2 (20- Difference between 100Hz) exceedes poor threshold value M, then it is assumed that wear incorrect.
Step S26:Corresponding prompting is sent according to the comparative result between difference and default poor threshold value.
Specifically, the difference between source of sound audio signal and the characteristic value of feedback audio signal is entered with default poor threshold value Row compares, and corresponding prompting is sent according to comparative result, to inform whether user's earphone is worn correctly, as above example middle pitch source audio Signal F1 (20-100Hz) and the low frequency weighted value F2 (20-100Hz) of feedback audio signal difference is carried out with default poor threshold value M Compare, if difference is no more than poor threshold value M, sends earphone and wear correct prompting, or without sending prompting to user, directly Acquiescence is worn correctly, and is sent earphone when difference exceedes difference threshold value M and worn incorrect prompting, to remind user currently to wear It is incorrect.
Specifically, by setting to whether earphone judges in duct, to avoid earphone not in the case where wearing scene Carry out unnecessary detection operation.
It is a kind of schematic block diagram for terminal that the embodiment of the present invention one is provided, as illustrated, the terminal bag referring to Fig. 3 Include:
Acquiring unit 10, for obtaining the feedback that earphone source of sound audio signal in itself and earphone are received in duct Audio signal;
Extraction unit 20, the audio signal for extracting target frequency bands in source of sound audio signal and feedback audio signal, bag Include the low frequency signal extracted in source of sound audio signal and feedback audio signal;
Arithmetic element 30, the characteristic value of the audio signal for drawing target frequency bands according to the first preparatory condition, including obtain The frequency for some numbers for dividing equally low frequency signal band frequency is taken, low frequency signal frequency width is drawn according to the frequency of some numbers The low frequency weighted value of value;
Comparing unit 40, for calculating the difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal Value, and difference is compared with default poor threshold value;
Tip element 50, for sending corresponding prompting according to the comparative result between difference and default poor threshold value.
Specifically, terminal 99 obtains earphone source of sound audio signal in itself and earphone in duct by acquiring unit 10 The feedback audio signal received, and target frequency bands in source of sound audio signal and feedback audio signal are extracted by extraction unit 20 Audio signal, be used in the present embodiment extract low frequency signal.Target is drawn according to the first preparatory condition by arithmetic element 30 again The characteristic value of the audio signal of frequency range, in the present embodiment by obtaining some numbers for dividing equally low frequency signal band frequency Frequency, the low frequency weighted value of low frequency signal frequency amplitude is drawn according to the frequency of some numbers.After outstanding characteristic value, by relatively more single Member 40 calculates the difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal, and difference is poor with presetting Threshold value is compared, and is weighted in the present embodiment to calculate the low frequency weighted value of source of sound audio signal and the low frequency of feedback audio signal Difference between value.Corresponding prompting is sent by Tip element 50 according to the comparative result between difference and default poor threshold value.
The feedback audio signal received by earphone source of sound audio signal in itself and earphone in duct, extracts sound The audio signal of target frequency bands in source audio signal and feedback audio signal, and show that target frequency bands audio is believed according to preparatory condition Number characteristic value, then by the difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal and default poor threshold Value is compared, and to reach the whether correct purpose of mode for judging that earphone is worn, accuracy is high, can detect in real time, simple side Just.
It is a kind of schematic block diagram for terminal that the embodiment of the present invention two is provided, as illustrated, the terminal bag referring to Fig. 4 Include:
Judging unit 60, for judging whether earphone currently includes first in duct and judge according to the second preparatory condition The judgment sub-unit 62 of subelement 61 and second.
First judgment sub-unit 61, for judge earphone be presently in environment light intensity it is whether strong less than default light Spend threshold value;
Second judgment sub-unit 62, if the light intensity for local environment is less than default light intensity threshold value, judges ear Whether machine is current by circumferential pressure.
Execution unit 70, if current by circumferential pressure for earphone, performs the source of sound audio of the acquisition earphone in itself The step of feedback audio signal that signal and earphone are received in duct.
Acquiring unit 10, for obtaining the feedback that earphone source of sound audio signal in itself and earphone are received in duct Audio signal;
Extraction unit 20, the audio signal for extracting target frequency bands in source of sound audio signal and feedback audio signal, bag Include the low frequency signal extracted in source of sound audio signal and feedback audio signal;
Arithmetic element 30, the characteristic value of the audio signal for drawing target frequency bands according to the first preparatory condition, including obtain The frequency for some numbers for dividing equally low frequency signal band frequency is taken, low frequency signal frequency width is drawn according to the frequency of some numbers The low frequency weighted value of value;
Comparing unit 40, for calculating the difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal Value, and difference is compared with default poor threshold value;
Tip element 50, for sending corresponding prompting according to the comparative result between difference and default poor threshold value.
Specifically, terminal 99 judges whether earphone currently includes first in duct and judge that son is single by judging unit 60 Member 61 and second judgment sub-unit 62, by the first judgment sub-unit 61 judge earphone be presently in environment light intensity it is whether low In default light intensity threshold value, if the light intensity of local environment is less than default light intensity threshold value, judge that son is single by second Member 62 judges that earphone is current whether by circumferential pressure, if earphone is current by circumferential pressure, execution unit 70, which is performed, obtains ear The step of feedback audio signal that machine source of sound audio signal in itself and earphone are received in duct, opened by acquiring unit 10 Begin to obtain the feedback audio signal that earphone source of sound audio signal in itself and earphone are received in duct, and pass through and extract single Member 20 is extracted to be used to extract low frequency in the audio signal of target frequency bands in source of sound audio signal and feedback audio signal, the present embodiment Signal.The characteristic value of the audio signal of target frequency bands is drawn according to the first preparatory condition by arithmetic element 30 again, in the present embodiment In by obtaining the frequencies of some numbers for dividing equally low frequency signal band frequency, show that low frequency is believed according to the frequency of some numbers The low frequency weighted value of number frequency amplitude.After outstanding characteristic value, by comparing unit 40 calculate the characteristic value of source of sound audio signal with it is anti- The difference between the characteristic value of audio signal is presented, and difference is compared with default poor threshold value, is calculating sound in the present embodiment Difference between the low frequency weighted value of source audio signal and the low frequency weighted value of feedback audio signal.According to difference and default poor threshold Comparative result between value sends corresponding prompting by Tip element 50.
Specifically, relative to embodiment one, the present embodiment carry out wear detection before addition of one to earphone whether Judgement in duct, to avoid earphone from not carrying out unnecessary detection operation in the case where wearing scene.
Fig. 5 is the structure composition schematic diagram of the example IV of the terminal of the present invention.As shown in figure 5, it may include:At least one Individual input equipment 101, at least one output equipment 102, bus 103, transceiver 104, memory 105 and processor 100, Above-mentioned input equipment 101, output equipment 102, transceiver 104, memory 105 and processor 100 are connected by bus 103, Wherein:
Input equipment 101, the input data for receiving outside input terminal 99.In the specific implementation, the embodiment of the present invention Input equipment 101 may include keyboard, mouse, opto-electronic input device, audio input device, touch input device, scanner Deng.
Output equipment 102, the output data for external output terminal.In the specific implementation, the output of the embodiment of the present invention Equipment 102 may include display, loudspeaker, printer etc..
Bus 103, for being communicated with other equipment.Passed in the specific implementation, the bus 103 of the embodiment of the present invention can be Broadcast an example of medium.Propagation medium typically can be by computer-readable instruction, data structure, program module or other modulation Other data materializations of data-signal (such as carrier wave or other transfer mechanisms) form, for example, propagation medium may include Wired media, such as priority network or straight line connection, propagation medium may also include wireless medium, such as sound wave, radio frequency, infrared ray Deng.In the specific implementation, the bus 103 of the embodiment of the present invention can be used for receiving the access request for accessing terminal.
Transceiver 104, for sending data to other equipment by bus 103 or receiving data from other equipment. In the specific implementation, the transceiver 104 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
Memory 105, for storing the routine data with various functions.Memory 105 is stored in the embodiment of the present invention Data include Internet Service Provider's data available and the unavailable data of Internet Service Provider, and other can call and transport Capable routine data.In the specific implementation, the memory 105 of the embodiment of the present invention can be system storage, such as it is, volatile (such as RAM), the combination of non-volatile (such as ROM, flash memory etc.), or both.In the specific implementation, the embodiment of the present invention Memory 105 can also be the external memory storage outside system, such as, disk, CD, tape etc..
Processor 100, such as CPU, for calling the routine data stored in memory 105, and perform following operation:
Obtain the feedback audio signal that earphone source of sound audio signal in itself and earphone are received in duct;Extract sound The audio signal of target frequency bands in source audio signal and feedback audio signal;The sound of target frequency bands is drawn according to the first preparatory condition The characteristic value of frequency signal;The difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal is calculated, and will Difference is compared with default poor threshold value;Corresponding prompting is sent according to the comparative result between difference and default poor threshold value.
Judge earphone currently whether in duct according to the second preparatory condition;If earphone is in duct, earphone is obtained The feedback audio signal that the source of sound audio signal and earphone of itself are received in duct;Extract source of sound audio signal and feedback The audio signal of target frequency bands in audio signal;The feature of the audio signal of the target frequency bands is drawn according to the first preparatory condition Value;The difference between the characteristic value of source of sound audio signal and the characteristic value of feedback audio signal is calculated, and difference is poor with presetting Threshold value is compared;Corresponding prompting is sent according to the comparative result between difference and default poor threshold value.
It is only schematical in several embodiments provided herein, it should be understood that disclosed method, It can realize by another way.
It should be noted that the step in present invention method can the adjustment of carry out order, conjunction according to actual needs And and delete.
Unit in terminal of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. the detection method that a kind of earphone is worn, it is characterised in that including:
Obtain the feedback audio signal that earphone source of sound audio signal in itself and earphone are received in duct;
Extract the audio signal of target frequency bands in the source of sound audio signal and the feedback audio signal;
The characteristic value of the audio signal of the target frequency bands is drawn according to the first preparatory condition;
The difference between the characteristic value of the source of sound audio signal and the characteristic value of the feedback audio signal is calculated, And be compared the difference with default poor threshold value;
Corresponding prompting is sent according to the comparative result between the difference and default poor threshold value.
2. the detection method that earphone according to claim 1 is worn, it is characterised in that the extraction source of sound audio letter Number and the feedback audio signal in the audio signals of target frequency bands include:
Extract the low frequency signal in the source of sound audio signal and the feedback audio signal.
3. the detection method that earphone according to claim 2 is worn, it is characterised in that described to be obtained according to the first preparatory condition Going out the characteristic value of the target frequency bands audio signal includes:
The frequency for some numbers for dividing equally the low frequency signal band frequency is obtained, is drawn according to the frequency of some numbers The low frequency weighted value of the low frequency signal frequency amplitude.
4. the detection method that earphone according to claim 1 is worn, it is characterised in that obtaining the source of sound sound of earphone in itself Before the feedback audio signal that frequency signal and earphone are received in duct, methods described also includes:
Judge earphone currently whether in duct according to the second preparatory condition;
If earphone is in duct, performs and described obtain earphone source of sound audio signal in itself and earphone is received in duct Feedback audio signal the step of.
5. the detection method that earphone according to claim 4 is worn, it is characterised in that described to be sentenced according to the second preparatory condition Whether disconnected earphone currently includes in duct:
Judge that whether earphone is presently in the light intensity of environment less than default light intensity threshold value;
If the light intensity of local environment is less than default light intensity threshold value, judge that earphone is current whether by circumferential pressure;
If earphone is current by circumferential pressure, earphone source of sound audio signal in itself and the earphone of obtaining is performed in duct The step of feedback audio signal received.
6. a kind of terminal, it is characterised in that including:
Acquiring unit, for obtaining the feedback audio letter that earphone source of sound audio signal in itself and earphone are received in duct Number;
Extraction unit, the audio signal for extracting target frequency bands in the source of sound audio signal and the feedback audio signal;
Arithmetic element, the characteristic value of the audio signal for drawing the target frequency bands according to the first preparatory condition;
Comparing unit, for calculating the characteristic value of the source of sound audio signal and the feature of the feedback audio signal Difference between value, and the difference is compared with default poor threshold value;
Tip element, for sending corresponding prompting according to the comparative result between the difference and default poor threshold value.
7. terminal according to claim 6, it is characterised in that the extraction unit is used to extract the source of sound audio signal Include with the audio signal of target frequency bands in the feedback audio signal:
Extract the low frequency signal in the source of sound audio signal and the feedback audio signal.
8. terminal according to claim 7, it is characterised in that the arithmetic element is used to be drawn according to the first preparatory condition The characteristic value of the target frequency bands audio signal includes:
The frequency for some numbers for dividing equally the low frequency signal band frequency is obtained, is drawn according to the frequency of some numbers The low frequency weighted value of the low frequency signal frequency amplitude.
9. terminal according to claim 6, it is characterised in that obtain the source of sound audio signal of earphone in itself in acquiring unit And before the feedback audio signal that is received in duct of earphone, the terminal also includes:
Judging unit, for judging earphone currently whether in duct according to the second preparatory condition;
Execution unit, if being in for earphone in duct, performs and described obtains earphone source of sound audio signal in itself and earphone The step of feedback audio signal received in duct.
10. terminal according to claim 9, it is characterised in that the judging unit is used to be sentenced according to the second preparatory condition Whether disconnected earphone currently includes in duct:
First judgment sub-unit, for judging that whether earphone is presently in the light intensity of environment less than default light intensity threshold Value;
Second judgment sub-unit, if the light intensity for local environment is less than default light intensity threshold value, judges that earphone is current Whether by circumferential pressure;
If the execution unit is used for, earphone is current by circumferential pressure, the source of sound audio signal of the execution acquisition earphone in itself And earphone received in duct feedback audio signal the step of.
CN201710388938.9A 2017-05-25 2017-05-25 Detection method and terminal that a kind of earphone is worn Withdrawn CN106982403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710388938.9A CN106982403A (en) 2017-05-25 2017-05-25 Detection method and terminal that a kind of earphone is worn

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710388938.9A CN106982403A (en) 2017-05-25 2017-05-25 Detection method and terminal that a kind of earphone is worn

Publications (1)

Publication Number Publication Date
CN106982403A true CN106982403A (en) 2017-07-25

Family

ID=59342734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710388938.9A Withdrawn CN106982403A (en) 2017-05-25 2017-05-25 Detection method and terminal that a kind of earphone is worn

Country Status (1)

Country Link
CN (1) CN106982403A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093327A (en) * 2017-09-15 2018-05-29 歌尔科技有限公司 A kind of method, apparatus and electronic equipment that earphone is examined to wear uniformity
CN108391193A (en) * 2018-05-24 2018-08-10 东莞市猎声电子科技有限公司 A kind of New intellectual earphone
CN110114738A (en) * 2019-03-25 2019-08-09 深圳市汇顶科技股份有限公司 Wearable device wears detection method and storage medium
CN110278509A (en) * 2019-07-26 2019-09-24 歌尔股份有限公司 A kind of wireless headset control method, device and wireless headset and storage medium
CN110505547A (en) * 2018-05-17 2019-11-26 深圳瑞利声学技术股份有限公司 A kind of earphone wearing state detection method and earphone
WO2020034544A1 (en) * 2018-08-16 2020-02-20 歌尔股份有限公司 Earphone wearing status detection method and device and earphone
CN110933551A (en) * 2019-12-05 2020-03-27 歌尔股份有限公司 Operation method and system of wireless earphone and wireless communication equipment
CN111627416A (en) * 2020-05-13 2020-09-04 广州国音智能科技有限公司 Audio noise elimination method, device, equipment and storage medium
CN111683316A (en) * 2020-05-25 2020-09-18 安克创新科技股份有限公司 Wearing calibration method, device and system of earphone and storage medium
CN112764864A (en) * 2021-01-25 2021-05-07 维沃移动通信有限公司 Display direction adjusting method and device
CN113015055A (en) * 2021-03-05 2021-06-22 深圳市百泰实业股份有限公司 Earphone wearing correction method and earphone structure
CN113099334A (en) * 2020-01-08 2021-07-09 北京小米移动软件有限公司 Configuration parameter determining method and device and earphone
CN113727233A (en) * 2021-07-22 2021-11-30 上海闻泰电子科技有限公司 Earphone prompting method and device, earphone and medium
WO2022027899A1 (en) * 2020-08-07 2022-02-10 歌尔股份有限公司 Headphone wearing state detection method, device, headphone, and storage medium
CN114040293A (en) * 2021-11-26 2022-02-11 歌尔科技有限公司 Earphone control method, earphone control device, earphone and computer readable storage medium
CN114401480A (en) * 2021-12-30 2022-04-26 歌尔科技有限公司 Calibration method, device and medium for TWS earphone capacitive sensor
CN114501291A (en) * 2022-02-25 2022-05-13 深圳市豪恩声学股份有限公司 Earphone anti-interference test method and device
TWI797880B (en) * 2021-12-08 2023-04-01 仁寶電腦工業股份有限公司 Detection system and detection method for in-ear earphone
WO2023051750A1 (en) * 2021-09-30 2023-04-06 华为技术有限公司 Data processing method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051997A (en) * 2012-12-26 2013-04-17 广东欧珀移动通信有限公司 Earphone, and terminal equipment and method for controlling audio presentation through earphone
US20140037101A1 (en) * 2012-08-02 2014-02-06 Sony Corporation Headphone device, wearing state detection device, and wearing state detection method
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
CN205622803U (en) * 2016-04-15 2016-10-05 北京京东尚科信息技术有限公司 Headset
CN106341535A (en) * 2016-08-31 2017-01-18 维沃移动通信有限公司 Audio playing control method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140037101A1 (en) * 2012-08-02 2014-02-06 Sony Corporation Headphone device, wearing state detection device, and wearing state detection method
CN103051997A (en) * 2012-12-26 2013-04-17 广东欧珀移动通信有限公司 Earphone, and terminal equipment and method for controlling audio presentation through earphone
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
CN205622803U (en) * 2016-04-15 2016-10-05 北京京东尚科信息技术有限公司 Headset
CN106341535A (en) * 2016-08-31 2017-01-18 维沃移动通信有限公司 Audio playing control method and mobile terminal

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093327B (en) * 2017-09-15 2019-11-29 歌尔科技有限公司 A kind of method, apparatus and electronic equipment for examining earphone to wear consistency
CN108093327A (en) * 2017-09-15 2018-05-29 歌尔科技有限公司 A kind of method, apparatus and electronic equipment that earphone is examined to wear uniformity
CN110505547B (en) * 2018-05-17 2021-03-19 深圳瑞利声学技术股份有限公司 Earphone wearing state detection method and earphone
CN110505547A (en) * 2018-05-17 2019-11-26 深圳瑞利声学技术股份有限公司 A kind of earphone wearing state detection method and earphone
CN108391193A (en) * 2018-05-24 2018-08-10 东莞市猎声电子科技有限公司 A kind of New intellectual earphone
WO2020034544A1 (en) * 2018-08-16 2020-02-20 歌尔股份有限公司 Earphone wearing status detection method and device and earphone
US11470416B2 (en) 2018-08-16 2022-10-11 Goertek, Inc. Method and device for detecting earphone wearing status, and earphone
CN110114738A (en) * 2019-03-25 2019-08-09 深圳市汇顶科技股份有限公司 Wearable device wears detection method and storage medium
US11438685B2 (en) 2019-03-25 2022-09-06 Shenzhen GOODIX Technology Co., Ltd. Wearable device, wearing detection method, and storage medium
CN110114738B (en) * 2019-03-25 2020-12-01 深圳市汇顶科技股份有限公司 Wearable device, wearing detection method, and storage medium
CN110278509A (en) * 2019-07-26 2019-09-24 歌尔股份有限公司 A kind of wireless headset control method, device and wireless headset and storage medium
CN110933551A (en) * 2019-12-05 2020-03-27 歌尔股份有限公司 Operation method and system of wireless earphone and wireless communication equipment
CN113099334A (en) * 2020-01-08 2021-07-09 北京小米移动软件有限公司 Configuration parameter determining method and device and earphone
CN111627416B (en) * 2020-05-13 2023-10-20 广州国音智能科技有限公司 Audio noise elimination method, device, equipment and storage medium
CN111627416A (en) * 2020-05-13 2020-09-04 广州国音智能科技有限公司 Audio noise elimination method, device, equipment and storage medium
CN111683316A (en) * 2020-05-25 2020-09-18 安克创新科技股份有限公司 Wearing calibration method, device and system of earphone and storage medium
WO2022027899A1 (en) * 2020-08-07 2022-02-10 歌尔股份有限公司 Headphone wearing state detection method, device, headphone, and storage medium
CN112764864A (en) * 2021-01-25 2021-05-07 维沃移动通信有限公司 Display direction adjusting method and device
CN113015055B (en) * 2021-03-05 2024-01-09 深圳市百泰实业股份有限公司 Earphone wearing correction method and earphone structure
CN113015055A (en) * 2021-03-05 2021-06-22 深圳市百泰实业股份有限公司 Earphone wearing correction method and earphone structure
CN113727233B (en) * 2021-07-22 2023-12-15 上海闻泰电子科技有限公司 Earphone prompting method and device, earphone and medium
CN113727233A (en) * 2021-07-22 2021-11-30 上海闻泰电子科技有限公司 Earphone prompting method and device, earphone and medium
WO2023051750A1 (en) * 2021-09-30 2023-04-06 华为技术有限公司 Data processing method and related device
CN114040293A (en) * 2021-11-26 2022-02-11 歌尔科技有限公司 Earphone control method, earphone control device, earphone and computer readable storage medium
TWI797880B (en) * 2021-12-08 2023-04-01 仁寶電腦工業股份有限公司 Detection system and detection method for in-ear earphone
US11733378B2 (en) 2021-12-08 2023-08-22 Compal Electronics, Inc. Detection system and detection method for in-ear earphone
CN114401480A (en) * 2021-12-30 2022-04-26 歌尔科技有限公司 Calibration method, device and medium for TWS earphone capacitive sensor
CN114401480B (en) * 2021-12-30 2024-04-30 歌尔科技有限公司 Calibration method, device and medium for TWS earphone capacitive sensor
CN114501291A (en) * 2022-02-25 2022-05-13 深圳市豪恩声学股份有限公司 Earphone anti-interference test method and device
CN114501291B (en) * 2022-02-25 2024-05-31 深圳市豪恩声学股份有限公司 Earphone anti-interference test method and device

Similar Documents

Publication Publication Date Title
CN106982403A (en) Detection method and terminal that a kind of earphone is worn
US20210258213A1 (en) Wearable electronic device, main electronic device, system and control method thereof
US10367950B2 (en) Device notification adjustment dependent on user proximity
US20170140170A1 (en) Wearable device multi-mode system
US10805708B2 (en) Headset sound channel control method and system, and related device
US20200252039A1 (en) Earphone volume adjustment method and apparatus
CN108777731B (en) Key configuration method and device, mobile terminal and storage medium
KR20160001964A (en) Operating Method For Microphones and Electronic Device supporting the same
CN108845731A (en) Application icon control method, wearable device and computer readable storage medium
CN106295492A (en) A kind of terminal processing method, device and mobile terminal
CN112311930A (en) Terminal testing method and device, storage medium and mobile terminal
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
CN108052247A (en) Desktop icons method of adjustment, mobile terminal and computer readable storage medium
CN109561219A (en) Music adjusting method, device, mobile terminal and readable storage medium storing program for executing
CN109104521B (en) Method and device for correcting approaching state, mobile terminal and storage medium
CN108712563B (en) Call control method and device and mobile terminal
CN107911540A (en) Profile switching method and terminal device
CN108763892A (en) Right management method, device, mobile terminal and storage medium
KR20150122476A (en) Method and apparatus for controlling gesture sensor
CN109471579A (en) Terminal screen arrangement information method of adjustment, device, mobile terminal and storage medium
KR20160142097A (en) Method for controling a display of an electronic device and the electronic device thereof
CN109756621A (en) A kind of two-dimensional code display method and terminal device
CN106547430A (en) A kind of management application drawing calibration method and terminal
CN107239184B (en) Touch screen touch device and method and mobile terminal
CN108880751A (en) transmission rate adjusting method, device and electronic device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170725