Earphone volume adjusting method and equipment

文档序号:1908666 发布日期:2021-11-30 浏览:12次 中文

阅读说明:本技术 一种耳机音量调节方法及其设备 (Earphone volume adjusting method and equipment ) 是由 孙明杰 李敏 曾佳 邱晨 瞿高鹏 李乔峰 张雨涵 于 2020-08-10 设计创作,主要内容包括:本申请实施例提供一种耳机音量调节方法及其设备,涉及耳机技术领域,该方法包括:首先,确认第一耳机被用户佩戴,第一耳机以第一音量播放音频内容。响应于用户对第一耳机的第一操作,启动音量调节功能。然后,响应于用户将第一耳机从初始姿态转动到第一姿态,初始姿态与第一姿态之间的角度为第一角度,第一角度小于第一预设角度,以所述第一音量播放所述音频内容;接着,响应于用户将第一耳机从第一姿态转动到第二姿态,初始姿态与第二姿态之间的角度为第二角度,第二角度大于所述第一预设角度,以第二音量播放音频内容。(The embodiment of the application provides an earphone volume adjusting method and equipment thereof, relating to the technical field of earphones, wherein the method comprises the following steps: first, it is confirmed that the first headset is worn by the user, and the first headset plays audio content at a first volume. The volume adjustment function is started in response to a first operation of the first earphone by a user. Then, responding to the situation that a user rotates the first earphone from the initial posture to a first posture, wherein the angle between the initial posture and the first posture is a first angle, the first angle is smaller than a first preset angle, and the audio content is played at the first volume; and then, in response to the user rotating the first earphone from the first posture to a second posture, wherein the angle between the initial posture and the second posture is a second angle, and the second angle is larger than the first preset angle, playing the audio content at a second volume.)

1. A method for adjusting the volume of a headset, the headset comprising a first headset, the method comprising:

Confirming that the first headset is worn by a user;

the first earphone plays audio content with a first volume;

starting a volume adjustment function in response to a first operation of the first earphone by the user;

in response to the user turning the first earphone from an initial posture to a first posture, an angle between the initial posture and the first posture being a first angle, the first angle being smaller than a first preset angle, playing the audio content at the first volume;

in response to the user turning the first headset from a first posture to a second posture, an angle between the initial posture and the second posture being a second angle, the second angle being greater than the first preset angle, playing audio content at the second volume;

wherein, the difference between the second angle and the first preset angle is in positive correlation with the difference between the first volume and the second volume, and the first volume is different from the second volume.

2. The method of claim 1, wherein after the second angle is greater than a first preset angle and before the audio content is played at the second volume, further comprising:

And determining the second volume according to the second angle and a volume adjustment threshold.

3. The method of claim 1, wherein after the second angle is greater than a first preset angle and before the audio content is played at the second volume, further comprising:

starting a timer;

and determining the second volume according to the time of the timer.

4. The method of claim 3, further comprising:

in response to the user turning the first earpiece from a second pose to a third pose, the angle between the initial pose and the third pose being a third angle, the third angle being less than a second preset angle, stopping and zeroing the timer;

the second preset angle is smaller than the first preset angle.

5. The method of claim 1 or 2, wherein after the second angle is greater than the first preset angle and before the audio content is played at the second volume, further comprising:

in response to the user turning the first earpiece from a second pose to a third pose, an angle between the initial pose and the third pose is a third angle, the third angle being less than a second preset angle.

6. The method of claim 1 or 2, wherein after the second angle is greater than the first preset angle and before the audio content is played at the second volume, further comprising:

the first earpiece remains in the second pose for a preset period of time.

7. The method of claims 1-6, further comprising a second operation, wherein a volume adjustment function is turned off in response to the second operation of the first earpiece by the user.

8. The method according to any one of claims 1-7, wherein after the second angle is greater than the first predetermined angle, further comprising:

and sending a prompt to the user.

9. A method for adjusting the volume of a headset, the headset comprising a first headset and a second headset, the method comprising:

confirming that the first headset and the second headset are worn by a user;

the first earphone and the second earphone play audio content from the same equipment at a first volume;

starting a volume adjustment function in response to a first operation of the first earphone by the user;

detecting rotation of the first and second earpieces by the user; wherein the first earpiece is rotated a first angle and the second earpiece is rotated a second angle;

If the first angle is different from the second angle, playing the audio content at a second volume;

the first volume is different from the second volume.

10. The method of claim 9, wherein if the first angle is different from the second angle, playing the audio content at a second volume, specifically:

and if the first angle is different from the second angle and the difference value between the first angle and the second angle is greater than a first preset angle, playing the audio content at a second volume.

11. The method of claim 10, wherein after the difference between the first angle and the second angle is greater than a first predetermined angle and before the audio content is played at the second volume, further comprising:

starting a timer;

and determining the second volume according to the time of the timer.

12. The method of claim 9 or 10, wherein before playing the audio content at the second volume, further comprising:

the difference between the first angle and the second angle remains constant for a preset period of time.

13. The method of any of claims 10-12, further comprising a second operation that turns off a volume adjustment function in response to the second operation of the first earpiece by the user.

14. The method according to any one of claims 10-13, wherein after the difference between the first angle and the second angle is greater than a first predetermined angle, further comprising:

and sending a prompt to the user.

15. An electronic device comprising an audio module, a processor, and one or more programs; wherein the processor, when executing the one or more programs, causes the electronic device to implement the method of any of claims 1-14.

16. A computer-readable storage medium, having a computer program stored thereon, which, when executed by the electronic device, implements the steps of the earphone volume adjustment method according to any one of claims 1 to 14.

17. A computer program product comprising instructions for causing an electronic device to perform the method of any one of claims 1-14 when the computer program product is run on the electronic device.

Technical Field

The present disclosure relates to the field of earphone technologies, and in particular, to an earphone volume adjusting method, an electronic device, and a computer-readable storage medium.

Background

With the increase of the requirement of users on portability, the Bluetooth headset is favored by more and more users. The Bluetooth headset can be wirelessly connected with electronic equipment such as a mobile phone, and the like, so that the Bluetooth headset is matched with the electronic equipment to play music or make/receive calls and the like for a user.

In the prior art, to the volume control of wireless earphone, can adopt speech control's mode, but speech recognition degree of accuracy is lower, and the cost is higher, is not convenient for use in the public place moreover, leads to the speech control effect not good, influences user experience and feels.

Therefore, how to improve the volume adjustment manner of the earphone is an important problem to be solved at present.

Disclosure of Invention

The application provides an earphone volume adjusting method and equipment, which can expand the functionality of an earphone and improve the use convenience and intelligence of the earphone.

In a first aspect, an embodiment of the present application provides a volume adjustment method based on an earphone, including: confirming that the first headset is worn by a user; the first earphone plays audio content with a first volume; starting a volume adjustment function in response to a first operation of the first earphone by the user; in response to the user turning the first earphone from an initial posture to a first posture, an angle between the initial posture and the first posture being a first angle, the first angle being smaller than a first preset angle, playing the audio content at the first volume; in response to the user turning the first earpiece from a first pose to a second pose, an angle between the initial pose and the second pose being a second angle, the second angle being greater than the first preset angle, playing the audio content at a second volume; wherein, the difference between the second angle and the first preset angle is in positive correlation with the difference between the first volume and the second volume, and the first volume is different from the second volume.

The first operation of the user on the earphone can be specifically knocking the earphone, rotating the earphone, pressing the earphone, lightly pinching the earphone and giving a voice instruction. The sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

Firstly, the earphone collects posture parameters changed due to rotation of the earphone through a motion sensor, secondly, the rotated angle of the earphone compared with the initial posture is calculated according to the parameters of the target posture, whether the earphone rotates beyond a first preset angle or not is further judged, thirdly, the processor calculates a second volume corresponding to the rotated angle, and finally, the volume of the earphone is adjusted to the second volume through an audio module. The control method of the earphone can acquire the attitude parameter information of the earphone through the motion sensor, so that specific volume adjustment information can be identified according to the degree of the rotated angle corresponding to the attitude change of the earphone. Moreover, the judgment condition that the angle is larger than the first preset angle is added, so that the intention of the user for adjusting the volume is favorably and accurately recognized, and the volume change caused by mistaken touch or misoperation is reduced.

According to the first aspect, in a possible implementation manner, after the second angle is greater than a first preset angle and before the audio content is played at the second volume, the method further includes: and determining the second volume according to the second angle and a volume adjustment threshold.

According to the implementation mode, the volume adjustment threshold value X is introduced into the volume value algorithm, wherein the X can be set before the earphone leaves a factory, and a modification entry can be provided for a user to enable the user to define the value of the X in a self-defining mode. Therefore, the operability of the user can be improved, the adjustment can be carried out according to different operation habits, and the better adaptability is achieved.

According to the first aspect, in a possible implementation manner, after the second angle is greater than a first preset angle and before the audio content is played at the second volume, the method further includes: starting a timer; and determining the second volume according to the time of the timer.

According to the implementation mode, firstly, the gesture information of the rotation change of the earphone is collected through the motion sensor, then, the fact that the angle of the rotation of the earphone exceeds the first preset angle is confirmed according to the gesture information, the timer T1 is started, and the volume is continuously increased according to the staying time of the earphone outside the first preset angle. The method can identify specific control information through the rotation angle of the earphone and the time of the timer, so that the wireless earphone has the advantages of lower cost and smaller size under the condition of realizing various control functions, the design difficulty of adjusting the volume of the wireless earphone is further optimized, the method is favorable for expanding the functionality of the wireless earphone, and the use convenience and the intelligence of the wireless earphone are improved.

According to the first aspect, in a possible implementation manner, the method further includes: in response to the user turning the first earpiece from a second pose to a third pose, the angle between the initial pose and the third pose being a third angle, the third angle being less than a second preset angle, stopping and zeroing the timer; the second preset angle is smaller than the first preset angle.

According to the implementation mode, when the rotating angle of the earphone is smaller than the second preset angle, the timer stops and returns to zero, so that the volume does not change continuously, and convenience in adjusting the volume of the wireless earphone and diversity of operation modes are favorably expanded.

According to the first aspect, in a possible implementation manner, after the second angle is greater than a first preset angle and before the audio content is played at the second volume, the method further includes: in response to the user turning the first earpiece from a second pose to a third pose, an angle between the initial pose and the third pose is a third angle, the third angle being less than a second preset angle.

According to the implementation mode, the earphone passes through the motion sensor collection because the earphone rotates the attitude parameter that changes, and calculate the earphone by pivoted angle through attitude parameter, and then judge whether the earphone rotates earlier and surpasss first predetermined angle, then rotate to the second and predetermine in the angle, if the earphone has rotated back in the second predetermines the angle, adjust earphone volume to second volume, when this makes the volume change, the play sound hole of earphone just is to the duct, the perception that the user can be clear and definite accords with its demand to the volume of current earphone, improve volume adjustment's accuracy and promote user's experience. In addition, the first preset angle and the second preset angle can be set to be different high and low threshold values, errors caused by detection data of the sensor can be reduced, and the accuracy of recognizing the intention of the user by the earphone is improved.

According to the first aspect, in a possible implementation manner, after the second angle is greater than a first preset angle and before the audio content is played at the second volume, the method further includes: the first earpiece remains in the second pose for a preset period of time.

According to the implementation mode, the earphone collects the attitude parameters which change due to the rotation of the earphone through the motion sensor, judges whether the earphone stops rotating within the preset time period or not through the attitude parameters, determines the volume value of the second volume if the earphone stops rotating, adjusts the earphone volume to the second volume, is favorable for expanding the mode of adjusting the volume of the wireless earphone, and improves the use convenience and intelligence of the wireless earphone.

According to the first aspect, in a possible implementation manner, the method further includes a second operation of turning off a volume adjustment function in response to the second operation of the first headset by the user.

The user can specifically perform second operation on the earphone by knocking the earphone, rotating the earphone, pressing the earphone, lightly pinching the earphone and performing voice instruction. The sensor for detecting the second operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

According to the implementation mode, the user can control the turning-off of the volume adjusting function through simple operation, so that the volume adjustment caused by mistaken touch is reduced, and the processing and calculation resources and the electric quantity consumption of the earphone can be further saved.

According to the first aspect, in a possible implementation manner, after the second angle is greater than the first preset angle, the method further includes: and sending a prompt to the user.

According to the implementation mode, a user can perceive whether the angle change of the earphone reaches a certain threshold value under the condition of invisibility, so that whether the current rotating angle of the earphone enters the control range of volume adjustment or the execution range of volume adjustment is determined, and the operability of the method for adjusting the volume of the earphone is improved.

