Wireless earphone and control method and device thereof

By detecting the vocal energy value in wireless headphones, the problem of degradation of voice communication quality caused by the lack of wearing detection module in wireless headphones is solved, and high-quality voice communication in single headphones is achieved.

CN119545242APending Publication Date: 2025-02-28VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411663515.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the absence of a detection module for existing wireless headphones, the master-slave headphones cannot be automatically switched, resulting in a degradation in the voice communication quality in a single headphone wear scenario.

Method used

By detecting the vocal energy values ​​of the first and second headphones, the wearing status of the master headphones in the wireless headphones is determined, and the master-slave status of the headphones is automatically switched when the master headphones are removed.

Benefits of technology

There is no need to set up a wear detection module on the hardware, which realizes automatic switching in a single headset wearing scenario, improves the quality of voice communication, and ensures that the headset worn by users is always the main headset.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545242A_ABST
    Figure CN119545242A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless earphone and a control method and device thereof, and belongs to the technical field of wearable equipment. The wireless earphone comprises a first earphone and a second earphone. The control method comprises the following steps: detecting a first human voice energy value of the first earphone and a second human voice energy value of the second earphone; determining a wearing state of a main earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value; switching the master-slave states of the first earphone and the second earphone under the condition of determining that the master earphone is taken off; the main earphone is any one of the first earphone and the second earphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of wearable devices, and specifically relates to a wireless headset and a control method and device thereof. Background Art

[0002] At present, wireless headphones such as TWS (True Wireless Stereo) headphones generally use capacitance detection or infrared detection to determine whether the headphones are in the wearing state. In addition, when the wireless headphones are turned on for the first time, the code program will default to the master ear and the slave ear (such as the left earphone as the master earphone and the right earphone as the slave earphone). On wireless headphones with a wearing detection module, if the user takes off the master earphone, the wireless headphones will automatically switch the master and slave status of the two earphones to ensure that the earphone worn by the user is always the master earphone, thereby ensuring the normal use of the earphone function.

[0003] Furthermore, when the user wears the wireless headset for voice communication, there is only one Bluetooth path between the wireless headset and the electronic device. The wireless headset picks up sound through the microphone of the main headset, and converts the picked-up sound data into digital signals and uploads them to the electronic device for processing through the Bluetooth path.

[0004] However, due to the pressure of hardware costs and the impact of capacitance detection on structure and electronic wiring, more and more wireless headsets no longer have wearing detection modules. For wireless headsets without wearing detection modules, when the user takes off the main headset, the wireless headset cannot detect that the main headset has been taken off, and will not switch the master-slave status of the two headsets. The main headset will still pick up sound through its microphone. At this time, the sound pickup quality of the main headset is weak or even no sound data can be picked up, which greatly reduces the quality of voice communication through the wireless headset. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a wireless headset and a control method and device thereof, which can improve the quality of voice communication in a single-earphone wearing scenario when the wireless headset does not have a wearing detection module.

[0006] In a first aspect, an embodiment of the present application provides a control method for a wireless headset, the wireless headset comprising a first headset and a second headset, the control method comprising: detecting a first human voice energy value of the first headset and a second human voice energy value of the second headset; determining a wearing state of a main headset in the wireless headset according to the first human voice energy value and the second human voice energy value; when it is determined that the main headset is taken off, switching the master-slave state of the first headset and the second headset; the main headset is any one of the first headset and the second headset.

[0007] In a second aspect, an embodiment of the present application provides a control device for a wireless headset, the wireless headset comprising a first headset and a second headset, the control device comprising: a detection unit, for detecting a first human voice energy value of the first headset and a second human voice energy value of the second headset; a processing unit, for determining a wearing state of a main headset in the wireless headset according to the first human voice energy value and the second human voice energy value; a control unit, for switching the master-slave state of the first headset and the second headset when it is determined that the main headset is taken off; the master headset is any one of the first headset and the second headset.

[0008] In a third aspect, an embodiment of the present application provides a wireless headset, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the control method of the wireless headset of the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the control method of the wireless headset in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the control method of the wireless headset in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the control method of the wireless headset as in the first aspect.

[0012] In the control method of the wireless headset provided in the embodiment of the present application, the wireless headset includes a first headset and a second headset, and the first human voice energy value of the first headset and the second human voice energy value of the second headset are detected; according to the first human voice energy value and the second human voice energy value, the wearing state of the main headset in the wireless headset is determined; when it is determined that the main headset is taken off, the master-slave state of the first headset and the second headset is switched; the main headset is any one of the first headset and the second headset. Through the above-mentioned control method of the wireless headset, there is no need to set a wearing detection module on the hardware. By real-time detecting the first human voice energy value of the first headset and the second human voice energy value of the second headset, the wearing state of the main headset in the wireless headset can be determined, and when it is determined that the main headset is taken off, the master-slave state of the first headset and the second headset is switched. In this way, without setting a wearing detection module, the master and slave headsets of the wireless headset can be switched in time when the main headset is taken off, thereby ensuring that the headset worn by the user is always the main headset, ensuring the quality of the sound data picked up in the single headset wearing scenario, and improving the quality of voice communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 One of the flow charts of the control method of the wireless headset provided in the embodiment of the present application;

[0014] Figure 2 A working principle diagram of the wireless headset provided in an embodiment of the present application;

[0015] Figure 3 A second flowchart of a method for controlling a wireless headset provided in an embodiment of the present application;

[0016] Figure 4 A structural block diagram of a control device for a wireless headset provided in an embodiment of the present application;

[0017] Figure 5 A structural block diagram of a wireless headset provided in an embodiment of the present application;

[0018] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0019] Reference numerals:

[0020] 202 first earphone, 204 second earphone, 300 electronic device. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0022] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0023] The following is a detailed description of the control method of the wireless headset provided in the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0024] like Figure 1As shown, an embodiment of the present application provides a control method for a wireless headset, the wireless headset includes a first headset and a second headset, and the control method may include the following S102 to S106:

[0025] S102: Detecting a first human voice energy value of a first earphone and a second human voice energy value of a second earphone.

[0026] The control method of the wireless headset provided in the embodiment of the present application is applied to the wireless headset, which includes a first headset and a second headset.

[0027] The main earphone of the wireless earphone is any one of the first earphone and the second earphone.

[0028] Specifically, after the electronic device is connected to the wireless headset to enter voice communication, in the code program, it is defaulted that one of the first headset and the second headset is the master headset and the other is the slave headset.

[0029] In the control method of the wireless headset provided in the embodiment of the present application, the master headset and the slave headset of the wireless headset both turn on the microphone to pick up sound, wherein the master headset uploads the picked up sound data to the connected electronic device.

[0030] For example, Figure 2 As shown, the left earphone, i.e., the first earphone 202, is the master earphone, and the right earphone, i.e., the second earphone 204, is the slave earphone. The first earphone 202 and the second earphone 204 both open their microphones to pick up sound, wherein the sound data picked up by the microphone of the first earphone 202 is uploaded to the electronic device 300 for processing.

[0031] Furthermore, the first human voice energy value is the human voice energy value picked up by the microphone of the first earphone. The closer the first earphone is to the sound source, the greater the first human voice energy value, and the farther the first earphone is from the sound source, the smaller the first human voice energy value.

[0032] Furthermore, the second human voice energy value is the human voice energy value picked up by the microphone of the second earphone. The closer the second earphone is to the sound source, the greater the second human voice energy value, and the farther the second earphone is from the sound source, the smaller the second human voice energy value.

[0033] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, when the wireless headset is connected to an electronic device for voice communication, the microphones of the first headset and the second headset are turned on to pick up the wearer's vocal energy together, and the first vocal energy value of the first headset and the second vocal energy value of the second headset are detected in real time.

[0034] In actual application, the control method of the wireless headset provided in the embodiment of the present application can be specifically applied to voice communication scenarios such as game voice, video calls, voice calls and video conferencing, and is not specifically limited here.

[0035] S104: Determine a wearing state of a main earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value.

[0036] The wearing status of the main earphone is used to indicate whether the main earphone is taken off or worn.

[0037] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, after detecting the first human voice energy value of the first headset and the second human voice energy value of the second headset, it is determined whether the main headset in the wireless headset is taken off or worn based on the detected first human voice energy value and the second human voice energy value to determine the wearing status of the main headset in the wireless headset.

[0038] S106: When it is determined that the master earphone is taken off, switching the master-slave status of the first earphone and the second earphone.

[0039] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, when it is determined that the current master headset of the wireless headset is taken off, the master-slave status of the first headset and the second headset is switched to switch the current master headset of the wireless headset to the slave headset, and the current slave headset of the wireless headset is switched to the master headset. In this way, it can be ensured that the headset being worn is always the master headset, so that sound is always picked up through the headset being worn, the sound pickup quality is guaranteed, and the quality of voice communication in a single headset wearing scenario is improved. In this way, the problem of uplink silence caused by the main headset being taken off can be solved by a non-sensing and automatic recognition method. At the same time, the wearing status of the main headset can also be determined without relying on the wearing detection module on the hardware, saving the production cost of the wireless headset.

[0040] The control method of the wireless headset provided in the embodiment of the present application, the wireless headset includes a first headset and a second headset, the first human voice energy value of the first headset and the second human voice energy value of the second headset are detected; according to the first human voice energy value and the second human voice energy value, the wearing state of the main headset in the wireless headset is determined; when it is determined that the main headset is taken off, the master-slave state of the first headset and the second headset is switched; the main headset is any one of the first headset and the second headset. Through the control method of the wireless headset, there is no need to set a wearing detection module on the hardware, and the wearing state of the main headset in the wireless headset can be determined by detecting the first human voice energy value of the first headset and the second human voice energy value of the second headset in real time, and when it is determined that the main headset is taken off, the master-slave state of the first headset and the second headset is switched. In this way, without setting a wearing detection module, the master and slave headsets of the wireless headset can be switched in time when the main headset is taken off, thereby ensuring that the headset worn by the user is always the main headset, ensuring the quality of the sound data picked up in the single headset wearing scenario, and improving the quality of voice communication.

[0041] In the embodiment of the present application, the above S104 may specifically include the following S104a to S104c:

[0042] S104a: When at least one of the first human voice energy value and the second human voice energy value is greater than or equal to a first value, calculate an energy difference between the first human voice energy value and the second human voice energy value.

[0043] The first value is the energy value generated by normal human voice (40 decibels to 60 decibels). In actual application, the specific value of the first value can be set by those skilled in the art according to actual conditions, and no specific limitation is made here.

[0044] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, in the process of the wireless headset connecting to the electronic device for voice communication, the microphones of the first headset and the second headset are turned on to pick up the wearer's vocal energy together. When the first vocal energy value of the first headset and the second vocal energy value of the second headset are both less than the first value, it means that the first headset and the second headset are both taken off. At this time, the remote silence phenomenon of the wireless headset is a foreknowledge phenomenon of the user, and no processing is done on the wireless headset. When at least one of the first vocal energy value and the second vocal energy value is greater than or equal to the above-mentioned first value, it is considered that at least one of the first headset and the second headset is still worn. At this time, the energy difference between the first vocal energy value and the second vocal energy value is calculated again for subsequent calculation. In this way, subsequent calculation is performed only when there is a headset being worn, avoiding invalid switching of the master-slave state of the headset when both the master and slave headsets are taken off, avoiding useless work, and saving headset power consumption.

[0045] S104b: Determine the wearing state of the wireless headset according to the energy difference.

[0046] The wearing status of the wireless headset is used to indicate the number of the wireless headsets being worn.

[0047] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, after calculating the energy difference between the first human voice energy value and the second human voice energy value, the number of headphones worn in the wireless headset is judged based on the energy difference to determine the wearing status of the wireless headset.

[0048] S104c: When it is determined that one of the first earphone and the second earphone is worn, determine the wearing state of the main earphone according to the first human voice energy value and the second human voice energy value.

[0049] Specifically, in the control method of the wireless headset provided in an embodiment of the present application, when it is determined that only one of the first headset and the second headset is worn, it is judged whether the worn headset is the main headset of the wireless headset based on the first human voice energy value and the second human voice energy value to determine the wearing status of the main headset.

[0050] In the above-mentioned embodiment provided by the present application, in the process of determining the wearing state of the master earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value, when at least one of the first human voice energy value and the second human voice energy value is greater than or equal to the first value, the energy difference between the first human voice energy value and the second human voice energy value is calculated; the wearing state of the wireless earphone is determined according to the energy difference; when it is determined that one of the first earphone and the second earphone is worn, the wearing state of the master earphone is determined according to the first human voice energy value and the second human voice energy value. In this way, the wearing state of the master earphone is determined only when there is an earphone being worn, avoiding invalid switching of the master-slave state of the earphone when both the master and slave earphones are taken off, avoiding useless work, and saving earphone power consumption.

