A method and device for detecting earphone sound leakage and a Bluetooth earphone
By collecting mixed sound samples in Bluetooth headsets and judging waveform matching, the problem of leakage of Bluetooth headset sound leakage is solved, and effective detection and impact on the use environment of the headset use.
Patent Information
- Application Number
- CN202110220027.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-26
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2041-02-26
AI Technical Summary
When Bluetooth headsets are used in public places, users often unconsciously cause headset sound leakage, affecting the surrounding environment of people.
Collect mixed sound samples through microphones, including leakage sounds and environmental sounds of headset playback sounds, obtain the waveforms of the two, and determine whether the waveform matching degree is greater than the preset threshold. Headphones volume.
Effectively detect and determine whether the Bluetooth headset has sound leakage, reduce the impact on the surrounding environment, and improve the consciousness of users.
Smart Images

Figure CN114979921B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of Bluetooth headsets, and in particular to a method and device for detecting headset sound leakage, and a Bluetooth headset. Background Art
[0002] Bluetooth headsets are hands-free headsets that use Bluetooth technology, allowing users to avoid the entanglement of annoying wires and make calls in various ways. Since the advent of Bluetooth headsets, they have been a good tool for mobile business people to improve efficiency. Currently, more and more users are accustomed to wearing Bluetooth headsets in various occasions for learning, talking, leisure, entertainment or work.
[0003] In the process of implementing the embodiments of the present invention, the inventors found that there are at least the following problems in the above-mentioned related technologies: At present, as users are more and more accustomed to wearing Bluetooth headsets in their lives, when users are immersed in a work or thing, in public places, users are usually unaware that the sound leaked from the headset affects the behavior of other people. Summary of the invention
[0004] In view of the above-mentioned defects in the prior art, an object of the embodiments of the present invention is to provide a method and device for detecting earphone sound leakage and a Bluetooth earphone.
[0005] The purpose of the embodiment of the present invention is achieved through the following technical solutions:
[0006] In order to solve the above technical problems, in a first aspect, an embodiment of the present invention provides a method for detecting sound leakage of earphones, which is applied to a Bluetooth earphone, wherein the Bluetooth earphone includes a microphone, and the method includes:
[0007] Collecting a mixed sound sample through the microphone, wherein the mixed sound sample includes a leakage sound of the playback sound of the Bluetooth headset and an ambient sound;
[0008] Acquire a first waveform of the mixed sound sample and a second waveform of the sound played by the Bluetooth headset;
[0009] Determining whether the matching degree between the first waveform and the second waveform is greater than a preset threshold;
[0010] If so, it is determined that there is sound leakage from the Bluetooth headset.
[0011] In some embodiments, before the step of determining whether the matching degree between the first waveform and the second waveform is greater than a preset threshold, the method further includes:
[0012] Setting the volume level of the ambient sound, wherein the volume level is positively correlated with the volume of the ambient sound;
[0013] Turning off the Bluetooth headset for a preset period of time to collect the ambient sound;
[0014] Determining the volume level of the ambient sound according to the volume of the ambient sound;
[0015] The preset threshold is set according to the volume level, wherein the volume level and the preset threshold are in a negatively correlated mapping relationship.
[0016] In some embodiments, after the step of determining that the Bluetooth headset has sound leakage, the method further includes:
[0017] A notification signal is outputted indicating that there is sound leakage from the Bluetooth headset, wherein the notification signal is a vibration signal and / or a voice signal.
[0018] In some embodiments, after the step of determining that the Bluetooth headset has sound leakage, the method further includes:
[0019] Lower the volume of the Bluetooth headset.
[0020] In some embodiments, before the step of reducing the volume of the Bluetooth headset, the method further includes:
[0021] Detecting whether there is a person within a preset range around the wearer of the Bluetooth headset by using an infrared sensor and / or a human body sensor;
[0022] If yes, jump to the step of lowering the volume of the Bluetooth headset;
[0023] If not, the volume of the Bluetooth headset is not adjusted.
[0024] In some embodiments, the step of reducing the volume of the Bluetooth headset further comprises:
[0025] Calculating the difference between the matching degree and the preset threshold;
[0026] According to the difference, the volume of the Bluetooth headset is controlled to be gradually reduced until the matching degree between the first waveform and the second waveform is lower than the preset threshold.
[0027] In some embodiments, the step of controlling the volume of the Bluetooth headset to decrease step by step further comprises:
[0028] When a gesture action made by the wearer of the Bluetooth headset is received, the volume of the Bluetooth headset is reduced.
[0029] In order to solve the above technical problems, a second device for detecting sound leakage of earphones is applied to a Bluetooth earphone, wherein the Bluetooth earphone includes a microphone, and the device includes:
[0030] A collection module, used for collecting mixed sound samples through the microphone, wherein the mixed sound samples include leakage sound of the playback sound of the Bluetooth headset and environmental sound;
[0031] An acquisition module, used to acquire a first waveform of the mixed sound sample and a second waveform of the sound played by the Bluetooth headset;
[0032] A judging module, used to judge whether the matching degree between the first waveform and the second waveform is greater than a preset threshold;
[0033] The determination module is used to determine that sound leakage occurs in the Bluetooth headset when the matching degree between the first waveform and the second waveform is greater than a preset threshold.
[0034] In order to solve the above technical problems, in a third aspect, an embodiment of the present invention provides a Bluetooth headset, comprising:
[0035] microphone;
[0036] at least one processor coupled to the microphone; and,
[0037] a memory communicatively connected to the at least one processor; wherein,
[0038] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect above.
[0039] To solve the above technical problems, in a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method described in the first aspect above.
[0040] To solve the above technical problems, in the fifth aspect, an embodiment of the present invention further provides a computer program product, wherein the computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the method described in the first aspect above.
[0041] Compared with the prior art, the beneficial effects of the present invention are: different from the prior art, the embodiments of the present invention provide a method, device and Bluetooth headset for detecting headphone sound leakage, the method first collects a mixed sound sample through the microphone, wherein the mixed sound sample includes the leakage sound and ambient sound of the sound played by the Bluetooth headset, and then obtains a first waveform of the mixed sound sample and a second waveform of the sound played by the Bluetooth headset, and finally determines whether the matching degree of the first waveform and the second waveform is greater than a preset threshold, and if so, it is determined that the Bluetooth headset has sound leakage. The embodiments of the present invention provide a method for detecting headphone sound leakage, by which it can be determined whether the Bluetooth headset has sound leakage, so as to determine the impact on the surrounding environment of the wearer of the Bluetooth headset. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements / modules and steps with the same reference numerals in the drawings are represented as similar elements / modules and steps. Unless otherwise specified, the figures in the drawings do not constitute proportional limitations.
[0043] Figure 1 It is a schematic diagram of an application scenario of a method for detecting sound leakage of an earphone provided by an embodiment of the present invention;
[0044] Figure 2 It is a flowchart of a method for detecting sound leakage of earphones provided in Embodiment 1 of the present invention;
[0045] Figure 3 It is a flowchart of another method for detecting sound leakage of earphones provided in Embodiment 1 of the present invention;
[0046] Figure 4 It is a flowchart of another method for detecting sound leakage of earphones provided in Embodiment 1 of the present invention;
[0047] Figure 5 It is a flowchart of another method for detecting sound leakage of earphones provided in Embodiment 1 of the present invention;
[0048] Figure 6 It is a flowchart of another method for detecting sound leakage of earphones provided in Embodiment 1 of the present invention;
[0049] Figure 7 yes Figure 5 or Figure 6 A schematic diagram of a sub-flow chart of step 180 in the method for detecting sound leakage of earphones shown;
[0050] Figure 8It is a structural schematic diagram of a device for detecting sound leakage of earphones provided in Embodiment 2 of the present invention;
[0051] Fig. 9 It is a structural schematic diagram of another method for detecting sound leakage of a volume earphone provided in Embodiment 2 of the present invention;
[0052] Fig.10 It is a schematic diagram of the hardware structure of a Bluetooth headset provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0053] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device or the flow chart. In addition, the words "first", "second", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0056] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification and in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0057] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0058] In order to solve the problem that in actual use of Bluetooth headsets, users are too immersed in their own world and do not realize that the leakage sound of the Bluetooth headset is loud and may affect other people around them, an embodiment of the present invention provides a method for detecting sound leakage of headsets. The method can determine whether there is sound leakage of the Bluetooth headset by comparing the waveform of the surrounding mixed sound and the sound played in the headset, so as to determine the impact on the environment around the wearer of the Bluetooth headset.
[0059] Figure 1 A schematic diagram of one of the application environments of the headphone sound leakage detection method provided in an embodiment of the present invention, wherein the application environment includes: a Bluetooth headset 10 and a wearer A of the Bluetooth headset 10, the Bluetooth headset 10 is provided with a microphone 11, the microphone 11 is used to collect a mixed sound including a leakage sound of the playback sound of the Bluetooth headset and an ambient sound, and convert the mixed sound into a digital signal, and the processing unit in the Bluetooth headset 10 further processes the mixed sound sample to determine whether there is sound leakage in the Bluetooth headset.
[0060] It should be noted that the headphone sound leakage detection method provided in the embodiment of the present invention may not be applied to Bluetooth headphones, but may also be applied to other types of headphones, such as wired headphones. Similarly, the microphone 11 may not be the microphone 11 shown in the figure, but may also be a sound collection device of other shapes. Specifically, it can be set according to actual needs without being restricted to the limitations of this application scenario.
[0061] Specifically, the embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0062] Embodiment 1
[0063] The embodiment of the present invention provides a method for detecting sound leakage of earphones, which can be applied to the Bluetooth earphone 10 described in the above application scenario. Figure 2 , which shows a flow chart of a method for detecting sound leakage of earphones provided by an embodiment of the present invention, the method includes but is not limited to the following steps:
[0064] Step 110: Collect mixed sound samples through the microphone;
[0065] The mixed sound sample includes the leakage sound of the sound played by the Bluetooth headset and the ambient sound. In the embodiment of the present invention, first, it is necessary to collect the sound through the microphone arranged on the Bluetooth headset. Usually, when the Bluetooth headset is playing sound, if there is leakage sound, the microphone can collect the leakage sound of the sound played by the Bluetooth headset because it is close to the Bluetooth headset. At the same time, it can also collect the ambient sound of the environment where the wearer of the Bluetooth headset is currently located.
[0066] Step 120: Obtain a first waveform of the mixed sound sample and a second waveform of the sound played by the Bluetooth headset;
[0067] Furthermore, when the mixed sound is collected by the microphone, the microphone converts the sound signal of the mixed sound into an electrical signal, thereby sending the mixed sound sample to the processor / controller of the Bluetooth headset, and the Bluetooth headset obtains the first waveform of the mixed sound sample according to the electrical signal. In addition, the second waveform of the sound currently played by the Bluetooth headset can also be obtained, and the second waveform can be obtained by identifying the electrical signal of the played sound, or can be directly obtained through an electronic device connected to the Bluetooth headset, such as a mobile phone.
[0068] Step 130 : Determine whether the matching degree between the first waveform and the second waveform is greater than a preset threshold; if so, jump to step 140 ; if not, jump to step 150 .
[0069] In an embodiment of the present invention, since the leakage sound of the sound played by the Bluetooth headset usually has little impact on the environment in a busy place, the ambient sound in a busy environment must be more and noisier than the leakage sound, and the proportion of the ambient sound in the mixed sound is higher. At this time, if the first waveform and the second waveform are compared, the similarity / matching degree between the two is low. In a quiet scene, the leakage sound of the sound played by the Bluetooth headset usually has a greater impact on the environment. At this time, the proportion of the ambient sound in the mixed sound in a quiet environment is low, and the leakage sound of the sound played by the Bluetooth headset in the mixed sound is high. At this time, if the first waveform and the second waveform are compared, the similarity / matching degree between the two is high. Based on this, a preset threshold can be set to determine whether the Bluetooth headset has sound leakage by comparing whether the matching degree of the first waveform and the second waveform is greater than the preset threshold.
[0070] Step 140: Determine whether there is sound leakage from the Bluetooth headset.
[0071] In an embodiment of the present invention, if the degree of match between the first waveform and the second waveform is greater than the preset threshold, it can be determined that there is sound leakage in the Bluetooth headset. In this case, the audio content played by the Bluetooth headset may be heard by other people in the current environment, affecting others and causing interference to others.
[0072] Step 150: Determine that there is no sound leakage from the Bluetooth headset or the volume of the leaked sound is not loud.
[0073] In an embodiment of the present invention, if the degree of match between the first waveform and the second waveform is less than the preset threshold, in one case it may be that there is no sound leakage from the Bluetooth headset; in another case, it may be that due to being located in a relatively noisy and lively environment, the sound leaked from the Bluetooth headset will not affect other people in the environment.
[0074] Further, in some embodiments, please refer to Figure 3 , which shows the process of another headphone sound leakage detection method provided by an embodiment of the present invention, such as Figure 3 As shown, before step 130, the method further includes:
[0075] Step 161: Setting the volume level of the ambient sound;
[0076] Among them, the volume level is positively correlated with the volume of the ambient sound. In an 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 a preset threshold, the volume level of the ambient sound can also be preset. For example, the volume decibel range that can be usually detected in a usually quiet environment such as a library in real life is set to a lower volume level, the volume decibel range that can be usually detected in a somewhat lively environment such as a cafe with some human voices in real life is set to a medium volume level, and the volume decibel range that can be usually detected in a usually noisy environment such as a bar or a vegetable market in real life is set to a higher volume level.
[0077] Step 162: Turn off the Bluetooth headset for a preset period of time to collect the ambient sound;
[0078] Furthermore, in order to obtain the actual noisy situation of the environment where the wearer of the current Bluetooth headset is located, the Bluetooth headset can also be turned off for a period of time to collect the ambient sound. The step of turning off the Bluetooth headset to collect the ambient sound can be performed automatically by the Bluetooth headset or manually controlled by the user. Preferably, when it is performed automatically, it can be set to turn off the headset and collect the sound when the Bluetooth headset detects a large change in the mixed sound, that is, when the environment is usually switched, or it can be set to timed detection. Alternatively, it can also be set by default to collect the ambient sound only when the user makes a gesture or selects it on the electronic device connected to the Bluetooth headset.
[0079] Step 163: determining the volume level of the ambient sound according to the volume of the ambient sound;
[0080] After the ambient sound is collected, the volume level of the ambient sound is judged according to the current volume of the ambient sound, so as to determine what kind of environment the wearer is currently in and how noisy the current environment is.
[0081] Step 164: Setting the preset threshold according to the volume level.
[0082] The volume level and the preset threshold are in a negatively correlated mapping relationship. In the embodiment of the present invention, after the volume level of the ambient sound is determined, the preset threshold may be set according to the volume level.
[0083] For example, taking the example of step 161 above, when it is determined that the volume level is high, it can be determined that the environment is relatively noisy and the ambient sound is louder. At this time, the sound leaked from the earphones is usually difficult to cover the ambient sound, and the proportion of the leaked sound in the mixed sound is usually difficult to reach a high value. However, the sound leaked from the earphones is still likely to affect the people around. Therefore, the preset threshold can be set to a relatively small value, such as about 50%. When it is determined that the matching degree between the first waveform and the second waveform exceeds 50%, it is determined that there is sound leakage from the Bluetooth headset.
[0084] Alternatively, when it is determined that the volume level is low, it can be determined that the environment is relatively quiet and the ambient sound is small. At this time, the sound leaked from the earphones can easily cover the ambient sound, and the proportion of the leaked sound in the mixed sound can usually easily reach a high value, but the leaked sound is not necessarily loud and does not necessarily affect the people around. Therefore, the preset threshold can be set relatively large, for example, about 90%. When it is determined that the matching degree between the first waveform and the second waveform exceeds 90%, it is determined that there is sound leakage in the Bluetooth headset.
[0085] Further, in some embodiments, please refer to Figure 4 , which shows the process of another headphone sound leakage detection method provided by an embodiment of the present invention, such as Figure 4 As shown, after step 140, the method further includes:
[0086] Step 170: Output a notification signal indicating that there is sound leakage from the Bluetooth headset.
[0087] Wherein, the notification signal is a vibration signal and / or a voice signal. In an embodiment of the present invention, after the step of determining that there is sound leakage in the Bluetooth headset, a notification signal can also be output, so that the wearer of the Bluetooth headset knows that there is sound leakage in the Bluetooth headset, which may affect people around. It can also serve as a warning that the Bluetooth headset will perform corresponding operations to reduce the impact of the sound leakage in the next step. Specifically, the wearer can be reminded by the vibration of the vibration motor set in the Bluetooth headset, or the wearer can be notified by a broadcast voice. Specifically, it can be set according to actual needs, without being bound by the limitations of the embodiment of the present invention.
[0088] Further, in some embodiments, please refer to Figure 5 , which shows the process of another headphone sound leakage detection method provided by an embodiment of the present invention, such as Figure 5 As shown, after step 140, the method further includes:
[0089] Step 180: Lower the volume of the Bluetooth headset.
[0090] In an embodiment of the present invention, after the step of determining that there is sound leakage from the Bluetooth headset, the volume of the Bluetooth headset may be lowered to reduce the impact of the sound leakage and prevent the leaked sound from affecting the work or rest of other people around.
[0091] Further, in some embodiments, please refer to Figure 6 , which shows the process of another headphone sound leakage detection method provided by an embodiment of the present invention, such as Figure 6 As shown, before step 180, the method further includes:
[0092] Step 191: Detect whether there is a person within a preset range around the wearer of the Bluetooth headset through an infrared sensor and / or a human body sensor; if so, jump to step 180; if not, jump to step 192.
[0093] Step 192: Do not adjust the volume of the Bluetooth headset.
[0094] In the embodiment of the present invention, since background music is usually played in places such as bars and cafes, the background music may cause the surrounding environment to be louder. However, if there is no one in these public places, there is no situation where the leaked headphone sound affects people. Therefore, before the step of lowering the volume of the Bluetooth headset, it is possible to further detect whether there is anyone within a preset range around the wearer of the Bluetooth headset. If so, jump to the step of lowering the volume of the Bluetooth headset. If not, there is no need to adjust the volume of the Bluetooth headset.
[0095] The preset range can be set according to actual conditions. Preferably, the preset range can be set according to the environment in which the preset range is located and the volume level of the ambient sound obtained in step 163. In a quiet environment, the preset range can be set larger, for example, a circle with a radius of one meter around the wearer of the Bluetooth headset is set as the preset range; in a noisy environment, the preset range can be set smaller, for example, a circle with a radius of half a meter around the wearer of the Bluetooth headset is set as the preset range. Specifically, the preset range can be set according to actual needs without being limited to the limitations of the embodiments of the present invention.
[0096] Further, in some embodiments, please refer to Figure 7 , which shows Figure 5 or Figure 6 A sub-process of step 180 in the method shown, wherein step 180 further comprises:
[0097] Step 181: Calculate the difference between the matching degree and the preset threshold;
[0098] Step 182: According to the difference, the volume of the Bluetooth headset is controlled to be gradually reduced until the matching degree between the first waveform and the second waveform is lower than the preset threshold.
[0099] In an embodiment of the present invention, before the step of lowering the volume of the Bluetooth headset, the difference between the matching degree and the preset threshold value may be calculated first, and the difference may be used to determine the degree of influence of the current leakage sound of the Bluetooth headset on the environment, and the volume of the Bluetooth headset may be controlled to be lowered step by step according to the difference, and the mixed sound is re-collected each time the volume is lowered, and the first waveform and the second waveform are re-acquired, and the matching degree of the first waveform and the second waveform after the headset volume is lowered is re-compared with the size of the preset threshold value, until the matching degree of the first waveform and the second waveform is lower than the preset threshold value, thereby achieving appropriate adjustment of the volume of the Bluetooth headset to avoid the volume being adjusted too low to affect the user experience, or the volume being still very high to interfere with other people in the environment.
[0100] Among them, the step of controlling the volume of the Bluetooth headset to be gradually reduced further includes: when receiving a gesture action made by the wearer of the Bluetooth headset, reducing the volume of the Bluetooth headset. That is to say, in an embodiment of the invention, the step of reducing the volume of the Bluetooth headset can be automatically controlled by the Bluetooth headset, or the control right can be handed over to the user. When the user knows through the above notification signal that the current headset sound leakage is serious and the volume needs to be lowered, the Bluetooth headset can be controlled to lower the volume through a gesture action. Specifically, the gesture action can be collected through the touch area or button of the Bluetooth headset, or it can be collected through a sensor set on the Bluetooth headset, such as an infrared or human body sensor.
[0101] Embodiment 2
[0102] The embodiment of the present invention provides a device for detecting sound leakage of earphones, which can be applied to the Bluetooth earphone 10 shown in the above application scenario, see Figure 8 , which shows a schematic structural diagram of an earphone sound leakage detection device 200 provided in an embodiment of the present invention, wherein the earphone sound leakage detection device 200 includes: a collection module 210, an acquisition module 220, a judgment module 230 and a determination module 240.
[0103] The collection module 210 is used to collect mixed sound samples through the microphone, wherein the mixed sound samples include leakage sound of the playback sound of the Bluetooth headset and environmental sound;
[0104] The acquisition module 220 is used to acquire the first waveform of the mixed sound sample and the second waveform of the sound played by the Bluetooth headset;
[0105] The judging module 230 is used to judge whether the matching degree between the first waveform and the second waveform is greater than a preset threshold;
[0106] The determination module 240 is configured to determine that sound leakage occurs in the Bluetooth headset when the matching degree between the first waveform and the second waveform is greater than a preset threshold.
[0107] Further, in some embodiments, please refer to Fig. 9 , which shows the structure of another headphone sound leakage detection device provided by an embodiment of the present invention, such as Fig. 9 As shown, the headphone sound leakage detection device 200 further includes:
[0108] A setting module 250, used to set the volume level of the ambient sound, wherein the volume level is positively correlated with the volume of the ambient sound;
[0109] Turning off the Bluetooth headset for a preset period of time to collect the ambient sound;
[0110] Determining the volume level of the ambient sound according to the volume of the ambient sound;
[0111] The preset threshold is set according to the volume level, wherein the volume level and the preset threshold are in a negatively correlated mapping relationship.
[0112] Further, in some embodiments, please continue to refer to Fig. 9 , the earphone sound leakage detection device 200 further includes:
[0113] The output module 260 is used to output a notification signal indicating that there is sound leakage from the Bluetooth headset, wherein the notification signal is a vibration signal and / or a voice signal.
[0114] Further, in some embodiments, please continue to refer to Fig. 9 , the earphone sound leakage detection device 200 further includes:
[0115] The adjustment module 270 is used to reduce the volume of the Bluetooth headset.
[0116] Further, in some embodiments, please continue to refer to Fig. 9 , the earphone sound leakage detection device 200 further includes:
[0117] A detection module 280, configured to detect whether there is a person within a preset range around the wearer of the Bluetooth headset through an infrared sensor and / or a human body sensor;
[0118] If yes, jump to the step of lowering the volume of the Bluetooth headset;
[0119] If not, the volume of the Bluetooth headset is not adjusted.
[0120] Furthermore, in some embodiments, the adjustment module 270 is further configured to calculate a difference between the matching degree and the preset threshold;
[0121] According to the difference, the volume of the Bluetooth headset is controlled to be gradually reduced until the matching degree between the first waveform and the second waveform is lower than the preset threshold.
[0122] Furthermore, in some embodiments, the adjustment module 270 is further configured to reduce the volume of the Bluetooth headset when a gesture action made by the wearer of the Bluetooth headset is received.
[0123] Embodiment 3
[0124] The present invention also provides a Bluetooth headset, see Fig.10, which shows that it is possible to execute Figures 2 to 7 The hardware structure of the Bluetooth headset of the headphone sound leakage detection method. The Bluetooth headset 10 can be Figure 1 The Bluetooth headset 10 shown in the figure further includes a microphone 11, which can also be Figure 1 Microphone 11 is shown.
[0125] The Bluetooth headset 10 further includes: at least one processor 12 connected to the microphone 11; and a memory 13 in communication with the at least one processor 12. Fig.10 The memory 13 stores instructions that can be executed by the at least one processor 12, and the instructions are executed by the at least one processor 12 so that the at least one processor 12 can perform the above Figures 2 to 7 The processor 12 and the memory 13 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.
[0126] The memory 13 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the headphone sound leakage detection method in the embodiment of the present application, for example, Figures 8 to 9 The processor 12 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 13, that is, the headphone sound leakage detection method of the above method embodiment is implemented.
[0127] The memory 13 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the headphone sound leakage detection device, etc. In addition, the memory 13 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 13 may optionally include a memory remotely arranged relative to the processor 12, and these remote memories may be connected to the headphone sound leakage detection device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0128] The one or more modules are stored in the memory 13, and when executed by the one or more processors 12, perform the headphone sound leakage detection method in any of the above method embodiments, for example, perform the above described Figures 2 to 7Steps to achieve Figures 8 to 9 The functions of each module and unit in it.
[0129] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0130] The present application also provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, to execute the above-described Figures 2 to 7 Steps to achieve Figures 8 to 9 The functions of each module in.
[0131] The present application also provides a computer program product, including a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the headphone sound leakage detection method in any of the above method embodiments, for example, executing the above described Figures 2 to 7 Steps to achieve Figures 8 to 9 The functions of each module in.
[0132] An embodiment of the present invention provides a method and device for detecting sound leakage of headphones, and a Bluetooth headset. The method first collects a mixed sound sample through the microphone, wherein the mixed sound sample includes the leakage sound of the sound played by the Bluetooth headset and the ambient sound, then obtains a first waveform of the mixed sound sample and a second waveform of the sound played by the Bluetooth headset, and finally determines whether the matching degree of the first waveform and the second waveform is greater than a preset threshold. If so, it is determined that there is sound leakage in the Bluetooth headset. An embodiment of the present invention provides a method for detecting sound leakage of headphones, by which it can be determined whether there is sound leakage in the Bluetooth headset to determine the impact on the surrounding environment of the wearer of the Bluetooth headset.
[0133] It should be noted that the device embodiments described above are merely illustrative, wherein 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, that is, they 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 this embodiment.
[0134] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting sound leakage of earphones, characterized in that: Applied to a Bluetooth headset, the Bluetooth headset includes a microphone, and the method includes: Collecting a mixed sound sample through the microphone, wherein the mixed sound sample includes a leakage sound of the playback sound of the Bluetooth headset and an ambient sound; Acquire a first waveform of the mixed sound sample and a second waveform of the sound played by the Bluetooth headset; Determine whether the matching degree between the first waveform and the second waveform is greater than a preset threshold, wherein the preset threshold is obtained according to the volume of the ambient sound; If so, it is determined that there is sound leakage from the Bluetooth headset.
2. The detection method according to claim 1, characterized in that: Before the step of determining whether the matching degree between the first waveform and the second waveform is greater than a preset threshold, the method further includes: Setting the volume level of the ambient sound, wherein the volume level is positively correlated with the volume of the ambient sound; Turning off the Bluetooth headset for a preset period of time to collect the ambient sound; Determining the volume level of the ambient sound according to the volume of the ambient sound; The preset threshold is set according to the volume level, wherein the volume level and the preset threshold are in a negatively correlated mapping relationship.
3. The detection method according to claim 2, characterized in that: After the step of determining that the Bluetooth headset has sound leakage, the method further includes: A notification signal is outputted indicating that there is sound leakage from the Bluetooth headset, wherein the notification signal is a vibration signal and / or a voice signal.
4. The detection method according to claim 3, characterized in that: After the step of determining that the Bluetooth headset has sound leakage, the method further includes: Lower the volume of the Bluetooth headset.
5. The detection method according to claim 4, characterized in that: Before the step of reducing the volume of the Bluetooth headset, the method further includes: Detecting whether there is a person within a preset range around the wearer of the Bluetooth headset by using an infrared sensor and / or a human body sensor; If yes, jump to the step of lowering the volume of the Bluetooth headset; If not, the volume of the Bluetooth headset is not adjusted.
6. The detection method according to claim 5, characterized in that: The step of reducing the volume of the Bluetooth headset further comprises: Calculating the difference between the matching degree and the preset threshold; According to the difference, the volume of the Bluetooth headset is controlled to be gradually reduced until the matching degree between the first waveform and the second waveform is lower than the preset threshold.
7. The detection method according to claim 6, characterized in that: The step of controlling the volume of the Bluetooth headset to decrease step by step further comprises: When a gesture action made by the wearer of the Bluetooth headset is received, the volume of the Bluetooth headset is reduced.
8. A device for detecting sound leakage of earphones, characterized in that: Applied to a Bluetooth headset, the Bluetooth headset includes a microphone, and the device includes: A collection module, used for collecting mixed sound samples through the microphone, wherein the mixed sound samples include leakage sound of the playback sound of the Bluetooth headset and environmental sound; An acquisition module, used to acquire a first waveform of the mixed sound sample and a second waveform of the sound played by the Bluetooth headset; A judging module, used to judge whether the matching degree between the first waveform and the second waveform is greater than a preset threshold, wherein the preset threshold is obtained according to the volume of the ambient sound; The determination module is used to determine that sound leakage occurs in the Bluetooth headset when the matching degree between the first waveform and the second waveform is greater than a preset threshold.
9. A Bluetooth headset, characterized in that: include: microphone; at least one processor coupled to the microphone; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Audio output apparatus, audio output method, audio output system, and program for audio output processing
CN101212833A