CN114979921A - Earphone sound leakage detection method and device and Bluetooth earphone - Google Patents

Earphone sound leakage detection method and device and Bluetooth earphone Download PDF

Info

Publication number
CN114979921A
CN114979921A CN202110220027.1A CN202110220027A CN114979921A CN 114979921 A CN114979921 A CN 114979921A CN 202110220027 A CN202110220027 A CN 202110220027A CN 114979921 A CN114979921 A CN 114979921A
Authority
CN
China
Prior art keywords
sound
bluetooth headset
waveform
volume
leakage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110220027.1A
Other languages
Chinese (zh)
Inventor
容淑莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110220027.1A priority Critical patent/CN114979921A/en
Publication of CN114979921A publication Critical patent/CN114979921A/en
Pending legal-status Critical Current

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/001Monitoring arrangements; Testing arrangements for loudspeakers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The embodiment of the invention relates to the technical field of Bluetooth earphones, and discloses a method and a device for detecting sound leakage of an earphone and a Bluetooth earphone, wherein the method comprises the steps of firstly collecting a mixed sound sample through a microphone, wherein the mixed sound sample contains a leakage sound and an ambient sound of a playback sound of the Bluetooth headset, then obtaining a first waveform of the mixed sound sample and a second waveform of the playing sound of the Bluetooth headset, finally judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value, if so, determining that the sound leakage of the bluetooth headset exists, the embodiment of the present invention provides a method for detecting sound leakage of a headset, by the method, whether the Bluetooth headset has sound leakage or not can be determined so as to determine the influence on the surrounding environment of the wearer of the Bluetooth headset.

Description

