Headphone-based control method, device, headphone, and computer-readable storage medium

The headset detection trigger operation and the delay control is performed in combination with the wearing state, which solves the problem of single and immediacy of headset control, and achieves more flexible terminal device operation.

CN115412802BActive Publication Date: 2025-08-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110580647.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-26
Publication Date
2025-08-19
Estimated Expiration
2041-05-26

AI Technical Summary

Technical Problem

The existing headphones have single and instantaneous control methods for terminal devices, which cannot meet the actual needs of users in certain scenarios, such as the inability to adjust their posture in time when taking pictures.

Method used

After the headset detects the trigger operation, it generates a control command and obtains the current wearing state, delays the operation in the target wearing state, and performs delay control in combination with the wearing state.

Benefits of technology

The delay control of the terminal devices by headphones is realized, which meets the control needs of users in different scenarios and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412802B_ABST
    Figure CN115412802B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a headset-based control method, device, headset, and computer-readable storage medium. The method is applied to a headset, and the method includes: when the headset detects a trigger operation, generating a control instruction according to the trigger operation; obtaining the current wearing state of the headset; when the current wearing state is the target wearing state, controlling the terminal device connected to the headset for communication to delay for a first time period according to the control instruction, and then executing the operation corresponding to the control instruction. The headset-based control method, device, headset, and computer-readable storage medium disclosed in the embodiment of the present application can perform delay control on the operation executed by the terminal device in combination with the wearing state of the headset, meet the user's actual needs for delay control, and enrich the headset's control method for the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart terminal technology, and in particular to a headset-based control method, device, headset, and computer-readable storage medium. Background Art

[0002] Headphones are essential accessories for mobile phones, tablets, smartwatches, and other devices. Users use them in many everyday situations, such as listening to music, watching videos, and making calls. Currently, headphones only allow users to perform simple controls on these devices, such as increasing or decreasing the volume. These limited controls fail to meet users' actual needs. Summary of the Invention

[0003] The embodiments of the present application disclose a headphone-based control method, device, headphone, and computer-readable storage medium, which can perform delay control on operations performed on a terminal device in combination with the wearing status of the headphone, thereby meeting the user's actual needs for delay control and enriching the control methods of the headphone on the terminal device.

[0004] The present application discloses an earphone-based control method, which is applied to the earphone, and the method includes:

[0005] When the headset detects a trigger operation, generating a control instruction according to the trigger operation;

[0006] Obtain the current wearing status of the headset;

[0007] In a case where the current wearing state is the target wearing state, the terminal device connected to the headset for communication is controlled according to the control instruction to delay for a first time period and then execute an operation corresponding to the control instruction.

[0008] The present application discloses an earphone-based control method, which is applied to a terminal device. The method includes:

[0009] receiving a control instruction sent by an earphone that is communicatively connected to the terminal device, where the control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is a target wearing state;

[0010] After waiting for a first time period according to the control instruction, an operation corresponding to the control instruction is performed.

[0011] The present application discloses an earphone-based control method, which is applied to a terminal device. The method includes:

[0012] receiving control information sent by a headset communicatively connected to the terminal device, the control information including a control instruction and status information, the control instruction being generated by the headset according to a detected trigger operation, and the status information being used to indicate a current wearing status of the headset;

[0013] If it is determined according to the state information that the current wearing state is the target wearing state, an operation corresponding to the control instruction is performed after waiting for a first time period.

[0014] The present application discloses an earphone-based control device, which is applied to an earphone. The device includes:

[0015] An instruction generating module, configured to generate a control instruction according to a triggering operation when the headset detects the triggering operation;

[0016] A status acquisition module, used to obtain the current wearing status of the headset;

[0017] The control module is used to control the terminal device connected to the headset for communication to delay for a first time period according to the control instruction and then execute the operation corresponding to the control instruction when the current wearing state is the target wearing state.

[0018] The present application discloses an earphone-based control device, which is applied to a terminal device. The device includes:

[0019] an instruction receiving module, configured to receive a control instruction sent by an earphone communicatively connected to the terminal device, wherein the control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is a target wearing state;

[0020] An execution module is configured to execute an operation corresponding to the control instruction after waiting for a first time period according to the control instruction.

[0021] The present application discloses an earphone-based control device, which is applied to a terminal device. The device includes:

[0022] an information receiving module, configured to receive control information sent by a headset communicatively connected to the terminal device, the control information including a control instruction and status information, the control instruction being generated by the headset based on a detected trigger operation, and the status information being used to indicate a current wearing status of the headset;

[0023] An execution module is configured to execute an operation corresponding to the control instruction after waiting for a first time period if it is determined that the current wearing state is a target wearing state according to the state information.

[0024] An embodiment of the present application discloses an earphone, comprising a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor implements the method applied to the earphone as described above.

[0025] An embodiment of the present application discloses a terminal device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any of the above methods applied to the terminal device.

[0026] An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method applied to headphones as described above is implemented.

[0027] An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method applied to a terminal device as described above is implemented.

[0028] The embodiments of the present application disclose an earphone-based control method, device, earphone, and computer-readable storage medium. When the earphone detects a trigger operation, it generates a control instruction according to the trigger operation and obtains the current wearing state of the earphone. When the current wearing state is the target wearing state, the terminal device connected to the earphone for communication is controlled to delay for a first time period according to the control instruction, and then executes the operation corresponding to the control instruction. The earphone can generate corresponding control instructions based on the trigger operation performed by the user, and can delay the operation performed by the terminal device in combination with the wearing state of the earphone, thereby meeting the user's actual needs for delay control and enriching the control method of the earphone over the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 This is a diagram of an application scenario of a headphone-based control method in one embodiment;

[0031] Figure 2 is a flow chart of a headphone-based control method in one embodiment;

[0032] Figure 3 is a flow chart of a headphone-based control method in another embodiment;

[0033] Figure 4AA schematic diagram of generating control instructions for headphones in one embodiment;

[0034] Figure 4B A schematic diagram of generating control instructions for headphones in another embodiment;

[0035] Figure 4C A schematic diagram of generating control instructions for headphones in another embodiment;

[0036] Figure 5 is a flow chart of a headphone-based control method in yet another embodiment;

[0037] Figure 6 is a block diagram of a headphone-based control device in one embodiment;

[0038] Figure 7 is a block diagram of a headphone-based control device in another embodiment;

[0039] Figure 8 A block diagram of a headphone-based control device according to another embodiment;

[0040] Figure 9 FIG. 4 is a structural block diagram of a headset in one embodiment. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0042] It should be noted that the terms "including," "having," and any variations thereof in the embodiments and drawings of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.

[0043] It should be understood that the terms "first," "second," and so on, used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are used solely to distinguish a first element from another element. For example, without departing from the scope of this application, a first earphone may be referred to as a second earphone, and similarly, a second earphone may be referred to as a first earphone. The first earphone and the second earphone are both earphones, but they are not the same earphone. In addition, it should be noted that the terms "plurality" and so on, used in the embodiments of this application, refer to two or more.

[0044] Figure 1 FIG. 1 is an application scenario diagram of a headphone-based control method in one embodiment. Figure 1 As shown, the headset 10 can establish a communication connection with the terminal device 20. The headset 10 may include headphones, in-ear headphones, earbud headphones, and ear-hook headphones. The structural form of the headset 10 is not limited here. The terminal device 20 may include but is not limited to a mobile phone, a tablet computer, a wearable device, a vehicle terminal, a PC (Personal Computer), etc. The headset 10 can establish a wireless communication connection with the terminal device 20 via Bluetooth, WiFi (Wireless Fidelity), or a wired communication connection via a data cable. The communication connection method is not limited here.

[0045] In related technologies, users can use headphones to control terminal device functions, such as switching to the next song, increasing or decreasing the volume, etc. However, the functions of controlling terminal devices using headphones are relatively limited, and the control of terminal devices by headphones is instantaneous, which makes it inconvenient for users to control in certain scenarios and fails to meet their actual needs. For example, when using headphones to control the camera function of a terminal device, the instantaneous control may cause the user to have no time to adjust their shooting posture, affecting the photo quality.

[0046] In an embodiment of the present application, when the headset 10 detects a trigger operation, it can generate a control instruction based on the trigger operation and obtain the current wearing state of the headset. If the current wearing state is the target wearing state, the headset 10 controls the terminal device 20 to delay for a first period of time according to the control instruction before executing the operation corresponding to the control instruction. The headset 10 can generate corresponding control instructions based on the trigger operation performed by the user and can delay the operation executed by the terminal device 20 based on the current wearing state of the headset 10, meeting the user's actual need for delay control and enriching the control methods of the headset over the terminal device.

[0047] like Figure 2 As shown, in one embodiment, a headphone-based control method is provided, which can be applied to the above-mentioned headphone. The method may include the following steps:

[0048] Step 210: When the headset detects a trigger operation, a control instruction is generated according to the trigger operation.

[0049] The triggering operation may be a pre-set interactive operation, and the headset may be provided with an operation detection device to detect the triggering operation performed by the user on the headset. The operation detection device may include, but is not limited to, physical buttons and sensors, and the sensors may include, but are not limited to, touch sensors, pressure sensors, distance sensors, light sensors, and acceleration sensors.

[0050] Different trigger operations can be set for different operation detection devices. For example, if the operation detection device is a physical button, the trigger operation can be the operation of pressing the physical button; if the operation detection device is an acceleration sensor, the trigger operation can be a shaking operation (shaking the earphones can generate corresponding acceleration), a tapping operation (tapping the earphones can generate corresponding acceleration), etc.; if the operation detection device is a touch sensor, the trigger operation can be a touch sliding operation, etc.

[0051] Different trigger operations can be designed for the same operation detection device, and different trigger operations can correspond to different control instructions. For example, the operation detection device is a touch sensor, and the trigger operation may include sliding in a first direction (such as the upward direction when the earphones are worn) and sliding in a second direction (such as the downward direction when the earphones are worn). Sliding in the first direction can be used to control the volume to increase, and sliding in the second direction can be used to control the volume to decrease. For another example, the operation detection device is a pressure sensor, and the trigger operation may include a pressing operation less than a pressure threshold and a pressing operation greater than or equal to the pressure threshold. The pressing operation less than the pressure threshold can be used to control the terminal device to switch to the next audio file to play, and the pressing operation greater than or equal to the pressure threshold can be used to control the terminal device to answer a call, etc.

[0052] In some embodiments, multiple different operation detection devices may also be provided in the headset at the same time. Each operation detection device can set one or more trigger operations. Different trigger operations can be used to trigger the control of different functions on the terminal device. The user can perform corresponding trigger operations on the headset according to the actual control functions required to achieve control of the corresponding functions on the terminal device.

[0053] The headset can generate corresponding control instructions based on the detected trigger operation to control the corresponding functions on the terminal device.

[0054] Step 220: Obtain the current wearing status of the headset.

[0055] The wearing state of headphones can include a worn state and an unworn state. The worn state refers to the state in which the user fits the headphones to the ears and can receive the voice signals output by the headphones. The unworn state refers to the state in which the headphones are not in close contact with the ears. Different types of headphones are worn in different ways. For example, the wearing method of headphones is to place the headphone handle on the top of the head and fit the headphones to the ears. The wearing method of in-ear headphones or earbud headphones is to insert the headphones into the ears. The wearing method of ear-hook headphones is to hang them on the auricle, etc., which are not limited here.

[0056] In some embodiments, the headset may be provided with a wearing detection sensor that can detect the current wearing state of the headset. The wearing detection sensor may include, but is not limited to, one or more of a light sensor, a posture sensor, a distance sensor, a temperature sensor, a heart rate sensor, and the like.

[0057] Optionally, the headset can obtain the ambient light brightness information of the headset through a light sensor, and when it is detected that the ambient light brightness information is less than or equal to the brightness threshold, it determines that the wearing state of the headset is a worn state; when it is detected that the ambient light brightness information is greater than the brightness threshold, it determines that the wearing state of the headset is a not worn state.

[0058] Optionally, the headset can obtain the posture information of the headset through a posture sensor. If the posture information matches the posture information when the headset is worn, it can be determined that the wearing state of the headset is worn. If the posture information does not match the posture information when the headset is worn, it can be determined that the wearing state of the headset is not worn.

[0059] Optionally, the earphone can obtain the distance information between the earphone and the human ear through the distance sensor, and when it is detected that the distance information is less than or equal to the distance threshold, it is determined that the wearing state of the earphone is worn; when it is detected that the distance information is greater than the distance threshold, it is determined that the wearing state of the earphone is not worn.

[0060] Optionally, the earphones can collect temperature information on the surface of the earphones through a temperature sensor, and when the temperature information is detected to be greater than or equal to a temperature threshold, it indicates that the earphones are in fit with the human ear, and the wearing state of the earphones can be determined to be a worn state. When the temperature information is detected to be less than the temperature threshold, it indicates that the earphones are not in fit with the human ear, and the wearing state of the earphones can be determined to be a not-worn state.

[0061] Optionally, the earphones can collect heart rate fluctuation signals through a heart rate sensor, and when a heart rate fluctuation signal is detected, determine that the wearing state of the earphones is a worn state; when no heart rate fluctuation signal is detected, determine that the wearing state of the earphones is a not worn state.

[0062] It should be noted that the headset can be equipped with one or more of the above sensors at the same time, and the data collected by multiple sensors can be used to jointly determine the wearing state of the headset, thereby improving the accuracy of wearing state detection. The above thresholds can be set according to actual needs or through multiple experiments.