In a second aspect, an embodiment of the present application provides a volume adjustment method based on an earphone, including: confirming that the first headset and the second headset are worn by a user; the first earphone and the second earphone play audio content from the same equipment at a first volume; starting a volume adjustment function in response to a first operation of the first earphone by the user; detecting rotation of the first and second earpieces by the user; wherein the first earpiece is rotated a first angle and the second earpiece is rotated a second angle; if the first angle is different from the second angle, playing the audio content at a second volume; the first volume is different from the second volume.

According to the scheme, the gesture parameters changed due to rotation of the first earphone and the second earphone are collected through the motion sensor, the rotated angles of the first earphone and the second earphone are calculated through the gesture parameters, the volume change amount is calculated according to the angle of the user for rotating the earphones, and then the second volume is determined according to the volume change amount. When the two earphones are used for adjusting the volume at the same time, the angle used for calculating the volume change is the actual manual rotation angle of the user, namely the angle obtained by subtracting the rotation angle of the second earphone along with the change of the head posture from the total change angle of the rotated first earphone. That is, even in a moving scene, the angle at which the user turns the earphone and the intention of the user to adjust the volume can be accurately recognized.

According to the second aspect, in a possible implementation manner, if the first angle is different from the second angle, playing the audio content at a second volume specifically includes: and if the first angle is different from the second angle and the difference value between the first angle and the second angle is greater than a first preset angle, playing the audio content at a second volume.

According to the implementation mode, the judgment condition that the difference value between the first angle and the second angle is larger than the first preset angle is increased, so that the intention of a user for adjusting the volume is favorably and accurately recognized, and the volume change caused by mistaken touch or misoperation is reduced.

According to the second aspect, in a possible implementation manner, after the difference between the first angle and the second angle is greater than a first preset angle, and before the audio content is played at the second volume, the method further includes: starting a timer; and determining the second volume according to the time of the timer.

According to the implementation mode, firstly, the gesture information of the change of the rotation of the first earphone and the second earphone is collected through the motion sensor, then, the difference value between the first angle and the second angle is confirmed to be larger than the first preset angle according to the gesture information, the timer T1 is started, and the volume is continuously increased according to the staying time of the earphone outside the first preset angle. The method can identify specific control information through the rotation angle of the earphone and the time of the timer, so that the wireless earphone has the advantages of lower cost and smaller size under the condition of realizing various control functions, the design difficulty of adjusting the volume of the wireless earphone is further optimized, the method is favorable for expanding the functionality of the wireless earphone, and the use convenience and the intelligence of the wireless earphone are improved.

In a possible implementation manner, before playing the audio content at the second volume, the method further includes: the difference between the first angle and the second angle remains constant for a preset period of time.

According to the implementation mode, the earphone collects the attitude parameters which change due to the rotation of the first earphone and the second earphone through the motion sensor, whether the user stops rotating the first earphone within a preset time period is judged through the attitude parameters, if the user stops rotating, the volume value of the second volume is determined, the earphone volume is adjusted to the second volume, the mode that the wireless earphone adjusts the volume is favorably expanded, and the use convenience and the intelligence of the wireless earphone are improved.

According to the second aspect, in a possible implementation manner, the method further includes a second operation of turning off a volume adjustment function in response to the second operation of the first headset by the user.

The user can specifically perform second operation on the earphone by knocking the earphone, rotating the earphone, pressing the earphone, lightly pinching the earphone and performing voice instruction. The sensor for detecting the second operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

According to the implementation mode, the user can control the turning-off of the volume adjusting function through simple operation, so that the volume adjustment caused by mistaken touch is reduced, and the processing and calculation resources and the electric quantity consumption of the earphone can be further saved.

According to the second aspect, in a possible implementation manner, after the difference between the first angle and the second angle is greater than a first preset angle, the method further includes: and sending a prompt to the user.

According to the implementation mode, a user can perceive whether the angle change of the earphone reaches a certain threshold value under the condition of invisibility, so that whether the current rotating angle of the earphone enters the control range of volume adjustment or the execution range of volume adjustment is determined, and the operability of the method for adjusting the volume of the earphone is improved.

In a third aspect, an embodiment of the present application provides an electronic device, including an audio module, a processor, and one or more programs; wherein the processor, when executing the one or more programs, causes the electronic device to implement the method of any of claims 1-14.

In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the electronic device, the computer program implements the steps of the earphone volume adjustment method according to any one of claims 1 to 14.

In a fifth aspect, the present application provides a computer program product containing instructions, which when run on an electronic device, causes the electronic device to perform the method according to any one of claims 1 to 14.

In a sixth aspect, an embodiment of the present application provides a volume adjustment method based on an earphone, including: confirming that the first headset and the second headset are worn by a user; the first earphone and the second earphone play audio content from the same equipment at a first volume; starting a volume adjustment function in response to a first operation of the first earphone by the user; responding to the rotation of the first earphone and the second earphone by the user, and acquiring a first angle of the first earphone and a second angle of the second earphone; if the difference value between the first angle and the second angle is larger than a first preset angle, playing the audio content at a second volume; the first volume is different from the second volume.

According to the scheme, the gesture parameters changed due to rotation of the first earphone and the second earphone are collected through the motion sensor, the rotated angles of the first earphone and the second earphone are calculated through the gesture parameters, the volume change amount is calculated according to the angle of the user for rotating the earphones, and then the second volume is determined according to the volume change amount. When the two earphones are used for adjusting the volume at the same time, the angle used for calculating the volume change is the actual manual rotation angle of the user, namely the angle obtained by subtracting the rotation angle of the second earphone along with the change of the head posture from the total change angle of the rotated first earphone. That is, even in a moving scene, the angle at which the user turns the earphone and the intention of the user to adjust the volume can be accurately recognized.

According to the sixth aspect, in a possible implementation manner, before playing the audio content at the second volume after the difference between the first angle and the second angle is greater than the first preset angle, the method further includes: starting a timer; and determining the second volume according to the time of the timer.

According to the implementation mode, firstly, the gesture information of the change of the rotation of the first earphone and the second earphone is collected through the motion sensor, then, the difference value between the first angle and the second angle is confirmed to be larger than the first preset angle according to the gesture information, the timer T1 is started, and the volume is continuously increased according to the staying time of the earphone outside the first preset angle. The method can identify specific control information through the rotation angle of the earphone and the time of the timer, so that the wireless earphone has the advantages of lower cost and smaller size under the condition of realizing various control functions, the design difficulty of adjusting the volume of the wireless earphone is further optimized, the method is favorable for expanding the functionality of the wireless earphone, and the use convenience and the intelligence of the wireless earphone are improved.

According to the sixth aspect, in a possible implementation manner, after the audio content is played at the second volume, the method further includes: in response to the user rotating the first and second earphones, obtaining a third angle at which the first earphone is rotated and a fourth angle at which the second earphone is rotated; and if the difference value of the third angle and the fourth angle is smaller than a second preset angle, stopping and zeroing the timer.

According to the implementation mode, when the angle of the earphone rotated by the user is smaller than the second preset angle, the timer stops and returns to zero, so that the volume does not change continuously, and convenience in adjusting the volume of the wireless earphone and diversity of operation modes are favorably expanded.

According to the sixth aspect, in a possible implementation manner, before playing the audio content at the second volume after the difference between the first angle and the second angle is greater than the first preset angle, the method further includes: responding to the rotation of the first earphone and the second earphone by the user, and acquiring a third angle of the first earphone and a fourth angle of the second earphone; and the difference value between the third angle and the fourth angle is smaller than a second preset angle.

According to the implementation mode, when the volume changes, the sound outlet hole of the earphone is opposite to the auditory canal, and a user can clearly sense whether the volume of the current earphone meets the requirement of the user, so that the accuracy of volume adjustment is improved, and the experience of the user is improved.

In a possible implementation manner, according to the sixth aspect, the second preset angle is smaller than the first preset angle.

According to the implementation mode, the first preset angle and the second preset angle are different high and low threshold values, so that errors caused by detection data of the sensor can be reduced, and the accuracy of recognizing the user intention by the earphone is improved.

Drawings

Fig. 1 is a schematic diagram of a system according to an embodiment of the present application;

fig. 2 is a schematic structural diagram of a wireless headset according to an embodiment of the present disclosure;

fig. 3 is a schematic view illustrating a rotation direction of an earphone according to an embodiment of the present application;

fig. 4A to 4G are schematic diagrams illustrating volume adjustment of an earphone according to an embodiment of the present disclosure;

fig. 5A to 5E are schematic diagrams illustrating volume adjustment of a headset according to an embodiment of the present disclosure;

fig. 6 is a flowchart of a method for adjusting volume of an earphone according to an embodiment of the present disclosure;

7A-7D are schematic diagrams of volume adjustment of a headset according to an embodiment of the present disclosure;

fig. 8 is a flowchart of another method for adjusting volume of a headset according to an embodiment of the present disclosure;

fig. 9A-9C are schematic diagrams illustrating volume adjustment of a headset according to an embodiment of the present disclosure;

fig. 10 is a flowchart of another method for adjusting volume of a headset according to an embodiment of the present disclosure;

11A-11C are schematic diagrams of volume adjustment of a headset according to an embodiment of the present disclosure;

Fig. 12 is a schematic diagram of another earphone volume adjustment provided in the embodiment of the present application;

fig. 13A-13E are schematic diagrams illustrating volume adjustment of a headset according to an embodiment of the present disclosure;

fig. 14 is a flowchart of another method for adjusting volume of a headset according to an embodiment of the present disclosure;

15A-15C are schematic diagrams of volume adjustment of a headset according to an embodiment of the present application;

fig. 16 is a flowchart of another method for adjusting volume of a headset according to an embodiment of the present disclosure;

17A-17B are schematic diagrams of volume adjustment of a headset according to an embodiment of the present disclosure;

fig. 18 is a flowchart of another method for adjusting volume of a headset according to an embodiment of the present disclosure;

fig. 19A-19B are schematic diagrams illustrating volume adjustment of a headset according to an embodiment of the present disclosure;

fig. 20 is a flowchart of another method for adjusting volume of a headset according to an embodiment of the present disclosure.

Detailed Description

In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The wireless headset according to the embodiment of the present application may be of various types, for example, may be a headset type, an in-ear type, a head-wearing type, an earmuff type, or an ear-hanging type wireless headset, and may be a single headset or a pair of headsets (including a left-ear headset and a right-ear headset respectively worn on the left ear and the right ear of a User) with wireless communication capability, the wireless headset may support wired or wireless charging, for example, may be placed in a dedicated charging box for charging, and may support functions of communication, music, and the like after being connected to a Mobile terminal such as a Mobile phone, and the terminal may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and may also be a terminal provided by the wireless headset itself, and various forms of User Equipment (UE), a Mobile Station (Mobile Station, MS), terminal equipment (terminal device), and the like.

Embodiments of the present application will be described in detail below with reference to the accompanying drawings.

As shown in fig. 1, the method for controlling a wireless headset according to the embodiment of the present application can be applied to a wireless headset control system formed by a wireless headset 11 and a terminal 12. A wireless connection may be established between the wireless headset 11 and the terminal 12. The wireless connection is a connection established using a wireless communication technology. The wireless communication technology may be Bluetooth (BT), Wireless Local Area Network (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Zigbee, Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), or universal 2.4G/5G band wireless communication technology. The embodiment of the present application does not specifically limit the type of wireless communication technology.

For example, when the Wireless headset is a tws (true Wireless stereo) headset, the Wireless headset 11 may include a headset body 011 (also referred to as a left ear headset or a first headset) and a headset body 012 (also referred to as a right ear headset or a second headset) that are respectively worn on the left ear and the right ear. The earphone body may include a housing and an internal component. The internal components are disposed within a cavity formed by the housing. The internal components may include an audio module, a power module, and a wireless communication module. It should be understood that the first earphone or the second earphone referred to in this embodiment may refer to one earphone of a pair of earphones, or may refer to a single earphone (e.g., a bracelet-type bluetooth earphone), and for convenience of description, the left earphone is referred to as the first earphone, and the right earphone is referred to as the second earphone, but the description is not limited thereto.

When the wireless headset is a TWS headset, the user may wear the headset in only one ear or in both ears. When only one ear wears the earphone, the user wears the left ear earphone or the right ear earphone to perform audio services such as listening to music or making/receiving calls. In the case of wearing headphones at both ears, the user can wear both headphones to enjoy music or other audio services. In the case of a headphone worn in both ears, the two headphones are divided into a main headphone and a sub headphone. In addition, in the use process of the TWS earphone, the main and auxiliary roles of the two earphones can be switched.

