US20210144500A1 - Method for Detecting Blocking of Microphone and Related Products - Google Patents
Method for Detecting Blocking of Microphone and Related Products Download PDFInfo
- Publication number
- US20210144500A1 US20210144500A1 US17/155,841 US202117155841A US2021144500A1 US 20210144500 A1 US20210144500 A1 US 20210144500A1 US 202117155841 A US202117155841 A US 202117155841A US 2021144500 A1 US2021144500 A1 US 2021144500A1
- Authority
- US
- United States
- Prior art keywords
- wireless earphone
- electric quantity
- audio
- microphone
- wireless
- 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.)
- Granted
Links
- 230000000903 blocking effect Effects 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000004044 response Effects 0.000 claims abstract description 29
- 238000004891 communication Methods 0.000 claims description 26
- 230000009471 action Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 13
- 238000013497 data interchange Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 description 22
- 230000009286 beneficial effect Effects 0.000 description 16
- 230000006870 function Effects 0.000 description 14
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000007613 environmental effect Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 1
- 238000000429 assembly Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
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/004—Monitoring arrangements; Testing arrangements for microphones
- H04R29/005—Microphone arrays
-
- 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
-
- 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/004—Monitoring arrangements; Testing arrangements for microphones
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/51—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1016—Earpieces of the intra-aural type
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1025—Accumulators or arrangements for charging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
- H04R1/32—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
- H04R1/40—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers
- H04R1/406—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/005—Circuits for transducers, loudspeakers or microphones for combining the signals of two or more microphones
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/041—Indexing scheme relating to G06F3/041 - G06F3/045
- G06F2203/04105—Pressure sensors for measuring the pressure or force exerted on the touch surface without providing the touch position
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2420/00—Details of connection covered by H04R, not provided for in its groups
- H04R2420/07—Applications of wireless loudspeakers or wireless microphones
Definitions
- This disclosure relates to the field of wireless earphone technology, and more particularly to a method for detecting blocking of a microphone and related products.
- earphones With wide spread and rapid development of mobile terminals (e.g., smart phones), various earphones are often used to listen to media. Moreover, an earphone cable of a wired earphone is often damaged, which results to a short life and high cost of the earphone, and wireless earphones come into being.
- Implementations provide a method for detecting blocking of a microphone and related products.
- a method for detecting blocking of a microphone is provided.
- the method is applicable to a wireless earphone that is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone.
- the method includes the following.
- a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone are determined when both the first wireless earphone and the second wireless earphone are worn.
- a first operation and a second operation are performed in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone.
- a reference parameter of the second audio is determined.
- the first wireless earphone is determined to be blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- an apparatus for detecting blocking of a microphone is provided.
- the apparatus is applicable to a wireless earphone that is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone.
- the apparatus includes a determining unit, a receiving unit, and a detecting unit.
- the determining unit is configured to determine a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone when both the first wireless earphone and the second wireless earphone are worn.
- the receiving unit is configured to perform a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone.
- the determining unit is further configured to determine a reference parameter of the second audio.
- the detecting unit is configured to determine that the first wireless earphone is blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- a wireless earphone in a third aspect, includes a processor, a memory, and one or more programs stored in the memory and executed by the processor.
- the one or more programs include instructions for performing the method described in the first aspect.
- a non-transitory computer-readable storage medium configured to store computer programs for electronic data interchange (EDI).
- the computer programs include instructions for performing some or all operations of the method described in the first aspect.
- a computer program product in a fifth aspect, includes a non-transitory computer-readable storage medium that stores computer programs.
- the computer programs are operable with a computer to execute some or all operations of the method described in the first aspect.
- the computer program product may be a software installation package.
- FIG. 1 is a schematic structural diagram of a wireless earphone system according to implementations.
- FIG. 2 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations.
- FIG. 3 is a schematic flowchart of a method for detecting blocking of a microphone according to other implementations.
- FIG. 4 is a schematic flowchart of a method for detecting blocking of a microphone according to other implementations.
- FIG. 5 is a schematic structural diagram of a wireless earphone according to implementations.
- FIG. 6A is a block diagram illustrating functional units of an apparatus for detecting blocking of a microphone according to implementations.
- FIG. 6B is a block diagram illustrating functional units of an apparatus for detecting blocking of a microphone according to other implementations.
- Implementations of the present disclosure provide a wireless earphone system 100 .
- the system includes a mobile terminal 101 , a first wireless earphone 102 , a second wireless earphone 103 , and a charging box (i.e., a charging case) 104 .
- the first wireless earphone 102 and the second wireless earphone 103 can support wired or wireless charging.
- the first wireless earphone 102 and the second wireless earphone 103 can be charged in the charging box 104 .
- the system can adopt any one of the following communication mechanisms.
- a first communication link is established between the mobile terminal 101 and the first wireless earphone 102
- a second communication link is established between the first wireless earphone 102 and the second wireless earphone 103 , that is, communications between the first wireless earphone 102 and the mobile terminal 101 and between the second wireless earphone 103 and the mobile terminal 101 adopt a master-slave communication mechanism (specifically, a Bluetooth protocol can be used).
- a first communication link is established between the mobile terminal 101 and the first wireless earphone 102
- a second communication link is established between the mobile terminal 101 and the second wireless earphone 103
- both the first wireless earphone 102 and the second wireless earphone 103 are master earphones which can communicate with the mobile terminal 101 directly.
- a master earphone can directly establish a communication link with the mobile terminal 101 and exchange data of a preset type with the mobile terminal 101 .
- a slave earphone can exchange data of the preset type with the mobile terminal 101 through a transfer of the master earphone.
- Data of the preset type includes at least one of media data and call data, where the media data is at least one of audio data and video data of the mobile terminal 101 other than call voice data, and the call data is the call voice data of the mobile terminal 101 .
- communication connectivity between the charging box 104 and any of the first wireless earphone 102 and the second wireless earphone 103 is the same as that between the mobile terminal 101 and any of the first wireless earphone 102 and the second wireless earphone 103 , which is not repeated herein.
- the first wireless earphone 102 and the second wireless earphone 103 may be Bluetooth wireless earphones and the like.
- the mobile terminal 101 may include various handheld devices, in-vehicle devices, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), computing devices that have wireless communication functions or other processing devices connected to a wireless modem, as well as various forms of user equipments (UE), mobile stations (MS), terminal devices, and the like.
- UE user equipment
- MS mobile stations
- terminal devices and the like.
- FIG. 2 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations.
- the method is applicable to a wireless earphone that is connected with a mobile terminal wirelessly, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the second wireless earphone has a second microphone.
- the method for detecting blocking of a microphone includes the following.
- the wireless earphone determines a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone when both the first wireless earphone and the second wireless earphone are worn.
- the wireless earphone can determine whether the first wireless earphone and the second wireless earphone are worn through multiple proximity sensors or pressure sensors by detecting contact with an auricle, or determine whether the first wireless earphone and the second wireless earphone are worn according to gesture parameters of the first wireless earphone and the second wireless earphone, or determine whether the first wireless earphone and the second wireless earphone are worn by detecting communication identifiers which are indicative of successful communications between both the first wireless earphone and the second wireless earphone and the mobile terminal, or determine whether the first wireless earphone and the second wireless earphone are worn by detecting a music playback message (which is used to instruct the first wireless earphone and the second wireless earphone to play music), which are not limited herein.
- a music playback message which is used to instruct the first wireless earphone and the second wireless earphone to play music
- the wireless earphone performs a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone.
- the second microphone of the mobile phone is determined to be not blocked in advance, and therefore a parameter of the second audio can be seen as the reference parameter.
- the first audio and the second audio may be user's voice data to be obtained, audio from a speaker of the wireless earphone to be obtained, or the like, which is not limited herein.
- the wireless earphone determines a reference parameter of the second audio.
- the reference parameter of the second audio can be determined by the first wireless earphone or the second wireless earphone.
- the reference parameter of the second audio is determined by the second wireless earphone, since the process of obtaining the first audio through the first microphone may consume more power than the process of determining the reference parameter of the second audio, the first wireless earphone with a higher electric quantity rather than two wireless earphones is used to obtain voice data to detect blocking, the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- the second earphone can send the reference parameter determined to the first earphone for determining whether the first wireless earphone is blocked.
- the first wireless earphone with a higher electric quantity is selected to obtain the first voice data to detect blocking and determine the reference parameter of the second audio, which is also beneficial to improve overall usage time of the wireless earphone.
- the reference parameter includes at least one of: volume, energy, timbre, and audio frequency, which is not limited herein.
- Audio is a kind of a sound wave
- the sound wave is a kind of a mechanical wave. Therefore, the sound wave itself has energy.
- the energy can be calculated according to a density of a propagation medium, a frequency, amplitude, and a wave speed, that is, energy of sound per unit area can be represented by an average of energy flowing through per unit area of a medium per unit time.
- the wireless earphone determines that the first wireless earphone is blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- the first wireless earphone can be determined to be blocked by the first wireless earphone or the second wireless earphone.
- a matching degree between the first parameter and the reference parameter is less than a preset threshold matching degree, or a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, which is not limited herein.
- the wireless earphone when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked.
- the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection.
- the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection.
- the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- the first parameter of the first audio is detected not to match the reference parameter by detecting that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- the preset threshold difference may be an empirical value, which is preset in the wireless earphone by a technical developer before delivery, which is not limited here.
- the wireless earphone determines that the first parameter of the first audio does not match the reference parameter by comparing the difference between the first parameter and the reference parameter with the preset threshold difference, which is simple in algorithm and is beneficial to improve speed of blocking detection.
- the first operation and the second operation are performed in parallel as follows.
- the second electric quantity is compared with a third electric quantity of the mobile terminal.
- the first operation and the second operation are performed in parallel in response to determining that the second electric quantity is less than the third electric quantity.
- both the second wireless earphone and the mobile terminal can be selected to obtain the reference parameter.
- the second mobile terminal is selected to obtain the reference parameter when the third electric quantity is greater than the second electric quantity, which is conducive to realizing power balance between the wireless earphone and the mobile terminal and increasing usage time of both the wireless earphone and the mobile terminal.
- the method further includes the following before the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone are determined.
- An acquisition instruction for first audio data is received.
- the first audio and the second audio are part of the first audio data and the method further includes the following after the first wireless earphone is determined to be blocked when the second wireless earphone is not blocked.
- the first microphone is disabled and to a third microphone of the second wireless earphone is switched to obtain third audio, where the third audio is audio data other than the first audio in the first audio data.
- the first audio and the second audio are part of the first audio data, for example, the first audio may the same as the second audio or the first audio may be different from the second audio.
- the first audio data is voice data to be obtained by the wireless earphone.
- the first audio data may be audio data that needs to be obtained by a microphone and sent to a peer when a voice or video chat application is used, or audio data that needs to be obtained when the user communicates with a teammate in the process of using a game application, which is not limited herein.
- the acquisition instruction may be an instruction triggered by the mobile terminal being operated when a microphone is required to record audio data.
- the instruction may be a double-click or long press on a designated area of a touch screen, etc., and sent from the mobile terminal to the wireless earphone.
- the acquisition instruction may be an instruction triggered by the wireless earphone being operated the microphone is required to record voice data.
- the instruction may be tapping the wireless earphone or double-clicking the wireless earphone, etc., which is not limited herein.
- the first audio and the second audio are part of the audio data, that is, the data amount of the first audio and the second audio can meet the data amount of blocking detection, which may be first 10 ms or the first 20 ms of the audio data, which is not limited herein.
- the wireless earphone when the wireless earphone detects the acquisition instruction for first audio data, the wireless earphone starts blocking detection after the wireless earphone obtains part of the data, which is beneficial to improve real-time performance of blocking detection.
- the second wireless earphone is switched in time to obtain following voice data, which is beneficial to improve timeliness of implementing measures after detecting that a microphone-hole is blocked.
- the method further includes the following after the first wireless earphone is determined to be blocked.
- a fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone are determined in response to receiving an acquisition instruction for second audio data.
- the second audio data is obtained through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity.
- the wireless earphone detects that the first microphone of the first wireless earphone is blocked, when the acquisition instruction for the second audio data is detected, the fourth electric quantity of the mobile terminal and the fifth electric quantity of the second wireless earphone are determined respectively, the mobile terminal with a greater electric quantity is used to obtain the second audio data, which is beneficial to improve flexibility of obtaining the second audio data, and intelligence of implementing measures after detecting that a microphone-hole is blocked.
- the method further includes the following after the first wireless earphone is determined to be blocked.
- a notification message is sent to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box.
- the notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power.
- the notification message may be a communication identifier, for example, communication identifier ‘1’ is indicative of blocking, and communication identifier ‘2’ is indicative of non-blocking, which is not limited herein.
- communication identifier ‘1’ is indicative of blocking
- communication identifier ‘2’ is indicative of non-blocking, which is not limited herein.
- the wireless earphone reports the notification message to the charging box after determining that the first microphone is blocked, so that when the charging box charges the first wireless earphone and the second wireless earphone at the same time, the charging power allocated to the second wireless earphone is greater than the charging power allocated to the first wireless earphone due to the second wireless earphone being used more, which is beneficial to increase usage time of the second wireless earphone in a normal state.
- FIG. 3 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations.
- the method is applicable to a wireless earphone that is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone.
- the method for detecting blocking of a microphone includes the following.
- the wireless earphone determines a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone
- the wireless earphone compares the second electric quantity with a third electric quantity of the mobile terminal.
- the wireless earphone performs a first operation and a second operation in parallel in response to determining that the second electric quantity is less than the third electric quantity, where the first operation is to obtain first audio through the first microphone, the second operation is to obtain second audio through the second microphone, and the first audio and the second audio are part of the first audio data.
- the wireless earphone determines a reference parameter of the second audio.
- the wireless earphone determines that the first wireless earphone is blocked in response to detecting that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- the wireless earphone disables the first microphone and switches to a third microphone of the second wireless earphone to obtain third audio, where the third audio is audio data other than the first audio in the first audio data.
- the wireless earphone when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked.
- the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection.
- the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection.
- the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- the wireless earphone when the wireless earphone detects the acquisition instruction for first audio data, the wireless earphone starts blocking detection after the wireless earphone obtains part of the data, which is beneficial to improve real-time performance of blocking detection.
- the second wireless earphone is switched in time to obtain following voice data, which is beneficial to improve timeliness of implementing measures after detecting that the microphone-hole is blocked.
- both the second wireless earphone and the mobile terminal can be selected to obtain the reference parameter.
- the mobile phone is selected to obtain the reference parameter when the second electric quantity is less than the third electric quantity, which is conducive to realizing power balance between the wireless earphone and the mobile terminal and increasing usage time of both the wireless earphone and the mobile terminal.
- the wireless earphone determines that the first parameter of the first audio does not match the reference parameter by comparing the difference between the first parameter and the reference parameter with the preset threshold difference, which is simple in algorithm and is beneficial to improve speed of blocking detection.
- FIG. 4 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations. As illustrated in FIG. 4 , the method for detecting blocking of a microphone includes the following.
- the wireless earphone determines a first electric quantity of a first wireless earphone and a second electric quantity of a second wireless earphone when both the first wireless earphone and the second wireless earphone are worn.
- the wireless earphone performs a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone.
- the wireless earphone determines a reference parameter of the second audio.
- the wireless earphone determines that the first wireless earphone is blocked in response to detecting that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- the wireless earphone determines a fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone in response to receiving an acquisition instruction for second audio data.
- the wireless earphone obtains the second audio data through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity.
- the wireless earphone sends a notification message to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box.
- the notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power.
- the wireless earphone when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked.
- the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection.
- the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection.
- the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- the wireless earphone detects that the first microphone of the first wireless earphone is blocked
- the acquisition instruction for the second audio data is detected
- the fourth electric quantity of the mobile terminal and the fifth electric quantity of the second wireless earphone are determined respectively
- the mobile terminal with a greater electric quantity is used to obtain the second audio data, which is beneficial to improve flexibility of obtaining the second audio data, and intelligence of implementing measures after detecting that a microphone-hole is blocked.
- the wireless earphone reports the notification message to the charging box after determining that the first microphone is blocked, so that when the charging box charges the first wireless earphone and the second wireless earphone at the same time, the charging power allocated to the second wireless earphone is greater than the charging power allocated to the first wireless earphone due to the second wireless earphone being used more, which is beneficial to increase usage time of the second wireless earphone in a normal state.
- FIG. 5 is a schematic structural diagram of a wireless earphone 500 according to implementations.
- the wireless earphone is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, the second wireless earphone has a third microphone, and the mobile terminal has a second microphone.
- the wireless earphone 500 includes a processor 501 , a memory 502 , a communication interface 503 , and one or more programs 504 stored in the memory 502 and executed by the processor 501 .
- the one or more programs 504 include instructions for performing the following operations.
- a first operation and a second operation are performed in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is at least one of: to obtain first audio through the first microphone or to obtain first audio through the third microphone, and the second operation is to obtain second audio through the second microphone.
- a reference parameter of the second audio is determined. At least one of the first wireless earphone or the second wireless earphone is determined to be blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- the wireless earphone performs the first operation and the second operation in parallel, and the wireless earphone then determines the reference parameter of the second audio.
- the wireless earphone determines that at least one of the first wireless earphone or the second wireless earphone is blocked.
- the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection.
- the second microphone of the mobile terminal obtains the second audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection.
- the one or more programs further comprise instructions for performing the following operations.
- a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone are determined when both the first wireless earphone and the second wireless earphone are worn.
- the one or more programs 504 include instructions for performing the first operation and the second operation in parallel when the first electric quantity is greater than the second electric quantity, wherein the first operation is to obtain first audio through the first microphone.
- the one or more programs comprise instructions for determining that the first wireless earphone is blocked.
- the one or more programs 504 include instructions for performing the following operations.
- a difference between the first parameter of the first audio and the reference parameter is detected to be greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- the one or more programs 504 include instructions for performing the following operations.
- the second electric quantity is compared with a third electric quantity of the mobile terminal when the first electric quantity is greater than the second electric quantity.
- the first operation and the second operation are performed in parallel in response to determining that the second electric quantity is greater than the third electric quantity.
- the one or more programs 504 further include instructions for performing the following operations.
- An acquisition instruction for first audio data is received before the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone are determined.
- the first audio and the second audio are part of the first audio data.
- the one or more programs 504 further include instructions for performing the following operations. After the first wireless earphone is determined to be blocked, the first microphone is disabled and a third microphone of the second wireless earphone is switched to obtain third audio, where the third audio is audio data other than the first audio in the first audio data.
- the one or more programs 504 further include instructions for performing the following operations. After the first wireless earphone is determined to be blocked, a fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone are determined in response to receiving an acquisition instruction for second audio data. The second audio data is obtained through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity.
- the one or more programs 504 further include instructions for performing the following operations.
- a notification message is sent to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box.
- the notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power.
- the electronic device includes hardware structures and/or software modules corresponding to the respective functions.
- the present disclosure can be implemented in hardware or a combination of the hardware and computer software. Whether a function is implemented by way of the hardware or hardware driven by the computer software depends on the particular application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each particular application, but such implementations should not be considered as beyond the scope of the present disclosure.
- each functional unit may be divided according to each function, and two or more functions may be integrated in one processing unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional units. It should be noted that the division of units in the implementations is schematic, and is merely a logical function division, and there may be other division manners in actual implementation.
- FIG. 6 is a block diagram illustrating functional units of an apparatus 600 for detecting blocking of a microphone according to implementations.
- the apparatus 600 for detecting blocking of a microphone is applicable to a wireless earphone, the wireless earphone is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone.
- the apparatus 600 for detecting blocking of a microphone includes a determining unit 601 , a receiving unit 602 , and a detecting unit 603 .
- the determining unit 601 is configured to determine a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone when both the first wireless earphone and the second wireless earphone are worn.
- the receiving unit 602 is configured to perform a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone.
- the determining unit 601 is further configured to determine a reference parameter of the second audio.
- the detecting unit 603 is configured to determine that the first wireless earphone is blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- the wireless earphone when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked.
- the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection.
- the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection.
- the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- the detecting unit 603 is configured to detect that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- the receiving unit 602 is configured to: compare the second electric quantity with a third electric quantity of the mobile terminal when the first electric quantity is greater than the second electric quantity; perform the first operation and the second operation in parallel in response to determining that the second electric quantity is greater than the third electric quantity.
- the apparatus 600 for detecting blocking of a microphone further includes a processing unit 604 .
- the detecting unit 603 is further configured to receive an acquisition instruction for first audio data before determining the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone.
- the first audio and the second audio are part of the first audio data.
- the processing unit 604 is configured to disable the first microphone and switch to a third microphone of the second wireless earphone to obtain third audio after determining that the first wireless earphone is blocked, where the third audio is audio data other than the first audio in the first audio data.
- the apparatus 600 for detecting blocking of a microphone further includes a processing unit 604 .
- the processing unit 604 is configured to determine a fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone in response to receiving an acquisition instruction for second audio data after the first wireless earphone is determined to be blocked; obtain the second audio data through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity.
- the apparatus 600 for detecting blocking of a microphone further includes a processing unit 604 .
- the processing unit 604 is configured to send a notification message to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box after the first wireless earphone is determined to be blocked.
- the notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power.
- the receiving unit 602 may be a microphone or a transceiver
- the determining unit 601 may be a microphone, a processor, or a sensor
- the detecting unit 603 may be a processor, a transceiver, or a sensor
- the processing unit 604 may be a processor.
- Implementations further provide a computer storage medium.
- the computer storage medium is configured to store computer programs for electronic data interchange (EDI) which, when executed, are operable with a computer to perform some or all operations of any one of the foregoing method implementations.
- EDI electronic data interchange
- Implementations further provide a computer program product.
- the computer program product includes a non-transitory computer-readable storage medium that stores computer programs.
- the computer programs are operable with a computer to execute some or all operations of any one of the foregoing method implementations.
- the apparatuses disclosed in implementations herein may also be implemented in various other manners.
- the above apparatus implementations are merely illustrative, e.g., the division of units is only a division of logical functions, and there may exist other manners of division in practice, e.g., multiple units or assemblies may be combined or may be integrated into another system, or some features may be ignored or skipped.
- the coupling or direct coupling or communication connection as illustrated or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, or otherwise.
- Separated units as illustrated may or may not be physically separated.
- Components or parts displayed as units may or may not be physical units, and may reside at one location or may be distributed to multiple networked units. Some or all of the units may be selectively adopted according to practical needs to achieve desired objectives of the disclosure.
- Various functional units described in implementations herein may be integrated into one processing unit or may be present as a number of physically separated units, and two or more units may be integrated into one.
- the integrated unit may take the form of hardware or a software functional unit.
- the integrated units are implemented as software functional units and sold or used as standalone products, they may be stored in a computer readable storage medium.
- the computer software products can be stored in a storage medium and may include multiple instructions that, when executed, can cause a computing device, e.g., a personal computer, a server, a network device, etc, to execute some or all operations of the methods described in various implementations.
- the above storage medium may include various kinds of media that can store program codes, such as a universal serial bus (USB) flash disk, a read only memory (ROM), a random access memory (RAM), a mobile hard drive, a magnetic disk, or an optical disk.
- the program may be stored in a computer-readable memory, which may include a flash memory, a ROM, a RAM, a magnetic disk, an optical disk, and so on.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Acoustics & Sound (AREA)
- Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Multimedia (AREA)
- Telephone Function (AREA)
Abstract
Description
- This application is a continuation of International Application No. PCT/CN2019/088021, filed on May 22, 2019, which claims priority to Chinese Patent Application No. 201810841699.2, filed on Jul. 26, 2018, the entire disclosures of which are incorporated herein by reference.
- This disclosure relates to the field of wireless earphone technology, and more particularly to a method for detecting blocking of a microphone and related products.
- With wide spread and rapid development of mobile terminals (e.g., smart phones), various earphones are often used to listen to media. Moreover, an earphone cable of a wired earphone is often damaged, which results to a short life and high cost of the earphone, and wireless earphones come into being.
- Currently, it is found that a hole of a microphone of a wireless earphone is often blocked, by such as dust, water droplets, etc., which results to intermittence and low volume of voice data obtained through the microphone of the wireless earphone and affects normal use of the wireless earphone.
- Implementations provide a method for detecting blocking of a microphone and related products.
- In a first aspect, a method for detecting blocking of a microphone is provided. The method is applicable to a wireless earphone that is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone. The method includes the following. A first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone are determined when both the first wireless earphone and the second wireless earphone are worn. A first operation and a second operation are performed in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone. A reference parameter of the second audio is determined. The first wireless earphone is determined to be blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- In a second aspect, an apparatus for detecting blocking of a microphone is provided. The apparatus is applicable to a wireless earphone that is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone. The apparatus includes a determining unit, a receiving unit, and a detecting unit. The determining unit is configured to determine a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone when both the first wireless earphone and the second wireless earphone are worn. The receiving unit is configured to perform a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone. The determining unit is further configured to determine a reference parameter of the second audio. The detecting unit is configured to determine that the first wireless earphone is blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- In a third aspect, a wireless earphone is provided. The wireless earphone includes a processor, a memory, and one or more programs stored in the memory and executed by the processor. The one or more programs include instructions for performing the method described in the first aspect.
- In a fourth aspect, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium is configured to store computer programs for electronic data interchange (EDI). The computer programs include instructions for performing some or all operations of the method described in the first aspect.
- In a fifth aspect, a computer program product is provided. The computer program product includes a non-transitory computer-readable storage medium that stores computer programs. The computer programs are operable with a computer to execute some or all operations of the method described in the first aspect. The computer program product may be a software installation package.
- The following will give a brief description of accompanying drawings used for describing the implementations.
-
FIG. 1 is a schematic structural diagram of a wireless earphone system according to implementations. -
FIG. 2 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations. -
FIG. 3 is a schematic flowchart of a method for detecting blocking of a microphone according to other implementations. -
FIG. 4 is a schematic flowchart of a method for detecting blocking of a microphone according to other implementations. -
FIG. 5 is a schematic structural diagram of a wireless earphone according to implementations. -
FIG. 6A is a block diagram illustrating functional units of an apparatus for detecting blocking of a microphone according to implementations. -
FIG. 6B is a block diagram illustrating functional units of an apparatus for detecting blocking of a microphone according to other implementations. - In order for those skilled in the art to better understand technical solutions of implementations, technical solutions of implementations will be described clearly and completely with reference to accompanying drawings in the implementations. Apparently, implementations hereinafter described are merely some implementations, rather than all implementations, of the disclosure. All other implementations obtained by those of ordinary skill in the art based on the implementations herein without creative efforts shall fall within the protection scope of the disclosure.
- The terms “first”, “second”, “third”, and the like used in the specification, the claims, and the accompany drawings of the disclosure are used to distinguish different objects rather than describe a particular order. The terms “include”, “include”, and “have” as well as variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus including a series of steps or units is not limited to the listed steps or units. Instead, it can optionally include other steps or units that are not listed; alternatively, other steps or units inherent to the process, method, product, or apparatus can also be included.
- The term “implementation” referred to herein means that a particular feature, structure, or character described in conjunction with the implementation may be contained in at least one implementation of the disclosure. The phrase appearing in various places in the specification does not necessarily refer to the same implementation, nor does it refer to an independent or alternative implementation that is mutually exclusive with other implementations. It is explicitly and implicitly understood by those skilled in the art that an implementation described herein may be combined with other implementations.
- Implementations of the present disclosure provide a
wireless earphone system 100. As illustrated inFIG. 1 , the system includes amobile terminal 101, a firstwireless earphone 102, a secondwireless earphone 103, and a charging box (i.e., a charging case) 104. The firstwireless earphone 102 and the secondwireless earphone 103 can support wired or wireless charging. For example, the firstwireless earphone 102 and the secondwireless earphone 103 can be charged in thecharging box 104. The system can adopt any one of the following communication mechanisms. For example, a first communication link is established between themobile terminal 101 and the firstwireless earphone 102, and a second communication link is established between the firstwireless earphone 102 and the secondwireless earphone 103, that is, communications between the firstwireless earphone 102 and themobile terminal 101 and between the secondwireless earphone 103 and themobile terminal 101 adopt a master-slave communication mechanism (specifically, a Bluetooth protocol can be used). For another example, a first communication link is established between themobile terminal 101 and the firstwireless earphone 102, and a second communication link is established between themobile terminal 101 and the secondwireless earphone 103, that is, both the firstwireless earphone 102 and the secondwireless earphone 103 are master earphones which can communicate with themobile terminal 101 directly. A master earphone can directly establish a communication link with themobile terminal 101 and exchange data of a preset type with themobile terminal 101. A slave earphone can exchange data of the preset type with themobile terminal 101 through a transfer of the master earphone. Data of the preset type includes at least one of media data and call data, where the media data is at least one of audio data and video data of themobile terminal 101 other than call voice data, and the call data is the call voice data of themobile terminal 101. Similarly, communication connectivity between the chargingbox 104 and any of thefirst wireless earphone 102 and thesecond wireless earphone 103 is the same as that between themobile terminal 101 and any of thefirst wireless earphone 102 and thesecond wireless earphone 103, which is not repeated herein. Thefirst wireless earphone 102 and thesecond wireless earphone 103 may be Bluetooth wireless earphones and the like. Themobile terminal 101 may include various handheld devices, in-vehicle devices, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), computing devices that have wireless communication functions or other processing devices connected to a wireless modem, as well as various forms of user equipments (UE), mobile stations (MS), terminal devices, and the like. For ease of description, the above-mentioned devices are collectively referred to as a mobile terminal. Hereinafter, detailed description of implementations of the present disclosure will be given below. -
FIG. 2 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations. The method is applicable to a wireless earphone that is connected with a mobile terminal wirelessly, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the second wireless earphone has a second microphone. As illustrated inFIG. 2 , the method for detecting blocking of a microphone includes the following. - S201, the wireless earphone determines a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone when both the first wireless earphone and the second wireless earphone are worn.
- The wireless earphone can determine whether the first wireless earphone and the second wireless earphone are worn through multiple proximity sensors or pressure sensors by detecting contact with an auricle, or determine whether the first wireless earphone and the second wireless earphone are worn according to gesture parameters of the first wireless earphone and the second wireless earphone, or determine whether the first wireless earphone and the second wireless earphone are worn by detecting communication identifiers which are indicative of successful communications between both the first wireless earphone and the second wireless earphone and the mobile terminal, or determine whether the first wireless earphone and the second wireless earphone are worn by detecting a music playback message (which is used to instruct the first wireless earphone and the second wireless earphone to play music), which are not limited herein.
- S202, the wireless earphone performs a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone.
- The second microphone of the mobile phone is determined to be not blocked in advance, and therefore a parameter of the second audio can be seen as the reference parameter. The first audio and the second audio may be user's voice data to be obtained, audio from a speaker of the wireless earphone to be obtained, or the like, which is not limited herein.
- S203, the wireless earphone determines a reference parameter of the second audio.
- The reference parameter of the second audio can be determined by the first wireless earphone or the second wireless earphone. When the reference parameter of the second audio is determined by the second wireless earphone, since the process of obtaining the first audio through the first microphone may consume more power than the process of determining the reference parameter of the second audio, the first wireless earphone with a higher electric quantity rather than two wireless earphones is used to obtain voice data to detect blocking, the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection. After the reference parameter of the second audio is determined by the second earphone, the second earphone can send the reference parameter determined to the first earphone for determining whether the first wireless earphone is blocked. When the reference parameter of the second audio is determined by the first wireless earphone, the first wireless earphone with a higher electric quantity is selected to obtain the first voice data to detect blocking and determine the reference parameter of the second audio, which is also beneficial to improve overall usage time of the wireless earphone. The reference parameter includes at least one of: volume, energy, timbre, and audio frequency, which is not limited herein.
- Audio is a kind of a sound wave, and the sound wave is a kind of a mechanical wave. Therefore, the sound wave itself has energy. The energy can be calculated according to a density of a propagation medium, a frequency, amplitude, and a wave speed, that is, energy of sound per unit area can be represented by an average of energy flowing through per unit area of a medium per unit time.
- S204, the wireless earphone determines that the first wireless earphone is blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- Specifically, the first wireless earphone can be determined to be blocked by the first wireless earphone or the second wireless earphone. When the wireless earphone detects that the first parameter of the first audio does not match the reference parameter, a matching degree between the first parameter and the reference parameter is less than a preset threshold matching degree, or a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, which is not limited herein.
- As can be seen, in this implementation, when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked. As such, the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection. Moreover, the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection. In addition, when both wireless earphones are worn, the first wireless earphone with a higher electric quantity rather than two wireless earphones is used to obtain voice data to detect blocking, the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- As an implementation, the first parameter of the first audio is detected not to match the reference parameter by detecting that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- The preset threshold difference may be an empirical value, which is preset in the wireless earphone by a technical developer before delivery, which is not limited here.
- It can be seen that, in this implementation, the wireless earphone determines that the first parameter of the first audio does not match the reference parameter by comparing the difference between the first parameter and the reference parameter with the preset threshold difference, which is simple in algorithm and is beneficial to improve speed of blocking detection.
- As an implementation, when the first electric quantity is greater than the second electric quantity, the first operation and the second operation are performed in parallel as follows. When the first electric quantity is greater than the second electric quantity, the second electric quantity is compared with a third electric quantity of the mobile terminal. The first operation and the second operation are performed in parallel in response to determining that the second electric quantity is less than the third electric quantity.
- It can be seen that, in this implementation, when the wireless earphone detects that the first electric quantity is greater than the second electric quantity, both the second wireless earphone and the mobile terminal can be selected to obtain the reference parameter. The second mobile terminal is selected to obtain the reference parameter when the third electric quantity is greater than the second electric quantity, which is conducive to realizing power balance between the wireless earphone and the mobile terminal and increasing usage time of both the wireless earphone and the mobile terminal.
- As an implementation, the method further includes the following before the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone are determined. An acquisition instruction for first audio data is received. The first audio and the second audio are part of the first audio data and the method further includes the following after the first wireless earphone is determined to be blocked when the second wireless earphone is not blocked. The first microphone is disabled and to a third microphone of the second wireless earphone is switched to obtain third audio, where the third audio is audio data other than the first audio in the first audio data.
- The first audio and the second audio are part of the first audio data, for example, the first audio may the same as the second audio or the first audio may be different from the second audio. The first audio data is voice data to be obtained by the wireless earphone. The first audio data may be audio data that needs to be obtained by a microphone and sent to a peer when a voice or video chat application is used, or audio data that needs to be obtained when the user communicates with a teammate in the process of using a game application, which is not limited herein.
- The acquisition instruction may be an instruction triggered by the mobile terminal being operated when a microphone is required to record audio data. The instruction may be a double-click or long press on a designated area of a touch screen, etc., and sent from the mobile terminal to the wireless earphone. Or the acquisition instruction may be an instruction triggered by the wireless earphone being operated the microphone is required to record voice data. The instruction may be tapping the wireless earphone or double-clicking the wireless earphone, etc., which is not limited herein.
- The first audio and the second audio are part of the audio data, that is, the data amount of the first audio and the second audio can meet the data amount of blocking detection, which may be first 10 ms or the first 20 ms of the audio data, which is not limited herein.
- It can be seen that, in this implementation, when the wireless earphone detects the acquisition instruction for first audio data, the wireless earphone starts blocking detection after the wireless earphone obtains part of the data, which is beneficial to improve real-time performance of blocking detection. When the first wireless earphone is detected to be blocked, the second wireless earphone is switched in time to obtain following voice data, which is beneficial to improve timeliness of implementing measures after detecting that a microphone-hole is blocked.
- As an implementation, the method further includes the following after the first wireless earphone is determined to be blocked. A fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone are determined in response to receiving an acquisition instruction for second audio data. The second audio data is obtained through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity.
- Regarding to the acquisition instruction for second audio data, reference can be made to the acquisition instruction for first audio data, which is not limited herein.
- Therefore, in this implementation, after the wireless earphone detects that the first microphone of the first wireless earphone is blocked, when the acquisition instruction for the second audio data is detected, the fourth electric quantity of the mobile terminal and the fifth electric quantity of the second wireless earphone are determined respectively, the mobile terminal with a greater electric quantity is used to obtain the second audio data, which is beneficial to improve flexibility of obtaining the second audio data, and intelligence of implementing measures after detecting that a microphone-hole is blocked.
- As an implementation, the method further includes the following after the first wireless earphone is determined to be blocked. A notification message is sent to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box. The notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power.
- The notification message may be a communication identifier, for example, communication identifier ‘1’ is indicative of blocking, and communication identifier ‘2’ is indicative of non-blocking, which is not limited herein. When both the first wireless earphone and the second wireless earphone are charged in the charging box, during the same charging period, the first wireless earphone with a greater charging power being charged will get more power.
- It can be seen that, in this implementation, the wireless earphone reports the notification message to the charging box after determining that the first microphone is blocked, so that when the charging box charges the first wireless earphone and the second wireless earphone at the same time, the charging power allocated to the second wireless earphone is greater than the charging power allocated to the first wireless earphone due to the second wireless earphone being used more, which is beneficial to increase usage time of the second wireless earphone in a normal state.
- Similar to implementations illustrated in
FIG. 2 ,FIG. 3 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations. The method is applicable to a wireless earphone that is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone. As illustrated inFIG. 3 , the method for detecting blocking of a microphone includes the following. - S301, when both the first wireless earphone and the second wireless earphone are worn and an acquisition instruction for first audio data is received, the wireless earphone determines a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone
- S302, when the first electric quantity is greater than the second electric quantity, the wireless earphone compares the second electric quantity with a third electric quantity of the mobile terminal.
- S303, the wireless earphone performs a first operation and a second operation in parallel in response to determining that the second electric quantity is less than the third electric quantity, where the first operation is to obtain first audio through the first microphone, the second operation is to obtain second audio through the second microphone, and the first audio and the second audio are part of the first audio data.
- S304, the wireless earphone determines a reference parameter of the second audio.
- S305, the wireless earphone determines that the first wireless earphone is blocked in response to detecting that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- S306, the wireless earphone disables the first microphone and switches to a third microphone of the second wireless earphone to obtain third audio, where the third audio is audio data other than the first audio in the first audio data.
- As can be seen, in this implementation, when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked. As such, the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection. Moreover, the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection. In addition, when both wireless earphones are worn, the first wireless earphone with a higher electric quantity rather than two wireless earphones is used to obtain voice data to detect blocking, the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- In addition, when the wireless earphone detects the acquisition instruction for first audio data, the wireless earphone starts blocking detection after the wireless earphone obtains part of the data, which is beneficial to improve real-time performance of blocking detection. When the first wireless earphone is detected to be blocked, the second wireless earphone is switched in time to obtain following voice data, which is beneficial to improve timeliness of implementing measures after detecting that the microphone-hole is blocked.
- In addition, when the wireless earphone detects that the first electric quantity is greater than the second electric quantity, both the second wireless earphone and the mobile terminal can be selected to obtain the reference parameter. The mobile phone is selected to obtain the reference parameter when the second electric quantity is less than the third electric quantity, which is conducive to realizing power balance between the wireless earphone and the mobile terminal and increasing usage time of both the wireless earphone and the mobile terminal.
- In addition, the wireless earphone determines that the first parameter of the first audio does not match the reference parameter by comparing the difference between the first parameter and the reference parameter with the preset threshold difference, which is simple in algorithm and is beneficial to improve speed of blocking detection.
- Similar to implementations illustrated in
FIG. 2 ,FIG. 4 is a schematic flowchart of a method for detecting blocking of a microphone according to implementations. As illustrated inFIG. 4 , the method for detecting blocking of a microphone includes the following. - S401, the wireless earphone determines a first electric quantity of a first wireless earphone and a second electric quantity of a second wireless earphone when both the first wireless earphone and the second wireless earphone are worn.
- S402, the wireless earphone performs a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone.
- S403, the wireless earphone determines a reference parameter of the second audio.
- S404, the wireless earphone determines that the first wireless earphone is blocked in response to detecting that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency.
- S405, the wireless earphone determines a fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone in response to receiving an acquisition instruction for second audio data.
- S406, the wireless earphone obtains the second audio data through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity.
- S407, the wireless earphone sends a notification message to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box. The notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power.
- As can be seen, in this implementation, when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked. As such, the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection. Moreover, the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection. In addition, when both wireless earphones are worn, the first wireless earphone with a higher electric quantity rather than two wireless earphones is used to obtain voice data to detect blocking, the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- In addition, after the wireless earphone detects that the first microphone of the first wireless earphone is blocked, when the acquisition instruction for the second audio data is detected, the fourth electric quantity of the mobile terminal and the fifth electric quantity of the second wireless earphone are determined respectively, the mobile terminal with a greater electric quantity is used to obtain the second audio data, which is beneficial to improve flexibility of obtaining the second audio data, and intelligence of implementing measures after detecting that a microphone-hole is blocked.
- In addition, the wireless earphone reports the notification message to the charging box after determining that the first microphone is blocked, so that when the charging box charges the first wireless earphone and the second wireless earphone at the same time, the charging power allocated to the second wireless earphone is greater than the charging power allocated to the first wireless earphone due to the second wireless earphone being used more, which is beneficial to increase usage time of the second wireless earphone in a normal state.
- Similar to implementations illustrated in
FIG. 2 ,FIG. 3 , andFIG. 4 ,FIG. 5 is a schematic structural diagram of awireless earphone 500 according to implementations. The wireless earphone is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, the second wireless earphone has a third microphone, and the mobile terminal has a second microphone. As illustrated inFIG. 5 , thewireless earphone 500 includes a processor 501, amemory 502, acommunication interface 503, and one ormore programs 504 stored in thememory 502 and executed by the processor 501. The one ormore programs 504 include instructions for performing the following operations. - A first operation and a second operation are performed in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is at least one of: to obtain first audio through the first microphone or to obtain first audio through the third microphone, and the second operation is to obtain second audio through the second microphone. A reference parameter of the second audio is determined. At least one of the first wireless earphone or the second wireless earphone is determined to be blocked in response to detecting that a first parameter of the first audio does not match the reference parameter.
- As can be seen, in this implementation, the wireless earphone performs the first operation and the second operation in parallel, and the wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that at least one of the first wireless earphone or the second wireless earphone is blocked. As such, the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection. Moreover, the second microphone of the mobile terminal obtains the second audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection.
- As an implementation, the one or more programs further comprise instructions for performing the following operations. A first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone are determined when both the first wireless earphone and the second wireless earphone are worn. In terms of performing the first operation and the second operation in parallel, the one or
more programs 504 include instructions for performing the first operation and the second operation in parallel when the first electric quantity is greater than the second electric quantity, wherein the first operation is to obtain first audio through the first microphone. In terms of determining that the at least one of the first wireless earphone or the second wireless earphone is blocked, the one or more programs comprise instructions for determining that the first wireless earphone is blocked. - As an implementation, in terms of detecting that the first parameter of the first audio does not match the reference parameter, the one or
more programs 504 include instructions for performing the following operations. A difference between the first parameter of the first audio and the reference parameter is detected to be greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency. - As an implementation, when the second wireless earphone is not blocked, in terms of performing the first operation and the second operation in parallel when the first electric quantity is greater than the second electric quantity, the one or
more programs 504 include instructions for performing the following operations. The second electric quantity is compared with a third electric quantity of the mobile terminal when the first electric quantity is greater than the second electric quantity. The first operation and the second operation are performed in parallel in response to determining that the second electric quantity is greater than the third electric quantity. - As an implementation, the one or
more programs 504 further include instructions for performing the following operations. An acquisition instruction for first audio data is received before the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone are determined. The first audio and the second audio are part of the first audio data. The one ormore programs 504 further include instructions for performing the following operations. After the first wireless earphone is determined to be blocked, the first microphone is disabled and a third microphone of the second wireless earphone is switched to obtain third audio, where the third audio is audio data other than the first audio in the first audio data. - As an implementation, the one or
more programs 504 further include instructions for performing the following operations. After the first wireless earphone is determined to be blocked, a fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone are determined in response to receiving an acquisition instruction for second audio data. The second audio data is obtained through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity. - As an implementation, the one or
more programs 504 further include instructions for performing the following operations. After the first wireless earphone is determined to be blocked, a notification message is sent to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box. The notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power. - The foregoing solution of the implementations of the present disclosure is mainly described from the viewpoint of execution process of the method. It can be understood that, in order to implement the above functions, the electronic device includes hardware structures and/or software modules corresponding to the respective functions. Those skilled in the art should readily recognize that, in combination with the example units and scheme steps described in the implementations disclosed herein, the present disclosure can be implemented in hardware or a combination of the hardware and computer software. Whether a function is implemented by way of the hardware or hardware driven by the computer software depends on the particular application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each particular application, but such implementations should not be considered as beyond the scope of the present disclosure.
- According to the implementations of the present disclosure, functional units may be divided for the first wireless earphone in accordance with the foregoing method examples. For example, each functional unit may be divided according to each function, and two or more functions may be integrated in one processing unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional units. It should be noted that the division of units in the implementations is schematic, and is merely a logical function division, and there may be other division manners in actual implementation.
-
FIG. 6 is a block diagram illustrating functional units of anapparatus 600 for detecting blocking of a microphone according to implementations. Theapparatus 600 for detecting blocking of a microphone is applicable to a wireless earphone, the wireless earphone is connected with a mobile terminal, the wireless earphone includes a first wireless earphone and a second wireless earphone, the first wireless earphone has a first microphone, and the mobile terminal has a second microphone. Theapparatus 600 for detecting blocking of a microphone includes a determiningunit 601, a receivingunit 602, and a detectingunit 603. - The determining
unit 601 is configured to determine a first electric quantity of the first wireless earphone and a second electric quantity of the second wireless earphone when both the first wireless earphone and the second wireless earphone are worn. - The receiving
unit 602 is configured to perform a first operation and a second operation in parallel when the first electric quantity is greater than the second electric quantity, where the first operation is to obtain first audio through the first microphone, and the second operation is to obtain second audio through the second microphone. - The determining
unit 601 is further configured to determine a reference parameter of the second audio. - The detecting
unit 603 is configured to determine that the first wireless earphone is blocked in response to detecting that a first parameter of the first audio does not match the reference parameter. - As can be seen, in this implementation, when both the first wireless earphone and the second wireless earphone are worn, the wireless earphone first determines the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. When the first electric quantity is greater than the second electric quantity, the wireless earphone performs the first operation and the second operation in parallel, where the first operation is to obtain the first audio through the first microphone, and the second operation is to obtain the second audio through the second microphone. The wireless earphone then determines the reference parameter of the second audio. When the first parameter of the first audio does not match the reference parameter, the wireless earphone determines that the first wireless earphone is blocked. As such, the wireless earphone can detect whether the microphone is blocked without increasing a hardware structure, therefore enriching functions of the wireless earphone and improving convenience of blocking detection. Moreover, the second microphone of the mobile terminal obtains the second audio while the first wireless earphone obtains the first audio, and a parameter of the second audio rather than a preset threshold is used as the reference parameter, so as to detect whether the first microphone of the first wireless earphone is blocked, which is helpful to eliminate environmental interference and improve accuracy of blocking detection. In addition, when both wireless earphones are worn, the first wireless earphone with a higher electric quantity rather than two wireless earphones is used to obtain voice data to detect blocking, the second wireless earphone may only need to obtain the reference parameter, which is beneficial to improve overall usage time of the wireless earphone and improve intelligence of blocking detection.
- As an implementation, in terms of detecting that the first parameter of the first audio does not match the reference parameter, the detecting
unit 603 is configured to detect that a difference between the first parameter of the first audio and the reference parameter is greater than a preset threshold difference, where the first parameter includes at least one of: volume, energy, timbre, and audio frequency. - As an implementation, when the second wireless earphone is not blocked, in terms of performing the first operation and the second operation in parallel when the first electric quantity is greater than the second electric quantity, the receiving
unit 602 is configured to: compare the second electric quantity with a third electric quantity of the mobile terminal when the first electric quantity is greater than the second electric quantity; perform the first operation and the second operation in parallel in response to determining that the second electric quantity is greater than the third electric quantity. - As an implementation, as illustrated in
FIG. 6B , theapparatus 600 for detecting blocking of a microphone further includes aprocessing unit 604. The detectingunit 603 is further configured to receive an acquisition instruction for first audio data before determining the first electric quantity of the first wireless earphone and the second electric quantity of the second wireless earphone. The first audio and the second audio are part of the first audio data. Theprocessing unit 604 is configured to disable the first microphone and switch to a third microphone of the second wireless earphone to obtain third audio after determining that the first wireless earphone is blocked, where the third audio is audio data other than the first audio in the first audio data. - As an implementation, the
apparatus 600 for detecting blocking of a microphone further includes aprocessing unit 604. Theprocessing unit 604 is configured to determine a fourth electric quantity of the mobile terminal and a fifth electric quantity of the second wireless earphone in response to receiving an acquisition instruction for second audio data after the first wireless earphone is determined to be blocked; obtain the second audio data through the mobile terminal when the fourth electric quantity is greater than the fifth electric quantity. - As an implementation, the
apparatus 600 for detecting blocking of a microphone further includes aprocessing unit 604. Theprocessing unit 604 is configured to send a notification message to a charging box in response to detecting that both the first wireless earphone and the second wireless earphone are charged in the charging box after the first wireless earphone is determined to be blocked. The notification message is for indicating that the first wireless earphone is blocked and instructing the charging box to charge the first wireless earphone with a first charging power and to charge the second wireless earphone with a second charging power, where the first charging power is less than the second charging power. - The receiving
unit 602 may be a microphone or a transceiver, the determiningunit 601 may be a microphone, a processor, or a sensor, the detectingunit 603 may be a processor, a transceiver, or a sensor, and theprocessing unit 604 may be a processor. - Implementations further provide a computer storage medium. The computer storage medium is configured to store computer programs for electronic data interchange (EDI) which, when executed, are operable with a computer to perform some or all operations of any one of the foregoing method implementations.
- Implementations further provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium that stores computer programs. The computer programs are operable with a computer to execute some or all operations of any one of the foregoing method implementations.
- It is to be noted that, for the sake of simplicity, the foregoing method implementations are described as a series of action combinations, however, it will be appreciated by those skilled in the art that the present disclosure is not limited by the sequence of actions described. According to implementations, certain steps or operations may be performed in other order or simultaneously. Besides, it will be appreciated by those skilled in the art that the implementations described in the specification are exemplary implementations and the actions and modules involved are not necessarily essential to the present disclosure.
- In the above implementations, description of each implementation has its own emphasis. For details not described in one implementation, reference can be made to related part in other implementations.
- It will be appreciated that the apparatuses disclosed in implementations herein may also be implemented in various other manners. For example, the above apparatus implementations are merely illustrative, e.g., the division of units is only a division of logical functions, and there may exist other manners of division in practice, e.g., multiple units or assemblies may be combined or may be integrated into another system, or some features may be ignored or skipped. In other respects, the coupling or direct coupling or communication connection as illustrated or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, or otherwise.
- Separated units as illustrated may or may not be physically separated. Components or parts displayed as units may or may not be physical units, and may reside at one location or may be distributed to multiple networked units. Some or all of the units may be selectively adopted according to practical needs to achieve desired objectives of the disclosure.
- Various functional units described in implementations herein may be integrated into one processing unit or may be present as a number of physically separated units, and two or more units may be integrated into one. The integrated unit may take the form of hardware or a software functional unit.
- If the integrated units are implemented as software functional units and sold or used as standalone products, they may be stored in a computer readable storage medium. Based on such an understanding, the essential technical solution, or the portion that contributes to the prior art, or all or part of the technical solution of the disclosure may be embodied as software products. The computer software products can be stored in a storage medium and may include multiple instructions that, when executed, can cause a computing device, e.g., a personal computer, a server, a network device, etc, to execute some or all operations of the methods described in various implementations. The above storage medium may include various kinds of media that can store program codes, such as a universal serial bus (USB) flash disk, a read only memory (ROM), a random access memory (RAM), a mobile hard drive, a magnetic disk, or an optical disk.
- It will be understood by those of ordinary skill in the art that all or part of the various methods of the implementations described above may be accomplished by means of a program to instruct associated hardware. The program may be stored in a computer-readable memory, which may include a flash memory, a ROM, a RAM, a magnetic disk, an optical disk, and so on.
- While the disclosure has been described in connection with certain implementations, it is to be understood that the disclosure is not to be limited to the disclosed implementations but, on the contrary, is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims, which scope is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures as is permitted under the law.
Claims (20)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810841699.2A CN109089201B (en) | 2018-07-26 | 2018-07-26 | Microphone hole blockage detection method and related product |
CN201810841699.2 | 2018-07-26 | ||
PCT/CN2019/088021 WO2020019843A1 (en) | 2018-07-26 | 2019-05-22 | Microphone hole blockage detection method and related product |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/088021 Continuation WO2020019843A1 (en) | 2018-07-26 | 2019-05-22 | Microphone hole blockage detection method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
US20210144500A1 true US20210144500A1 (en) | 2021-05-13 |
US11425520B2 US11425520B2 (en) | 2022-08-23 |
Family
ID=64830981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/155,841 Active US11425520B2 (en) | 2018-07-26 | 2021-01-22 | Method for detecting blocking of microphone and related products |
Country Status (4)
Country | Link |
---|---|
US (1) | US11425520B2 (en) |
EP (1) | EP3820168B1 (en) |
CN (1) | CN109089201B (en) |
WO (1) | WO2020019843A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114253503A (en) * | 2021-12-22 | 2022-03-29 | 维沃移动通信有限公司 | Audio data processing method and electronic equipment |
US11381951B2 (en) * | 2019-11-13 | 2022-07-05 | Airoha Technology Corp. | Wireless Bluetooth (BT) audio output system and control method thereof |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089201B (en) * | 2018-07-26 | 2020-04-17 | Oppo广东移动通信有限公司 | Microphone hole blockage detection method and related product |
CN111866644B (en) * | 2020-07-14 | 2022-02-22 | 歌尔科技有限公司 | Bluetooth headset, detection method and device of Bluetooth headset and storage medium |
CN114708884B (en) * | 2022-04-22 | 2024-05-31 | 歌尔股份有限公司 | Sound signal processing method and device, audio equipment and storage medium |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005120177A2 (en) * | 2004-06-08 | 2005-12-22 | Brother Kogyo Kabushiki Kaisha | Audio communication device |
US8374362B2 (en) * | 2008-01-31 | 2013-02-12 | Qualcomm Incorporated | Signaling microphone covering to the user |
US20110317848A1 (en) * | 2010-06-23 | 2011-12-29 | Motorola, Inc. | Microphone Interference Detection Method and Apparatus |
CN102300140B (en) * | 2011-08-10 | 2013-12-18 | 歌尔声学股份有限公司 | Speech enhancing method and device of communication earphone and noise reduction communication earphone |
EP2893718A4 (en) * | 2012-09-10 | 2016-03-30 | Nokia Technologies Oy | Detection of a microphone impairment |
EP2976897B8 (en) * | 2013-03-21 | 2020-07-01 | Cerence Operating Company | System and method for identifying suboptimal microphone performance |
CN105323363B (en) | 2014-06-30 | 2019-07-12 | 中兴通讯股份有限公司 | Select the method and device of main microphon |
US9668048B2 (en) * | 2015-01-30 | 2017-05-30 | Knowles Electronics, Llc | Contextual switching of microphones |
CN106717027A (en) * | 2015-09-01 | 2017-05-24 | 华为技术有限公司 | Voice path check method, device, and terminal |
CN105554202A (en) * | 2015-09-28 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Microphone control method and device |
CN105979053B (en) * | 2016-04-18 | 2017-09-29 | 广东欧珀移动通信有限公司 | The detection method of microphone, device and mobile terminal in mobile terminal |
CN106302905A (en) * | 2016-07-29 | 2017-01-04 | 努比亚技术有限公司 | Microphone modes changing method and mobile terminal |
CN106453970A (en) * | 2016-09-05 | 2017-02-22 | 广东欧珀移动通信有限公司 | Voice receiving quality detection method and apparatus, and terminal device |
CN106911996A (en) * | 2017-03-03 | 2017-06-30 | 广东欧珀移动通信有限公司 | The detection method of microphone state, device and terminal device |
GB201715824D0 (en) * | 2017-07-06 | 2017-11-15 | Cirrus Logic Int Semiconductor Ltd | Blocked Microphone Detection |
US10244307B1 (en) * | 2018-02-09 | 2019-03-26 | Bestechnic (Shanghai) Co., Ltd. | Communication of wireless headphones |
CN108989931B (en) * | 2018-06-19 | 2020-10-09 | 美特科技(苏州)有限公司 | Hearing protection earphone, hearing protection method thereof and computer readable storage medium |
CN109089201B (en) * | 2018-07-26 | 2020-04-17 | Oppo广东移动通信有限公司 | Microphone hole blockage detection method and related product |
-
2018
- 2018-07-26 CN CN201810841699.2A patent/CN109089201B/en active Active
-
2019
- 2019-05-22 WO PCT/CN2019/088021 patent/WO2020019843A1/en unknown
- 2019-05-22 EP EP19840201.8A patent/EP3820168B1/en active Active
-
2021
- 2021-01-22 US US17/155,841 patent/US11425520B2/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11381951B2 (en) * | 2019-11-13 | 2022-07-05 | Airoha Technology Corp. | Wireless Bluetooth (BT) audio output system and control method thereof |
CN114253503A (en) * | 2021-12-22 | 2022-03-29 | 维沃移动通信有限公司 | Audio data processing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
US11425520B2 (en) | 2022-08-23 |
CN109089201B (en) | 2020-04-17 |
EP3820168A4 (en) | 2021-08-04 |
EP3820168A1 (en) | 2021-05-12 |
EP3820168B1 (en) | 2023-05-10 |
WO2020019843A1 (en) | 2020-01-30 |
CN109089201A (en) | 2018-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11425520B2 (en) | Method for detecting blocking of microphone and related products | |
US10805731B2 (en) | Method for controlling earphone switching, earphone, and earphone system | |
CN111436041B (en) | Method and device for switching master and slave Bluetooth earphones, bluetooth earphones and system | |
WO2021042942A1 (en) | Wireless earphones and wireless earphone system | |
CN108632930B (en) | Network searching control method and device and mobile terminal | |
US20200008124A1 (en) | Method for Controlling Earphone Switching and Earphone | |
US11330417B2 (en) | Method for electromagnetic interference adjustment and related devices | |
US11425519B2 (en) | Method for detecting blocking of microphone and related products | |
CN108509176A (en) | A kind of method, apparatus of playing audio-fequency data, storage medium and intelligent terminal | |
CN109151212B (en) | Equipment control method and device and electronic equipment | |
CN111436042B (en) | Bluetooth headset and dynamic master-slave switching method, device and system thereof | |
US10136209B2 (en) | Method, apparatus, and system for supplying power to active noise reduction headset | |
US11399088B2 (en) | Method for establishing communication connection and related products | |
US20210014716A1 (en) | Method for processing communication range information and terminal | |
US11903054B2 (en) | Method for establishing communication connection and related products | |
CN108834013B (en) | Wearable equipment electric quantity balancing method and related product | |
CN111008090B (en) | Battery electric quantity control method and device, storage medium and terminal equipment | |
CN114245362B (en) | Device reconnection method and Bluetooth peripheral | |
US20210142795A1 (en) | Method for Processing Voice Data and Related Products | |
CN108259655A (en) | A kind of communication means and terminal | |
CN108411310B (en) | Interface circuit and electronic device | |
CN114666744B (en) | Method, device, equipment, storage medium and product for connecting near field communication equipment | |
US20210152965A1 (en) | Method for detecting blocking of microphone and related products | |
CN105635379B (en) | Noise suppression method and device | |
CN110913022A (en) | Method, device and system for downloading network file of mobile terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD., CHINA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:YAN, CONGWEI;REEL/FRAME:055002/0698 Effective date: 20201215 |
|
FEPP | Fee payment procedure |
Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: APPLICATION DISPATCHED FROM PREEXAM, NOT YET DOCKETED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NON FINAL ACTION MAILED |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: PUBLICATIONS -- ISSUE FEE PAYMENT VERIFIED |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |