Wireless earphone control method and device, equipment and storage medium
By detecting the wireless earbuds' out-of-case status and wearing status, the system automatically determines and switches function modes, solving the problem of needing to manually activate function modes for wireless earbuds, thus improving control efficiency and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2026-03-13
AI Technical Summary
Activating the wireless headphone function requires manual operation by the user, resulting in low control efficiency.
By detecting whether the earphones are out of their case and being worn, the system automatically determines the target function mode and controls the operation of the earphones, including turning the speakers and microphone on or off.
It enables automatic switching of wireless headphone function modes, improves control efficiency, simplifies the operation process, and enhances the user experience.
Smart Images

Figure CN121665150A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and in particular to a wireless earphone control method, apparatus, device, and storage medium. Background Technology
[0002] With the rapid development of science and technology, people are increasingly pursuing smarter, more functional, and more human-centered lifestyles. Wireless headphones, as the primary means of transmitting audio signals in wearable devices, are widely used.
[0003] Traditional wireless headphones are primarily used for wireless music playback and voice calls. However, as user demands increase, the functional requirements for wireless headphones are also growing, and their limitations in various application scenarios are becoming increasingly apparent. Wireless headphones are offering more diverse functions, such as recording, voice enhancement, and hearing aids for different scenarios. However, when a user needs to use a specific function mode of the wireless headphones, they must manually activate the corresponding mode, resulting in relatively low control efficiency. Summary of the Invention
[0004] This application provides a wireless headphone control method, apparatus, device, and storage medium to solve the technical problem in the related art that the activation of wireless headphone function modes requires manual operation by the user, resulting in low control efficiency of wireless headphone, and can effectively improve the control efficiency of wireless headphone.
[0005] In a first aspect, embodiments of this application provide a wireless earphone control method applied to an earphone case, the earphone case being used to house a first earphone and a second earphone, comprising:
[0006] Determine the out-of-box status of the first and second earphones, as well as the first wearing status of the first earphone and the second wearing status of the second earphone;
[0007] The target functional mode is determined based on the box-out state, the first wearing state, and the second wearing state.
[0008] The operation of the first and second earphones is controlled based on the target functional mode.
[0009] In a second aspect, embodiments of this application provide a wireless earphone control device applied to an earphone case, the earphone case being used to house a first earphone and a second earphone, including a status determination module, a mode determination module, and an earphone control module, wherein:
[0010] The state determination module is used to determine the out-of-box state of the first earphone and the second earphone, as well as the first wearing state of the first earphone and the second wearing state of the second earphone.
[0011] The mode determination module is used to determine the target functional mode based on the box-out state, the first wearing state, and the second wearing state.
[0012] The headphone control module is used to control the operation of the first and second headphones based on the target function mode.
[0013] In a third aspect, embodiments of this application provide a wireless earphone control device, including: a memory and one or more processors;
[0014] The memory is used to store one or more programs;
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the wireless headset control method as described in the first aspect.
[0016] In a fourth aspect, embodiments of this application provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to perform the wireless earphone control method as described in the first aspect.
[0017] This application embodiment determines the appropriate target function mode based on the out-of-case state of the first and second earphones, the first wearing state of the first earphone, and the second wearing state of the second earphone, and controls the operation of the first and second earphones based on the target function mode. It automatically determines the appropriate target function mode based on the out-of-case state and wearing state of the earphones and controls the operation of the first and second earphones respectively, without requiring the user to manually activate the wireless earphone function mode, thus effectively improving the control efficiency of the wireless earphones. Attached Figure Description
[0018] Figure 1 This is a flowchart of a wireless earphone control method provided in an embodiment of this application;
[0019] Figure 2 This is a flowchart of another wireless earphone control method provided in an embodiment of this application;
[0020] Figure 3 This is a schematic diagram of the structure of a wireless earphone control device provided in an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of the structure of a wireless earphone control device provided in an embodiment of this application. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but additional steps not included in the drawings may also be present. The above processes can correspond to methods, functions, procedures, subroutines, subroutines, etc.
[0023] The wireless earphone control method provided in this application can determine the appropriate target function mode based on the earphone's out-of-case state and wearing state, and control the operation of the first and second earphones respectively, thereby improving the control efficiency of the wireless earphone. In existing wireless earphone control schemes, users generally need to connect to the earphone via a mobile phone or other means and then switch the earphone's function mode on the mobile phone. Switching function modes depends on the mobile phone, which is cumbersome and results in low control efficiency of the wireless earphone. Based on this, this application provides a wireless earphone control method according to an embodiment to solve the technical problem that the activation of existing wireless earphone function modes requires manual operation by the user, resulting in low control efficiency of the wireless earphone.
[0024] Figure 1 A flowchart of a wireless earphone control method provided in an embodiment of this application is given. The wireless earphone control method provided in this application embodiment can be executed by a wireless earphone control device, which can be implemented by hardware and / or software and integrated into a wireless earphone control device (e.g., a wireless earphone).
[0025] The following description uses a wireless earphone control device to execute a wireless earphone control method as an example. (Reference) Figure 1 The wireless earphone control method includes:
[0026] S110: Determine the out-of-box status of the first and second earphones, as well as the first wearing status of the first earphone and the second wearing status of the second earphone.
[0027] The wireless earphone control method provided in this solution can be applied to an earphone case. The earphone case can be used to store a first earphone and a second earphone (for example, the first earphone and the second earphone correspond to the left earphone and the right earphone, respectively). The earphone case is equipped with an earphone case battery, and both the first earphone and the second earphone are equipped with earphone batteries. The earphone case can also charge the first earphone and the second earphone. For example, when the first earphone and / or the second earphone are stored in the earphone case, the earphone case battery charges the earphone batteries of the first earphone and / or the second earphone (for example, the earphone case battery charges the earphone batteries of the first earphone and / or the second earphone through contacts that contact the first earphone and / or the second earphone, or the earphone case can wirelessly charge the first earphone and / or the second earphone through a charging coil). The earphone case, the first earphone, and the second earphone are equipped with wireless communication modules (such as Bluetooth, WiFi, and other wireless communication modules). The first earphone and / or the second earphone can be wirelessly connected to the earphone case through the wireless communication modules.
[0028] In one embodiment, the first and second earphones provided by this solution may be configured with speakers and microphones. The speakers may be used to output sound (e.g., music), and the microphones may be used to collect ambient sound. The collected sound may be sent to the earphone case, which may perform voice enhancement, noise reduction, and ambient sound enhancement processing based on the collected sound, and send corresponding control information or audio information to the earphones. In one embodiment, the first and second earphones may be equipped with multiple microphones, which may be used to receive human voices and ambient sounds respectively. The earphone case may perform voice enhancement based on the human voices collected by different microphones, or perform noise reduction or ambient sound enhancement processing based on the collected ambient sounds. For example, a main microphone and an auxiliary microphone may be provided on the earphones, where the main microphone may be used to collect human voices and the auxiliary microphone may be used to collect ambient sounds. In different functional modes, the earphone speakers and microphones may be in different on or off states.
[0029] For example, in clip-on headphones, the headphones are equipped with front and rear chambers connected by a memory metal and soft rubber bridge. The main microphone and auxiliary microphone can be located in the front and rear chambers respectively, the speaker can be located in the front chamber, and the headphone battery can be located in the rear chamber. When the user wears the headphones, the soft rubber clamp on the headphones is fixed to the auricle, creating an open listening environment. Furthermore, through the coordinated work of the front and rear microphones and preset noise reduction algorithms, ambient noise can be canceled out, providing clear voice call quality. In voice enhancement mode, the wireless headphones can effectively filter background noise, enhance the voice signal, and provide a better listening experience.
[0030] The wireless earbuds provided in this solution can be true wireless stereo (TWS) earbuds. The first and second earbuds can be clip-on earbuds, in-ear earbuds, semi-in-ear earbuds, open-back (earbud-style) earbuds, etc. Optionally, the earbud case and / or earbuds (including the first and second earbuds) are equipped with a wireless communication module, which allows the earbud case and / or earbuds to connect to external devices (such as mobile phones, tablets, or other computer devices with wireless connectivity) via the wireless communication module.
[0031] For example, the out-of-box state of the first and second earphones is determined, as well as the first wearing state of the first earphone and the second wearing state of the second earphones are determined.
[0032] The "out of case" status indicates whether the corresponding earbuds (first and / or second earbuds) have left the charging case (i.e., when the earbuds leave the charging case, they are not stored in the charging case). The out-of-case status can include both "out of case" and "not out of case". Optionally, the out-of-case status can be determined by the connection between the earbuds and the charging port on the charging case (e.g., a pogo-pin connection point), by the charging status of the earbuds, or by an earbud presence detection module (e.g., a built-in switch, a magnetic sensor, etc.) on the charging case.
[0033] Wearing status (including first wearing status and second wearing status) can be used to indicate whether the headphones are being worn by the user. For example, when the headphones are correctly worn on the user's ears, the wearing status is "wearing," and when the user is not wearing the headphones (e.g., the user takes the headphones out of the headphone case, but the headphones are clipped to clothing or placed on a table), the wearing status is "not wearing." Optionally, the wearing status of the headphones can be determined by a wearing detection module (e.g., a capacitive sensor, an optical sensor, etc.) on the headphones.
[0034] S120: Determine the target functional mode based on the box-out state, the first wearing state, and the second wearing state.
[0035] For example, different functional modes can be pre-configured for different combinations of the box-out state, the first wearing state, and the second wearing state. After determining the box-out state, the first wearing state, and the second wearing state, a target functional mode can be determined from a plurality of pre-set functional modes based on the box-out state, the first wearing state, and the second wearing state. In one embodiment, the functions to be provided to the user can be determined based on different combinations of the box-out state, the first wearing state, and the second wearing state corresponding to different usage scenarios, and the functional modes corresponding to the combinations of the box-out state, the first wearing state, and the second wearing state can be configured. Optionally, the functional modes corresponding to different combinations of the box-out state, the first wearing state, and the second wearing state can be default functional modes or user-configured functional modes.
[0036] In different functional modes, the first and second earpieces can be controlled in different ways. For example, in different functional modes, the speaker and microphone in the earpieces can be turned on or off. Optionally, the speaker and microphone in the earpieces can be turned on or off simultaneously, or the microphone can be turned off or on while the speaker is turned on or off.
[0037] S130: Controls the operation of the first and second earpieces based on the target function mode.
[0038] For example, after determining the target functional mode, the operation of the first and second earpieces can be controlled according to the target functional mode. For instance, the speakers and microphones in the first and second earpieces can be turned on or off according to the target functional mode, automatically achieving the switching of the corresponding target function.
[0039] As described above, by determining the target function mode based on the out-of-case state of the first and second earphones, the first wearing state of the first earphone, and the second wearing state of the second earphone, and controlling the operation of the first and second earphones based on the target function mode, the system automatically determines the appropriate target function mode based on the out-of-case state and wearing state of the earphones and controls the operation of the first and second earphones respectively. This eliminates the need for the user to manually activate the wireless earphone function mode, effectively improving the control efficiency of the wireless earphones.
[0040] Based on the above embodiments, Figure 2 A flowchart of another wireless earphone control method provided in an embodiment of this application is given, which is a concretization of the above-described wireless earphone control method. (Reference) Figure 2 The wireless earphone control method includes:
[0041] S210: Determine the out-of-case status of the first and second earphones based on the connection status of the first and second earphones in the earphone case and / or the earphone detection result output by the magnetic sensor in the earphone case.
[0042] In one embodiment, the first and / or second earbuds have different connection states when they are stored in the earphone case and when they are removed from the earphone case (i.e., when they are not stored in the earphone case). For example, when the first and / or second earbuds are stored in the earphone case, the earphone case can detect their wired connection to the first and / or second earbuds; when the first and / or second earbuds are removed from the earphone case, the earphone case does not detect their wired connection to the first and / or second earbuds. Based on this, the out-of-case state of the first and second earbuds can be determined according to their connection state in the earphone case.
[0043] For example, when a connection between the first and second earbuds is detected, the out-of-box status of both earbuds is determined to be "earbuds not out of the box." When a connection between the first earbuds is detected but not between the second earbuds, the out-of-box status of the first earbuds is determined to be "earbuds not out of the box," and the out-of-box status of the second earbuds is "earbuds out of the box." When a connection between the second earbuds is detected but not between the first earbuds, the out-of-box status of the first earbuds is determined to be "earbuds out of the box," and the out-of-box status of the second earbuds is "earbuds not out of the box." When no connection between the first and second earbuds is detected, the out-of-box status of both earbuds is determined to be "earbuds out of the box." This solution accurately determines the out-of-box status of the first and second earbuds based on their connection status in the earbud case, thus more accurately determining the target functional mode and improving the control effect of the wireless earbuds.
[0044] In one embodiment, a magnetic sensor (e.g., a Hall sensor) can be placed in the headphone case. When the headphones are stored in the case, the magnetic sensor can detect their presence. Optionally, at least one magnetic sensor can be placed in the headphone case corresponding to the storage positions of the first and second headphones, respectively. The magnetic sensor at each position can detect whether a headphone is detected at its corresponding location. For example, the magnetic sensor can output a headphone detection result indicating the presence or absence of headphones when it detects or does not detect them. Optionally, the magnetic sensor can represent different headphone detection results by outputting detection signals of different voltage or current values to the headphone case processor. Based on this, the out-of-case status of the first and second headphones can be determined according to the headphone detection results output by the magnetic sensors in the headphone case.
[0045] For example, if the headphone detection result shows that both the first and second earphones are detected, then the out-of-box status for both earphones is determined to be "earphones not out of the box." If the headphone detection result shows that the first earphone is detected but the second earphone is not detected, then the out-of-box status for the first earphone is determined to be "earphones not out of the box," and the out-of-box status for the second earphone is determined to be "earphones out of the box." If the headphone detection result shows that the second earphone is detected but the first earphone is not detected, then the out-of-box status for the first earphone is determined to be "earphones out of the box," and the out-of-box status for the second earphone is determined to be "earphones not out of the box." If the headphone detection result shows that neither the first nor the second earphone is detected, then the out-of-box status for both earphones is determined to be "earphones out of the box." This solution determines the out-of-box status of the first and second earphones based on the headphone detection result output by the magnetic sensor in the headphone case, which can more accurately determine the target functional mode and improve the control effect of wireless headphones.
[0046] In one embodiment, the out-of-case status of the first and second earbuds can be determined by combining the connection status of the first and second earbuds in the earphone case and the earphone detection result output by the magnetic sensor in the earphone case. For example, if the earphone case does not detect the connection with the earbuds, and the earphone detection result output by the magnetic sensor at the corresponding position is "earphone not detected," the corresponding earbud is considered to be out of the case. If the earphone case detects the connection with the earbuds, and / or the earphone detection result output by the magnetic sensor at the corresponding position is "earphone detected," the corresponding earbud is considered to be not out of the case. By combining the connection status of the first and second earbuds in the earphone case and the earphone detection result output by the magnetic sensor in the earphone case to determine the out-of-case status, the target functional mode can be determined more accurately, improving the control effect of wireless earphones.
[0047] S220: Obtain the first capacitance detection result of the first capacitance sensor in the first earphone, and / or the first optical detection result of the first optical sensor in the first earphone; determine the first wearing state of the first earphone based on the first capacitance detection result and / or the first optical detection result.
[0048] In one embodiment, a first capacitance sensor (e.g., connected to the earphone processor in the first earphone) can be provided in the first earphone. The first capacitance sensor outputs different first capacitance detection results when in contact with or near the skin, and when away from the skin. For example, when the first capacitance sensor is in contact with or near the skin, its capacitance value changes. The first wearing state of the first earphone can be determined based on the first capacitance detection results corresponding to different capacitance value changes. For example, when the detected capacitance indicated by the first capacitance detection result reaches a set capacitance threshold, the first earphone is considered to be in the wearing state; when the detected capacitance indicated by the first capacitance detection result does not reach the set capacitance threshold, the first earphone is considered to be in the wearing state. When a user wears the first earphone, the capacitance of the first capacitance sensor changes due to contact with the user's skin. When the detected capacitance indicated by the first capacitance detection result reaches the set capacitance threshold, the first wearing state of the first earphone can be accurately detected. This solution accurately determines the first wearing state of the first earphone through the first capacitance detection result of the first capacitance sensor in the first earphone, which can more accurately determine the target functional mode and improve the control effect of the wireless earphone.
[0049] In one embodiment, a first optical sensor (e.g., an optical in-ear detection sensor) can be provided in the first earphone. The first optical sensor can be connected to an earphone processor in the first earphone, and the earphone processor can be wirelessly connected to both the earphone and the processor. The first optical sensor detects whether an object is obstructing it by emitting laser light and receiving reflected light. The first optical sensor outputs different first optical detection results depending on whether an object is obstructing it. The first wearing state of the first earphone can be determined based on whether the first optical detection result indicates obstruction. For example, if the first optical detection result indicates obstruction, the first earphone is considered to be in a wearing state; if the first optical detection result indicates no obstruction, the first earphone is considered to be in a non-wearing state. This solution accurately determines the first wearing state of the first earphone through the first optical detection result of the first optical sensor in the first earphone, which can more accurately determine the target functional mode and improve the control effect of the wireless earphone.
[0050] In one embodiment, the first wearing state of the first earphone can be determined by combining the first capacitance detection result and the first optical detection result. For example, when the first capacitance detection result indicates that the detected capacitance reaches a set capacitance threshold, and the first optical detection result indicates that it is blocked (e.g., the user is wearing the first earphone normally), the first earphone is considered to be in a wearing state; when the first capacitance detection result indicates that the detected capacitance does not reach the set capacitance threshold, and the first optical detection result indicates that it is not blocked (e.g., the user places the first earphone on a table), the first earphone is considered to be in a non-wearing state; when the first capacitance detection result indicates that the detected capacitance does not reach the set capacitance threshold, and the first optical detection result indicates that it is blocked (e.g., the user fixes the first earphone to clothing), or when the first capacitance detection result indicates that the detected capacitance reaches the set capacitance threshold, and the first optical detection result indicates that it is not blocked (e.g., the user holds the first earphone in their hand), the first earphone is considered to be in a non-wearing state. By combining the first capacitance detection result and the first optical detection result to determine the first wearing state of the first earphone, the target functional mode can be determined more accurately, improving the control effect of the wireless earphone.
[0051] S230: Obtain the second capacitance detection result of the second capacitance sensor in the second earphone, and / or the second optical detection result of the second optical sensor in the second earphone; determine the second wearing state of the second earphone based on the second capacitance detection result and / or the second optical detection result.
[0052] In one embodiment, a second capacitance sensor (e.g., connected to the earphone processor in the second earphone) can be installed in the second earphone. The second capacitance sensor outputs different capacitance detection results when in contact with or near the skin, and when away from the skin. For example, when the second capacitance sensor is in contact with or near the skin, its capacitance value changes. The second wearing state of the second earphone can be determined based on the different capacitance detection results corresponding to these changes. For instance, when the detected capacitance indicated by the second capacitance detection result reaches a set capacitance threshold, the second earphone is considered to be in a wearing state; when the detected capacitance indicated by the second capacitance detection result does not reach the set capacitance threshold, the second earphone is considered to be in a non-wearing state. When a user wears the second earphone, the capacitance of the second capacitance sensor changes due to contact with the user's skin. When the detected capacitance indicated by the second capacitance detection result reaches the set capacitance threshold, the second wearing state of the second earphone can be accurately detected. This solution accurately determines the second wearing state of the second earphone through the second capacitance detection result of the second capacitance sensor in the second earphone, which can more accurately determine the target functional mode and improve the control effect of the wireless earphone.
[0053] In one embodiment, a second optical sensor (e.g., an optical in-ear detection sensor) can be incorporated into the second earphone. This second optical sensor can be connected to an earphone processor within the second earphone, which can wirelessly connect to both the earphone and the processor. The second optical sensor detects whether an object is obstructing it by emitting a laser and receiving reflected light. The second optical sensor outputs different detection results depending on whether an object is obstructing it. The second wearing state of the second earphone can be determined based on the obstruction indicated by the second optical detection result. For example, if the second optical detection result indicates obstruction, the second earphone is considered to be in a wearing state; if the second optical detection result indicates no obstruction, the second earphone is considered to be in a non-wearing state. This solution accurately determines the second wearing state of the second earphone through the second optical detection result of the second optical sensor in the second earphone, enabling more accurate determination of the target functional mode and improving the control effect of the wireless earphone.
[0054] In one embodiment, the second wearing state of the second earphone can be determined by combining the second capacitance detection result and the second optical detection result. For example, when the second capacitance detection result indicates that the detected capacitance reaches a set capacitance threshold, and the second optical detection result indicates that it is blocked (e.g., the user is wearing the second earphone normally), the second earphone is considered to be in a wearing state; when the second capacitance detection result indicates that the detected capacitance does not reach the set capacitance threshold, and the second optical detection result indicates that it is not blocked (e.g., the user places the second earphone on a table), the second earphone is considered to be in a non-wearing state; when the second capacitance detection result indicates that the detected capacitance does not reach the set capacitance threshold, and the second optical detection result indicates that it is blocked (e.g., the user fixes the second earphone to clothing), or when the second capacitance detection result indicates that the detected capacitance reaches the set capacitance threshold, and the second optical detection result indicates that it is not blocked (e.g., the user holds the second earphone in their hand), the second earphone is considered to be in a non-wearing state. By combining the second capacitance detection result and the second optical detection result to determine the second wearing state of the second earphone, the target functional mode can be determined more accurately, improving the control effect of the wireless earphone.
[0055] S240: Determine the target functional mode based on the box-out state, the first wearing state, and the second wearing state.
[0056] In one possible embodiment, the wireless earphone control method provided by this solution determines the target functional mode based on the out-of-case state, the first wearing state, and the second wearing state, including at least one of the following: when the out-of-case state is earphone out of the case and both the first and second wearing states are not worn, the target functional mode is determined to be recording mode; when the out-of-case state is earphone out of the case and either the first or second wearing state is not worn, or either the second or first wearing state is worn, the target functional mode is hearing aid mode; when the out-of-case state is earphone out of the case and both the first and second wearing states are worn, the target functional mode is earphone mode.
[0057] For example, after determining the out-of-case state, the first wearing state, and the second wearing state of the first and second earphones, the target functional mode can be determined based on the out-of-case state, the first wearing state, and the second wearing state.
[0058] In one embodiment, when the earphones are out of the case (earphones removed from the case) and both the first and second wearing states are unwearing (e.g., when the user takes out the first and second earphones from the case but is not wearing them; in this case, the first and / or second earphones can be placed on a table or fixed to clothing, such as clipped to a collar), the target function mode can be determined as recording mode. This solution improves the control effect of wireless earphones by setting the target function mode to recording mode when the earphones are out of the case and neither earphone is worn, and then recording through both earphones.
[0059] In one embodiment, when the earphones are out of the case (earphones removed from the case), and the first or second wearing state is not worn, or the second or first wearing state is worn (e.g., the user takes out the first and second earphones from the case, wears the first earphone but not the second, or wears the second earphone but not the first; in this case, the unworn earphone can be placed on a table or fixed to clothing), the target function mode is determined to be the auxiliary hearing mode. This solution determines the target function mode as auxiliary hearing mode when the earphones are out of the case, one earphone is worn, and the other is not worn, utilizing the unworn earphone for auxiliary listening and improving the control effect of the wireless earphones.
[0060] In one embodiment, when the earphones are out of the case (i.e., the user takes out the first and second earphones from the case and puts them on), the target functional mode is determined to be earphone mode. This solution determines the target functional mode as earphone mode when both earphones are out of the case and correctly worn, enabling normal use of the wireless earphones, meeting the user's daily entertainment and call needs, and improving the control effect of the wireless earphones.
[0061] This solution determines the target function mode that is more suitable for the use scenario of wireless headphones by identifying the out-of-box state, the first wearing state, and the second wearing state, among recording mode, auxiliary listening mode, and headphone mode. This eliminates the need for users to manually switch function modes, thereby improving the control effect of wireless headphones.
[0062] In one embodiment, the wireless earphone control method provided by this solution determines the target function mode based on the out-of-case state, the first wearing state, and the second wearing state. Alternatively, it can be that when the out-of-case state is earphone out of the case, the first or second wearing state is not worn, or the second or first wearing state is worn, the target function mode is determined to be the environment enhancement mode.
[0063] For example, when the earphones are out of the case (earphones removed from the case), and the first or second wearing state is not worn, or the second or first wearing state is worn (e.g., the user takes out the first and second earphones from the case, wears the first earphone but not the second, or wears the second earphone but not the first; in this case, the unworn earphone can be placed on a table or fixed to clothing), the target functional mode is determined to be the ambient enhancement mode. This solution determines the target functional mode as ambient enhancement mode when the earphones are out of the case, one earphone is worn, and the other is not worn, using the unworn earphone for ambient enhancement assistance to improve the control effect of the wireless earphones.
[0064] S250: Controls the operation of the first and second earpieces based on the target function mode.
[0065] In one possible embodiment, the wireless earphone controller provided by this solution controls the operation of the first and second earphones based on a target function mode, including at least one of the following:
[0066] S251: When the target function mode is recording mode, control the first and second earphones to turn on their microphones for sound recording through the microphones of the first and second earphones.
[0067] S252: When the target function mode is the hearing aid mode, and the first wearing state is not worn and the second wearing state is worn, control the first earphone to turn on the microphone and control the second earphone to turn on the speaker, so as to collect sound through the first earphone and perform noise reduction processing and / or voice enhancement processing on the second earphone based on the collected sound information.
[0068] S253: When the target function mode is the hearing aid mode, and the first wearing state is wearing and the second wearing state is not wearing, control the second earphone to turn on the microphone and control the first earphone to turn on the speaker, so as to collect sound through the second earphone and perform noise reduction processing and / or voice enhancement processing on the first earphone based on the collected sound information.
[0069] S254: When the target function mode is headphone mode, control the first and second headphones to turn on their speakers for sound playback through the speakers of the first and second headphones.
[0070] For example, when the target function mode is recording mode, the microphones of the first and second earphones can be turned on to record sound, and the sound recording information sent by the first and second earphones can be received and saved.
[0071] For example, when a user needs to record audio (such as during interviews, meetings, classes, or speeches), they can remove the first and second earbuds from the headphone case. They can hold or place the earbuds in their hands. At this time, the case status is detected as "earbuds out of case," and both the first and second wearing states are "not worn." The microphones of the first and second earbuds can be activated while the speakers are muted, allowing audio recording to be performed through their microphones. This solution, by controlling the microphones of the first and second earbuds in recording mode, enables flexible activation of the wireless headphone's recording mode and improves the control effect of the wireless headphone.
[0072] In one embodiment, when the target function mode is the hearing aid mode, and the first wearing state is not wearing and the second wearing state is wearing (for example, in scenarios where it is necessary to hear human voices clearly, such as interviews, conversations, meetings, classes, speeches, etc., when the user needs to hear the other party's conversation, the user can wear the second earphone and point the microphone of the first earphone towards the other party), the first earphone is controlled to turn on the microphone, and the second earphone is controlled to turn on the speaker. At this time, sound can be collected through the first earphone, and noise reduction processing and / or human voice enhancement processing can be performed on the second earphone based on the collected sound information.
[0073] For example, noise information can be determined using the collected sound information, and a noise-reduced frequency (NRFM) can be generated based on this noise information. This NRFM is then sent to the second earphone for playback, thus canceling out environmental noise. Alternatively, human voice information can be determined using the collected sound, and human voice audio can be generated based on this information. This human voice audio is then sent to the second earphone for playback, thus enhancing the human voice. The noise information and human voice information can be separated from the collected sound information based on their corresponding frequency bands. This solution, by controlling the first earphone to collect sound in the target functional mode (audio-aid mode), and performing noise reduction and / or human voice enhancement processing on the second earphone based on the collected sound information, flexibly activates the wireless earphone's audio-aid mode, improving the control effect of the wireless earphone.
[0074] In one embodiment, when the target function mode is the hearing aid mode, and the second wearing state is not wearing and the first wearing state is wearing (e.g., in scenarios where it is necessary to hear human voices clearly, such as interviews, conversations, meetings, classes, speeches, etc., when the user needs to hear the other party's conversation, the user can wear the first earphone and point the microphone of the second earphone towards the other party), the second earphone is controlled to turn on the microphone, and the first earphone is controlled to turn on the speaker. At this time, sound can be collected through the second earphone, and noise reduction processing and / or human voice enhancement processing can be performed on the first earphone based on the collected sound information.
[0075] For example, noise information can be determined using the collected sound information, and a noise-reduced frequency (NRFM) can be generated based on this noise information. This NRFM is then sent to the first earphone for playback, thus canceling out environmental noise. Alternatively, human voice information can be determined using the collected sound, and human voice audio can be generated based on this information. This human voice audio is then sent to the first earphone for playback, thus enhancing the human voice. The noise information and human voice information can be separated from the collected sound information based on their corresponding frequency bands. This solution, by controlling the second earphone to collect sound in the target functional mode (audio-aid mode), and performing noise reduction and / or human voice enhancement processing on the first earphone based on the collected sound information, flexibly activates the wireless earphone's audio-aid mode, improving the control effect of the wireless earphone. Furthermore, in auxiliary hearing mode, sound is collected through the unworn earphone, amplified, and then sent to the other earphone for playback. This effectively reduces the feedback issues that can easily occur when traditional wireless earphones collect and play sound simultaneously through two earphones in auxiliary hearing mode. It also improves the tolerance of the speaker and microphone (current wireless earphones usually use speakers and microphones with lower tolerance to reduce feedback problems), further enhancing the audio playback and acquisition quality of wireless earphones.
[0076] In one embodiment, when the target function mode is headphone mode (e.g., the user removes the first and second earphones from the headphone case and wears them normally), the first and second earphones can be controlled to activate their speakers for sound playback, such as audio information sent from an external device like a mobile phone. Optionally, in the target function mode, the microphones of the first and second earphones can also be activated for noise reduction and / or voice enhancement. This solution flexibly activates the headphone mode of the wireless headphones by playing sound through the speakers of the first and second earphones when the target function mode is headphone mode, thus improving the control effect of the wireless headphones.
[0077] In one possible embodiment, the wireless earphone control method provided by this solution controls the operation of the first earphone and the second earphone based on a target functional mode, and may also include at least one of the following: when the target functional mode is an ambient enhancement mode, and the first wearing state is not worn and the second wearing state is worn, control the first earphone to turn on the microphone and control the second earphone to turn on the speaker, for sound acquisition through the first earphone, and perform ambient sound enhancement processing on the second earphone based on the acquired sound information; when the target functional mode is an ambient enhancement mode, and the first wearing state is worn and the second wearing state is not worn, control the second earphone to turn on the microphone and control the first earphone to turn on the speaker, for sound acquisition through the second earphone, and perform ambient sound enhancement processing on the first earphone based on the acquired sound information.
[0078] In one embodiment, when the target functional mode is ambient enhancement mode, and the first wearing state is not wearing and the second wearing state is wearing (e.g., when the user needs to hear ambient sounds clearly, they can wear the second earphone and point the microphone of the first earphone in the direction they need to hear), the first earphone is controlled to turn on its microphone, and the second earphone is controlled to turn on its speaker. Sound is collected through the first earphone, and ambient sound enhancement processing is performed on the second earphone based on the collected sound information. For example, the collected sound information, or amplified sound information, is sent to the second earphone for the first earphone to play the corresponding sound information, thereby enhancing the ambient sound and allowing the user to hear ambient sounds more clearly. This solution, by using the first earphone to collect sound in the target functional mode of ambient enhancement mode and performing ambient sound enhancement processing on the second earphone based on the collected sound information, flexibly enables the ambient enhancement mode of the wireless earphone, improving the control effect of the wireless earphone.
[0079] In one embodiment, when the target functional mode is ambient enhancement mode, and the second wearing state is not wearing and the first wearing state is wearing (e.g., when the user needs to hear ambient sounds clearly, they can wear the first earphone and point the microphone of the second earphone in the direction they need to hear), the second earphone is controlled to turn on its microphone, and the first earphone is controlled to turn on its speaker. Sound is collected through the second earphone, and ambient sound enhancement processing is performed on the first earphone based on the collected sound information. For example, the collected sound information, or amplified sound information, is sent to the first earphone for the second earphone to play the corresponding sound information, thereby enhancing the ambient sound and allowing the user to hear ambient sounds more clearly. This solution, by using the second earphone to collect sound in the target functional mode of ambient enhancement mode and performing ambient sound enhancement processing on the first earphone based on the collected sound information, flexibly enables the ambient enhancement mode of the wireless earphone, improving the control effect of the wireless earphone.
[0080] As described above, by determining the target function mode based on the out-of-case status of the first and second earbuds, as well as their first and second wearing states, and controlling their operation accordingly, the system automatically determines the appropriate target function mode and controls the operation of the first and second earbuds respectively. This eliminates the need for manual activation of the wireless earbuds' function modes by the user, effectively improving control efficiency. Accurately determining the out-of-case status of the first and second earbuds based on their connection status in the charging case allows for more precise determination of the target function mode, enhancing control performance. Furthermore, accurately determining the wearing state of the earbuds using the capacitance sensor within the earbuds further simplifies operation, improves user experience, and allows users to easily switch between different function modes, enjoying the multi-functional convenience of the earbuds. This system achieves automatic function switching in different states, meeting user needs in various scenarios. By automatically switching the microphone and speaker operating modes, it enables functions such as voice recording, voice enhancement, and hearing assistance. The wireless earbuds can automatically switch function modes based on different wearing conditions, adapting to various usage scenarios such as daily calls, music playback, recording, voice enhancement, and hearing aids, greatly improving the versatility and convenience of wireless earbuds. The automatic switching of function modes can also turn off the speaker when sound is not needed, preventing accidental leakage of privacy information. Simultaneously, in recording mode, the wireless earbuds can effectively record ambient sound, providing high-quality recording results. When the speaker is not needed, it can automatically turn off, reducing power consumption and extending usage time. Furthermore, the microphone and speaker operating status can be adjusted according to the usage scenario, further optimizing power management.
[0081] Figure 3 A schematic diagram of a wireless earphone control device according to an embodiment of this application is provided. This wireless earphone control device can be applied to an earphone case, which is used to store a first earphone and a second earphone. (Reference) Figure 3 The wireless earphone control device includes a status determination module 31, a mode determination module 32, and an earphone control module 33.
[0082] The state determination module 31 is used to determine the out-of-box state of the first and second earphones, as well as the first wearing state of the first earphone and the second wearing state of the second earphones; the mode determination module 32 is used to determine the target function mode based on the out-of-box state, the first wearing state, and the second wearing state; and the earphone control module 33 is used to control the operation of the first and second earphones based on the target function mode.
[0083] As described above, by determining the target function mode based on the out-of-case state of the first and second earphones, the first wearing state of the first earphone, and the second wearing state of the second earphone, and controlling the operation of the first and second earphones based on the target function mode, the system automatically determines the appropriate target function mode based on the out-of-case state and wearing state of the earphones and controls the operation of the first and second earphones respectively. This eliminates the need for the user to manually activate the wireless earphone function mode, effectively improving the control efficiency of the wireless earphones.
[0084] In one possible embodiment, the state determination module 31 determines the ejection status of the first and second earphones, including:
[0085] The out-of-case status of the first and second earbuds is determined based on the connection status of the first and second earbuds in the earphone case and / or the earphone detection result output by the magnetic sensor in the earphone case.
[0086] In one possible embodiment, the state determination module 31 determines a first wearing state of the first earphone and a second wearing state of the second earphone, including:
[0087] Acquire the first capacitance detection result of the first capacitance sensor in the first earphone, and / or the first optical detection result of the first optical sensor in the first earphone; determine the first wearing state of the first earphone based on the first capacitance detection result and / or the first optical detection result;
[0088] Acquire the second capacitance detection result of the second capacitance sensor in the second earphone, and / or the second optical detection result of the second optical sensor in the second earphone; determine the second wearing state of the second earphone based on the second capacitance detection result and / or the second optical detection result.
[0089] In one possible embodiment, the mode determination module 32 determines the target functional mode based on the box-out state, the first wearing state, and the second wearing state, including at least one of the following:
[0090] When the earphones are out of the box and both the first and second wearing states are not worn, the target function mode is determined to be the recording mode.
[0091] When the earphone is out of the box, the first or second wearing state is not worn, or the second or first wearing state is worn, the target function mode is determined to be the auxiliary hearing mode.
[0092] If the earphones are out of the box and both the first and second wearing states are in use, then the target function mode is determined to be earphone mode.
[0093] In one possible embodiment, the mode determination module 32 determines the target functional mode based on the box-out state, the first wearing state, and the second wearing state, including:
[0094] When the earphone is out of the box, the first or second wearing state is not worn, or the second or first wearing state is worn, the target function mode is determined to be the ambient enhancement mode.
[0095] In one possible embodiment, the headphone control module 33 controls the operation of the first and second headphones based on a target function mode, including at least one of the following:
[0096] When the target function mode is recording mode, control the first and second earphones to turn on their microphones for sound recording through the microphones of the first and second earphones;
[0097] When the target function mode is the hearing aid mode, and the first wearing state is not wearing and the second wearing state is wearing, the microphone of the first earphone is turned on and the speaker of the second earphone is turned on, so as to collect sound through the first earphone and perform noise reduction processing and / or human voice enhancement processing on the second earphone based on the collected sound information.
[0098] When the target function mode is the hearing aid mode, and the first wearing state is wearing and the second wearing state is not wearing, the second earphone is controlled to turn on the microphone, and the first earphone is controlled to turn on the speaker, so as to collect sound through the second earphone, and to perform noise reduction processing and / or human voice enhancement processing on the first earphone based on the collected sound information.
[0099] When the target function mode is headphone mode, control the first and second headphones to turn on their speakers for sound playback through the speakers of the first and second headphones.
[0100] In one possible embodiment, the headphone control module 33 controls the operation of the first and second headphones based on a target function mode, including:
[0101] When the target function mode is ambient enhancement mode, and the first wearing state is not wearing and the second wearing state is wearing, the microphone of the first earphone is turned on and the speaker of the second earphone is turned on, so as to collect sound through the first earphone and perform ambient sound enhancement processing on the second earphone based on the collected sound information.
[0102] When the target function mode is ambient enhancement mode, and the first wearing state is wearing and the second wearing state is not wearing, the second earphone is controlled to turn on the microphone, and the first earphone is controlled to turn on the speaker, so as to collect sound through the second earphone and perform ambient sound enhancement processing on the first earphone based on the collected sound information.
[0103] It is worth noting that in the embodiments of the wireless earphone control device described above, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this application.
[0104] This application also provides a wireless headphone control device, which can integrate the wireless headphone control apparatus provided in this application. Figure 4 This is a schematic diagram of the structure of a wireless earphone control device provided in an embodiment of this application. (Reference) Figure 4 The wireless headset control device includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 is used to store one or more programs; when one or more programs are executed by one or more processors 41, the one or more processors 41 implement the wireless headset control method provided in the above embodiments. The input device 43, output device 44, memory 42, and processor 41 can be connected via a bus or other means. Figure 4 Taking the example of a connection between China and Israel via a bus.
[0105] The memory 42, as a computing device readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the wireless headset control method provided in any embodiment of this application (e.g., the state determination module 31, mode determination module 32, and headset control module 33 in the wireless headset control device). The memory 42 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device, etc. Furthermore, the memory 42 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 42 may further include memory remotely located relative to the processor 41, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0106] Input device 43 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 44 may include display devices such as a display screen.
[0107] The processor 41 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 42, thereby realizing the wireless headset control method described above.
[0108] The wireless earphone control device, equipment, and computer provided above can be used to execute the wireless earphone control method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0109] This application embodiment also provides a storage medium storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to execute the wireless earphone control method provided in the above embodiment. The wireless earphone control method includes: determining the out-of-case state of a first earphone and a second earphone, as well as a first wearing state of the first earphone and a second wearing state of the second earphone; determining a target functional mode based on the out-of-case state, the first wearing state, and the second wearing state; and controlling the operation of the first earphone and the second earphone based on the target functional mode.
[0110] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROMs, floppy disks, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disks or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. Furthermore, storage media may reside in a first computer system in which a program is executed, or may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage media may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0111] Of course, the computer-executable instructions stored in the storage medium provided in the embodiments of this application are not limited to the wireless earphone control method provided above, but can also execute related operations in the wireless earphone control method provided in any embodiment of this application.
[0112] The wireless earphone control device, equipment, and storage medium provided in the above embodiments can execute the wireless earphone control method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the wireless earphone control method provided in any embodiment of this application.
[0113] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments provided herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. A wireless earphone control method, applied to an earphone case, the earphone case being used to store a first earphone and a second earphone, characterized in that, include: Determine the out-of-box status of the first and second earphones, as well as the first wearing status of the first earphone and the second wearing status of the second earphone; The target functional mode is determined based on the box-out state, the first wearing state, and the second wearing state. The operation of the first and second earphones is controlled based on the target functional mode.
2. The wireless earphone control method according to claim 1, characterized in that, Determining the out-of-box status of the first and second earphones includes: The out-of-case status of the first and second earphones is determined based on the connection status of the first and second earphones in the earphone case and / or the earphone detection result output by the magnetic sensor in the earphone case.
3. The wireless earphone control method according to claim 1, characterized in that, Determining the first wearing state of the first earphone and the second wearing state of the second earphone includes: Obtain the first capacitance detection result of the first capacitance sensor in the first earphone, and / or the first optical detection result of the first optical sensor in the first earphone; determine the first wearing state of the first earphone based on the first capacitance detection result and / or the first optical detection result; Obtain the second capacitance detection result of the second capacitance sensor in the second earphone, and / or the second optical detection result of the second optical sensor in the second earphone; determine the second wearing state of the second earphone based on the second capacitance detection result and / or the second optical detection result.
4. The wireless earphone control method according to claim 1, characterized in that, Determining the target functional mode based on the box-out state, the first wearing state, and the second wearing state includes at least one of the following: When the earphone is removed from the box and both the first and second wearing states are not worn, the target function mode is determined to be the recording mode. When the earphone is out of the case in the case of the first wearing state or the second wearing state being not worn, or the second wearing state or the first wearing state being worn, the target function mode is determined to be the hearing aid mode. When the earphone is removed from the case in the "out of case" state, and both the first and second wearing states are in the "wearing" state, the target function mode is determined to be earphone mode.
5. The wireless earphone control method according to claim 1, characterized in that, The step of determining the target functional mode based on the box-out state, the first wearing state, and the second wearing state includes: When the earphone is removed from the case in the out-of-case state, or when the first or second wearing state is not worn, or when the second or first wearing state is worn, the target function mode is determined to be the ambient enhancement mode.
6. The wireless earphone control method according to claim 1, characterized in that, The control of the operation of the first and second earphones based on the target functional mode includes at least one of the following: When the target function mode is recording mode, control the first and second earphones to turn on their microphones for sound recording through the microphones of the first and second earphones; When the target function mode is the hearing aid mode, and the first wearing state is not worn and the second wearing state is worn, the microphone of the first earphone is turned on, and the speaker of the second earphone is turned on, for the purpose of collecting sound through the first earphone, and performing noise reduction processing and / or voice enhancement processing on the second earphone based on the collected sound information. When the target function mode is the hearing aid mode, and the first wearing state is wearing and the second wearing state is not wearing, the second earphone is controlled to turn on the microphone, and the first earphone is controlled to turn on the speaker, for the purpose of collecting sound through the second earphone, and performing noise reduction processing and / or human voice enhancement processing on the first earphone based on the collected sound information. When the target function mode is headphone mode, control the first and second headphones to turn on their speakers for sound playback through the speakers of the first and second headphones.
7. The wireless earphone control method according to claim 1, characterized in that, The control of the operation of the first and second earphones based on the target functional mode includes: When the target function mode is the ambient enhancement mode, and the first wearing state is not wearing and the second wearing state is wearing, the first earphone is controlled to turn on the microphone, and the second earphone is controlled to turn on the speaker, so as to collect sound through the first earphone and perform ambient sound enhancement processing on the second earphone based on the collected sound information. When the target function mode is the ambient enhancement mode, and the first wearing state is wearing and the second wearing state is not wearing, the second earphone is controlled to turn on the microphone, and the first earphone is controlled to turn on the speaker, for sound acquisition through the second earphone, and ambient sound enhancement processing is performed on the first earphone based on the acquired sound information.
8. A wireless earphone control device, applied to an earphone case, the earphone case being used to store a first earphone and a second earphone, characterized in that, It includes a status determination module, a mode determination module, and a headphone control module, wherein: The state determination module is used to determine the out-of-box state of the first earphone and the second earphone, as well as the first wearing state of the first earphone and the second wearing state of the second earphone. The mode determination module is used to determine the target functional mode based on the box-out state, the first wearing state, and the second wearing state. The headphone control module is used to control the operation of the first and second headphones based on the target function mode.
9. A wireless earphone control device, characterized in that, include: Memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the wireless headset control method as described in any one of claims 1-7.
10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the wireless earphone control method as described in any one of claims 1-7.