In some embodiments, the TWS headset may interact with the electronic device through the master headset with control information, such as adjusting volume, pausing, playing, next beginning, etc. operations.

In one case, a wireless connection is established between the main headset and the electronic device, and wireless communication, control information interaction and audio data interaction can be performed between the main headset and the electronic device. Wireless connection is also established between the main earphone and the auxiliary earphone, and the main earphone can inform the auxiliary earphone to carry out state synchronization. The sub-headset may receive audio data transmitted by the electronic device through a forwarding, listening, or Near Field Magnetic Induction (NFMI) of the main headset.

In the monitoring scheme, the electronic device and the main earphone establish a bluetooth connection, complete the transmission of audio data to the main earphone, and complete control services (such as volume up-regulation, playing, pausing, switching to the next head, and the like) triggered by the electronic device and the TWS earphone; bluetooth connection is established between the double earphones, and information synchronization between the double earphones is completed; the auxiliary earphone acquires audio data and control information by monitoring a Bluetooth link between the main earphone and the electronic equipment.

In the forwarding scheme, a Bluetooth connection is established between the electronic equipment and the main earphone, so that the audio data is sent to the main earphone, and the control service triggered by the electronic equipment and the TWS earphone is completed; bluetooth connection is established between the double earphones, information synchronization between the double earphones is completed, and the main earphone forwards audio data and control information to the auxiliary earphone through a Bluetooth link between the main earphone and the auxiliary earphone.

In the NFMI scheme, Bluetooth connection is established between the electronic equipment and a main earphone, so that the audio data is sent to the main earphone, and control service triggered by the electronic equipment and the TWS earphone is completed; NFMI connection is established between the double earphones to complete information synchronization between the double earphones, and the main earphone forwards audio data and control information to the auxiliary earphone through the NFMI link between the main earphone and the auxiliary earphone.

In another case, the primary and secondary earpieces may establish a dual-shot connection with the electronic device. In the dual-head scheme, the electronic device establishes a bluetooth connection with two of the TWS earpieces, respectively. In some embodiments, the electronic device interacts audio data, service control information, and the like with the bluetooth link between the two earphones of the TWS earphone, respectively, to implement operations such as playing audio data and controlling service.

In addition, because the primary and secondary roles of the two earphones of the TWS earphone can be switched during the use process, the primary earphone can synchronize the relevant information required for establishing or disconnecting the connection with the electronic equipment to the secondary ear; so that after the auxiliary ear is switched to the main ear, the connection with the electronic equipment can be established or disconnected according to the relevant information. For example, the related information may include historical pairing information, historical connection information, device priority information, traffic priority information, and the like with the electronic device.

For example, fig. 2 shows a schematic structural diagram of a wireless headset 11. The wireless headset 11 may include, among other things, at least one processor 101, at least one memory 102, a wireless communication module 103, an audio module 104, a sensor module 105, and a power module 106. The processor may include one or more interfaces for connecting with other components of the wireless headset 11.

The memory 102 may be used for storing program codes, such as program codes for performing virtual connection or physical connection between the wireless headset 11 and a plurality of electronic devices, switching physical connection with the electronic devices, processing audio services of the electronic devices (e.g., adjusting volume, playing music, making/receiving calls, etc.), charging the wireless headset 11, performing wireless pairing connection between the wireless headset 11 and other electronic devices, and the like. The memory 102 may also be used to store other information, such as the priority of the electronic device.

The processor 101 may be configured to execute the application program codes and call the relevant modules to implement the functions of the wireless headset 11 in the embodiment of the present application. For example, the wireless headset 11 can be connected to a plurality of electronic devices virtually or physically, play audio, adjust volume, make/receive calls, switch physical connections with different electronic devices according to device priorities, and the like.

The processor 101 may include one or more processing units, and the different processing units may be separate devices or may be integrated in one or more of the processors 101. The processor 101 may be specifically an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to execute the functions belonging to the processor 101 described in the embodiments of the present application.

The wireless communication module 103 may be configured to support data exchange between the wireless headset 11 and other electronic devices or the headset itself, including data exchange of wireless communication such as BT, WLAN (e.g., Wi-Fi), Zigbee, FM, NFC, IR, or general 2.4G/5G wireless communication technology.

In some embodiments, the wireless communication module 103 may be a bluetooth chip. The wireless headset 11 can be paired with the bluetooth chip of the other electronic device through the bluetooth chip and establish a wireless connection, so as to implement wireless communication and service processing between the wireless headset 11 and the other electronic device through the wireless connection. The wireless connection may be a physical connection or a virtual connection. In general, a bluetooth chip may support Basic Rate (BR)/enhanced rate (EDR) bluetooth and BLE, for example, may receive/transmit paging (page) information, receive/transmit BLE broadcast messages, and the like.

In addition, the wireless communication module 103 may further include an antenna, and the wireless communication module 103 may receive an electromagnetic wave via the antenna, frequency-modulate and filter an electromagnetic wave signal, and transmit the processed signal to the processor 101. The wireless communication module 103 may also receive a signal to be transmitted from the processor 101, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna to radiate the electromagnetic waves.

The audio module 104 may be configured to manage audio data, enable the wireless headset 11 to input and output audio signals, and enable functions such as receiving and making calls, playing music, adjusting volume, activating/deactivating a voice assistant of an electronic device connected to the headset, and receiving/transmitting voice data of a user through the bluetooth headset. The audio module 104 may include a microphone 104A (or called microphone, microphone), a speaker 104B (or called receiver, receiver) component, an audio codec 104C, a power amplifier 104D, and the like for outputting audio signals. The microphone 104A may be used to convert sound signals into electrical audio signals. The speaker 104B may be used to convert the electrical audio signal into an acoustic signal and play it. The audio codec 104C converts the digital signal into an analog signal and sends the analog signal to the power amplifier. The power amplifier 104D may be used to amplify analog signals.

The sensor module 105 may implement the information needed to detect the wireless headset 11 according to its different functions. For example, the user turns the wireless headset 11 to realize function control of adjusting volume, playing music, making/receiving calls, etc., and the processor 101 recognizes the user's operation intention by collecting data of the motion sensor.

The sensor for collecting the posture information of the user rotating the headset may be only the acceleration sensor 105A in the sensor module, specifically, the processor 101 collects the values of the acceleration value of the headset on the three axes of x, y and z through the acceleration sensor to calculate the posture of the headset, and further calculate the rotation angle of the headset. Alternatively, the processor 101 may calculate the rotation angle of the earphone by only acquiring the rotation angular velocity value of the earphone in real time through the angular velocity sensor 105B and integrating the rotation angular velocity value with time. Or, the processor 101 may calculate the posture of the earphone by only acquiring the magnetic field intensity information of the earphone through the magnetic induction sensor 105C, and further calculate the rotation angle of the earphone.

No matter the earphone is an acceleration sensor, an angular velocity sensor or a magnetic induction sensor, the motion information acquired by the sensors can meet the accuracy required by the posture recognition of the earphone. In the control method based on earphone detection in the embodiment of the application, the three types of sensors can be used respectively or in combination to achieve different purposes such as low power consumption or high precision.

The proximity light sensor 105D may be used to determine whether the wireless headset 11 is worn by the user. In some embodiments, the sensor module 105 may also include a distance sensor that may be used to detect whether an object is near the wireless headset 11, thereby determining whether the wireless headset 100 is being worn by the user. When it is determined that the wireless headset 11 is worn, the wireless headset 11 may turn on the speaker 104B to emit an alert sound.

As another example, the sensor module 105 may also include a bone conduction sensor, combined into a bone conduction headset. By using the bone conduction sensor, the wireless earphone 11 can acquire the vibration signal of the vibration bone block of the human body part, analyze out the voice signal, realize the voice function, and thus receive the voice command of the user. The wireless headset 11 may also perform voice authentication according to the user voice signal acquired by the bone conduction headset, so as to authenticate the user identity in a service scenario such as payment transaction.

For another example, the sensor module 105 may further include: the touch sensor is used for detecting touch operations of a user, such as single click, double click, multiple click, long press, repeated press and the like, and can also perform user fingerprint identification so as to authenticate the identity of the user in service scenes, such as payment transaction and the like; the fingerprint sensor is used for detecting the fingerprint of the user, identifying the identity of the user and the like; the ambient light sensor can adaptively adjust some parameters (such as volume) according to the perceived brightness of the ambient light; and other sensors.

The power supply module 105 may be configured to provide a system power supply for the wireless headset 11, and supply power to each module of the wireless headset 11; the supporting wireless headset 11 receives a charging input, etc. The power module 105 may include a battery 106A, a power management unit 106B (PMU), and a charging interface 106C. The power supply management unit can receive external charging input; the electric signal input by the charging circuit is provided to the battery for charging after being transformed, and the electric signal provided by the battery can also be provided to other modules such as the wireless communication module 103, the audio module 104, the sensor module 105 and the like after being transformed; and to prevent overcharging, overdischarging, short-circuiting, overcurrent, etc. of the battery. In some embodiments, the power module 105 may also include a wireless charging coil for wirelessly charging the wireless headset 100. In addition, the power management unit can also be used for monitoring parameters such as battery capacity, battery cycle number, battery health state (electric leakage and impedance) and the like. The charging interface 106C may be used to provide a wired connection for charging or communication between the wireless headset 11 and the headset case. In some embodiments, the input/output interface may be a USB interface. In other embodiments, the charging interface 106C may be an earphone electrical connector, and when the wireless earphone 11 is placed in the earphone box, the wireless earphone 11 may establish an electrical connection with the electrical connector in the earphone box through the earphone electrical connector, so as to charge the battery in the wireless earphone 11. In other embodiments, after the electrical connection is established, the wireless headset 11 may also be in data communication with a headset box, for example, may receive a pairing instruction from the headset box.

It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the wireless headset 11. It may have more or fewer components than shown in fig. 2, may combine two or more components, or may have a different configuration of components. For example, the external surface of the wireless headset 11 may further include a key, an indicator light (which may indicate the status of power, incoming/outgoing call, pairing mode, etc.), a display screen (which may prompt the user for relevant information), a dust screen (which may be used with an earphone), and the like. The key may be a physical key or a touch key (used in cooperation with the touch sensor), and is used for triggering operations such as startup, shutdown, pause, play, recording, pairing start, and reset.

The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.

For convenience of understanding, a wireless headset control method provided in the embodiments of the present application is specifically described below with reference to the accompanying drawings. In the following embodiments, a mobile phone is used as a terminal to exemplify a control function of adjusting the volume.

It is understood that the letters, numbers or combinations thereof (e.g., the first pose "P1") appearing in the present embodiment are for the purpose of helping to explain how the method in the embodiment is implemented/calculated, and are not intended to be used to interpret or specifically limit a word.

In the present embodiment, the rotation direction of the earphone is defined as shown in fig. 3, and the rotation of the earphone toward the face is positive and the rotation of the earphone toward the back of the ear is negative with the initial posture P0 as a reference point.

As shown in fig. 4A, the proximity light sensor detects that the first earpiece is worn by the user, the first earpiece playing audio content at a first volume V0.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after a user wears the blue-ear earphone on one ear, the human ear can block light entering the near light sensor, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphone is in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

As shown in fig. 4B, after the acceleration sensor detects the double-click operation of the earphone by the user, the earphone enters a volume adjustment state. After the earphone enters a volume adjustment state, the acceleration sensor detects the initial posture P0 of the earphone and sends the posture parameters of the initial posture P0 to the processor.

As shown in fig. 4C, the headset is rotated forward from P0 to a first attitude P1, the acceleration sensor sends the attitude parameters of P1 to the processor, and the processor calculates an angle D1 by which the headset is rotated according to the attitude parameters of P1 and P0, wherein D1 is an angle between P0 and P1. The processor calculates the volume change amount N1-D1/X according to the formula N-D/X, and then calculates the second volume V1 according to V0 and N1, and V1-V0 + N1. The processor adjusts the volume through the audio module to V1, at which point the headphone volume is adjusted to V1. And X is a volume adjustment threshold value, namely, the volume is adjusted by one time when the angle of the rotating earphone changes X.

If the adjusted volume is too small, the volume needs to be increased continuously, and the earphone can be rotated forward continuously. The specific implementation refers to the above procedure.

If the adjusted volume is too large at this time, the volume needs to be reduced, and the earphone handle can be rotated back, and the specific implementation mode is as follows:

as shown in fig. 4D, the headset is turned from P1 to a second attitude P2, the acceleration sensor sends the attitude parameters of P2 to the processor, the processor calculates an angle D2 according to the attitude parameters of P2 and P0, and D2 is the angle between P0 and P2. The processor calculates the volume change amount N2-D2/X according to the formula N-D/X, and then calculates the second volume V2 according to V1 and N2, and V2-V0 + N2. The processor adjusts the volume through the audio module to V2, at which point the headphone volume is adjusted to V2.

It should be noted that the processor may calculate the angle by which the headset is rotated in different ways. As shown in fig. 4E, the processor calculates the angle D3 by which the headset is turned according to the attitude parameters of P2 and P1, and D3 is the angle between P1 and P2. The processor calculates the volume change amount N3-D3/X according to the formula N-D/X, and then calculates the second volume V2 according to V1 and N3, and V2-V1-N3. The processor adjusts the volume through the audio module to V2, at which point the headphone volume is adjusted to V2.

As shown in fig. 4F, the headphone has been turned to P2, the volume adjustment is V2, the headphone detects a double-click operation of the headphone by the user, and the headphone exits the volume adjustment state.

The following describes the process of using a headset to turn down the volume in detail by taking an example of turning down the volume by using a headset.

As shown in fig. 4G, after the headphone enters the volume adjustment state, the headphone is rotated in the negative direction. The headset is turned negatively from P0 to the target attitude P3, the acceleration sensor sends the detected P3 to the processor; the processor calculates the angle D4 by which the headset is turned according to P3 and P0. The processor calculates a fourth variation N4 of the volume according to the formula N-D/X-D4/X, and then calculates a second volume V3 according to V0 and N4, and V3 is V0+ N4. The processor controls the speaker to adjust the volume to V3, at which time the headphone volume is adjusted to V3.

It can be seen that, in the embodiment of the application, the earphone firstly acquires the posture parameter changed due to the rotation of the earphone through the acceleration sensor, secondly, the rotated angle of the earphone compared with the initial posture at the moment is calculated according to the parameter of the target posture, thirdly, the processor calculates the second volume corresponding to the rotated angle, and finally, the volume of the earphone is adjusted to the second volume through the audio module. According to the control method of the wireless earphone, the attitude parameter information of the earphone can be collected through the motion sensor, so that specific volume adjustment information can be identified according to the degree of the rotated angle corresponding to the target attitude and the initial attitude of the earphone.

As a refinement of this embodiment, the processor may send a notification of receiving data (e.g., the pose information of the headset) to the acceleration sensor each time before the processor acquires the data (e.g., the pose information of the headset) from the acceleration sensor, so that the acceleration sensor sends the data (e.g., the pose information of the headset) that it has detected to the processor in response to the notification.

In a possible case, after the user turns the earphone and releases the hand, the force applied to the ear disappears, and the ear shakes, so that the earphone also shakes back and forth. Alternatively, the user may hold the earphone handle and may cause the earphone to shake to some extent. On the other hand, the circuit itself has a certain amount of noise, which causes the data detected by the sensor to fluctuate. For example, if the user releases the headphone in a position near the initial position P0, such a small amplitude shake may cause the sensor to recognize that the position of the headphone is repeatedly rotated in the front-rear direction of P0, and the sound volume is sometimes increased and sometimes decreased. In order to reduce the interference of such situations on the identification of the actual control intention of the user by the earphone, the following scheme can be adopted:

as shown in fig. 5, a first preset angle a1 for confirming that the earphone is rotated to a control range of volume adjustment is set.

Specifically, as shown in fig. 5A, the proximity light sensor detects that the first headphone is worn by the user, and the first headphone plays audio content at a first volume V0.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

As shown in fig. 5B, after the acceleration sensor detects the double-click operation of the earphone by the user, the earphone enters a volume adjustment state. After the earphone enters a volume adjustment state, the acceleration sensor detects the initial posture P0 of the earphone and sends the posture parameters of the initial posture P0 to the processor.

As shown in fig. 5C, the headset is rotated forward from P0 to a first attitude P1, the acceleration sensor sends the attitude parameters of P1 to the processor, and the processor calculates a first angle D1 by which the headset is rotated according to the attitude parameters of P1 and P0, and D1 is an angle between P0 and P1. The processor confirms that the first angle D1 is smaller than the first preset angle a1, the volume is not adjusted, and the audio content is still played at the first volume V0.

As shown in fig. 5D, the headset is rotated forward from the first posture P1 to the second posture P2, the acceleration sensor sends the posture parameters of P2 to the processor, the processor calculates a second angle D2 by which the headset is rotated according to the posture parameters of P2 and P1, and D2 is an angle between P2 and P1. The processor calculates the volume change amount N1-D2-a 1/X according to the formula N-D1/X, and then calculates the second volume V1 and V1-V0 + N1 according to V0 and N1. The processor adjusts the volume through the audio module to V1, at which point the headphone volume is adjusted to V1. X is the volume adjustment threshold, i.e., the volume is adjusted by one bin per change X of the angle of (D-A1).

It is to be understood that the processor may also calculate the volume change according to the formula N-D/X.

As shown in fig. 5E, the headphone has been turned to P2, the volume adjustment is V1, the headphone detects a double-click operation of the headphone by the user, and the headphone exits the volume adjustment state.

Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

step 301, confirming that the first earphone is worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after a user wears the blue-ear earphone on one ear, the human ear can block light entering the near light sensor, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphone is in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

Step 302, the first headphone plays audio content at a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

Step 303, in response to the first operation, a volume adjustment function is started.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

Step 304, in response to the user rotating the first earphone from the initial posture to the first posture, an angle between the initial posture and the first posture is a first angle, and the first angle is smaller than a first preset angle, and playing the audio content at the first volume.

Wherein the processor calculates a first angle D1 by which the headset is rotated according to the posture parameters of the initial posture P0 and a first posture P1, and D1 is an angle between P0 and P1.

The method for calculating the rotation angle is different due to the different sensors used.

When the second sensor is an acceleration sensor, the processor obtains the rotation angle D1 of the headset through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

when the second sensor is an angular velocity sensor, the processor calculates the rotation angle D1 of the earphone by collecting a series of angular velocity values detected by the sensor at intervals t. The formula used to calculate D1 may be: the sensor interval time t obtains a series of angular velocity values(Vector)Wherein the content of the first and second substances,

when the second sensor is a magnetic induction sensor, the processor obtains the rotation angle D1 of the earphone through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

after the processor calculates the first angle D1, if the first angle D1 is determined to be smaller than the first preset angle a1, the audio content is still played at the first volume without adjusting the volume.

Step 305, in response to the user turning the first earphone from the first posture to the second posture, an angle between the initial posture and the second posture is a second angle, and the second angle is larger than a first preset angle, and the audio content is played at the second volume. The relationship between the difference value of the second angle and the first preset angle and the difference value of the first volume and the second volume is positive correlation, and the first volume and the second volume are different.

Wherein the processor calculates a second angle D2 by which the headset is rotated according to the posture parameters of the initial posture P0 and the second posture P2, and D2 is an angle between P0 and P2. The method for calculating the second angle can be referred to the description of step 304, and is not described herein.

After the processor calculates the second angle D2, it determines that the second angle D2 is greater than the first predetermined angle a1, and then calculates the adjustment parameter of the volume according to D2.

The numerical value of the adjustment parameter is the rotation angle of the earphone, and the positive and negative of the numerical value are determined according to the rotation direction of the earphone. Specifically, with the initial posture P0 as the reference point, the rotation of the headset toward the face is positive, the adjustment parameter is positive, the rotation of the headset toward the back of the ear is negative, and the adjustment parameter is negative. For example, when the angle between P0 and P2 is 30 °, that is, D2 is 30 °, the adjustment parameter corresponding to D2 is 30 ° because the posture of P2 is a posture rotated in the forward direction with respect to P0. When the angle between P0 and P2 'is 30 °, that is, D2' is 30 °, the adjustment parameter corresponding to D2 'is-30 ° because the posture of P2' is a posture rotated in the negative direction with respect to P0.

Further, the processor determines a second volume V1 according to the first volume V0 and the adjustment parameter of the angle D2 by which the earphone is turned, wherein the second volume V1 is the volume value adjusted according to the variation N1.

Specifically, the processor may calculate the change amount of the sound volume N1 ═ D2-a1)/X according to the formula N ═ D-a 1)/X. Wherein, the variation N1 is a volume variation value obtained according to the adjustment parameter of D2 and a preset algorithm, X is a volume adjustment threshold, i.e. a unit variation of the volume, (D-a1) adjusts the volume once per variation X. The second sound volume at this time is V1 ═ V0+ N1.

Note that X is set before the earphone is shipped from the factory. The value of X can be obtained by sampling the operation habit of the user in a large quantity and then normally distributing. A modification entry may also be provided for the user to customize the value of X.

The processor adjusts the headphone volume to a second volume V1 through the audio module. Specifically, the processor sends a digital signal with a corresponding gain to the audio codec according to the volume value of the second volume V1, the audio codec converts the digital signal into an analog signal and sends the analog signal to the power amplifier, and the power amplifier sends the analog signal with the corresponding gain to the speaker, so that the volume of the earphone is changed.

It is understood that the corresponding gain may have different designs as long as the adjusted volume reaches the second volume. The use of the components and the use of the combination of software and hardware are not limited, and the volume can be adjusted by referring to the prior art.

And step 306, responding to the second operation, and closing the volume adjusting function.

It should be noted that the second operation of the earphone by the user may specifically be one of double-click on the earphone, long-press on the earphone, light-pinch on the earphone, or a voice command, or may be to start the timer T when starting the volume adjustment function, automatically turn off the volume adjustment function after a preset time of 10 seconds, or may be to start the volume adjustment function by long-press/pinch on the earphone, rotate the earphone in a state of long-press/pinch on the earphone to adjust the volume, and turn off the volume adjustment function after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

The value range of the preset angle in this embodiment is comprehensively considered according to two types of interference signals affecting the detection of the sensor. The first type of interference signal is circuit noise, and the size of the circuit noise depends on the accuracy of the electronic component, the external temperature and the like; the second type of interference signals are that the earphone shakes during the process of operating the earphone by a user, the earphone shaking amplitude mainly depends on the thickness of fat of human ears and the like, samples are collected according to the factors, and a certain user operation space is considered to be reserved for reasonable value taking.

As an extension of the above embodiment, a first preset angle a1 and a second preset angle a2 are respectively set, and the first preset angle is greater than the second preset angle. As shown in fig. 7A, after the earphone starts the volume adjustment function, the earphone is turned forward from P0 to the first posture P1, the acceleration sensor sends the posture parameters of P1 to the processor, the processor calculates the first angle D1 of the rotation of the earphone according to the posture parameters of P1 and P0, and D1 is the angle between P0 and P1. The processor confirms that the volume of the earphone is unchanged and remains at the first volume V0 when the D1 is smaller than the first preset angle A1. As shown in fig. 7B, the headset is turned forward from P1 to a second attitude P2, the acceleration sensor sends the attitude parameters of P2 to the processor, and the processor calculates a second angle D2 of headset rotation according to the attitude parameters of P1 and P2, wherein D2 is the angle between P2 and P1. The processor confirms that D2 is greater than the first preset angle a1 and starts a timer T1. As shown in fig. 7C, the headphone stays in the second position P2, and the processor adjusts the volume of the audio module by one frame every M ms for T1. M is the volume adjustment duration, i.e., every M milliseconds T1 increases, the volume is adjusted by one. As shown in fig. 7D, the earphone is rotated to the second preset angle a2, the T1 stops and returns to zero, and the earphone volume is adjusted to the second volume V1.

Referring to fig. 8, fig. 8 is a flowchart illustrating a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

step 401, confirming that the first earphone is worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after a user wears the blue-ear earphone on one ear, the human ear can block light entering the near light sensor, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphone is in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

In step 402, the first earpiece plays audio content at a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

In response to the first operation, a volume adjustment function is started, step 403.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

Step 404, in response to the user rotating the first headphone from the initial posture to the first posture, an angle between the initial posture and the first posture is a first angle, and the first angle is smaller than a first preset angle, and playing the audio content at the first volume.

Wherein the processor calculates a first angle D1 by which the headset is rotated according to the posture parameters of the initial posture P0 and a first posture P1, and D1 is an angle between P0 and P1.

The method for calculating the rotation angle is different due to the different sensors used.

When the second sensor is an acceleration sensor, the processor obtains the rotation angle D1 of the headset through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