Earphone sound leakage detection method and device and Bluetooth earphone
Technical Field
The embodiment of the invention relates to the technical field of Bluetooth earphones, in particular to a method and a device for detecting sound leakage of an earphone and a Bluetooth earphone.
Background
The Bluetooth earphone applies the Bluetooth technology to the hands-free earphone, so that users can avoid annoying wiring stumbling and can easily talk in various ways. Since the advent of bluetooth headsets, it has been a good tool for the mobile commerce industry to increase efficiency. Currently, more and more users are used to wear bluetooth headsets in various occasions for learning, communication, entertainment or work.
In implementing the embodiments of the present invention, the inventors found that at least the following problems exist in the above related art: at present, as users are more and more accustomed to wearing the Bluetooth headset in life, when the users are immersed in a work or a thing, in public places, the users usually do not know that sound leaked from the headset affects the behaviors of other people.
Disclosure of Invention
In view of the foregoing defects in the prior art, an object of the embodiments of the present invention is to provide a method and an apparatus for detecting sound leakage of an earphone, and a bluetooth earphone.
The purpose of the embodiment of the invention is realized by the following technical scheme:
in order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides a method for detecting sound leakage of an earphone, where the method is applied to a bluetooth earphone, where the bluetooth earphone includes a microphone, and the method includes:
collecting a mixed sound sample by the microphone, wherein the mixed sound sample contains a leakage sound and an ambient sound of a play sound of the Bluetooth headset;
acquiring a first waveform of the mixed sound sample and a second waveform of playing sound of the Bluetooth headset;
judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value or not;
if yes, determining that the Bluetooth headset has the sound leakage condition.
In some embodiments, before the step of determining whether the matching degree of the first waveform and the second waveform is greater than a preset threshold, the method further includes:
setting a volume level of the environmental sound, wherein the volume level and the volume of the environmental sound are in a positive correlation mapping relation;
closing the Bluetooth headset for a preset time period to collect the ambient sound;
judging the volume level of the environmental sound according to the volume of the environmental sound;
and setting the preset threshold according to the volume level, wherein the volume level and the preset threshold are in a negative correlation mapping relation.
In some embodiments, after the step of determining that there is a sound leak condition in the bluetooth headset, the method further comprises:
and outputting a notification signal that sound leaks out from the Bluetooth headset, wherein the notification signal is a vibration signal and/or a voice signal.
In some embodiments, after the step of determining that there is a sound leak condition in the bluetooth headset, the method further comprises:
and reducing the volume of the Bluetooth headset.
In some embodiments, prior to the step of reducing the volume of the bluetooth headset, the method further comprises:
detecting whether a person exists in a preset range around a wearer of the Bluetooth headset through an infrared sensor and/or a human body sensor;
if yes, skipping to the step of reducing the volume of the Bluetooth headset;
if not, the volume of the Bluetooth headset is not adjusted.
In some embodiments, the step of reducing the volume of the bluetooth headset further comprises:
calculating a difference value between the matching degree and the preset threshold value;
and controlling the volume of the Bluetooth headset to be reduced step by step according to the difference until the matching degree of the first waveform and the second waveform is lower than the preset threshold.
In some embodiments, the step of controlling the volume of the bluetooth headset to decrease stepwise further comprises:
when receiving gesture actions made by a wearer of the Bluetooth headset, reducing the volume of the Bluetooth headset.
In order to solve the above technical problem, a second detecting device for detecting sound leakage of an earphone is applied to a bluetooth earphone, the bluetooth earphone includes a microphone, and the device includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a mixed sound sample through the microphone, and the mixed sound sample comprises leakage sound and environmental sound of playing sound of the Bluetooth headset;
the acquisition module is used for acquiring a first waveform of the mixed sound sample and a second waveform of the playing sound of the Bluetooth headset;
the judging module is used for judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value or not;
and the determining module is used for determining that the Bluetooth headset has sound leakage when the matching degree of the first waveform and the second waveform is greater than a preset threshold value.
In order to solve the above technical problem, in a third aspect, an embodiment of the present invention provides a bluetooth headset, including:
a microphone;
at least one processor connected to the microphone; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect as described above.
In order to solve the above technical problem, in a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method according to the first aspect.
In order to solve the above technical problem, in a fifth aspect, the present invention further provides a computer program product, which includes a computer program stored on a computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to execute the method according to the first aspect.
Compared with the prior art, the invention has the beneficial effects that: different from the prior art, the embodiment of the invention provides a method and a device for detecting sound leakage of an earphone and a bluetooth earphone, the method firstly collects mixed sound samples through a microphone, wherein the mixed sound sample contains a leakage sound and an ambient sound of a playback sound of the Bluetooth headset, then obtaining a first waveform of the mixed sound sample and a second waveform of the playing sound of the Bluetooth headset, finally judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value, if so, determining that the sound leakage of the bluetooth headset exists, the embodiment of the present invention provides a method for detecting sound leakage of a headset, by the method, whether the sound leakage condition exists in the Bluetooth headset can be determined so as to determine the influence on the surrounding environment of a wearer of the Bluetooth headset.
Drawings
The embodiments are illustrated by the figures of the accompanying drawings which correspond and are not meant to limit the embodiments, in which elements/modules and steps having the same reference number designation may be referred to by similar elements/modules and steps, unless otherwise indicated, and in which the drawings are not to scale.
Fig. 1 is a schematic view of an application scenario of a method for detecting sound leakage of an earphone according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for detecting sound leakage of an earphone according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for detecting sound leakage of an earphone according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of another method for detecting sound leakage of an earphone according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of another method for detecting sound leakage of an earphone according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of another method for detecting sound leakage of an earphone according to an embodiment of the present invention;
fig. 7 is a schematic view of a sub-flow of step 180 in the method for detecting sound leakage of the earphone shown in fig. 5 or 6;
fig. 8 is a schematic structural diagram of a device for detecting sound leakage of an earphone according to a second embodiment of the present invention;
fig. 9 is a schematic structural diagram of another volume earphone sound leakage detection provided by the second embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of a bluetooth headset according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications can be made by persons skilled in the art without departing from the spirit of the invention. All falling within the scope of the present invention.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the present application. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts. Further, the terms "first," "second," and the like, as used herein, do not limit the data and the execution order, but merely distinguish the same items or similar items having substantially the same functions and actions.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In order to solve the problem that the existing bluetooth headset is used for being too immersed in the world of the bluetooth headset in practical use, and the condition that the leakage sound of the bluetooth headset is large and can affect other people around the bluetooth headset is not realized, the embodiment of the invention provides a headset sound leakage detection method, which can determine whether the bluetooth headset has the sound leakage condition or not by comparing the wave forms of the mixed surrounding sound and the sound played in the headset so as to determine the influence on the surrounding environment of the wearer of the bluetooth headset.
Fig. 1 is a schematic diagram of an application environment of a method for detecting sound leakage of an earphone according to an embodiment of the present invention, where the application environment includes: the bluetooth headset 10 and the wearer A of bluetooth headset 10, bluetooth headset 10 is provided with microphone 11, microphone 11 is used for gathering the mixed sound that contains the sound of revealing of the broadcast sound of bluetooth headset and ambient sound, and will mixed sound turns into digital signal, further by processing unit in the bluetooth headset 10 handles mixed sound sample, thereby confirms whether there is the circumstances that sound leaks in the bluetooth headset.
It should be noted that the method for detecting sound leakage of an earphone provided in the embodiment of the present invention may not be applied to a bluetooth earphone, but may also be applied to other types of earphones, such as a wired earphone, and similarly, the microphone 11 may not be the microphone 11 shown in the drawing, or may be a sound collection device in other shapes, and specifically, may be set according to actual needs, and does not need to be limited by the application scenario.
Specifically, the embodiments of the present invention will be further explained below with reference to the drawings.
Example one
An embodiment of the present invention provides a method for detecting sound leakage of an earphone, which can be applied to a bluetooth earphone 10 in the above application scenario, please refer to fig. 2, which shows a flowchart of the method for detecting sound leakage of an earphone according to the embodiment of the present invention, where the method includes, but is not limited to, the following steps:
step 110: collecting a mixed sound sample by the microphone;
wherein the mixed sound sample contains a leakage sound and an ambient sound of a play sound of the Bluetooth headset. In the embodiment of the invention, firstly, the sound is collected by the microphone arranged on the bluetooth headset, and when the bluetooth headset plays the sound, if the sound leaks, the microphone is close to the bluetooth headset, so that the leaked sound of the played sound of the bluetooth headset can be collected, and meanwhile, the environmental sound of the environment where the current wearer of the bluetooth headset is located can also be collected.
Step 120: acquiring a first waveform of the mixed sound sample and a second waveform of playing sound of the Bluetooth headset;
further, when the mixed sound is collected through the microphone, the microphone converts a sound signal of the mixed sound into an electric signal, so that the mixed sound sample is sent to a processor/controller of the bluetooth headset, and the bluetooth headset acquires a first waveform of the mixed sound sample according to the electric signal. In addition, a second waveform of a sound currently played by the bluetooth headset may also be obtained, where the second waveform may be obtained by identification according to an electrical signal of the played sound, or may be directly obtained through an electronic device connected to the bluetooth headset, such as a mobile phone.
Step 130: judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value or not; if yes, go to step 140; if not, go to step 150.
In the embodiment of the present invention, because the leakage sound of the played sound of the bluetooth headset usually has little influence on the environment in a busy place, at this time, the environmental sound in the busy environment is inevitably more and noisier than the leakage sound, the occupancy of the environmental sound in the mixed sound is higher, and at this time, if the first waveform and the second waveform are compared, the similarity/matching degree between the two waveforms is lower. In a quiet scene, the leakage sound of the playing sound of the bluetooth headset generally has a large influence on the environment, at this time, the proportion of the environment sound in the mixed sound in the quiet environment is low, the proportion of the leakage sound of the playing sound of the bluetooth headset in the mixed sound is high, and at this time, if the first waveform and the second waveform are compared, the similarity/matching degree of the two waveforms is high. Based on the above, a preset threshold may be set, and whether the sound leakage of the bluetooth headset occurs or not may be determined by comparing whether the matching degree of the first waveform and the second waveform is greater than the preset threshold.
Step 140: and determining that the Bluetooth headset has sound leakage.
In the embodiment of the present invention, if the matching degree of the first waveform and the second waveform is greater than the preset threshold, it may be determined that the bluetooth headset has a sound leakage condition, and in this case, the audio content played by the bluetooth headset may be heard by other people existing in the current environment, so as to affect the other people and cause interference to the other people.
Step 150: and determining that the Bluetooth headset does not have the condition of sound leakage or the volume of the leaked sound is not large.
In the embodiment of the present invention, if the matching degree of the first waveform and the second waveform is smaller than the preset threshold, a situation may be that the bluetooth headset does not leak sound; in another case, it may also be that the sound leaked from the bluetooth headset may not affect other people in the environment because the bluetooth headset is located in a noisy and busy environment.
Further, in some embodiments, please refer to fig. 3 together, which illustrates a flow of another method for detecting sound leakage of an earphone according to an embodiment of the present invention, and as shown in fig. 3, before the step 130, the method further includes:
step 161: setting a volume level of the ambient sound;
wherein the volume level and the volume level of the environmental sound are in a positive correlation mapping relation. In this embodiment of the present invention, before the step of determining whether the matching degree of the first waveform and the second waveform is greater than the preset threshold, the volume level of the environmental sound may be preset. For example, the volume decibel range that can be detected in real life in a generally quiet environment such as a library is set to a low volume level, the volume decibel range that can be detected in real life in a somewhat loud environment such as a cafe, which typically has a portion of human voice, is set to a medium volume level, and the volume decibel range that can be detected in real life in a generally noisy environment such as a pub or a vegetable market is set to a high volume level.
Step 162: closing the Bluetooth headset for a preset time period to collect the ambient sound;
further, in order to acquire the current actual noisy situation of the environment where the wearer of the bluetooth headset is located, the bluetooth headset may be closed for a period of time to acquire the environmental sound, and the step of closing the bluetooth headset to acquire the environmental sound may be performed automatically by the bluetooth headset or may be performed by manual control of a user. Preferably, when the automatic operation is performed, the bluetooth headset may be set to turn off and collect the mixed sound when the bluetooth headset detects a large change of the mixed sound, that is, when the environment is switched normally, or may be set to detect at regular time. Or, the collection of the environmental sound can be performed when the user makes a gesture action or selects on the electronic device connected with the Bluetooth headset by default.
Step 163: judging the volume level of the environmental sound according to the volume of the environmental sound;
after collecting ambient sound, according to present ambient sound's volume size, judge ambient sound's volume level to can confirm currently the wearer is in what kind of environment, how the noisy degree of current environment is.
Step 164: and setting the preset threshold according to the volume level.
And the volume level and the preset threshold value are in a mapping relation of negative correlation. In an embodiment of the present invention, after determining the volume level of the ambient sound, the preset threshold may be set according to the volume level.
For example, as an example of step 161, when the volume level is determined to be high, it may be determined that the environment sound is loud in a noisy environment, and the sound leaked from the earphone usually hardly covers the environment sound, and the proportion of the leaked sound in the mixed sound is usually hard to reach a high value, but the sound leaked from the earphone still may affect people around, so the preset threshold may be set to be small, for example, about fifty percent, and when the matching degree of the first waveform and the second waveform is determined to be over fifty percent, it is determined that the sound leakage of the bluetooth earphone exists.
Alternatively, when the volume level is determined to be low, it may be determined that the environment sound is low in a quieter environment, and the sound leaked from the earphone easily covers the environment sound, and the proportion of the leaked sound in the mixed sound is generally easy to reach a high value, but the leaked sound is not necessarily large and does not necessarily affect people around, so that the preset threshold may be set to be large, for example, ninety percent or so, and when the matching degree of the first waveform and the second waveform is determined to exceed ninety percent, it may be determined that the sound leakage of the bluetooth earphone exists.
Further, in some embodiments, please refer to fig. 4 together, which illustrates a flow of another method for detecting sound leakage of an earphone according to an embodiment of the present invention, and as shown in fig. 4, after the step 140, the method further includes:
step 170: and outputting a notification signal that the sound of the Bluetooth headset leaks.
Wherein the notification signal is a vibration signal and/or a voice signal. In the embodiment of the present invention, after the step of determining that the sound leakage exists in the bluetooth headset, a notification signal may be output, so that a wearer of the bluetooth headset knows that the sound leakage exists in the bluetooth headset and may affect surrounding people, and meanwhile, the bluetooth headset may be used as a next bluetooth headset to perform corresponding operations to reduce an early warning about the impact caused by the sound leakage. Specifically, the vibration of the vibration motor arranged in the bluetooth headset can be used for reminding the wearer, or the broadcast voice can be used for informing the wearer, specifically, the vibration motor can be arranged according to actual needs, and the limitation of the embodiment of the invention is not required.
Further, in some embodiments, please refer to fig. 5 together, which illustrates a flow of another method for detecting sound leakage of an earphone according to an embodiment of the present invention, and as shown in fig. 5, after the step 140, the method further includes:
step 180: and reducing the volume of the Bluetooth headset.
In the embodiment of the present invention, after the step of determining that the sound leakage exists in the bluetooth headset, the volume of the bluetooth headset may be reduced to reduce the influence of the sound leakage, so as to avoid the influence of the sound leakage on the work or rest of other people around the bluetooth headset.
Further, in some embodiments, please refer to fig. 6 together, which illustrates a flow of another method for detecting sound leakage of an earphone according to an embodiment of the present invention, and as shown in fig. 6, before the step 180, the method further includes:
step 191: detecting whether a person exists in a preset range around a wearer of the Bluetooth headset through an infrared sensor and/or a human body sensor; if yes, jumping to step 180; if not, go to step 192.
Step 192: and the volume of the Bluetooth headset is not adjusted.
In the embodiment of the present invention, since background music is played in a general store in a place such as a bar or a cafe, the background music may cause loud ambient sound, however, if there is no person in the public place, there is no situation that the leaked earphone sound may affect the person, therefore, before the step of reducing the volume of the bluetooth earphone, it may be further detected whether there is a person in a preset range around the wearer of the bluetooth earphone, if yes, the step of reducing the volume of the bluetooth earphone is skipped, and if no, the volume of the bluetooth earphone may not be adjusted.
Wherein, the preset range can be set according to the actual situation. Preferably, the preset range may be set according to the environment in combination with the volume level of the environmental sound obtained in step 163, and in a quiet environment, the preset range may be set to be larger, for example, a circle range with a radius of one meter around the wearer of the bluetooth headset is set as the preset range; in a noisy environment, a small range may be set, for example, a circle range of a half meter radius around the wearer of the bluetooth headset is set as the preset range, and in particular, the setting may be performed according to actual needs, and the limitation of the embodiment of the present invention is not required.
Further, in some embodiments, please refer to fig. 7 together, which illustrates a sub-flow of step 180 in the method of fig. 5 or fig. 6, wherein the step 180 further includes:
step 181: calculating a difference value between the matching degree and the preset threshold value;
step 182: and controlling the volume of the Bluetooth headset to be reduced step by step according to the difference until the matching degree of the first waveform and the second waveform is lower than the preset threshold.
In the embodiment of the present invention, before the step of reducing the volume of the bluetooth headset, a difference between the matching degree and the preset threshold may be calculated, the difference value can be used for determining the influence degree of the current leaked sound of the Bluetooth headset on the environment, and controlling the volume of the Bluetooth headset to be reduced step by step according to the difference value, wherein the mixed sound is collected again when the volume is reduced each time, re-acquiring the first waveform and the second waveform, and re-comparing the matching degree of the first waveform and the second waveform after the volume of the earphone is reduced with the preset threshold value until the matching degree of the first waveform and the second waveform is lower than the preset threshold value, therefore, the volume of the Bluetooth headset can be properly adjusted, the phenomenon that the user experience is influenced by too low volume adjustment is avoided, or the volume is still high and can interfere other people in the environment.
Wherein, control the step that bluetooth headset's volume reduces step by step further includes: and when receiving the gesture action made by the wearer of the Bluetooth headset, reducing the volume of the Bluetooth headset. That is to say, in the embodiment of the present invention, the step of reducing the volume of the bluetooth headset may be automatically controlled by the bluetooth headset, or the step of reducing the volume of the bluetooth headset may also be handed over to the user, and when the user knows that the current bluetooth headset leaks sound seriously through the notification signal, and needs to reduce the volume, the user may control the bluetooth headset to reduce the volume through a gesture action. Specifically, the gesture may be acquired through a touch area or a button of the bluetooth headset, or may be acquired through a sensor, such as an infrared sensor or a human body sensor, disposed on the bluetooth headset.
Example two
An embodiment of the present invention provides a device for detecting sound leakage of an earphone, which can be applied to a bluetooth earphone 10 shown in the above application scenario, please refer to fig. 8, which shows a schematic structural diagram of a device 200 for detecting sound leakage of an earphone according to an embodiment of the present invention, where the device 200 for detecting sound leakage of an earphone includes: an acquisition module 210, an acquisition module 220, a judgment module 230, and a determination module 240.
The collecting module 210 is configured to collect a mixed sound sample through the microphone, where the mixed sound sample includes a leakage sound and an ambient sound of a playing sound of the bluetooth headset;
the obtaining module 220 is configured to obtain a first waveform of the mixed sound sample and a second waveform of the playing sound of the bluetooth headset;
the determining module 230 is configured to determine whether a matching degree of the first waveform and the second waveform is greater than a preset threshold;
the determining module 240 is configured to determine that the bluetooth headset has a sound leakage condition when the matching degree of the first waveform and the second waveform is greater than a preset threshold.
Further, in some embodiments, please refer to fig. 9 together, which illustrates a structure of another earphone sound leakage detection apparatus provided in the embodiments of the present invention, and as shown in fig. 9, the earphone sound leakage detection apparatus 200 further includes:
a setting module 250, configured to set a volume level of the environmental sound, where the volume level and the volume level of the environmental sound are in a positive correlation mapping relationship;
closing the Bluetooth headset for a preset time period to collect the environmental sound;
judging the volume level of the environmental sound according to the volume of the environmental sound;
and setting the preset threshold according to the volume level, wherein the volume level and the preset threshold are in a negative correlation mapping relation.
Further, in some embodiments, with continued reference to fig. 9, the apparatus 200 for detecting sound leakage of an earphone further comprises:
an output module 260, configured to output a notification signal that the sound of the bluetooth headset leaks, where the notification signal is a vibration signal and/or a voice signal.
Further, in some embodiments, with continued reference to fig. 9, the apparatus 200 for detecting sound leakage of an earphone further comprises:
and an adjusting module 270, configured to reduce the volume of the bluetooth headset.
Further, in some embodiments, with continued reference to fig. 9, the apparatus 200 for detecting sound leakage of an earphone further comprises:
the detection module 280 is used for detecting whether a person exists in a preset range around a wearer of the Bluetooth headset through an infrared sensor and/or a human body sensor;
if yes, skipping to the step of reducing the volume of the Bluetooth headset;
and if not, the volume of the Bluetooth headset is not adjusted.
Further, in some embodiments, the adjusting module 270 is further configured to calculate a difference between the matching degree and the preset threshold;
and controlling the volume of the Bluetooth headset to be reduced step by step according to the difference until the matching degree of the first waveform and the second waveform is lower than the preset threshold.
Further, in some embodiments, the adjusting module 270 is further configured to decrease the volume of the bluetooth headset when receiving a gesture motion made by the wearer of the bluetooth headset.
EXAMPLE III
An embodiment of the present invention further provides a bluetooth headset, please refer to fig. 10, which shows a hardware structure of a bluetooth headset capable of performing the method for detecting sound leakage of the headset shown in fig. 2 to fig. 7. The bluetooth headset 10 may be the bluetooth headset 10 shown in fig. 1, and the bluetooth headset 10 further includes a microphone 11, and the microphone 11 may also be the microphone 11 shown in fig. 1.
The bluetooth headset 10 further comprises: at least one processor 12 connected to the microphone 11; and a memory 13 communicatively coupled to the at least one processor 12, with one processor 12 being illustrated in fig. 10 as an example. The memory 13 stores instructions executable by the at least one processor 12, the instructions being executable by the at least one processor 12 to enable the at least one processor 12 to perform the method for detecting sound leakage of an earphone as described above with reference to fig. 2 to 7. The processor 12 and the memory 13 may be connected by a bus or other means, and fig. 10 illustrates the bus connection as an example.
The memory 13, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for detecting sound leakage of an earphone in the embodiment of the present application, for example, the modules shown in fig. 8 to 9. The processor 12 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 13, that is, the method for detecting sound leakage of the earphone of the above-mentioned method embodiment is realized.
The memory 13 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the detection device of the earphone sound leakage, and the like. Further, the memory 13 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 13 optionally includes memory located remotely from the processor 12, and these remote memories may be connected over a network to the headset sound leak detection device. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 13, and when executed by the one or more processors 12, perform the method for detecting sound leakage of an earphone in any of the above-described method embodiments, for example, perform the method steps of fig. 2 to 7 described above, and implement the functions of the modules and units in fig. 8 to 9.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer-executable instructions for execution by one or more processors, for example, to perform the method steps of fig. 2-7 described above to implement the functions of the modules in fig. 8-9.
Embodiments of the present application further provide a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method for detecting sound leakage of a headset in any of the above-described method embodiments, for example, to perform the method steps of fig. 2 to 7 described above, and to implement the functions of the respective modules in fig. 8 to 9.
The embodiment of the invention provides a method and a device for detecting sound leakage of an earphone and a Bluetooth earphone, and the method comprises the steps of firstly collecting a mixed sound sample through a microphone, wherein the mixed sound sample comprises leakage sound and environmental sound of playing sound of the Bluetooth earphone, then obtaining a first waveform of the mixed sound sample and a second waveform of the playing sound of the Bluetooth earphone, finally judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value, and if so, determining the condition of sound leakage of the Bluetooth earphone.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for detecting sound leakage of a Bluetooth headset, the method being applied to the Bluetooth headset comprising a microphone, the method comprising:
collecting a mixed sound sample by the microphone, wherein the mixed sound sample contains a leakage sound and an ambient sound of a play sound of the Bluetooth headset;
acquiring a first waveform of the mixed sound sample and a second waveform of playing sound of the Bluetooth headset;
judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value or not;
if yes, determining that the Bluetooth headset has the sound leakage condition.
2. The detection method according to claim 1,
before the step of determining whether the matching degree of the first waveform and the second waveform is greater than a preset threshold, the method further includes:
setting a volume level of the environmental sound, wherein the volume level and the volume of the environmental sound are in a positive correlation mapping relation;
closing the Bluetooth headset for a preset time period to collect the ambient sound;
judging the volume level of the environmental sound according to the volume of the environmental sound;
and setting the preset threshold according to the volume level, wherein the volume level and the preset threshold are in a negative correlation mapping relation.
3. The detection method according to claim 2,
after the step of determining that the bluetooth headset has sound leakage, the method further comprises:
and outputting a notification signal that sound leaks out of the Bluetooth headset, wherein the notification signal is a vibration signal and/or a voice signal.
4. The detection method according to claim 3,
after the step of determining that there is a sound leak condition in the bluetooth headset, the method further comprises:
and reducing the volume of the Bluetooth headset.
5. The detection method according to claim 4,
prior to the step of reducing the volume of the bluetooth headset, the method further comprises:
detecting whether a person exists in a preset range around a wearer of the Bluetooth headset through an infrared sensor and/or a human body sensor;
if yes, skipping to the step of reducing the volume of the Bluetooth headset;
and if not, the volume of the Bluetooth headset is not adjusted.
6. The detection method according to claim 5,
the step of reducing the volume of the bluetooth headset further comprises:
calculating a difference value between the matching degree and the preset threshold value;
and controlling the volume of the Bluetooth headset to be reduced step by step according to the difference until the matching degree of the first waveform and the second waveform is lower than the preset threshold.
7. The detection method according to claim 6,
the step of controlling the volume of the Bluetooth headset to be reduced step by step further comprises the following steps:
and when receiving the gesture action made by the wearer of the Bluetooth headset, reducing the volume of the Bluetooth headset.
8. A detection device for earphone sound leakage is applied to a Bluetooth earphone, wherein the Bluetooth earphone comprises a microphone, and the device comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a mixed sound sample through the microphone, and the mixed sound sample comprises leakage sound and environmental sound of playing sound of the Bluetooth headset;
the acquisition module is used for acquiring a first waveform of the mixed sound sample and a second waveform of the playing sound of the Bluetooth headset;
the judging module is used for judging whether the matching degree of the first waveform and the second waveform is greater than a preset threshold value or not;
and the determining module is used for determining that the Bluetooth headset has sound leakage when the matching degree of the first waveform and the second waveform is greater than a preset threshold value.
9. A bluetooth headset, comprising:
a microphone;
at least one processor connected to the microphone; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 1-7.
CN202110220027.1A 2021-02-26 2021-02-26 Earphone sound leakage detection method and device and Bluetooth earphone Pending CN114979921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110220027.1A CN114979921A (en) 2021-02-26 2021-02-26 Earphone sound leakage detection method and device and Bluetooth earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110220027.1A CN114979921A (en) 2021-02-26 2021-02-26 Earphone sound leakage detection method and device and Bluetooth earphone

