WO2020019821A1 - Microphone hole-blockage detection method and related product - Google Patents

Microphone hole-blockage detection method and related product Download PDF

Info

Publication number
WO2020019821A1
WO2020019821A1 PCT/CN2019/085879 CN2019085879W WO2020019821A1 WO 2020019821 A1 WO2020019821 A1 WO 2020019821A1 CN 2019085879 W CN2019085879 W CN 2019085879W WO 2020019821 A1 WO2020019821 A1 WO 2020019821A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless headset
microphone
audio
preset
wireless
Prior art date
Application number
PCT/CN2019/085879
Other languages
French (fr)
Chinese (zh)
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广东移动通信有限公司
Publication of WO2020019821A1 publication Critical patent/WO2020019821A1/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
    • 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/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • 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

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 and timeliness of plugging detection.
  • 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 includes a first wireless headset and a second wireless headset.
  • the earphone includes at least one speaker, the first wireless earphone includes a microphone, and the method includes:
  • an embodiment of the present application provides a device for detecting a plugging of a microphone, which is applied to a wireless headset.
  • the wireless headset includes a first wireless headset and a second wireless headset.
  • the earphone includes at least one speaker
  • the first wireless earphone includes a microphone
  • the microphone plugging detection device includes a transmitting unit, a receiving unit, and a determining unit, wherein:
  • the transmitting unit is configured to control the speaker to emit a first audio of a preset frequency band when it is detected that the first wireless headset is in a worn state;
  • the receiving unit is configured to receive the second audio in the preset frequency band through the microphone of the first wireless headset within a preset period;
  • the determining unit is configured to determine, according to the second audio, that the microphone of 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.
  • FIG. 6 is a functional block diagram of a 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 headset system 100, which includes an electronic device 101, a first wireless headset 102, and a second wireless headset 103.
  • the system uses any one of the following communication mechanisms.
  • the electronic device 101 establishes a first communication link with the first wireless headset 102, and the first wireless headset 102 and the second wireless headset 103 establish a second communication link, that is, the first wireless headset 102 and
  • the communication mechanism between the second wireless headset 103 and the electronic device 101 adopts a master-slave communication mechanism (specifically, the Bluetooth protocol can be used).
  • the electronic device 101 establishes a first communication link with the first wireless headset 102.
  • the electronic device 101 and the second wireless earphone 103 establish a second communication link, that is, the first wireless earphone 102 and the second wireless earphone 103 are main earphones that directly communicate with the electronic device 101, and the main earphone directly communicates with the second earphone 103.
  • the electronic device 101 establishes a communication link for a preset type of data interaction.
  • the headset is transferred from the headset, that is, the headset, and then performs a preset type of data interaction with the electronic device 101.
  • the type data includes media data and / or call data, where the media data is audio data and / or video data other than the call voice data of the electronic device 101, the call data is the call voice data of the electronic device 101, and the first wireless The earphone 102 and the second wireless earphone 103 may be a Bluetooth wireless earphone or the like.
  • the electronic device 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 provided in an embodiment of the present application, which is applied to a wireless headset.
  • the wireless headset includes a first wireless headset and a second wireless headset.
  • the earphone and the second wireless earphone include at least one speaker, and the first wireless earphone includes a microphone.
  • the method for detecting the plugging of a microphone includes:
  • the wireless headset may determine that the first wireless headset is in the worn state by detecting contact between the first wireless headset and the contour of the ear through multiple proximity sensors or pressure sensors, or may be determined by the first
  • the attitude parameter of the wireless headset is used to determine that the wireless headset is in the worn state, and the first wireless headset is also determined to be in the worn state by detecting a communication identifier that the first wireless headset is successfully connected to the electronic device. Wait, it is not uniquely limited here.
  • the wireless earphone controls the speaker to emit the first audio from a region outside the ear region of the speaker, so that the detection while using the earphone, for example, from the ear
  • the leak hole in the back of the area emits the first audio.
  • the leak hole is used to balance the air pressure inside and outside the sound cavity to prevent the diaphragm of the speaker from bulging or contracting due to the difference in air pressure before and after.
  • the first audio frequency may be greater than 20000 Hz.
  • Super audio at this time the preset frequency band can be any frequency band above 20,000 Hz, or an audible sound that can be heard by human ears with a frequency between 20,000 Hz and 20 Hz. At this time, the preset frequency band can be 20,000 Hz to Any frequency band between 20 Hz is not limited here.
  • the first audio when there is no ambient sound interference, the first audio may be an audible sound that can be heard by the human ear, and when there is ambient sound interference, the first audio may be the above-mentioned ultrasonic wave, wherein, The wireless earphone may have a built-in decibel detector to detect ambient sound volume to determine whether there is ambient sound interference.
  • the first wireless earphone needs to control the speaker to emit the first sound when there is an obstruction.
  • the obstruction can be any object that can block the speaker within a certain range, for example, it can be a second wireless headset.
  • the wireless headset receives the second audio in the preset frequency band through a microphone of the first wireless headset.
  • the wireless headset receives the second audio in a preset frequency band through the microphone, instead of receiving the second audio in the full frequency band, which is beneficial to reducing the interference of the first audio in other audio frequency bands and improving the accuracy of the second audio.
  • the preset period within a preset period in which the first audio is emitted for a speaker of the wireless headset, the preset period may be within 1 s, within 5 s, and the like, which is not limited herein.
  • the first audio of the preset frequency band is an ultrasonic wave with a frequency greater than 20,000 Hz
  • the first audio can be diffracted in various directions when it passes through the obstruction after being emitted by the obstruction. Therefore, Even if the microphone is not in the direction in which the speaker is transmitting ultrasonic waves, the microphone can also receive the second audio corresponding to the first audio. At this time, the second audio is the audio diffracted by the first audio.
  • the speakers and microphones of the first wireless headset and the second wireless headset are speakers and microphones that support ultrasonic transmission and reception, such as a microphone equipped with an ultrasonic microphone sensor, and the ultrasonic frequency band supported by the speakers and the microphone may be 30,000 Hz to Direct ultrasound at 20,000 Hz, not necessarily full-band ultrasound.
  • the wireless headset determines that the microphone of the first wireless headset is in a plugged state according to the second audio.
  • the specific implementation manner for determining that the microphone of the first wireless headset is in the hole blocking state according to the second audio may be various. For example, it may be to determine the range of the second audio energy according to different preset frequency bands. When the energy of the second audio is not in the energy range, the microphone is blocked, or the range of the amplitude of the second audio may be determined according to different preset frequency bands. When the amplitude of the second audio is not in the amplitude range, determine The microphone plugging hole is not limited herein.
  • the process of determining that the microphone is in the plugged state may be performed by an electronic device that is communicatively connected with the wireless headset.
  • the electronic device determines the plugged state, the electronic device sends the result to the wireless headset.
  • the wireless earphone when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
  • the determining that the microphone of the first wireless headset is in a plugged state according to the second audio includes:
  • a parameter difference between the first audio and the second audio includes any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and an energy difference;
  • audio is a kind of sound wave
  • sound wave is a kind of mechanical wave. Therefore, there is energy in the sound wave itself. This energy can be calculated from the density, frequency, amplitude, and wave velocity of the propagating medium. The average value represents the energy of sound per unit area.
  • different preset frequencies may correspond to different preset difference thresholds, and the preset difference threshold may be an experience value or an experience value obtained by a technical developer based on multiple tests before the electronic device leaves the factory, and It is preset in the electronic device.
  • the preset difference threshold may be 10 micrometers, 15 micrometers, etc., which is not limited herein.
  • the wireless headset determines the plugging state of the microphone through the relationship between the parameter difference between the first audio and the second audio and the preset difference threshold.
  • the use of the difference is beneficial to reduce the interference of the environment on single data.
  • the calculation is simple, which is helpful to improve the convenience and accuracy of the determination of the plugging state.
  • the control speaker when it is detected that the first wireless headset is in a worn state, the control speaker emits first audio of a preset frequency band, including:
  • a first prompt message is sent, and the first prompt message is used to prompt a user to place the second wireless headset in a preset position, where the preset position is the A position of a speaker of the second wireless headset facing the microphone of the first wireless headset;
  • the preset frequency band is a frequency band in which an ultrasonic wave is located.
  • the first prompt message may be a preset voice message to prompt the user to place the second wireless headset in a preset position
  • the preset voice message may be voice data preset in the wireless headset before the wireless headset leaves the factory.
  • the electronic device may be notified by the wireless headset to output a text form as the first prompt message, etc., which is not limited here.
  • the preset position is a position where a speaker of the second wireless earphone faces the microphone of the first wireless earphone, that is, a microphone of the first wireless earphone emits first audio toward the speaker of the second wireless earphone. Audio range.
  • the wireless earphone detects that the second wireless earphone is located in the preset position, may be determined after the first prompt message is sent out for a period of time, and the second wireless earphone is already located in the preset position, or may be determined by a user For the touch operation of the first wireless headset or the electronic device, it is determined that the second wireless headset is already located in the preset position.
  • the touch operation may be, for example, a user double-clicking the electronic device or double-clicking the first wireless headset. No restrictions.
  • the second wireless earphone when the wireless earphone is in the worn state, the second wireless earphone is placed in a preset position where the first wireless earphone can receive the second audio, and the first audio is emitted through the speaker of the second wireless earphone, avoiding
  • the first wireless headset cannot detect the situation of the microphone plugging during the wearing process, and the second wireless headset directly receives the second audio in the transmission direction of the first audio through the microphone of the first wireless headset without receiving the second audio reflected by the first audio. Audio, which helps improve the timeliness of hole plugging detection.
  • controlling the speaker to emit first audio in a preset frequency band includes:
  • the preset direction is a direction that matches the transmission direction of the first audio
  • the speaker When the presence of the obstruction is detected, the speaker is controlled to emit the first audio in the preset frequency band, and the preset frequency band is a frequency band in which an ultrasonic wave is located.
  • the first wireless headset is provided with a camera to obtain image information, and the obstruction may be a person, an object, etc., which is not limited herein.
  • the wireless headset determines whether there is an obstruction by acquiring image information. Controlling the first audio in the ultrasonic frequency band in the presence of the obstruction is beneficial to ensure that the first audio is diffracted. Two-tone audio improves the effectiveness of hole plugging detection.
  • the method further includes:
  • determining a distance parameter between the second wireless headset and the first wireless headset may determine a signaling transmission duration through a signaling interaction between the first wireless headset and the second wireless headset, and according to the signaling transmission The duration and the transmission speed determine the distance parameter between the first wireless headset and the second wireless headset.
  • the wireless headset after determining that the microphone is in a plugged state, the wireless headset detects the distance parameter between the second wireless headset and the first wireless headset when receiving the first voice data acquisition instruction.
  • the distance parameter is less than a preset distance threshold
  • switching the second wireless headset to receive the first voice data is beneficial to improving the integrity of the first voice data acquisition.
  • the method further includes:
  • a second prompt message is sent, and the second prompt message is used to prompt the user to place the second wireless headset in the first A wireless headset is located within a preset range;
  • the second voice data is determined according to first reference voice data picked up by a microphone of the first wireless headset and second reference voice data picked up by a microphone of the second wireless headset.
  • the specific implementation manner of determining that the microphone of the second wireless headset is in the hole blocking state is the same as the detection method of determining that the microphone of the first wireless headset is in the hole blocking state, and details are not described herein.
  • the report information is information about the second wireless earphone being in a hole blocking state sent by the second wireless earphone to the first wireless earphone.
  • the second prompt message may be a preset voice message prompting the user to place the second wireless headset in a preset range
  • the preset voice message may be voice data preset in the wireless headset before the wireless headset leaves the factory, or
  • the electronic device may be notified by the wireless headset to output a text form as the second prompt message, etc., which is not limited here.
  • the specific implementation manner of detecting that the second wireless headset is located within the preset range where the first wireless headset is located is the same as the specific implementation manner of determining that the second wireless headset is located at the preset position, I won't go into details here.
  • the specific implementation manner of determining the second voice data according to the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset may be various. For example, it may be judged that the first reference voice data and the second reference voice data have actual voice durations with amplitude fluctuations, and the reference voice data with a longer actual voice duration is determined as the voice data, or may be the first reference The voice data and the second reference voice data are synthesized into the voice data, which is not limited herein.
  • the first wireless headset and the second wireless headset when the first wireless headset and the second wireless headset are in the plugged state, the first wireless headset and the second wireless headset collectively pick up voice data, and obtain the first
  • the determination of the second voice data by the reference voice data and the second reference voice data obtained by the second wireless headset is conducive to ensuring the integrity of the second voice data and effectively ensuring the complete semantics of the second voice data.
  • the determining the second voice data according to the first reference voice data picked up by a microphone of the first wireless headset and the second reference voice data picked up by a microphone of the second wireless headset includes: :
  • the second voice data is combined according to the first data segment group and the second data segment.
  • the first time interval may be, for example, 1 s, 5 s, and the like, and the second time interval may be the same as the first time interval or different from the first time interval.
  • a specific implementation manner of combining the first data segment group and the second data segment into the second voice data may be the second data corresponding to each time in the first data segment group.
  • the data segments in the segment group are compared to determine that the data segment with a large amount of data in the same time period is the data segment at the time corresponding to the voice data, for example, the data segment corresponding to 0s-5s in the first data segment group
  • the amount of data on the data segment is 0bit
  • the amount of data on the data segment corresponding to 0s-5s in the second data segment group is 10bit, then the data segment corresponding to 0s-5s in the synthesized speech data is 0s- 5s corresponding data segment.
  • the wireless headset divides the first reference voice data and the second reference voice data into a plurality of data segments, and synthesizes the first reference voice data and the second reference voice data by the time corresponding to the data segments.
  • the second voice data is beneficial to improving the intelligence of obtaining the second voice data.
  • the integrity of the second voice data is further improved.
  • FIG. 3 is a schematic flowchart of another method for detecting a hole blocking of a microphone provided in an embodiment of the present application, which is applied to a wireless headset.
  • a wireless earphone and a second wireless earphone, the first wireless earphone and the second wireless earphone include at least one speaker, and the first wireless earphone includes a microphone.
  • the method for detecting a plugging of a microphone includes:
  • the wireless headset acquires image information when it is detected that the first wireless headset is in a worn state.
  • the wireless headset determines whether there is an obstruction in a preset direction according to the image information, and the preset direction is a direction that matches a transmission direction of the first audio.
  • the wireless earphone When the wireless earphone detects the presence of the obstruction, control the speaker to emit the first audio in a preset frequency band, where the preset frequency band is a frequency band in which an ultrasonic wave is located.
  • the wireless headset receives the second audio in the preset frequency band through a microphone of the first wireless headset.
  • the wireless headset determines a parameter difference between the first audio and the second audio.
  • the parameter difference includes any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and energy. Difference.
  • the wireless headset detects that the parameter difference is greater than a preset difference threshold, it determines that the microphone is in a plugged state.
  • the wireless headset receives the first voice data from the second wireless headset.
  • the wireless earphone when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
  • the wireless headset determines whether there is an obstruction by acquiring image information. Controlling the first audio in the ultrasonic frequency band in the presence of the obstruction helps to ensure that the first audio is diffracted, that is, the microphone can receive the second audio, which improves The effectiveness of the plugging detection is shown.
  • the wireless headset determines the plugging state of the microphone through the relationship between the parameter difference between the first audio and the second audio and the preset difference threshold.
  • the use of the difference is beneficial to reduce the interference of the environment on single data, and the calculation is simple. Conducive to improving the convenience and accuracy of hole plugging status determination.
  • the wireless earphone After determining that the microphone is in a plugged state, the wireless earphone detects a distance parameter between the second wireless earphone and the first wireless earphone when receiving the acquisition instruction of the first voice data. When the distance parameter is less than a preset distance threshold, the wireless earphone is switched. The two wireless headsets receive the first voice data, which is beneficial to improving the integrity of the first voice data acquisition.
  • FIG. 4 is a schematic flowchart of another method for detecting a microphone plugging hole provided by an embodiment of the present application, which is applied to a wireless headset.
  • the wireless headset includes a first A wireless earphone and a second wireless earphone, the first wireless earphone and the second wireless earphone include at least one speaker, and the first wireless earphone includes a microphone.
  • the method for detecting a plugging of a microphone includes:
  • the wireless headset When detecting that the first wireless headset is in a worn state, the wireless headset sends a first prompt message, where the first prompt message is used to prompt a user to place a second wireless headset in a preset position, where the preset The position is a position where a speaker of the second wireless earphone faces a microphone of the first wireless earphone.
  • the wireless headset receives the second audio in the preset frequency band through a microphone of the first wireless headset.
  • the wireless headset determines a parameter difference between the first audio and the second audio.
  • the parameter difference includes any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and energy. Difference.
  • the wireless headset When the wireless headset receives the report information that the microphone of the second wireless headset is in the hole blocking state, the wireless headset sends a second prompt message, and the second prompt message is used to prompt the user to send the second wireless headset.
  • the earphone is placed in a preset range where the first wireless earphone is located.
  • the wireless headset detects that the second wireless headset is within the preset range where the first wireless headset is located, control the microphone of the first wireless headset and the second wireless headset.
  • the microphone performs a pickup operation.
  • the wireless headset determines the second voice data according to the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset.
  • the wireless earphone when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
  • the second wireless headset when the wireless headset is in the worn state, the second wireless headset is placed in a preset position where the first wireless headset can receive the second audio, and the first audio is emitted through the speaker of the second wireless headset, thereby avoiding the first wireless headset During the wearing process, it is impossible to detect the situation of the microphone plugging.
  • the microphone of the first wireless headset directly receives the second audio in the transmission direction of the first audio without receiving the second audio reflected by the first audio, which is beneficial. Improve the timeliness of hole plugging detection.
  • the wireless headset picks up voice data through the first wireless headset and the second wireless headset, and obtains the first reference voice data and The second reference voice data obtained by the second wireless headset determines the second voice data together, which is beneficial to ensuring the integrity of the second voice data and effectively guarantees the complete semantics of the second voice data.
  • the wireless headset determines the plugging state of the microphone through the relationship between the parameter difference between the first audio and the second audio and the preset difference threshold.
  • the use of the difference is beneficial to reduce the interference of the environment on single data, and the calculation is simple. Conducive to improving the convenience and accuracy of hole plugging status determination.
  • FIG. 5 is a schematic structural diagram of a wireless earphone 500 according to an embodiment of the present application.
  • a second wireless headset, the first wireless headset and the second wireless headset include at least one speaker, and the first wireless headset includes a microphone.
  • the wireless headset includes a processor 501, a memory 502, and a communication interface. 503 and one or more programs 504, wherein the one or more programs 504 are stored in the memory 502 and configured to be executed by the processor 501, and the programs include instructions for performing the following steps;
  • the wireless earphone when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
  • the instructions in the program 504 are specifically used to perform the following operations: determine the first A parameter difference between the audio and the second audio, the parameter difference including any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and an energy difference; and When the parameter difference is greater than a preset difference threshold, it is determined that the microphone is in the hole blocking state.
  • the instructions in the program 504 are specifically used to perform the following operations :
  • a first prompt message is sent, and the first prompt message is used to prompt a user to place the second wireless headset in a preset position, where the preset position is A position of the speaker of the second wireless headset facing the microphone of the first wireless headset; and for controlling the speaker of the second wireless headset to issue the pre-set when the second wireless headset is in the preset position
  • the first audio frequency band is set, and the preset frequency band is a frequency band where the ultrasound waves are located.
  • the instructions in the program 504 are specifically used to perform the following operations Acquiring image information when the first wireless headset is detected to be in a worn state; and for determining whether there is an obstruction in a preset direction according to the image information, the preset direction is related to the first audio A direction in which the emission direction of the antenna matches; and when the presence of the obstruction is detected, controlling the speaker to emit the first audio in the preset frequency band, where the preset frequency band is a frequency band in which the ultrasound wave is located.
  • the foregoing program 504 further includes instructions for performing the following steps: After determining that the microphone of the first wireless headset is in a plugged state according to the second audio, when receiving Determining a distance parameter between the second wireless earphone and the first wireless earphone when the first acquisition instruction of the data; and for notifying the second when it is detected that the distance parameter is less than a preset distance threshold A wireless headset receives the first voice data; and is configured to receive the first voice data from the second wireless headset.
  • the above-mentioned program 504 further includes instructions for performing the following steps: After determining that the microphone of the first wireless headset is in a plugged state according to the second audio, when receiving a response to the second voice, When the second acquisition instruction of the data determines whether the microphone of the second wireless headset is in the plugged state; and for receiving report information that the microphone of the second wireless headset is in the plugged state, Sending a second prompt message, the second prompt message is used to prompt the user to place the second wireless headset within a preset range where the first wireless headset is located; and when the second wireless headset is detected When the earphone is located within the preset range where the first wireless earphone is located, controlling a microphone of the first wireless earphone and a microphone of the second wireless earphone to perform a pickup operation; and The first reference voice data picked up by the microphone of the wireless headset and the second reference voice data picked up by the microphone of the second wireless headset determine the second voice It is.
  • the second voice data is determined in terms of the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset.
  • the instructions in the program 504 are specifically used to perform the following operations: dividing the first reference voice data picked up by the microphone of the first wireless headset into a plurality of first data fragment groups according to a first time interval; and Dividing the second reference voice data picked up by the microphone of the second wireless headset into a plurality of second data segment groups according to a second time interval; and for using the first data segment group and the second The data segments are combined into the second speech data.
  • 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. 6 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, the wireless headset includes a first wireless headset and a second wireless headset, the first wireless headset and the second wireless headset include at least one speaker, and the first wireless headset
  • the earphone includes a microphone, and the microphone plugging detection device 600 includes a transmitting unit 601, a receiving unit 602, and a determining unit 603.
  • the transmitting unit 601 is configured to control the speaker to emit first audio in a preset frequency band when it is detected that the first wireless headset is in a worn state;
  • the receiving unit 602 is configured to receive a second audio in the preset frequency band through a microphone of the first wireless headset within a preset period;
  • the determining unit 603 is configured to determine, according to the second audio, that the microphone of the first wireless headset is in a plugged state.
  • the wireless earphone when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
  • the determining unit 603 is specifically configured to determine that the first audio and the first audio A parameter difference value of the second audio, the parameter difference value including any one or more of the following: a volume difference value, an amplitude difference value, a frequency difference value, and an energy difference value;
  • the difference threshold is set, it is determined that the microphone is in the hole blocking state.
  • the transmitting unit 601 when it is detected that the first wireless headset is in a worn state, controlling the speaker to emit a first audio aspect of a preset frequency band, the transmitting unit 601 is specifically configured to: When the first wireless headset is in a worn state, a first prompt message is issued, and the first prompt message is used to prompt a user to place the second wireless headset at a preset position, and the preset position is the second wireless headset.
  • the preset frequency band is a frequency band where the ultrasonic wave is located.
  • the transmitting unit 601 when it is detected that the first wireless headset is in a worn state, controlling the speaker to emit a first audio aspect of a preset frequency band, the transmitting unit 601 is specifically configured to: When the first wireless earphone is in a worn state, acquiring image information; and for determining whether there is an obstruction in a preset direction according to the image information, the preset direction is matching the transmission direction of the first audio Direction; and for controlling the speaker to emit the first audio in the preset frequency band when the obstruction is detected, the preset frequency band being a frequency band in which the ultrasound wave is located.
  • the microphone plugging detection device 600 further includes a first processing unit, where the first processing unit determines that the microphone of the first wireless headset is in a plugging state according to the second audio. After that, it is used for: determining a distance parameter between the second wireless headset and the first wireless headset when receiving a first acquisition instruction for the first voice data; and for detecting the distance parameter when the first wireless headset is received; When it is less than the preset distance threshold, the second wireless headset is notified to receive the first voice data; and is configured to receive the first voice data from the second wireless headset.
  • the first processing unit determines that the microphone of the first wireless headset is in a plugging state according to the second audio. After that, it is used for: determining a distance parameter between the second wireless headset and the first wireless headset when receiving a first acquisition instruction for the first voice data; and for detecting the distance parameter when the first wireless headset is received; When it is less than the preset distance threshold, the second wireless headset is notified to receive the first voice data; and is configured to receive the first voice data from the second wireless
  • the microphone plugging detection device 600 further includes a second processing unit, where the second processing unit determines that the microphone of the first wireless headset is in a plugging state according to the second audio. After that, it is used to: determine whether the microphone of the second wireless headset is in the plugged state when receiving a second acquisition instruction for the second voice data; and When the microphone is in the reporting information of the hole blocking state, a second prompt message is issued, and the second prompt message is used to prompt the user to place the second wireless headset within a preset range where the first wireless headset is located. And for controlling the microphone of the first wireless headset and the microphone of the second wireless headset to execute when it is detected that the second wireless headset is within the preset range where the first wireless headset is located. Sound pickup operation; and a second reference voice data picked up according to a microphone of the first wireless earphone and a second reference voice data picked up by a microphone of the second wireless earphone Determining a test voice data of the second voice data.
  • the second voice data is determined in terms of the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset.
  • the second processing unit is specifically configured to divide the first reference voice data picked up by the microphone of the first wireless headset into a plurality of first data fragment groups according to a first time interval; and The second reference voice data picked up by the microphone of the second wireless earphone is divided into a plurality of second data segment groups according to a second time interval; and the second reference speech data is used to combine the first data segment group and the second data segment into The second voice data.
  • the transmitting unit 601 may be a speaker
  • the receiving unit 602 may be a microphone
  • the determining unit 603 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.

Abstract

Disclosed are a microphone hole-blockage detection method and a related product. The microphone hole-blockage detection method comprises: when a first wireless headset is detected as being in a worn state, controlling a loudspeaker to emit first audio in a preset frequency band; receiving second audio in the preset frequency band through a microphone of the first wireless headset within a preset time period; and determining, according to the second audio, that the microphone of the first wireless headset is in a hole blockage state. The embodiments of the present application facilitate expanding the function of a wireless headset without adding a hardware structure, such that the convenience and timeliness of hole blockage detection are improved.

Description

麦克风堵孔检测方法及相关产品Microphone plugging detection method and related products 技术领域Technical field
本申请涉及无线耳机技术领域,具体涉及一种麦克风堵孔检测方法及相关产品。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.
背景技术Background technique
随着电子设备(例如,智能手机)的大量普及与快速发展,各式各样的耳机已成为人们常用于收听媒体的装置,而且,由于有线耳机的耳机线经常出现损坏,导致耳机寿命减短,花销较高,无线耳机应运而生。With the widespread and rapid development of electronic devices (e.g., smart phones), various types of headphones have become devices commonly used by people to listen to media, and the life of the headphones is shortened due to the frequent damage to the cable of wired headphones. , The cost is higher, wireless headphones came into being.
目前,人们经常会发现麦克风出现堵孔的现象,例如灰尘堵孔、水滴堵孔等,这便导致无线耳机通过麦克风获取的语音数据出现声音断续、音量较小的情况,影响用户的正常使用。At present, people often find that 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. .
发明内容Summary of the Invention
本申请实施例提供了一种麦克风堵孔检测方法及相关产品,可以在不增加硬件结构的情况下拓展无线耳机的功能,提升堵孔检测的便捷性和及时性。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 and timeliness of plugging detection.
第一方面,本申请实施例提供了一种麦克风堵孔检测方法,应用于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,所述方法包括:In a first aspect, 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 includes a first wireless headset and a second wireless headset. The first wireless headset and the second wireless headset. The earphone includes at least one speaker, the first wireless earphone includes a microphone, and the method includes:
当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频;When detecting that the first wireless headset is in a worn state, controlling the speaker to emit first audio in a preset frequency band;
在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频;Receiving a second audio in the preset frequency band through a microphone of the first wireless headset within a preset period;
根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。It is determined according to the second audio that the microphone of the first wireless headset is in a plugged state.
第二方面,本申请实施例提供了一种麦克风堵孔检测装置,应用于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,所述麦克风堵孔检测装置包括发射单元、接收单元和确定单元,其中:In a second aspect, an embodiment of the present application provides a device for detecting a plugging of a microphone, which is applied to a wireless headset. The wireless headset includes a first wireless headset and a second wireless headset. The first wireless headset and the second wireless headset. The earphone includes at least one speaker, the first wireless earphone includes a microphone, and the microphone plugging detection device includes a transmitting unit, a receiving unit, and a determining unit, wherein:
所述发射单元,用于当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频;The transmitting unit is configured to control the speaker to emit a first audio of a preset frequency band when it is detected that the first wireless headset is in a worn state;
所述接收单元,用于在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频;The receiving unit is configured to receive the second audio in the preset frequency band through the microphone of the first wireless headset within a preset period;
所述确定单元,用于根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。The determining unit is configured to determine, according to the second audio, that the microphone of the first wireless headset is in a plugged state.
第三方面,本申请实施例提供了一种无线耳机,包括:处理器,存储器,以及一个或多个程序;所述一个或多个程序被存储在上述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行本申请实施例第一方面任一方法中所描述的步骤的指令。According to a third aspect, 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.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储有用于电子数据交换的计算机程序,该计算机程序具体包括指令,所述指令用于执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。In a fourth aspect, 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.
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, 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.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
下面将对本申请实施例所涉及到的附图作简单地介绍。The drawings involved in the embodiments of the present application will be briefly introduced below.
图1是本申请实施例公开的一种无线耳机系统的系统架构示意图;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是本申请实施例公开的一种麦克风堵孔检测方法的流程示意图;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是本申请实施例公开的另一种麦克风堵孔检测方法的流程示意图;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是本申请实施例公开的另一种麦克风堵孔检测方法的流程示意图;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是本申请实施例公开的一种无线耳机的结构示意图;5 is a schematic structural diagram of a wireless headset disclosed in an embodiment of the present application;
图6是本申请实施例公开的一种麦克风堵孔检测装置的功能单元组成框图。FIG. 6 is a functional block diagram of a microphone plugging detection device disclosed in an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms “first”, “second”, and the like in the description and claims of the present application and the above-mentioned drawings are used to distinguish different objects, and are not used to describe a specific order. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device containing a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "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.
如图1所示,本申请实施例提供了一种无线耳机系统100,该系统包括电子设备101、第一无线耳机102、第二无线耳机103,其中,该系统使用以下任意一种通信机制,其一,所述电子设备101与第一无线耳机102建立有第一通信链路,所述第一无线耳机102与第二无线耳机103建立有第二通信链路,即第一无线耳机102和第二无线耳机103与电子设备101之间的通信机制采用主从通信机制(具体可以采用蓝牙协议),其二,所述电子设备101与第一无线耳机102建立有第一通信链路,所述电子设备101与第二无线耳机103建立有第二通信链路,即第一无线耳机102和第二无线耳机103均为与电子设备101直接进行通信的主耳机,其中,主耳机即直接与电子设备101建立通信链路进行预设类型数据交互的耳机,从耳机即通过主耳机中转后再与电子设备101进行预设类型数据交互的耳机,其中,预设类型数据包括媒体数据和/或通话数据,其中,媒体数据为电子设备101的除通话语音数据之外的音频数据和/或视频数据,通话数据为电子设备101的通话语音数据,第一无线耳机102和第二无线耳机103可以是蓝牙无线耳机等。电子设备101可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备(例如智能手表、智能手环、计步器等)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。下面对本申请实施例进行详细介绍。As shown in FIG. 1, an embodiment of the present application provides a wireless headset system 100, which includes an electronic device 101, a first wireless headset 102, and a second wireless headset 103. The system uses any one of the following communication mechanisms. First, the electronic device 101 establishes a first communication link with the first wireless headset 102, and the first wireless headset 102 and the second wireless headset 103 establish a second communication link, that is, the first wireless headset 102 and The communication mechanism between the second wireless headset 103 and the electronic device 101 adopts a master-slave communication mechanism (specifically, the Bluetooth protocol can be used). Second, the electronic device 101 establishes a first communication link with the first wireless headset 102. The electronic device 101 and the second wireless earphone 103 establish a second communication link, that is, the first wireless earphone 102 and the second wireless earphone 103 are main earphones that directly communicate with the electronic device 101, and the main earphone directly communicates with the second earphone 103. The electronic device 101 establishes a communication link for a preset type of data interaction. The headset is transferred from the headset, that is, the headset, and then performs a preset type of data interaction with the electronic device 101. Among them, It is assumed that the type data includes media data and / or call data, where the media data is audio data and / or video data other than the call voice data of the electronic device 101, the call data is the call voice data of the electronic device 101, and the first wireless The earphone 102 and the second wireless earphone 103 may be a Bluetooth wireless earphone or the like. The electronic device 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. For ease of description, the devices mentioned above are collectively referred to as electronic devices. The embodiments of the present application are described in detail below.
请参阅图2,图2是本申请实施例提供了一种麦克风堵孔检测方法的流程示意图,应用 于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,如图所示,本麦克风堵孔检测方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a method for detecting a microphone plugging hole provided in an embodiment of the present application, which is applied to a wireless headset. The wireless headset includes a first wireless headset and a second wireless headset. The earphone and the second wireless earphone include at least one speaker, and the first wireless earphone includes a microphone. As shown in the figure, the method for detecting the plugging of a microphone includes:
S201,无线耳机当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频;S201. When the wireless headset detects that the first wireless headset is in a worn state, control the speaker to emit first audio in a preset frequency band;
其中,所述无线耳机可以通过多个接近传感器或者压力传感器检测到第一无线耳机与耳朵轮廓之间的接触来确定所述第一无线耳机处于所述被佩戴状态,也可以通过所述第一无线耳机的姿态参数来确定所述无线耳机处于所述被佩戴状态,也可以通过检测到第一无线耳机与电子设备通信连接成功的通信标识来确定所述第一无线耳机处于所述被佩戴状态等,在此不做唯一限定。The wireless headset may determine that the first wireless headset is in the worn state by detecting contact between the first wireless headset and the contour of the ear through multiple proximity sensors or pressure sensors, or may be determined by the first The attitude parameter of the wireless headset is used to determine that the wireless headset is in the worn state, and the first wireless headset is also determined to be in the worn state by detecting a communication identifier that the first wireless headset is successfully connected to the electronic device. Wait, it is not uniquely limited here.
其中,当检测到所述第一无线耳机处于被佩戴状态时,所述无线耳机控制扬声器从扬声器的入耳区域之外的区域发出第一音频,这样可以实现边使用边检测的情况,例如从入耳区域的背部的泄露孔发出第一音频,泄露孔是作为平衡音腔内外气压作用,防止扬声器振膜因前后气压不等造成振膜鼓胀或者凹缩,所述第一音频可以是频率大于20000赫兹的超音频,此时预设频段可以是20000赫兹以上的任意频段,也可以是频率在20000赫兹至20赫兹之间的人耳能够听见的可闻声,此时预设频段可以是20000赫兹至20赫兹之间的任意频段,在此不做唯一限定。Wherein, when it is detected that the first wireless earphone is in a worn state, the wireless earphone controls the speaker to emit the first audio from a region outside the ear region of the speaker, so that the detection while using the earphone, for example, from the ear The leak hole in the back of the area emits the first audio. The leak hole is used to balance the air pressure inside and outside the sound cavity to prevent the diaphragm of the speaker from bulging or contracting due to the difference in air pressure before and after. The first audio frequency may be greater than 20000 Hz. Super audio, at this time the preset frequency band can be any frequency band above 20,000 Hz, or an audible sound that can be heard by human ears with a frequency between 20,000 Hz and 20 Hz. At this time, the preset frequency band can be 20,000 Hz to Any frequency band between 20 Hz is not limited here.
其中,当没有环境音干扰的情况下,所述第一音频可以为上述人耳能够听见的可闻声时,当存在环境音干扰的情况下,所述第一音频可以为上述超声波,其中,所述无线耳机可以内置分贝检测仪检测环境音量来确定是否存在环境音干扰,其中,当第一音频为是上述超声波时,所述第一无线耳机需要在有遮挡物的情况下控制扬声器发出第一音频,遮挡物可以为能够在一定范围内遮挡所述扬声器的任意物体,例如可以是第二无线耳机。Wherein, when there is no ambient sound interference, the first audio may be an audible sound that can be heard by the human ear, and when there is ambient sound interference, the first audio may be the above-mentioned ultrasonic wave, wherein, The wireless earphone may have a built-in decibel detector to detect ambient sound volume to determine whether there is ambient sound interference. When the first audio is the above-mentioned ultrasonic wave, the first wireless earphone needs to control the speaker to emit the first sound when there is an obstruction. For an audio, the obstruction can be any object that can block the speaker within a certain range, for example, it can be a second wireless headset.
S202,在预设时段内,所述无线耳机通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频;S202. In a preset period, the wireless headset receives the second audio in the preset frequency band through a microphone of the first wireless headset.
其中,所述无线耳机通过麦克风接收预设频段内的第二音频,而不是全频段接收第二音频,有利于降低其他音频频段对第一音频的干扰,提升第二音频的准确性。Wherein, the wireless headset receives the second audio in a preset frequency band through the microphone, instead of receiving the second audio in the full frequency band, which is beneficial to reducing the interference of the first audio in other audio frequency bands and improving the accuracy of the second audio.
其中,所述预设时段内,为所述无线耳机的扬声器发出第一音频的预设时段内,所述预设时段内可以是1s内、5s内等,在此不做限定。In the preset period, within a preset period in which the first audio is emitted for a speaker of the wireless headset, the preset period may be within 1 s, within 5 s, and the like, which is not limited herein.
其中,当所述预设频段的第一音频为上述频率大于20000赫兹的超声波时,由于上述遮挡物的遮挡,所述第一音频可以在发出后通过遮挡物时进行多方位的衍射,因此,即便麦克风不在扬声器发射超声波的方向上,麦克风同样可以接收到与第一音频对应的第二音频,此时第二音频为第一音频衍射出的音频。Wherein, when the first audio of the preset frequency band is an ultrasonic wave with a frequency greater than 20,000 Hz, the first audio can be diffracted in various directions when it passes through the obstruction after being emitted by the obstruction. Therefore, Even if the microphone is not in the direction in which the speaker is transmitting ultrasonic waves, the microphone can also receive the second audio corresponding to the first audio. At this time, the second audio is the audio diffracted by the first audio.
其中,所述第一无线耳机和第二无线耳机的扬声器和麦克风为支持超声波发射和接收的扬声器和麦克风,例如搭载着超声波麦克风传感器的麦克风,该扬声器和麦克风支持的超声波频段可以是30000赫兹到20000赫兹直接的超声波,而不需要是全频段的超声波。Wherein, the speakers and microphones of the first wireless headset and the second wireless headset are speakers and microphones that support ultrasonic transmission and reception, such as a microphone equipped with an ultrasonic microphone sensor, and the ultrasonic frequency band supported by the speakers and the microphone may be 30,000 Hz to Direct ultrasound at 20,000 Hz, not necessarily full-band ultrasound.
S203,所述无线耳机根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。S203. The wireless headset determines that the microphone of the first wireless headset is in a plugged state according to the second audio.
其中,根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态的具体实现方式可以是多种多样的,例如可以是根据预设频段不同,确定第二音频能量的范围,当第二音频的能量不在所述能量范围时,确定所述麦克风堵孔,或者可以是根据预设频段不同,确定第二音频振幅的范围,当第二音频的振幅不在所述振幅范围时,确定所述麦克风堵孔,在此不做限定。The specific implementation manner for determining that the microphone of the first wireless headset is in the hole blocking state according to the second audio may be various. For example, it may be to determine the range of the second audio energy according to different preset frequency bands. When the energy of the second audio is not in the energy range, the microphone is blocked, or the range of the amplitude of the second audio may be determined according to different preset frequency bands. When the amplitude of the second audio is not in the amplitude range, determine The microphone plugging hole is not limited herein.
其中,所述确定麦克风处于堵孔状态的过程可以是由与所述无线耳机通信连接的电子 设备执行,当电子设备确定堵孔状态时,电子设备将结果发送至无线耳机。The process of determining that the microphone is in the plugged state may be performed by an electronic device that is communicatively connected with the wireless headset. When the electronic device determines the plugged state, the electronic device sends the result to the wireless headset.
可以看出,本申请实施例中,无线耳机首先当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,其次,在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频,最后,根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下仅仅通过扬声器便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性和及时性,而且,通过检测麦克风的堵孔状态,可以避免用户在后续录入语音时因无法感知麦克风存在的问题导致的语音数据输入不完整的情况。It can be seen that, in the embodiment of the present application, when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
在一个可能的示例中,所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态,包括:In a possible example, the determining that the microphone of the first wireless headset is in a plugged state according to the second audio includes:
确定所述第一音频与所述第二音频的参数差值,所述参数差值包括以下任意一种或多种:音量差值、振幅差值、频率差值、能量差值;Determining a parameter difference between the first audio and the second audio, where the parameter difference includes any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and an energy difference;
当检测到所述参数差值大于预设差值阈值时,确定所述麦克风处于所述堵孔状态。When it is detected that the parameter difference is greater than a preset difference threshold, it is determined that the microphone is in the hole blocking state.
其中,音频是一种声波,而声波为一种机械波,因此,声波本身存在能量,该能量可以通过传播的介质密度、频率、振幅和波速计算得到,即单位时间流经单位面积介质的能量的平均值的多少来表示该单位面积的声音的能量。Among them, audio is a kind of sound wave, and sound wave is a kind of mechanical wave. Therefore, there is energy in the sound wave itself. This energy can be calculated from the density, frequency, amplitude, and wave velocity of the propagating medium. The average value represents the energy of sound per unit area.
其中,不同的预设频率可以对应不同的预设差值阈值,所述预设差值阈值可以是经验值,可以是技术开发人员在电子设备出厂前根据多次试验得出的经验值,并预设置在所述电子设备中,例如,当参数差值为振幅差值时,所述预设差值阈值可以是10微米、15微米等,在此不做限定。Among them, different preset frequencies may correspond to different preset difference thresholds, and the preset difference threshold may be an experience value or an experience value obtained by a technical developer based on multiple tests before the electronic device leaves the factory, and It is preset in the electronic device. For example, when the parameter difference is an amplitude difference, the preset difference threshold may be 10 micrometers, 15 micrometers, etc., which is not limited herein.
可见,本示例中,无线耳机通过第一音频与第二音频之间的参数差值与预设差值阈值的关系来确定麦克风的堵孔状态,使用差值有利于降低环境对单个数据的干扰,计算简单,有利于提升堵孔状态确定的便捷性和准确性。It can be seen that, in this example, the wireless headset determines the plugging state of the microphone through the relationship between the parameter difference between the first audio and the second audio and the preset difference threshold. The use of the difference is beneficial to reduce the interference of the environment on single data. The calculation is simple, which is helpful to improve the convenience and accuracy of the determination of the plugging state.
在一个可能的示例中,当检测到所述第一无线耳机处于被佩戴状态时,所述控制扬声器发出预设频段的第一音频,包括:In a possible example, when it is detected that the first wireless headset is in a worn state, the control speaker emits first audio of a preset frequency band, including:
当检测到所述第一无线耳机处于被佩戴状态时,发出第一提示消息,所述第一提示消息用于提示用户将第二无线耳机放置在预设位置,所述预设位置为所述第二无线耳机的扬声器朝向所述第一无线耳机的麦克风的位置;When it is detected that the first wireless headset is in a worn state, a first prompt message is sent, and the first prompt message is used to prompt a user to place the second wireless headset in a preset position, where the preset position is the A position of a speaker of the second wireless headset facing the microphone of the first wireless headset;
当所述第二无线耳机位于所述预设位置时,控制所述第二无线耳机的扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。When the second wireless earphone is located at the preset position, controlling a speaker of the second wireless earphone to emit the first audio in the preset frequency band, and the preset frequency band is a frequency band in which an ultrasonic wave is located.
其中,所述第一提示消息可以是预设语音消息,以提示用户将第二无线耳机放置在预设位置,预设语音消息可以是在无线耳机出厂前预设置在无线耳机中的语音数据,或者可以由无线耳机通知电子设备输出文本形式作为第一提示消息等,在此不做唯一限定。The first prompt message may be a preset voice message to prompt the user to place the second wireless headset in a preset position, and the preset voice message may be voice data preset in the wireless headset before the wireless headset leaves the factory. Alternatively, the electronic device may be notified by the wireless headset to output a text form as the first prompt message, etc., which is not limited here.
其中,所述预设位置为所述第二无线耳机的扬声器朝向所述第一无线耳机的麦克风的位置,即所述第一无线耳机的麦克风朝向所述第二无线耳机的扬声器发射第一音频的音频范围内。Wherein, the preset position is a position where a speaker of the second wireless earphone faces the microphone of the first wireless earphone, that is, a microphone of the first wireless earphone emits first audio toward the speaker of the second wireless earphone. Audio range.
其中,所述无线耳机检测到所述第二无线耳机位于所述预设位置可以是通过第一提示消息发出一段时间后便确定第二无线耳机已经位于所述预设位置,或者可以是由用户针对第一无线耳机或者电子设备的触控操作确定所述第二无线耳机已经位于所述预设位置,所述触控操作例如可以是用户双击电子设备或者双击第一无线耳机的操作,在此不做限定。Wherein, the wireless earphone detects that the second wireless earphone is located in the preset position, may be determined after the first prompt message is sent out for a period of time, and the second wireless earphone is already located in the preset position, or may be determined by a user For the touch operation of the first wireless headset or the electronic device, it is determined that the second wireless headset is already located in the preset position. The touch operation may be, for example, a user double-clicking the electronic device or double-clicking the first wireless headset. No restrictions.
可见,本示例中,无线耳机在处于被佩戴状态时,将第二无线耳机放置在第一无线耳机可以接收第二音频的预设位置,通过第二无线耳机的扬声器发出第一音频,避免了第一无线耳机在佩戴过程中无法检测麦克风堵孔的情况,而且,通过第一无线耳机的麦克风在 第一音频的发射方向上直接接收第二音频,而不需要接收第一音频反射的第二音频,有利于提升堵孔检测的时效性。It can be seen that, in this example, when the wireless earphone is in the worn state, the second wireless earphone is placed in a preset position where the first wireless earphone can receive the second audio, and the first audio is emitted through the speaker of the second wireless earphone, avoiding The first wireless headset cannot detect the situation of the microphone plugging during the wearing process, and the second wireless headset directly receives the second audio in the transmission direction of the first audio through the microphone of the first wireless headset without receiving the second audio reflected by the first audio. Audio, which helps improve the timeliness of hole plugging detection.
在一个可能的示例中,所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,包括:In a possible example, when it is detected that the first wireless headset is in a worn state, controlling the speaker to emit first audio in a preset frequency band includes:
当检测到所述第一无线耳机处于被佩戴状态时,获取图像信息;Acquiring image information when detecting that the first wireless headset is in a worn state;
根据所述图像信息确定预设方向上是否存在遮挡物,所述预设方向为与所述第一音频的发射方向匹配的方向;Determining whether there is an obstruction in a preset direction according to the image information, and the preset direction is a direction that matches the transmission direction of the first audio;
当检测到存在所述遮挡物时,控制所述扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。When the presence of the obstruction is detected, the speaker is controlled to emit the first audio in the preset frequency band, and the preset frequency band is a frequency band in which an ultrasonic wave is located.
其中,所述第一无线耳机设置有摄像头,可以获取图像信息,所述遮挡物可以是,人、物等,在此不做限定。The first wireless headset is provided with a camera to obtain image information, and the obstruction may be a person, an object, etc., which is not limited herein.
可见,本示例中,无线耳机通过获取图像信息来确定是否存在遮挡物,在存在遮挡物的情况下控制发出超声波频段的第一音频,有利于保障第一音频发生衍射,即麦克风可以接收到第二音频,提升了堵孔检测的有效性。It can be seen that, in this example, the wireless headset determines whether there is an obstruction by acquiring image information. Controlling the first audio in the ultrasonic frequency band in the presence of the obstruction is beneficial to ensure that the first audio is diffracted. Two-tone audio improves the effectiveness of hole plugging detection.
在一个可能的示例中,所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,所述方法还包括:In a possible example, after the determining that the microphone of the first wireless headset is in a plugged state according to the second audio, the method further includes:
当接收到针对第一语音数据的第一获取指令时,确定所述第二无线耳机与所述第一无线耳机之间的距离参数;Determining a distance parameter between the second wireless headset and the first wireless headset when a first acquisition instruction for the first voice data is received;
当检测到所述距离参数小于预设距离阈值时,通知所述第二无线耳机接收所述第一语音数据;When detecting that the distance parameter is less than a preset distance threshold, notifying the second wireless headset to receive the first voice data;
接收来自所述第二无线耳机的所述第一语音数据。Receiving the first voice data from the second wireless headset.
其中,确定所述第二无线耳机与所述第一无线耳机之间的距离参数可以是通过第一无线耳机与第二无线耳机之间的信令交互来确定信令传输时长,根据信令传输时长以及传输速度来确定第一无线耳机和第二无线耳机之间的距离参数。Wherein, determining a distance parameter between the second wireless headset and the first wireless headset may determine a signaling transmission duration through a signaling interaction between the first wireless headset and the second wireless headset, and according to the signaling transmission The duration and the transmission speed determine the distance parameter between the first wireless headset and the second wireless headset.
可见,本示例中,无线耳机在确定麦克风处于堵孔状态后,接收到第一语音数据的获取指令时,检测第二无线耳机与第一无线耳机的距离参数,当距离参数小于预设距离阈值时,切换第二无线耳机接收第一语音数据,有利于提升第一语音数据获取的完整性。It can be seen that, in this example, after determining that the microphone is in a plugged state, the wireless headset detects the distance parameter between the second wireless headset and the first wireless headset when receiving the first voice data acquisition instruction. When the distance parameter is less than a preset distance threshold At this time, switching the second wireless headset to receive the first voice data is beneficial to improving the integrity of the first voice data acquisition.
在一个可能的示例中,所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,所述方法还包括:In a possible example, after the determining that the microphone of the first wireless headset is in a plugged state according to the second audio, the method further includes:
当接收到针对第二语音数据的第二获取指令时,确定所述第二无线耳机的麦克风是否处于所述堵孔状态;When receiving a second acquisition instruction for the second voice data, determining whether the microphone of the second wireless headset is in the plugged state;
当接收到所述第二无线耳机的麦克风处于所述堵孔状态的上报信息时,发出第二提示消息,所述第二提示消息用于提示用户将所述第二无线耳机放置在所述第一无线耳机所在位置的预设范围内;When receiving the report information that the microphone of the second wireless headset is in the hole blocking state, a second prompt message is sent, and the second prompt message is used to prompt the user to place the second wireless headset in the first A wireless headset is located within a preset range;
当检测到所述第二无线耳机位于所述第一无线耳机所在位置的所述预设范围内时,控制所述第一无线耳机的麦克风和所述第二无线耳机的麦克风执行拾音操作;When it is detected that the second wireless headset is located within the preset range where the first wireless headset is located, controlling the microphone of the first wireless headset and the microphone of the second wireless headset to perform a pickup operation;
根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据。The second voice data is determined according to first reference voice data picked up by a microphone of the first wireless headset and second reference voice data picked up by a microphone of the second wireless headset.
其中,所述确定所述第二无线耳机的麦克风处于堵孔状态的具体实现方式同上述确定第一无线耳机的麦克风处于堵孔状态的检测方式,在此不做赘述。The specific implementation manner of determining that the microphone of the second wireless headset is in the hole blocking state is the same as the detection method of determining that the microphone of the first wireless headset is in the hole blocking state, and details are not described herein.
其中,所述上报信息为所述第二无线耳机发送给所述第一无线耳机的关于所述第二无线耳机处于堵孔状态的信息。The report information is information about the second wireless earphone being in a hole blocking state sent by the second wireless earphone to the first wireless earphone.
其中,所述第二提示消息可以是预设语音消息提示用户将第二无线耳机放置在预设范 围内,预设语音消息可以是在无线耳机出厂前预设置在无线耳机中的语音数据,或者可以由无线耳机通知电子设备输出文本形式作为第二提示消息等,在此不做唯一限定。The second prompt message may be a preset voice message prompting the user to place the second wireless headset in a preset range, and the preset voice message may be voice data preset in the wireless headset before the wireless headset leaves the factory, or The electronic device may be notified by the wireless headset to output a text form as the second prompt message, etc., which is not limited here.
其中,检测到所述第二无线耳机位于所述第一无线耳机所在位置的所述预设范围内的具体实现方式同上述确定所述第二无线耳机位于所述预设位置的具体实现方式,在此不做赘述。Wherein, the specific implementation manner of detecting that the second wireless headset is located within the preset range where the first wireless headset is located is the same as the specific implementation manner of determining that the second wireless headset is located at the preset position, I won't go into details here.
其中,根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据的具体实现方式可以是多种多样的,例如可以是判断第一参考语音数据和第二参考语音数据中有振幅波动的实际语音时长,将实际语音时长较长的参考语音数据确定为所述语音数据,或者可以是将第一参考语音数据和第二参考语音数据合成所述语音数据,在此不做限定。The specific implementation manner of determining the second voice data according to the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset may be various. For example, it may be judged that the first reference voice data and the second reference voice data have actual voice durations with amplitude fluctuations, and the reference voice data with a longer actual voice duration is determined as the voice data, or may be the first reference The voice data and the second reference voice data are synthesized into the voice data, which is not limited herein.
可见,本示例中,无线耳机当第一无线耳机和第二无线耳机均处于堵孔状态时,通过第一无线耳机和第二无线耳机共同拾取语音数据,并通过第一无线耳机获取的第一参考语音数据和第二无线耳机获取的第二参考语音数据共同确定第二语音数据,有利于保证第二语音数据的完整性,有效保障了第二语音数据的完整语义。It can be seen that, in this example, when the first wireless headset and the second wireless headset are in the plugged state, the first wireless headset and the second wireless headset collectively pick up voice data, and obtain the first The determination of the second voice data by the reference voice data and the second reference voice data obtained by the second wireless headset is conducive to ensuring the integrity of the second voice data and effectively ensuring the complete semantics of the second voice data.
在这个可能的示例中,所述根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据,包括:In this possible example, the determining the second voice data according to the first reference voice data picked up by a microphone of the first wireless headset and the second reference voice data picked up by a microphone of the second wireless headset includes: :
将所述第一无线耳机的麦克风拾取的所述第一参考语音数据按照第一时间间隔分为多个第一数据片段组;Dividing the first reference voice data picked up by the microphone of the first wireless headset into a plurality of first data fragment groups according to a first time interval;
将所述第二无线耳机的麦克风拾取的所述第二参考语音数据按照第二时间间隔分为多个第二数据片段组;Dividing the second reference voice data picked up by the microphone of the second wireless headset into a plurality of second data fragment groups according to a second time interval;
根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据。The second voice data is combined according to the first data segment group and the second data segment.
其中,第一时间间隔例如可以是1s、5s等,第二时间间隔可以与所述第一时间间隔相同,也可以与所述第一时间间隔不同。The first time interval may be, for example, 1 s, 5 s, and the like, and the second time interval may be the same as the first time interval or different from the first time interval.
其中,根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据的具体实现方式可以是将第一数据片段组中的每个数据片段与时间对应的第二数据片段组中的数据片段进行对比,确定出相同时间段上数据量多的数据片段为所述语音数据对应的该时间上的数据片段,例如,第一数据片段组中0s-5s对应的数据片段上的数据量为0bit,而第二数据片段组中0s-5s对应的数据片段上的数据量10bit,那么合成的语音数据中的0s-5s对应的数据片段为第二数据片段组中0s-5s对应的数据片段。A specific implementation manner of combining the first data segment group and the second data segment into the second voice data may be the second data corresponding to each time in the first data segment group. The data segments in the segment group are compared to determine that the data segment with a large amount of data in the same time period is the data segment at the time corresponding to the voice data, for example, the data segment corresponding to 0s-5s in the first data segment group The amount of data on the data segment is 0bit, and the amount of data on the data segment corresponding to 0s-5s in the second data segment group is 10bit, then the data segment corresponding to 0s-5s in the synthesized speech data is 0s- 5s corresponding data segment.
可见,本示例中,无线耳机分别将第一参考语音数据和第二参考语音数据划分为多个数据片段,通过数据片段对应的时间将第一参考语音数据和第二参考语音数据合成所述第二语音数据,有利于提升获取第二语音数据的智能性,在第一无线耳机和第二无线耳机的麦克风均堵塞的情况下,进一步提升了第二语音数据的完整性。It can be seen that, in this example, the wireless headset divides the first reference voice data and the second reference voice data into a plurality of data segments, and synthesizes the first reference voice data and the second reference voice data by the time corresponding to the data segments. The second voice data is beneficial to improving the intelligence of obtaining the second voice data. When the microphones of the first wireless headset and the second wireless headset are both blocked, the integrity of the second voice data is further improved.
与所述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的另一种麦克风堵孔检测方法的流程示意图,应用于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,如图所示,本麦克风堵孔检测方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of another method for detecting a hole blocking of a microphone provided in an embodiment of the present application, which is applied to a wireless headset. A wireless earphone and a second wireless earphone, the first wireless earphone and the second wireless earphone include at least one speaker, and the first wireless earphone includes a microphone. As shown in the figure, the method for detecting a plugging of a microphone includes:
S301,无线耳机当检测到所述第一无线耳机处于被佩戴状态时,获取图像信息。S301. The wireless headset acquires image information when it is detected that the first wireless headset is in a worn state.
S302,所述无线耳机根据所述图像信息确定预设方向上是否存在遮挡物,所述预设方向为与第一音频的发射方向匹配的方向。S302. The wireless headset determines whether there is an obstruction in a preset direction according to the image information, and the preset direction is a direction that matches a transmission direction of the first audio.
S303,所述无线耳机当检测到存在所述遮挡物时,控制所述扬声器发出所预设频段的所述第一音频,所述预设频段为超声波所在的频段。S303. When the wireless earphone detects the presence of the obstruction, control the speaker to emit the first audio in a preset frequency band, where the preset frequency band is a frequency band in which an ultrasonic wave is located.
S304,在预设时段内,所述无线耳机通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频。S304. In a preset period, the wireless headset receives the second audio in the preset frequency band through a microphone of the first wireless headset.
S305,所述无线耳机确定所述第一音频与所述第二音频的参数差值,所述参数差值包括以下任意一种或多种:音量差值、振幅差值、频率差值、能量差值。S305. The wireless headset determines a parameter difference between the first audio and the second audio. The parameter difference includes any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and energy. Difference.
S306,所述无线耳机当检测到所述参数差值大于预设差值阈值时,确定所述麦克风处于堵孔状态。S306. When the wireless headset detects that the parameter difference is greater than a preset difference threshold, it determines that the microphone is in a plugged state.
S307,所述无线耳机当接收到针对第一语音数据的第一获取指令时,确定所述第二无线耳机与所述第一无线耳机之间的距离参数。S307. When the wireless headset receives a first acquisition instruction for the first voice data, determine a distance parameter between the second wireless headset and the first wireless headset.
S308,所述无线耳机当检测到所述距离参数小于预设距离阈值时,通知所述第二无线耳机接收所述第一语音数据。S308. When the wireless headset detects that the distance parameter is less than a preset distance threshold, notify the second wireless headset to receive the first voice data.
S309,所述无线耳机接收来自所述第二无线耳机的所述第一语音数据。S309. The wireless headset receives the first voice data from the second wireless headset.
可以看出,本申请实施例中,无线耳机首先当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,其次,在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频,最后,根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下仅仅通过扬声器便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性和及时性,而且,通过检测麦克风的堵孔状态,可以避免用户在后续录入语音时因无法感知麦克风存在的问题导致的语音数据输入不完整的情况。It can be seen that, in the embodiment of the present application, when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
此外,无线耳机通过获取图像信息来确定是否存在遮挡物,在存在遮挡物的情况下控制发出超声波频段的第一音频,有利于保障第一音频发生衍射,即麦克风可以接收到第二音频,提升了堵孔检测的有效性。In addition, the wireless headset determines whether there is an obstruction by acquiring image information. Controlling the first audio in the ultrasonic frequency band in the presence of the obstruction helps to ensure that the first audio is diffracted, that is, the microphone can receive the second audio, which improves The effectiveness of the plugging detection is shown.
此外,无线耳机通过第一音频与第二音频之间的参数差值与预设差值阈值的关系来确定麦克风的堵孔状态,使用差值有利于降低环境对单个数据的干扰,计算简单,有利于提升堵孔状态确定的便捷性和准确性。In addition, the wireless headset determines the plugging state of the microphone through the relationship between the parameter difference between the first audio and the second audio and the preset difference threshold. The use of the difference is beneficial to reduce the interference of the environment on single data, and the calculation is simple. Conducive to improving the convenience and accuracy of hole plugging status determination.
此外,无线耳机在确定麦克风处于堵孔状态后,接收到第一语音数据的获取指令时,检测第二无线耳机与第一无线耳机的距离参数,当距离参数小于预设距离阈值时,切换第二无线耳机接收第一语音数据,有利于提升第一语音数据获取的完整性。In addition, after determining that the microphone is in a plugged state, the wireless earphone detects a distance parameter between the second wireless earphone and the first wireless earphone when receiving the acquisition instruction of the first voice data. When the distance parameter is less than a preset distance threshold, the wireless earphone is switched. The two wireless headsets receive the first voice data, which is beneficial to improving the integrity of the first voice data acquisition.
与所述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的另一种麦克风堵孔检测方法的流程示意图,应用于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,如图所示,本麦克风堵孔检测方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 4. FIG. 4 is a schematic flowchart of another method for detecting a microphone plugging hole provided by an embodiment of the present application, which is applied to a wireless headset. The wireless headset includes a first A wireless earphone and a second wireless earphone, the first wireless earphone and the second wireless earphone include at least one speaker, and the first wireless earphone includes a microphone. As shown in the figure, the method for detecting a plugging of a microphone includes:
S401,无线耳机当检测到所述第一无线耳机处于被佩戴状态时,发出第一提示消息,所述第一提示消息用于提示用户将第二无线耳机放置在预设位置,所述预设位置为所述第二无线耳机的扬声器朝向所述第一无线耳机的麦克风的位置。S401: When detecting that the first wireless headset is in a worn state, the wireless headset sends a first prompt message, where the first prompt message is used to prompt a user to place a second wireless headset in a preset position, where the preset The position is a position where a speaker of the second wireless earphone faces a microphone of the first wireless earphone.
S402,所述无线耳机当所述第二无线耳机位于所述预设位置时,控制所述第二无线耳机的扬声器发出预设频段的第一音频,所述预设频段为超声波所在的频段。S402. When the second wireless earphone is located in the preset position, control the speaker of the second wireless earphone to emit first audio in a preset frequency band, where the preset frequency band is a frequency band in which an ultrasonic wave is located.
S403,在预设时段内,所述无线耳机通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频。S403. During a preset period, the wireless headset receives the second audio in the preset frequency band through a microphone of the first wireless headset.
S404,所述无线耳机确定所述第一音频与所述第二音频的参数差值,所述参数差值包括以下任意一种或多种:音量差值、振幅差值、频率差值、能量差值。S404. The wireless headset determines a parameter difference between the first audio and the second audio. The parameter difference includes any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and energy. Difference.
S405,所述当检测到所述参数差值大于预设差值阈值时,确定所述麦克风处于堵孔状态。S405. When it is detected that the parameter difference is greater than a preset difference threshold, it is determined that the microphone is in a hole blocking state.
S406,所述无线耳机当接收到针对第二语音数据的第二获取指令时,确定所述第二无线耳机的麦克风是否处于所述堵孔状态。S406. When the wireless headset receives the second acquisition instruction for the second voice data, determine whether the microphone of the second wireless headset is in the hole blocking state.
S407,所述无线耳机当接收到所述第二无线耳机的麦克风处于所述堵孔状态的上报信息时,发出第二提示消息,所述第二提示消息用于提示用户将所述第二无线耳机放置在所述第一无线耳机所在位置的预设范围内。S407. When the wireless headset receives the report information that the microphone of the second wireless headset is in the hole blocking state, the wireless headset sends a second prompt message, and the second prompt message is used to prompt the user to send the second wireless headset. The earphone is placed in a preset range where the first wireless earphone is located.
S408,所述无线耳机当检测到所述第二无线耳机位于所述第一无线耳机所在位置的所述预设范围内时,控制所述第一无线耳机的麦克风和所述第二无线耳机的麦克风执行拾音操作。S408. When the wireless headset detects that the second wireless headset is within the preset range where the first wireless headset is located, control the microphone of the first wireless headset and the second wireless headset. The microphone performs a pickup operation.
S409,所述无线耳机根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据。S409. The wireless headset determines the second voice data according to the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset.
可以看出,本申请实施例中,无线耳机首先当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,其次,在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频,最后,根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下仅仅通过扬声器便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性和及时性,而且,通过检测麦克风的堵孔状态,可以避免用户在后续录入语音时因无法感知麦克风存在的问题导致的语音数据输入不完整的情况。It can be seen that, in the embodiment of the present application, when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
此外,无线耳机在处于被佩戴状态时,将第二无线耳机放置在第一无线耳机可以接收第二音频的预设位置,通过第二无线耳机的扬声器发出第一音频,避免了第一无线耳机在佩戴过程中无法检测麦克风堵孔的情况,而且,通过第一无线耳机的麦克风在第一音频的发射方向上直接接收第二音频,而不需要接收第一音频反射的第二音频,有利于提升堵孔检测的时效性。In addition, when the wireless headset is in the worn state, the second wireless headset is placed in a preset position where the first wireless headset can receive the second audio, and the first audio is emitted through the speaker of the second wireless headset, thereby avoiding the first wireless headset During the wearing process, it is impossible to detect the situation of the microphone plugging. Moreover, the microphone of the first wireless headset directly receives the second audio in the transmission direction of the first audio without receiving the second audio reflected by the first audio, which is beneficial. Improve the timeliness of hole plugging detection.
此外,无线耳机当第一无线耳机和第二无线耳机均处于堵孔状态时,通过第一无线耳机和第二无线耳机共同拾取语音数据,并通过第一无线耳机获取的第一参考语音数据和第二无线耳机获取的第二参考语音数据共同确定第二语音数据,有利于保证第二语音数据的完整性,有效保障了第二语音数据的完整语义。In addition, when the first wireless headset and the second wireless headset are in a plugged state, the wireless headset picks up voice data through the first wireless headset and the second wireless headset, and obtains the first reference voice data and The second reference voice data obtained by the second wireless headset determines the second voice data together, which is beneficial to ensuring the integrity of the second voice data and effectively guarantees the complete semantics of the second voice data.
此外,无线耳机通过第一音频与第二音频之间的参数差值与预设差值阈值的关系来确定麦克风的堵孔状态,使用差值有利于降低环境对单个数据的干扰,计算简单,有利于提升堵孔状态确定的便捷性和准确性。In addition, the wireless headset determines the plugging state of the microphone through the relationship between the parameter difference between the first audio and the second audio and the preset difference threshold. The use of the difference is beneficial to reduce the interference of the environment on single data, and the calculation is simple. Conducive to improving the convenience and accuracy of hole plugging status determination.
与上述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种无线耳机500的结构示意图,该无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,如图所示,该无线耳机包括处理器501、存储器502、通信接口503以及一个或多个程序504,其中,上述一个或多个程序504被存储在上述存储器502中,并且被配置由上述处理器501执行,上述程序包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIG. 2, FIG. 3, and FIG. 4 described above, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of a wireless earphone 500 according to an embodiment of the present application. A second wireless headset, the first wireless headset and the second wireless headset include at least one speaker, and the first wireless headset includes a microphone. As shown in the figure, the wireless headset includes a processor 501, a memory 502, and a communication interface. 503 and one or more programs 504, wherein the one or more programs 504 are stored in the memory 502 and configured to be executed by the processor 501, and the programs include instructions for performing the following steps;
当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频;When detecting that the first wireless headset is in a worn state, controlling the speaker to emit first audio in a preset frequency band;
在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频;Receiving a second audio in the preset frequency band through a microphone of the first wireless headset within a preset period;
根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。It is determined according to the second audio that the microphone of the first wireless headset is in a plugged state.
可以看出,本申请实施例中,无线耳机首先当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,其次,在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频,最后,根据所述第二音频确定所述第一无线 耳机的麦克风处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下仅仅通过扬声器便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性和及时性,而且,通过检测麦克风的堵孔状态,可以避免用户在后续录入语音时因无法感知麦克风存在的问题导致的语音数据输入不完整的情况。It can be seen that, in the embodiment of the present application, when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
在一个可能的示例中,在所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态方面,所述程序504中的指令具体用于执行以下操作:确定所述第一音频与所述第二音频的参数差值,所述参数差值包括以下任意一种或多种:音量差值、振幅差值、频率差值、能量差值;以及用于当检测到所述参数差值大于预设差值阈值时,确定所述麦克风处于所述堵孔状态。In a possible example, in determining that the microphone of the first wireless headset is in a plugged state according to the second audio, the instructions in the program 504 are specifically used to perform the following operations: determine the first A parameter difference between the audio and the second audio, the parameter difference including any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and an energy difference; and When the parameter difference is greater than a preset difference threshold, it is determined that the microphone is in the hole blocking state.
在一个可能的示例中,在所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频方面,所述程序504中的指令具体用于执行以下操作:当检测到所述第一无线耳机处于被佩戴状态时,发出第一提示消息,所述第一提示消息用于提示用户将第二无线耳机放置在预设位置,所述预设位置为所述第二无线耳机的扬声器朝向所述第一无线耳机的麦克风的位置;以及用于当所述第二无线耳机位于所述预设位置时,控制所述第二无线耳机的扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。In a possible example, when it is detected that the first wireless headset is in a worn state, controlling the speaker to emit a first audio aspect of a preset frequency band, the instructions in the program 504 are specifically used to perform the following operations : When it is detected that the first wireless headset is in a worn state, a first prompt message is sent, and the first prompt message is used to prompt a user to place the second wireless headset in a preset position, where the preset position is A position of the speaker of the second wireless headset facing the microphone of the first wireless headset; and for controlling the speaker of the second wireless headset to issue the pre-set when the second wireless headset is in the preset position The first audio frequency band is set, and the preset frequency band is a frequency band where the ultrasound waves are located.
在一个可能的示例中,在所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频方面,所述程序504中的指令具体用于执行以下操作:当检测到所述第一无线耳机处于被佩戴状态时,获取图像信息;以及用于根据所述图像信息确定预设方向上是否存在遮挡物,所述预设方向为与所述第一音频的发射方向匹配的方向;以及用于当检测到存在所述遮挡物时,控制所述扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。In a possible example, when it is detected that the first wireless headset is in a worn state, controlling the speaker to emit a first audio aspect of a preset frequency band, the instructions in the program 504 are specifically used to perform the following operations Acquiring image information when the first wireless headset is detected to be in a worn state; and for determining whether there is an obstruction in a preset direction according to the image information, the preset direction is related to the first audio A direction in which the emission direction of the antenna matches; and when the presence of the obstruction is detected, controlling the speaker to emit the first audio in the preset frequency band, where the preset frequency band is a frequency band in which the ultrasound wave is located.
在一个可能的示例中,上述程序504还包括用于执行以下步骤的指令:所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,当接收到针对第一语音数据的第一获取指令时,确定所述第二无线耳机与所述第一无线耳机之间的距离参数;以及用于当检测到所述距离参数小于预设距离阈值时,通知所述第二无线耳机接收所述第一语音数据;以及用于接收来自所述第二无线耳机的所述第一语音数据。In a possible example, the foregoing program 504 further includes instructions for performing the following steps: After determining that the microphone of the first wireless headset is in a plugged state according to the second audio, when receiving Determining a distance parameter between the second wireless earphone and the first wireless earphone when the first acquisition instruction of the data; and for notifying the second when it is detected that the distance parameter is less than a preset distance threshold A wireless headset receives the first voice data; and is configured to receive the first voice data from the second wireless headset.
在一个可能的示例中,上述程序504还包括用于执行以下步骤的指令:所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,当接收到针对第二语音数据的第二获取指令时,确定所述第二无线耳机的麦克风是否处于所述堵孔状态;以及用于当接收到所述第二无线耳机的麦克风处于所述堵孔状态的上报信息时,发出第二提示消息,所述第二提示消息用于提示用户将所述第二无线耳机放置在所述第一无线耳机所在位置的预设范围内;以及用于当检测到所述第二无线耳机位于所述第一无线耳机所在位置的所述预设范围内时,控制所述第一无线耳机的麦克风和所述第二无线耳机的麦克风执行拾音操作;以及用于根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据。In a possible example, the above-mentioned program 504 further includes instructions for performing the following steps: After determining that the microphone of the first wireless headset is in a plugged state according to the second audio, when receiving a response to the second voice, When the second acquisition instruction of the data determines whether the microphone of the second wireless headset is in the plugged state; and for receiving report information that the microphone of the second wireless headset is in the plugged state, Sending a second prompt message, the second prompt message is used to prompt the user to place the second wireless headset within a preset range where the first wireless headset is located; and when the second wireless headset is detected When the earphone is located within the preset range where the first wireless earphone is located, controlling a microphone of the first wireless earphone and a microphone of the second wireless earphone to perform a pickup operation; and The first reference voice data picked up by the microphone of the wireless headset and the second reference voice data picked up by the microphone of the second wireless headset determine the second voice It is.
在这个可能的示例中,在所述根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据方面,所述程序504中的指令具体用于执行以下操作:将所述第一无线耳机的麦克风拾取的所述第一参考语音数据按照第一时间间隔分为多个第一数据片段组;以及用于将所述第二无线耳机的麦克风拾取的所述第二参考语音数据按照第二时间间隔分为多个第二数据片段组;以及用于根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据。In this possible example, the second voice data is determined in terms of the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset. The instructions in the program 504 are specifically used to perform the following operations: dividing the first reference voice data picked up by the microphone of the first wireless headset into a plurality of first data fragment groups according to a first time interval; and Dividing the second reference voice data picked up by the microphone of the second wireless headset into a plurality of second data segment groups according to a second time interval; and for using the first data segment group and the second The data segments are combined into the second speech data.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,无线耳机为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solution of the embodiment of the present application from the perspective of the method-side execution process. It can be understood that, in order to realize the above functions, the wireless headset includes a hardware structure and / or a software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments provided herein, 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. For example, 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.
图6是本申请实施例中所涉及的麦克风堵孔检测装置600的功能单元组成框图。该麦克风堵孔检测装置600应用于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,该麦克风堵孔检测装置600包括发射单元601、接收单元602和确定单元603,其中,FIG. 6 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, the wireless headset includes a first wireless headset and a second wireless headset, the first wireless headset and the second wireless headset include at least one speaker, and the first wireless headset The earphone includes a microphone, and the microphone plugging detection device 600 includes a transmitting unit 601, a receiving unit 602, and a determining unit 603.
所述发射单元601,用于当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频;The transmitting unit 601 is configured to control the speaker to emit first audio in a preset frequency band when it is detected that the first wireless headset is in a worn state;
所述接收单元602,用于在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频;The receiving unit 602 is configured to receive a second audio in the preset frequency band through a microphone of the first wireless headset within a preset period;
所述确定单元603,用于根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。The determining unit 603 is configured to determine, according to the second audio, that the microphone of the first wireless headset is in a plugged state.
可以看出,本申请实施例中,无线耳机首先当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,其次,在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频,最后,根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。可见,无线耳机在不增加硬件结构的情况下仅仅通过扬声器便可检测麦克风处于堵孔状态,拓展了无线耳机的功能,提升了堵孔检测的便捷性和及时性,而且,通过检测麦克风的堵孔状态,可以避免用户在后续录入语音时因无法感知麦克风存在的问题导致的语音数据输入不完整的情况。It can be seen that, in the embodiment of the present application, when the wireless earphone is first detected that the first wireless earphone is being worn, the speaker is controlled to emit a first audio of a preset frequency band, and secondly, in a preset period, The microphone of the first wireless headset receives the second audio in the preset frequency band. Finally, it is determined that the microphone of the first wireless headset is in a plugged state according to the second audio. It can be seen that the wireless earphone can detect that the microphone is plugged only through the speaker without adding a hardware structure, which expands the function of the wireless earphone, improves the convenience and timeliness of the plugging detection, and also detects the plugging of the microphone. The state of the hole can prevent the user from incomplete speech data input caused by the inability to perceive the problem of the microphone when subsequently recording the voice.
在一个可能的示例中,在所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态方面,所述确定单元603具体用于:确定所述第一音频与所述第二音频的参数差值,所述参数差值包括以下任意一种或多种:音量差值、振幅差值、频率差值、能量差值;以及用于当检测到所述参数差值大于预设差值阈值时,确定所述麦克风处于所述堵孔状态。In a possible example, in determining that the microphone of the first wireless headset is in a plugged state according to the second audio, the determining unit 603 is specifically configured to determine that the first audio and the first audio A parameter difference value of the second audio, the parameter difference value including any one or more of the following: a volume difference value, an amplitude difference value, a frequency difference value, and an energy difference value; When the difference threshold is set, it is determined that the microphone is in the hole blocking state.
在一个可能的示例中,在所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频方面,所述发射单元601具体用于:当检测到所述第一无线耳机处于被佩戴状态时,发出第一提示消息,所述第一提示消息用于提示用户将第二无线耳机放置在预设位置,所述预设位置为所述第二无线耳机的扬声器朝向所述第一无线耳机的麦克风的位置;以及用于当所述第二无线耳机位于所述预设位置时,控制所述第二无线耳机的扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。In a possible example, when it is detected that the first wireless headset is in a worn state, controlling the speaker to emit a first audio aspect of a preset frequency band, the transmitting unit 601 is specifically configured to: When the first wireless headset is in a worn state, a first prompt message is issued, and the first prompt message is used to prompt a user to place the second wireless headset at a preset position, and the preset position is the second wireless headset. The position of the speaker facing the microphone of the first wireless headset; and for controlling the speaker of the second wireless headset to emit the preset frequency band when the second wireless headset is in the preset position For the first audio, the preset frequency band is a frequency band where the ultrasonic wave is located.
在一个可能的示例中,在所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频方面,所述发射单元601具体用于:当检测到所述第一无线耳机处于被佩戴状态时,获取图像信息;以及用于根据所述图像信息确定预设方向上是否存在遮挡物,所述预设方向为与所述第一音频的发射方向匹配的方向;以及用于当检测到存 在所述遮挡物时,控制所述扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。In a possible example, when it is detected that the first wireless headset is in a worn state, controlling the speaker to emit a first audio aspect of a preset frequency band, the transmitting unit 601 is specifically configured to: When the first wireless earphone is in a worn state, acquiring image information; and for determining whether there is an obstruction in a preset direction according to the image information, the preset direction is matching the transmission direction of the first audio Direction; and for controlling the speaker to emit the first audio in the preset frequency band when the obstruction is detected, the preset frequency band being a frequency band in which the ultrasound wave is located.
在一个可能的示例中,所述麦克风堵孔检测装置600还包括第一处理单元,所述第一处理单元在所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,用于:当接收到针对第一语音数据的第一获取指令时,确定所述第二无线耳机与所述第一无线耳机之间的距离参数;以及用于当检测到所述距离参数小于预设距离阈值时,通知所述第二无线耳机接收所述第一语音数据;以及用于接收来自所述第二无线耳机的所述第一语音数据。In a possible example, the microphone plugging detection device 600 further includes a first processing unit, where the first processing unit determines that the microphone of the first wireless headset is in a plugging state according to the second audio. After that, it is used for: determining a distance parameter between the second wireless headset and the first wireless headset when receiving a first acquisition instruction for the first voice data; and for detecting the distance parameter when the first wireless headset is received; When it is less than the preset distance threshold, the second wireless headset is notified to receive the first voice data; and is configured to receive the first voice data from the second wireless headset.
在一个可能的示例中,所述麦克风堵孔检测装置600还包括第二处理单元,所述第二处理单元在所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,用于:当接收到针对第二语音数据的第二获取指令时,确定所述第二无线耳机的麦克风是否处于所述堵孔状态;以及用于当接收到所述第二无线耳机的麦克风处于所述堵孔状态的上报信息时,发出第二提示消息,所述第二提示消息用于提示用户将所述第二无线耳机放置在所述第一无线耳机所在位置的预设范围内;以及用于当检测到所述第二无线耳机位于所述第一无线耳机所在位置的所述预设范围内时,控制所述第一无线耳机的麦克风和所述第二无线耳机的麦克风执行拾音操作;以及用于根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据。In a possible example, the microphone plugging detection device 600 further includes a second processing unit, where the second processing unit determines that the microphone of the first wireless headset is in a plugging state according to the second audio. After that, it is used to: determine whether the microphone of the second wireless headset is in the plugged state when receiving a second acquisition instruction for the second voice data; and When the microphone is in the reporting information of the hole blocking state, a second prompt message is issued, and the second prompt message is used to prompt the user to place the second wireless headset within a preset range where the first wireless headset is located. And for controlling the microphone of the first wireless headset and the microphone of the second wireless headset to execute when it is detected that the second wireless headset is within the preset range where the first wireless headset is located. Sound pickup operation; and a second reference voice data picked up according to a microphone of the first wireless earphone and a second reference voice data picked up by a microphone of the second wireless earphone Determining a test voice data of the second voice data.
在这个可能的示例中,在所述根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据方面,所述第二处理单元具体用于:将所述第一无线耳机的麦克风拾取的所述第一参考语音数据按照第一时间间隔分为多个第一数据片段组;以及用于将所述第二无线耳机的麦克风拾取的所述第二参考语音数据按照第二时间间隔分为多个第二数据片段组;以及用于根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据。In this possible example, the second voice data is determined in terms of the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset. The second processing unit is specifically configured to divide the first reference voice data picked up by the microphone of the first wireless headset into a plurality of first data fragment groups according to a first time interval; and The second reference voice data picked up by the microphone of the second wireless earphone is divided into a plurality of second data segment groups according to a second time interval; and the second reference speech data is used to combine the first data segment group and the second data segment into The second voice data.
其中,发射单元601可以是扬声器,接收单元602可以是麦克风,所述确定单元603可以是处理器。The transmitting unit 601 may be a speaker, the receiving unit 602 may be a microphone, and the determining unit 603 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.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not described in detail in one embodiment, reference may be made to related descriptions in other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可 以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may be combined. Integration into another system, or some features can be ignored or not implemented. In addition, 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.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, 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.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。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. Based on such an understanding, 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, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. 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.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be implemented by a program instructing related hardware. 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.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. Specific examples have been used in this document to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. Persons of ordinary skill in the art may change the specific implementation and application scope according to the idea of the present application. In summary, the content of this description should not be construed as a limitation on the present application.