when the second sensor is an angular velocity sensor, the processor calculates the rotation angle D1 of the earphone by collecting a series of angular velocity values detected by the sensor at intervals t. The formula used to calculate D1 may be: the sensor interval time t obtains a series of angular velocity values(Vector)Wherein the content of the first and second substances,

when the second sensor is a magnetic induction sensor, the processor obtains the rotation angle D1 of the earphone through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

after the processor calculates the first angle D1, it is determined that the first angle D1 is smaller than the first predetermined angle a1, and the audio content is still played at the first volume.

Step 405, in response to the user rotating the first earphone from the first posture to the second posture, where an angle between the initial posture and the second posture is a second angle, and the second angle is greater than the first preset angle, starting a timer, determining a second volume according to time of the timer, and playing audio content at the second volume.

Wherein the processor calculates a second angle D2 by which the headset is rotated according to the posture parameters of the initial posture P0 and the second posture P2, and D2 is an angle between P0 and P2. The method for calculating the second angle can be referred to the description of step 404, which is not described herein.

The processor confirms that the second angle D2 is greater than the first preset angle a1, and starts a timer T1 to determine the second volume of the headset according to the time of the timer T1. Specifically, the processor determines a second volume V according to the time and the adjustment parameter of the first volume V0 and T1, where the second volume V is a volume value adjusted according to the volume change N.

The adjustment parameter is used for judging whether the volume is turned up or turned down, for example, the adjustment parameter is a positive value, namely, the earphone is rotated in the positive direction, so that the volume change N is set as an increase value; otherwise, the earphone is rotated in the negative direction, and the volume change amount N is set to a decreasing value.

When the angle of the earphone rotated (the angle between the current posture and the initial posture of the earphone) is larger than the first preset angle a1, an alarm sound can be sent to the user by the speaker to inform the user that the earphone has been rotated to the range of controlling the volume adjustment.

Specifically, the volume change amount N is T1/M (N is rounded to an integer), and the second volume V is V0+ N. Where M is the volume adjustment duration, that is, every M milliseconds of increase of T1, a volume change is generated.

Note that M is set before the headset leaves the factory. The value of M can be obtained by sampling the operation habit of the user in a large quantity and then normally distributing.

M can be adjusted according to the rotation speed of the earphones, for example, the speed of the user for rotating the earphones is high, M is small, the volume can be adjusted quickly, and otherwise, the rotation speed is low, and the volume can be adjusted slowly. Or, preset M can be adjusted according to the size of the rotation angle of the earphone, for example, the angle at which the user rotates the earphone is large, and M is small, so that the volume can be adjusted quickly, and otherwise, the rotation angle is small and the volume can be adjusted slowly. Or, the user can perform user-defined setting on the M on the terminal according to the use habit of the user.

And after the volume value of the second volume is determined, the processor adjusts the volume of the earphone to the second volume through the audio module. Specifically, the processor sends a digital signal corresponding to the gain to the audio codec according to the volume value of the second volume, the audio codec converts the digital signal into an analog signal and sends the analog signal to the power amplifier, and the power amplifier sends the analog signal corresponding to the gain to the speaker, so that the volume of the earphone is changed.

It is understood that the corresponding gain may have different designs as long as the adjusted volume reaches the second volume. The use of the components and the use of the combination of software and hardware are not limited, and the volume can be adjusted by referring to the prior art.

Step 406, in response to the user rotating the first earphone from the second posture to the third posture, an angle between the initial posture and the third posture is a third angle, and the third angle is smaller than a second preset angle, the timer is stopped and zeroed.

Wherein the processor calculates a third angle D3 by which the headset is rotated according to the posture parameters of the initial posture P0 and the third posture P3, and D3 is an angle between P0 and P3. The method for calculating the third angle may refer to the description of step 404, which is not described herein.

The processor confirms that the third angle is smaller than the second preset angle a2, the processor controls the timer to stop and return to zero.

Step 407, in response to the second operation, turning off the volume adjustment function.

It should be noted that the second operation of the earphone by the user may specifically be one of double-click on the earphone, long-press on the earphone, light-pinch on the earphone, or a voice command, or may be to start the timer T when starting the volume adjustment function, automatically turn off the volume adjustment function after a preset time of 10 seconds, or may be to start the volume adjustment function by long-press/pinch on the earphone, rotate the earphone in a state of long-press/pinch on the earphone to adjust the volume, and turn off the volume adjustment function after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

It can be seen that, in the embodiment of the present application, the wireless headset first acquires the posture parameter of the headset that changes when rotating through the acceleration sensor, then confirms that the posture of the headset rotates beyond the first preset angle according to the posture parameter, starts the timer T1, and then continuously increases the volume according to the staying time of the headset outside the first preset angle, and finally, the headset rotates back to the second preset angle, and stops T1 and returns to zero. The wireless earphone can recognize specific control information through the earphone rotation angle and the time of the timer, the control method enables the wireless earphone to have the advantages of lower cost and smaller size under the condition of realizing various control functions, the design difficulty of adjusting the volume of the wireless earphone is further optimized, the functionality of the wireless earphone is favorably expanded, and the use convenience and the intelligence of the wireless earphone are improved.

As an extension of the above embodiment, as shown in fig. 9, a first preset angle a1 and a second preset angle a2 are respectively set, and the first preset angle is larger than the second preset angle. The first preset angle is used for confirming that the earphone rotates to a control range of volume adjustment, if the earphone is rotated back to the second preset angle, the second volume is determined according to the maximum rotating angle of the earphone, and then the volume of the earphone is adjusted to the second volume through the audio module.

The specific volume adjusting method is as follows:

as shown in fig. 9A, after the earphone starts the volume adjustment function, the earphone is turned forward from P0 to the first posture P1, the acceleration sensor sends the posture parameters of P1 to the processor, the processor calculates the first angle D1 of the rotation of the earphone according to the posture parameters of P1 and P0, and D1 is the angle between P0 and P1. The processor confirms that the volume of the earphone is unchanged and remains at the first volume V0 when the D1 is smaller than the first preset angle A1.

As shown in fig. 9B, the headset is turned forward from P1 to a second attitude P2, the acceleration sensor sends the attitude parameters of P2 to the processor, and the processor calculates a second angle D2 of headset rotation according to the attitude parameters of P1 and P2, wherein D2 is the angle between P2 and P1. The processor confirms that D2 exceeds the first preset angle a 1.

As shown in fig. 9C, the headset is rotated to a second preset angle a2, and the processor calculates a third angle D3 of headset rotation according to the attitude parameters of P2 and P3, wherein D3 is an angle between P3 and P0. The processor confirms that D3 is less than the second preset angle a 2. If P2 is the posture at which the maximum angle the earphone is turned, the second volume is determined according to the second angle D2 between P0 and P2. The processor calculates the volume change amount N1-D2-a 1/X according to the formula N-D1/X, and then calculates the second volume V1 and V1-V0 + N1 according to V0 and N1. The processor controls the audio module to adjust the volume to V1, at which time the headphone volume is adjusted to V1.

Referring to fig. 10, fig. 10 is a schematic flowchart of a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

step 501, confirming that the first earphone is worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after a user wears the blue-ear earphone on one ear, the human ear can block light entering the near light sensor, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphone is in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

Step 502, the first earpiece plays audio content at a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

In response to the first operation, the volume adjustment function is activated, step 503.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

Step 504, in response to the user rotating the first headphone from the initial posture to the first posture, an angle between the initial posture and the first posture is a first angle, and the first angle is smaller than a first preset angle, and playing the audio content at the first volume.

Wherein the processor calculates a first angle D1 by which the headset is rotated according to the posture parameters of the initial posture P0 and a first posture P1, and D1 is an angle between P0 and P1.

The method for calculating the rotation angle is different due to the different sensors used.

When the second sensor is an acceleration sensor, the processor obtains the rotation angle D1 of the headset through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

when the second sensor is an angular velocity sensor, the processor calculates the rotation angle D1 of the earphone by collecting a series of angular velocity values detected by the sensor at intervals t. The formula used to calculate D1 may be: the sensor interval time t obtains a series of angular velocity values(Vector)Wherein the content of the first and second substances,

when the second sensor is a magnetic induction sensor, the processor obtains the rotation angle D1 of the earphone through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

after the processor calculates the first angle D1, it is determined that the first angle D1 is smaller than the first predetermined angle a1, and the audio content is still played at the first volume.

And 505, responding to the first earphone rotated from the first posture to the second posture by the user, wherein the angle between the initial posture and the second posture is a second angle, and the second angle is larger than the first preset angle.

Wherein the processor calculates a second angle D2 by which the headset is rotated according to the posture parameters of the initial posture P0 and the second posture P2, and D2 is an angle between P0 and P2. The method for calculating the second angle can be referred to the description of step 504, and is not described herein.

After the processor calculates the second angle D2, it is determined that the second angle D2 is greater than the first preset angle a1, and it is determined that the earphone is rotated to the control range of volume adjustment and still plays the audio content at the first volume.

When the angle of the earphone rotated (the angle between the current posture and the initial posture of the earphone) is larger than the first preset angle a1, an alarm sound can be sent to the user by the speaker to inform the user that the earphone has been rotated to the range of controlling the volume adjustment.

Step 506, in response to the user turning the first earphone from the second posture to a third posture, an angle between the initial posture and the third posture is a third angle, and the third angle is smaller than a second preset angle, and playing the audio content at a second volume.

Wherein the processor calculates a third angle D3 by which the headset is rotated according to the posture parameters of the initial posture P0 and the third posture P3, and D3 is an angle between P0 and P3. The method for calculating the third angle may refer to the description of step 504, which is not described herein.

The processor confirms that the third angle is less than the second preset angle a2 and that the second angle D2 is the maximum angle by which the earphone is rotated, and then determines the second sound volume according to the second angle D2.

Further, the processor determines a second volume V1 according to the initial volume V0 and the adjustment parameter of the angle D2 by which the earphone is turned, wherein the second volume V1 is the volume value adjusted according to the variation N1.

Specifically, the processor may calculate the change amount of the sound volume N1 ═ D2-a1)/X according to the formula N ═ D-a 1)/X. Wherein, the variation N1 is a volume variation value obtained according to the adjustment parameter of D2 and a preset algorithm, X is a volume adjustment threshold, i.e. a unit variation of the volume, (D-a1) adjusts the volume once per variation X. The second sound volume at this time is V1 ═ V0+ N1.

Note that X is set before the earphone is shipped from the factory. The value of X can be obtained by sampling the operation habit of the user in a large quantity and then normally distributing.

The user can also be provided with a modification inlet to customize the value of X by the user

When the angle of the earphone rotated (the angle between the current posture and the initial posture of the earphone) is smaller than the second preset angle a2, an alert sound may be sent to the user by the speaker to inform the user that the earphone has been rotated to the extent that the volume adjustment is performed.

It is understood that, based on the previous steps, the processor calculates the angle of the headset rotated according to the above calculation formula each time the processor obtains the headset posture information, and when performing step 506, the maximum angle of the headset rotated can be determined from the previous information.

The processor adjusts the headphone volume to a second volume V1 through the audio module.

In step 507, the volume adjustment function is turned off in response to the second operation.

It should be noted that the second operation of the earphone by the user may specifically be one of double-click on the earphone, long-press on the earphone, light-pinch on the earphone, or a voice command, or may be to start the timer T when starting the volume adjustment function, automatically turn off the volume adjustment function after a preset time of 10 seconds, or may be to start the volume adjustment function by long-press/pinch on the earphone, rotate the earphone in a state of long-press/pinch on the earphone to adjust the volume, and turn off the volume adjustment function after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

It should be noted that the first preset angle and the second preset angle in this embodiment may be the same angle, or the first preset angle may be larger than the second preset angle.

As an extension of the above embodiment, as shown in fig. 11A, after the earphone starts the volume adjustment function, the earphone is turned forward from P0 to the first posture P1, the acceleration sensor sends the posture parameters of P1 to the processor, and the processor calculates the first angle D1 of the rotation of the earphone according to the posture parameters of P1 and P0, wherein D1 is the angle between P0 and P1. The processor confirms that the volume of the earphone is unchanged and remains at the first volume V0 when the D1 is smaller than the first preset angle A1.

As shown in fig. 11B, the headset is turned forward from P1 to a second attitude P2, the acceleration sensor sends the attitude parameters of P2 to the processor, and the processor calculates a second angle D2 of headset rotation according to the attitude parameters of P1 and P2, wherein D2 is the angle between P2 and P1. The processor confirms that D2 exceeds the first preset angle a 1.

As shown in fig. 11C, the headphones remain in the second posture P2 for a preset period of time, playing the audio content at the second volume.

Referring to fig. 12, fig. 12 is a flowchart illustrating a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

step 601, confirming that the first earphone is worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after a user wears the blue-ear earphone on one ear, the human ear can block light entering the near light sensor, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphone is in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

Step 602, the first earphone plays audio content with a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

Step 603, in response to the first operation, starting a volume adjustment function.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

Step 604, in response to the user turning the first headphone from the initial posture to the first posture, where an angle between the initial posture and the first posture is a first angle, and the first angle is smaller than a first preset angle, playing the audio content at the first volume.

Wherein the processor calculates a first angle D1 by which the headset is rotated according to the posture parameters of the initial posture P0 and a first posture P1, and D1 is an angle between P0 and P1.

The method for calculating the rotation angle is different due to the different sensors used.

When the second sensor is an acceleration sensor, the processor obtains the rotation angle D1 of the headset through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

when the second sensor is an angular velocity sensor, the processor calculates the rotation angle D1 of the earphone by collecting a series of angular velocity values detected by the sensor at intervals t. The formula used to calculate D1 may be: the sensor interval time t obtains a series of angular velocity values(Vector)Wherein the content of the first and second substances,

when the second sensor is a magnetic induction sensor, the processor obtains the rotation angle D1 of the earphone through the attitude parameters of P0 and P1 and a prestored algorithm. The formula used to calculate D1 may be:

after the processor calculates the first angle D1, it is determined that the first angle D1 is smaller than the first predetermined angle a1, and the audio content is still played at the first volume.

Step 605, in response to the user rotating the first earphone from the first posture to the second posture, an angle between the initial posture and the second posture is a second angle, and the second angle is greater than the first preset angle.

Wherein the processor calculates a second angle D2 by which the headset is rotated according to the posture parameters of the initial posture P0 and the second posture P2, and D2 is an angle between P0 and P2. The method for calculating the second angle can be referred to the description of step 504, and is not described herein.

After the processor calculates the second angle D2, it is determined that the second angle D2 is greater than the first preset angle a1, and it is determined that the earphone is rotated to the control range of volume adjustment and still plays the audio content at the first volume.

When the angle of the earphone rotated (the angle between the current posture and the initial posture of the earphone) is larger than the first preset angle a1, an alarm sound can be sent to the user by the speaker to inform the user that the earphone has been rotated to the range of controlling the volume adjustment.

And 606, keeping the first earphone at the second posture in the preset time period, and playing the audio content at the second volume.

It is understood that when the rotation of the headphone is stopped, the parameters of the attitude information continuously acquired by the processor are not changed, and thus, it may be set to process whether or not a plurality of consecutive adjacent attitudes are the same, thereby improving the accuracy of the determination.

It should be noted that the same in the present embodiment may include approximately the same. For example, whether the two angles are the same may be determined by setting the data within a certain threshold range (e.g., the two angles are within 5 °), i.e., the two angles are considered to be the same. Therefore, when the detection data or the calculated value of the sensor has errors, whether the earphone stops rotating or not can still be identified. The invariance referred to in this embodiment may comprise an approximate invariance. For example, whether two successively acquired pose information are unchanged is determined, and the difference value of the data is set to be within a certain threshold, that is, the pose information is regarded as unchanged.

Further, the processor determines a second volume V1 according to the initial volume V0 and the adjustment parameter of the angle D2 by which the earphone is turned, wherein the second volume V1 is the volume value adjusted according to the variation N1.

Specifically, the processor may calculate the change amount of the sound volume N1 ═ D2-a1)/X according to the formula N ═ D-a 1)/X. Wherein, the variation N1 is a volume variation value obtained according to the adjustment parameter of D2 and a preset algorithm, X is a volume adjustment threshold, i.e. a unit variation of the volume, (D-a1) adjusts the volume once per variation X. The second sound volume at this time is V1 ═ V0+ N1.

Note that X is set before the earphone is shipped from the factory. The value of X can be obtained by sampling the operation habit of the user in a large quantity and then normally distributing.

The user can also be provided with a modification inlet to customize the value of X by the user

The processor adjusts the headphone volume to a second volume V1 through the audio module.

Step 607, in response to the second operation, turning off the volume adjustment function.

It should be noted that the second operation of the earphone by the user may specifically be one of double-click on the earphone, long-press on the earphone, light-pinch on the earphone, or a voice command, or may be to start the timer T when starting the volume adjustment function, automatically turn off the volume adjustment function after a preset time of 10 seconds, or may be to start the volume adjustment function by long-press/pinch on the earphone, rotate the earphone in a state of long-press/pinch on the earphone to adjust the volume, and turn off the volume adjustment function after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

In this embodiment, a complete volume adjustment process is illustrated for convenience of description, but the processor may receive a second operation from the user after entering the volume adjustment state and before any step, and the earphone turns off the volume adjustment function.

It should be noted that the term acquiring in this embodiment may include directly receiving data, and may also include acquiring data from existing data through calculation, judgment, confirmation, selection, and the like.

It will be appreciated that the above method can be used to adjust the volume whether the user wears the headset in one or both ears. Further, when worn by both ears, one earphone receiving the first operation may be set to adjust the volume, and the other earphone may not be simultaneously used to adjust the volume. Alternatively, one earphone may be set to act as an increase in volume and the other earphone may be set to act as a decrease in volume when worn binaural. Or, under the scene that two people share the same pair of earphones, the two earphones can respectively and independently adjust the volume, and the using effect under the scene is optimized.

The following describes the process of increasing the volume of the earphones in detail by taking the example of using two earphones to adjust the volume up.

As shown in fig. 13A, the proximity light sensor detects that the first and second earphones are worn by the user, the first and second earphones playing audio content from the same device at a first volume V0.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The same device may be a terminal device that establishes a connection relationship with the first earphone and the second earphone, such as a handheld device, a vehicle-mounted device, a wearable device, a computing device, or other devices with wireless communication functions, or the earphone itself may be used as the terminal device.

The audio content may include music, voice over speech, sound recording, video and audio, etc., but is not limited thereto

As shown in fig. 13B, after the acceleration sensor detects the double-click operation of the first headphone by the user, the headphone starts the volume adjustment function. After the earphone starts the volume adjusting function, the acceleration sensor detects the initial posture Pl-of the first earphone and sends the posture information to the processor, and the wireless communication module receives the posture information of the initial posture Pr-of the second earphone and sends the initial posture Pr-of the second earphone to the processor.

As shown in fig. 13C, the head posture of the user may change in the moving state, the binaural earphone moves along with the head of the user, and when no external force is applied to the earphone, the combination of the binaural earphone and the head is approximately a rigid body, and the first earphone and the second earphone may be regarded as two points of the rigid body whose relative postures are not changed, so that the posture changes of the first earphone and the second earphone are approximately equal, that is, when the binaural earphone is not rotated by the user, the first angle Dl at which the first earphone is rotated is approximately equal to the second angle Dr at which the second earphone is rotated.

Specifically, Dl is a change angle of the first headphone (including a change angle caused by the head posture and a change angle adjusted by the user by rotating the headphone), and if no external force is applied to the headphone (the external force means a force applied by the user by rotating the headphone with a hand), Dl is an angle between the initial posture Pl-of the first headphone and the posture Pl + of the first headphone, and the posture Pl + of the first headphone is the posture of the first headphone changed by the change of the head posture. Dr is the change angle of the second earphone (including the change angle caused by the change of the head posture and the change angle adjusted by the rotation of the earphone by the user), and if no external force is applied to the earphone, Dr is the angle between the initial posture Pr < - > of the second earphone and the posture Pr < + > of the second earphone, and the posture Pl < + > of the second earphone is the posture of the second earphone changed by the change of the head posture.

As shown in fig. 13D, the first earpiece is rotated from Pl + to a target posture Pl1 of the first earpiece, the acceleration sensor sends the posture parameter of Pl1 to the processor, the processor calculates a first angle Dl of the first earpiece rotated according to the posture parameters of Pl1 and Pl, Dl being an angle between Pl-and Pl1, and further calculates an angle Dlr ═ Dl-Dr of the first earpiece rotated by the user, Dlr being a rotation angle of the first earpiece relative to the second earpiece. The processor calculates the volume change amount N1-Dlr/X according to the formula N-D/X, and then calculates the second volume V1 according to V0 and N1, and V1-V0 + N1. The processor adjusts the volume through the audio module to V1, at which point the headphone volume is adjusted to V1. X is the volume adjustment threshold, i.e., Dlr the volume is adjusted by one every change X.

It is understood that the head posture change and the user rotation earphone adjustment angle may occur simultaneously, when the user rotates the first earphone but does not rotate the second earphone, the second angle Dr at which the second earphone is rotated is the change angle generated by the earphone due to the head posture change, and the change angle Dlr at which the user actually rotates the earphone can be obtained by subtracting the angle Dr at which the head posture change causes the earphone change from the change angle Dl of the first earphone according to the above algorithm.

If the adjusted volume is too small, the volume needs to be increased continuously, and the first earphone can be rotated continuously. The specific implementation refers to the above procedure.

The following describes the process of reducing the volume of the earphones in detail by taking the example of using two earphones to reduce the volume.

As shown in fig. 13E, after the earphone starts the volume adjustment function, the second earphone is rotated from Pr + to the target posture Pr1 of the second earphone, the acceleration sensor sends the posture parameter of Pr1 to the processor, the processor calculates Dr according to the posture parameters of Pr1 and Pr-, Dr is an angle between Pr-and Pr1, and further calculates the angle Drl that the second earphone is rotated by the user to be Dr-Dl, Drl is the rotation angle of the second earphone relative to the first earphone. The processor calculates the volume change amount N2-Drl/X according to the formula N-D/X, and then calculates the second volume V2 according to V0 and N2, and V2-V0-N2. The processor adjusts the volume through the audio module to V2, at which point the headphone volume is adjusted to V2.

Referring to fig. 14, fig. 14 is a flowchart illustrating a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

Step 701, confirming that the first earphone and the second earphone are worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after the blue-ear earphones are worn by the two ears of a user, the light entering the near light sensor can be blocked by the ears of the user, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphones are in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

At step 702, the first earpiece and the second earpiece play audio content from the same device at a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The same device may be a terminal device that establishes a connection relationship with the first earphone and the second earphone, such as a handheld device, a vehicle-mounted device, a wearable device, a computing device, or other devices with wireless communication functions, or the earphone itself may be used as the terminal device.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

Step 703, in response to a first operation of the first earphone by the user, starting a volume adjustment function.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

The processor sends an activation detection instruction to a second sensor (e.g., an acceleration sensor). The start detection instruction may start periodic detection (e.g., once every time t 1) for controlling the second sensor to start detecting the pose of the headset and send the detected pose information of the headset to the processor.

It can be understood that the second sensor may also be in an operating state before receiving the above-mentioned start detection instruction, that is, detecting the posture information of the headset.

The processor obtains the initial posture Pl-of the first earphone according to the posture information of the first earphone. Wherein the initial posture Pl-is the posture of the first earphone responding to the first operation; and acquiring the initial posture Pr-of the second earphone according to the posture information of the second earphone. Wherein the initial posture Pr < - > is the posture of the second earphone when responding to the first operation.

Step 704, detecting the rotation of the first earphone and the second earphone by the user; wherein the first earphone is rotated by a first angle and the second earphone is rotated by a second angle.

The processor acquires the posture Pl1 of the first earphone after rotating according to the posture information of the first earphone, and calculates a first angle Dl of the first earphone after rotating according to the posture parameters Pl1 and Pl-, wherein Dl is an angle between Pl and Pl 1; and acquiring the rotating attitude Pr + of the second earphone according to the attitude information of the second earphone, and calculating a rotating second angle Dr of the second earphone according to Pr < - > and Pr +.

Step 705, if the first angle is different from the second angle, playing the audio content with the second volume. The first volume is different from the second volume.

Specifically, the processor confirms that Dl is different from Dr, and further calculates an angle Dlr ≠ Dl-Dr of the first earphone rotated by the user, where Dl ≠ Dr and Dlr is a rotation angle of the first earphone relative to the second earphone. The processor calculates the volume change amount N1-Dlr/X according to the formula N-D/X, and then calculates the second volume V1 according to V0 and N1, and V1-V0 + N1.

The processor adjusts the volume of the earphone to a second volume through the audio module, so that the earphone plays audio contents at the second volume. The first volume is different from the second volume.

It should be noted that the differences described in the present embodiment may include approximate differences. For example, whether the two angles are different may be determined by setting the difference between the data to exceed a certain threshold (for example, the two angles differ by 5 ° or more), that is, the two angles are considered to be different. Therefore, under the condition that the detection data or the calculated value of the sensor has errors, whether the earphone is manually rotated by the user can still be identified.

In some embodiments, if the first angle is different from the second angle, and a difference between the first angle and the second angle is greater than a first preset angle, the audio content is played at a second volume. That is, except the condition that Dl is different from Dr, Dlr which is larger than the first preset angle A1 is required to be satisfied to adjust the volume according to the angle of the first earphone rotated by the user, so that the intention of adjusting the volume by the user can be accurately identified, the volume change caused by mistaken touch or misoperation is reduced, and the experience of the user is optimized.

When the angle Dlr that the earphone is manually rotated by the user is greater than the first preset angle a1, an alert tone may be sent to the user by the speaker to inform the user that the earphone has been rotated to the range for controlling the volume adjustment.

And step 706, in response to a second operation of the first earphone by the user, turning off the volume adjusting function.

It should be noted that the second operation of the user on the first earphone may be specifically one of a double-click earphone, a long-press earphone, a light-pinch earphone, or a voice command, or when the volume adjustment function is started, the timer T is started, the volume adjustment function is automatically turned off after a preset time of 10 seconds, or the volume adjustment function is started by long-press/pinch, the earphone is rotated in a state of long-press/pinch, so as to adjust the volume, and the volume adjustment function is turned off after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

In this embodiment, a complete volume adjustment process is illustrated for convenience of description, but the processor may receive a second operation from the user after entering the volume adjustment state and before any step, and the earphone turns off the volume adjustment function.

According to the implementation mode, when the two earphones are used for adjusting the volume, the angle used for calculating the volume change N is the actual rotating angle of the user, namely the angle obtained by subtracting the rotating angle of the other earphone along with the change of the head posture from the total changing angle of the rotated earphone.

On the other hand, the control method of the wireless headset may be as shown in fig. 6, 8, 10, and 12, where the processor sets the adjustment parameter to be a positive value or a negative value according to whether the direction in which the user turns the headset is a positive direction or a negative direction, so as to increase the volume or decrease the volume accordingly; as also illustrated in fig. 14, the processor may increase or decrease the volume accordingly depending on whether the user turns the headset to be the first headset or the second headset. Specifically, after the volume adjustment function is started, the user rotates the first earphone, and the second volume is the sum of the initial volume and the volume change amount; when the volume adjusting function is started, the user rotates the second earphone, and the second volume is the difference between the initial volume and the volume change.

It is understood that the present embodiment is not limited to the first earphone being a left-ear earphone or a right-ear earphone (correspondingly, the second earphone being a right-ear earphone or a left-ear earphone).

As an extension of the above embodiment, as shown in fig. 15A, the first earphone is rotated from Pl + to the first posture Pl1 of the first earphone, the acceleration sensor sends the posture information of Pl1 to the processor, the processor calculates a first angle Dl of the first earphone being rotated according to the posture parameters of Pl1 and Pl, Dl being an angle between Pl-and Pl1, and further calculates a first angle Dlr ═ Dl-Dr of the first earphone being rotated by the user's hand, Dlr being a rotation angle of the first earphone relative to the second earphone. The processor confirms Dlr is greater than the first preset angle A1 and starts a timer T1.

As shown in fig. 15B, the first headphone stays in the first posture Pl1, and the processor turns up a volume through the audio module every M milliseconds after T1 increases. M is the volume adjustment duration, i.e., every M milliseconds T1 increases, the volume is adjusted by one.

As shown in fig. 15C, the first earpiece is rotated to the second pose Pl2, and the processor calculates the angle Dlr by which the first earpiece is rotated by the user. The processor confirms Dlr is less than the second preset angle a 2. The processor controls T1 to stop and return to zero and the volume no longer changes.

Referring to fig. 16, fig. 16 is a flowchart illustrating a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

step 801, confirming that the first earphone and the second earphone are worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after the blue-ear earphones are worn by the two ears of a user, the light entering the near light sensor can be blocked by the ears of the user, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphones are in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

In step 802, a first earpiece and a second earpiece play audio content from the same device at a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The same device may be a terminal device that establishes a connection relationship with the first earphone and the second earphone, such as a handheld device, a vehicle-mounted device, a wearable device, a computing device, or other devices with wireless communication functions, or the earphone itself may be used as the terminal device.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

Step 803, in response to a first operation of the first earphone by the user, a volume adjustment function is started.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

The processor sends an activation detection instruction to a second sensor (e.g., an acceleration sensor). The start detection instruction may start periodic detection (e.g., once every time t 1) for controlling the second sensor to start detecting the pose of the headset and send the detected pose information of the headset to the processor.

It can be understood that the second sensor may also be in an operating state before receiving the above-mentioned start detection instruction, that is, detecting the posture information of the headset.

The processor obtains the initial posture Pl-of the first earphone according to the posture information of the first earphone. Wherein the initial posture Pl-is the posture of the first earphone responding to the first operation; and acquiring the initial posture Pr-of the second earphone according to the posture information of the second earphone. Wherein the initial posture Pr < - > is the posture of the second earphone when responding to the first operation.

Step 804, detecting the rotation of the first earphone and the second earphone by the user; wherein the first earphone is rotated by a first angle and the second earphone is rotated by a second angle.

The processor acquires the posture Pl1 of the first earphone after rotating according to the posture information of the first earphone, and calculates a first angle Dl of the first earphone after rotating according to the posture parameters Pl1 and Pl-, wherein Dl is an angle between Pl and Pl 1; and acquiring the rotating attitude Pr + of the second earphone according to the attitude information of the second earphone, and calculating a rotating second angle Dr of the second earphone according to Pr < - > and Pr +.

805. And if the first angle is different from the second angle and the difference value of the first angle and the second angle is larger than the first preset angle, starting a timer, determining the second volume according to the time of the timer, and playing the audio content at the second volume.

Specifically, the processor confirms that Dl is different from Dr, and further calculates an angle Dlr ≠ Dl-Dr of the first earphone rotated by the user, where Dl ≠ Dr and Dlr is a rotation angle of the first earphone relative to the second earphone. And confirming that the difference between the first angle and the second angle is greater than a first preset angle, starting a timer T1, and determining a second volume according to the time of the timer T1.

When the angle Dlr that the earphone is manually rotated by the user is greater than the first preset angle a1, an alert tone may be sent to the user by the speaker to inform the user that the earphone has been rotated to the range for controlling the volume adjustment.

Specifically, the processor determines a second volume V according to the time and the adjustment parameter of the initial volume V0 and the T1, where the second volume V is a volume value adjusted according to the volume change N.

The adjustment parameter is used for judging whether the volume is turned up or turned down, for example, the adjustment parameter is a positive value, namely the first earphone is rotated by a user, so that the volume variation N is set as an increase value; otherwise, the second earphone is rotated by the user, and the volume change amount N is set to a reduced value.

Specifically, the volume change amount N is T1/M (N is rounded to an integer), and the second volume V is V0+ N. Where M is the volume adjustment duration, that is, every M milliseconds of increase of T1, a volume change is generated.

Note that M is set before the headset leaves the factory. The value of M can be obtained by sampling the operation habit of the user in a large quantity and then normally distributing.

M can be adjusted according to the rotation speed of the earphones, for example, the speed of the user for rotating the earphones is high, M is small, the volume can be adjusted quickly, and otherwise, the rotation speed is low, and the volume can be adjusted slowly. Or, preset M can be adjusted according to the size of the rotation angle of the earphone, for example, the angle at which the user rotates the earphone is large, and M is small, so that the volume can be adjusted quickly, and otherwise, the rotation angle is small and the volume can be adjusted slowly. Or, the user can perform user-defined setting on the M on the terminal according to the use habit of the user.

It should be noted that the differences described in the present embodiment may include approximate differences. For example, whether the two angles are different may be determined by setting the difference between the data to exceed a certain threshold (for example, the two angles differ by 5 ° or more), that is, the two angles are considered to be different. Therefore, under the condition that the detection data or the calculated value of the sensor has errors, whether the earphone is manually rotated by the user can still be identified.

In some embodiments, since the processor calculates the first angle Dl by which the first earphone is rotated and the second angle Dr by which the second earphone is rotated according to the posture information obtained by the periodic detection, it may further control the control timer to stop and return to zero by determining Dlr (Dlr ═ Dl-Dr) whether the angle is smaller than the second preset angle a2, so that the volume is not adjusted within the angle interval.

And 806, in response to the second operation of the first earphone by the user, closing the volume adjusting function.

It should be noted that the second operation of the user on the first earphone may be specifically one of a double-click earphone, a long-press earphone, a light-pinch earphone, or a voice command, or when the volume adjustment function is started, the timer T is started, the volume adjustment function is automatically turned off after a preset time of 10 seconds, or the volume adjustment function is started by long-press/pinch, the earphone is rotated in a state of long-press/pinch, so as to adjust the volume, and the volume adjustment function is turned off after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

In this embodiment, a complete volume adjustment process is illustrated for convenience of description, but the processor may receive a second operation from the user after entering the volume adjustment state and before any step, and the earphone turns off the volume adjustment function.

As an extension of the above embodiment, as shown in fig. 17A, the first headphone is turned to Pl1, the acceleration sensor detects the posture information of the first headphone in real time, and the processor calculates the angle Dlr by which the headphone is turned by the user. As shown in fig. 17B, if Dlr remains unchanged for a preset time period, the processor calculates a volume change N1 corresponding to Dlr and adjusts the volume through the audio module.

Referring to fig. 18, fig. 18 is a flowchart illustrating a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

Step 901, confirming that the first earphone and the second earphone are worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after the blue-ear earphones are worn by the two ears of a user, the light entering the near light sensor can be blocked by the ears of the user, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphones are in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

Step 902, the first earpiece and the second earpiece play audio content from the same device at a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The same device may be a terminal device that establishes a connection relationship with the first earphone and the second earphone, such as a handheld device, a vehicle-mounted device, a wearable device, a computing device, or other devices with wireless communication functions, or the earphone itself may be used as the terminal device.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

Step 903, responding to a first operation of the first earphone by the user, and starting a volume adjusting function.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

The processor sends an activation detection instruction to a second sensor (e.g., an acceleration sensor). The start detection instruction may start periodic detection (e.g., once every time t 1) for controlling the second sensor to start detecting the pose of the headset and send the detected pose information of the headset to the processor.

It can be understood that the second sensor may also be in an operating state before receiving the above-mentioned start detection instruction, that is, detecting the posture information of the headset.

The processor obtains the initial posture Pl-of the first earphone according to the posture information of the first earphone. Wherein the initial posture Pl-is the posture of the first earphone responding to the first operation; and acquiring the initial posture Pr-of the second earphone according to the posture information of the second earphone. Wherein the initial posture Pr < - > is the posture of the second earphone when responding to the first operation.

Step 904, detecting the rotation of the first earphone and the second earphone by the user; wherein the first earphone is rotated by a first angle and the second earphone is rotated by a second angle.

The processor acquires the posture Pl1 of the first earphone after rotating according to the posture information of the first earphone, and calculates a first angle Dl of the first earphone after rotating according to the posture parameters Pl1 and Pl-, wherein Dl is an angle between Pl and Pl 1; and acquiring the rotating attitude Pr + of the second earphone according to the attitude information of the second earphone, and calculating a rotating second angle Dr of the second earphone according to Pr < - > and Pr +.

Step 905, if the first angle is different from the second angle, and the difference between the first angle and the second angle remains unchanged within a preset time period, playing the audio content at a second volume.

Specifically, the processor confirms that Dl is not the same as Dr, further calculates an angle Dlr ≠ Dl-Dr by which the first earphone is rotated by the user, where Dl ≠ Dr, and Dlr remains unchanged for a preset period of time.

The processor calculates the volume change amount N1-Dlr/X according to the formula N-D/X, and then calculates the second volume V1 according to V0 and N1, and V1-V0 + N1. The processor adjusts the volume of the earphone to a second volume through the audio module, so that the earphone plays audio contents at the second volume. The first volume is different from the second volume.

Note that the invariance described in the present embodiment may include an approximate invariance. For example, whether two angles acquired successively are unchanged may be determined by setting a difference between the data to be within a certain threshold (for example, the difference between the two angles is within 5 °), that is, the two angles are regarded as unchanged. Therefore, under the condition that the detection data or the calculated value of the sensor has errors, whether the earphone is manually rotated by the user can still be identified.

In some embodiments, if the first angle is different from the second angle, and a difference between the first angle and the second angle is greater than a first preset angle, and the difference between the first angle and the second angle remains unchanged for a preset time period, the audio content is played at a second volume. That is, it is necessary to satisfy Dlr that is greater than the first preset angle a1 and Dlr and adjust the volume according to the angle that the user rotated the first earphone within the preset time, so as to be favorable to accurately recognizing the intention of the user to adjust the volume, reduce the volume change caused by the mis-touch or mis-operation, and optimize the user experience.

When the angle Dlr that the earphone is manually rotated by the user is greater than the first preset angle a1, an alert tone may be sent to the user by the speaker to inform the user that the earphone has been rotated to the range for controlling the volume adjustment.

Step 906, in response to a second operation of the first earphone by the user, turning off the volume adjustment function.

It should be noted that the second operation of the user on the first earphone may be specifically one of a double-click earphone, a long-press earphone, a light-pinch earphone, or a voice command, or when the volume adjustment function is started, the timer T is started, the volume adjustment function is automatically turned off after a preset time of 10 seconds, or the volume adjustment function is started by long-press/pinch, the earphone is rotated in a state of long-press/pinch, so as to adjust the volume, and the volume adjustment function is turned off after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

In this embodiment, a complete volume adjustment process is illustrated for convenience of description, but the processor may receive a second operation from the user after entering the volume adjustment state and before any step, and the earphone turns off the volume adjustment function.

According to the implementation mode, when the two earphones are used for adjusting the volume, the angle used for calculating the volume change N is the actual rotating angle of the user, namely the angle obtained by subtracting the rotating angle of the other earphone along with the change of the head posture from the total changing angle of the rotated earphone.

As an extension of the above embodiment, as shown in fig. 19A, the first earphone is rotated from Pl + to the first posture Pl1 of the first earphone, the acceleration sensor sends the posture information of Pl1 to the processor, the processor calculates a first angle Dl of the first earphone being rotated according to the posture parameters of Pl1 and Pl, Dl being an angle between Pl-and Pl1, and further calculates a first angle Dlr ═ Dl-Dr of the first earphone being rotated by the user's hand, Dlr being a rotation angle of the first earphone relative to the second earphone. The processor confirms Dlr is greater than the first preset angle a 1.

As shown in fig. 19B, the first earpiece is rotated to the second pose Pl2, and the processor calculates the angle Dlr by which the first earpiece is rotated by the user. The processor confirms Dlr that is less than the second preset angle a2, playing the audio content at the second volume.

Referring to fig. 20, fig. 20 is a flowchart illustrating a wireless headset control method according to an embodiment of the present application, applied to the wireless headset 11 shown in fig. 1; as shown in the figure, the wireless headset control method includes:

step 1011, confirming that the first earphone and the second earphone are worn by the user.

Alternatively, the detection of the worn state of the headset may be accomplished using a proximity light sensor. Specifically, after the blue-ear earphones are worn by the two ears of a user, the light entering the near light sensor can be blocked by the ears of the user, the processor compares the received light intensity with a preset light intensity threshold value, and if the light intensity detected by the near light sensor is smaller than the preset light intensity threshold value, the processor determines that the earphones are in a wearing state.

Alternatively, the detection of the worn state of the headset may also be accomplished using an acceleration sensor. Specifically, when the headset is worn, the position of the headset may change due to shaking of the wearer, and the acceleration sensor may detect the position change. If the acceleration value detected by the acceleration sensor is greater than a preset acceleration threshold (for example, the acceleration threshold is 0), the processor may determine that the wearing state is present at this time.

Alternatively, the detection of the worn state of the headset may also be accomplished using a distance sensor. Specifically, the headset may detect whether an object is nearby using the distance sensor, thereby determining whether the headset is worn by the user. Alternatively, whether or not the earphone is worn by the user may be determined by detecting a change in capacitance value using the capacitive sensor.

It should be noted that, the method for detecting the worn state of the earphone in the embodiment of the present application is not limited, and may be implemented by referring to the prior art, and the detection of the worn state of the earphone may be completed.

At step 1012, the first earpiece and the second earpiece play audio content from the same device at a first volume.

The first volume may be an initial volume of the headset or a volume value determined after the user last adjusted the volume, and the processor may retrieve the first volume V0 of the headset from the memory.

The same device may be a terminal device that establishes a connection relationship with the first earphone and the second earphone, such as a handheld device, a vehicle-mounted device, a wearable device, a computing device, or other devices with wireless communication functions, or the earphone itself may be used as the terminal device.

The audio content may include, but is not limited to, music, voice over speech, sound recordings, video audio, and the like.

Step 1013, in response to a first operation of the first earphone by the user, starting a volume adjustment function.

It should be noted that the first operation of the user on the earphone may specifically be to double click the earphone, rotate the earphone by an angle X, press the earphone for a long time, pinch the earphone lightly, and send a voice instruction.

The first sensor for detecting the first operation may include an acceleration sensor, a capacitance sensor, a force sensor, a sound sensor, and the like.

The method for detecting the first operation differs due to the difference in the sensors used.

If the first sensor is an acceleration sensor, the first operation can be double-clicking on the earphone shell, the method for detecting the first operation is to detect an acceleration value generated when the earphone is continuously clicked twice through the acceleration sensor, and the processor judges the first operation according to the value and controls the earphone to start a volume adjusting function. Alternatively, the first operation may be the headset rotation angle X. For example, the preset rotation angle X is 45 °, and after the earphone is rotated by 45 °, a prompt sound "adjust volume" may be sent by the speaker to indicate that the earphone starts the volume adjustment function. Or when the user wears two earphones at the same time, one earphone is used for adjusting the volume, and the processor can confirm whether the earphones are rotated by the user or not by collecting the variation of the acceleration values of the two earphones, so that the user can recognize that the earphone is rotated by the user as the first operation and control the earphones to start the volume adjusting function.

If the first sensor is a capacitance sensor, the first operation can be pressing the earphone for 3 seconds, the method for detecting the first operation is to detect a capacitance change value of the earphone through the capacitance sensor, and the processor judges the first operation according to the value and time and controls the earphone to start a volume adjusting function.

If the first sensor is a force sensor, the first operation can be to pinch two earphones, the method for detecting the first operation is to detect the pressure value applied to the earphone shell through the force sensor, and the processor judges the first operation according to the value and controls the earphones to start the volume adjusting function. In some embodiments, the first operation may be a long pinch/press of the headset, and the user may rotate the headset while holding the first operation to make the volume adjustment, and the volume adjustment may be ended after releasing the headset.

If the first sensor is a sound sensor, the first operation can be a voice command 'small E, adjust volume', and the method for detecting the first operation is that a voice signal related to the volume adjustment is detected by the sound sensor, and the processor judges the first operation according to the signal and controls the earphone to start the volume adjustment function. The sound sensor may be a microphone or other sensor that can collect sound.

It should be noted that, the first operation for controlling the earphone to start the volume adjustment function and the first sensor for detecting the first operation are not limited in the embodiments of the present application, and may be implemented by referring to the prior art.

It should be noted that the activation of the volume adjustment function may be a state of the headset, and the headset may store the state information. For example, a flag may be set, e.g., the flag is set to "1", which indicates that the headset is in a volume adjustment state. In response to the first operation, the headset will modify the flag bit to a value of "1". The activation of the volume adjustment function may also be a state in which the earphone is not present, which is introduced merely for convenience of description.

The processor sends an activation detection instruction to a second sensor (e.g., an acceleration sensor). The start detection instruction may start periodic detection (e.g., once every time t 1) for controlling the second sensor to start detecting the pose of the headset and send the detected pose information of the headset to the processor.

It can be understood that the second sensor may also be in an operating state before receiving the above-mentioned start detection instruction, that is, detecting the posture information of the headset.

The processor obtains the initial posture Pl-of the first earphone according to the posture information of the first earphone. Wherein the initial posture Pl-is the posture of the first earphone responding to the first operation; and acquiring the initial posture Pr-of the second earphone according to the posture information of the second earphone. Wherein the initial posture Pr < - > is the posture of the second earphone when responding to the first operation.

Step 1014, in response to the rotation of the first earphone and the second earphone by the user, acquiring a first angle at which the first earphone is rotated and a second angle at which the second earphone is rotated; and the difference value between the first angle and the second angle is larger than a first preset angle.

The processor acquires the posture Pl1 of the first earphone after rotating according to the posture information of the first earphone, and calculates a first angle Dl of the first earphone after rotating according to the posture parameters Pl1 and Pl-, wherein Dl is an angle between Pl and Pl 1; and acquiring the rotating attitude Pr + of the second earphone according to the attitude information of the second earphone, and calculating a rotating second angle Dr of the second earphone according to Pr < - > and Pr +. Further, the processor calculates an angle Dlr ═ Dl-Dr by which the first earpiece is rotated by the user, wherein Dlr is greater than the first preset angle a 1.

When the difference between the first angle and the second angle is greater than the first preset angle a1, a warning tone may be sent to the user by the speaker to inform the user that the earphone has been rotated to the range for controlling the volume adjustment.

Step 1015, in response to the rotation of the first earphone and the second earphone by the user, acquiring a third angle at which the first earphone is rotated and a fourth angle at which the second earphone is rotated; and the difference value of the third angle and the fourth angle is smaller than a second preset angle, and the audio content is played at a second volume.

The processor acquires the posture Pl2 of the first earphone after rotating according to the posture information of the first earphone, and calculates a third angle Dl of the first earphone after rotating according to the posture parameters Pl2 and Pl-, wherein Dl is an angle between Pl and Pl 2; and acquiring the rotating attitude Pr + of the second earphone according to the attitude information of the second earphone, and calculating the rotating fourth angle Dr of the second earphone according to Pr < - > and Pr +.

The processor confirms that the difference Dlr between the third angle Dl and the fourth angle Dr is smaller than the second preset angle a2, and plays the audio content at the second volume.

Specifically, the processor calculates the angle Dlr that the first earphone is rotated by the user as Dl-Dr, Dlr is the angle of rotation of the first earphone relative to the second earphone. The processor calculates the volume change amount N1-Dlr/X according to the formula N-D/X, and then calculates the second volume V1 according to V0 and N1, and V1-V0 + N1.

The processor adjusts the volume of the earphone to a second volume through the audio module, so that the earphone plays audio contents at the second volume.

Step 1016, turning off the volume adjustment function in response to a second operation of the first headset by the user.

It should be noted that the second operation of the user on the first earphone may be specifically one of a double-click earphone, a long-press earphone, a light-pinch earphone, or a voice command, or when the volume adjustment function is started, the timer T is started, the volume adjustment function is automatically turned off after a preset time of 10 seconds, or the volume adjustment function is started by long-press/pinch, the earphone is rotated in a state of long-press/pinch, so as to adjust the volume, and the volume adjustment function is turned off after the user releases the earphone.

The method for detecting the second operation is different due to the difference in the sensors used. The specific method for detecting the second operation may refer to the sensors and methods listed for the first sensor for detecting the first operation.

It should be noted that, in the embodiment of the present application, the second operation for controlling the earphone to turn off the volume adjustment function and the sensor for detecting the second operation are not limited, and may be implemented by referring to the prior art.

In this embodiment, a complete volume adjustment process is illustrated for convenience of description, but the processor may receive a second operation from the user after entering the volume adjustment state and before any step, and the earphone turns off the volume adjustment function.

In this embodiment of the application, the process of calculating the angle based on the acceleration value detected by the acceleration sensor may be performed by a bluetooth headset, may also be performed by a mobile phone, and may also be performed by the bluetooth headset and the mobile phone in cooperation. Further, in a scene that the user wears the earphones at both ears, the earphone triggering the volume adjustment mode can be set as a calculation subject; a main earphone connected with Bluetooth is used as a calculation main body; a slave earphone connected by Bluetooth is used as a calculation main body; one earphone with low electric quantity is used as a calculation main body, and the like. In the present embodiment, the subject of the calculation is not limited.

For example, the corresponding angle algorithm may be pre-stored in a memory within the bluetooth headset. Then, the acceleration sensor can send data to a processor in the Bluetooth headset in real time, and the processor performs angle calculation by using an operation program in a memory to identify the specific volume adjustment intention of the user.

Of course, the bluetooth headset may also send the data detected by the sensor to the mobile phone, and the mobile phone may process/calculate the data to determine the second volume.

83页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:自动校准入耳式耳机

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类