[0051] In the embodiment of the present application, the above S104b may specifically include the following S108 and S110:

[0052] S108: When the absolute value of the energy difference is greater than the second value, determine that one of the first earphone and the second earphone is worn.

[0053] The second value is related to the maximum energy difference when both the first earphone and the second earphone are worn.

[0054] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, after calculating the energy difference between the first human voice energy value and the second human voice energy value, the absolute value of the energy difference is compared with the set second value. When the absolute value of the energy difference is greater than the second value, it is determined that only one of the first headset and the second headset is worn. At this time, it is further determined whether the worn headset is the main headset of the wireless headset.

[0055] In actual application, the specific value of the second numerical value can be set by those skilled in the art according to actual conditions, and no specific limitation is made here.

[0056] S110: When the absolute value of the energy difference is less than or equal to a second value, determine that both the first earphone and the second earphone are worn.

[0057] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, when the absolute value of the energy difference between the first human voice energy value and the second human voice energy value is less than or equal to the second value, it is determined that both the first headset and the second headset are worn. At this time, no processing is performed on the wireless headset. In this way, the wearing state of the wireless headset is determined based on the human voice energy difference between the two headsets, without adding a wearing detection module to the hardware, thereby reducing the production cost of the wireless headset.

[0058] In the above embodiment provided by the present application, in the process of determining the wearing state of the wireless headset according to the energy difference value, when the absolute value of the energy difference value is greater than the second value, it is determined that one of the first headset and the second headset is worn; when the absolute value of the energy difference value is less than or equal to the second value, it is determined that both the first headset and the second headset are worn. In this way, the wearing state of the wireless headset is determined based on the human voice energy difference value of the two headsets, and there is no need to add a wearing detection module to the hardware, which reduces the production cost of the wireless headset.

[0059] In the embodiment of the present application, the second value is the sum of the third value and the fourth value.

[0060] The third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn.

[0061] Specifically, during voice communication through wireless headphones, the microphones of the first headphone and the second headphone are turned on at the same time to pick up sound, and when both the first headphone and the second headphone are worn, the maximum energy difference between the first headphone and the second headphone due to the different spatial positions, i.e., the third value, is calculated.

[0062] In actual application, a wireless headset can be worn through an artificial ear, and a sound source can be placed next to one headset (the sound source is located on the extension line of the spatial position of the left and right ears). At this time, the difference in human voice energy picked up by the two headsets is the third value.

[0063] Furthermore, the fourth value is an adjustable value.

[0064] In actual application, the specific value of the fourth value can be set by those skilled in the art according to actual conditions, and no specific limitation is made here.

[0065] Among them, the smaller the fourth value is, the greater the false trigger rate of the wireless headset is, and the larger the fourth value is, the smaller the false trigger rate of the wireless headset is.

[0066] In the above embodiment provided by the present application, the second value is the sum of the third value and the fourth value, the third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn, and the fourth value is an adjustable value. In this way, the wearing state of the wireless earphone is judged based on the maximum energy difference between the two earphones, which ensures the accuracy of the determined wearing state, and further ensures the accuracy of the control of the wireless earphone.

[0067] In the embodiment of the present application, when the first earphone is the master earphone and the second earphone is the slave earphone, the step of determining the wearing state of the master earphone according to the first human voice energy value and the second human voice energy value may specifically include the following S112 and S114:

[0068] S112: When the first human voice energy value is greater than or equal to the second human voice energy value, determine that the primary earphone is worn.

[0069] Specifically, in the control method of the wireless headset provided in the embodiment of the present application, when the absolute value of the energy difference between the first human voice energy value and the second human voice energy value is greater than the second value, that is, when only one of the first headset and the second headset is worn, the first human voice energy value and the second human voice energy value are continued to be compared. When the first headset is the master headset and the second headset is the slave headset, if the first human voice energy value is greater than or equal to the second human voice energy value, it is determined that the headset currently being worn is the master headset of the wireless headset, and no processing is performed.

[0070] S114: When the first human voice energy value is less than the second human voice energy value, determine that the main earphone is taken off.

[0071] Specifically, when only one of the first earphone and the second earphone is worn, the first human voice energy value and the second human voice energy value are continuously compared. When the first earphone is the master earphone and the second earphone is the slave earphone, if the first human voice energy value is less than the second human voice energy value, the earphone currently being worn is determined to be the slave earphone of the wireless earphone, that is, the master earphone is determined to be taken off, and the master-slave status of the wireless earphone is switched. In this way, the wearing status of the master earphone is determined based on the human voice energy values ​​of the master and slave earphones, without adding a wearing detection module to the hardware, thereby reducing the production cost of the wireless earphone.

[0072] Similarly, when the first earphone is the slave earphone and the second earphone is the master earphone, when the first human voice energy value is greater than or equal to the second human voice energy value, it is determined that the master earphone is taken off; when the first human voice energy value is less than the second human voice energy value, it is determined that the master earphone is worn.

[0073] In the above embodiment provided by the present application, when the first earphone is the master earphone and the second earphone is the slave earphone, in the process of determining the wearing state of the master earphone according to the first human voice energy value and the second human voice energy value, when the first human voice energy value is greater than or equal to the second human voice energy value, it is determined that the master earphone is worn; when the first human voice energy value is less than the second human voice energy value, it is determined that the master earphone is taken off. In this way, the wearing state of the master earphone is determined based on the human voice energy values ​​of the master and slave earphones, and there is no need to add a wearing detection module to the hardware, which reduces the production cost of the wireless earphone.

[0074] In summary, if Figure 3 As shown, the control method of the wireless headset provided in the embodiment of the present application may specifically include the following S402 to S416:

[0075] S402: Both earphones are worn and connected to electronic devices for voice communication.

[0076] S404: Both earphones have microphones turned on to pick up sound.

[0077] S406: Detecting the energy difference of the human voice energy values ​​of the two earphones.

[0078] S408: Determine: |energy difference|>second value, if yes, execute S410, if no, execute S406.

[0079] S410: Determine that one earphone is taken off.

[0080] S412: Determine: the vocal energy value of the master earphone is less than the vocal energy value of the slave earphone. If so, execute S414; if not, execute S406.

[0081] S414: Determine whether the primary earphone is taken off.

[0082] S416: Switch the master-slave status of the master earphone and the slave earphone.

[0083] In this way, the control method of the wireless headset provided in the embodiment of the present application, for wireless headsets that do not have a wearing detection module, relies on software algorithms and logic without the need to increase additional hardware costs, and effectively avoids the problem of silent uplink voice that may be caused by the user taking off a single headset in a voice communication scenario. This not only saves costs, but also the solution is imperceptible, does not cause any inconvenience to the user, and does not increase the user's learning cost.

[0084] The control method of the wireless headset provided in the embodiment of the present application can be executed by a control device of the wireless headset. In the embodiment of the present application, the control device of the wireless headset provided in the embodiment of the present application is described by taking the control device of the wireless headset executing the control method of the wireless headset as an example.

[0085] like Figure 4 As shown, an embodiment of the present application provides a control device 500 for a wireless headset, the wireless headset includes a first headset and a second headset, and the control device may include the following detection unit 502, processing unit 504 and control unit 506.

[0086] A detection unit 502, configured to detect a first human voice energy value of a first earphone and a second human voice energy value of a second earphone;

[0087] The processing unit 504 is used to determine the wearing state of the main earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value;

[0088] A control unit 506, configured to switch the master-slave status of the first earphone and the second earphone when it is determined that the master earphone is taken off;

[0089] The main earphone is any one of the first earphone and the second earphone.

[0090] The control device 500 of the wireless headset provided in the embodiment of the present application detects the first human voice energy value of the first headset and the second human voice energy value of the second headset; determines the wearing state of the main headset in the wireless headset according to the first human voice energy value and the second human voice energy value; switches the master-slave state of the first headset and the second headset when it is determined that the main headset is taken off; the main headset is any one of the first headset and the second headset. Through the control device 500 of the wireless headset, it is not necessary to set a wearing detection module on the hardware. By real-time detecting the first human voice energy value of the first headset and the second human voice energy value of the second headset, the wearing state of the main headset in the wireless headset can be determined, and when it is determined that the main headset is taken off, the master-slave state of the first headset and the second headset is switched. In this way, without setting a wearing detection module, the master and slave headsets of the wireless headset can be switched in time when the main headset is taken off, thereby ensuring that the headset worn by the user is always the main headset, ensuring the quality of the sound data picked up in the single headset wearing scenario, and improving the quality of voice communication.

[0091] In an embodiment of the present application, the processing unit 504 is specifically used to: calculate the energy difference between the first human voice energy value and the second human voice energy value when at least one of the first human voice energy value and the second human voice energy value is greater than or equal to the first value; determine the wearing state of the wireless headset according to the energy difference; and when it is determined that one of the first headset and the second headset is worn, determine the wearing state of the main headset according to the first human voice energy value and the second human voice energy value.

[0092] In the above-mentioned embodiment provided by the present application, in the process of determining the wearing state of the master earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value, when at least one of the first human voice energy value and the second human voice energy value is greater than or equal to the first value, the energy difference between the first human voice energy value and the second human voice energy value is calculated; the wearing state of the wireless earphone is determined according to the energy difference; when it is determined that one of the first earphone and the second earphone is worn, the wearing state of the master earphone is determined according to the first human voice energy value and the second human voice energy value. In this way, the wearing state of the master earphone is determined only when there is an earphone being worn, avoiding invalid switching of the master-slave state of the earphone when both the master and slave earphones are taken off, avoiding useless work, and saving earphone power consumption.

[0093] In an embodiment of the present application, the processing unit 504 is specifically used to: when the absolute value of the energy difference is greater than the second value, determine that one of the first earphone and the second earphone is worn; when the absolute value of the energy difference is less than or equal to the second value, determine that both the first earphone and the second earphone are worn.

[0094] In the above embodiment provided by the present application, in the process of determining the wearing state of the wireless headset according to the energy difference value, when the absolute value of the energy difference value is greater than the second value, it is determined that one of the first headset and the second headset is worn; when the absolute value of the energy difference value is less than or equal to the second value, it is determined that both the first headset and the second headset are worn. In this way, the wearing state of the wireless headset is determined based on the human voice energy difference value of the two headsets, and there is no need to add a wearing detection module to the hardware, which reduces the production cost of the wireless headset.

[0095] In the embodiment of the present application, the second value is the sum of the third value and the fourth value, the third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn, and the fourth value is an adjustable value.

[0096] In the above embodiment provided by the present application, the second value is the sum of the third value and the fourth value, the third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn, and the fourth value is an adjustable value. In this way, the wearing state of the wireless earphone is judged based on the maximum energy difference between the two earphones, which ensures the accuracy of the determined wearing state, and further ensures the accuracy of the control of the wireless earphone.

[0097] In an embodiment of the present application, when the first earphone is the master earphone and the second earphone is the slave earphone, the processing unit 504 is specifically used to: when the first human voice energy value is greater than or equal to the second human voice energy value, determine that the master earphone is worn; when the first human voice energy value is less than the second human voice energy value, determine that the master earphone is taken off.

[0098] In the above embodiment provided by the present application, when the first earphone is the master earphone and the second earphone is the slave earphone, in the process of determining the wearing state of the master earphone according to the first human voice energy value and the second human voice energy value, when the first human voice energy value is greater than or equal to the second human voice energy value, it is determined that the master earphone is worn; when the first human voice energy value is less than the second human voice energy value, it is determined that the master earphone is taken off. In this way, the wearing state of the master earphone is determined based on the human voice energy values ​​of the master and slave earphones, and there is no need to add a wearing detection module to the hardware, which reduces the production cost of the wireless earphone.

[0099] The control device 500 of the wireless headset in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0100] The wireless headset control device 500 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0101] The wireless headset control device 500 provided in the embodiment of the present application can achieve Figure 1 and Figure 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0102] Alternatively, if Figure 5As shown, the embodiment of the present application also provides a wireless headset 600, including a processor 602 and a memory 604, and the memory 604 stores a program or instruction that can be executed on the processor 602. When the program or instruction is executed by the processor 602, the various steps of the above-mentioned wireless headset control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0103] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0104] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710 and other components.

[0105] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0106] The processor 710 is used to detect a first human voice energy value of the first earphone and a second human voice energy value of the second earphone.

[0107] The processor 710 is further configured to determine a wearing state of a main earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value.

[0108] The processor 710 is further configured to switch the master-slave status of the first earphone and the second earphone when it is determined that the master earphone is taken off.

[0109] The main earphone is any one of the first earphone and the second earphone.

[0110] In an embodiment of the present application, the first human voice energy value of the first earphone and the second human voice energy value of the second earphone are detected; the wearing state of the main earphone in the wireless earphone is determined according to the first human voice energy value and the second human voice energy value; when it is determined that the main earphone is taken off, the master-slave state of the first earphone and the second earphone is switched; the main earphone is any one of the first earphone and the second earphone. In an embodiment of the present application, there is no need to set a wearing detection module on the hardware. By detecting the first human voice energy value of the first earphone and the second human voice energy value of the second earphone in real time, the wearing state of the main earphone in the wireless earphone can be determined, and when it is determined that the main earphone is taken off, the master-slave state of the first earphone and the second earphone is switched. In this way, without setting a wearing detection module, the master and slave earphones of the wireless earphone can be switched in time when the main earphone is taken off, thereby ensuring that the earphone worn by the user is always the main earphone, ensuring the quality of the sound data picked up in the single earphone wearing scenario, and improving the quality of voice communication.

[0111] Optionally, the processor 710 is specifically used to: calculate the energy difference between the first human voice energy value and the second human voice energy value when at least one of the first human voice energy value and the second human voice energy value is greater than or equal to a first value; determine the wearing state of the wireless headset according to the energy difference; and when it is determined that one of the first headset and the second headset is worn, determine the wearing state of the main headset according to the first human voice energy value and the second human voice energy value.

[0112] In the above-mentioned embodiment provided by the present application, in the process of determining the wearing state of the master earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value, when at least one of the first human voice energy value and the second human voice energy value is greater than or equal to the first value, the energy difference between the first human voice energy value and the second human voice energy value is calculated; the wearing state of the wireless earphone is determined according to the energy difference; when it is determined that one of the first earphone and the second earphone is worn, the wearing state of the master earphone is determined according to the first human voice energy value and the second human voice energy value. In this way, the wearing state of the master earphone is determined only when there is an earphone being worn, avoiding invalid switching of the master-slave state of the earphone when both the master and slave earphones are taken off, avoiding useless work, and saving earphone power consumption.

[0113] In an embodiment of the present application, the processor 710 is specifically used to: determine that one of the first earphone and the second earphone is worn when the absolute value of the energy difference is greater than the second value; and determine that both the first earphone and the second earphone are worn when the absolute value of the energy difference is less than or equal to the second value.

[0114] In the above embodiment provided by the present application, in the process of determining the wearing state of the wireless headset according to the energy difference value, when the absolute value of the energy difference value is greater than the second value, it is determined that one of the first headset and the second headset is worn; when the absolute value of the energy difference value is less than or equal to the second value, it is determined that both the first headset and the second headset are worn. In this way, the wearing state of the wireless headset is determined based on the human voice energy difference value of the two headsets, and there is no need to add a wearing detection module to the hardware, which reduces the production cost of the wireless headset.

[0115] In the embodiment of the present application, the second value is the sum of the third value and the fourth value, the third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn, and the fourth value is an adjustable value.

[0116] In the above embodiment provided by the present application, the second value is the sum of the third value and the fourth value, the third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn, and the fourth value is an adjustable value. In this way, the wearing state of the wireless earphone is judged based on the maximum energy difference between the two earphones, which ensures the accuracy of the determined wearing state, and further ensures the accuracy of the control of the wireless earphone.

[0117] In an embodiment of the present application, when the first earphone is the master earphone and the second earphone is the slave earphone, the processor 710 is specifically used to: determine that the master earphone is worn when the first human voice energy value is greater than or equal to the second human voice energy value; and determine that the master earphone is taken off when the first human voice energy value is less than the second human voice energy value.

[0118] In the above embodiment provided by the present application, when the first earphone is the master earphone and the second earphone is the slave earphone, in the process of determining the wearing state of the master earphone according to the first human voice energy value and the second human voice energy value, when the first human voice energy value is greater than or equal to the second human voice energy value, it is determined that the master earphone is worn; when the first human voice energy value is less than the second human voice energy value, it is determined that the master earphone is taken off. In this way, the wearing state of the master earphone is determined based on the human voice energy values ​​of the master and slave earphones, and there is no need to add a wearing detection module to the hardware, which reduces the production cost of the wireless earphone.

[0119] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0120] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0121] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.

[0122] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0123] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned wireless headset control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0124] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0125] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned wireless headset control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0126] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0127] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned wireless headset control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0128] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0130] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for controlling a wireless headset, characterized in that: The wireless headset comprises a first headset and a second headset, and the control method comprises: Detecting a first human voice energy value of the first earphone and a second human voice energy value of the second earphone; Determining a wearing state of a main earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value; When it is determined that the master earphone is taken off, switching the master-slave status of the first earphone and the second earphone; The master earphone is any one of the first earphone and the second earphone.

2. The control method of the wireless headset according to claim 1, characterized in that: The determining, according to the first human voice energy value and the second human voice energy value, the wearing state of the main earphone in the wireless earphone comprises: When at least one of the first human voice energy value and the second human voice energy value is greater than or equal to a first value, calculating an energy difference between the first human voice energy value and the second human voice energy value; Determining a wearing state of the wireless headset according to the energy difference; When it is determined that one of the first earphone and the second earphone is worn, the wearing state of the main earphone is determined according to the first human voice energy value and the second human voice energy value.

3. The control method of the wireless headset according to claim 2, characterized in that: The determining the wearing state of the wireless headset according to the energy difference value includes: When the absolute value of the energy difference is greater than a second value, determining that one of the first earphone and the second earphone is worn; When the absolute value of the energy difference is less than or equal to the second value, it is determined that both the first earphone and the second earphone are worn.

4. The control method of the wireless headset according to claim 3, characterized in that: The second value is the sum of the third value and the fourth value, the third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn, and the fourth value is an adjustable value.

5. The control method of the wireless headset according to any one of claims 2 to 4, characterized in that: In a case where the first earphone is a master earphone and the second earphone is a slave earphone, determining the wearing state of the master earphone according to the first human voice energy value and the second human voice energy value includes: When the first human voice energy value is greater than or equal to the second human voice energy value, determining that the primary earphone is worn; When the first human voice energy value is less than the second human voice energy value, it is determined that the master earphone is taken off.

6. A control device for a wireless headset, characterized in that: The wireless headset comprises a first headset and a second headset, and the control device comprises: A detection unit, configured to detect a first human voice energy value of the first earphone and a second human voice energy value of the second earphone; a processing unit, configured to determine a wearing state of a main earphone in the wireless earphone according to the first human voice energy value and the second human voice energy value; a control unit, configured to switch the master-slave status of the first earphone and the second earphone when it is determined that the master earphone is taken off; The master earphone is any one of the first earphone and the second earphone.

7. The control device for wireless headphones according to claim 6, characterized in that: The processing unit is specifically used for: When at least one of the first human voice energy value and the second human voice energy value is greater than or equal to a first value, calculating an energy difference between the first human voice energy value and the second human voice energy value; Determining a wearing state of the wireless headset according to the energy difference; When it is determined that one of the first earphone and the second earphone is worn, the wearing state of the main earphone is determined according to the first human voice energy value and the second human voice energy value.

8. The control device for wireless headphones according to claim 7, characterized in that: The processing unit is specifically used for: When the absolute value of the energy difference is greater than a second value, determining that one of the first earphone and the second earphone is worn; When the absolute value of the energy difference is less than or equal to the second value, it is determined that both the first earphone and the second earphone are worn.

9. The control device for wireless headphones according to claim 8, characterized in that: The second value is the sum of the third value and the fourth value, the third value is the maximum energy difference between the first earphone and the second earphone when both the first earphone and the second earphone are worn, and the fourth value is an adjustable value.

10. The control device for the wireless headset according to any one of claims 7 to 9, characterized in that: In a case where the first earphone is a master earphone and the second earphone is a slave earphone, the processing unit is specifically configured to: When the first human voice energy value is greater than or equal to the second human voice energy value, determining that the primary earphone is worn; When the first human voice energy value is less than the second human voice energy value, it is determined that the master earphone is taken off.

11. A wireless headset, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method of the wireless headset as described in any one of claims 1 to 5 are implemented.