[0063] In other embodiments, the headset may also use other methods to detect the wearing status of the headset, not limited to the above-mentioned detection method using a wearing detection sensor. For example, a microphone provided in the headset may collect sound signals, and the wearing status of the headset may be determined by changes in the sound signals. For example, when a sudden decrease in the noise signal collected by the feedforward microphone of the headset is detected, the wearing status of the headset may be determined to be the worn state. The embodiments of the present application do not specifically limit the method by which the headset detects the wearing status.

[0064] As a specific implementation, the headset may detect the current wearing state of the headset through the wearing state detection method described in the above embodiment each time a trigger operation is detected.

[0065] As another optional implementation, the headset may also utilize the wearing status detection method described in the above embodiment to detect the wearing status of the headset, and record the wearing status of the headset through a status tag. The recorded status tag may be updated each time a change in the wearing status of the headset is detected. The status tag may be composed of one or more of numbers, symbols, letters, Chinese characters, etc. For example, the status tag for the worn state may be 1, and the status tag for the unworn state may be 0, but the present invention is not limited thereto. Each time the headset detects a trigger operation, it may read the currently recorded status tag and determine the current wearing status of the headset based on the current status tag. In this way, the current wearing status of the headset can be obtained more quickly without waiting for the detection process, thereby improving efficiency.

[0066] Step 230: When the current wearing state is the target wearing state, the terminal device connected to the headset for communication is controlled to delay for a first time period according to the control instruction, and then perform an operation corresponding to the control instruction.

[0067] The target wearing state can be a pre-set wearing state, which can be a worn state or a not worn state. The user can set the target wearing state that requires delay control according to actual needs. The headset R&D personnel or the application R&D personnel of the terminal device can also set the target wearing state that requires delay control according to business needs.

[0068] In some embodiments, after the headset obtains the current wearing state, it can determine whether the current wearing state is the target wearing state. If the current wearing state is the target wearing state, the terminal device can be delayed to control the terminal device to execute the operation corresponding to the control instruction after a delay of a first time period. Optionally, the first time period can be set according to actual needs, such as 3 seconds, 2 seconds, 5 seconds, etc., which is not limited here. It should be noted that the first time period of delay can be counted from the moment the headset detects the triggering operation, or from the moment the headset determines that the current wearing state is the target wearing state, etc., which is not limited here.

[0069] In some embodiments, the headset controls the terminal device to delay execution of the operation corresponding to the control instruction for a first period of time based on the control instruction. After waiting for the first period of time, the headset sends the control instruction to the terminal device, where the control instruction can be used to instruct the terminal device to execute the operation corresponding to the control instruction. The headset can achieve delay control of the terminal device by delaying the transmission of the control instruction. This method does not require changing the instruction format between the headset and the terminal device; the terminal device still executes the corresponding operation upon receiving the control instruction, thus simplifying the control method.

[0070] In some embodiments, the headset controls the terminal device to delay the first time period according to the control instruction before executing the operation corresponding to the control instruction. Alternatively, the headset may send a control instruction to the terminal device, instructing the terminal device to execute the operation corresponding to the control instruction after waiting for the first time period. Optionally, after determining that the current wearing state is the target wearing state, the headset may add delay information to the control instruction and send the control instruction containing the delay information to the terminal device. Upon receiving the control instruction, the terminal device may parse the control instruction to obtain the delay information and, based on the delay information, execute the corresponding operation after waiting for the first time period.

[0071] In some embodiments, the headset and the terminal device may agree on a private command format. After determining that the current wearing state is the target wearing state, the headset may generate a control instruction according to the agreed command format and send the control instruction to the terminal device. After receiving the control instruction, the terminal device may parse the control instruction. If the command format of the control instruction is determined to be the agreed command format based on the parsing result, the terminal device may execute the operation corresponding to the control instruction after waiting for a first time period. Furthermore, the terminal device may send the parsed instruction information (such as information about the operation to be executed, delay information, etc.) to the corresponding application. The application will delay the operation based on the instruction information and then execute the corresponding operation after waiting for a first time period. The first time period can be the delay information carried in the control instruction or a delay time period pre-set in the terminal device, which is not limited here. Using this method, the headset can directly send control instructions without adding functional modules such as timers to record the delay time, which can reduce the cost of the headset.

[0072] In some embodiments, after obtaining the current wearing state, the headset may generate control information based on the control instruction and the current wearing state, and send the control information to the terminal device. The control information may include control instructions and status information. The status information may be used to indicate the current wearing state of the headset. Further, the status information may include the above-mentioned status tag. The control information may be used to instruct the terminal device to perform an operation corresponding to the control instruction after waiting for a first time period if the terminal device determines that the current wearing state of the headset is the target wearing state based on the status information. After receiving the control information, the terminal device may determine whether the current wearing state of the headset is the target wearing state based on the status information carried in the control information. If it is determined that the current wearing state of the headset is the target wearing state, the terminal device may perform an operation corresponding to the control instruction after waiting for the first time period.

[0073] In an embodiment of the present application, when the headset detects a trigger operation, a control instruction is generated according to the trigger operation, and the current wearing state of the headset is obtained. When the current wearing state is the target wearing state, the terminal device connected to the headset for communication is controlled to delay for a first time period according to the control instruction, and then executes the operation corresponding to the control instruction. The headset can generate corresponding control instructions based on the trigger operation performed by the user, and can delay the operation performed by the terminal device in combination with the wearing state of the headset, thereby meeting the user's actual needs for delay control and enriching the headset's control method for the terminal device.

[0074] like Figure 3 As shown, in one embodiment, another headphone-based control method is provided, which can be applied to the above-mentioned headphone and may include the following steps:

[0075] Step 302: Determine the current service scenario of the terminal device connected to the headset for communication.

[0076] The current service scenario of a terminal device can be determined based on the service operation currently being performed by the terminal device. This service operation refers to the operation that processes service data in the terminal device. This service data may include but is not limited to image data, voice data, video data, etc. Each application running on the terminal device can be considered a service module, and corresponding service operations can be performed through each running application. For example, a call operation can be performed through a call application, multimedia data can be played through a multimedia application, a camera application can be used to take photos, and a social application can be used to chat.

[0077] The business operations performed by the terminal device can be divided into one or more business scenarios. For example, the call operation can correspond to the call scenario, the shooting operation can correspond to the image shooting scenario, the multimedia data playback operation can correspond to the audio playback scenario, etc., but not limited to this.

[0078] In some embodiments, the headset can send a scenario information acquisition request to the terminal device. This scenario information acquisition request is used to request information related to the terminal device's current business scenario. This information may include, but is not limited to, one or more of information about the terminal device's currently running applications, information about currently executed tasks, and business data being processed. Application information may include application identifiers, application types, etc. Application identifiers can be used to uniquely identify applications. Application types may include, but are not limited to, social applications, multimedia applications, and communication applications. Task information may include, but is not limited to, the operations performed by the task and the data processed by the task.

[0079] After receiving the scene information acquisition request, the terminal device may send relevant information about the current business scene to the headset, and the headset may determine the current business scene of the terminal device based on the relevant information sent by the terminal device. Optionally, the headset may pre-store the corresponding relationship between relevant information and scenes. For example, the headset may store the corresponding relationship between applications and scenes, etc., and can obtain application information and find the business scene corresponding to the application information based on the corresponding relationship. For example, if the application currently running on the terminal device is a camera application, the corresponding business scene may be an image capture scene; if the application currently running on the terminal device is a music application, the corresponding business scene may be an audio playback scene, etc., but the present invention is not limited thereto.

[0080] Optionally, the headset can also directly determine the task currently executed by the terminal device based on the task information currently executed by the terminal device, and determine the business scenario corresponding to the currently executed task. For example, if the task currently executed by the terminal device is the task of answering incoming calls, the business scenario can be determined to be a call scenario. If the task currently executed by the terminal device is the task of processing images collected by the camera, the business scenario can be determined to be an image shooting scenario, etc., but not limited to this.

[0081] Optionally, after receiving the scene information acquisition request sent by the headset, the terminal device can also directly determine the current business scenario based on the currently running applications and executed tasks, and directly feedback the scene identifier of the business scenario to the headset. Different business scenarios can correspond to different scene identifiers, and the headset can determine the current business scenario of the terminal device based on the scene identifier.

[0082] In some embodiments, the terminal device may also proactively send a service notification to the headset. Optionally, the terminal device may send a service notification to the headset when launching a new application or a new task process. The service notification may include information related to the current service scenario of the terminal device, such as the newly launched application information, task information, etc., or may directly include a scenario identifier of the service scenario determined based on the newly launched application information, task information, etc. Upon receiving the service notification, the headset may determine the current service scenario of the terminal device based on the service notification.

[0083] In an embodiment of the present application, the business scenario of the terminal device can be determined by the headset actively obtaining information from the terminal device or by the terminal device notifying the headset, which increases the flexibility of the headset in determining the business scenario.

[0084] Step 304: When the headset detects a trigger operation, a control instruction matching the service scenario is generated according to the trigger operation.

[0085] In some embodiments, for different business scenarios, when the headset detects the same trigger operation, different control instructions may be generated. When the headset detects a trigger operation, it may determine the control function corresponding to the trigger operation in the current business scenario of the terminal device, and thus may generate a corresponding control instruction, and the generated control instruction matches the current business scenario of the terminal device. For example, the headset detects a double-click operation performed by the user on the outer surface of the headset. If the current business scenario of the terminal device is a call scenario, the generated control instruction may be a hang-up instruction, which can be used to control the terminal device to hang up the current call. If the current business scenario of the terminal device is an audio playback scenario, the generated control instruction may be a rewind instruction, which is used to control the terminal device to rewind the currently playing audio data, etc., which is not limited here.

[0086] For the same business scenario, different control instructions that match the business scenario can also be generated based on different trigger operations. For example, for a call scenario, if the headset detects a single-click operation performed by the user on the outer surface of the headset, the control instruction generated is an answer instruction; if the headset detects a double-click operation performed by the user on the outer surface of the headset, the control instruction generated is a hang-up instruction. For another example, for an image capture scenario, if the headset detects a pressing operation through a pressure sensor, the control instruction generated is a capture instruction, which is used to control the terminal device to capture an image through the camera; if the headset detects a sliding operation through a touch sensor, the control instruction generated is a camera switching instruction, which can be used to switch the currently activated camera of the terminal device, etc., but is not limited to this.

[0087] For example, now combined with Figures 4A to 4C Describes how to generate control commands for headphones. Figure 4A FIG. 1 is a schematic diagram of a headset generating a control instruction in one embodiment. Figure 4A As shown, the current service scenario of the terminal device 20 is an image capturing scenario. When the headset 10 detects a trigger operation, a capturing instruction matching the image capturing scenario may be generated. Figure 4B FIG. 1 is a schematic diagram of a headset generating a control instruction in another embodiment. Figure 4B As shown, the current service scenario of the terminal device 20 is the audio playback scenario. Figure 4A When the same trigger operation is performed, a song switching instruction that matches the audio playback scene can be generated. Figure 4C FIG. 1 is a schematic diagram of a headset generating a control instruction in another embodiment. Figure 4C As shown, the current service scenario of the terminal device 20 is a call scenario. Figure 4A 、 Figure 4B When the same trigger operation is performed, a shooting instruction that matches the call scene can be generated.

[0088] It should be noted that Figures 4A to 4C Only a few example ways of generating control instructions by the headset in the embodiments of the present application are given. The specific business scenarios and the control instructions generated by different trigger operations in each business scenario can be set according to actual needs and are not limited here.

[0089] In some embodiments, the earphone may include a first earphone and a second earphone, where the first earphone may be the left earphone and the second earphone may be the right earphone, or the first earphone may be the right earphone and the second earphone may be the left earphone. If the current business scenario of the terminal device includes the first business scenario and the second business scenario, the target earphone for detecting the trigger operation may be determined, wherein the first business scenario is the business scenario corresponding to the application running in the foreground of the terminal device, and the second business scenario is the business scenario corresponding to the application running in the background of the terminal device. If the target earphone is the first earphone, a control instruction matching the first business scenario is generated according to the trigger operation; if the target earphone is the second earphone, a control instruction matching the second business scenario is generated according to the trigger operation.

[0090] The terminal device may run applications that can be controlled by the headset in both the foreground and background, and the foreground application and the background application correspond to different business scenarios. For example, a camera application (corresponding to the image capture scenario) runs in the foreground and a music application (corresponding to the audio playback scenario) runs in the background, or a reading application (corresponding to the information browsing scenario) runs in the foreground and a music application (corresponding to the audio playback scenario) runs in the background. If the headset detects that the terminal device currently has two different business scenarios, the user can trigger the operation on different sides of the headset to choose to control the first business scenario of the foreground application or the second business scenario of the background application.

[0091] The earphone can obtain the target earphone that detects the trigger operation, and determine whether the target earphone that detects the trigger operation is the first earphone or the second earphone. If it is the first earphone, a control instruction matching the first business scenario can be generated according to the trigger operation. If it is the second earphone, a control instruction matching the second business scenario can be generated according to the trigger operation. For example, the terminal device runs a camera application (corresponding to the image shooting scenario) in the foreground and a music application (corresponding to the audio playback scenario) in the background. If a single-click operation is detected on the left earphone, a shooting instruction matching the image shooting scenario can be generated. If a single-click operation is detected on the right earphone, a song-cutting instruction matching the audio playback scenario can be generated, etc., but not limited to this. The flexibility of users in controlling the terminal device using earphones can be improved, and the control method is more convenient and quick.

