CN109151696A - Plug-hole detection method and Related product - Google Patents

Plug-hole detection method and Related product Download PDF

Info

Publication number
CN109151696A
CN109151696A CN201810840415.8A CN201810840415A CN109151696A CN 109151696 A CN109151696 A CN 109151696A CN 201810840415 A CN201810840415 A CN 201810840415A CN 109151696 A CN109151696 A CN 109151696A
Authority
CN
China
Prior art keywords
wireless headset
parameter
audio
microphone
power amplifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810840415.8A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810840415.8A priority Critical patent/CN109151696A/en
Publication of CN109151696A publication Critical patent/CN109151696A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Abstract

The embodiment of the present application discloses a kind of plug-hole detection method and Related product, comprising: the first audio of default frequency range is issued by least one described power amplifier module, at least one described power amplifier module includes the power amplifier module of first wireless headset;In preset period of time, the second audio in the default frequency range is received by least one described microphone, at least one described microphone includes the microphone of first wireless headset;Determine that first wireless headset is in plug-hole state according to second audio.The embodiment of the present application is conducive to the function that wireless headset is expanded in the case where not increasing hardware configuration, promotes convenience, timeliness and the intelligence of plug-hole detection.

Description

Plug-hole detection method and Related product
Technical field
This application involves wireless headset technical fields, and in particular to a kind of plug-hole detection method and Related product.
Background technique
As a large amount of universal and fast development, the miscellaneous earphone of electronic equipment (for example, smart phone) have become People are usually used in listening to the device of media, moreover, because the earphone cable of wired earphone often damages, the earphone service life are caused to subtract Short, cost is higher, and wireless headset comes into being.
Currently, people will often find that the phenomenon that multiple apertures of wireless headset will appear plug-hole, such as dust plug-hole, water Plug-hole etc. is dripped, audio discontinuity occurs in this voice data for just causing wireless headset to obtain, and volume is smaller when playing voice data The case where, influence the normal use of user.
Summary of the invention
The embodiment of the present application provides a kind of plug-hole detection method and Related product, can be in the feelings for not increasing hardware configuration The function that wireless headset is expanded under condition, promotes convenience, timeliness and the intelligence of plug-hole detection.
In a first aspect, the embodiment of the present application provides a kind of plug-hole detection method, it is applied to wireless headset, the wireless ear Machine includes the first wireless headset and the second wireless headset, and first wireless headset and second wireless headset include at least one A power amplifier module and at least one microphone, which comprises
The first audio of default frequency range, at least one described power amplifier module packet are issued by least one described power amplifier module Include the power amplifier module of first wireless headset;
In preset period of time, the second audio in the default frequency range is received by least one described microphone, it is described At least one microphone includes the microphone of first wireless headset;
Determine that first wireless headset is in plug-hole state according to second audio.
Second aspect, the embodiment of the present application provide a kind of plug-hole detection device, are applied to wireless headset, the wireless ear Machine includes the first wireless headset and the second wireless headset, and first wireless headset and second wireless headset include at least one A power amplifier module and at least one microphone, the plug-hole detection device include transmitting unit, receiving unit and determination unit, In:
The transmitting unit, it is described for issuing the first audio of default frequency range by least one described power amplifier module At least one power amplifier module includes the power amplifier module of first wireless headset;
The receiving unit, for receiving the default frequency range by least one described microphone in preset period of time The second interior audio, at least one described microphone include the microphone of first wireless headset;
The determination unit, for determining that first wireless headset is in plug-hole state according to second audio.
The third aspect, the embodiment of the present application provide a kind of wireless headset, comprising: processor, memory and one or Multiple programs;One or more of programs are stored in above-mentioned memory, and are configured to be executed by the processor, Described program is included the steps that for executing instruction described in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable Storage medium is stored with the computer program for electronic data interchange, which specifically includes instruction, described instruction For executing the step some or all of as described in the embodiment of the present application first aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program product Non-transient computer readable storage medium including storing computer program, the computer program are operable to make to calculate Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product It can be a software installation packet.
As can be seen that it is default that wireless headset passes through at least one power amplifier module sending first in the embodiment of the present application First audio of frequency range, at least one described power amplifier module include the power amplifier module of first wireless headset, secondly, default In period, the second audio in the default frequency range, at least one described microphone are received by least one described microphone Microphone including first wireless headset, finally, determining that first wireless headset is in stifled according to second audio Hole state.As it can be seen that wireless headset can be detected in the case where not increasing hardware configuration only by power amplifier module and microphone The plug-hole state of multiple apertures, has expanded the function of wireless headset, improves the convenience and timeliness of plug-hole detection, moreover, It is detected in the case where user's unaware, meets the user experience of user, be conducive to the intelligence for improving wireless headset.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of system architecture schematic diagram of wireless headphone system disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow diagram of plug-hole detection method disclosed in the embodiment of the present application;
Fig. 3 is the flow diagram of another kind plug-hole detection method disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of another kind plug-hole detection method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of wireless headset disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of plug-hole detection device disclosed in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
As shown in Figure 1, the embodiment of the present application provides a kind of wireless headphone system 100, which includes electronic equipment 101, the first wireless headset 102, the second wireless headset 103, wherein the system uses any one following communication mechanism, first, The electronic equipment 101 and the foundation of the first wireless headset 102 have the first communication link, first wireless headset 102 and second The foundation of wireless headset 103 has the second communication link, i.e. the first wireless headset 102 and the second wireless headset 103 and electronic equipment 101 Between communication mechanism use master-slave communication mechanism (can specifically use Bluetooth protocol), second, the electronic equipment 101 and the The foundation of one wireless headset 102 has the first communication link, and the electronic equipment 101 and the foundation of the second wireless headset 103 have second to lead to Believe link, i.e. the first wireless headset 102 and the second wireless headset 103 are the main ear directly communicated with electronic equipment 101 Machine, wherein main earphone is the earphone directly established communication link with electronic equipment 101 and carry out preset kind data interaction, from ear Machine is the earphone by carrying out preset kind data interaction after main earphone transfer with electronic equipment 101 again, wherein preset kind number According to including media data and/or communicating data, wherein media data is electronic equipment 101 in addition to call voice data Audio data and/or video data, communicating data are the call voice data of electronic equipment 101, the first wireless headset 102 and the Two wireless headsets 103 can be Bluetooth wireless earphone etc..Electronic equipment 101 may include the various hands with wireless communication function Holding equipment, wearable device (such as smartwatch, Intelligent bracelet, pedometer etc.), calculates equipment or is connected to nothing mobile unit Other processing equipments of line modem and various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) etc..For convenience of description, apparatus mentioned above system Referred to as electronic equipment.It describes in detail below to the embodiment of the present application.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of plug-hole detection method, it is applied to Wireless headset, the wireless headset include the first wireless headset and the second wireless headset, first wireless headset and described the Two wireless headsets include at least one power amplifier module and at least one microphone, as shown, this plug-hole detection method includes:
S201, wireless headset pass through the first audio that at least one described power amplifier module issues default frequency range, it is described at least One power amplifier module includes the power amplifier module of first wireless headset;
Wherein, the power amplifier module includes loudspeaker and power amplifier, is mainly used for from the faint of signal source Electric signal is amplified and is made a sound by loudspeaker, and the power amplifier module is similar to small speaker, such as can be used in user When looking for less than wireless headset, power amplifier module is controlled by electronic equipment and is made a sound, the position etc. of user radio earphone is prompted.
Wherein, first audio can be the ultrasonic wave that frequency is greater than 20000 hertz, and presetting frequency range at this time can be 20000 hertz or more of any frequency range, be also possible to that human ear of the frequency between 20000 hertz to 20 hertz can hear can On hearing the news, presetting frequency range at this time can be any frequency range between 20000 hertz to 20 hertz, not do unique restriction herein.
Wherein, in the case where not having ambient sound interference, what first audio can hear for above-mentioned human ear can When on hearing the news, when there are in the case where ambient sound interference, first audio can be above-mentioned ultrasonic wave, wherein the wireless ear Machine can built-in decibel detector test environmental volume determine whether there is ambient sound interference, wherein when the first audio is yes When above-mentioned ultrasonic wave, the wireless headset, which needs to control loudspeaker in the case where there is shelter, issues the first audio, shelter It can be that can block in a certain range the arbitrary objects of the power amplifier module, such as can be the second wireless headset, charging Box etc..
Wherein, at least one described power amplifier module includes the power amplifier module of first wireless headset, i.e., when it is described at least It can be the power amplifier module of the first wireless headset, when at least one described power amplifier mould when one power amplifier module is 1 power amplifier module Block be 2 perhaps more than two power amplifier modules when then include at least the first wireless headset in 2 or more than two power amplifier modules A power amplifier module.
S202, in preset period of time, the wireless headset passes through at least one described microphone and receives the default frequency range The second interior audio, at least one described microphone include the microphone of first wireless headset;
Wherein, the wireless headset receives the second audio in default frequency range by microphone, rather than full frequency band receives Second audio advantageously reduces interference of other frequency ranges to the first audio, promotes the accuracy that the second audio obtains.
It wherein, is that the power amplifier module of the wireless headset issues in the preset period of time of the first audio in the preset period of time, It can be in the preset period of time in 1s, in 5s etc., it is not limited here.
Wherein, when the first audio of the default frequency range is the ultrasonic wave that said frequencies are greater than 20000 hertz, due to upper Blocking for shelter is stated, first audio carries out multi-faceted diffraction when can pass through shelter after sending, therefore, even if For microphone not on the direction of power amplifier module transmitting ultrasonic wave, microphone equally can receive corresponding with the first audio second Audio, the second audio is the audio that the first audio diffraction goes out at this time.
Wherein, the power amplifier module and microphone of first wireless headset and the second wireless headset are to support ultrasonic wave transmitting With received power amplifier module and microphone, such as the microphone of ultrasonic microphone sensor is carried, the power amplifier module and wheat The supersonic band that gram wind is supported can be the ultrasonic wave between 30000 hertz to 20000 hertz, without being full frequency band Ultrasonic wave.
Wherein, at least one described microphone includes the microphone of first wireless headset, i.e., when it is described at least one Microphone be 1 microphone when, can be the first wireless headset microphone, when at least one described microphone be 2 or When more than two microphones, then a microphone of the first wireless headset is included at least in 2 or more than two microphone.
S203, the wireless headset determine that first wireless headset is in plug-hole state according to second audio.
Wherein, the plug-hole state can be the plug-hole state of the microphone of the first wireless headset, be also possible to described The plug-hole state of loudspeaker in the power amplifier module of one wireless headset, it is not limited here.
Wherein, determining that first wireless headset is in the specific implementation of plug-hole state according to second audio can It to be diversified, such as can be according to frequency range difference is preset, the range of the second audio power determined, when the second audio Energy determines the plug-hole state of the power amplifier module not in the energy range, or can be according to default frequency range difference, The range for determining the second audio volume determines the stifled of the microphone when the volume of the second audio is not in the volume range Hole state, it is not limited here.
Wherein, the process of the determining plug-hole state can be is held by the electronic equipment communicated to connect with the wireless headset Row, when electronic equipment determines the plug-hole state of the first wireless headset, result is sent to wireless headset by electronic equipment.
As can be seen that it is default that wireless headset passes through at least one power amplifier module sending first in the embodiment of the present application First audio of frequency range, at least one described power amplifier module include the power amplifier module of first wireless headset, secondly, default In period, the second audio in the default frequency range, at least one described microphone are received by least one described microphone Microphone including first wireless headset, finally, determining that first wireless headset is in stifled according to second audio Hole state.As it can be seen that wireless headset can be detected in the case where not increasing hardware configuration only by power amplifier module and microphone The plug-hole state of multiple apertures, has expanded the function of wireless headset, improves the convenience and timeliness of plug-hole detection, moreover, It is detected in the case where user's unaware, meets the user experience of user, be conducive to the intelligence for improving wireless headset.
It is described to determine that first wireless headset is in plug-hole shape according to second audio in a possible example State, comprising:
Determine that the microphone of first wireless headset is in described stifled according to the first parameter preset of second audio Hole state, first parameter preset include any of the following or a variety of: volume, frequency, amplitude, energy.
Wherein, audio is a kind of sound wave, and sound wave is a kind of mechanical wave, and therefore, there are energy for sound wave itself, which can To be calculated by Media density, frequency, amplitude and the velocity of wave propagated, i.e. the unit time energy that flows through unit area medium The number of average value indicate the energy of the sound of the unit area.
Wherein, first parameter preset according to second audio determines that the loudspeaker is in the plug-hole state Specific implementation whether in a certain range can be determining volume and/or frequency and/or energy and/or amplitude, if Do not exist, it is determined that microphone plug-hole can also include tone color in first parameter preset, when first parameter preset is sound When color, it can be whether determining tone color matches with default tone color or whether match with the tone color of the first audio, if mismatched, Then determine microphone plug-hole, it is not limited here.
As it can be seen that wireless headset can be determined by the property parameters of the first parameter preset of the second audio in this example The plug-hole state of microphone, algorithm is easy, is conducive to the convenience and realizability that promote plug-hole detection.
In this possible example, at least one described power amplifier module is the power amplifier module of first wireless headset, At least one described microphone be first wireless headset microphone and second wireless headset microphone, described It determines that the microphone of first wireless headset is in the plug-hole state according to the first parameter preset of second audio, wraps It includes:
Compare the first parameter and the second parameter, the institute that first parameter obtains for the microphone of first wireless headset The parameter in the first parameter preset of the second audio is stated, second parameter is that the microphone of second wireless headset obtains Parameter in first parameter preset of second audio;
When detecting that first parameter is less than second parameter, and between first parameter and second parameter Difference be greater than the first preset threshold when, determine that the microphone of first wireless headset is in the plug-hole state.
Wherein, it also may include multiple parameters that first parameter and second parameter, which may each comprise a parameter, Such as may include volume parameters and amplitude parameter, when first parameter and second parameter include multiple parameters, The specific implementation that the microphone of determination first wireless headset is in the plug-hole state can be varied , such as can be, detect that each parameter in the first parameter is respectively less than corresponding parameter in the second parameter, and the first parameter In difference between each parameter and corresponding parameter in the second parameter when being all larger than the first preset threshold, determine the plug-hole shape State, or can be, detect in first parameter any one parameter less than corresponding parameter in the second parameter, and difference When greater than the first preset threshold, the plug-hole state is determined, it is not limited here, wherein first preset threshold can wrap Include a preset threshold, can also correspond to different parameters includes multiple preset thresholds, first preset threshold can be for Empirical value, by technological development, personnel are preset in wireless headset, it is not limited here.
As it can be seen that wireless headset receives same first audio by two microphones, then according to two in this example First parameter preset of the second audio of difference that microphone receives determines the plug-hole state of microphone, realizes wireless headset Automatic detection be conducive to be promoted stifled moreover, can identify by this example as microphone plug-hole, rather than other plug-holes The intelligence of hole detection.
It is described to determine that first wireless headset is in plug-hole shape according to second audio in a possible example State, comprising:
Determine that the power amplifier module of first wireless headset is in described according to the second parameter preset of second audio Plug-hole state, second parameter preset include any of the following or a variety of: volume, tone color, frequency, energy.
Wherein, second parameter preset according to second audio determines that the power amplifier module is in the plug-hole shape Whether in a certain range the specific implementation of state can be determining volume and/or frequency and/or energy and/or amplitude, such as Fruit does not exist, it is determined that power amplifier module plug-hole can also include tone color in second parameter preset, when second parameter preset When for tone color, it can be whether determining tone color matches with default tone color or whether match with the tone color of the first audio, if not Matching, it is determined that power amplifier module plug-hole, it is not limited here.
As it can be seen that wireless headset can be determined by the property parameters of the second parameter preset of the second audio in this example The plug-hole state of power amplifier module, algorithm is easy, is conducive to the convenience for promoting plug-hole detection.
In this possible example, at least one described power amplifier module be first wireless headset power amplifier module and The power amplifier module of second wireless headset, at least one described microphone is the microphone of first wireless headset, described Determine that the power amplifier module of first wireless headset is in the plug-hole state according to the second parameter preset of second audio, Include:
Third parameter and the 4th parameter are compared, the third parameter is the microphone of first wireless headset according to first Parameter in second parameter preset of second audio that reference audio obtains, the 4th parameter are the described first wireless ear Parameter in second parameter preset of second audio that the microphone of machine is obtained according to the second reference audio, first ginseng First audio that the power amplifier module that audio is first wireless headset issues is examined, second reference audio is described the First audio that the power amplifier module of two wireless headsets issues, the power amplifier module of first wireless headset and second nothing The power amplifier module of line earphone is first audio issued according to third parameter preset;
When detecting that the third parameter is less than the 4th parameter, and between the third parameter and the 4th parameter Difference be greater than the second preset threshold when, determine that the power amplifier module of first wireless headset is in the plug-hole state.
Wherein, wireless headset passes through the power amplifier module of first wireless headset and the power amplifier mould of second wireless headset First audio that block is successively issued according to third parameter preset, and the wireless headset is successively issued in two power amplifier modules After first audio, two the second audios corresponding with two the first audios are obtained respectively according to sequencing by microphone.
Wherein, it also may include multiple parameters that the third parameter and the 4th parameter, which may each comprise a parameter, Such as may include frequency parameter and energy parameter, when the third parameter and the 4th parameter include multiple parameters, The specific implementation that the power amplifier module of determination first wireless headset is in the plug-hole state can be a variety of more Sample, such as can be, detect that each parameter in third parameter is respectively less than corresponding parameter in the 4th parameter, and third is joined When difference in number between each parameter and corresponding parameter in the 4th parameter is all larger than the second preset threshold, the plug-hole is determined State, or can be, detect in the third parameter any one parameter less than corresponding parameter in the 4th parameter, and it is poor When value is greater than the second preset threshold, the plug-hole state is determined, it is not limited here, wherein second preset threshold can be with Including a preset threshold, can also correspond to different parameters includes multiple preset thresholds, and second preset threshold can be For empirical value, by technological development, personnel are preset in wireless headset, it is not limited here.
As it can be seen that in this example, wireless headset issues the according to same third parameter preset by two power amplifier modules One audio, the difference of the second parameter preset of two the second audios then received according to microphone determine power amplifier module Plug-hole state realizes the automatic detection of wireless headset, moreover, can be identified by this example as power amplifier module plug-hole, Rather than other plug-holes, be conducive to the intelligence for promoting plug-hole detection.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is provided by the embodiments of the present application another stifled The flow diagram of hole inspection method and hole inspection, is applied to wireless headset, and the wireless headset includes that the first wireless headset and second are wireless Earphone, first wireless headset and second wireless headset include at least one power amplifier module and at least one microphone, As shown, this plug-hole detection method includes:
S301, wireless headset pass through the first audio that at least one described power amplifier module issues default frequency range, it is described at least One power amplifier module is the power amplifier module of first wireless headset.
S302, in preset period of time, the wireless headset passes through at least one described microphone and receives the default frequency range The second interior audio, at least one described microphone are the microphone and second wireless headset of first wireless headset Microphone.
S303, the wireless headset compare the first parameter and the second parameter, and first parameter is the described first wireless ear Parameter in first parameter preset of second audio that the microphone of machine obtains, second parameter are described second wireless Parameter in first parameter preset of second audio that the microphone of earphone obtains.
Wherein, first parameter preset includes any of the following or a variety of: volume, frequency, amplitude, energy.
S304, the wireless headset, which is worked as, detects that first parameter is less than second parameter, and first parameter When difference between second parameter is greater than the first preset threshold, determine that the microphone of first wireless headset is in stifled Hole state.
As can be seen that it is default that wireless headset passes through at least one power amplifier module sending first in the embodiment of the present application First audio of frequency range, at least one described power amplifier module include the power amplifier module of first wireless headset, secondly, default In period, the second audio in the default frequency range, at least one described microphone are received by least one described microphone Microphone including first wireless headset, finally, determining that first wireless headset is in stifled according to second audio Hole state.As it can be seen that wireless headset can be detected in the case where not increasing hardware configuration only by power amplifier module and microphone The plug-hole state of multiple apertures, has expanded the function of wireless headset, improves the convenience and timeliness of plug-hole detection, moreover, It is detected in the case where user's unaware, meets the user experience of user, be conducive to the intelligence for improving wireless headset.
In addition, wireless headset receives same first audio by two microphones, then connect according to two microphones First parameter preset of the second audio of difference received determines the plug-hole state of microphone, realizes the automation of wireless headset Detection, moreover, can be identified by this example as microphone plug-hole, rather than other plug-holes, be conducive to promote plug-hole detection Intelligence.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is provided by the embodiments of the present application another stifled The flow diagram of hole inspection method and hole inspection, is applied to wireless headset, and the wireless headset includes that the first wireless headset and second are wireless Earphone, first wireless headset and second wireless headset include at least one power amplifier module and at least one microphone, As shown, this plug-hole detection method includes:
S401, wireless headset pass through at least one described power amplifier module and issue the of default frequency range according to third parameter preset One audio, at least one described power amplifier module are the power amplifier module of first wireless headset and the function of second wireless headset Amplification module.
S402, in preset period of time, the wireless headset passes through at least one described microphone and receives the default frequency range The second interior audio, at least one described microphone are the microphone of first wireless headset.
S403, the wireless headset compare third parameter and the 4th parameter, and the third parameter is the described first wireless ear Parameter in second parameter preset of second audio that the microphone of machine is obtained according to the first reference audio, the 4th ginseng Number is the second parameter preset of second audio that the microphone of first wireless headset is obtained according to the second reference audio In parameter, first reference audio be first wireless headset power amplifier module issue first audio, it is described Second reference audio is first audio that the power amplifier module of second wireless headset issues.
Wherein, second parameter preset and the third parameter preset include any of the following or a variety of: volume, frequency Rate, amplitude, energy.
S404, the wireless headset, which is worked as, detects that the third parameter is less than the 4th parameter, and the third parameter When difference between the 4th parameter is greater than the second preset threshold, determine that the power amplifier module of first wireless headset is in Plug-hole state.
As can be seen that it is default that wireless headset passes through at least one power amplifier module sending first in the embodiment of the present application First audio of frequency range, at least one described power amplifier module include the power amplifier module of first wireless headset, secondly, default In period, the second audio in the default frequency range, at least one described microphone are received by least one described microphone Microphone including first wireless headset, finally, determining that first wireless headset is in stifled according to second audio Hole state.As it can be seen that wireless headset can be detected in the case where not increasing hardware configuration only by power amplifier module and microphone The plug-hole state of multiple apertures, has expanded the function of wireless headset, improves the convenience and timeliness of plug-hole detection, moreover, It is detected in the case where user's unaware, meets the user experience of user, be conducive to the intelligence for improving wireless headset.
In addition, wireless headset issues the first audio according to same third parameter preset by two power amplifier modules, so The difference of second parameter preset of two the second audios received afterwards according to microphone determines the plug-hole state of power amplifier module, The automatic detection of wireless headset is realized, moreover, can be identified by this example as power amplifier module plug-hole, rather than other are stifled Hole is conducive to the intelligence for promoting plug-hole detection.
It is consistent with above-mentioned Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application A kind of structural schematic diagram of wireless headset 500, is applied to wireless headset, which includes the first wireless headset and the second nothing Line earphone, first wireless headset and second wireless headset include at least one power amplifier module and at least one Mike Wind, as shown, the wireless headset includes processor 501, memory 502, communication interface 503 and one or more programs 504, wherein said one or multiple programs 504 are stored in above-mentioned memory 502, and are configured by above-mentioned processor 501 execute, and above procedure includes the instruction for executing following steps;
The first audio of default frequency range, at least one described power amplifier module packet are issued by least one described power amplifier module Include the power amplifier module of first wireless headset;
In preset period of time, the second audio in the default frequency range is received by least one described microphone, it is described At least one microphone includes the microphone of first wireless headset;
Determine that first wireless headset is in plug-hole state according to second audio.
As can be seen that it is default that wireless headset passes through at least one power amplifier module sending first in the embodiment of the present application First audio of frequency range, at least one described power amplifier module include the power amplifier module of first wireless headset, secondly, default In period, the second audio in the default frequency range, at least one described microphone are received by least one described microphone Microphone including first wireless headset, finally, determining that first wireless headset is in stifled according to second audio Hole state.As it can be seen that wireless headset can be detected in the case where not increasing hardware configuration only by power amplifier module and microphone The plug-hole state of multiple apertures, has expanded the function of wireless headset, improves the convenience and timeliness of plug-hole detection, moreover, It is detected in the case where user's unaware, meets the user experience of user, be conducive to the intelligence for improving wireless headset.
In a possible example, determine that first wireless headset is in plug-hole according to second audio described State aspect, the instruction in described program 504 are specifically used for executing following operation: according to the first of second audio the default ginseng Number determines that the microphone of first wireless headset is in the plug-hole state, and first parameter preset includes following any one Kind is a variety of: volume, frequency, amplitude, energy.
In this possible example, at least one described power amplifier module is the power amplifier module of first wireless headset, At least one described microphone is the microphone of first wireless headset and the microphone of second wireless headset, described Determine that the microphone of first wireless headset is in the plug-hole state side according to the first parameter preset of second audio Face, the instruction in described program 504 are specifically used for executing following operation: comparing the first parameter and the second parameter, first ginseng Parameter in first parameter preset of second audio that number obtains for the microphone of first wireless headset, described second Parameter is the parameter in the first parameter preset of second audio that the microphone of second wireless headset obtains;And it uses Detect that first parameter is less than second parameter, and the difference between first parameter and second parameter in working as When greater than the first preset threshold, determine that the microphone of first wireless headset is in the plug-hole state.
In a possible example, determine that first wireless headset is in plug-hole according to second audio described State aspect, the instruction in described program 504 are specifically used for executing following operation: according to the second of second audio the default ginseng Number determines that the power amplifier module of first wireless headset is in the plug-hole state, and second parameter preset includes following any It is one or more: volume, tone color, frequency, energy.
In this possible example, at least one described power amplifier module be first wireless headset power amplifier module and The power amplifier module of second wireless headset, at least one described microphone is the microphone of first wireless headset, in institute It states and determines that the power amplifier module of first wireless headset is in the plug-hole shape according to the second parameter preset of second audio In terms of state, the instruction in described program 504 is specifically used for executing following operation: compare third parameter and the 4th parameter, described the The second of second audio that three parameters obtain for the microphone of first wireless headset according to the first reference audio is preset Parameter in parameter, the 4th parameter are the microphone of first wireless headset according to the acquisition of the second reference audio Parameter in second parameter preset of the second audio, first reference audio are that the power amplifier module of first wireless headset is sent out First audio out, second reference audio are first sound that the power amplifier module of second wireless headset issues Frequently, the power amplifier module of the power amplifier module of first wireless headset and second wireless headset is according to third parameter preset First audio issued;And detect that the third parameter is less than the 4th parameter for working as, and the third is joined When several differences between the 4th parameter are greater than the second preset threshold, at the power amplifier module that determines first wireless headset In the plug-hole state.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that , in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for wireless headset Block.Those skilled in the art should be readily appreciated that, in conjunction with each exemplary unit of embodiment description presented herein And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution Part.Professional technician can specifically realize described function to each using distinct methods, but this reality Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to above method example to wireless headset, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
Fig. 6 is the functional unit composition block diagram of plug-hole detection device 600 involved in the embodiment of the present application.Plug-hole inspection It surveys device 600 and is applied to wireless headset, the wireless headset includes the first wireless headset and the second wireless headset, first nothing Line earphone and second wireless headset include at least one power amplifier module and at least one microphone, the plug-hole detection device 600 include transmitting unit 601, receiving unit 602 and determination unit 603, wherein
The transmitting unit 601, for issuing the first audio of default frequency range, institute by least one described power amplifier module State the power amplifier module that at least one power amplifier module includes first wireless headset;
The receiving unit 602, for receiving the default frequency by least one described microphone in preset period of time The second audio in section, at least one described microphone includes the microphone of first wireless headset;
The determination unit 603, for determining that first wireless headset is in plug-hole state according to second audio.
As can be seen that it is default that wireless headset passes through at least one power amplifier module sending first in the embodiment of the present application First audio of frequency range, at least one described power amplifier module include the power amplifier module of first wireless headset, secondly, default In period, the second audio in the default frequency range, at least one described microphone are received by least one described microphone Microphone including first wireless headset, finally, determining that first wireless headset is in stifled according to second audio Hole state.As it can be seen that wireless headset can be detected in the case where not increasing hardware configuration only by power amplifier module and microphone The plug-hole state of multiple apertures, has expanded the function of wireless headset, improves the convenience and timeliness of plug-hole detection, moreover, It is detected in the case where user's unaware, meets the user experience of user, be conducive to the intelligence for improving wireless headset.
In a possible example, determine that first wireless headset is in plug-hole according to second audio described State aspect, the determination unit 603 are specifically used for: determining first nothing according to the second parameter preset of second audio The microphone of line earphone is in the plug-hole state, and second parameter preset includes any of the following or a variety of: volume, frequency Rate, amplitude, energy.
In this possible example, at least one described power amplifier module is the power amplifier module of first wireless headset, At least one described microphone is the microphone of first wireless headset and the microphone of second wireless headset, described Determine that the microphone of first wireless headset is in the plug-hole state side according to the second parameter preset of second audio Face, the determination unit 603 are specifically used for: comparing the first parameter and the second parameter, first parameter is described first wireless Parameter in first parameter preset of second audio that the microphone of earphone obtains, second parameter are second nothing Parameter in first parameter preset of second audio that the microphone of line earphone obtains;And for when detecting described the One parameter is less than second parameter, and the difference between first parameter and second parameter is greater than the first preset threshold When, determine that the microphone of first wireless headset is in the plug-hole state.
In a possible example, determine that first wireless headset is in plug-hole according to second audio described State aspect, the determination unit 603 are specifically used for: determining first nothing according to the second parameter preset of second audio The power amplifier module of line earphone is in the plug-hole state, and second parameter preset includes any of the following or a variety of: volume, Tone color, frequency, energy.
In this possible example, at least one described power amplifier module be first wireless headset power amplifier module and The power amplifier module of second wireless headset, at least one described microphone is the microphone of first wireless headset, in institute It states and determines that the power amplifier module of first wireless headset is in the plug-hole shape according to the second parameter preset of second audio In terms of state, the determination unit 603 is specifically used for: comparing third parameter and the 4th parameter, the third parameter is described first Parameter in second parameter preset of second audio that the microphone of wireless headset is obtained according to the first reference audio, it is described 4th parameter be second audio that the microphone of first wireless headset is obtained according to the second reference audio second in advance Parameter in setting parameter, first reference audio are first sound that the power amplifier module of first wireless headset issues Frequently, second reference audio is first audio of the power amplifier module sending of second wireless headset, first nothing The power amplifier module of the power amplifier module of line earphone and second wireless headset is described the issued according to third parameter preset One audio;And detect that the third parameter is less than the 4th parameter, and the third parameter and the described 4th for working as When difference between parameter is greater than the second preset threshold, determine that the power amplifier module of first wireless headset is in the plug-hole shape State.
Wherein, transmitting unit 601 can be loudspeaker, and receiving unit 602 can be microphone, the determination unit 603 It can be processor or transceiver.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer Some or all of a kind of plug-hole detection method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Some or all of any plug-hole detection method recorded in method embodiment step, above-mentioned computer includes electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in computer-readable memory, and memory can With include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of plug-hole detection method, which is characterized in that be applied to wireless headset, the wireless headset includes the first wireless headset With the second wireless headset, first wireless headset and second wireless headset include at least one power amplifier module and at least one A microphone, which comprises
The first audio of default frequency range is issued by least one described power amplifier module, at least one described power amplifier module includes institute State the power amplifier module of the first wireless headset;
In preset period of time, the second audio in the default frequency range is received by least one described microphone, it is described at least One microphone includes the microphone of first wireless headset;
Determine that first wireless headset is in plug-hole state according to second audio.
2. the method according to claim 1, wherein described determine that described first is wireless according to second audio Earphone is in plug-hole state, comprising:
Determine that the microphone of first wireless headset is in the plug-hole shape according to the first parameter preset of second audio State, first parameter preset include any of the following or a variety of: volume, frequency, amplitude, energy.
3. according to the method described in claim 2, it is characterized in that, at least one described power amplifier module is the described first wireless ear The power amplifier module of machine, at least one described microphone are the microphone and second wireless headset of first wireless headset Microphone, first parameter preset according to second audio determine that the microphone of first wireless headset is in described Plug-hole state, comprising:
Compare the first parameter and the second parameter, first parameter is described that the microphone of first wireless headset obtains Parameter in first parameter preset of two audios, second parameter are the described of the microphone acquisition of second wireless headset Parameter in first parameter preset of the second audio;
When detecting that first parameter is less than second parameter, and the difference between first parameter and second parameter When value is greater than the first preset threshold, determine that the microphone of first wireless headset is in the plug-hole state.
4. the method according to claim 1, wherein described determine that described first is wireless according to second audio Earphone is in plug-hole state, comprising:
Determine that the power amplifier module of first wireless headset is in the plug-hole according to the second parameter preset of second audio State, second parameter preset include any of the following or a variety of: volume, tone color, frequency, energy.
5. according to the method described in claim 4, it is characterized in that, at least one described power amplifier module is the described first wireless ear The power amplifier module of the power amplifier module of machine and second wireless headset, at least one described microphone are first wireless headset Microphone, second parameter preset according to second audio determines that the power amplifier module of first wireless headset is in The plug-hole state, comprising:
Third parameter and the 4th parameter are compared, the third parameter is the microphone of first wireless headset according to the first reference Parameter in second parameter preset of second audio that audio obtains, the 4th parameter are first wireless headset Parameter in second parameter preset of second audio that microphone is obtained according to the second reference audio, described first refers to sound Frequency is first audio that the power amplifier module of first wireless headset issues, and second reference audio is second nothing First audio that the power amplifier module of line earphone issues, the power amplifier module of first wireless headset and the second wireless ear The power amplifier module of machine is first audio issued according to third parameter preset;
When detecting that the third parameter is less than the 4th parameter, and the difference between the third parameter and the 4th parameter When value is greater than the second preset threshold, determine that the power amplifier module of first wireless headset is in the plug-hole state.
6. a kind of plug-hole detection device, which is characterized in that be applied to wireless headset, the wireless headset includes the first wireless headset With the second wireless headset, first wireless headset and second wireless headset include at least one power amplifier module and at least one A microphone, the plug-hole detection device include transmitting unit, receiving unit and determination unit, in which:
The transmitting unit, for issuing the first audio of default frequency range by least one described power amplifier module, it is described at least One power amplifier module includes the power amplifier module of first wireless headset;
The receiving unit, for being received in the default frequency range by least one described microphone in preset period of time Second audio, at least one described microphone include the microphone of first wireless headset;
The determination unit, for determining that first wireless headset is in plug-hole state according to second audio.
7. device according to claim 6, which is characterized in that determine first nothing according to second audio described Line earphone is in plug-hole state aspect, and the determination unit is specifically used for: the first parameter preset according to second audio is true The microphone of fixed first wireless headset is in the plug-hole state, first parameter preset include any of the following or It is a variety of: volume, frequency, amplitude, energy.
8. device according to claim 7, which is characterized in that at least one described power amplifier module is the described first wireless ear The power amplifier module of machine, at least one described microphone are the microphone and second wireless headset of first wireless headset Microphone determines that the microphone of first wireless headset is in institute in first parameter preset according to second audio Plug-hole state aspect is stated, the determination unit is specifically used for: comparing the first parameter and the second parameter, first parameter is described Parameter in first parameter preset of second audio that the microphone of the first wireless headset obtains, second parameter is institute State the parameter in the second parameter preset of second audio of the microphone acquisition of the second wireless headset;And for when described First parameter is less than second parameter, and the difference between first parameter and second parameter is greater than the first default threshold When value, determine that the microphone of first wireless headset is in the plug-hole state.
9. a kind of wireless headset characterized by comprising processor, memory, and one or more programs;It is one Or multiple programs are stored in the memory, and are configured to be executed by the processor, described program includes being used for The instruction of step in the method as described in claim any one of 1-5 of execution.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 5.
CN201810840415.8A 2018-07-26 2018-07-26 Plug-hole detection method and Related product Pending CN109151696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810840415.8A CN109151696A (en) 2018-07-26 2018-07-26 Plug-hole detection method and Related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810840415.8A CN109151696A (en) 2018-07-26 2018-07-26 Plug-hole detection method and Related product