Publications (1)

Publication Number Publication Date
CN114979921A true CN114979921A (en) 2022-08-30

Family

ID=82973636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110220027.1A Pending CN114979921A (en) 2021-02-26 2021-02-26 Earphone sound leakage detection method and device and Bluetooth earphone

Country Status (1)

Country Link
CN (1) CN114979921A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115775562A (en) * 2023-02-13 2023-03-10 深圳市深羽电子科技有限公司 Sound leakage detection method for Bluetooth headset
CN116761128A (en) * 2023-08-23 2023-09-15 深圳市中翔达润电子有限公司 Sport Bluetooth earphone sound leakage detection method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115775562A (en) * 2023-02-13 2023-03-10 深圳市深羽电子科技有限公司 Sound leakage detection method for Bluetooth headset
CN115775562B (en) * 2023-02-13 2023-04-07 深圳市深羽电子科技有限公司 Sound leakage detection method for Bluetooth headset
CN116761128A (en) * 2023-08-23 2023-09-15 深圳市中翔达润电子有限公司 Sport Bluetooth earphone sound leakage detection method
CN116761128B (en) * 2023-08-23 2023-11-24 深圳市中翔达润电子有限公司 Sport Bluetooth earphone sound leakage detection method

Similar Documents

Publication Publication Date Title
CN108810788B (en) Wearing condition detection method and device of wireless earphone and wireless earphone
US10453457B2 (en) Method for performing voice control on device with microphone array, and device thereof
US20170053666A1 (en) Environment sensing intelligent apparatus
CN107564523B (en) Earphone answering method and device and earphone
CN109284080B (en) Sound effect adjusting method and device, electronic equipment and storage medium
WO2017032030A1 (en) Volume adjusting method and user terminal
CN108766468B (en) Intelligent voice detection method, wireless earphone, TWS earphone and terminal
CN110995933A (en) Volume adjusting method and device of mobile terminal, mobile terminal and storage medium
CN114979921A (en) Earphone sound leakage detection method and device and Bluetooth earphone
CN109192214B (en) Voice number taking method, storage medium and robot
CN109361995B (en) Volume adjusting method and device for electrical equipment, electrical equipment and medium
CN109473097B (en) Intelligent voice equipment and control method thereof
CN107358964B (en) Method for detecting an alert signal in a changing environment
CN108733341B (en) Voice interaction method and device
CN105376418A (en) Incoming call information processing method, device and system
CN111161746B (en) Voiceprint registration method and system
CN111028838A (en) Voice wake-up method, device and computer readable storage medium
CN107426200B (en) Multimedia data processing method and device
CN110197663B (en) Control method and device and electronic equipment
CN109584877B (en) Voice interaction control method and device
CN109271480B (en) Voice question searching method and electronic equipment
CN109213471B (en) Volume adjusting method and system
CN105376385A (en) Volume adjusting method and user terminal
CN116132869A (en) Earphone volume adjusting method, earphone and storage medium
CN105956169B (en) Picture processing method and system and voice playing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination