Headphone working mode switching method, headphones, readable storage media and software products
By acquiring head posture data to adjust the state of the headphone's ventilation valve and active noise cancellation module, the problem of traditional headphones struggling to balance noise cancellation and comfort, as well as cumbersome operation, is solved, achieving convenient mode switching and efficient noise cancellation.
Patent Information
- Application Number
- CN202411707689.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2026-05-26
AI Technical Summary
Traditional headphones struggle to balance noise cancellation and comfort, and switching between operating modes is cumbersome.
By acquiring head posture data, the working state of the venting valve and active noise cancellation module is adjusted to switch headphone modes, including opening, closing, or partially opening the venting valve, and turning the active noise cancellation module on or off.
It achieves noise cancellation and wearing comfort in different scenarios, simplifies the mode switching process, and improves the ease of operation and switching efficiency.
Smart Images

Figure CN122093700A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer control technology, and in particular to a method for switching working modes of headphones, headphones, computer-readable storage media, and computer program products. Background Technology
[0002] Currently, Bluetooth headphones are becoming increasingly popular and are now common electronic products in daily life. Traditional in-ear headphones fit snugly into the ear canal, enabling active noise cancellation, but they are prone to the "ear-blocking effect" and have poor wearing comfort. Semi-in-ear or open-back headphones reduce the ear-blocking effect and improve wearing comfort, but they cannot achieve active noise cancellation. In short, traditional headphones struggle to balance noise cancellation and comfort. Furthermore, headphones offer a wider range of operating modes, such as active noise cancellation and track skipping, but switching between these modes on traditional headphones requires using headphone buttons or a mobile app, which is relatively cumbersome. Summary of the Invention
[0003] Therefore, it is necessary to provide a method for switching working modes of headphones, headphones, computer-readable storage media, and computer program products that are easy to operate and have noise reduction and / or wearing comfort, in response to the above-mentioned technical problems.
[0004] In a first aspect, this application provides a method for switching the working mode of headphones, applied to headphones, the headphones including a vent valve and an active noise cancellation module; the method includes:
[0005] Obtain head pose data;
[0006] The working state of the ventilation valve and the working state of the active noise reduction module are adjusted according to the head posture data to switch the current working mode.
[0007] The ventilation valve is used to allow or restrict communication between the external auditory canal and the external environment; the active noise reduction module reduces ambient noise by using anti-phase noise.
[0008] In one embodiment, the head posture data includes first head posture data or second head posture data; the working state of the ventilation valve includes one of being closed, open, and partially open; and the working state of the active noise cancellation module is either closed or open.
[0009] In one embodiment, the step of adjusting the operating state of the ventilation valve and the operating state of the active noise cancellation module based on the head posture data to switch the current operating mode includes at least one of the following:
[0010] If the head posture data is the first head posture data and the current working mode is the first working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the first working mode to the second working mode.
[0011] If the head posture data is the first head posture data and the current working mode is not the first working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the current working mode to the first working mode.
[0012] In one embodiment, when the head posture data is the second head posture data and the current working mode is the third working mode, the working state of the ventilation valve and the working state of the active noise reduction module are adjusted to switch the third working mode to the fourth working mode.
[0013] If the head posture data is the second head posture data and the current working mode is not the third working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the current working mode to the third working mode.
[0014] In one embodiment, the first operating mode is that the vent valve is closed and the active noise reduction module is open; the second operating mode is that the vent valve is open and the active noise reduction module is closed.
[0015] In one embodiment, adjusting the operating state of the vent valve and the operating state of the active noise cancellation module to switch the first operating mode to the second operating mode includes:
[0016] The active noise cancellation module sends a noise cancellation shutdown command to the active noise cancellation module and a vent valve opening command to the vent valve; the vent valve is used to perform an opening operation according to the vent valve opening command; the active noise cancellation module is used to perform a shutdown operation according to the noise cancellation shutdown command to switch the first working mode to the second working mode.
[0017] In one embodiment, adjusting the operating state of the vent valve and the operating state of the active noise cancellation module to switch the current operating mode to the first operating mode includes:
[0018] The active noise cancellation module sends a noise cancellation activation command to the active noise cancellation module and a vent valve closure command to the vent valve; the vent valve is used to perform a closure operation according to the vent valve closure command; the active noise cancellation module is used to perform an activation operation according to the noise cancellation activation command to switch the current working mode to the first working mode.
[0019] In one embodiment, the third operating mode is that the vent valve is in a closed state and the active noise reduction module is in a closed state; the fourth operating mode is that the vent valve is in a semi-open state and the active noise reduction module is in a closed state.
[0020] In one embodiment, adjusting the operating state of the vent valve and the operating state of the active noise cancellation module to switch the third operating mode to the fourth operating mode includes:
[0021] The active noise cancellation module sends a noise cancellation shutdown command to the active noise cancellation module and a vent valve half-open command to the vent valve; the vent valve is used to perform a half-open operation according to the vent valve half-open command; the active noise cancellation module is used to perform a shutdown operation according to the noise cancellation shutdown command to switch the third working mode to the fourth working mode.
[0022] In one embodiment, adjusting the operating state of the vent valve and the operating state of the active noise cancellation module switches the current operating mode to the third operating mode, including:
[0023] The active noise cancellation module sends a noise cancellation shutdown command to the active noise cancellation module and a vent valve shutdown command to the vent valve; the vent valve is used to perform a shutdown operation according to the vent valve shutdown command; the active noise cancellation module is used to perform a shutdown operation according to the noise cancellation shutdown command to switch the current working mode to the third working mode.
[0024] In one embodiment, the first head posture data includes any one of nodding, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, or a combination of nodding and turning the head; the second head posture data includes any one of shaking the head, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, or a combination of shaking the head and turning the head; wherein the first head posture data and the second head posture data are different.
[0025] In one embodiment, the first head posture data includes nodding data; the second head posture data includes head shaking data.
[0026] In one embodiment, before switching the current operating mode by adjusting the operating state of the ventilation valve and the operating state of the active noise cancellation module based on the head posture data, the method further includes:
[0027] Get the current call status;
[0028] If the current call status is active, then call control is performed based on the head posture data.
[0029] In one embodiment, the head posture data includes first head posture data or second head posture data; the call control based on the head posture data includes:
[0030] Call control is performed based on the first head posture data or the second head posture data.
[0031] In one embodiment, the first head posture data is nodding data; the second head posture data is shaking data; the existence of a call state includes incoming call or in-call; if the current call state is an existing call state, then call control is performed based on the head posture data, including at least one of the following:
[0032] If the current call status is incoming, answer the current call based on the nodding data;
[0033] If the current call status is incoming, reject the current call based on the head shaking data;
[0034] If the current call status is "in a call", the current call is terminated based on the head shake data.
[0035] Secondly, this application also provides an earphone, the earphone comprising:
[0036] Sensors are used to collect head posture data;
[0037] Memory, used to store computer programs;
[0038] A processor for implementing the steps of the above-described method when executing the computer program.
[0039] Thirdly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0040] Fourthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0041] The aforementioned headphone operating mode switching method, headphones, computer-readable storage medium, and computer program product are applied to headphones, which include a vent valve and an active noise cancellation module. By acquiring head posture data, the operating states of the vent valve and the active noise cancellation module are adjusted according to the head posture data to switch the current operating mode. Opening the vent valve allows communication between the ear canal and the external environment; external airflow can enter the ear canal through the vent valve, or airflow from the ear canal can enter the external environment through the vent valve, reducing or eliminating the ear blockage effect and achieving wearing comfort. Closing the vent valve restricts communication between the ear canal and the external environment, i.e., the ear canal and the external environment are isolated, which avoids or reduces the impact of external airflow on the internal components and sound quality of the in-ear wireless headphones, and also prevents environmental noise from entering the ear canal through the vent valve, thus providing a certain degree of noise isolation. Activating the active noise cancellation module reduces environmental noise through phase-inverse noise cancellation, achieving active noise cancellation; disabling the active noise cancellation module does not reduce external environmental noise. The operating status of the ventilation valve and the active noise cancellation module can be adjusted solely through head movements, without touching the headphones or using a mobile device application to adjust these settings, thus switching headphone modes. This greatly simplifies the mode switching process, improves ease of use and efficiency, and also enables the headphones to have noise cancellation and / or wearing comfort, meeting users' needs in different scenarios. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 This is a flowchart illustrating a headphone working mode switching method in one embodiment;
[0044] Figure 2 This is a flowchart illustrating the process of switching working modes based on head posture data in one embodiment.
[0045] Figure 3 This is a flowchart illustrating the headphone working mode switching method in another embodiment;
[0046] Figure 4 This is a schematic diagram illustrating the process of controlling a call based on head posture data in one embodiment;
[0047] Figure 5This is a flowchart illustrating the process of controlling a call and switching modes by nodding twice in one embodiment.
[0048] Figure 6 This is a flowchart illustrating the process of controlling a call and switching modes by shaking the head twice, as described in another embodiment. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0050] In one embodiment, such as Figure 1 As shown, a method for switching the working mode of headphones is provided. This embodiment illustrates the application of this method to headphones. The headphones include, but are not limited to, smart headphones, Bluetooth headphones, bone conduction headphones, in-ear headphones, semi-in-ear headphones, over-ear headphones, etc. In this embodiment, the method includes the following steps:
[0051] Step S102: Obtain head pose data.
[0052] Head posture data can be posture data generated by head movement. Head posture data can include nodding, shaking, flipping, tilting the head, turning the head, tilting the head down, a certain trajectory of head movement, a combination of nodding and turning the head, etc.
[0053] Optionally, the headphones are equipped with sensors that collect raw data. The processor then uses intelligent algorithms to generate quaternion or Euler angle data, thereby obtaining the user's head posture data, such as nodding, shaking, and other head posture data. The sensors can be gyroscope sensors, six-axis sensors, or nine-axis sensors.
[0054] Step S104: Adjust the working state of the ventilation valve and the active noise reduction module according to the head posture data to switch the current working mode.
[0055] The ventilation valve is used to allow or restrict communication between the external auditory canal and the external environment; the active noise reduction module reduces ambient noise by using anti-phase noise.
[0056] Optionally, the headphones adjust the operating states of the ventilation valve and the active noise cancellation module based on the acquired head posture data, so that the ventilation valve is in an open, partially open, or closed state; and the active noise cancellation module is in an on or off state. By adjusting the different operating states of the ventilation valve and the active noise cancellation module, the headphones switch their current operating mode. For example, if the current operating mode is transparency mode, and the headphones acquire head posture data of the user wearing the headphones, such as head nodding data, then the headphones close the ventilation valve and turn on the active noise cancellation module based on the head nodding data, switching from transparency mode to noise cancellation mode; or if the current operating mode is noise cancellation mode, and the headphones acquire head posture data of the user wearing the headphones, such as head nodding data, then the headphones open the ventilation valve and turn off the active noise cancellation module based on the head nodding data, switching from noise cancellation mode to transparency mode. The head nodding data can be one nod, two nods, or three nods.
[0057] It should be noted that the different operating states of the vent valve and the active noise cancellation module determine the different operating modes of the headphones. Adjusting the operating states of the vent valve and the active noise cancellation module allows switching between the current operating modes.
[0058] The above-described headphone working mode switching method is applied to headphones, which include a vent valve and an active noise cancellation module. It acquires head posture data and adjusts the working states of the vent valve and the active noise cancellation module based on this data to switch the current working mode. Opening the vent valve allows communication between the ear canal and the external environment; external airflow can enter the ear canal through the vent valve, or airflow from the ear canal can enter the external environment through the vent valve, reducing or eliminating the ear blockage effect and achieving wearing comfort. Closing the vent valve restricts communication between the ear canal and the external environment, isolating the ear canal and the external environment. This avoids or reduces the impact of external airflow on the internal components and sound quality of the in-ear wireless headphones, and also prevents environmental noise from entering the ear canal through the vent valve, thus providing some noise isolation. Activating the active noise cancellation module reduces environmental noise through phase-inverse noise cancellation, achieving active noise cancellation. Disabling the active noise cancellation module does not reduce external environmental noise. The operating status of the ventilation valve and the active noise cancellation module can be adjusted simply by head movements, without touching the headphones or through a mobile device application, thereby switching headphone modes. This greatly simplifies the operation process of switching modes, improves the convenience of operation, and increases the efficiency of headphone mode switching. It also allows the headphones to balance noise cancellation and wearing comfort, meeting the user's needs in different scenarios.
[0059] In the above embodiments, the head posture data includes first head posture data or second head posture data; the working state of the ventilation valve includes one of being in a closed state, an open state, and a semi-open state; the working state of the active noise cancellation module is either in a closed state or an open state.
[0060] Optionally, the headphones can adjust the working state of the ventilation valve and the working state of the active noise cancellation module based on the first head posture data or the second head posture data to switch the current working mode.
[0061] Optionally, the headphones can adjust the ventilation valve to be closed and the active noise cancellation module to be turned on based on the first head posture data, thus switching the current working mode.
[0062] Optionally, the headphones can also switch the current working mode by adjusting the ventilation valve to be open and the active noise cancellation module to be closed based on the second head posture data.
[0063] It should be noted that the three working states of the ventilation valve and the two working states of the active noise reduction module can be combined arbitrarily and adjusted using the first head posture data or the second head posture data.
[0064] In this embodiment, the three working states of the ventilation valve and the two working states of the active noise cancellation module are adjusted according to the first head posture data or the second head posture data. That is, the current working mode is determined by adjusting the working states of the ventilation valve and the active noise cancellation module through different head posture data, and the switching is performed. This simplifies the switching process, improves the convenience of operation, and improves the efficiency of headphone mode switching. It also allows the headphones to balance noise cancellation and wearing comfort, meeting the user's needs in different scenarios.
[0065] In one exemplary embodiment, such as Figure 2 As shown, the working state of the ventilation valve and the active noise cancellation module are adjusted according to the head posture data. The switching of the current working mode includes at least one of the following in steps S202 to S208:
[0066] In one exemplary embodiment, such as Figure 2 As shown, a method for switching headphone operating modes is provided, which adjusts the operating state of the ventilation valve and the operating state of the active noise cancellation module according to head posture data to switch the current operating mode, including at least one of the following steps S202 to S204:
[0067] In step S202, if the head posture data is the first head posture data and the current working mode is the first working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the first working mode to the second working mode.
[0068] The first head posture data includes any one of the following: nodding, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, or a combination of nodding and turning the head. Nodding can include one nod, two nods, or three nods; raising the head can include one nod, two nods, or three nods, or a combination of nodding and raising the head, etc. The first working mode can be a noise reduction mode, and the second working mode can be a transparency mode; conversely, the first working mode can be a transparency mode, and the second working mode can be a noise reduction mode.
[0069] Optionally, if the first head posture data is two nods, three nods, two head raises, or three head raises, and the current working mode is noise reduction mode, then adjust the ventilation valve to be in the open state and the active noise reduction model to be in the closed state, and switch the noise reduction mode to the transparency mode.
[0070] Optionally, if the first head posture data is two nods, three nods, two head raises, or three head raises, and the current working mode is the transparent mode, then adjust the ventilation valve to be closed and the active noise reduction model to be on, and switch the transparent mode to the noise reduction mode.
[0071] Step S204: If the head posture data is the first head posture data and the current working mode is not the first working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the current working mode to the first working mode.
[0072] Optionally, when the head posture data is any of the aforementioned first head posture data, such as nodding twice, nodding three times, or raising the head twice or raising the head three times, and the current working mode is not noise reduction mode, that is, the current working mode can be transparency mode, music mode, or comfort mode, then adjust the ventilation valve to be in the closed state and the active noise reduction model to be in the open state, and switch the current working mode to noise reduction mode.
[0073] Optionally, if the head posture data is any of the aforementioned first head posture data, such as nodding twice, nodding three times, or raising the head twice or raising the head three times, and the current working mode is not the transparent mode, then adjust the ventilation valve to be in the open state and the active noise reduction model to be in the closed state, and switch the current working mode to the transparent mode.
[0074] In this embodiment, the current working mode is switched by using the first head posture data. By adjusting the working state of the ventilation valve and the active noise reduction module using the first head posture data, the first working mode can be switched to the second working mode, or a non-first working mode can be switched to the first working mode. Compared with the above-mentioned switching using multiple head posture data, the first head posture data has fewer data points, which is convenient for users to operate. Users do not need to remember too many head posture data and the correspondence between mode switching, making the operation more efficient and convenient.
[0075] In one exemplary embodiment, such as Figure 2 As shown, a method for switching headphone operating modes is provided, which adjusts the operating state of the vent valve and the operating state of the active noise cancellation module according to head posture data to switch the current operating mode, including at least one of the following steps S206 to S208:
[0076] In step S206, if the head posture data is the second head posture data and the current working mode is the third working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the third working mode to the fourth working mode.
[0077] The second head posture data includes any one of the following: head shaking, head turning, head flicking, head raising, head lowering, head movement along a certain trajectory, or a combination of head shaking and head turning. Head shaking can include one shake, two shakes, three shakes, two consecutive shakes to the left, two consecutive shakes to the right, or other combinations of head shaking movements. The third working mode can be music mode, and the fourth working mode can be comfort mode; conversely, the third working mode can be comfort mode, and the fourth working mode can be music mode.
[0078] Optionally, when the head posture data is any of the above-mentioned second head posture data, such as shaking the head twice, shaking the head three times, or shaking the head twice to the left, shaking the head twice to the right, or other combinations of head shaking actions, and the current working mode is music mode, then adjust the ventilation valve to a semi-open state and the active noise cancellation model to a closed state, and switch the music mode to comfort mode.
[0079] Optionally, when the head posture data is any of the above-mentioned second head posture data, such as shaking the head twice, shaking the head three times, or shaking the head twice to the left, shaking the head twice to the right, or other combinations of head shaking actions, and the current working mode is comfort mode, then adjust the ventilation valve to be in the closed state and the active noise cancellation model to be in the closed state, and switch the comfort mode to music mode.
[0080] In step S208, if the head posture data is the second head posture data and the current working mode is not the third working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the current working mode to the third working mode.
[0081] Optionally, when the head posture data is any of the second head posture data mentioned above, such as shaking the head twice, shaking the head three times, or shaking the head twice to the left, shaking the head twice to the right, or other combinations of head shaking actions, and the current working mode is not music mode, it can be comfort mode, noise reduction mode, or transparency mode. In this case, the ventilation valve is turned off, the active noise reduction model is turned off, and the current working mode is switched to music mode.
[0082] Optionally, when the head posture data includes any of the above-mentioned second head posture data, such as shaking the head twice, shaking the head three times, or shaking the head twice to the left, shaking the head twice to the right, or other combinations of head shaking movements, and the current working mode is not the comfort mode, it can be the music mode, noise reduction mode, or transparency mode. In this case, the ventilation valve is adjusted to be in a half-open state, and the active noise reduction model is in a closed state, and the current working mode is switched to the comfort mode.
[0083] In this embodiment, the current working mode is switched by using the second head posture data. By adjusting the working state of the ventilation valve and the active noise reduction module using the second head posture data, the third working mode can be switched to the fourth working mode, or a non-third working mode can be switched to the third working mode. Compared with the above-mentioned switching using multiple head posture data, the second head posture data is less numerous, which is convenient for users to operate. Users do not need to remember too many head posture data and the correspondence between mode switching, making the operation more efficient and convenient.
[0084] In one exemplary embodiment, the first operating mode is that the vent valve is closed and the active noise cancellation module is on; the second operating mode is that the vent valve is on and the active noise cancellation module is off.
[0085] Optionally, the first operating mode is characterized by the ventilation valve being closed and the active noise cancellation module being activated. When the ventilation valve is closed, the connection between the external auditory canal and the external environment is restricted, effectively isolating the external auditory canal from the external environment. When the active noise cancellation module is activated, it reduces ambient noise through inverse noise, thus achieving active noise cancellation. This first operating mode can be referred to as the noise cancellation mode.
[0086] Optionally, the second operating mode is characterized by the ventilation valve being open and the active noise cancellation module being closed. Opening the ventilation valve allows communication between the external auditory canal and the external environment; external airflow can enter the external auditory canal through the ventilation valve, or airflow from the external auditory canal can enter the external environment through the ventilation valve. Closing the active noise cancellation module means that no external ambient noise is reduced. This second operating mode can be referred to as the transparency mode.
[0087] Optionally, depending on the current working mode (noise cancellation mode or transparency mode), the working state of the ventilator and the active noise cancellation module are adjusted based on the first head posture data to switch the working mode of the headphones.
[0088] In this embodiment, the working states of the ventilation valve and the active noise cancellation module are adjusted based on the first head posture data, switching between a first working mode and a second working mode, i.e., switching between a transparency mode and a noise cancellation mode. In the first working mode, the ventilation valve is in the closed state and the active noise cancellation module is in the open state, which can avoid or reduce the impact of external airflow on the internal components and sound quality of the in-ear wireless headphones, and also prevent environmental noise from entering the ear canal through the ventilation valve, thus playing a certain role in noise isolation; and by reducing environmental noise through anti-phase noise, active noise cancellation is achieved, which can quickly and conveniently complete the noise cancellation mode switching, while also allowing users to experience powerful noise cancellation in high-noise environments. The second working mode is characterized by the vent valve being open and the active noise cancellation module being closed, allowing the ear canal to connect with the external environment. External airflow can enter the ear canal through the vent valve, or airflow from the ear canal can enter the external environment through the vent valve, reducing or eliminating the ear blockage effect and achieving wearing comfort. No external environmental noise is reduced, allowing users to naturally hear external sounds (for example, in the event of danger, they can be aware of external environmental sounds and perceive the danger in time, or hear others naturally without removing the headphones while they are communicating). This enables the headphones to achieve noise cancellation and / or wearing comfort, meeting the user's needs in different scenarios.
[0089] Following the previous embodiment, adjusting the working state of the vent valve and the working state of the active noise reduction module to switch the first working mode to the second working mode includes: sending a noise reduction shutdown command to the active noise reduction module and sending a vent valve opening command to the vent valve; the vent valve is used to perform an opening operation according to the vent valve opening command; the active noise reduction module is used to perform a shutdown operation according to the noise reduction shutdown command, so as to switch the first working mode to the second working mode.
[0090] When the ventilation valve is in the open state, it means that the valve or gas passage of the ventilation valve is fully open, allowing the external auditory canal to connect with the external environment. External airflow can enter the external auditory canal through the ventilation valve, or airflow from the external auditory canal can enter the external environment through the ventilation valve. Users can naturally hear external sounds (for example, in the event of danger, they can be aware of external environmental sounds and perceive danger in time, or they can naturally hear the voices of others without removing the headphones while they are communicating), while reducing the ear blockage effect and achieving wearing comfort.
[0091] When the active noise cancellation module is in the off state, it means that the active noise cancellation module does not reduce ambient noise through anti-phase noise; that is, when the active noise cancellation module is in the off state, the noise cancellation function is turned off.
[0092] Depending on whether the vent valve and ANC module are open or closed, four working modes are set to adapt to various scenarios in which users use the headphones.
[0093] The headphones include a processor, an active noise cancellation (ANC) module, and a venting valve. The processor is connected to both the ANC module and the venting valve. It should be noted that the processor can be directly connected to the ANC module and the venting valve, or indirectly connected to them.
[0094] Optionally, upon receiving the first head posture data and with the current operating mode set to noise cancellation, the headphones send a noise cancellation off command to the ANC module via the processor, and also send a vent valve open command to the vent valve via the processor. Upon receiving the vent valve open command from the processor, the vent valve opens; upon receiving the noise cancellation off command from the processor, the ANC module closes the noise cancellation, effectively disabling the noise cancellation function of the active noise cancellation module and switching the noise cancellation mode to transparency mode.
[0095] In this embodiment, the working state of the ventilation valve and the active noise cancellation module are adjusted by the first head posture data, so that the ventilation valve is in the open state and the active noise cancellation function is in the closed state. This controls the headphone noise cancellation mode to switch to the transparency mode. The head posture data can quickly and conveniently complete the working mode switching. At the same time, external sounds can enter the ear canal through the ventilation valve, allowing the user to naturally hear external sounds. The external environment and the ear canal are in a connected state, which can eliminate or reduce the ear blockage effect and improve wearing comfort. At the same time, compared with the situation of using multiple head posture data to switch as described above, the first head posture data has fewer data points, which is easier for users to operate. Users do not need to remember too many head posture data and the correspondence between mode switching, making the operation more efficient and convenient.
[0096] Continuing from the previous embodiment, the working state of the vent valve and the working state of the active noise reduction module are adjusted to switch the current working mode to the first working mode. This includes: sending an activation noise reduction command to the active noise reduction module and a vent valve closure command to the vent valve; the vent valve is used to perform a closure operation according to the vent valve closure command; the active noise reduction module is used to perform an activation operation according to the activation noise reduction command, so as to switch the current working mode to the first working mode.
[0097] The first working mode is when the vent valve is closed and the active noise reduction module is on, which is the noise reduction mode.
[0098] Optionally, when the first head posture data is received and the current working mode is not noise cancellation mode, but rather transparency mode, music mode, or comfort mode, the headphones send a noise cancellation activation command to the ANC module via the processor, and also send a vent valve closure command to the vent valve via the processor. After receiving the vent valve closure command from the processor, the vent valve performs a closure operation. After receiving the noise cancellation activation command from the processor, the ANC module performs an activation operation, that is, it activates the noise cancellation function of the active noise cancellation module to switch the current working mode to noise cancellation mode.
[0099] In this embodiment, the working state of the ventilation valve and the active noise cancellation module are adjusted by the first head posture data, so that the ventilation valve is in the closed state and the active noise cancellation function is in the open state. The headphone transparency mode is controlled to switch to the noise cancellation mode. While the working mode can be switched quickly and conveniently, external sounds cannot enter the ear canal through the ventilation valve. That is, the ear canal and the external environment are isolated. This can avoid or reduce the impact of external airflow on the internal components and sound quality of the in-ear wireless headphones, and also prevent environmental noise from entering the ear canal through the ventilation valve, thus playing a certain role in noise isolation. The active noise cancellation module is activated to reduce ambient noise through anti-phase noise reduction. Headphone modes are switched by adjusting the ventilation valve and active noise cancellation module's operating status solely through head movements, without physical contact with the headphones or via a mobile app. This significantly simplifies the mode-switching process, improves ease of use, and increases efficiency. It also allows users to experience powerful noise cancellation in noisy environments. Furthermore, compared to using multiple head posture data points for switching, the first set of head posture data requires fewer points, making it easier for users to operate and eliminating the need to memorize numerous head posture data points and their corresponding mode switching relationships, resulting in more efficient and convenient operation.
[0100] In one exemplary embodiment, the third operating mode is that the vent valve is closed and the active noise reduction module is closed; the fourth operating mode is that the vent valve is partially open and the active noise reduction module is closed.
[0101] Optionally, upon receiving the second head posture data, the third operating mode is characterized by the ventilation valve being closed and the active noise cancellation module being off. The closed ventilation valve restricts communication between the external auditory canal and the external environment, effectively isolating the external auditory canal from the external environment. The off active noise cancellation module does not reduce ambient noise. This third operating mode can be referred to as the music mode.
[0102] Optionally, the fourth operating mode is characterized by the ventilation valve being partially open and the active noise cancellation module being closed. The partially open ventilation valve allows for some connection between the auditory canal and the external environment, enabling some external airflow to enter the auditory canal, or vice versa. When the active noise cancellation module is closed, no external ambient noise is reduced. This fourth operating mode can be referred to as the comfort mode.
[0103] Optionally, based on the second head posture data and the current working mode (music mode or comfort mode), the working mode of the headphones can be switched by adjusting the working state of the ventilation valve and the working state of the active noise cancellation module.
[0104] In this embodiment, the working states of the ventilation valve and the active noise cancellation module are determined based on the second head posture data. When the ventilation valve is closed, the impact of external airflow on the internal components and sound quality of the in-ear wireless headphones is avoided or reduced. It also prevents environmental noise from entering the ear canal through the ventilation valve, thus providing a degree of noise isolation. Furthermore, when the active noise cancellation module is closed, active noise cancellation is disabled, allowing users to enjoy an immersive music experience. A partially open ventilation valve allows some connection between the ear canal and the external environment, enabling some external airflow to enter the ear canal, reducing or eliminating the ear blockage effect and improving wearing comfort. When the active noise cancellation module is closed, active noise cancellation is disabled. The second head posture data allows for quick and convenient switching between working modes while also improving user comfort.
[0105] Following the aforementioned embodiments, adjusting the working state of the vent valve and the working state of the active noise reduction module to switch the third working mode to the fourth working mode includes: sending a noise reduction shutdown command to the active noise reduction module and sending a vent valve half-open command to the vent valve; the vent valve is used to perform a half-open operation according to the vent valve half-open command; the active noise reduction module is used to perform a shutdown operation according to the noise reduction shutdown command, so as to switch the third working mode to the fourth working mode.
[0106] The third working mode is when the vent valve is closed and the active noise cancellation module is off, which is also known as music mode; the fourth working mode is when the vent valve is partially open and the active noise cancellation module is off, which is also known as comfort mode.
[0107] The semi-open state refers to the valve or gas passage of the vent valve being in an intermediate state between open and closed. It is a partially open state, which can refer to the state where the valve or gas passage of the vent valve is half open (e.g., 1 / 2 open), or it can refer to other parts of the open state, such as the valve or gas passage being 1 / 3, 1 / 4, 2 / 3, 4 / 5, etc. There is no specific limitation here.
[0108] Optionally, when receiving the second head posture data and the current working mode is music mode, the processor sends a noise cancellation off command to the active noise cancellation module (ANC) and a vent valve half-open command to the vent valve. After receiving the vent valve half-open command from the processor, the vent valve performs a half-open operation. After receiving the noise cancellation off command from the processor, the active noise cancellation module (ANC) performs a shutdown operation, that is, it shuts down the noise cancellation function of the active noise cancellation module to switch the music mode to comfort mode.
[0109] In this embodiment, the working state of the ventilation valve and the active noise cancellation module are adjusted by the second head posture data, so that the ventilation valve is in a semi-open state and the active noise cancellation function is in a closed state. The music mode of the headphones is switched to comfort mode. The second head posture data can quickly and conveniently complete the switching of working modes. At the same time, the ventilation valve allows the external ear canal to be partially connected with the external environment, which can not only realize the ventilation between the external ear canal and the external environment and reduce the ear blockage effect, but also prevent a large amount of environmental noise from entering the external ear canal, so that the user can enjoy a comfortable wearing experience.
[0110] Continuing with the previous embodiments, adjusting the working state of the vent valve and the working state of the active noise reduction module switches the current working mode to the third working mode, including: sending a noise reduction shutdown command to the active noise reduction module and sending a vent valve shutdown command to the vent valve; the vent valve is used to perform a shutdown operation according to the vent valve shutdown command; the active noise reduction module is used to perform a shutdown operation according to the noise reduction shutdown command, so as to switch the current working mode to the third working mode.
[0111] The third working mode is when the vent valve is closed and the active noise cancellation module is off, which is also known as music mode.
[0112] Optionally, when receiving second head posture data and the current operating mode is not music mode (which can be comfort mode, noise cancellation mode, or transparency mode), the headphones send a noise cancellation off command to the active noise cancellation module (ANC) via the processor, and also send a vent valve off command to the vent valve via the processor. Upon receiving the vent valve off command from the processor, the vent valve performs the off operation; upon receiving the noise cancellation off command from the processor, the active noise cancellation module (ANC) performs the off operation, thus switching the current operating mode to music mode.
[0113] In this embodiment, the working state of the vent valve and the active noise cancellation module are adjusted by the second head posture data, so that the vent valve is in the closed state and the active noise cancellation function is in the off state. The other modes of the headphones are controlled to switch to music mode. The second head posture data can quickly and conveniently complete the working mode switching while the vent valve is in the closed state and the active noise cancellation function is in the off state. This avoids or reduces the impact of external airflow on the internal components and sound quality of the in-ear wireless headphones, and also prevents environmental noise from entering the ear canal through the vent valve. Users can enjoy the ultimate music experience.
[0114] In an exemplary embodiment, the first head posture data includes any one of nodding, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, or a combination of nodding and turning the head; the second head posture data includes any one of shaking the head, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, or a combination of shaking the head and turning the head; wherein the first head posture data and the second head posture data are different.
[0115] Optionally, the first head posture data includes any one of the following: nodding, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, a combination of nodding and turning the head, or a combination of nodding and other head postures. The second head posture data includes any one of the following: shaking the head, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, a combination of shaking the head and turning the head, or a combination of shaking the head and other head postures; and the first head posture data and the second head posture data are different.
[0116] Optionally, if the first head posture data is nodding, the second head posture data can be any other than nodding. If the second head posture data is shaking, the first head posture data can be any other than shaking.
[0117] In this embodiment, the current working state of the earphone can be switched by using the first head posture data and the second head posture data, which simplifies the switching process and improves the switching efficiency.
[0118] In one exemplary embodiment, the first head posture data includes nodding data; the second head posture data includes shaking data.
[0119] Optionally, when the first head posture data includes two head nods, and the current operating mode of the headphones is the first mode, i.e., noise cancellation mode, the headphones send a noise cancellation off command to the ANC module via the processor, and also send a vent valve open command to the vent valve via the processor. Upon receiving the vent valve open command from the processor, the vent valve performs the open operation; upon receiving the noise cancellation off command from the processor, the ANC module performs the close operation, i.e., disables the noise cancellation function of the active noise cancellation module, thus switching the noise cancellation mode to transparency mode.
[0120] Optionally, when the first head posture data includes two head nods, and the headphone's previous operating mode is not noise cancellation mode (e.g., transparency mode, music mode, or comfort mode), the headphone sends a noise cancellation activation command to the ANC module via the processor, and also sends a vent valve closure command to the vent valve via the processor. After receiving the vent valve closure command from the processor, the vent valve performs a closure operation. After receiving the noise cancellation activation command from the processor, the ANC module performs an activation operation, that is, it activates the noise cancellation function of the active noise cancellation module to switch the current operating mode to noise cancellation mode.
[0121] Optionally, when the second head posture data includes two head shakes and the current working mode is music mode, the processor sends a noise cancellation off command to the active noise cancellation module (ANC) and a vent valve half-open command to the vent valve. After receiving the vent valve half-open command from the processor, the vent valve performs a half-open operation. After receiving the noise cancellation off command from the processor, the active noise cancellation module (ANC) performs a shutdown operation, that is, it shuts down the noise cancellation function of the active noise cancellation module to switch the music mode to comfort mode.
[0122] Optionally, when the second head posture data includes two head shakes, and the current operating mode is not music mode (which can be comfort mode, noise cancellation mode, or transparency mode), the headphones send a noise cancellation off command to the active noise cancellation module (ANC) via the processor, and also send a ventilator off command to the ventilator via the processor. Upon receiving the ventilator off command from the processor, the ventilator performs the off operation; upon receiving the noise cancellation off command from the processor, the active noise cancellation module (ANC) performs the off operation, thus switching the current operating mode to music mode.
[0123] In this embodiment, controlling mode switching by nodding or shaking the head is more seamless, convenient, quick, and simple, and conforms to user habits. Furthermore, nodding twice or shaking twice can be used to prevent accidental mode switching by the user.
[0124] In one exemplary embodiment, such as Figure 3 As shown, a method for switching headphone operating modes includes steps S302 to S304 before performing open or closed operations on the vent valve and active noise cancellation module based on head posture data to switch the current operating mode:
[0125] Step S302: Obtain the current call status.
[0126] The current call status indicates whether there is currently a call or not. The current call status can include both an active call and a non-active call.
[0127] Optionally, after the headset communicates with the mobile terminal, the headset can obtain the audio status of the mobile terminal in real time, and the headset can replace the mobile terminal's speaker to play the audio aloud. For example, when the mobile terminal is making a phone call with another mobile terminal, the headset obtains through the processor whether the mobile terminal is currently in a call. If a call exists, it is a current call status; if no call exists, it is also a current call status.
[0128] Step S304: If the current call status is active, then call control is performed based on the head posture data.
[0129] Optionally, if the current call status is active, such as incoming call or ongoing call, the call answering and hanging up are controlled based on head posture data. If the current call status is inactive, the working status of the ventilation valve and the active noise cancellation module are adjusted based on head posture data to switch the current working mode.
[0130] In this embodiment, head posture data enables call control without touching the headset or through a mobile device application, greatly simplifying the process of answering or hanging up calls and improving ease of use. At the same time, it also improves the efficiency of call control.
[0131] In one exemplary embodiment, the head posture data includes first head posture data or second head posture data; call control based on the head posture data includes: call control based on the first head posture data or second head posture data.
[0132] The first head posture data can include nodding once, nodding twice, nodding three times, or raising the head once, raising the head twice, raising the head three times, or a combination of nodding and raising the head, etc. The second head posture data can include shaking the head once, shaking the head twice, shaking the head three times, or shaking the head twice to the left consecutively, shaking the head twice to the right consecutively, or other combinations of head shaking movements, etc.
[0133] Optionally, the headset controls the call of the mobile terminal connected to the headset by nodding once, nodding twice, nodding three times, or tilting the head up once, tilting the head up twice, tilting the head up three times, or a combination of nodding and tilting the head up, or shaking the head once, shaking the head twice, shaking the head three times, or shaking the head twice to the left, shaking the head twice to the right, or other combinations of head-shaking actions.
[0134] In this embodiment, the call status is prioritized using both first and second head posture data, which better aligns with user habits. It also enables call control without touching the headset or through a mobile device application, greatly simplifying the process of answering or ending calls and improving ease of use and call control efficiency.
[0135] In one exemplary embodiment, such as Figure 4 As shown, the first head posture data is nodding data; the second head posture data is shaking data; the call status includes incoming call or ongoing call; if the current call status is ongoing, call control is performed based on the head posture data, including at least one of the following steps S402 to S406:
[0136] Step S402: If the current call status is incoming, answer the current call based on the nodding data.
[0137] Optionally, if the current call status is an incoming call, the headset will answer the current call by nodding twice.
[0138] Step S404: If the current call status is incoming, reject the current call based on the head shake data.
[0139] Optionally, if the current call status is incoming, the call can be rejected by shaking the head twice.
[0140] Step S406: If the current call status is "in a call", hang up the current call based on the head shake data.
[0141] Optionally, if the current call status is active, the call can be ended by shaking the head twice.
[0142] In this embodiment, calls can be conveniently controlled without touching the headset or mobile terminal by using head nodding or head shaking data. In addition, answering the current call by nodding data and rejecting the current call or hanging up the phone by head shaking data is more in line with user habits.
[0143] In one exemplary embodiment, the operating modes of the headphones include the following four, as shown in Table 1.
[0144] Table 1. On / off states of the vent valve and active noise cancellation module under different headphone operating modes.
[0145]
[0146] Working mode switching and call control are performed using head posture data, as shown in Table 2.
[0147] Table 2. Effects of Head Posture Data on Working Mode Switching and Call Control
[0148]
[0149] Using first head posture data (e.g., nodding twice) to switch working modes and control calls, such as Figure 5 As shown. The earphone acquires the user's head posture data, and the head posture is the first head posture data, for example, capturing the user's double nodding motion through a six-axis sensor. At this time, the processor connected to the six-axis sensor acquires the data of the user's double nodding. If the processor finds that there is a call in progress, and the call is in progress, then the call is answered directly based on the first head posture data (e.g., double nodding). If the processor finds that there is no call in progress, it determines whether the current working mode is the first working mode, such as noise cancellation mode. If the current working mode is the first working mode, such as noise cancellation mode, the earphone sends a noise cancellation off command to the ANC module and a vent valve open command to the vent valve. After receiving the vent valve open command, the vent valve performs the open operation; after receiving the noise cancellation off command, the ANC module performs the off operation to switch the first working mode to the second working mode, such as switching the noise cancellation mode to the transparency mode. If the current operating mode is not the first operating mode, for example, if the current operating mode is not noise cancellation mode, but transparency mode, music mode, or comfort mode, a noise cancellation activation command will be sent to the ANC module, and a vent valve closure command will be sent to the vent valve. After receiving the vent valve closure command, the vent valve will perform a closure operation. After receiving the noise cancellation activation command, the ANC module will perform an activation operation to switch the current operating mode to the first operating mode, for example, switching the current operating mode to noise cancellation mode.
[0150] When the processor determines that the user's head posture data shows two nods, the current operating mode is non-noise reduction mode, and there is no incoming call, it sends a noise reduction activation command to the ANC module and a ventilator closure command to the ventilator. When the ANC module receives the noise reduction activation command, it loads the corresponding filter parameters and enables the noise reduction function. The ventilator consists of a drive unit and a valve. When the ventilator receives the ventilator closure command, the drive unit drives the valve to open, thereby connecting the external auditory canal with the external environment.
[0151] Switching between working modes and controlling calls can be done by shaking your head twice, such as... Figure 6As shown, the headphones use a six-axis sensor to detect when the user shakes their head twice. The processor, connected to the six-axis sensor, receives this data. If the processor detects an ongoing call, and if the call is in progress, the user rejects the call based on the double head shake. If the call is in progress, the user hangs up. If the processor detects no ongoing call, it determines if the current operating mode is the third operating mode, i.e., music mode. If it is music mode, the headphones send a noise cancellation off command to the ANC module via the processor, and also send a half-open command to the vent valve via the processor. Upon receiving the half-open command, the vent valve partially opens; upon receiving the noise cancellation off command, the ANC module closes the noise cancellation, switching the music mode to comfort mode. If it is not in music mode, but in comfort mode, noise cancellation mode, or transparency mode, the processor sends a noise cancellation off command to the ANC module and a vent valve close command to the vent valve. After receiving the vent valve close command from the processor, the vent valve performs the close operation. After receiving the noise cancellation off command from the processor, the ANC module performs the close operation to switch the current working mode to music mode.
[0152] In this embodiment, after acquiring head posture data, if the earphone is in a call state, the call state is prioritized, which better suits user habits. If there is no call state, the working state of the ventilation valve and the active noise cancellation module are adjusted according to the head posture data to switch the current working mode, allowing the earphone to meet the usage needs of different scenarios. Using the first head posture data to control the call state, switch the first working mode to the second working mode, or switch a non-first working mode to the first working mode, the same head posture data can achieve both call state control and switching between multiple working modes, making it easier and more efficient for the user. In particular, triggering the above control through head nodding data is more convenient and efficient. Furthermore, using two head nodding triggers can prevent accidental triggering. Similarly, using the second head posture data to control call and working mode switching has a similar effect.
[0153] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0154] In one exemplary embodiment, an earphone is provided, comprising: a sensor for acquiring head posture data; a memory for storing a computer program; and a processor for executing the computer program to implement the steps in the above-described method embodiments.
[0155] It should be noted that when using the above method with headphones, noise cancellation and wearing comfort can be balanced.
[0156] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0157] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0158] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited thereto.
[0159] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0160] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for switching headphone working modes, characterized in that, Applied to headphones, the headphones including a vent valve and an active noise cancellation module; the method includes: Obtain head pose data; The working state of the ventilation valve and the working state of the active noise reduction module are adjusted according to the head posture data to switch the current working mode. The ventilation valve is used to allow or restrict communication between the external auditory canal and the external environment; the active noise reduction module reduces ambient noise by using anti-phase noise.
2. The method according to claim 1, characterized in that, The head posture data includes first head posture data or second head posture data; the working state of the ventilation valve includes one of being closed, open, or partially open; the working state of the active noise cancellation module is either closed or open.
3. The method according to claim 1, characterized in that, The step of adjusting the working state of the ventilation valve and the working state of the active noise cancellation module based on the head posture data to switch the current working mode includes at least one of the following: If the head posture data is the first head posture data and the current working mode is the first working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the first working mode to the second working mode. If the head posture data is the first head posture data and the current working mode is not the first working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the current working mode to the first working mode.
4. The method according to claim 1, characterized in that, The step of adjusting the working state of the ventilation valve and the working state of the active noise cancellation module based on the head posture data to switch the current working mode includes at least one of the following: If the head posture data is the second head posture data and the current working mode is the third working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the third working mode to the fourth working mode. If the head posture data is the second head posture data and the current working mode is not the third working mode, then adjust the working state of the ventilation valve and the working state of the active noise reduction module to switch the current working mode to the third working mode.
5. The method according to claim 3, characterized in that, The first operating mode is when the vent valve is closed and the active noise reduction module is open; the second operating mode is when the vent valve is open and the active noise reduction module is closed.
6. The method according to claim 3, characterized in that, The step of adjusting the working state of the vent valve and the working state of the active noise reduction module to switch the first working mode to the second working mode includes: The active noise cancellation module sends a noise cancellation shutdown command to the active noise cancellation module and a vent valve opening command to the vent valve; the vent valve is used to perform an opening operation according to the vent valve opening command; the active noise cancellation module is used to perform a shutdown operation according to the noise cancellation shutdown command to switch the first working mode to the second working mode.
7. The method according to claim 3, characterized in that, Adjusting the operating state of the vent valve and the operating state of the active noise reduction module to switch the current operating mode to the first operating mode includes: The active noise cancellation module sends a noise cancellation activation command to the active noise cancellation module and a vent valve closure command to the vent valve; the vent valve is used to perform a closure operation according to the vent valve closure command; the active noise cancellation module is used to perform an activation operation according to the noise cancellation activation command to switch the current working mode to the first working mode.
8. The method according to claim 4, characterized in that, The third working mode is when the vent valve is closed and the active noise reduction module is closed; the fourth working mode is when the vent valve is partially open and the active noise reduction module is closed.
9. The method according to claim 4, characterized in that, Adjusting the operating state of the vent valve and the operating state of the active noise reduction module to switch the third operating mode to the fourth operating mode includes: The active noise cancellation module sends a noise cancellation shutdown command to the active noise cancellation module and a vent valve half-open command to the vent valve; the vent valve is used to perform a half-open operation according to the vent valve half-open command; the active noise cancellation module is used to perform a shutdown operation according to the noise cancellation shutdown command to switch the third working mode to the fourth working mode.
10. The method according to claim 4, characterized in that, Adjusting the operating state of the vent valve and the operating state of the active noise cancellation module switches the current operating mode to the third operating mode, including: The active noise cancellation module sends a noise cancellation shutdown command to the active noise cancellation module and a vent valve shutdown command to the vent valve; the vent valve is used to perform a shutdown operation according to the vent valve shutdown command; the active noise cancellation module is used to perform a shutdown operation according to the noise cancellation shutdown command to switch the current working mode to the third working mode.
11. The method according to claim 2, characterized in that, The first head posture data includes any one of nodding, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, or a combination of nodding and turning the head; the second head posture data includes any one of shaking the head, turning the head, shaking the head, raising the head, lowering the head, moving the head along a certain trajectory, or a combination of shaking the head and turning the head; wherein the first head posture data and the second head posture data are different.
12. The method according to claim 2, characterized in that, The first head posture data includes nodding data; the second head posture data includes shaking data.
13. The method according to claim 1, characterized in that, Before switching the current working mode by adjusting the working state of the ventilation valve and the working state of the active noise cancellation module based on the head posture data, the method further includes: Get the current call status; If the current call status is active, then call control is performed based on the head posture data.
14. The method according to claim 13, characterized in that, The head posture data includes first head posture data or second head posture data; the call control based on the head posture data includes: Call control is performed based on the first head posture data or the second head posture data.
15. The method according to claim 14, characterized in that, The first head posture data is nodding data; the second head posture data is shaking data; the existence of a call state includes incoming call or in-call; if the current call state is an in-call state, then call control is performed based on the head posture data, including at least one of the following: If the current call status is incoming, answer the current call based on the nodding data; If the current call status is incoming, reject the current call based on the head shaking data; If the current call status is "in a call", the current call is terminated based on the head shake data.
16. An earphone, characterized in that, The headphones include: Sensors are used to collect head posture data; Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the method according to any one of claims 1 to 15.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 15.
18. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 15.