[0092] In an embodiment of the present application, for different business scenarios, the headset can generate control instructions that match the business scenarios based on the detected trigger operations, so that the user can respond to different services on the terminal device by performing trigger operations on the headset, and the same trigger operation can be reused in multiple different business scenarios without the need to add new physical buttons or design new trigger operations, thereby reducing the user's memory cost and improving the convenience of operation and control efficiency.

[0093] Step 306: If the business scenario is the target scenario, obtain the current wearing status of the headset.

[0094] After obtaining the current service scenario of the terminal device, the headset can determine whether the service scenario is the target scenario. The target scenario can refer to the service scenario that requires delay control. If the current service scenario of the terminal device is the target scenario, the headset can obtain the current wearing state of the headset and use this wearing state to implement delay control for operations performed by the terminal device. The target scenario can be set by the user based on actual needs or designed by headset or terminal device developers based on business needs, and is not limited here.

[0095] Step 308: When the current wearing state is the target wearing state corresponding to the target scene, the terminal device connected to the headset for communication is controlled to delay for a first time period according to the control instruction, and then execute the operation corresponding to the control instruction.

[0096] Each target scenario can correspond to a target wearing state. In different target scenarios, the corresponding target wearing states may be the same or different. If the current wearing state of the headset is the target wearing state corresponding to the target scenario, it may indicate that delay control of the operation performed by the terminal device is required.

[0097] As a specific embodiment, the target scene may include an image capture scene, and the target wearing state corresponding to the image capture scene may be the worn state. In the image capture scene, the headset may generate different control instructions based on different detected trigger operations. Such control instructions may include but are not limited to capture instructions, image zoom instructions, image zoom instructions, camera switch instructions, and capture mode adjustment instructions. For multiple different control instructions in the same target scene, one or more of the control instructions may be set as control instructions requiring delay control.

[0098] When the target scene is an image capture scene, the control instruction requiring delayed control may include a capture instruction, and the operation corresponding to the control instruction executed by the terminal device may be a capture operation. When the terminal device is in the image capture scene and the headset detects a trigger operation for triggering a capture operation, a capture instruction may be generated. If the headset is currently being worn, the terminal device may be controlled to delay executing the capture operation for a first time period. This prevents the terminal device from capturing the user's headset operation actions in the image, thereby affecting the image capture effect. This can better meet the user's needs for using the headset to control the terminal device to capture images.

[0099] As another specific embodiment, the target scenario may include a call scenario, and the target wearing state corresponding to the call scenario may be an unworn state. In the call scenario, the headset may generate different control instructions based on different detected trigger operations, and the control instructions may include but are not limited to answering instructions, hanging up instructions, volume up instructions, volume down instructions, etc.

[0100] When the target scenario is a call scenario, the control instruction that requires delayed control may include an answering instruction, and the operation corresponding to the control instruction executed by the terminal device may be an answering call operation. When the terminal device is in a call scenario, when the headset detects a trigger operation for triggering the answering call operation, an answering instruction may be generated. If the headset is currently not being worn, the terminal device may be controlled to delay the answering call operation for a first time period. This can avoid the situation where the user answers the call before putting on the headset properly, thereby avoiding missing important information. This can better meet the user's need to use the headset to control the terminal device to answer the call.

[0101] If the trigger operation detected by the headset is not used to trigger an operation that requires delayed control, for example, in an image shooting scenario, the headset detects a trigger operation for triggering a camera switch operation, or detects a trigger operation for triggering an image zoom operation, etc., then the headset can generate a corresponding control instruction based on the detected trigger operation and send the control instruction to the terminal device, so that the terminal device immediately performs the corresponding operation according to the control instruction.

[0102] In some embodiments, the same or different first time periods may be set for different target scenarios. For example, in an image capture scenario, the corresponding first time period may be 5 seconds (to give the user more time to get into the right posture for the shot), and in a call scenario, the corresponding first time period may be 2 seconds (to avoid the caller having to wait too long), etc. The first time period may be determined based on the user's business needs for each target scenario, thereby better meeting the user's needs for delay control in different scenarios.

[0103] In some embodiments, the user can also adjust the first time period to be delayed when performing a trigger operation. After the headset generates a control instruction based on the detected trigger operation, the headset can also obtain operation intensity information of the trigger operation and determine the first time period based on the operation intensity information. The first time period can be positively correlated with the operation intensity information, that is, the greater the operation intensity of the trigger operation, the longer the first time period can be.

[0104] Optionally, the operation intensity information may include, but is not limited to, one or more of the following: operation duration, operation frequency, operation force, and the operation area where the trigger operation is detected. The specific operation intensity information may be related to the way the headset detects the trigger operation. For example, if the headset detects the trigger operation via a touch sensor, the operation intensity information may include the duration of the user's touch on the touch sensor; if the headset detects the trigger operation via an accelerometer, the operation intensity information may include the frequency of changes in acceleration data collected by the accelerometer (i.e., the operation frequency); if the headset detects the trigger operation via a pressure sensor, the operation intensity information may include the pressing force collected by the pressure sensor, etc., but is not limited to these.

[0105] When users trigger the headset, they can adjust the operation intensity according to actual needs, thereby changing the delay time for the terminal device to delay the execution of the operation, making the control method more flexible and simple.

[0106] In the embodiments of the present application, the headset can obtain the current service scenario of the terminal device and generate control instructions that match the service scenario in different service scenarios. This meets the user's needs to control the terminal device with the headset in different service scenarios, reduces the user's memory cost, and enriches the control methods of the headset. Moreover, when the current service scenario of the terminal device is the target scenario, the headset can control the delay of the terminal device operation based on the current wearing state, meeting the user's actual need for delay control and making the interaction between the headset and the terminal device more flexible and effective.

[0107] In some embodiments, the above method further includes: when the current wearing state of the headset is not the target wearing state, or when it is detected that the current wearing state of the headset has changed from the target wearing state to another wearing state, controlling the terminal device to immediately execute an operation corresponding to the control instruction. Wherein, the other wearing state refers to a wearing state other than the target wearing state. For example, if the target wearing state is the worn state, the other wearing state may be the unworn state, or if the target wearing state is the unworn state, the other wearing state may be the worn state, etc.

[0108] When the current wearing state of the headset is not the target wearing state, it means that there is no need to delay control of the operation performed by the terminal device, and a control instruction can be sent to the terminal device so that the terminal device immediately performs the corresponding operation according to the control instruction.

[0109] When the current wearing state of the headset is the target wearing state, it means that the operation performed by the terminal device needs to be delayed. The headset can wait for a first time period before sending a control instruction to the terminal device. If the headset detects that the current wearing state changes from the target wearing state to other wearing states during the waiting process, it means that the terminal device can execute the operation corresponding to the control instruction. The headset can directly send the control instruction to the terminal device so that the terminal device can immediately execute the corresponding operation according to the control instruction.

