Headphone adjustment method, device, computer equipment, and readable storage medium
By introducing an angle sensor and magnetic components into the headphones, the rotation angle of the microphone stalk can be detected in real time and the microphone status can be adjusted accordingly. This solves the limitations of traditional headphones in detecting microphone on/off, and improves user experience and product stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- MERRY ELECTRONICS (SHENZHEN) CO LTD
- Filing Date
- 2024-11-21
- Publication Date
- 2026-05-26
AI Technical Summary
Existing headphones cannot flexibly adjust the microphone rotation angle when detecting microphone rotation, resulting in improper microphone activation or deactivation, affecting user experience and call clarity, and are also greatly affected by external environmental factors.
By setting an angle sensor in the main body of the earphone to detect the rotation angle of the straw, and combining the changes in the sensing value of the magnetic component, the working state of the microphone is adjusted in real time, and personalized adjustments are made according to the preset rotation angle and the target rotation angle.
It enables personalized adjustments based on user habits, improving the flexibility and accuracy of detection, reducing false positives, ensuring the microphone operates at its best in various scenarios, and enhancing user experience and product reliability.
Smart Images

Figure CN122093699A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a headphone adjustment method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Technology
[0002] With the improvement of economic level, consumer electronics products have developed rapidly. Headphones have become mainstream consumer electronics products due to their versatility of functions and wearing comfort. They are flexibly used in various scenarios such as daily life, work and games. In order to improve the clarity of communication with the other party during voice or call, microphones are often added to achieve better sound reception.
[0003] However, current mainstream detection methods only use a single position as the boundary for triggering microphone activation and deactivation, and cannot be flexibly adjusted based on user habits. Different users have different habits, and issues such as insufficient or excessive microphone rotation angle can lead to problems with proper microphone activation or deactivation, causing user pain points. Therefore, there is an urgent need for headphones that are no longer limited by the fixed position and angle of product design, and offer higher stability and are less affected by external environmental factors. Summary of the Invention
[0004] Therefore, it is necessary to provide a headphone adjustment method, device, computer equipment, computer-readable storage medium, and computer program product that is no longer limited to the fixed position and angle of the product design, has high stability, and is less affected by external environmental factors, in order to address the above-mentioned technical problems.
[0005] In a first aspect, this application provides a method for adjusting headphones, the headphones comprising at least a headphone body and a straw connected to the headphone body, the headphone body having an angle sensor disposed therein, and the straw having a microphone disposed therein, including:
[0006] In response to the rotation operation of the wheat stalk, the angle sensor is controlled to detect the target rotation angle of the wheat stalk;
[0007] Obtain the preset rotation angle set for the headphones;
[0008] The working state of the microphone in the wheat straw is adjusted according to the target rotation angle and the preset rotation angle.
[0009] In one embodiment, a magnetic component is provided at the bottom of the wheat straw. The wheat straw and the magnetic component are connected to the earphone body via a fixed shaft. When the wheat straw rotates around the fixed shaft, the magnetic component rotates synchronously with the wheat straw. The step of controlling the angle sensor to detect the target rotation angle of the wheat straw in response to the rotation operation includes:
[0010] In response to the rotation of the wheat stalk, the angle sensor is controlled to detect the change in the magnetic field induction value, the rotation angle of the magnetic component is determined based on the change in the magnetic field induction value, and the target rotation angle of the wheat stalk is determined based on the rotation angle of the magnetic component. The change in the magnetic field induction value is caused by the wheat stalk driving the magnetic component to rotate.
[0011] In one embodiment, the rotation operation includes at least one of a rotation trigger operation and a rotation stop operation; the step of controlling the angle sensor to detect changes in the magnetic field induction value in response to the rotation operation on the straw includes:
[0012] In response to a rotation trigger operation on the wheat stalk, the angle sensor is controlled to detect a first magnetic field induction value when the rotation trigger operation is performed on the wheat stalk; in response to a rotation stop operation on the wheat stalk, the angle sensor is controlled to detect a second magnetic field induction value when the rotation stop operation is performed on the wheat stalk; based on the detected first magnetic field induction value and second magnetic field induction value, the change value of the magnetic field induction value is determined.
[0013] In one embodiment, the microphone's operating state includes at least a mute state and a microphone on state; adjusting the microphone's operating state in the wheat stalk according to the target rotation angle and the preset rotation angle includes:
[0014] The target rotation angle is compared with the preset rotation angle; if the target rotation angle is less than or equal to the preset rotation angle, the microphone in the wheat straw is kept in the mute state; if the target rotation angle is greater than the preset rotation angle, the microphone in the wheat straw is switched from the mute state to the on state.
[0015] In one embodiment, in response to a setting trigger operation in the application for a preset rotation angle, the preset rotation angle is updated to obtain an updated preset rotation angle, and the updated preset rotation angle is saved.
[0016] Secondly, this application also provides a headset, including: a headset body, and a straw connected to the headset body via a fixed shaft. The headset body includes at least a main board, on which an angle sensor is provided. A magnetic component is provided at the bottom of the straw. When the straw rotates around the fixed shaft, it causes the magnetic component to rotate synchronously with the straw.
[0017] Thirdly, this application also provides a headphone adjustment device, characterized in that the headphone includes at least a headphone body and a straw connected to the headphone body, an angle sensor is provided in the headphone body, and a microphone is provided in the straw, comprising:
[0018] A detection module is used to control the angle sensor to detect the target rotation angle of the wheat stalk in response to the rotation operation of the wheat stalk;
[0019] The acquisition module is used to acquire a preset rotation angle set for the headphones;
[0020] An adjustment module is used to adjust the working state of the microphone in the wheat straw according to the target rotation angle and the preset rotation angle.
[0021] Fourthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0022] In response to the rotation operation of the wheat stalk, the angle sensor is controlled to detect the target rotation angle of the wheat stalk;
[0023] Obtain the preset rotation angle set for the headphones;
[0024] The working state of the microphone in the wheat straw is adjusted according to the target rotation angle and the preset rotation angle.
[0025] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0026] In response to the rotation operation of the wheat stalk, the angle sensor is controlled to detect the target rotation angle of the wheat stalk;
[0027] Obtain the preset rotation angle set for the headphones;
[0028] The working state of the microphone in the wheat straw is adjusted according to the target rotation angle and the preset rotation angle.
[0029] Sixthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0030] In response to the rotation operation of the wheat stalk, the angle sensor is controlled to detect the target rotation angle of the wheat stalk;
[0031] Obtain the preset rotation angle set for the headphones;
[0032] The working state of the microphone in the wheat straw is adjusted according to the target rotation angle and the preset rotation angle.
[0033] The aforementioned headphone adjustment method, apparatus, computer device, computer-readable storage medium, and computer program product include a headphone that comprises at least a headphone body and a straw connected to the headphone body. An angle sensor is disposed in the headphone body, and a microphone is disposed in the straw. By responding to rotation of the straw, the angle sensor is controlled to detect a target rotation angle of the straw, achieving real-time detection of the straw's rotation angle and providing accurate data support for subsequent steps. Compared to traditional solutions, it is not limited to detection at a fixed position but can capture the rotation of the straw at any angle, greatly improving the flexibility and accuracy of detection. Furthermore, real-time detection ensures accurate reflection of user operations in various usage scenarios, reducing misjudgments caused by improper operation.
[0034] By acquiring a preset rotation angle for the headphones, users can freely set the rotation angle to trigger microphone activation or deactivation according to their personal usage habits. This personalized setting can meet the needs of different users and avoid inconvenience caused by individual differences. For example, some users may prefer a larger rotation angle to trigger microphone activation, while others may prefer a smaller rotation angle. With the preset rotation angle, users can freely adjust to the most suitable angle, thereby improving the user experience.
[0035] The microphone's operating state is adjusted based on the target rotation angle and the preset rotation angle. This achieves the function of automatically adjusting the microphone's operating state according to the user's actual operation and personalized settings. By comparing the target rotation angle with the preset rotation angle, it can accurately determine when to turn the microphone on or off, ensuring optimal call or recording quality under any circumstances. This not only enhances the product's intelligence but also improves user convenience and satisfaction. Furthermore, this flexible adjustment mechanism effectively reduces accidental operation, avoids unnecessary interference or information leakage, and protects user privacy. Through these three core steps of precise detection, personalized settings, and intelligent adjustment, the limitations of traditional headphones in microphone on / off detection are overcome, significantly improving the product's user experience and reliability. Attached Figure Description
[0036] 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.
[0037] Figure 1 This is an application environment diagram of the headphone adjustment method in one embodiment;
[0038] Figure 2 This is a flowchart illustrating a headphone adjustment method in one embodiment;
[0039] Figure 3 This is a flowchart illustrating the workflow of a headphone adjustment method in one embodiment.
[0040] Figure 4 This is a flowchart illustrating the headphone adjustment method in another embodiment;
[0041] Figure 5 This is a structural block diagram of the headphone adjustment device in one embodiment;
[0042] Figure 6 This is a structural block diagram of the headphone adjustment device in another embodiment;
[0043] Figure 7 This is a schematic diagram of the internal structure of the headphones in one embodiment;
[0044] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0045] 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.
[0046] The headphone adjustment method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on the cloud or other network servers. Terminal 102 generates a headset adjustment request and sends it to server 104, so that server 104 adjusts the working state of the microphone in the straw according to the target rotation angle and a preset rotation angle. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0047] In one exemplary embodiment, such as Figure 2 As shown, a headphone adjustment method is provided, which is applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps 202 to 206. Wherein:
[0048] The headphones include at least a headphone body and a straw connected to the headphone body. An angle sensor is installed in the headphone body, and a microphone is installed in the straw.
[0049] Headphones are audio devices worn on the head to deliver sound directly to the user's ears. They can be used in various situations, such as listening to music, attending work meetings, and playing games.
[0050] The main body of the headphones refers to the core component of over-ear headphones, including but not limited to earcups, headband, battery, main control chip, angle sensor, and other components. It is responsible for the control and functionality of the entire headphone.
[0051] A microphone stick is a rotatable rod-like structure on headphones used to mount a microphone. Users can rotate the microphone stick to adjust its position for better sound pickup.
[0052] An angle sensor is a sensor capable of detecting changes in a magnetic field and converting them into an electrical signal. In this application, the angle sensor is mounted on the main board of the earphone body and is used to detect the rotation angle of the magnetic material in the wheat straw.
[0053] A microphone is a device that converts sound waves into electrical signals to pick up a user's voice. In this application, the microphone is mounted at the end of a wheat stalk. By adjusting the rotation angle of the wheat stalk, the position of the microphone can be changed, thereby optimizing the sound pickup effect.
[0054] Step 202: In response to the rotation operation of the straw, the control angle sensor detects the target rotation angle of the straw.
[0055] Rotation refers to the user manually rotating the microphone stem on the headset to adjust the microphone's position. This operation is usually done to optimize the microphone's pickup effect, bringing it closer to the user's mouth, or to adjust it according to the usage scenario and personal habits.
[0056] The target rotation angle refers to the actual rotation angle of the straw detected by the angle sensor after the user rotates it. This angle reflects the result of the user's current operation.
[0057] Specifically, the user first manually rotates the wheat stalk to adjust the microphone position. After detecting this rotation, the angle sensor is activated. Next, the angle sensor uses an internal algorithm to calculate the specific rotation angle of the wheat stalk (the target rotation angle). Finally, the calculated target rotation angle is transmitted to the main control platform, i.e., the server. For example, if the user rotates the wheat stalk to 20 degrees, the angle sensor detects this rotation and transmits the target rotation angle of 20 degrees to the main control platform.
[0058] Step 204: Obtain the preset rotation angle set for the headphones.
[0059] The preset rotation angle refers to the specific rotation angle that the user pre-sets in the headset's accompanying application (APP) to trigger the microphone to turn on or off. Understandably, this angle is customized by the user according to their own usage habits and needs.
[0060] Specifically, the user first opens the application that comes with the headphones. Within the application, they find the option to set the microphone trigger angle, which can be either "Settings" or "Preferences." The user enters one or more preset rotation angles according to their usage habits and needs. For example, they can set the microphone to activate when rotated to 30 degrees and deactivate when rotated to 0 degrees. The user then clicks "Save" or "OK" to save the preset rotation angles to the application.
[0061] The application then transmits the user-set preset rotation angle to the headset's main control platform, i.e., the server, via wireless communication (such as Bluetooth). Upon receiving the preset rotation angle, the main control platform stores it in its internal memory for later retrieval.
[0062] Finally, when the user rotates the straw, the angle sensor detects the actual rotation angle (target rotation angle) and transmits this information to the main control platform. The main control platform then reads the preset rotation angle set by the user in the application from its internal memory.
[0063] Step 206: Adjust the working status of the microphone in the straw according to the target rotation angle and the preset rotation angle.
[0064] The "working status" refers to the microphone's enabled or disabled state within the headset; that is, whether the microphone is on (open) or off (closed). In simpler terms, when the microphone is on, it picks up and transmits the user's voice, suitable for scenarios such as calls and recording. When the microphone is off, it does not pick up the user's voice, suitable for scenarios such as muting or avoiding interference.
[0065] Specifically, the main control platform (i.e., the server) first compares the detected target rotation angle with a preset rotation angle. Understandably, the purpose of this comparison is to determine whether the current rotation angle meets the user-defined trigger conditions. Then, if the target rotation angle reaches or exceeds the preset microphone-on angle, the main control platform switches the microphone to the on state (mic on). For example, if the preset microphone-on angle is 30 degrees and the target rotation angle is 35 degrees, the main control platform will trigger the microphone-on operation. If the target rotation angle is less than the preset microphone-off angle, the main control platform switches the microphone to the off state (mic off). For example, if the preset microphone-off angle is 0 degrees and the target rotation angle is 20 degrees, the main control platform will remain in the microphone-off state.
[0066] In one embodiment, a magnetic component is provided at the bottom of the straw. The straw and the magnetic component are connected to the headphone body via a fixed shaft. When the straw rotates around the fixed shaft, the magnetic component rotates synchronously with the straw. In response to the rotation operation of the straw, a control angle sensor detects the change in the magnetic field induction value, determines the rotation angle of the magnetic component based on the change in the magnetic field induction value, and determines the target rotation angle of the straw based on the rotation angle of the magnetic component. The change in the magnetic field induction value is caused by the straw driving the magnetic component to rotate.
[0067] The magnetic component refers to a magnetic object, such as a magnet, installed at the bottom of the wheat stalk. Its function is to generate a magnetic field. When the wheat stalk rotates, the magnetic component rotates accordingly, causing a change in the magnetic field. Understandably, the magnetic field generated by the magnetic component is detected by an angle sensor, and the rotation angle of the wheat stalk is determined by the change in the magnetic field. Optionally, the magnetic component is a cylindrical N52 magnet, with one end as the S pole and the other end as the N pole. The magnet is fixed to the bottom of the wheat stalk.
[0068] The fixed shaft is a mechanical component that serves as the rotation center point connecting the earphone stem and the earphone body. It allows the earphone stem to rotate freely within a certain range while maintaining its connection to the earphone body. Mounted on the earphone body, the earphone stem is connected to it via the fixed shaft. It provides a fulcrum for the earphone stem's rotation, ensuring smooth rotation without affecting the normal operation of other components.
[0069] The change in magnetic field induction value refers to the change in the strength and direction of the magnetic field caused by the change in the position and angle of the magnetic component when the straw rotates, which is detected by the angle sensor.
[0070] Specifically, the user first manually rotates the microphone stick to adjust its position. This rotation causes a change in the position and angle of the magnetic component. The magnetic component, fixed to the bottom of the microphone stick, rotates with it. This rotation causes a change in the magnetic field it generates, including its strength and direction. Next, an angle sensor mounted on the main board of the earphone detects this change in magnetic field. The angle sensor records the changes in the magnetic field's induced value, reflecting the rotation of the magnetic component. An algorithm within the angle sensor processes these changes and calculates the rotation angle of the magnetic component. Finally, the angle sensor transmits the calculated rotation angle to the main control platform. Based on the rotation angle of the magnetic component, the main control platform determines the target rotation angle of the microphone stick.
[0071] The angle sensor determines the rotation angle of the magnetic component by detecting changes in the magnetic field. These changes are highly sensitive, accurately reflecting even minute rotations of the magnetic component, thus achieving high-precision detection. Furthermore, the angle sensor detects magnetic field changes in real time, meaning the system can respond instantly to user rotation operations without delay. Users can simply rotate the microphone stalk to turn it on or off, eliminating the need for complex buttons or menus, making operation more intuitive and convenient.
[0072] In one embodiment, in response to a rotation triggering operation on the straw, a control angle sensor detects a first magnetic field induction value when the straw is rotated; in response to a rotation stop operation on the straw, a control angle sensor detects a second magnetic field induction value when the straw is rotated stop; and based on the detected first and second magnetic field induction values, a change in the magnetic field induction value is determined.
[0073] The rotation-triggered operation refers to the user manually rotating the microphone stem to adjust its position. This operation causes the magnetic components to rotate, resulting in a change in the magnetic field.
[0074] The first magnetic field induction value refers to the initial magnetic field induction value detected by the angle sensor before the user begins to rotate the straw. This is the magnetic field state when the user has not performed any rotation operation.
[0075] The "Stop Rotation" operation means that the user stops rotating the microphone stick, thus ending the adjustment of the microphone's position. This operation marks the end of the rotation process, and the final position of the magnetic component is determined.
[0076] The second magnetic field induction value refers to the final magnetic field induction value detected by the angle sensor after the user stops rotating the straw. This is the magnetic field state after the user completes the rotation operation.
[0077] Specifically, the user first manually rotates the microphone stick to adjust its position. This rotation causes a change in the position and angle of the magnetic components. Before the user begins rotating the stick, the angle sensor detects a first magnetic field induction value. The main control platform records this initial magnetic field induction value as the first magnetic field induction value.
[0078] The user then stops rotating the straw, and the straw and magnetic component remain in their new positions. After the rotation of the magnetic component stops, the change in the magnetic field tends to stabilize. After the user stops rotating the straw, the magnetic field value detected by the angle sensor is the second magnetic field value. The main control platform records this final magnetic field value as the second magnetic field value.
[0079] Finally, the main control platform calculates the change in the magnetic field induction value based on the recorded first and second magnetic field induction values. This change in magnetic field induction value is equal to the second magnetic field induction value minus the first magnetic field induction value.
[0080] By detecting the first magnetic field induction value during the rotation trigger operation and the second magnetic field induction value during the rotation stop operation, the entire process of the user's operation can be completely recorded, and the change value of the magnetic field induction value can be accurately calculated, ensuring the integrity and accuracy of the data.
[0081] In one embodiment, the target rotation angle is compared with the preset rotation angle; if the target rotation angle is less than or equal to the preset rotation angle, the microphone in the straw is kept mute; if the target rotation angle is greater than the preset rotation angle, the microphone in the straw is switched from mute to on.
[0082] The "mute" mode refers to the microphone being switched off and not picking up the user's voice. In this mode, the microphone will not transmit the user's voice, making it suitable for scenarios requiring silence or to avoid interference.
[0083] "Mic on" means the microphone is turned on, capable of picking up and transmitting the user's voice. In this state, the microphone relays the user's voice to the other party, suitable for scenarios requiring voice communication.
[0084] Specifically, the main control platform compares the detected target rotation angle with a preset rotation angle. If the target rotation angle is less than or equal to the preset rotation angle, the main control platform keeps the microphone muted. For example, the main control platform sends a command to the microphone to keep it in a non-pickup state. If the target rotation angle is greater than the preset rotation angle, the main control platform switches the microphone to an on state. For example, the main control platform sends a command to the microphone to put it into pickup mode and start picking up the user's voice.
[0085] When the target rotation angle is less than or equal to the preset rotation angle, the microphone remains muted, preventing the user's voice from being picked up and avoiding unnecessary background noise interference. When the target rotation angle is greater than the preset rotation angle, the microphone switches to on mode, ensuring that the user's voice is transmitted clearly, which is suitable for scenarios requiring voice communication. This method dynamically adjusts the microphone's operating state based on the comparison between the target rotation angle and the preset rotation angle, ensuring optimal sound pickup in different usage scenarios.
[0086] In one embodiment, in response to a setting trigger operation in the application for a preset rotation angle, the preset rotation angle is updated to obtain the updated preset rotation angle, and the updated preset rotation angle is saved.
[0087] The updated preset rotation angle refers to the latest preset value saved after the user sets the new preset rotation angle in the application and the system processes it. This value is used to trigger the microphone's on / off operation.
[0088] An application refers to a software application on a mobile phone or computer that is used with headphones. Users can use this application to perform various settings and operations.
[0089] Specifically, the user first opens the application that comes with the headphones. Within the application, the user finds the option to set the microphone trigger angle, such as "Settings" or "Preferences." The user enters a new preset rotation angle based on their usage habits and needs. For example, setting 30 degrees for the microphone on and 0 degrees for the microphone off. The user clicks "Save" or "OK" to save the preset rotation angle to the application. The application then transmits the user-set preset rotation angle to the headphones' main control platform via wireless communication (such as Bluetooth). The main control platform receives the new preset rotation angle data. Next, the main control platform saves the received new preset rotation angle data to its internal memory, replacing the original preset rotation angle. In essence, the new preset rotation angle becomes the latest trigger condition. Finally, the main control platform saves the updated preset rotation angle to its internal memory, ensuring it remains effective for the next use. The updated preset rotation angle is permanently saved and remains effective even after the device is restarted.
[0090] Because users can flexibly set preset rotation angles through the application, they can personalize the settings according to their usage habits and needs. This satisfies various individual requirements and improves user satisfaction. Furthermore, after a user sets a new preset rotation angle in the application, the system can immediately update and save these settings, ensuring that the new settings take effect instantly. Users can simply set the preset rotation angle within the application, without complicated button or menu operations, making the operation more intuitive and convenient. Through this flexible setting, users can easily adjust the microphone position to be closer to their mouth, improving sound pickup and enhancing call quality.
[0091] In one embodiment, such as Figure 3 As shown, Figure 3 Here is a flowchart of the headphone adjustment method in one embodiment, including:
[0092] Step 1: The user opens the application that comes with the headphones. The user finds the option to set the microphone trigger angle within the application, which can be either "Settings" or "Preferences". The user enters a new preset rotation angle according to their usage habits and needs. For example, setting 30 degrees for the microphone on and 0 degrees for the microphone off. The user clicks "Save" or "OK" to save the preset rotation angle to the application.
[0093] Step 2: The application transmits the user-set preset rotation angle to the headphone's main control platform via wireless communication (such as Bluetooth). The main control platform receives the new preset rotation angle data.
[0094] Step 3: The main control platform saves the received new preset rotation angle data to its internal memory, replacing the original preset rotation angle. The new preset rotation angle becomes the latest trigger condition.
[0095] Step 4: The user manually rotates the microphone stick to adjust its position. The rotation of the microphone stick causes a change in the position and angle of the magnetic components.
[0096] Step 5: Before the user starts rotating the straw, the angle sensor detects the first magnetic field induction value. The main control platform records this initial magnetic field induction value. The angle sensor detects changes in the magnetic field and records these changes. After the user stops rotating the straw, the angle sensor detects the second magnetic field induction value. The main control platform records this final magnetic field induction value.
[0097] Step 6: The main control platform calculates the change in the magnetic field induction value based on the recorded first and second magnetic field induction values. Optionally, the change in the magnetic field induction value is equal to the second magnetic field induction value minus the first magnetic field induction value.
[0098] Step 7: The angle sensor's internal algorithm calculates the rotation angle of the magnetic component based on the change value. The main control platform determines the target rotation angle of the wheat straw based on the rotation angle of the magnetic component.
[0099] Step 8: The main control platform compares the target rotation angle with the updated preset rotation angle.
[0100] Step 9: If the target rotation angle is less than or equal to the preset rotation angle, the main control platform will keep the microphone muted and will not pick up the user's voice. If the target rotation angle is greater than the preset rotation angle, the main control platform will switch the microphone to on and begin picking up the user's voice.
[0101] In one exemplary embodiment, such as Figure 4 As shown, steps 402 to 408 are included. Wherein:
[0102] Step 402: The headset includes at least a headset body and a microphone connected to the headset body. An angle sensor is installed in the headset body, and a microphone is installed in the microphone. In response to a rotation trigger operation on the microphone, the angle sensor detects a first magnetic field induction value when the microphone is rotated. In response to a stop operation on the microphone, the angle sensor detects a second magnetic field induction value when the microphone is stopped. Based on the detected first and second magnetic field induction values, a change in the magnetic field induction value is determined. The rotation angle of the magnetic component is determined based on the change in the magnetic field induction value, and a target rotation angle of the microphone is determined based on the rotation angle of the magnetic component. The change in the magnetic field induction value is caused by the microphone driving the magnetic component to rotate.
[0103] Step 404: Obtain the preset rotation angle set for the headphones;
[0104] Step 406: Compare the target rotation angle with the preset rotation angle; if the target rotation angle is less than or equal to the preset rotation angle, keep the microphone in the microphone stick in a mute state; if the target rotation angle is greater than the preset rotation angle, switch the microphone in the microphone stick from a mute state to an on state.
[0105] Step 408: In response to the application's setting of the preset rotation angle trigger operation, update the preset rotation angle to obtain the updated preset rotation angle, and save the updated preset rotation angle.
[0106] It should be understood that although the steps in the flowcharts of the above embodiments 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 above embodiments 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.
[0107] Based on the same inventive concept, this application also provides a headphone adjustment device for implementing the headphone adjustment method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more headphone adjustment device embodiments provided below can be found in the limitations of the headphone adjustment method described above, and will not be repeated here.
[0108] In one exemplary embodiment, such as Figure 5 As shown, a headphone adjustment device 500 is provided. The headphone includes at least a headphone body and a straw connected to the headphone body. An angle sensor is disposed in the headphone body, and a microphone is disposed in the straw. The device includes: a detection module 502, an acquisition module 504, and an adjustment module 506, wherein:
[0109] The detection module 502 is used to control the angle sensor to detect the target rotation angle of the wheat stalk in response to the rotation operation of the wheat stalk.
[0110] The acquisition module 504 is used to acquire the preset rotation angle set for the headphones;
[0111] The adjustment module 506 is used to adjust the working state of the microphone in the straw according to the target rotation angle and the preset rotation angle.
[0112] In one embodiment, the detection module 502 is configured to, in response to the rotation of the straw, control the angle sensor to detect the change in the magnetic field induction value, determine the rotation angle of the magnetic component based on the change in the magnetic field induction value, and determine the target rotation angle of the straw based on the rotation angle of the magnetic component, wherein the change in the magnetic field induction value is caused by the straw driving the magnetic component to rotate.
[0113] In one embodiment, the detection module 502 is configured to, in response to a rotation triggering operation on the wheat stalk, control the angle sensor to detect a first magnetic field induction value when the rotation triggering operation on the wheat stalk is performed; in response to a rotation stop operation on the wheat stalk, control the angle sensor to detect a second magnetic field induction value when the rotation stop operation on the wheat stalk is performed; and determine the change value of the magnetic field induction value based on the detected first magnetic field induction value and second magnetic field induction value.
[0114] In one embodiment, the adjustment module 506 is used to compare the target rotation angle with the preset rotation angle; when the target rotation angle is less than or equal to the preset rotation angle, the microphone in the straw is kept in a mute state; when the target rotation angle is greater than the preset rotation angle, the microphone in the straw is switched from a mute state to an on state.
[0115] In one embodiment, the headphone adjustment device further includes an update module 508, which updates the preset rotation angle in response to a setting trigger operation for the preset rotation angle in the application, obtains the updated preset rotation angle, and saves the updated preset rotation angle.
[0116] In another embodiment, such as Figure 6 As shown, Figure 6The following is a structural block diagram of a headphone adjustment device 500 in another embodiment, including a detection module 502, an acquisition module 504, and an adjustment module 506. The headphone adjustment device 500 further includes an update module 508, which updates the preset rotation angle in response to a setting trigger operation for a preset rotation angle in an application, obtains the updated preset rotation angle, and saves the updated preset rotation angle.
[0117] The various modules in the aforementioned headphone adjustment device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0118] Based on the same inventive concept, this application also provides a headset for implementing the headset adjustment method described above. The solution provided by this headset is similar to the solution described in the above method; therefore, the specific limitations of one or more headset embodiments provided below can be found in the limitations of the headset adjustment method described above, and will not be repeated here.
[0119] In one embodiment, reference Figure 7 A type of headset, characterized in that it comprises: a headset body, and a straw connected to the headset body via a fixed shaft. The headset body includes at least a main board, on which an angle sensor is provided, and a magnetic component is provided at the bottom of the straw. When the straw rotates around the fixed shaft, it drives the magnetic component to rotate synchronously with the straw.
[0120] Specifically, the main body of the headphones is the core component, housing the motherboard R4, battery, speakers, and other electronic components to provide wearing comfort. The microphone stick R5 is the part held by the user, connected to the main body via a fixed shaft R6. The user can adjust the microphone position by rotating the microphone stick R5. A magnetic component R1 is fixed to the bottom of the microphone stick R5; when the microphone stick R5 rotates, the magnetic component R1 also rotates. The motherboard R4 is the physical component inside the main body, housing the angle sensor R2, main control chip, and other electronic components. The main control platform on the motherboard R4 is responsible for processing and controlling the operation of these components. The angle sensor R2, mounted on the motherboard R4, detects changes in the magnetic field from the magnetic component R1. When the microphone stick R5 rotates, the position and angle of the magnetic component R1 change, causing a change in the magnetic field. The angle sensor detects these changes and transmits the data to the main control platform. The magnetic component R1, fixed to the bottom of the microphone stick R5, generates a magnetic field. When the microphone stick R5 rotates, the position and angle of the magnetic component R1 change, causing a change in the magnetic field. These changes are detected by the angle sensor R2 and used to calculate the rotation angle of the microphone stick R5.
[0121] Optionally, a rubber component R3 can be installed between the straw and the fixed shaft. When the straw rotates, the rubber component R3 provides a certain degree of damping, making the tactile feedback during rotation more pronounced and improving the feel of operation. This also reduces vibration during rotation, enhancing the user experience.
[0122] Because of its highly sensitive magnetic field sensitivity, the system can detect minute changes in rotation angle, providing high-resolution detection results. Through the cooperation of magnetic components and an angle sensor, the rotation angle of the wheat stalk can be accurately detected, ensuring the system's high precision. Furthermore, users can simply rotate the wheat stalk to turn the microphone on or off, eliminating the need for complex button or menu settings, making operation more intuitive and convenient.
[0123] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data related to headphone adjustment. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a headphone adjustment method.
[0124] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0125] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0126] 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.
[0127] 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.
[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0129] Those skilled in the art will understand that all or part of the processes in the methods of 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. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, 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 databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may 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 to these.
[0130] 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.
[0131] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this 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 adjusting headphones, characterized in that, The headset includes at least a headset body and a straw connected to the headset body. An angle sensor is disposed in the headset body, and a microphone is disposed in the straw. The method includes: In response to the rotation operation of the wheat stalk, the angle sensor is controlled to detect the target rotation angle of the wheat stalk; Obtain the preset rotation angle set for the headphones; The working state of the microphone in the wheat straw is adjusted according to the target rotation angle and the preset rotation angle.
2. The method according to claim 1, characterized in that, A magnetic component is provided at the bottom of the straw. The straw and the magnetic component are connected to the headphone body through a fixed shaft. When the straw rotates around the fixed shaft, the magnetic component will rotate synchronously with the straw. The step of controlling the angle sensor to detect the target rotation angle of the wheat stalk in response to a rotation operation includes: In response to the rotation of the wheat stalk, the angle sensor is controlled to detect the change in the magnetic field induction value, the rotation angle of the magnetic component is determined based on the change in the magnetic field induction value, and the target rotation angle of the wheat stalk is determined based on the rotation angle of the magnetic component. The change in the magnetic field induction value is caused by the wheat stalk driving the magnetic component to rotate.
3. The method according to claim 2, characterized in that, The rotation operation includes at least one of a rotation trigger operation and a rotation stop operation; The step of controlling the angle sensor to detect changes in the magnetic field induction value in response to the rotation of the wheat stalk includes: In response to a rotation triggering operation on the wheat stalk, the angle sensor is controlled to detect a first magnetic field induction value when the rotation triggering operation on the wheat stalk is performed; In response to the rotation-stopping operation of the wheat stalk, the angle sensor is controlled to detect the second magnetic field induction value when the rotation-stopping operation of the wheat stalk is performed; Based on the detected first magnetic field induction value and the second magnetic field induction value, the change value of the magnetic field induction value is determined.
4. The method according to claim 1, characterized in that, The microphone's operating states include at least a mute state and a microphone on state; The step of adjusting the working state of the microphone in the wheat straw according to the target rotation angle and the preset rotation angle includes: Compare the target rotation angle with the preset rotation angle; When the target rotation angle is less than or equal to the preset rotation angle, the microphone in the straw is kept in the mute state; When the target rotation angle is greater than the preset rotation angle, the microphone in the straw is switched from the mute state to the on state.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: In response to a trigger operation in the application for setting a preset rotation angle, the preset rotation angle is updated to obtain the updated preset rotation angle, and the updated preset rotation angle is saved.
6. A type of headset, characterized in that, include: The headset body comprises an earphone body and a straw connected to the earphone body via a fixed shaft. The earphone body includes at least a main board with an angle sensor. A magnetic component is provided at the bottom of the straw. When the straw rotates around the fixed shaft, it causes the magnetic component to rotate synchronously with the straw.
7. A headphone adjustment device, characterized in that, The headset includes at least a headset body and a straw connected to the headset body. An angle sensor is disposed in the headset body, and a microphone is disposed in the straw. The device includes: A detection module is used to control the angle sensor to detect the target rotation angle of the wheat stalk in response to the rotation operation of the wheat stalk; The acquisition module is used to acquire a preset rotation angle set for the headphones; An adjustment module is used to adjust the working state of the microphone in the wheat straw according to the target rotation angle and the preset rotation angle.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
9. 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 5.
10. 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 5.