Claims (20)

  1. 一种麦克风堵孔检测方法,其特征在于,应用于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,所述方法包括:A method for detecting a plugging of a microphone, which is characterized in that the method is applied to a wireless headset, the wireless headset includes a first wireless headset and a second wireless headset, the first wireless headset and the second wireless headset include at least one speaker, The first wireless headset includes a microphone, and the method includes:
    当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频;When detecting that the first wireless headset is in a worn state, controlling the speaker to emit first audio in a preset frequency band;
    在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频;Receiving a second audio in the preset frequency band through a microphone of the first wireless headset within a preset period;
    根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。It is determined according to the second audio that the microphone of the first wireless headset is in a plugged state.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态,包括:The method according to claim 1, wherein the determining that the microphone of the first wireless headset is in a plugged state according to the second audio comprises:
    确定所述第一音频与所述第二音频的参数差值,所述参数差值包括以下任意一种或多种:音量差值、振幅差值、频率差值、能量差值;Determining a parameter difference between the first audio and the second audio, where the parameter difference includes any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and an energy difference;
    当检测到所述参数差值大于预设差值阈值时,确定所述麦克风处于所述堵孔状态。When it is detected that the parameter difference is greater than a preset difference threshold, it is determined that the microphone is in the hole blocking state.
  3. 根据权利要求1或2所述的方法,其特征在于,所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,包括:The method according to claim 1 or 2, wherein when the first wireless earphone is detected to be in a worn state, controlling the speaker to emit first audio of a preset frequency band comprises:
    当检测到所述第一无线耳机处于被佩戴状态时,发出第一提示消息,所述第一提示消息用于提示用户将第二无线耳机放置在预设位置,所述预设位置为所述第二无线耳机的扬声器朝向所述第一无线耳机的麦克风的位置;When it is detected that the first wireless headset is in a worn state, a first prompt message is sent, and the first prompt message is used to prompt a user to place the second wireless headset in a preset position, where the preset position is the A position of a speaker of the second wireless headset facing the microphone of the first wireless headset;
    当所述第二无线耳机位于所述预设位置时,控制所述第二无线耳机的扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。When the second wireless earphone is located at the preset position, controlling a speaker of the second wireless earphone to emit the first audio in the preset frequency band, and the preset frequency band is a frequency band in which an ultrasonic wave is located.
  4. 根据权利要求1或2所述的方法,其特征在于,所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频,包括:The method according to claim 1 or 2, wherein when the first wireless earphone is detected to be in a worn state, controlling the speaker to emit first audio of a preset frequency band comprises:
    当检测到所述第一无线耳机处于被佩戴状态时,获取图像信息;Acquiring image information when detecting that the first wireless headset is in a worn state;
    根据所述图像信息确定预设方向上是否存在遮挡物,所述预设方向为与所述第一音频的发射方向匹配的方向;Determining whether there is an obstruction in a preset direction according to the image information, and the preset direction is a direction that matches the transmission direction of the first audio;
    当检测到存在所述遮挡物时,控制所述扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。When the presence of the obstruction is detected, the speaker is controlled to emit the first audio in the preset frequency band, and the preset frequency band is a frequency band in which an ultrasonic wave is located.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,所述方法还包括:The method according to any one of claims 1-4, wherein after the determining that the microphone of the first wireless headset is in a plugged state according to the second audio, the method further comprises:
    当接收到针对第一语音数据的第一获取指令时,确定所述第二无线耳机与所述第一无线耳机之间的距离参数;Determining a distance parameter between the second wireless headset and the first wireless headset when a first acquisition instruction for the first voice data is received;
    当检测到所述距离参数小于预设距离阈值时,通知所述第二无线耳机接收所述第一语音数据;When detecting that the distance parameter is less than a preset distance threshold, notifying the second wireless headset to receive the first voice data;
    接收来自所述第二无线耳机的所述第一语音数据。Receiving the first voice data from the second wireless headset.
  6. 根据权利要求1-4任一项所述的方法,其特征在于,所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,所述方法还包括:The method according to any one of claims 1-4, wherein after the determining that the microphone of the first wireless headset is in a plugged state according to the second audio, the method further comprises:
    当接收到针对第二语音数据的第二获取指令时,确定所述第二无线耳机的麦克风是否处于所述堵孔状态;When receiving a second acquisition instruction for the second voice data, determining whether the microphone of the second wireless headset is in the plugged state;
    当接收到所述第二无线耳机的麦克风处于所述堵孔状态的上报信息时,发出第二提示消息,所述第二提示消息用于提示用户将所述第二无线耳机放置在所述第一无线耳机所在位置的预设范围内;When receiving the report information that the microphone of the second wireless headset is in the hole blocking state, a second prompt message is sent, and the second prompt message is used to prompt the user to place the second wireless headset in the first A wireless headset is located within a preset range;
    当检测到所述第二无线耳机位于所述第一无线耳机所在位置的所述预设范围内时,控制所述第一无线耳机的麦克风和所述第二无线耳机的麦克风执行拾音操作;When it is detected that the second wireless headset is located within the preset range where the first wireless headset is located, controlling the microphone of the first wireless headset and the microphone of the second wireless headset to perform a pickup operation;
    根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据。The second voice data is determined according to first reference voice data picked up by a microphone of the first wireless headset and second reference voice data picked up by a microphone of the second wireless headset.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据,包括:The method according to claim 6, wherein the determining is based on the first reference voice data picked up by a microphone of the first wireless headset and the second reference voice data picked up by a microphone of the second wireless headset The second voice data includes:
    将所述第一无线耳机的麦克风拾取的所述第一参考语音数据按照第一时间间隔分为多个第一数据片段组;Dividing the first reference voice data picked up by the microphone of the first wireless headset into a plurality of first data fragment groups according to a first time interval;
    将所述第二无线耳机的麦克风拾取的所述第二参考语音数据按照第二时间间隔分为多个第二数据片段组;Dividing the second reference voice data picked up by the microphone of the second wireless headset into a plurality of second data fragment groups according to a second time interval;
    根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据。The second voice data is combined according to the first data segment group and the second data segment.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据,包括:The method according to claim 7, wherein the combining the first data segment group and the second data segment into the second voice data comprises:
    对比所述第一数据片段组中的每个第一数据片段与对应的所述第二数据片段组中的第二数据片段,所述第一数据片段与对应的所述第二数据片段所处的时间段相同;Comparing each first data segment in the first data segment group with a corresponding second data segment in the second data segment group, where the first data segment and the corresponding second data segment are located The same time period;
    选取每个所述第一数据片段与对应的所述第二数据片段中数据量多的数据片段为目标数据片段;Selecting a data segment with a large amount of data in each of the first data segment and the corresponding second data segment as a target data segment;
    将多个所述目标数据片段合成所述第二语音数据。Synthesizing a plurality of the target data fragments into the second speech data.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述检测到所述第一无线耳机处于被佩戴状态,包括:The method according to any one of claims 1-8, wherein the detecting that the first wireless headset is in a worn state comprises:
    获取所述第一无线耳机的姿态参数;Acquiring a posture parameter of the first wireless headset;
    根据所述第一无线耳机的所述姿态参数检测到所述第一无线耳机处于所述被佩戴状态。It is detected that the first wireless headset is in the worn state according to the posture parameter of the first wireless headset.
  10. 一种麦克风堵孔检测装置,其特征在于,应用于无线耳机,所述无线耳机包括第一无线耳机和第二无线耳机,所述第一无线耳机和所述第二无线耳机包括至少一个扬声器,所述第一无线耳机包括麦克风,所述麦克风堵孔检测装置包括发射单元、接收单元和确定单元,其中:A microphone plugging detection device, which is characterized in that it is applied to a wireless headset. The wireless headset includes a first wireless headset and a second wireless headset. The first wireless headset and the second wireless headset include at least one speaker. The first wireless earphone includes a microphone, and the microphone plugging detection device includes a transmitting unit, a receiving unit, and a determining unit, wherein:
    所述发射单元,用于当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频;The transmitting unit is configured to control the speaker to emit a first audio of a preset frequency band when it is detected that the first wireless headset is in a worn state;
    所述接收单元,用于在预设时段内,通过所述第一无线耳机的麦克风接收所述预设频段内的第二音频;The receiving unit is configured to receive the second audio in the preset frequency band through the microphone of the first wireless headset within a preset period;
    所述确定单元,用于根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态。The determining unit is configured to determine, according to the second audio, that the microphone of the first wireless headset is in a plugged state.
  11. 根据权利要求10所述的装置,其特征在于,在所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态方面,所述确定单元具体用于:确定所述第一音频与所述第二音频的参数差值,所述参数差值包括以下任意一种或多种:音量差值、振幅差值、频率差值、能量差值;以及用于当检测到所述参数差值大于预设差值阈值时,确定所述麦克风处于所述堵孔状态。The device according to claim 10, wherein in determining that the microphone of the first wireless headset is in a plugged state according to the second audio, the determining unit is specifically configured to determine the first A parameter difference between the audio and the second audio, the parameter difference including any one or more of the following: a volume difference, an amplitude difference, a frequency difference, and an energy difference; and When the parameter difference is greater than a preset difference threshold, it is determined that the microphone is in the hole blocking state.
  12. 根据权利要求10或11所述的装置,其特征在于,在所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频方面,所述发射单元具体用于:当检测到所述第一无线耳机处于被佩戴状态时,发出第一提示消息,所述第一提示消息用于提示用户将第二无线耳机放置在预设位置,所述预设位置为所述第二无线耳机的扬声器朝向所述第一无线耳机的麦克风的位置;以及用于当所述第二无线耳机位于所述预设位置 时,控制所述第二无线耳机的扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。The device according to claim 10 or 11, wherein when the first wireless headset is detected to be in a worn state, the speaker is controlled to emit a first audio aspect of a preset frequency band, and the transmitting unit is specifically For: when detecting that the first wireless headset is in a worn state, sending a first prompt message, the first prompt message is used to prompt a user to place the second wireless headset in a preset position, the preset position A position where the speaker of the second wireless earphone faces the microphone of the first wireless earphone; and for controlling the speaker of the second wireless earphone to emit the sound when the second wireless earphone is located at the preset position The first audio frequency in the preset frequency band, and the preset frequency band is a frequency band in which an ultrasonic wave is located.
  13. 根据权利要求10或11所述的装置,其特征在于,在所述当检测到所述第一无线耳机处于被佩戴状态时,控制扬声器发出预设频段的第一音频方面,所述发射单元具体用于:当检测到所述第一无线耳机处于被佩戴状态时,获取图像信息;以及用于根据所述图像信息确定预设方向上是否存在遮挡物,所述预设方向为与所述第一音频的发射方向匹配的方向;以及用于当检测到存在所述遮挡物时,控制所述扬声器发出所述预设频段的所述第一音频,所述预设频段为超声波所在的频段。The device according to claim 10 or 11, wherein when the first wireless headset is detected to be in a worn state, the speaker is controlled to emit a first audio aspect of a preset frequency band, and the transmitting unit is specifically Configured to: when it is detected that the first wireless headset is in a worn state, acquire image information; and determine whether there is an obstruction in a preset direction according to the image information, the preset direction is the same as the first direction A direction in which an audio emission direction matches; and for controlling the speaker to emit the first audio in the preset frequency band when the obstruction is detected, the preset frequency band being a frequency band in which an ultrasonic wave is located.
  14. 根据权利要求10-13任一项所述的装置,其特征在于,所述麦克风堵孔检测装置还包括第一处理单元,所述第一处理单元在所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,用于:当接收到针对第一语音数据的第一获取指令时,确定所述第二无线耳机与所述第一无线耳机之间的距离参数;以及用于当检测到所述距离参数小于预设距离阈值时,通知所述第二无线耳机接收所述第一语音数据;以及用于接收来自所述第二无线耳机的所述第一语音数据。The device according to any one of claims 10-13, wherein the microphone plugging detection device further comprises a first processing unit, and the first processing unit determines the After the microphone of the first wireless headset is in a hole blocking state, the microphone is configured to determine a distance parameter between the second wireless headset and the first wireless headset when a first acquisition instruction for the first voice data is received; And for notifying the second wireless headset to receive the first voice data when it is detected that the distance parameter is less than a preset distance threshold; and for receiving the first voice data from the second wireless headset .
  15. 根据权利要求10-13任一项所述的装置,其特征在于,所述麦克风堵孔检测装置还包括第二处理单元,所述第二处理单元在所述根据所述第二音频确定所述第一无线耳机的麦克风处于堵孔状态之后,用于:当接收到针对第二语音数据的第二获取指令时,确定所述第二无线耳机的麦克风是否处于所述堵孔状态;以及用于当接收到所述第二无线耳机的麦克风处于所述堵孔状态的上报信息时,发出第二提示消息,所述第二提示消息用于提示用户将所述第二无线耳机放置在所述第一无线耳机所在位置的预设范围内;以及用于当检测到所述第二无线耳机位于所述第一无线耳机所在位置的所述预设范围内时,控制所述第一无线耳机的麦克风和所述第二无线耳机的麦克风执行拾音操作;以及用于根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据。The device according to any one of claims 10-13, wherein the microphone plugging detection device further comprises a second processing unit, wherein the second processing unit determines the After the microphone of the first wireless headset is in the hole blocking state, it is used to: determine whether the microphone of the second wireless headset is in the hole blocking state when a second acquisition instruction for the second voice data is received; and When receiving the report information that the microphone of the second wireless headset is in the hole blocking state, a second prompt message is sent, and the second prompt message is used to prompt the user to place the second wireless headset in the first A wireless headset is located within a preset range; and is used to control a microphone of the first wireless headset when it is detected that the second wireless headset is within the preset range where the first wireless headset is located Performing a pickup operation with a microphone of the second wireless headset; and a first reference voice data picked up according to the microphone of the first wireless headset and the second The second reference voice data picked up by the microphone of the headset determines that the second speech data.
  16. 根据权利要求15所述的装置,其特征在于,在所述根据所述第一无线耳机的麦克风拾取的第一参考语音数据和所述第二无线耳机的麦克风拾取的第二参考语音数据确定所述第二语音数据方面,所述第二处理单元具体用于:将所述第一无线耳机的麦克风拾取的所述第一参考语音数据按照第一时间间隔分为多个第一数据片段组;以及用于将所述第二无线耳机的麦克风拾取的所述第二参考语音数据按照第二时间间隔分为多个第二数据片段组;以及用于根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据。The apparatus according to claim 15, wherein the first reference voice data picked up by the microphone of the first wireless headset and the second reference voice data picked up by the microphone of the second wireless headset are determined. In the aspect of the second voice data, the second processing unit is specifically configured to divide the first reference voice data picked up by the microphone of the first wireless headset into a plurality of first data segment groups according to a first time interval; And the second reference voice data picked up by the microphone of the second wireless earphone is divided into a plurality of second data fragment groups according to a second time interval; and according to the first data fragment group and the A second data segment is combined into the second voice data.
  17. 根据权利要求16所述的装置,其特征在于,在所述根据所述第一数据片段组和所述第二数据片段组合成所述第二语音数据方面,所述第二处理单元具体用于:对比所述第一数据片段组中的每个第一数据片段与对应的所述第二数据片段组中的第二数据片段,所述第一数据片段与对应的所述第二数据片段所处的时间段相同;以及用于选取每个所述第一数据片段与对应的所述第二数据片段中数据量多的数据片段为目标数据片段;以及用于将多个所述目标数据片段合成所述第二语音数据。The device according to claim 16, wherein in the aspect that the second voice data is combined according to the first data segment group and the second data segment, the second processing unit is specifically configured to: : Comparing each first data segment in the first data segment group with a corresponding second data segment in the second data segment group, where the first data segment and the corresponding second data segment are And the time period is the same; and used to select a data segment with a large amount of data in each of the first data segment and the corresponding second data segment as a target data segment; and used to convert a plurality of the target data segments Synthesizing the second speech data.
  18. 根据权利要求10-17任一项所述的装置,其特征在于,在所述检测到所述第一无线耳机处于被佩戴状态方面,所述确定单元具体用于:获取所述第一无线耳机的姿态参数;以及用于根据所述第一无线耳机的所述姿态参数检测到所述第一无线耳机处于所述被佩戴状态。The device according to any one of claims 10 to 17, wherein the determining unit is specifically configured to: obtain the first wireless headset when it is detected that the first wireless headset is in a worn state. And a posture parameter of the first wireless headset; and used to detect that the first wireless headset is in the worn state according to the posture parameter of the first wireless headset.
  19. 一种无线耳机,其特征在于,包括:处理器,存储器,以及一个或多个程序;所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包 括用于执行如权利要求1-9任一项所描述的方法中的步骤的指令。A wireless headset, comprising: a processor, a memory, and one or more programs; the one or more programs are stored in the memory and configured to be executed by the processor, so The program includes instructions for performing the steps in the method as described in any one of claims 1-9.
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method according to any one of claims 1-9.
PCT/CN2019/085879 2018-07-26 2019-05-07 Microphone hole-blockage detection method and related product WO2020019821A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810841653.0A CN109151698B (en) 2018-07-26 2018-07-26 Microphone hole blockage detection method and related product
CN201810841653.0 2018-07-26