Publications (1)

Publication Number Publication Date
CN109151696A true CN109151696A (en) 2019-01-04

Family

ID=64798113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810840415.8A Pending CN109151696A (en) 2018-07-26 2018-07-26 Plug-hole detection method and Related product

Country Status (1)

Country Link
CN (1) CN109151696A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297909A (en) * 2013-04-23 2013-09-11 衡阳加一电子科技有限公司 Earphone testing method and device
CN104012111A (en) * 2012-01-01 2014-08-27 高通股份有限公司 Ultra-compact headset
CN106303804A (en) * 2016-07-28 2017-01-04 维沃移动通信有限公司 The control method of a kind of mike and mobile terminal
CN106878910A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Control method of speaking and electronic installation
CN106911996A (en) * 2017-03-03 2017-06-30 广东欧珀移动通信有限公司 The detection method of microphone state, device and terminal device
CN107548564A (en) * 2016-04-29 2018-01-05 华为技术有限公司 A kind of phonetic entry abnormal determination method, apparatus, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104012111A (en) * 2012-01-01 2014-08-27 高通股份有限公司 Ultra-compact headset
CN103297909A (en) * 2013-04-23 2013-09-11 衡阳加一电子科技有限公司 Earphone testing method and device
CN107548564A (en) * 2016-04-29 2018-01-05 华为技术有限公司 A kind of phonetic entry abnormal determination method, apparatus, terminal and storage medium
CN106303804A (en) * 2016-07-28 2017-01-04 维沃移动通信有限公司 The control method of a kind of mike and mobile terminal
CN106878910A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Control method of speaking and electronic installation
CN106911996A (en) * 2017-03-03 2017-06-30 广东欧珀移动通信有限公司 The detection method of microphone state, device and terminal device

