CN109121059A - Loudspeaker plug-hole detection method and Related product - Google Patents
Loudspeaker plug-hole detection method and Related product Download PDFInfo
- Publication number
- CN109121059A CN109121059A CN201810840414.3A CN201810840414A CN109121059A CN 109121059 A CN109121059 A CN 109121059A CN 201810840414 A CN201810840414 A CN 201810840414A CN 109121059 A CN109121059 A CN 109121059A
- Authority
- CN
- China
- Prior art keywords
- wireless headset
- audio
- loudspeaker
- plug
- hole
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
Abstract
The embodiment of the present application discloses a kind of loudspeaker plug-hole detection method and Related product, comprising: the loudspeaker for passing through first wireless headset issues the first audio of default frequency range;In preset period of time, the second audio in the default frequency range is received by least one described microphone;Determine that the loudspeaker of 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 the convenience and timeliness of plug-hole detection.
Description
Technical field
This application involves wireless headset technical fields, and in particular to a kind of loudspeaker 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 plug-hole, such as dust plug-hole, water droplet plug-hole etc. occurs in loudspeaker, this is just
Causing wireless headset to occur when playing voice data by loudspeaker, sound quality is poor, and the lower situation of sound is influencing user just
It is often used.
Summary of the invention
The embodiment of the present application provides a kind of loudspeaker plug-hole detection method and Related product, can not increase hardware knot
The function that wireless headset is expanded in the case where structure, promotes the convenience and timeliness of plug-hole detection.
In a first aspect, the embodiment of the present application provides a kind of loudspeaker plug-hole detection method, it is applied to wireless headset, it is described
Wireless headset includes the first wireless headset and the second wireless headset, and first wireless headset includes loudspeaker, first nothing
Line earphone and second wireless headset include at least one microphone, which comprises
The first audio of default frequency range is issued by the loudspeaker of first wireless headset;
In preset period of time, the second audio in the default frequency range is received by least one described microphone;
Determine that the loudspeaker of first wireless headset is in plug-hole state according to second audio.
Second aspect, the embodiment of the present application provide a kind of loudspeaker plug-hole detection device, are applied to wireless headset, described
Wireless headset includes the first wireless headset and the second wireless headset, and first wireless headset includes loudspeaker, first nothing
Line earphone and second wireless headset include at least one microphone, and the loudspeaker plug-hole detection device includes that transmitting is single
Member, receiving unit and determination unit, in which:
The transmitting unit issues the first sound of default frequency range for the loudspeaker by first wireless headset
Frequently;
The receiving unit, for receiving the default frequency range by least one described microphone in preset period of time
The second interior audio;
The determination unit, for determining that the loudspeaker of first wireless headset is according to second audio
Plug-hole state.
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 wireless headset is first when the loudspeaking by first wireless headset in the embodiment of the present application
Device issues the first audio of default frequency range, secondly, being received by least one described microphone described default in preset period of time
The second audio in frequency range, finally, determining that the loudspeaker of first wireless headset is in stifled according to second audio
Hole state.It is in as it can be seen that wireless headset can detect loudspeaker only by microphone in the case where not increasing hardware configuration
Plug-hole state has expanded the function of wireless headset, detects in time in the case where user's unaware, improves plug-hole detection just
Victory and timeliness, moreover, by the plug-hole state of detection loudspeaker sound can be being listened to subsequently through loudspeaker to avoid user
Unsharp situation when frequency can effectively promote the clarity of the first wireless headset voice broadcasting.
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 loudspeaker plug-hole detection method disclosed in the embodiment of the present application;
Fig. 3 is the flow diagram of another kind loudspeaker plug-hole detection method disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of another kind loudspeaker 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 A is a kind of functional unit composition block diagram of loudspeaker plug-hole detection device disclosed in the embodiment of the present application;
Fig. 6 B is the functional unit composition block diagram of another kind loudspeaker 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, charging box 104, wherein the first wireless headset 102 and second is wireless
Earphone 103 can support wired or wireless charging, can such as be put into charging box and charge, wherein the system use with
Any one lower communication mechanism, first, the electronic equipment 101 and the foundation of the first wireless headset 102 have the first communication link, institute
Stating the first wireless headset 102 and the foundation of the second wireless headset 103 has the second communication link, i.e. the first wireless headset 102 and second
Communication mechanism between wireless headset 103 and electronic equipment 101 uses master-slave communication mechanism (can specifically use Bluetooth protocol),
Second, the electronic equipment 101 and the foundation of the first wireless headset 102 have the first communication link, the electronic equipment 101 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 are to set with electronics
The standby 101 main earphones directly communicated, wherein main earphone is directly established communication link with electronic equipment 101 and preset
The earphone of categorical data interaction, from earphone i.e. by carrying out the friendship of preset kind data with electronic equipment 101 again after main earphone transfer
Mutual earphone, wherein preset kind data include media data and/or communicating data, wherein media data is electronic equipment
101 audio data and/or video data in addition to call voice data, communicating data are the call language of electronic equipment 101
Sound data, likewise, the communication connection relationship between charging box 104 and the first wireless headset 102, the second wireless headset 103 is such as
Communication connection relationship between above-mentioned electronic equipment 101 and the first wireless headset 102, the second wireless headset 103 is not done old herein
State, the charging box 104 can also be set with electronics 101 it is standby be communicatively coupled, the first wireless headset 102 and the second wireless headset
103 can be Bluetooth wireless earphone etc..Electronic equipment 101 may include the various handheld devices with wireless communication function, vehicle
Equipment is carried, wearable device (such as smartwatch, Intelligent bracelet, pedometer etc.), equipment is calculated or is connected to wireless-modulated solution
Adjust other processing equipments and various forms of user equipmenies (User Equipment, UE) of device, mobile station (Mobile
Station, MS), terminal device (terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronics
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 loudspeaker plug-hole detection method,
Applied to wireless headset, the wireless headset includes the first wireless headset and the second wireless headset, the first wireless headset packet
Loudspeaker is included, first wireless headset and second wireless headset include at least one microphone, as shown, this loudspeaking
Device plug-hole detection method includes:
S201, wireless headset issue the first audio of default frequency range by the loudspeaker of first wireless headset;
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, loudspeaker needs issue the first audio in the case where there is shelter, and shelter can be for can be
The arbitrary objects of the loudspeaker are blocked in a certain range, such as can be the box body etc. of charging box.
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;
Wherein, the wireless headset receives the second audio in default frequency range by least one microphone, rather than complete
The second audio of UHF band reception advantageously reduces interference of other tonal ranges to the first audio, promotes the accuracy of the second audio.
Wherein, at least one described microphone can be a microphone of the first wireless headset, be also possible to the first nothing
Two microphones of line earphone and the second wireless headset, second wireless headset is can be pairs of with first wireless headset
The wireless headset used.
It wherein, is that the loudspeaker of first wireless headset issues the preset period of time of the first audio in the preset period of time
It is interior, 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 loudspeaker transmitting ultrasonic wave, microphone equally can receive the second sound corresponding with the first audio
Frequently, the second audio is the sound wave of the first audio diffraction out at this time.
Wherein, the loudspeaker and microphone of first wireless headset and the second wireless headset be support ultrasonic wave transmitting and
Received loudspeaker and microphone, such as the microphone of ultrasonic microphone sensor is carried, the loudspeaker and microphone branch
The supersonic band held can be 30000 hertz to 20000 hertz direct ultrasonic waves, the ultrasound without being full frequency band
Wave.
S203, the wireless headset determine that the loudspeaker of first wireless headset is according to second audio
Plug-hole state.
Wherein, determine that the loudspeaker of first wireless headset is in the tool of plug-hole state according to second audio
Body implementation can be diversified, such as can be different according to frequency range is preset, determines the range of the second audio power,
When the energy of the second audio is not in the energy range, the loudspeaker plug-hole is determined, or can be according to presetting frequency range
Difference determines the range of the second audio amplitude, when the amplitude of the second audio is not in the amplitude range, determines the loudspeaker
Plug-hole, it is not limited here.
Wherein, the process that the determining loudspeaker is in plug-hole state can be by communicating to connect with the wireless headset
Electronic equipment executes, and when electronic equipment determines plug-hole state, result is sent to wireless headset by electronic equipment.
Wherein, when second audio connects for two microphones of first wireless headset and second wireless headset
It, can be by respectively by the wheat of the microphone of the first wireless headset received second audio and the first wireless headset when the audio of receipts
Gram received second audio of wind is compared with first audio, and the dual determination loudspeaker is in plug-hole state.
As can be seen that wireless headset is first when the loudspeaking by first wireless headset in the embodiment of the present application
Device issues the first audio of default frequency range, secondly, being received by least one described microphone described default in preset period of time
The second audio in frequency range, finally, determining that the loudspeaker of first wireless headset is in stifled according to second audio
Hole state.It is in as it can be seen that wireless headset can detect loudspeaker only by microphone in the case where not increasing hardware configuration
Plug-hole state has expanded the function of wireless headset, detects in time in the case where user's unaware, improves plug-hole detection just
Victory and timeliness, moreover, by the plug-hole state of detection loudspeaker sound can be being listened to subsequently through loudspeaker to avoid user
Unsharp situation when frequency can effectively promote the clarity of the first wireless headset voice broadcasting.
In a possible example, the loudspeaking that first wireless headset is determined according to second audio
Device is in plug-hole state, comprising:
Determine that the loudspeaker is in the plug-hole state, the parameter preset according to the parameter preset of second audio
It includes any of the following or a variety of: volume, tone color, frequency, energy, amplitude.
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, the parameter preset according to second audio determines that the loudspeaker is in the tool of the plug-hole state
Whether in a certain range body implementation can be determining volume and/or frequency and/or energy and/or amplitude, if not,
Then determine loudspeaker plug-hole, either can be determining tone color whether matched with default tone color or with the tone color of the first audio whether
Matching, if it does not match, determining loudspeaker plug-hole, it is not limited here.
As it can be seen that wireless headset can determine the plug-hole state of loudspeaker by the property parameters of audio in this example, calculate
Method is easy, is conducive to the convenience for promoting plug-hole detection.
In this possible example, the parameter preset be volume and tone color, it is described according to the pre- of second audio
Setting parameter determines that the loudspeaker is in the plug-hole state, comprising:
Determine the difference between the volume of second audio and the volume of first audio;
When the difference is greater than preset threshold, the tone color of the tone color of second audio and first audio is carried out
It compares;
When the tone color of second audio is compared unsuccessfully with the tone color of first audio, first nothing is determined
The loudspeaker of line earphone is in the plug-hole state.
Wherein, different predeterminated frequencies can correspond to different preset thresholds, and the preset threshold can be empirical value, can
To be technological development personnel in the preceding empirical value obtained according to test of many times of wireless headset factory, and it is preset in the wireless ear
In machine, it is not limited here.
Wherein, tone color is determined by the overtone for being mixed into fundamental tone, and overtone is also referred to as higher harmonic components, different high orders
Harmonic wave has different amplitude and phase offset, thus generates various tamber effects, therefore, can pass through the amplitude of analysis sound wave
The tone color of the second audio and the tone color of first audio are determined with phase offset.
As it can be seen that wireless headset is when determining loudspeaker plug-hole by detecting volume, then examines to tone color in this example
It surveys, when tone color compares failure, further determines that loudspeaker plug-hole, double check is conducive to the accuracy for promoting plug-hole detection.
In a possible example, the default frequency range is the frequency range where ultrasonic wave, described to pass through first nothing
The loudspeaker of line earphone issues the first audio of default frequency range, comprising:
First audio of supersonic band is issued by the loudspeaker of first wireless headset.
As it can be seen that wireless headset detects the plug-hole of loudspeaker by issuing the first audio of supersonic band in this example
State, rather than the first audio of audible audio frequency range that user can hear, advantageously reduce the interference of ambient sound, promote detection
Accuracy.
In this possible example, the wireless headset communicates to connect charging box, described to pass through the described first wireless ear
The loudspeaker of machine issues the first audio of supersonic band, comprising:
When detecting that first wireless headset is located in the charging box, and the box cover of the charging box is in and closes shape
When state, first audio of the supersonic band is issued by the loudspeaker.
As it can be seen that in this example, wireless headset is detecting that the first wireless headset is located in charging box, and the box cover of charging box
When being in close state, control loudspeaker issues the first audio of supersonic band, is conducive to ensure that microphone accurately connects
The second audio is received, the applicability of plug-hole detection is improved.
In a possible example, the loudspeaking that first wireless headset is determined according to second audio
Device is in after plug-hole state, the method also includes:
When the motion state for detecting first wireless headset is changed to accelerated motion state by stationary state, determine
The running track of first wireless headset;
When detecting the wearing operation for first wireless headset according to the running track, described first is promoted
The volume of loudspeaker when wireless headset playing audio-fequency data.
Wherein, the wireless headset can be quiet come the motion state for determining the first wireless headset with built-in acceleration sensor
Only state still accelerates state, while gyroscope built in wireless headset, and cooperation acceleration transducer determines the first wireless ear
The running track of machine.
Wherein, the specific implementation side of the wearing operation for first wireless headset is detected according to the running track
Formula can be that wireless headset is default to be equipped with reference to running track, this is user in the process for wearing wireless headset with reference to running track
In from the track picking up wireless headset and being skidded off to wireless headset when wearing on ear, when the operation for detecting the first wireless headset
Track include it is described with reference to running track or comprising with the running track parallel with reference to running track when, can determine needle
Wearing operation to first wireless headset.
As it can be seen that wireless headset detects the fortune of the first wireless headset when determining that loudspeaker is in plug-hole state in this example
Row track, when according to running track determine for the first wireless headset wearing operate when, promote the volume of loudspeaker, avoid because
Loudspeaker plug-hole causes user that can not clearly obtain the voice data of loudspeaker broadcasting, promotes the clarity that loudspeaker plays.
It is described to promote loudspeaker when the first wireless headset playing audio-fequency data in this possible example
After volume, the method also includes:
Detect whether first wireless headset is main earphone;
When detecting first wireless headset is the main earphone, switch first wireless headset be from earphone,
Switching second wireless headset is the main earphone.
As it can be seen that wireless headset promotes the broadcasting of the first wireless headset loudspeaker when determining loudspeaker plug-hole in this example
Volume, this will cause the electric quantity consumption of the first wireless headset very fast, and therefore, the first wireless headset is switched to from earphone, drop
It is low because of the more bring power consumption of the communication interaction number of main earphone and electric quantity consumption, when promoting the use of the first wireless headset
It is long.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is that another kind provided by the embodiments of the present application is raised
The flow diagram of sound device plug-hole detection method, is applied to wireless headset, and the wireless headset includes the first wireless headset and the
Two wireless headsets, first wireless headset includes loudspeaker, and first wireless headset and second wireless headset include
At least one microphone, as shown, this loudspeaker plug-hole detection method includes:
S301, wireless headset, which is worked as, detects that first wireless headset is located in charging box, and the box cover of the charging box
When being in close state, the first audio of supersonic band is issued by the loudspeaker 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.
S303, the wireless headset determine that the loudspeaker is in plug-hole shape according to the parameter preset of second audio
State, the parameter preset include any of the following or a variety of: volume, tone color, frequency, energy, amplitude.
S304, the wireless headset are changed to add when the motion state for detecting first wireless headset by stationary state
When fast motion state, the running track of first wireless headset is determined.
S305, the wireless headset work as the wearing behaviour detected according to the running track for first wireless headset
When making, the volume of loudspeaker when the first wireless headset playing audio-fequency data is promoted.
S306, the wireless headset detect whether first wireless headset is main earphone.
S307, the wireless headset is when detecting first wireless headset is the main earphone, switching described first
Wireless headset is from earphone, and switching second wireless headset is the main earphone.
As can be seen that wireless headset is first when the loudspeaking by first wireless headset in the embodiment of the present application
Device issues the first audio of default frequency range, secondly, being received by least one described microphone described default in preset period of time
The second audio in frequency range, finally, determining that the loudspeaker of first wireless headset is in stifled according to second audio
Hole state.It is in as it can be seen that wireless headset can detect loudspeaker only by microphone in the case where not increasing hardware configuration
Plug-hole state has expanded the function of wireless headset, detects in time in the case where user's unaware, improves plug-hole detection just
Victory and timeliness, moreover, by the plug-hole state of detection loudspeaker sound can be being listened to subsequently through loudspeaker to avoid user
Unsharp situation when frequency can effectively promote the clarity of the first wireless headset voice broadcasting.
In addition, wireless headset is detecting that the first wireless headset is located in charging box, and the box cover of charging box is in and closes
When state, control loudspeaker issues the first audio of supersonic band, is conducive to ensure that microphone accurately receives second
Audio improves the applicability of plug-hole detection.
In addition, wireless headset can determine the plug-hole state of loudspeaker by the property parameters of audio, algorithm is easy, has
Conducive to the convenience for promoting plug-hole detection.
In addition, wireless headset when determining that loudspeaker is in plug-hole state, detects the running track of the first wireless headset, when
When determining the wearing operation for the first wireless headset according to running track, the volume of loudspeaker is promoted, is avoided because loudspeaker is stifled
Hole causes user that can not clearly obtain the voice data of loudspeaker broadcasting, the clarity that loudspeaker plays is promoted, moreover, wireless ear
Machine promotes the broadcast sound volume of the first wireless headset loudspeaker, this will lead to the first wireless headset when determining loudspeaker plug-hole
Electric quantity consumption it is very fast, therefore, the first wireless headset is switched to from earphone, is reduced because the communication interaction number of main earphone is more
Bring power consumption and electric quantity consumption promote the use duration of the first wireless headset.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is that another kind provided by the embodiments of the present application is raised
The flow diagram of sound device plug-hole detection method, is applied to wireless headset, and the wireless headset includes the first wireless headset and the
Two wireless headsets, first wireless headset includes loudspeaker, and first wireless headset and second wireless headset include
At least one microphone, as shown, this loudspeaker plug-hole detection method includes:
S401, wireless headset issue the first sound of supersonic band by the loudspeaker of first wireless headset
Frequently.
S402, in the preset period of time, the wireless headset passes through at least one described microphone and receives described preset
The second audio in frequency range.
S403, the wireless headset determine the difference between the volume of second audio and the volume of first audio
Value.
S404, the wireless headset when the difference be greater than preset threshold when, by the tone color of second audio with it is described
The tone color of first audio is compared.
Failure is compared with the tone color of first audio when the tone color of second audio in S405, the wireless headset
When, determine that the loudspeaker of first wireless headset is in plug-hole state.
As can be seen that wireless headset is first when the loudspeaking by first wireless headset in the embodiment of the present application
Device issues the first audio of default frequency range, secondly, being received by least one described microphone described default in preset period of time
The second audio in frequency range, finally, determining that the loudspeaker of first wireless headset is in stifled according to second audio
Hole state.It is in as it can be seen that wireless headset can detect loudspeaker only by microphone in the case where not increasing hardware configuration
Plug-hole state has expanded the function of wireless headset, detects in time in the case where user's unaware, improves plug-hole detection just
Victory and timeliness, moreover, by the plug-hole state of detection loudspeaker sound can be being listened to subsequently through loudspeaker to avoid user
Unsharp situation when frequency can effectively promote the clarity of the first wireless headset voice broadcasting.
In addition, wireless headset detects the plug-hole state of loudspeaker by issuing the first audio of supersonic band, without
It is the first audio of the audible audio frequency range that user can hear, advantageously reduces the interference of ambient sound, promotes the accuracy of detection.
In addition, wireless headset then detects tone color when determining loudspeaker plug-hole by detecting volume, when tone color ratio
When to failure, loudspeaker plug-hole is further determined that, double check is conducive to the accuracy 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, the wireless headset include the first wireless headset and the second wireless headset, described first
Wireless headset includes loudspeaker, and first wireless headset and second wireless headset include at least one microphone, is such as schemed
Shown, which 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 to be executed by above-mentioned processor 501, on
Stating program includes the instruction for executing following steps;
The first audio of default frequency range is issued by the loudspeaker of first wireless headset;
In preset period of time, the second audio in the default frequency range is received by least one described microphone;
Determine that the loudspeaker of first wireless headset is in plug-hole state according to second audio.
As can be seen that wireless headset is first when the loudspeaking by first wireless headset in the embodiment of the present application
Device issues the first audio of default frequency range, secondly, being received by least one described microphone described default in preset period of time
The second audio in frequency range, finally, determining that the loudspeaker of first wireless headset is in stifled according to second audio
Hole state.It is in as it can be seen that wireless headset can detect loudspeaker only by microphone in the case where not increasing hardware configuration
Plug-hole state has expanded the function of wireless headset, detects in time in the case where user's unaware, improves plug-hole detection just
Victory and timeliness, moreover, by the plug-hole state of detection loudspeaker sound can be being listened to subsequently through loudspeaker to avoid user
Unsharp situation when frequency can effectively promote the clarity of the first wireless headset voice broadcasting.
In a possible example, it is described according to second audio determine first wireless headset described in raise
Sound device is in plug-hole state aspect, and the instruction in described program 504 is specifically used for executing following operation: according to second audio
Parameter preset determine that the loudspeaker is in the plug-hole state, the parameter preset includes any of the following or a variety of:
Volume, tone color, frequency, energy, amplitude.
In this possible example, the parameter preset is volume and tone color, described true according to second audio
The loudspeaker of fixed first wireless headset is in plug-hole state aspect, and the instruction in described program 504 is specifically used for holding
The following operation of row: the difference between the volume of second audio and the volume of first audio is determined;And for working as institute
When stating difference greater than preset threshold, the tone color of second audio is compared with the tone color of first audio;And it uses
In when the tone color of second audio is compared unsuccessfully with the tone color of first audio, first wireless headset is determined
The loudspeaker be in the plug-hole state.
In a possible example, the default frequency range is the frequency range where ultrasonic wave, passes through described first described
In terms of the loudspeaker of wireless headset issues the first audio of default frequency range, the instruction in described program 504 is specifically used for holding
The following operation of row: first audio of supersonic band is issued by the loudspeaker of first wireless headset.
In this possible example, the wireless headset communicates to connect charging box, described wireless by described first
In terms of the loudspeaker of earphone issues the first audio of supersonic band, the instruction in described program 504 is specifically used for executing
Operate below: when detecting that first wireless headset is located in the charging box, and the box cover of the charging box is in closing
When state, first audio of the supersonic band is issued by the loudspeaker.
In a possible example, above procedure 504 further includes the instruction for executing following steps: described according to institute
It states the second audio and determines that the loudspeaker of first wireless headset is in after plug-hole state, when detecting first nothing
When the motion state of line earphone is changed to accelerated motion state by stationary state, the operation rail of first wireless headset is determined
Mark;And for when detecting the wearing operation for first wireless headset according to the running track, described in promotion
The volume of loudspeaker when the first wireless headset playing audio-fequency data.
In this possible example, above procedure 504 further includes the instruction for executing following steps: the promotion institute
State when the first wireless headset playing audio-fequency data after the volume of the loudspeaker, detect first wireless headset whether based on
Earphone;And for when detecting first wireless headset is the main earphone, switch first wireless headset be from
Earphone, switching second wireless headset is the main earphone.
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 A is the functional unit composition block diagram of loudspeaker plug-hole detection device 600 involved in the embodiment of the present application.
The loudspeaker plug-hole detection device 600 is applied to wireless headset, which includes the first wireless headset and the second wireless ear
Machine, first wireless headset includes loudspeaker, and first wireless headset and second wireless headset include at least one
Microphone, the loudspeaker plug-hole detection device 600 include transmitting unit 601, receiving unit 602 and determination unit 603, wherein
The transmitting unit 601, for issuing the of default frequency range by the loudspeaker of first wireless headset
One audio;
The receiving unit 602, for being received by least one described microphone described default in preset period of time
The second audio in frequency range;
The determination unit 603, for determining the loudspeaker of first wireless headset according to second audio
In plug-hole state.
As can be seen that wireless headset is first when the loudspeaking by first wireless headset in the embodiment of the present application
Device issues the first audio of default frequency range, secondly, being received by least one described microphone described default in preset period of time
The second audio in frequency range, finally, determining that the loudspeaker of first wireless headset is in stifled according to second audio
Hole state.It is in as it can be seen that wireless headset can detect loudspeaker only by microphone in the case where not increasing hardware configuration
Plug-hole state has expanded the function of wireless headset, detects in time in the case where user's unaware, improves plug-hole detection just
Victory and timeliness, moreover, by the plug-hole state of detection loudspeaker sound can be being listened to subsequently through loudspeaker to avoid user
Unsharp situation when frequency can effectively promote the clarity of the first wireless headset voice broadcasting.
In a possible example, it is described according to second audio determine first wireless headset described in raise
Sound device is in plug-hole state aspect, and the determination unit 603 is specifically used for: determining institute according to the parameter preset of second audio
It states loudspeaker and is in the plug-hole state, the parameter preset includes any of the following or a variety of: volume, tone color, frequency, energy
Amount, amplitude.
In a possible example, the parameter preset is volume and tone color, described according to second audio
Parameter preset determines that the loudspeaker is in the plug-hole state aspect, and the determination unit 603 is specifically used for: determining described
Difference between the volume of two audios and the volume of first audio;And be used for when the difference is greater than preset threshold,
The tone color of second audio is compared with the tone color of first audio;And the tone color for working as second audio
When being compared unsuccessfully with the tone color of first audio, determine that the loudspeaker of first wireless headset is in described stifled
Hole state.
In a possible example, the default frequency range is the frequency range where ultrasonic wave, passes through described first described
In terms of the loudspeaker of wireless headset issues the first audio of default frequency range, the transmitting unit 601 is specifically used for: passing through institute
The loudspeaker for stating the first wireless headset issues first audio of supersonic band.
In this possible example, the wireless headset communicates to connect charging box, described wireless by described first
In terms of the loudspeaker of earphone issues the first audio of supersonic band, the transmitting unit 601 is specifically used for: when detecting
First wireless headset is located in the charging box, and when the box cover of the charging box is in close state, is raised by described
Sound device issues first audio of the supersonic band.
In a possible example, as shown in Figure 6B, the loudspeaker plug-hole detection device 600 further includes processing unit
604, wherein the processing unit 604 is in the loudspeaking for determining first wireless headset according to second audio
Device is in after plug-hole state, is used for: when the motion state for detecting first wireless headset is changed to add by stationary state
When fast motion state, the running track of first wireless headset is determined;And it is detected for working as according to the running track
For first wireless headset wearing operation when, loudspeaker when promoting the first wireless headset playing audio-fequency data
Volume.
In this possible example, the processing unit 604 promotes the first wireless headset broadcasting audio described
When data after the volume of the loudspeaker, be also used to: whether detection first wireless headset is main earphone;And for working as
When detecting that first wireless headset is the main earphone, switching first wireless headset is to switch described the from earphone
Two wireless headsets are the main earphone.
Wherein, transmitting unit 601 can be loudspeaker, and receiving unit 602 can be microphone, the execution unit 603
It can be processor or transceiver with processing unit 604.
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 loudspeaker 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 loudspeaker plug-hole detection method recorded in method embodiment step, above-mentioned computer includes electronics
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 loudspeaker plug-hole detection method, which is characterized in that be applied to wireless headset, the wireless headset includes the first nothing
Line earphone and the second wireless headset, first wireless headset includes loudspeaker, first wireless headset and second nothing
Line earphone includes at least one microphone, which comprises
The first audio of default frequency range is issued by the loudspeaker of first wireless headset;
In preset period of time, the second audio in the default frequency range is received by least one described microphone;
Determine that the loudspeaker of 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
The loudspeaker of earphone is in plug-hole state, comprising:
Determine that the loudspeaker is in the plug-hole state according to the parameter preset of second audio, the parameter preset includes
Below any one or more: volume, tone color, frequency, energy, amplitude.
3. according to the method described in claim 2, it is characterized in that, the parameter preset be volume and tone color, it is described according to institute
The parameter preset for stating the second audio determines that the loudspeaker is in the plug-hole state, comprising:
Determine the difference between the volume of second audio and the volume of first audio;
When the difference is greater than preset threshold, the tone color of second audio and the tone color of first audio are compared
It is right;
When the tone color of second audio is compared unsuccessfully with the tone color of first audio, the described first wireless ear is determined
The loudspeaker of machine is in the plug-hole state.
4. method according to claim 1-3, which is characterized in that the default frequency range is the frequency where ultrasonic wave
Section, the loudspeaker by first wireless headset issue the first audio of default frequency range, comprising:
First audio of supersonic band is issued by the loudspeaker of first wireless headset.
5. according to the method described in claim 4, it is characterized in that, wireless headset communication connection charging box, described to pass through
The loudspeaker of first wireless headset issues the first audio of supersonic band, comprising:
When detecting that first wireless headset is located in the charging box, and the box cover of the charging box is in close state
When, first audio of the supersonic band is issued by the loudspeaker.
6. method according to claim 1-5, which is characterized in that described according to second audio determination
The loudspeaker of first wireless headset is in after plug-hole state, the method also includes:
When the motion state for detecting first wireless headset is changed to accelerated motion state by stationary state, described in determination
The running track of first wireless headset;
When detecting the wearing operation for first wireless headset according to the running track, it is wireless to promote described first
The volume of loudspeaker when earphone playing audio-fequency data.
7. according to the method described in claim 6, it is characterized in that, described promote the first wireless headset playing audio-fequency data
After the volume of Shi Suoshu loudspeaker, the method also includes:
Detect whether first wireless headset is main earphone;
When detecting first wireless headset is the main earphone, switching first wireless headset is from earphone, switching
Second wireless headset is the main earphone.
8. a kind of loudspeaker plug-hole detection device, which is characterized in that be applied to wireless headset, the wireless headset includes the first nothing
Line earphone and the second wireless headset, first wireless headset includes loudspeaker, first wireless headset and second nothing
Line earphone includes at least one microphone, and the loudspeaker plug-hole detection device includes transmitting unit, receiving unit and determines single
Member, in which:
The transmitting unit issues the first audio of default frequency range for the loudspeaker by 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;
The determination unit, for determining that the loudspeaker of first wireless headset is in plug-hole according to second audio
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-7 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 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810840414.3A CN109121059A (en) | 2018-07-26 | 2018-07-26 | Loudspeaker plug-hole detection method and Related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810840414.3A CN109121059A (en) | 2018-07-26 | 2018-07-26 | Loudspeaker plug-hole detection method and Related product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109121059A true CN109121059A (en) | 2019-01-01 |
Family
ID=64863640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810840414.3A Pending CN109121059A (en) | 2018-07-26 | 2018-07-26 | Loudspeaker plug-hole detection method and Related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109121059A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110677757A (en) * | 2019-09-09 | 2020-01-10 | Oppo广东移动通信有限公司 | Wireless earphone electric quantity display method and device and electronic equipment |
CN112218196A (en) * | 2019-07-10 | 2021-01-12 | Oppo广东移动通信有限公司 | Earphone and earphone control method |
CN112533097A (en) * | 2019-09-19 | 2021-03-19 | Oppo广东移动通信有限公司 | Earphone in-box detection method, earphone box and storage medium |
CN113015049A (en) * | 2019-12-19 | 2021-06-22 | Oppo广东移动通信有限公司 | Switch detection method, wireless earphone, earphone box and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140369512A1 (en) * | 2013-06-14 | 2014-12-18 | Research In Motion Limited | Obstructed port audio signal alteration |
CN105323363A (en) * | 2014-06-30 | 2016-02-10 | 中兴通讯股份有限公司 | Method and device for selecting main microphones |
CN106878910A (en) * | 2017-03-03 | 2017-06-20 | 广东欧珀移动通信有限公司 | Control method of speaking and electronic installation |
CN106959838A (en) * | 2017-03-03 | 2017-07-18 | 广东欧珀移动通信有限公司 | Audio control method, audio control apparatus and electronic installation |
WO2017185342A1 (en) * | 2016-04-29 | 2017-11-02 | 华为技术有限公司 | Method and apparatus for determining voice input anomaly, terminal, and storage medium |
CN107623362A (en) * | 2017-11-08 | 2018-01-23 | 深圳市沃特沃德股份有限公司 | Wireless headset charging box and its control method and device |
CN107705804A (en) * | 2017-09-26 | 2018-02-16 | 维沃移动通信有限公司 | A kind of audible device condition detection method and mobile terminal |
-
2018
- 2018-07-26 CN CN201810840414.3A patent/CN109121059A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140369512A1 (en) * | 2013-06-14 | 2014-12-18 | Research In Motion Limited | Obstructed port audio signal alteration |
CN105323363A (en) * | 2014-06-30 | 2016-02-10 | 中兴通讯股份有限公司 | Method and device for selecting main microphones |
WO2017185342A1 (en) * | 2016-04-29 | 2017-11-02 | 华为技术有限公司 | Method and apparatus for determining voice input anomaly, terminal, and storage medium |
CN106878910A (en) * | 2017-03-03 | 2017-06-20 | 广东欧珀移动通信有限公司 | Control method of speaking and electronic installation |
CN106959838A (en) * | 2017-03-03 | 2017-07-18 | 广东欧珀移动通信有限公司 | Audio control method, audio control apparatus and electronic installation |
CN107705804A (en) * | 2017-09-26 | 2018-02-16 | 维沃移动通信有限公司 | A kind of audible device condition detection method and mobile terminal |
CN107623362A (en) * | 2017-11-08 | 2018-01-23 | 深圳市沃特沃德股份有限公司 | Wireless headset charging box and its control method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112218196A (en) * | 2019-07-10 | 2021-01-12 | Oppo广东移动通信有限公司 | Earphone and earphone control method |
CN110677757A (en) * | 2019-09-09 | 2020-01-10 | Oppo广东移动通信有限公司 | Wireless earphone electric quantity display method and device and electronic equipment |
CN112533097A (en) * | 2019-09-19 | 2021-03-19 | Oppo广东移动通信有限公司 | Earphone in-box detection method, earphone box and storage medium |
CN113015049A (en) * | 2019-12-19 | 2021-06-22 | Oppo广东移动通信有限公司 | Switch detection method, wireless earphone, earphone box and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9344793B2 (en) | Audio apparatus and methods | |
CN112584293B (en) | Microphone hole blockage detection method and related product | |
CN109121059A (en) | Loudspeaker plug-hole detection method and Related product | |
CN201590889U (en) | Stereosonic bluetooth headset | |
CN105280195A (en) | Method and device for processing speech signal | |
CN106254993B (en) | A kind of earphone left and right acoustic channels self-adaptation control method and device | |
CN105049977A (en) | Automatic earphone volume adjusting method and device | |
CN103718568A (en) | A method and system for improving voice communication experience in mobile communication devices | |
CN109104684A (en) | Microphone plug-hole detection method and Related product | |
WO2020019857A1 (en) | Microphone hole blocking detection method and related product | |
WO2020019843A1 (en) | Microphone hole blockage detection method and related product | |
CN106293599A (en) | A kind of output control method, electronic equipment and output system | |
CN109121046A (en) | Plug-hole processing method and Related product | |
CN107864415B (en) | Speaker and audio frequency apparatus share the control method and device of microphone | |
WO2015026859A1 (en) | Audio apparatus and methods | |
CN114333886A (en) | Audio processing method and device, electronic equipment and storage medium | |
CN109121042A (en) | Voice data processing method and Related product | |
CN105554230A (en) | Voice communication circuit and hand-held terminal | |
CN110035346A (en) | Communication means, device, bluetooth headset and the storage medium of bluetooth headset | |
CN105657607A (en) | Audio terminal device | |
CN201717926U (en) | Active denoising system | |
CN210670518U (en) | Noise reduction earmuff and talkback earphone | |
CN115134711A (en) | Noise reduction method and device for audio playing equipment, electronic equipment and storage medium | |
CN113115164A (en) | Conversation bluetooth headset based on ANC falls and makes an uproar | |
WO2020019822A1 (en) | Microphone hole blockage detecting method and related product |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190101 |