Publications (1)

Publication Number Publication Date
WO2020019821A1 true WO2020019821A1 (en) 2020-01-30

Family

ID=64798190

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/085879 WO2020019821A1 (en) 2018-07-26 2019-05-07 Microphone hole-blockage detection method and related product

Country Status (2)

Country Link
CN (2) CN112584293B (en)
WO (1) WO2020019821A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596700A (en) * 2021-09-06 2021-11-02 Oppo广东移动通信有限公司 Terminal microphone testing method and device, mobile terminal and storage medium
CN113630708A (en) * 2021-08-13 2021-11-09 RealMe重庆移动通信有限公司 Earphone microphone abnormality detection method and device, earphone kit and storage medium
CN115065746A (en) * 2020-05-31 2022-09-16 深圳市睿耳电子有限公司 Wireless earphone intelligent retrieving method and related equipment, storage medium and program product

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112584293B (en) * 2018-07-26 2022-04-08 Oppo广东移动通信有限公司 Microphone hole blockage detection method and related product
CN110324776B (en) * 2019-06-28 2021-03-02 维沃移动通信有限公司 Miss-plugging MIC hole reminding method and terminal equipment
CN112216277A (en) * 2019-07-12 2021-01-12 Oppo广东移动通信有限公司 Method for carrying out voice recognition through earphone, earphone and voice recognition device
CN112533097B (en) * 2019-09-19 2023-06-23 Oppo广东移动通信有限公司 Earphone box detection method, earphone box and storage medium
CN113259832B (en) * 2021-06-29 2023-04-28 深圳市欧瑞博科技股份有限公司 Microphone array detection method and device, electronic equipment and storage medium
CN113793607A (en) * 2021-08-31 2021-12-14 Oppo广东移动通信有限公司 Control method of communication device, electronic device, and readable storage medium
CN114286216B (en) * 2021-11-30 2022-08-16 歌尔科技有限公司 Wrist-worn equipment and air pressure adjusting method, device and system thereof
CN114143661A (en) * 2022-01-10 2022-03-04 维沃移动通信有限公司 Charging box and control method thereof, charging control method and control device of earphone

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149033A (en) * 2010-10-28 2011-08-10 华为终端有限公司 Earphone processing method and user equipment
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal
JP2017011649A (en) * 2015-06-26 2017-01-12 京セラ株式会社 Electronic apparatus
CN106851516A (en) * 2017-03-03 2017-06-13 广东欧珀移动通信有限公司 Electronic installation and the detection method based on loudness
JP2018042137A (en) * 2016-09-08 2018-03-15 京セラ株式会社 Electronic apparatus, control device, control program, and sensitivity inspection method
CN109151698A (en) * 2018-07-26 2019-01-04 Oppo广东移动通信有限公司 Microphone plug-hole detection method and Related product

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297909B (en) * 2013-04-23 2016-04-13 加一联创电子科技有限公司 A kind of earphone method of testing and device
JP2014216867A (en) * 2013-04-25 2014-11-17 京セラ株式会社 Portable terminal equipment
WO2017035771A1 (en) * 2015-09-01 2017-03-09 华为技术有限公司 Voice path check method, device, and terminal
CN107205204B (en) * 2016-03-16 2022-09-13 广州启辰电子科技有限公司 Earphone fault detection method and special earphone for examination
CN107526510A (en) * 2016-06-22 2017-12-29 北京小米移动软件有限公司 sound playing method and device
CN106385489B (en) * 2016-08-31 2019-01-15 维沃移动通信有限公司 A kind of method and mobile terminal of determining upstream voice data
CN106792415B (en) * 2016-12-26 2019-11-15 歌尔科技有限公司 A kind of test method and device for digital microphone array
CN206713020U (en) * 2017-02-21 2017-12-05 佳禾智能科技股份有限公司 A kind of separated wireless Wave beam forming earphone
CN106953961A (en) * 2017-04-28 2017-07-14 苏州科技大学 The mobile phone speech application apparatus and its application process of a kind of dual microphone
CN207117917U (en) * 2017-08-28 2018-03-16 深圳传音通讯有限公司 Orientation broadcast loudspeaker

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149033A (en) * 2010-10-28 2011-08-10 华为终端有限公司 Earphone processing method and user equipment
JP2017011649A (en) * 2015-06-26 2017-01-12 京セラ株式会社 Electronic apparatus
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal
JP2018042137A (en) * 2016-09-08 2018-03-15 京セラ株式会社 Electronic apparatus, control device, control program, and sensitivity inspection method
CN106851516A (en) * 2017-03-03 2017-06-13 广东欧珀移动通信有限公司 Electronic installation and the detection method based on loudness
CN109151698A (en) * 2018-07-26 2019-01-04 Oppo广东移动通信有限公司 Microphone plug-hole detection method and Related product

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065746A (en) * 2020-05-31 2022-09-16 深圳市睿耳电子有限公司 Wireless earphone intelligent retrieving method and related equipment, storage medium and program product
CN113630708A (en) * 2021-08-13 2021-11-09 RealMe重庆移动通信有限公司 Earphone microphone abnormality detection method and device, earphone kit and storage medium
CN113630708B (en) * 2021-08-13 2023-08-29 RealMe重庆移动通信有限公司 Method and device for detecting abnormal earphone microphone, earphone kit and storage medium
CN113596700A (en) * 2021-09-06 2021-11-02 Oppo广东移动通信有限公司 Terminal microphone testing method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN109151698A (en) 2019-01-04
CN112584293B (en) 2022-04-08
CN112584293A (en) 2021-03-30
CN109151698B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2020019821A1 (en) Microphone hole-blockage detection method and related product
US20170214994A1 (en) Earbud Control Using Proximity Detection
WO2020019857A1 (en) Microphone hole blocking detection method and related product
WO2020019820A1 (en) Microphone hole blockage detection method and related product
WO2020019858A1 (en) Microphone hole clogging detection method and related products
WO2020019843A1 (en) Microphone hole blockage detection method and related product
CN110460721B (en) Starting method and device and mobile terminal
WO2021185077A1 (en) Audio processing method, apparatus and system
CN111800696B (en) Hearing assistance method, earphone, and computer-readable storage medium
CN109121059A (en) Loudspeaker plug-hole detection method and Related product
WO2022033176A1 (en) Audio play control method and apparatus, and electronic device and storage medium
CN114333886A (en) Audio processing method and device, electronic equipment and storage medium
WO2020019822A1 (en) Microphone hole blockage detecting method and related product
US11950041B2 (en) Control of an earphone device
KR20210001646A (en) Electronic device and method for determining audio device for processing audio signal thereof
CN110855823B (en) Call terminal, receiving mode selection method and computer equipment
KR102076350B1 (en) Audio data input-output device using virtual data input screen and method of performing the same
WO2023093412A1 (en) Active noise cancellation method and electronic device
CN109982208B (en) Control method and terminal equipment
WO2022254834A1 (en) Signal processing device, signal processing method, and program
JP2010087889A (en) Sound receiver and cellular phone
WO2023284403A1 (en) Audio processing method and device
CN117499837A (en) Audio processing method and device and audio playing equipment
CN109151701A (en) Microphone plug-hole detection method and Related product
CN113573209A (en) Audio processing method and device and electronic equipment

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: 19840725

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19840725

Country of ref document: EP

Kind code of ref document: A1