[0110] Optionally, when the headset's current wearing state is the target wearing state, if the headset has sent a control instruction to the terminal device, the terminal device is in a state of waiting to execute an operation according to the control instruction. If, while the terminal device is waiting, the headset detects that the current wearing state has changed from the target wearing state to another wearing state, the headset may send an immediate execution command to the terminal device. Upon receiving the immediate execution command, the terminal device may immediately execute the operation corresponding to the control instruction according to the immediate execution command.

[0111] In an embodiment of the present application, the headset can choose whether to perform delay control on the terminal device based on the current wearing status, thereby improving the flexibility and effectiveness of the headset in controlling the terminal device and better meeting user needs.

[0112] In one embodiment, another headphone-based control method is provided, which can be applied to the above-mentioned terminal device. The method may include the following steps:

[0113] Step (a) is receiving a control instruction sent by an earphone that is communicatively connected to the terminal device. The control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is a target wearing state.

[0114] Step (b): Based on the control instruction, executing an operation corresponding to the control instruction after waiting for a first time period.

[0115] Optionally, after the headset determines that the current wearing state is the target wearing state, it can add delay information to the control instruction and send the control instruction containing the delay information to the terminal device. The terminal device receives the control instruction, parses the control instruction to obtain the delay information, and performs the corresponding operation after waiting for the first time period based on the delay information.

[0116] In some embodiments, the headset and the terminal device may agree on a private command format. After determining that the current wearing state is the target wearing state, the headset may generate a control instruction according to the agreed command format and send the control instruction to the terminal device. After receiving the control instruction, the terminal device may parse the control instruction. If the command format of the control instruction is determined to be the agreed command format based on the parsing result, the terminal device may execute the operation corresponding to the control instruction after waiting for a first time period. Furthermore, the terminal device may send the parsed instruction information (such as information about the operation to be executed, delay information, etc.) to the corresponding application. The application will delay the operation based on the instruction information and then execute the corresponding operation after waiting for a first time period. The first time period can be the delay information carried in the control instruction or a delay time period pre-set in the terminal device, which is not limited here. Using this method, the headset can directly send control instructions without adding functional modules such as timers to record the delay time, which can reduce the cost of the headset.

[0117] It should be noted that the description of the headphone-based control method applied to the terminal device provided in the embodiment of the present application can refer to the relevant description of the headphone-based control method applied to the headphone provided in the above embodiments, and will not be repeated here one by one.

[0118] In an embodiment of the present application, the headset can combine the detected touch operation and the current wearing status of the headset to perform delay control on the operation performed by the terminal device, thereby meeting the user's actual demand for delay control and enriching the control method of the headset on the terminal device.

[0119] like Figure 5 As shown, in one embodiment, another headphone-based control method is provided, which can be applied to the above-mentioned terminal device. The method may include the following steps:

[0120] Step 510: Receive control information sent by the headset connected to the terminal device. The control information includes control instructions and status information. The control instructions are generated by the headset according to the detected trigger operation, and the status information is used to indicate the current wearing status of the headset.

[0121] The current wearing state of the headset refers to the wearing state when the headset generates the state information.

[0122] Step 520: If it is determined according to the status information that the current wearing state of the headset is the target wearing state, then after waiting for a first period of time, an operation corresponding to the control instruction is executed.

[0123] It should be noted that the description of the headphone-based control method applied to the terminal device provided in the embodiment of the present application can refer to the relevant description of the headphone-based control method applied to the headphone provided in the above embodiments, and will not be repeated here one by one.

[0124] In an embodiment of the present application, when the headset detects a trigger operation, a control instruction is generated according to the trigger operation, and the current wearing status of the headset is obtained. The headset can send control information to the terminal device. The control information may include the control instruction and status information used to represent the current wearing status of the headset. If the terminal device determines that the current wearing status is the target wearing status based on the status information, the operation corresponding to the control instruction is executed after waiting for a first time period. The headset can generate corresponding control instructions based on the trigger operation performed by the user, and can delay the operation performed by the terminal device in combination with the wearing status of the headset, thereby meeting the user's actual needs for delay control and enriching the control method of the headset to the terminal device.

[0125] like Figure 6 As shown, in one embodiment, a headphone-based control device 600 is provided, which can be applied to the above-mentioned headphone. The headphone-based control device 600 may include an instruction generation module 610, a state acquisition module 620 and a control module 630.

[0126] The instruction generation module 610 is configured to generate a control instruction according to the triggering operation when the headset detects the triggering operation.

[0127] The status acquisition module 620 is used to obtain the current wearing status of the headset.

[0128] The control module 630 is used to control the terminal device connected to the headset for communication to delay for a first time period according to the control instruction and then execute the operation corresponding to the control instruction when the current wearing state is the target wearing state.

[0129] In one embodiment, the control module 630 is further configured to send a control instruction to the terminal device after waiting for the first time period, where the control instruction is configured to instruct the terminal device to execute an operation corresponding to the control instruction.

[0130] In one embodiment, the control module 630 is further configured to send a control instruction to the terminal device, where the control instruction is configured to instruct the terminal device to execute an operation corresponding to the control instruction after waiting for a first time period.

[0131] In one embodiment, the control module 630 is also used to send control information to the terminal device, where the control information includes control instructions and status information, where the status information is used to indicate the current wearing state; the control information is used to trigger the terminal device to perform an operation corresponding to the control instruction after waiting for a first time period if the terminal device determines that the current wearing state of the headset is the target wearing state based on the status information.

[0132] In an embodiment of the present application, when the headset detects a trigger operation, a control instruction is generated according to the trigger operation, and the current wearing state of the headset is obtained. When the current wearing state is the target wearing state, the terminal device connected to the headset for communication is controlled to delay for a first time period according to the control instruction, and then executes the operation corresponding to the control instruction. The headset can generate corresponding control instructions based on the trigger operation performed by the user, and can delay the operation performed by the terminal device in combination with the wearing state of the headset, thereby meeting the user's actual needs for delay control and enriching the headset's control method for the terminal device.

[0133] like Figure 7 As shown, in one embodiment, the headphone-based control device 600 includes, in addition to the instruction generation module 610 , the state acquisition module 620 and the control module 630 , a scene determination module 640 .

[0134] The scenario determination module 640 is used to determine the current service scenario of the terminal device connected to the headset for communication.

[0135] The status acquisition module 620 is further configured to acquire the current wearing status of the headset if the business scenario is the target scenario.

[0136] In one embodiment, the control module 630 is also used to control the terminal device connected to the headset for communication to delay for a first time period according to the control instruction and then execute the operation corresponding to the control instruction when the current wearing state is the target wearing state corresponding to the target scene.

[0137] In one embodiment, the target scene includes an image shooting scene, the target wearing state corresponding to the target scene is the worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation; and / or, the target scene includes a call scene, the target wearing state corresponding to the target scene is the unworn state, the control instruction includes an answering instruction, and the operation corresponding to the control instruction is a call answering operation.

[0138] In one embodiment, the earphone-based control device 600 further includes a time determination module.

[0139] The time determination module is configured to obtain operation intensity information of a triggering operation and determine a first time period based on the operation intensity information, wherein the first time period is positively correlated with the operation intensity information. The operation intensity information includes one or more of operation duration, operation frequency, operation force, and the operation area where the triggering operation is detected.

[0140] In one embodiment, the instruction generation module 610 is further configured to generate a control instruction matching the service scenario according to the triggering operation when the headset detects the triggering operation.

[0141] In one embodiment, the earphone includes a first earphone and a second earphone. The instruction generation module 610 is further configured to, if the current business scenario of the terminal device includes the first business scenario and the second business scenario, determine a target earphone for which a trigger operation has been detected, wherein the first business scenario is a business scenario corresponding to an application running in the foreground of the terminal device, and the second business scenario is a business scenario corresponding to an application running in the background of the terminal device; and, if the target earphone is the first earphone, generate a control instruction matching the first business scenario based on the trigger operation; and if the target earphone is the second earphone, generate a control instruction matching the second business scenario based on the trigger operation.

[0142] In the embodiments of the present application, the headset can obtain the current service scenario of the terminal device and generate control instructions that match the service scenario in different service scenarios. This meets the user's needs to control the terminal device with the headset in different service scenarios, reduces the user's memory cost, and enriches the control methods of the headset. Moreover, when the current service scenario of the terminal device is the target scenario, the headset can control the delay of the terminal device operation based on the current wearing state, meeting the user's actual need for delay control and making the interaction between the headset and the terminal device more flexible and effective.

[0143] In one embodiment, the control module 630 is also used to control the terminal device to immediately execute the operation corresponding to the control instruction when the current wearing state is not the target wearing state, or when it is detected that the current wearing state of the headset changes from the target wearing state to other wearing states.

[0144] In an embodiment of the present application, the headset can choose whether to perform delay control on the terminal device based on the current wearing status, thereby improving the flexibility and effectiveness of the headset in controlling the terminal device and better meeting user needs.

[0145] In one embodiment, another headphone-based control device is provided. The headphone-based control device may include a command receiving module and an execution module.

[0146] An instruction receiving module is used to receive a control instruction sent by a headset that is communicatively connected to the terminal device. The control instruction is sent when the headset detects a trigger operation and the current wearing state of the headset is the target wearing state;

[0147] An execution module is configured to execute an operation corresponding to the control instruction after waiting for a first time period based on the control instruction.

[0148] In one embodiment, the execution module is further configured to parse the control instruction, and if it is determined according to the parsing result that the command format of the control instruction is the agreed command format, then execute the operation corresponding to the control instruction after waiting for a first time period.

[0149] In an embodiment of the present application, the headset can combine the detected touch operation and the current wearing status of the headset to perform delay control on the operation performed by the terminal device, thereby meeting the user's actual demand for delay control and enriching the control method of the headset on the terminal device.

[0150] like Figure 8 As shown, in one embodiment, another earphone-based control device 800 is provided, which can be applied to a terminal device. The earphone-based control device 800 may include an information receiving module 810 and an execution module 820.

[0151] The information receiving module 810 is used to receive control information sent by the headset connected to the terminal device for communication. The control information includes control instructions and status information. The control instructions are generated by the headset based on the detected trigger operation, and the status information is used to indicate the current wearing status of the headset.

[0152] The execution module 820 is configured to execute an operation corresponding to the control instruction after waiting for a first period of time if it is determined that the current wearing state is the target wearing state according to the state information.

[0153] In an embodiment of the present application, when the headset detects a trigger operation, a control instruction is generated according to the trigger operation, and the current wearing status of the headset is obtained. The headset can send control information to the terminal device. The control information may include the control instruction and status information used to represent the current wearing status of the headset. If the terminal device determines that the current wearing status is the target wearing status based on the status information, the operation corresponding to the control instruction is executed after waiting for a first time period. The headset can generate corresponding control instructions based on the trigger operation performed by the user, and can delay the operation performed by the terminal device in combination with the wearing status of the headset, thereby meeting the user's actual needs for delay control and enriching the control method of the headset to the terminal device.

[0154] Figure 9 FIG. 1 is a structural block diagram of a headset in one embodiment. Figure 9 As shown, the headset 900 may include one or more of the following components: a processor 910, a memory 920 coupled to the processor 910, wherein the memory 920 may store one or more computer programs, and the one or more computer programs may be configured to implement the method applied to the headset as described in the above embodiments when executed by one or more processors 910.

[0155] The processor 910 may include one or more processing cores. The processor 910 utilizes various interfaces and circuits to connect various components within the headset 900. It executes instructions, programs, code sets, or instruction sets stored in the memory 920, as well as accesses data stored in the memory 920, to perform various functions of the headset 900 and process data. Optionally, the processor 910 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 910 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 910 and may be implemented separately via a communications chip.

[0156] The memory 920 may include random access memory (RAM) or read-only memory (ROM). The memory 920 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 920 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the various method embodiments described above, and the like. The data storage area may also store data created by the headset 900 during use.

[0157] It is understandable that the headset 900 may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a Bluetooth module, sensors, etc., and is not limited here.

[0158] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method applied to the headset as described in the above embodiment is implemented.

[0159] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the method applied to headphones as described in the above embodiments.

[0160] In one embodiment, a terminal device is provided. The terminal device may include a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor implements the method applied to the terminal device as described in the above embodiments.

[0161] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the method applied to a terminal device as described in the above embodiment is implemented.

[0162] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the method applied to a terminal device as described in the above embodiments.

[0163] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a ROM, or the like.

[0164] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Suitable nonvolatile memory may include ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as external cache memory. By way of illustration and not limitation, RAM may be in various forms, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced synchronous DRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus DRAM (RDRAM), and direct Rambus DRAM (DRDRAM).

[0165] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.

[0166] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0167] The functional units in the embodiments of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The above-mentioned integrated units may be implemented in the form of hardware or software functional units.

[0168] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a memory and includes several requests for a computer device (which can be a personal computer, server or network device, etc., specifically a processor in a computer device) to execute some or all of the steps of the above-mentioned methods of various embodiments of the present application.

[0169] The above describes in detail the headphone-based control method, device, headphone, and computer-readable storage medium disclosed in the embodiments of this application. Specific examples are used herein to illustrate the principles and implementation methods of this application. The description of the above embodiments is intended only to facilitate understanding of the method and core concepts of this application. Furthermore, those skilled in the art will appreciate that variations in the specific implementation methods and scope of application may occur based on the concepts of this application. In summary, the contents of this specification should not be construed as limiting this application.

Claims

1. A headphone-based control method, characterized in that: Applied to headphones, the method includes: In an image capture scenario, when the headset detects a trigger operation, a control instruction is generated according to the trigger operation; Obtain the current wearing status of the headset; When the current wearing state is the target wearing state, the terminal device connected to the headset for communication is controlled to delay for a first time period according to the control instruction, and then executes the operation corresponding to the control instruction; wherein, the target wearing state includes the worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation.

2. The method according to claim 1, characterized in that The controlling, according to the control instruction, of the terminal device in communication connection with the headset to delay for a first time period and then executing an operation corresponding to the control instruction includes: After waiting for a first time period, the control instruction is sent to the terminal device, where the control instruction is used to instruct the terminal device to perform an operation corresponding to the control instruction.

3. The method according to claim 1, characterized in that The controlling, according to the control instruction, of the terminal device in communication connection with the headset to delay for a first time period and then executing an operation corresponding to the control instruction includes: The control instruction is sent to the terminal device, where the control instruction is used to instruct the terminal device to perform an operation corresponding to the control instruction after waiting for a first time period.

4. The method according to claim 1, wherein When the current wearing state is the target wearing state, controlling the terminal device connected to the headset for communication with the headset to delay for a first time period according to the control instruction and then executing an operation corresponding to the control instruction includes: Send control information to the terminal device, the control information including the control instruction and status information, the status information being used to indicate the current wearing status; the control information is used to trigger the terminal device to perform an operation corresponding to the control instruction after waiting for a first time period if the terminal device determines that the current wearing status is the target wearing status based on the status information.

5. The method according to claim 1, wherein When the headset detects a trigger operation, before generating a control instruction according to the trigger operation, the method further includes: Determining a current service scenario of a terminal device in communication with the headset; The obtaining the current wearing status of the headset includes: If the business scenario is the target scenario, the current wearing state of the headset is obtained.

6. The method according to claim 5, characterized in that When the current wearing state is the target wearing state, controlling the terminal device connected to the headset for communication with the headset to delay for a first time period according to the control instruction and then executing an operation corresponding to the control instruction includes: When the current wearing state is the target wearing state corresponding to the target scene, the terminal device connected to the headset for communication is controlled to delay for a first time period according to the control instruction, and then executes the operation corresponding to the control instruction.

7. The method according to claim 6, characterized in that The target scene includes an image shooting scene, and the target wearing state corresponding to the target scene is a worn state; and / or The target scene includes a call scene, the target wearing state corresponding to the target scene is a non-wearing state, the control instruction includes an answering instruction, and the operation corresponding to the control instruction is a call answering operation.

8. The method according to any one of claims 5 to 7, characterized in that: When the headset detects a trigger operation, generating a control instruction according to the trigger operation includes: When the headset detects a trigger operation, a control instruction matching the service scenario is generated according to the trigger operation.

9. The method according to claim 8, characterized in that The earphones include a first earphone and a second earphone; and the generating of a control instruction matching the business scenario according to the trigger operation includes: If the current business scenario of the terminal device includes a first business scenario and a second business scenario, determining that the target headset of the triggering operation is detected, wherein the first business scenario is a business scenario corresponding to the application running in the foreground of the terminal device, and the second business scenario is a business scenario corresponding to the application running in the background of the terminal device; If the target headset is the first headset, generating a control instruction matching the first service scenario according to the triggering operation; If the target headset is the second headset, a control instruction matching the second service scenario is generated according to the trigger operation.

10. The method according to any one of claims 1 to 7, characterized in that: After the headset detects a trigger operation and generates a control instruction according to the trigger operation, the method further includes: Acquiring operation intensity information of the triggering operation, and determining a first time period according to the operation intensity information, wherein the first time period is positively correlated with the operation intensity information; The operation intensity information includes one or more of operation duration, operation frequency, operation strength, and an operation area where a triggering operation is detected.

11. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the current wearing state is not the target wearing state, or when it is detected that the current wearing state of the headset changes from the target wearing state to other wearing states, the terminal device is controlled to immediately execute an operation corresponding to the control instruction.

12. A headphone-based control method, characterized in that: Applied to a terminal device, the method includes: In an image capture scenario, receiving a control instruction sent by an earphone that is communicatively connected to the terminal device, where the control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is a target wearing state; Based on the control instruction, executing an operation corresponding to the control instruction after waiting for a first time period; The target wearing state includes a worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation.

13. The method according to claim 12, characterized in that The step of executing an operation corresponding to the control instruction after waiting for a first time period based on the control instruction includes: The control instruction is parsed, and if it is determined according to the parsing result that the command format of the control instruction is the agreed command format, an operation corresponding to the control instruction is executed after waiting for a first time period.

14. A headphone-based control method, characterized in that: Applied to a terminal device, the method includes: In an image capture scenario, receiving control information sent by a headset communicatively connected to the terminal device, the control information including a control instruction and status information, the control instruction being generated by the headset based on a detected trigger operation, and the status information being used to indicate a current wearing status of the headset; If it is determined according to the state information that the current wearing state is the target wearing state, then after waiting for a first time period, executing an operation corresponding to the control instruction; The target wearing state includes a worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation.

15. A headphone-based control device, characterized in that: Applied to headphones, the device comprises: An instruction generation module, configured to generate a control instruction according to a trigger operation when the headset detects a trigger operation in an image capture scenario; A status acquisition module, used to obtain the current wearing status of the headset; A control module, configured to, when the current wearing state is the target wearing state, control a terminal device communicatively connected to the headset to perform an operation corresponding to the control instruction after delaying for a first time period according to the control instruction; The target wearing state includes a worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation.

16. A headphone-based control device, characterized in that: Applied to a terminal device, the device includes: An instruction receiving module is used to receive a control instruction sent by an earphone that is communicatively connected to the terminal device in an image capture scenario, wherein the control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is a target wearing state; an execution module, configured to execute, based on the control instruction, an operation corresponding to the control instruction after waiting for a first time period; The target wearing state includes a worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation.

17. A headphone-based control device, characterized in that: Applied to a terminal device, the device includes: an information receiving module, configured to receive, in an image capture scenario, control information sent by a headset communicatively connected to the terminal device, the control information including control instructions and status information, the control instructions being generated by the headset based on a detected trigger operation, and the status information being used to indicate a current wearing status of the headset; an execution module, configured to execute an operation corresponding to the control instruction after waiting for a first time period if the current wearing state is determined to be a target wearing state according to the state information; The target wearing state includes a worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation.

18. A headset, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 11.

19. A terminal device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 12 to 14.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Earphone and ear canal judging access method

    CN109391869A

  • Earphone-based sound recording control method and apparatus, electronic device, and storage medium

    WO2017166607A1