Similar Documents

Publication Publication Date Title
US9344793B2 (en) Audio apparatus and methods
CN109151698A (en) Microphone plug-hole detection method and Related product
CN201590889U (en) Stereosonic bluetooth headset
CN105280195A (en) Method and device for processing speech signal
CN106792415B (en) A kind of test method and device for digital microphone array
CN109104684A (en) Microphone plug-hole detection method and Related product
CN105049977A (en) Automatic earphone volume adjusting method and device
CN109121059A (en) Loudspeaker plug-hole detection method and Related product
EP3823312A1 (en) Microphone hole blocking detection method and related product
CN105554234B (en) A kind of method, apparatus and terminal of denoising
WO2020019843A1 (en) Microphone hole blockage detection method and related product
CN109151697A (en) Microphone plug-hole detection method and Related product
CN104023302A (en) Programmable digital hearing aid system and method thereof
CN104217750A (en) A holographic audio record and playback method
WO2015026859A1 (en) Audio apparatus and methods
US11297429B2 (en) Proximity detection for wireless in-ear listening devices
CN111800722B (en) Feedforward microphone function detection method and device, terminal equipment and storage medium
CN108337353A (en) The audio signal processing method and equipment of communication equipment
CN105323682A (en) Digital-analog hybrid microphone and earphones
CN107864415A (en) Audio amplifier and audio frequency apparatus share the control method and device of microphone
CN114333886A (en) Audio processing method and device, electronic equipment and storage medium
CN109151696A (en) Plug-hole detection method and Related product
CN112235675B (en) Active noise reduction method and chip of earphone
CN104038860A (en) Non-removable close-distance voice listening method and headset
CN203883965U (en) Pulse detection headphone, terminal and system

Legal Events

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

Application publication date: 20190104

RJ01 Rejection of invention patent application after publication