WO2020019843A1 - 麦克风堵孔检测方法及相关产品 - Google Patents

麦克风堵孔检测方法及相关产品 Download PDF

Info

Publication number
WO2020019843A1
WO2020019843A1 PCT/CN2019/088021 CN2019088021W WO2020019843A1 WO 2020019843 A1 WO2020019843 A1 WO 2020019843A1 CN 2019088021 W CN2019088021 W CN 2019088021W WO 2020019843 A1 WO2020019843 A1 WO 2020019843A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless headset
power
audio
wireless
microphone
Prior art date
Application number
PCT/CN2019/088021
Other languages
English (en)
French (fr)
Inventor
颜聪炜
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP19840201.8A priority Critical patent/EP3820168B1/en
Publication of WO2020019843A1 publication Critical patent/WO2020019843A1/zh
Priority to US17/155,841 priority patent/US11425520B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/004Monitoring arrangements; Testing arrangements for microphones
    • H04R29/005Microphone arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/004Monitoring arrangements; Testing arrangements for microphones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1016Earpieces of the intra-aural type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/32Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
    • H04R1/40Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers
    • H04R1/406Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/005Circuits for transducers, loudspeakers or microphones for combining the signals of two or more microphones
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04105Pressure sensors for measuring the pressure or force exerted on the touch surface without providing the touch position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones

Definitions

  • the present application relates to the technical field of wireless earphones, and in particular, to a method for detecting plugging of a microphone and related products.
  • the microphone has a hole blocking phenomenon, such as dust blocking holes, water droplets blocking holes, etc. This causes the voice data obtained by the wireless headset through the microphone to have intermittent sound and low volume, which affects the normal use of users. .
  • the embodiments of the present application provide a method for detecting a plugging of a microphone and related products, which can expand the function of a wireless headset without increasing the hardware structure, and improve the convenience, accuracy, and intelligence of plugging detection, and Duration of use.
  • an embodiment of the present application provides a method for detecting a microphone plugging hole, which is applied to a wireless headset.
  • the wireless headset is connected to a mobile terminal.
  • the wireless headset includes a first wireless headset and a second wireless headset.
  • the wireless headset includes a first microphone
  • the mobile terminal includes a second microphone
  • the method includes:
  • a first operation and a second operation are performed in parallel, the first operation is to obtain the first audio through the first microphone, and the second operation is to pass Acquiring the second audio by the second microphone;
  • the first wireless headset When it is detected that the first parameter of the first audio does not match the reference parameter, it is determined that the first wireless headset is in a hole blocking state.
  • an embodiment of the present application provides a device for detecting a hole in a microphone, which is applied to a wireless headset.
  • the wireless headset is connected to a mobile terminal.
  • the wireless headset includes a first wireless headset and a second wireless headset.
  • the wireless headset includes a first microphone
  • the mobile terminal includes a second microphone
  • the microphone plugging detection device includes a determining unit, a receiving unit, and a detecting unit, wherein:
  • the determining unit is configured to determine a first power amount of the first wireless headset and a second power amount of the second wireless headset when both the first wireless headset and the second wireless headset are in a worn state. ;
  • the receiving unit is configured to perform a first operation and a second operation in parallel when it is detected that the first power is greater than the second power, and the first operation is to obtain first audio through the first microphone, The second operation is acquiring 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 when the first parameter of the first audio does not match the reference parameter, the first wireless headset is in a plugged state.
  • an embodiment of the present application provides a wireless headset, including: a processor, a memory, and one or more programs; the one or more programs are stored in the foregoing memory, and are configured to be controlled by the The processor executes the program, and the program includes instructions for performing the steps described in any one of the methods in the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program specifically includes instructions for executing Some or all steps as described in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute Some or all of the steps described in any method of the first aspect of the embodiment of the application.
  • the computer program product can be a software installation package.
  • FIG. 1 is a schematic diagram of a system architecture of a wireless headset system disclosed in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for detecting a plugging of a microphone disclosed in an embodiment of the present application
  • FIG. 3 is a schematic flowchart of another method for detecting a hole blocking of a microphone disclosed in an embodiment of the present application
  • FIG. 4 is a schematic flowchart of another method for detecting a plugging of a microphone disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a wireless headset disclosed in an embodiment of the present application.
  • 6A is a functional block diagram of a microphone plugging detection device disclosed in an embodiment of the present application.
  • FIG. 6B is a block diagram of functional units of another microphone plugging detection device disclosed in an embodiment of the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • an embodiment of the present application provides a wireless earphone system 100, which includes a mobile terminal 101, a first wireless earphone 102, a second wireless earphone 103, and a charging box 104.
  • the first wireless earphone 102 and The second wireless headset 103 can support wired or wireless charging.
  • the second wireless headset 103 can be charged in the charging box 104.
  • the system uses any one of the following communication mechanisms.
  • the mobile terminal 101 establishes a connection with the first wireless headset 102.
  • There is a first communication link and a second communication link is established between the first wireless headset 102 and the second wireless headset 103, that is, a communication mechanism between the first wireless headset 102 and the second wireless headset 103 and the mobile terminal 101 is adopted.
  • the mobile terminal 101 establishes a first communication link with the first wireless headset 102, and the mobile terminal 101 establishes a second communication with the second wireless headset 103.
  • Link that is, the first wireless earphone 102 and the second wireless earphone 103 are the main earphones that directly communicate with the mobile terminal 101, and the main earphones directly establish a communication link with the mobile terminal 101 for
  • a headset of preset type data interaction which is a headset that is transferred from the headset through the main headset and then performs preset type data interaction with the mobile terminal 101, where the preset type data includes media data and / or call data, where the media data is Audio data and / or video data of the mobile terminal 101 other than the voice data of the call.
  • the call data is the voice data of the mobile terminal 101.
  • the communication connection relationship is the same as the communication connection relationship between the mobile terminal 101, the first wireless headset 102, and the second wireless headset 103, which is not described here.
  • the first wireless headset 102 and the second wireless headset 103 may be Bluetooth wireless headsets. Wait.
  • the mobile terminal 101 may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), computing devices or other processing devices connected to a wireless modem, and various This form of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on.
  • UE User Equipment
  • MS mobile Station
  • terminal device terminal device
  • FIG. 2 is a schematic flowchart of a method for detecting a microphone plugging hole according to an embodiment of the present application.
  • the method is applied to a wireless headset.
  • the wireless headset is connected to a mobile terminal.
  • the wireless headset includes a first wireless headset and a second wireless headset.
  • a wireless headset, the first wireless headset includes a first microphone
  • the mobile terminal includes a second microphone.
  • the method for detecting a plugging of a microphone includes:
  • the wireless earphone may determine that the first wireless earphone and the second wireless earphone are in the worn state through multiple proximity sensors or pressure sensors detecting contact with an ear contour, and may also determine The posture parameters of the first wireless earphone and the second wireless earphone are used to determine that the first wireless earphone and the second wireless earphone are in the worn state, and a successful communication by detecting a communication connection with a mobile terminal may also be detected. Identification to determine that the first wireless headset and the second wireless headset are in the worn state, and it is also possible to determine that the first wireless headset and the second wireless headset are in the passive state by detecting a music playback message.
  • the wearing state is not limited here.
  • the wireless headset When the wireless headset detects that the first power is greater than the second power, the wireless headset performs a first operation and a second operation in parallel.
  • the first operation is to obtain the first audio through the first microphone.
  • the second operation is acquiring second audio through the second microphone;
  • the first audio and the second audio may be recorded user voice data, or may be recorded audio from a wireless earphone speaker, and are not limited herein.
  • the wireless headset determines a reference parameter of the second audio.
  • the reference parameters include one or more of the following: volume, energy, tone color, audio, etc., which are not limited herein.
  • audio is a kind of sound wave
  • sound wave is a kind of mechanical wave. Therefore, there is energy in the sound wave itself.
  • the energy can be calculated from the density, frequency, amplitude, and wave velocity of the propagating medium. The value represents the energy of sound per unit area.
  • the wireless headset when the wireless headset detects that the first parameter of the first audio does not match the reference parameter, it may be that the degree of matching between the first parameter and the reference parameter is less than a preset matching degree threshold, or may be the first parameter The difference between the reference parameter and the reference parameter is greater than a preset difference threshold, which is not limited herein.
  • the first power of the first wireless headset and the second wireless headset are determined.
  • the second power of the wireless headset Second, when it is detected that the first power is greater than the second power, a first operation and a second operation are performed in parallel.
  • the first operation is to obtain the first operation through the first microphone.
  • Audio the second operation is to obtain the second audio through the second microphone, then determine the reference parameter of the second audio, and finally, when the first parameter and the reference parameter of the first audio are detected When there is no match, it is determined that the first wireless headset is in a plugged state.
  • the wireless headset can detect that the microphone is in a plugged state without adding a hardware structure, expanding the function of the wireless headset, improving the convenience of plugging detection, and using the second microphone of the mobile terminal in the first wireless
  • the headset acquires the first audio while acquiring the second audio, and uses the parameters of the second audio as reference parameters to detect the plugging state of the first microphone of the first wireless headset, instead of detecting the first microphone's through a preset threshold.
  • the plugged state is helpful to eliminate environmental interference and improve the accuracy of plugged hole detection.
  • the first wireless earphone with high battery power is used as the earphone to obtain the voice data to detect the plugged state.
  • the second wireless headset instead of using two wireless headsets to obtain voice data at the same time, the second wireless headset only needs to obtain the reference parameters, which is conducive to improving the overall use time of the wireless headset and improving the intelligence of the plugging detection.
  • the detecting that the first parameter of the first audio does not match the reference parameter includes:
  • a difference between the first parameter and the reference parameter of the first audio is greater than a preset difference threshold, and the first parameter includes any one or more of the following: volume, energy, tone color, Audio.
  • the preset difference threshold is an empirical value, which is preset by a technical developer in the wireless headset before the wireless headset is manufactured, which is not limited herein.
  • the wireless headset determines that the first parameter does not match the reference parameter by comparing the relationship between the difference between the first parameter of the first audio and the reference parameter and the preset difference threshold.
  • the algorithm is simple and conducive to improvement. Speed of plugging detection.
  • the second wireless headset is in a non-blocking state, and when it is detected that the first power is greater than the second power, performing the first operation and the second operation in parallel includes:
  • the second wireless headset or the mobile terminal may be selected to obtain the reference parameter, and only when the second power is greater than the third power is the second power selected.
  • the use of wireless headphones to obtain the reference parameters is conducive to improving the power balance between the wireless headphones and the mobile terminal, and improving the overall use time.
  • the method before determining the first power amount of the first wireless headset and the second power amount of the second wireless headset, the method further includes:
  • the first audio and the second audio are part of the audio data of the first voice data, and after the determining that the first wireless headset is in a plugged state, the method further includes: disabling the first microphone And switch to a third microphone of the second wireless headset to obtain third audio, where the third audio is audio data other than the first audio in the first voice data.
  • the third microphone of the second wireless headset is in a non-blocking state
  • the first voice data is voice data to be recorded by the wireless headset
  • the first voice data may be when a user uses a voice or video chat application
  • the voice data that needs to be recorded through the microphone and sent to the opposite end, or the voice data that the user needs to record when communicating with teammates during the use of the game application, is not limited here.
  • the acquisition instruction may be an instruction to operate a mobile terminal when a user needs a microphone to record voice data.
  • the instruction may be a double-click or a long press on a designated area of a touch screen, and the mobile terminal sends the acquisition instruction to a wireless headset, or It may also be an instruction to operate a wireless headset when a user needs a microphone to record voice data.
  • the instruction may be a tap on the wireless headset or a double-click on the wireless headset, which is not limited herein.
  • the first audio and the second audio are part of the audio data of the voice data, that is, the data volume of the first audio and the second audio can meet the data volume of the plugging detection, and may be The data of the first 10ms or the first 20ms of the voice data is not limited here.
  • the wireless earphone when the wireless earphone detects the first voice data acquisition instruction, the wireless earphone starts to perform hole plugging detection when it acquires some data, which is helpful to improve the real-time performance of hole plugging detection.
  • the wireless earphone is in the hole blocking state, switching to the second wireless earphone in time to obtain the next voice data is beneficial to improving the timeliness of the hole blocking measures.
  • the method further includes:
  • the second voice data is acquired through the mobile terminal.
  • the instruction for acquiring the second voice data is the same as the instruction for acquiring the first voice data, and details are not described herein.
  • the wireless headset detects that the first microphone of the first wireless headset is in a plugged state
  • the wireless power of the mobile terminal and the second wireless headset are determined respectively.
  • the method further includes:
  • both the first wireless headset and the second wireless headset are in a charging state of the charging box, sending a notification message that the first wireless headset is in a hole blocking state to the charging box, the notification message is used for And instructing the charging box to charge the first wireless headset with a first charging power and charging the second wireless headset with a second charging power, and the first charging power is less than the second charging power.
  • the notification message may be a communication identifier.
  • “1" indicates a hole blocking state
  • “2” indicates a non-blocking state, which is not limited herein.
  • the wireless headset after determining that the first microphone is in the plugged state, the wireless headset reports a notification message to the charging case.
  • the charging case charges the first wireless headset and the second wireless headset at the same time, There are more use cases. Therefore, the charging power allocated to the second wireless headset is greater than the charging power allocated to the first wireless headset, which is beneficial to improving the usage time of the second wireless headset in a normal state.
  • FIG. 3 is a schematic flowchart of another method for detecting a hole blocking of a microphone provided by an embodiment of the present application, which is applied to a wireless headset that is connected to a mobile phone.
  • the wireless earphone includes a first wireless earphone and a second wireless earphone
  • the first wireless earphone includes a first microphone
  • the mobile terminal includes a second microphone.
  • the method for detecting a plugging of a microphone includes:
  • the wireless headset compares the second power with a third power of the mobile terminal.
  • the wireless headset determines that the second power is greater than the third power, and performs the first operation and the second operation in parallel.
  • the first operation is to obtain the first audio through the first microphone
  • the second The operation is to obtain second audio through the second microphone, and the first audio and the second audio are part of the audio data of the first voice data.
  • the wireless headset determines a reference parameter of the second audio.
  • the wireless headset detects that a difference between the first parameter of the first audio and the reference parameter is greater than a preset difference threshold, and determines that the first wireless headset is in a hole blocking state, and the first Parameters include any one or more of the following: volume, energy, tone color, audio.
  • the wireless headset disables the first microphone, and switches to a third microphone of the second wireless headset to obtain a third audio.
  • the third audio is the first voice data divided by the first audio. Out of audio data.
  • the first power of the first wireless headset and the second wireless headset are determined.
  • the second power of the wireless headset and secondly, when it is detected that the first power is greater than the second power, a first operation and a second operation are performed in parallel, and the first operation is to obtain a first operation through the first microphone. Audio, the second operation is to obtain the second audio through the second microphone, then determine the reference parameter of the second audio, and finally, when the first parameter and the reference parameter of the first audio are detected When there is no match, it is determined that the first wireless headset is in a plugged state.
  • the wireless headset can detect that the microphone is in a plugged state without adding a hardware structure, expanding the function of the wireless headset, improving the convenience of plugging detection, and using the second microphone of the mobile terminal in the first wireless
  • the headset acquires the first audio while acquiring the second audio, and uses the parameters of the second audio as reference parameters to detect the plugging state of the first microphone of the first wireless headset, instead of detecting the first microphone's through a preset threshold.
  • the plugged state is helpful to eliminate environmental interference and improve the accuracy of plugged hole detection.
  • the first wireless earphone with high battery power is used as the earphone to obtain the voice data to detect the plugged state.
  • the second wireless headset instead of using two wireless headsets to obtain voice data at the same time, the second wireless headset only needs to obtain the reference parameters, which is conducive to improving the overall use time of the wireless headset and improving the intelligence of the plugging detection.
  • the wireless earphone when the wireless earphone detects the acquisition instruction of the first voice data, it starts to perform hole plugging detection when the wireless earphone acquires some data, which is helpful to improve the real-time performance of the hole plugging detection. In the hole state, switching to the second wireless headset in time to obtain the next voice data is helpful to improve the timeliness of the hole blocking measures.
  • the second wireless headset or mobile terminal may be selected to obtain the reference parameter, and when the second power is greater than the third power, the second wireless headset may be selected to obtain the reference parameter.
  • the benchmark parameters are conducive to improving the power balance between the wireless headset and the mobile terminal, and improving the overall use time.
  • the wireless headset determines that the first parameter does not match the reference parameter by comparing the relationship between the difference between the first parameter of the first audio and the reference parameter and the preset difference threshold.
  • the algorithm is simple and is conducive to improving the detection of hole plugging. speed.
  • FIG. 4 is a schematic flowchart of another method for detecting a hole blocking in a microphone provided by an embodiment of the present application. As shown in the figure, the method for detecting a hole blocking in a microphone include:
  • the wireless headset When the wireless headset detects that the first power is greater than the second power, the wireless headset performs a first operation and a second operation in parallel.
  • the first operation is to obtain first audio through the first microphone.
  • the second operation is to obtain second audio through the second microphone.
  • the wireless headset determines a reference parameter of the second audio.
  • the wireless headset detects that a difference between the first parameter of the first audio and the reference parameter is greater than a preset difference threshold, and determines that the first wireless headset is in a hole blocking state, and the first Parameters include any one or more of the following: volume, energy, tone color, audio.
  • the wireless headset detects that the fourth power is greater than the fifth power, the wireless headset acquires the second voice data through the mobile terminal.
  • the wireless earphone detects that both the first wireless earphone and the second wireless earphone are in a charging state of the charging box, send a notification message that the first wireless earphone is in a hole blocking state to the charging box.
  • the notification message is used to instruct the charging box to charge the first wireless headset with a first charging power and charge the second wireless headset with a second charging power, and the first charging power is less than the second charging power. Charging power.
  • the first power of the first wireless headset and the second wireless headset are determined.
  • the second power of the wireless headset and secondly, when it is detected that the first power is greater than the second power, a first operation and a second operation are performed in parallel, and the first operation is to obtain a first operation through the first microphone. Audio, the second operation is to obtain the second audio through the second microphone, then determine the reference parameter of the second audio, and finally, when the first parameter and the reference parameter of the first audio are detected When there is no match, it is determined that the first wireless headset is in a plugged state.
  • the wireless headset can detect that the microphone is in a plugged state without adding a hardware structure, expanding the function of the wireless headset, improving the convenience of plugging detection, and using the second microphone of the mobile terminal in the first wireless
  • the headset acquires the first audio while acquiring the second audio, and uses the parameters of the second audio as reference parameters to detect the plugging state of the first microphone of the first wireless headset, instead of detecting the first microphone's through a preset threshold.
  • the plugged state is helpful to eliminate environmental interference and improve the accuracy of plugged hole detection.
  • the first wireless earphone with a high battery capacity is used as the earphone for voice data to detect the plugged state.
  • the second wireless headset instead of using two wireless headsets to obtain voice data at the same time, the second wireless headset only needs to obtain the reference parameters, which is conducive to improving the overall use time of the wireless headset and improving the intelligence of the plugging detection.
  • the wireless headset determines a fourth power amount of the mobile terminal and a fifth power amount of the second wireless headset when a second voice data acquisition instruction is detected, respectively.
  • Using a mobile terminal with a large amount of power to obtain the second voice data is beneficial to improving the flexibility of obtaining the second voice data, and the intelligence of the measures performed after the hole is plugged.
  • the wireless headset reports a notification message to the charging case after determining that the first microphone is in a plugged state.
  • the charging case charges the first wireless headset and the second wireless headset at the same time, the second wireless headset is used more often. Therefore, the charging power allocated to the second wireless headset is greater than the charging power allocated to the first wireless headset, which is conducive to improving the usage time of the second wireless headset in a normal state.
  • FIG. 5 is a schematic structural diagram of a wireless earphone 500 according to an embodiment of the present application.
  • the headset is connected to a mobile terminal.
  • the wireless headset includes a first wireless headset and a second wireless headset.
  • the first wireless headset includes a first microphone.
  • the mobile terminal includes a second microphone.
  • the wireless headset includes a processor 501 and a memory 502.
  • a first operation and a second operation are performed in parallel, the first operation is to obtain the first audio through the first microphone, and the second operation is to pass Acquiring the second audio by the second microphone;
  • the first wireless headset When it is detected that the first parameter of the first audio does not match the reference parameter, it is determined that the first wireless headset is in a plugged state.
  • the first power of the first wireless headset and the second wireless headset are determined.
  • the second power of the wireless headset and secondly, when it is detected that the first power is greater than the second power, a first operation and a second operation are performed in parallel, and the first operation is to obtain a first operation through the first microphone. Audio, the second operation is to obtain the second audio through the second microphone, then determine the reference parameter of the second audio, and finally, when the first parameter and the reference parameter of the first audio are detected When there is no match, it is determined that the first wireless headset is in a plugged state.
  • the wireless headset can detect that the microphone is in a plugged state without adding a hardware structure, expanding the function of the wireless headset, improving the convenience of plugging detection, and using the second microphone of the mobile terminal in the first wireless
  • the headset acquires the first audio while acquiring the second audio, and uses the parameters of the second audio as reference parameters to detect the plugging state of the first microphone of the first wireless headset, instead of detecting the first microphone's through a preset threshold.
  • the plugged state is helpful to eliminate environmental interference and improve the accuracy of plugged hole detection.
  • the first wireless earphone with a high battery capacity is used as the earphone for voice data to detect the plugged state
  • the second wireless headset only needs to obtain the reference parameters, which is conducive to improving the overall use time of the wireless headset and improving the intelligence of the plugging detection.
  • the instruction in the program 504 is specifically configured to perform the following operation: detecting the first The difference between the first parameter of the audio and the reference parameter is greater than a preset difference threshold, and the first parameter includes any one or more of the following: volume, energy, tone color, and audio.
  • the first operation and the second operation are performed in parallel.
  • the instructions in the program 504 are specifically used to perform the following operations: when it is detected that the first power is greater than the second power, comparing the second power with a third power of the mobile terminal; and for determining all The second power is greater than the third power, and the first operation and the second operation are performed in parallel.
  • the above-mentioned program 504 further includes instructions for performing the following steps: before determining the first power amount of the first wireless headset and the second power amount of the second wireless headset, detecting a first Instruction for acquiring voice data;
  • the first audio and the second audio are part of the audio data of the first voice data
  • the program 504 further includes instructions for performing the following steps: after determining that the first wireless headset is in a plugged state , Disable the first microphone, and switch to a third microphone of the second wireless headset to obtain third audio, where the third audio is audio data other than the first audio in the first voice data.
  • the above-mentioned program 504 further includes instructions for performing the following steps: after determining that the first wireless headset is in a plugged state, when a second voice data acquisition instruction is detected, determining the A fourth power amount of the mobile terminal and a fifth power amount of the second wireless headset; and used to obtain the second voice data through the mobile terminal when the fourth power amount is detected to be greater than the fifth power amount.
  • the foregoing program 504 further includes instructions for performing the following steps: After determining that the first wireless headset is in a hole blocking state, when the first wireless headset and the second wireless headset are detected When the earphones are in the charging state of the charging box, a notification message is sent to the charging box that the first wireless earphone is in a plugged state, and the notification message is used to instruct the charging box to send the first charging power to the first The wireless earphone is charged, and the second wireless earphone is charged by a second charging power, and the first charging power is smaller than the second charging power.
  • the wireless headset includes a hardware structure and / or a software module corresponding to each function.
  • this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is performed by hardware or computer software-driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
  • the embodiments of the present application may divide the functional units of the wireless headset according to the foregoing method examples.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a logical function division. There may be another division manner in actual implementation.
  • FIG. 6A is a block diagram of functional units of a microphone plugging detection device 600 according to an embodiment of the present application.
  • the microphone plugging detection device 600 is applied to a wireless headset connected to a mobile terminal.
  • the wireless headset includes a first wireless headset and a second wireless headset.
  • the first wireless headset includes a first microphone and the mobile terminal.
  • the device includes a second microphone.
  • the microphone plugging detection device 600 includes a determining unit 601, a receiving unit 602, and a detecting unit 603.
  • the determining unit 601 is configured to determine a first power amount of the first wireless headset and a second power of the second wireless headset when both the first wireless headset and the second wireless headset are in a worn state. Electricity
  • the receiving unit 602 is configured to perform a first operation and a second operation in parallel when it is detected that the first power is greater than the second power, and the first operation is to obtain a first audio through the first microphone. , The second operation is acquiring 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 when the first parameter of the first audio does not match the reference parameter, the first wireless headset is in a plugged state.
  • the first power of the first wireless headset and the second wireless headset are determined.
  • the second power of the wireless headset and secondly, when it is detected that the first power is greater than the second power, a first operation and a second operation are performed in parallel, and the first operation is to obtain a first operation through the first microphone. Audio, the second operation is to obtain the second audio through the second microphone, then determine the reference parameter of the second audio, and finally, when the first parameter and the reference parameter of the first audio are detected When there is no match, it is determined that the first wireless headset is in a plugged state.
  • the wireless headset can detect that the microphone is in a plugged state without adding a hardware structure, expanding the function of the wireless headset, improving the convenience of plugging detection, and using the second microphone of the mobile terminal in the first wireless
  • the headset acquires the first audio while acquiring the second audio, and uses the parameters of the second audio as reference parameters to detect the plugging state of the first microphone of the first wireless headset, instead of detecting the first microphone's through a preset threshold.
  • the plugged state is helpful to eliminate environmental interference and improve the accuracy of plugged hole detection.
  • the first wireless earphone with high battery power is used as the earphone to obtain the voice data to detect the plugged state.
  • the second wireless headset instead of using two wireless headsets to obtain voice data at the same time, the second wireless headset only needs to obtain the reference parameters, which is conducive to improving the overall use time of the wireless headset and improving the intelligence of the plugging detection.
  • the detecting unit 603 is specifically configured to: detect the first parameter of the first audio
  • the difference between a parameter and the reference parameter is greater than a preset difference threshold, and the first parameter includes any one or more of the following: volume, energy, tone color, and audio.
  • the receiving unit 602 is specifically configured to: when detecting that the first power is greater than the second power, compare the second power with a third power of the mobile terminal; and determine that the second power is greater than The third electric quantity performs the first operation and the second operation in parallel.
  • the microphone plugging detection device 600 further includes a processing unit 604, where:
  • the detecting unit 603 is further configured to: detect an instruction to acquire first voice data;
  • the first audio and the second audio are part of the audio data of the first voice data
  • the processing unit 604 is configured to: after the determining that the first wireless earphone is in a plugged state, disable the The first microphone is switched to a third microphone of the second wireless headset to obtain a third audio, and the third audio is audio data other than the first audio in the first voice data.
  • the processing unit 604 is further configured to: when a second voice data acquisition instruction is detected, determine the mobile terminal ’s A fourth power amount and a fifth power amount of the second wireless headset; and when the fourth power amount is detected to be greater than the fifth power amount, obtaining the second voice data through the mobile terminal.
  • the processing unit 604 is further configured to: when it is detected that both the first wireless headset and the second wireless headset are in When the charging box is in a charging state, a notification message is sent to the charging box that the first wireless headset is in a plugged state, and the notification message is used to instruct the charging box to charge the first wireless headset with a first charging power. And charging the second wireless headset with a second charging power, and 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 or a processor or a sensor
  • the detection unit 603 may be a processor or a transceiver or a sensor
  • the processing unit 604 may be a processor.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes a computer to execute any one of the microphone plugging detection methods described in the foregoing method embodiments Some or all of the steps.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps of any microphone plugging detection method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be combined. Integration into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the foregoing memories include: U-disks, Read-Only Memory (ROM), Random Access Memory (RAM), mobile hard disks, magnetic disks, or optical disks, which can store program codes.
  • the program may be stored in a computer-readable memory.
  • the memory may include: a flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (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

麦克风堵孔检测方法及相关产品 技术领域
本申请涉及无线耳机技术领域,具体涉及一种麦克风堵孔检测方法及相关产品。
背景技术
随着移动终端(例如,智能手机)的大量普及与快速发展,各式各样的耳机已成为人们常用于收听媒体的装置,而且,由于有线耳机的耳机线经常出现损坏,导致耳机寿命减短,花销较高,无线耳机应运而生。
目前,人们经常会发现麦克风出现堵孔的现象,例如灰尘堵孔、水滴堵孔等,这便导致无线耳机通过麦克风获取的语音数据出现声音断续、音量较小的情况,影响用户的正常使用。
发明内容
本申请实施例提供了一种麦克风堵孔检测方法及相关产品,可以在不增加硬件结构的情况下拓展无线耳机的功能,提升堵孔检测的便捷性、准确性和智能性,以及无线耳机的使用时长。
第一方面,本申请实施例提供了一种麦克风堵孔检测方法,应用于无线耳机,所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,所述方法包括:
在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量;
当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频;
确定所述第二音频的基准参数;
当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。
第二方面,本申请实施例提供了一种麦克风堵孔检测装置,应用于无线耳机,所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,所述麦克风堵孔检测装置包括确定单元、接收单元和检测单元,其中:
所述确定单元,用于在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量;
所述接收单元,用于当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频;
所述确定单元还用于,确定所述第二音频的基准参数;
所述检测单元,用于当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。
第三方面,本申请实施例提供了一种无线耳机,包括:处理器,存储器,以及一个或 多个程序;所述一个或多个程序被存储在上述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行本申请实施例第一方面任一方法中所描述的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储有用于电子数据交换的计算机程序,该计算机程序具体包括指令,所述指令用于执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
下面将对本申请实施例所涉及到的附图作简单地介绍。
图1是本申请实施例公开的一种无线耳机系统的系统架构示意图;
图2是本申请实施例公开的一种麦克风堵孔检测方法的流程示意图;
图3是本申请实施例公开的另一种麦克风堵孔检测方法的流程示意图;
图4是本申请实施例公开的另一种麦克风堵孔检测方法的流程示意图;
图5是本申请实施例公开的一种无线耳机的结构示意图;
图6A是本申请实施例公开的一种麦克风堵孔检测装置的功能单元组成框图;
图6B是本申请实施例公开的另一种麦克风堵孔检测装置的功能单元组成框图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
如图1所示,本申请实施例提供了一种无线耳机系统100,该系统包括移动终端101、第一无线耳机102、第二无线耳机103、充电盒104,其中,第一无线耳机102和第二无线耳机103可以支持有线或者无线充电,如可以放入充电盒104中进行充电,其中,该系统使用以下任意一种通信机制,其一,所述移动终端101与第一无线耳机102建立有第一通信链路,所述第一无线耳机102与第二无线耳机103建立有第二通信链路,即第一无线耳机102和第二无线耳机103与移动终端101之间的通信机制采用主从通信机制(具体可以采用蓝牙协议),其二,所述移动终端101与第一无线耳机102建立有第一通信链路,所述移动终端101与第二无线耳机103建立有第二通信链路,即第一无线耳机102和第二无线耳机103均为与移动终端 101直接进行通信的主耳机,主耳机即直接与移动终端101建立通信链路进行预设类型数据交互的耳机,从耳机即通过主耳机中转后再与移动终端101进行预设类型数据交互的耳机,其中,预设类型数据包括媒体数据和/或通话数据,其中,媒体数据为移动终端101的除通话语音数据之外的音频数据和/或视频数据,通话数据为移动终端101的通话语音数据,同样的,充电盒104与第一无线耳机102、第二无线耳机103之间的通信连接关系如上述移动终端101与第一无线耳机102、第二无线耳机103之间的通信连接关系,在此不做赘述,第一无线耳机102和第二无线耳机103可以是蓝牙无线耳机等。移动终端101可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备(例如智能手表、智能手环、计步器等)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为移动终端。下面对本申请实施例进行详细介绍。
请参阅图2,图2是本申请实施例提供了一种麦克风堵孔检测方法的流程示意图,应用于无线耳机,所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,如图所示,本麦克风堵孔检测方法包括:
S201,无线耳机在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量;
其中,所述无线耳机可以通过多个接近传感器或者压力传感器检测到与耳朵轮廓之间的接触来确定所述第一无线耳机和所述第二无线耳机处于所述被佩戴状态,也可以通过所述第一无线耳机和所述第二无线耳机的姿态参数来确定所述第一无线耳机和所述第二无线耳机处于所述被佩戴状态,也可以通过检测到与移动终端通信连接成功的通信标识来确定所述第一无线耳机和所述第二无线耳机处于所述被佩戴状态,也可以通过检测到音乐播放消息来确定所述第一无线耳机和所述第二无线耳机处于所述被佩戴状态等,在此不做唯一限定。
S202,所述无线耳机当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频;
其中,所述第一音频和所述第二音频可以是录入的用户语音数据,或者可以是录入的无线耳机扬声器发出的音频等,在此不做限定。
S203,所述无线耳机确定所述第二音频的基准参数。
其中,所述基准参数包括以下一种或者多种:音量、能量、音色、音频等,在此不做限定。
其中,音频是一种声波,而声波为一种机械波,因此,声波本身存在能量,能量可以通过传播的介质密度、频率、振幅和波速计算得到,即单位时间流经单位面积介质的能量的平均值的多少来表示该单位面积的声音的能量。
S204,所述无线耳机当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。
其中,所述无线耳机当检测到所述第一音频的第一参数与所述基准参数不匹配,可以是第一参数与基准参数的匹配度小于预设匹配度阈值,或者可以是第一参数与基准参数之间的差值大于预设差值阈值,在此不做限定。
可以看出,本申请实施例中,无线耳机首先在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量, 其次,当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频,然后,确定所述第二音频的基准参数,最后,当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性,而且,通过移动终端的第二麦克风在第一无线耳机获取第一音频的同时获取第二音频,并将第二音频的参数作为基准参数,来检测第一无线耳机的第一麦克风的堵孔状态,而不是通过预设阈值来检测第一麦克风的堵孔状态,有利于消除环境干扰,提升堵孔检测的准确性,此外,在两个无线耳机均处于被佩戴状态时,将电量高的第一无线耳机作为获取语音数据的耳机检测堵孔状态,而不是同时使用两个无线耳机获取语音数据,第二无线耳机仅仅需要获取基准参数,有利于提升无线耳机的整体使用时长,提升堵孔检测的智能性。
在一个可能的示例中,所述检测到所述第一音频的第一参数与所述基准参数不匹配,包括:
检测到所述第一音频的所述第一参数与所述基准参数之间的差值大于预设差值阈值,所述第一参数包括以下任意一种或多种:音量、能量、音色、音频。
其中,所述预设差值阈值为经验值,由技术开发人员在无线耳机出产前预设值在无线耳机中,在此不做限定。
可见,本示例中,无线耳机通过对比第一音频的第一参数与基准参数之间的差值与预设差值阈值的关系来确定第一参数与基准参数不匹配,算法简单,有利于提升堵孔检测的速度。
在一个可能的示例中,所述第二无线耳机处于非堵孔状态,所述当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,包括:
当检测到所述第一电量大于所述第二电量时,比较所述第二电量与所述移动终端的第三电量;
确定所述第二电量大于所述第三电量,并行执行所述第一操作和所述第二操作。
可见,本示例中,无线耳机在检测到第一电量大于第二电量时,可以选择第二无线耳机或者移动终端来获取基准参数,而当第二电量大于第三电量时,才选择通过第二无线耳机来获取基准参数,有利于提升无线耳机与移动终端之间的电量平衡,提升整体的使用时长。
在一个可能的示例中,所述确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,所述方法还包括:
检测到第一语音数据的获取指令;
所述第一音频和所述第二音频为所述第一语音数据的部分音频数据,所述确定所述第一无线耳机处于堵孔状态之后,所述方法还包括:禁用所述第一麦克风,切换为所述第二无线耳机的第三麦克风获取第三音频,所述第三音频为所述第一语音数据中除所述第一音频之外的音频数据。
其中,所述第二无线耳机的第三麦克风处于非堵孔状态,所述第一语音数据为无线耳机待录取的语音数据,所述第一语音数据可以是用户在使用语音或者视频聊天应用时,需要通过麦克风录取并发送给对端的语音数据,也可以是用户在使用游戏应用的过程中与队友交流时需要录取的语音数据,在此不做限定。
其中,所述获取指令可以是用户需要麦克风录取语音数据时操作移动终端的指令,该指令可以是双击或者长按触控屏的指定区域等,然后由移动终端将获取指令发送给无线耳 机,或者也可以是用户需要麦克风录取语音数据时操作无线耳机的指令,该指令可以是敲击无线耳机或者双击无线耳机等,在此不做限定。
其中,所述第一音频和所述第二音频为所述语音数据的部分音频数据,即所述第一音频和所述第二音频的数据量满足堵孔检测的数据量即可,可以为语音数据的前10ms、或者前20ms的数据,在此不做限定。
可见,本示例中,无线耳机在检测到第一语音数据的获取指令时,在无线耳机获取了部分数据时便开始进行堵孔检测,有利于提升堵孔检测的实时性,在检测到第一无线耳机处于堵孔状态时,及时切换为第二无线耳机来获取接下来的语音数据,有利于提升堵孔措施的及时性。
在一个可能的示例中,所述确定所述第一无线耳机处于堵孔状态之后,所述方法还包括:
当检测到第二语音数据的获取指令时,确定所述移动终端的第四电量与所述第二无线耳机的第五电量;
当检测到所述第四电量大于所述第五电量时,通过所述移动终端获取所述第二语音数据。
其中,所述第二语音数据的获取指令同上述第一语音数据的获取指令,在此不做赘述。
可见,本示例中,无线耳机在检测到第一无线耳机的第一麦克风处于堵孔状态之后,当检测到第二语音数据的获取指令时,分别确定移动终端的第四电量和第二无线耳机的第五电量,使用电量多的移动终端获取该第二语音数据,有利于提升第二语音数据获取的灵活性,堵孔后执行措施的智能性。
在一个可能的示例中,所述确定所述第一无线耳机处于堵孔状态之后,所述方法还包括:
当检测到所述第一无线耳机和所述第二无线耳机均处于充电盒充电状态时,发送所述第一无线耳机处于堵孔状态的通知消息给所述充电盒,所述通知消息用于指示所述充电盒通过第一充电功率给所述第一无线耳机充电,通过第二充电功率给所述第二无线耳机充电,所述第一充电功率小于所述第二充电功率。
其中,所述通知消息可以是一个通信标识,例如“1”表示堵孔状态,“2”表示非堵孔状态,在此不做限定。
可见,本示例中,无线耳机在确定第一麦克风处于堵孔状态后,上报通知消息给充电盒,使充电盒在给第一无线耳机和第二无线耳机同时充电时,由于第二无线耳机的使用情况更多,因此,分配给第二无线耳机的充电功率大于分配给第一无线耳机的充电功率,有利于提升处于正常状态下的第二无线耳机的使用时长。
与所述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的另一种麦克风堵孔检测方法的流程示意图,应用于无线耳机,所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,如图所示,本麦克风堵孔检测方法包括:
S301,无线耳机在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态,且检测到第一语音数据的获取指令时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量。
S302,所述无线耳机当检测到所述第一电量大于所述第二电量时,比较所述第二电量与所述移动终端的第三电量。
S303,所述无线耳机确定所述第二电量大于所述第三电量,并行执行第一操作和第二 操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频,所述第一音频和所述第二音频为所述第一语音数据的部分音频数据。
S304,所述无线耳机确定所述第二音频的基准参数。
S305,所述无线耳机检测到所述第一音频的第一参数与所述基准参数之间的差值大于预设差值阈值,确定所述第一无线耳机处于堵孔状态,所述第一参数包括以下任意一种或多种:音量、能量、音色、音频。
S306,所述无线耳机禁用所述第一麦克风,切换为所述第二无线耳机的第三麦克风获取第三音频,所述第三音频为所述第一语音数据中除所述第一音频之外的音频数据。
可以看出,本申请实施例中,无线耳机首先在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量,其次,当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频,然后,确定所述第二音频的基准参数,最后,当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性,而且,通过移动终端的第二麦克风在第一无线耳机获取第一音频的同时获取第二音频,并将第二音频的参数作为基准参数,来检测第一无线耳机的第一麦克风的堵孔状态,而不是通过预设阈值来检测第一麦克风的堵孔状态,有利于消除环境干扰,提升堵孔检测的准确性,此外,在两个无线耳机均处于被佩戴状态时,将电量高的第一无线耳机作为获取语音数据的耳机检测堵孔状态,而不是同时使用两个无线耳机获取语音数据,第二无线耳机仅仅需要获取基准参数,有利于提升无线耳机的整体使用时长,提升堵孔检测的智能性。
此外,无线耳机在检测到第一语音数据的获取指令时,在无线耳机获取了部分数据时便开始进行堵孔检测,有利于提升堵孔检测的实时性,在检测到第一无线耳机处于堵孔状态时,及时切换为第二无线耳机来获取接下来的语音数据,有利于提升堵孔措施的及时性。
此外,无线耳机在检测到第一电量大于第二电量时,可以选择第二无线耳机或者移动终端来获取基准参数,而当第二电量大于第三电量时,才选择通过第二无线耳机来获取基准参数,有利于提升无线耳机与移动终端之间的电量平衡,提升整体的使用时长。
此外,无线耳机通过对比第一音频的第一参数与基准参数之间的差值与预设差值阈值的关系来确定第一参数与基准参数不匹配,算法简单,有利于提升堵孔检测的速度。
与所述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的另一种麦克风堵孔检测方法的流程示意图,如图所示,本麦克风堵孔检测方法包括:
S401,无线耳机在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量。
S402,所述无线耳机当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频。
S403,所述无线耳机确定所述第二音频的基准参数。
S404,所述无线耳机检测到所述第一音频的第一参数与所述基准参数之间的差值大于预设差值阈值,确定所述第一无线耳机处于堵孔状态,所述第一参数包括以下任意一种或多种:音量、能量、音色、音频。
S405,所述无线耳机当检测到第二语音数据的获取指令时,确定所述移动终端的第四 电量与所述第二无线耳机的第五电量。
S406,所述无线耳机当检测到所述第四电量大于所述第五电量时,通过所述移动终端获取所述第二语音数据。
S407,所述无线耳机当检测到所述第一无线耳机和所述第二无线耳机均处于充电盒充电状态时,发送所述第一无线耳机处于堵孔状态的通知消息给所述充电盒,所述通知消息用于指示所述充电盒通过第一充电功率给所述第一无线耳机充电,通过第二充电功率给所述第二无线耳机充电,所述第一充电功率小于所述第二充电功率。
可以看出,本申请实施例中,无线耳机首先在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量,其次,当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频,然后,确定所述第二音频的基准参数,最后,当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性,而且,通过移动终端的第二麦克风在第一无线耳机获取第一音频的同时获取第二音频,并将第二音频的参数作为基准参数,来检测第一无线耳机的第一麦克风的堵孔状态,而不是通过预设阈值来检测第一麦克风的堵孔状态,有利于消除环境干扰,提升堵孔检测的准确性,此外,在两个无线耳机均处于被佩戴状态时,将电量高的第一无线耳机作为获取语音数据的耳机检测堵孔状态,而不是同时使用两个无线耳机获取语音数据,第二无线耳机仅仅需要获取基准参数,有利于提升无线耳机的整体使用时长,提升堵孔检测的智能性。
此外,无线耳机在检测到第一无线耳机的第一麦克风处于堵孔状态之后,当检测到第二语音数据的获取指令时,分别确定移动终端的第四电量和第二无线耳机的第五电量,使用电量多的移动终端获取该第二语音数据,有利于提升第二语音数据获取的灵活性,堵孔后执行措施的智能性。
此外,无线耳机在确定第一麦克风处于堵孔状态后,上报通知消息给充电盒,使充电盒在给第一无线耳机和第二无线耳机同时充电时,由于第二无线耳机的使用情况更多,因此,分配给第二无线耳机的充电功率大于分配给第一无线耳机的充电功率,有利于提升处于正常状态下的第二无线耳机的使用时长。
与上述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种无线耳机500的结构示意图,如图所示,该所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,该无线耳机包括处理器501、存储器502、通信接口503以及一个或多个程序504,其中,上述一个或多个程序504被存储在上述存储器502中,并且被配置由上述处理器501执行,上述程序包括用于执行以下步骤的指令;
在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量;
当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频;
确定所述第二音频的基准参数;
当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机 处于堵孔状态。
可以看出,本申请实施例中,无线耳机首先在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量,其次,当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频,然后,确定所述第二音频的基准参数,最后,当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性,而且,通过移动终端的第二麦克风在第一无线耳机获取第一音频的同时获取第二音频,并将第二音频的参数作为基准参数,来检测第一无线耳机的第一麦克风的堵孔状态,而不是通过预设阈值来检测第一麦克风的堵孔状态,有利于消除环境干扰,提升堵孔检测的准确性,此外,在两个无线耳机均处于被佩戴状态时,将电量高的第一无线耳机作为获取语音数据的耳机检测堵孔状态,而不是同时使用两个无线耳机获取语音数据,第二无线耳机仅仅需要获取基准参数,有利于提升无线耳机的整体使用时长,提升堵孔检测的智能性。
在一个可能的示例中,在所述检测到所述第一音频的第一参数与所述基准参数不匹配方面,所述程序504中的指令具体用于执行以下操作:检测到所述第一音频的所述第一参数与所述基准参数之间的差值大于预设差值阈值,所述第一参数包括以下任意一种或多种:音量、能量、音色、音频。
在一个可能的示例中,在所述第二无线耳机处于非堵孔状态,所述当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作方面,所述程序504中的指令具体用于执行以下操作:当检测到所述第一电量大于所述第二电量时,比较所述第二电量与所述移动终端的第三电量;以及用于确定所述第二电量大于所述第三电量,并行执行所述第一操作和所述第二操作。
在一个可能的示例中,上述程序504还包括用于执行以下步骤的指令:所述确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,检测到第一语音数据的获取指令;
所述第一音频和所述第二音频为所述第一语音数据的部分音频数据,上述程序504还包括用于执行以下步骤的指令:所述确定所述第一无线耳机处于堵孔状态之后,禁用所述第一麦克风,切换为所述第二无线耳机的第三麦克风获取第三音频,所述第三音频为所述第一语音数据中除所述第一音频之外的音频数据。
在一个可能的示例中,上述程序504还包括用于执行以下步骤的指令:所述确定所述第一无线耳机处于堵孔状态之后,当检测到第二语音数据的获取指令时,确定所述移动终端的第四电量与所述第二无线耳机的第五电量;以及用于当检测到所述第四电量大于所述第五电量时,通过所述移动终端获取所述第二语音数据。
在一个可能的示例中,上述程序504还包括用于执行以下步骤的指令:所述确定所述第一无线耳机处于堵孔状态之后,当检测到所述第一无线耳机和所述第二无线耳机均处于充电盒充电状态时,发送所述第一无线耳机处于堵孔状态的通知消息给所述充电盒,所述通知消息用于指示所述充电盒通过第一充电功率给所述第一无线耳机充电,通过第二充电功率给所述第二无线耳机充电,所述第一充电功率小于所述第二充电功率。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,无线耳机为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。 本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对无线耳机进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
图6A是本申请实施例中所涉及的麦克风堵孔检测装置600的功能单元组成框图。该麦克风堵孔检测装置600应用于无线耳机,所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,该麦克风堵孔检测装置600包括确定单元601、接收单元602和检测单元603,其中,
所述确定单元601,用于在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量;
所述接收单元602,用于当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频;
所述确定单元601还用于,确定所述第二音频的基准参数;
所述检测单元603,用于当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。
可以看出,本申请实施例中,无线耳机首先在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量,其次,当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频,然后,确定所述第二音频的基准参数,最后,当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性,而且,通过移动终端的第二麦克风在第一无线耳机获取第一音频的同时获取第二音频,并将第二音频的参数作为基准参数,来检测第一无线耳机的第一麦克风的堵孔状态,而不是通过预设阈值来检测第一麦克风的堵孔状态,有利于消除环境干扰,提升堵孔检测的准确性,此外,在两个无线耳机均处于被佩戴状态时,将电量高的第一无线耳机作为获取语音数据的耳机检测堵孔状态,而不是同时使用两个无线耳机获取语音数据,第二无线耳机仅仅需要获取基准参数,有利于提升无线耳机的整体使用时长,提升堵孔检测的智能性。
在一个可能的示例中,在所述检测到所述第一音频的第一参数与所述基准参数不匹配方面,所述检测单元603具体用于:检测到所述第一音频的所述第一参数与所述基准参数之间的差值大于预设差值阈值,所述第一参数包括以下任意一种或多种:音量、能量、音色、音频。
在一个可能的示例中,在所述第二无线耳机处于非堵孔状态,所述当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作方面,所述接收单元602具体用于:当检测到所述第一电量大于所述第二电量时,比较所述第二电量与所述移动终端的第三电 量;以及用于确定所述第二电量大于所述第三电量,并行执行所述第一操作和所述第二操作。
在一个可能的示例中,如图6B所示,所述麦克风堵孔检测装置600还包括处理单元604,其中,
所述检测单元603在所述确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,还用于:检测到第一语音数据的获取指令;
所述第一音频和所述第二音频为所述第一语音数据的部分音频数据,所述处理单元604在所述确定所述第一无线耳机处于堵孔状态之后,用于:禁用所述第一麦克风,切换为所述第二无线耳机的第三麦克风获取第三音频,所述第三音频为所述第一语音数据中除所述第一音频之外的音频数据。
在一个可能的示例中,所述处理单元604在所述确定所述第一无线耳机处于堵孔状态之后,还用于:当检测到第二语音数据的获取指令时,确定所述移动终端的第四电量与所述第二无线耳机的第五电量;以及用于当检测到所述第四电量大于所述第五电量时,通过所述移动终端获取所述第二语音数据。
在一个可能的示例中,所述处理单元604在所述确定所述第一无线耳机处于堵孔状态之后,还用于:当检测到所述第一无线耳机和所述第二无线耳机均处于充电盒充电状态时,发送所述第一无线耳机处于堵孔状态的通知消息给所述充电盒,所述通知消息用于指示所述充电盒通过第一充电功率给所述第一无线耳机充电,通过第二充电功率给所述第二无线耳机充电,所述第一充电功率小于所述第二充电功率。
其中,接收单元602可以是麦克风或者收发器,确定单元601可以是麦克风或者处理器或者传感器,所述检测单元603可以是处理器或者收发器或者传感器,所述处理单元604可以是处理器。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种麦克风堵孔检测方法的部分或全部步骤。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种麦克风堵孔检测方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的 部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种麦克风堵孔检测方法,其特征在于,应用于无线耳机,所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,所述方法包括:
    在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量;
    当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频;
    确定所述第二音频的基准参数;
    当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。
  2. 根据权利要求1所述的方法,其特征在于,所述检测到所述第一音频的第一参数与所述基准参数不匹配,包括:
    检测到所述第一音频的所述第一参数与所述基准参数之间的差值大于预设差值阈值,所述第一参数包括以下任意一种或多种:音量、能量、音色、音频。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二无线耳机处于非堵孔状态,所述当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,包括:
    当检测到所述第一电量大于所述第二电量时,比较所述第二电量与所述移动终端的第三电量;
    确定所述第二电量大于所述第三电量,并行执行所述第一操作和所述第二操作。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,所述方法还包括:
    检测到第一语音数据的获取指令;
    所述第一音频和所述第二音频为所述第一语音数据的部分音频数据,所述确定所述第一无线耳机处于堵孔状态之后,所述方法还包括:禁用所述第一麦克风,切换为所述第二无线耳机的第三麦克风获取第三音频,所述第三音频为所述第一语音数据中除所述第一音频之外的音频数据。
  5. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定所述第一无线耳机处于堵孔状态之后,所述方法还包括:
    当检测到第二语音数据的获取指令时,确定所述移动终端的第四电量与所述第二无线耳机的第五电量;
    当检测到所述第四电量大于所述第五电量时,通过所述移动终端获取所述第二语音数据。
  6. 根据权利要求1-3任一项所述的方法,其特征在于,所述确定所述第一无线耳机处于堵孔状态之后,所述方法还包括:
    当检测到所述第一无线耳机和所述第二无线耳机均处于充电盒充电状态时,发送所述第一无线耳机处于堵孔状态的通知消息给所述充电盒,所述通知消息用于指示所述充电盒通过第一充电功率给所述第一无线耳机充电,通过第二充电功率给所述第二无线耳机充电,所述第一充电功率小于所述第二充电功率。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,所述方法还包括:
    获取所述第一无线耳机的第一姿态参数和所述第二无线耳机的第二姿态参数;
    根据所述第一姿态参数和所述第二姿态参数确定所述第一无线耳机和所述第二无线耳机均处于所述被佩戴状态。
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,所述方法还包括:
    获取所述第一无线耳机中的多个第一压力传感器的第一压力值和所述第二无线耳机中的多个第二压力传感器的第二压力值;
    根据多个所述第一压力值和多个所述第二压力值确定所述第一无线耳机和所述第二无线耳机均处于所述被佩戴状态。
  9. 根据权利要求1-6任一项所述的方法,其特征在于,所述在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,所述方法还包括:
    检测所述第一无线耳机与所述移动终端的第一通信连接状态和所述第二无线耳机与所述移动终端的第二通信连接状态;
    根据所述第一通信连接状态和所述第二通信连接状态确定所述第一无线耳机和所述第二无线耳机均处于所述被佩戴状态。
  10. 一种麦克风堵孔检测装置,其特征在于,应用于无线耳机,所述无线耳机连接移动终端,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机包括第一麦克风,所述移动终端包括第二麦克风,所述麦克风堵孔检测装置包括确定单元、接收单元和检测单元,其中:
    所述确定单元,用于在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量;
    所述接收单元,用于当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作,所述第一操作为通过所述第一麦克风获取第一音频,所述第二操作为通过所述第二麦克风获取第二音频;
    所述确定单元还用于,确定所述第二音频的基准参数;
    所述检测单元,用于当检测到所述第一音频的第一参数与所述基准参数不匹配时,确定所述第一无线耳机处于堵孔状态。
  11. 根据权利要求10所述的装置,其特征在于,在所述检测到所述第一音频的第一参数与所述基准参数不匹配方面,所述检测单元具体用于:检测到所述第一音频的所述第一参数与所述基准参数之间的差值大于预设差值阈值,所述第一参数包括以下任意一种或多种:音量、能量、音色、音频。
  12. 根据权利要求10或11所述的装置,其特征在于,所述第二无线耳机处于非堵孔状态,在所述当检测到所述第一电量大于所述第二电量时,并行执行第一操作和第二操作方面,所述接收单元具体用于:当检测到所述第一电量大于所述第二电量时,比较所述第二电量与所述移动终端的第三电量;以及用于确定所述第二电量大于所述第三电量,并行执行所述第一操作和所述第二操作。
  13. 根据权利要求10-12任一项所述的装置,其特征在于,所述麦克风堵孔检测装置还包括处理单元,其中,
    所述检测单元在所述确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,还用于:检测到第一语音数据的获取指令;
    所述第一音频和所述第二音频为所述第一语音数据的部分音频数据,所述处理单元在所述确定所述第一无线耳机处于堵孔状态之后,还用于:禁用所述第一麦克风,切换为所述第二无线耳机的第三麦克风获取第三音频,所述第三音频为所述第一语音数据中除所述第一音频之外的音频数据。
  14. 根据权利要求10-12任一项所述的装置,其特征在于,所述处理单元在所述确定所述第一无线耳机处于堵孔状态之后,还用于:当检测到第二语音数据的获取指令时,确定所述移动终端的第四电量与所述第二无线耳机的第五电量;以及用于当检测到所述第四电量大于所述第五电量时,通过所述移动终端获取所述第二语音数据。
  15. 根据权利要求10-12任一项所述的装置,其特征在于,所述处理单元在所述确定所述第一无线耳机处于堵孔状态之后,还用于:当检测到所述第一无线耳机和所述第二无线耳机均处于充电盒充电状态时,发送所述第一无线耳机处于堵孔状态的通知消息给所述充电盒,所述通知消息用于指示所述充电盒通过第一充电功率给所述第一无线耳机充电,通过第二充电功率给所述第二无线耳机充电,所述第一充电功率小于所述第二充电功率。
  16. 根据权利要求10-15任一项所述的装置,其特征在于,所述确定单元在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,还用于:获取所述第一无线耳机的第一姿态参数和所述第二无线耳机的第二姿态参数;以及用于根据所述第一姿态参数和所述第二姿态参数确定所述第一无线耳机和所述第二无线耳机均处于所述被佩戴状态。
  17. 根据权利要求10-15任一项所述的装置,其特征在于,所述确定单元在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,还用于:获取所述第一无线耳机中的多个第一压力传感器的第一压力值和所述第二无线耳机中的多个第二压力传感器的第二压力值;以及用于根据多个所述第一压力值和多个所述第二压力值确定所述第一无线耳机和所述第二无线耳机均处于所述被佩戴状态。
  18. 根据权利要求10-15任一项所述的装置,其特征在于,所述确定单元在所述第一无线耳机和所述第二无线耳机均处于被佩戴状态时,确定所述第一无线耳机的第一电量和所述第二无线耳机的第二电量之前,还用于:检测所述第一无线耳机与所述移动终端的第一通信连接状态和所述第二无线耳机与所述移动终端的第二通信连接状态;以及用于根据所述第一通信连接状态和所述第二通信连接状态确定所述第一无线耳机和所述第二无线耳机均处于所述被佩戴状态。
  19. 一种无线耳机,其特征在于,包括:处理器,存储器,以及一个或多个程序;所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所描述的方法中的步骤的指令。
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2019/088021 2018-07-26 2019-05-22 麦克风堵孔检测方法及相关产品 WO2020019843A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19840201.8A EP3820168B1 (en) 2018-07-26 2019-05-22 Microphone hole blockage detection method and related product
US17/155,841 US11425520B2 (en) 2018-07-26 2021-01-22 Method for detecting blocking of microphone and related products

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810841699.2A CN109089201B (zh) 2018-07-26 2018-07-26 麦克风堵孔检测方法及相关产品
CN201810841699.2 2018-07-26

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/155,841 Continuation US11425520B2 (en) 2018-07-26 2021-01-22 Method for detecting blocking of microphone and related products

Publications (1)

Publication Number Publication Date
WO2020019843A1 true WO2020019843A1 (zh) 2020-01-30

Family

ID=64830981

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/088021 WO2020019843A1 (zh) 2018-07-26 2019-05-22 麦克风堵孔检测方法及相关产品

Country Status (4)

Country Link
US (1) US11425520B2 (zh)
EP (1) EP3820168B1 (zh)
CN (1) CN109089201B (zh)
WO (1) WO2020019843A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114708884A (zh) * 2022-04-22 2022-07-05 歌尔股份有限公司 一种声音信号处理方法、装置、音频设备及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089201B (zh) * 2018-07-26 2020-04-17 Oppo广东移动通信有限公司 麦克风堵孔检测方法及相关产品
CN112804667A (zh) * 2019-11-13 2021-05-14 络达科技股份有限公司 无线蓝牙音讯输出系统与其控制方法
CN113747332A (zh) * 2020-05-29 2021-12-03 北京小米移动软件有限公司 检测音频播放设备播放状态的方法、装置、设备及介质
CN111866644B (zh) * 2020-07-14 2022-02-22 歌尔科技有限公司 蓝牙耳机、蓝牙耳机的检测方法、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005120177A2 (ja) * 2004-06-08 2005-12-22 Brother Kogyo Kabushiki Kaisha 音声通信装置
CN101911730A (zh) * 2008-01-31 2010-12-08 高通股份有限公司 向用户发信号通知麦克风遮盖
CN105979053A (zh) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 移动终端中麦克风的检测方法、装置以及移动终端
CN106302905A (zh) * 2016-07-29 2017-01-04 努比亚技术有限公司 麦克风模式切换方法及移动终端
CN106453970A (zh) * 2016-09-05 2017-02-22 广东欧珀移动通信有限公司 语音接收质量检测方法、装置和终端设备
CN109089201A (zh) * 2018-07-26 2018-12-25 Oppo广东移动通信有限公司 麦克风堵孔检测方法及相关产品

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110317848A1 (en) * 2010-06-23 2011-12-29 Motorola, Inc. Microphone Interference Detection Method and Apparatus
CN102300140B (zh) * 2011-08-10 2013-12-18 歌尔声学股份有限公司 一种通信耳机的语音增强方法及降噪通信耳机
US9699581B2 (en) * 2012-09-10 2017-07-04 Nokia Technologies Oy Detection of a microphone
WO2014149050A1 (en) * 2013-03-21 2014-09-25 Nuance Communications, Inc. System and method for identifying suboptimal microphone performance
CN105323363B (zh) 2014-06-30 2019-07-12 中兴通讯股份有限公司 选择主麦克风的方法及装置
DE112016000545B4 (de) * 2015-01-30 2019-08-22 Knowles Electronics, Llc Kontextabhängiges schalten von mikrofonen
WO2017035771A1 (zh) * 2015-09-01 2017-03-09 华为技术有限公司 语音通路的检测方法、装置和终端
CN105554202A (zh) * 2015-09-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 一种麦克风的控制方法和装置
CN106911996A (zh) * 2017-03-03 2017-06-30 广东欧珀移动通信有限公司 麦克风状态的检测方法、装置及终端设备
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 (zh) * 2018-06-19 2020-10-09 美特科技(苏州)有限公司 听力保护耳机及其听力保护方法、计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005120177A2 (ja) * 2004-06-08 2005-12-22 Brother Kogyo Kabushiki Kaisha 音声通信装置
CN101911730A (zh) * 2008-01-31 2010-12-08 高通股份有限公司 向用户发信号通知麦克风遮盖
CN105979053A (zh) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 移动终端中麦克风的检测方法、装置以及移动终端
CN106302905A (zh) * 2016-07-29 2017-01-04 努比亚技术有限公司 麦克风模式切换方法及移动终端
CN106453970A (zh) * 2016-09-05 2017-02-22 广东欧珀移动通信有限公司 语音接收质量检测方法、装置和终端设备
CN109089201A (zh) * 2018-07-26 2018-12-25 Oppo广东移动通信有限公司 麦克风堵孔检测方法及相关产品

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3820168A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114708884A (zh) * 2022-04-22 2022-07-05 歌尔股份有限公司 一种声音信号处理方法、装置、音频设备及存储介质
CN114708884B (zh) * 2022-04-22 2024-05-31 歌尔股份有限公司 一种声音信号处理方法、装置、音频设备及存储介质

Also Published As

Publication number Publication date
EP3820168A4 (en) 2021-08-04
CN109089201A (zh) 2018-12-25
US11425520B2 (en) 2022-08-23
CN109089201B (zh) 2020-04-17
EP3820168A1 (en) 2021-05-12
US20210144500A1 (en) 2021-05-13
EP3820168B1 (en) 2023-05-10

Similar Documents

Publication Publication Date Title
WO2020019843A1 (zh) 麦克风堵孔检测方法及相关产品
KR101956226B1 (ko) 무선 오디오 출력 디바이스
EP3621068A1 (en) Portable smart voice interaction control device, method and system
WO2020019820A1 (zh) 麦克风堵孔检测方法及相关产品
WO2020019821A1 (zh) 麦克风堵孔检测方法及相关产品
WO2020010579A1 (zh) 一种带具有语音交互功能耳机的智能手表
US10630826B2 (en) Information processing device
US11395059B2 (en) Master/slave switching method for wearable apparatus and related product
WO2020019857A1 (zh) 麦克风堵孔检测方法及相关产品
US11553268B2 (en) Wireless headset
WO2019237462A1 (zh) 一种电量提示方法、tws耳机以及耳机充电设备
CN108882084B (zh) 一种可穿戴设备电量均衡方法及相关产品
CN108834013B (zh) 一种可穿戴设备电量均衡方法及相关产品
WO2020019844A1 (zh) 语音数据处理方法及相关产品
WO2020082387A1 (zh) 音频通道更换方法及相关设备
WO2020082391A1 (zh) 无线耳机的控制方法及相关产品
WO2018201943A1 (zh) 一种设备控制方法、装置及系统
CN114866998B (zh) 一种蓝牙连接方法及蓝牙设备
CN109151699B (zh) 麦克风堵孔检测方法及相关产品
WO2020042491A9 (zh) 一种耳机远场交互方法、耳机远场交互配件及无线耳机
CN105933816A (zh) 无线耳机及其播放方法和装置、耳机数据线以及播放设备
WO2020019822A1 (zh) 麦克风堵孔检测方法及相关产品
US20240357278A1 (en) Operation control method of headset, ring headset and storage medium
CN108882085B (zh) 一种可穿戴设备电量均衡方法及相关产品
CN115967928A (zh) 耳机音频播放方法、装置、设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19840201

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019840201

Country of ref document: EP

Effective date: 20210204