CN115412802A - Earphone-based control method and device, earphone and computer-readable storage medium - Google Patents

Earphone-based control method and device, earphone and computer-readable storage medium Download PDF

Info

Publication number
CN115412802A
CN115412802A CN202110580647.6A CN202110580647A CN115412802A CN 115412802 A CN115412802 A CN 115412802A CN 202110580647 A CN202110580647 A CN 202110580647A CN 115412802 A CN115412802 A CN 115412802A
Authority
CN
China
Prior art keywords
earphone
control instruction
wearing state
control
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110580647.6A
Other languages
Chinese (zh)
Inventor
包建全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110580647.6A priority Critical patent/CN115412802A/en
Priority to PCT/CN2022/091950 priority patent/WO2022247627A1/en
Publication of CN115412802A publication Critical patent/CN115412802A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a control method and device based on an earphone, the earphone and a computer readable storage medium. The method is applied to the earphone and comprises the following steps: when the earphone detects a trigger operation, generating a control instruction according to the trigger operation; acquiring the current wearing state of the earphone; and under the condition that the current wearing state is a target wearing state, controlling terminal equipment in communication connection with the earphone to delay a first time period according to the control instruction, and then executing operation corresponding to the control instruction. The earphone-based control method, the earphone-based control device, the earphone and the computer-readable storage medium disclosed by the embodiment of the application can perform delay control on the operation executed by the terminal equipment in combination with the wearing state of the earphone, meet the requirement of a user on the delay control in practice, and enrich the control mode of the earphone on the terminal equipment.

Description

Earphone-based control method and device, earphone and computer-readable storage medium
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a control method and device based on an earphone, the earphone and a computer readable storage medium.
Background
The earphone is used as an important accessory of terminal equipment such as a mobile phone, a tablet personal computer and a smart watch, and a user can use the earphone in many daily scenes, such as listening to music, listening to video and voice, talking to other people and the like by using the earphone. At present, a user can only simply control terminal equipment by using an earphone, such as increasing volume, reducing volume and the like, the control mode is single, and the actual requirements of the user cannot be met.
Disclosure of Invention
The embodiment of the application discloses a control method and device based on an earphone, the earphone and a computer readable storage medium, which can perform delay control on operation executed by a terminal device by combining with the wearing state of the earphone, meet the requirement of a user on the delay control in practice, and enrich the control mode of the earphone on the terminal device.
The embodiment of the application discloses a control method based on an earphone, which is applied to the earphone and comprises the following steps:
when the earphone detects a trigger operation, generating a control instruction according to the trigger operation;
acquiring the current wearing state of the earphone;
and under the condition that the current wearing state is a target wearing state, controlling terminal equipment in communication connection with the earphone to delay a first time period according to the control instruction, and then executing operation corresponding to the control instruction.
The embodiment of the application discloses a control method based on an earphone, which is applied to terminal equipment and comprises the following steps:
receiving a control instruction sent by an earphone in communication connection with the terminal equipment, wherein the control instruction is sent when the earphone detects a trigger operation and the current wearing state of the earphone is a target wearing state;
and executing the operation corresponding to the control instruction after waiting for a first time period according to the control instruction.
The embodiment of the application discloses a control method based on an earphone, which is applied to terminal equipment and comprises the following steps:
receiving control information sent by an earphone in communication connection with the terminal equipment, wherein the control information comprises a control instruction and state information, the control instruction is generated by the earphone according to the detected trigger operation, and the state information is used for representing the current wearing state of the earphone;
and if the current wearing state is determined to be the target wearing state according to the state information, executing operation corresponding to the control command after waiting for a first time period.
The embodiment of the application discloses controlling means based on earphone is applied to the earphone, the device includes:
the instruction generation module is used for generating a control instruction according to the trigger operation when the earphone detects the trigger operation;
the state acquisition module is used for acquiring the current wearing state of the earphone;
and the control module is used for controlling the terminal equipment in communication connection with the earphone to delay a first time period according to the control instruction and then executing the operation corresponding to the control instruction under the condition that the current wearing state is a target wearing state.
The embodiment of the application discloses controlling means based on earphone is applied to terminal equipment, the device includes:
the earphone comprises an instruction receiving module, a control module and a processing module, wherein the instruction receiving module is used for receiving a control instruction sent by an earphone in communication connection with the terminal equipment, and the control instruction is sent when the earphone detects a trigger operation and the current wearing state of the earphone is a target wearing state;
and the execution module is used for executing the operation corresponding to the control instruction after waiting for the first time period according to the control instruction.
The embodiment of the application discloses controlling means based on earphone is applied to terminal equipment, the device includes:
the information receiving module is used for receiving control information sent by an earphone in communication connection with the terminal equipment, the control information comprises a control instruction and state information, the control instruction is generated by the earphone according to detected trigger operation, and the state information is used for representing the current wearing state of the earphone;
and the execution module is used for executing the operation corresponding to the control command after waiting for a first time period if the current wearing state is determined to be the target wearing state according to the state information.
The embodiment of the application discloses a headset, which 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 is enabled to realize the method applied to the headset.
The embodiment of the application discloses a terminal device, which 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 is enabled to realize the method applied to the terminal device.
An embodiment of the application discloses a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method as described above applied to a headset.
The embodiment of the application discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the computer program realizes the method applied to the terminal equipment.
According to the control method and device based on the earphone, the earphone and the computer readable storage medium disclosed by the embodiment of the application, when the earphone detects the trigger operation, the control instruction is generated according to the trigger operation, the current wearing state of the earphone is obtained, under the condition that the current wearing state is the target wearing state, the terminal equipment in communication connection with the earphone is controlled according to the control instruction and delays for a first time period, the operation corresponding to the control instruction is executed, the earphone can generate the corresponding control instruction based on the trigger operation performed by a user, the delay control can be performed on the operation executed by the terminal equipment by combining the wearing state of the earphone, the requirement of the user on the delay control in practice is met, and the control mode of the earphone on the terminal equipment is enriched.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an embodiment of an application scenario for a headset-based control method;
FIG. 2 is a flow diagram of a headset-based control method in one embodiment;
FIG. 3 is a flow chart of a headset-based control method in another embodiment;
FIG. 4A is a diagram illustrating an embodiment of a headset generating control instructions;
FIG. 4B is a diagram illustrating a headset generating control commands in another embodiment;
FIG. 4C is a diagram of a headset generating control commands in another embodiment;
FIG. 5 is a flow chart of a headset-based control method in yet another embodiment;
FIG. 6 is a block diagram of a headset-based control device in one embodiment;
FIG. 7 is a block diagram of a headset-based control device in another embodiment;
FIG. 8 is a block diagram of a headset-based control device in yet another embodiment;
fig. 9 is a block diagram of the structure of the headset in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the terms "comprising" and "having," and any variations thereof, in the examples and figures herein are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first earphone may be referred to as a second earphone, and similarly, a second earphone may be referred to as a first earphone, without departing from the scope of the present application. The first and second headsets belong to both headsets, but are not the same headset. In addition, the terms "plurality" or the like used in the embodiments of the present application mean two or more.
Fig. 1 is a diagram of an application scenario of the headset-based control method in an embodiment. As shown in fig. 1, the earphone 10 may establish a communication connection with a terminal device 20, the earphone 10 may include a headset, an in-ear earphone, an earplug earphone, a supra-aural earphone, etc., the structural configuration of the earphone 10 is not limited herein, and the terminal device 20 may include, but is not limited to, a mobile phone, a tablet Computer, a wearable device, a vehicle-mounted terminal, a PC (Personal Computer), etc. The headset 10 may establish a Wireless communication connection with the terminal device 20, such as bluetooth (bluetooth), wiFi (Wireless Fidelity, or a wired communication connection through a data line, and the communication connection mode is not limited herein.
In related technologies, a user can perform function control on a terminal device through an earphone in the process of using the earphone, for example, controlling music played by the terminal device to be switched to the next music, increasing output volume, decreasing output volume, and the like. For example, when the terminal device is controlled to take a picture by using the headset, the user may not have time to adjust the shooting posture of the user in real time, and the shooting effect is affected.
In the embodiment of the present application, when the earphone 10 detects a trigger operation, a control instruction may be generated according to the trigger operation, and a current wearing state of the earphone may be obtained, and when the current wearing state is a target wearing state, the terminal device 20 is controlled according to the control instruction to delay a first time period, and then an operation corresponding to the control instruction is executed. The earphone 10 can generate a corresponding control instruction based on a trigger operation performed by a user, and can perform delay control on an operation executed by the terminal device 20 in combination with the current wearing state of the earphone 10, so that the requirement of the user on the delay control in practice is met, and the control mode of the earphone on the terminal device is enriched.
In one embodiment, as shown in fig. 2, a headset-based control method is provided, which can be applied to the headset, and the method can include the following steps:
and step 210, when the earphone detects a trigger operation, generating a control instruction according to the trigger operation.
The trigger operation may be a preset interactive operation, and the headset may be provided with an operation detection device, through which the trigger operation performed on the headset by the user is detected. The operation detection device may include, but is not limited to, a physical button, a sensor, and the like, and the sensor may include, but is not limited to, a touch sensor, a pressure sensor, a distance sensor, a light sensor, an acceleration sensor, and the like.
For different operation detection devices, different trigger operations may be set, for example, if the operation detection device is a physical button, the trigger operation may be an operation of pressing the physical button; if the operation detection device is an acceleration sensor, the trigger operation can be shaking operation (corresponding acceleration can be generated by shaking the earphone), knocking operation (corresponding acceleration can be generated by knocking the earphone), and the like; if the operation detection device is a touch sensor, the trigger operation may be a touch slide operation or the like.
Different trigger operations can be designed for the same operation detection device, and the different trigger operations can correspond to different control instructions respectively. For example, the operation detection device is a touch sensor, and the triggering operation may include a first direction (e.g., an upward direction when the headset is worn) sliding and a second direction (e.g., a downward direction when the headset is worn), where the first direction sliding may be used to control the volume increase, and the second direction sliding may be used to control the volume decrease. For another example, the operation detection device is a pressure sensor, the trigger operation may include a pressing operation smaller than a pressure threshold and a pressing operation greater than or equal to the pressure threshold, the pressing operation smaller than the pressure threshold may be used to control the terminal device to switch to the next audio file playing, and the pressing operation greater than or equal to the pressure threshold may be used to control the terminal device to answer a call.
In some embodiments, a plurality of different operation detection devices may also be simultaneously provided in the headset, each operation detection device may set one or more trigger operations, different trigger operations may be used to trigger control of different functions on the terminal device, and a user may perform corresponding trigger operations on the headset according to actually required control functions to control corresponding functions on the terminal device.
The earphone can generate a corresponding control instruction according to the detected trigger operation so as to control the corresponding function on the terminal equipment.
And step 220, acquiring the current wearing state of the earphone.
The wearing state of the earphone may include a worn state and an unworn state, the worn state refers to a state in which the user fits the earphone to the ear and is able to receive a voice signal output from the earphone, and the unworn state refers to a state in which the earphone is not fitted to the ear. For example, the wearing manner of the headphone is to put the earphone handle on the top of the head and to fit the earphone to the ear, the wearing manner of the in-ear headphone or the earplug headphone is to plug the earphone into the ear, and the wearing manner of the in-ear headphone is to hang on the auricle, and the like, which is not limited herein.
In some embodiments, a wearing detection sensor may be provided in the headset, and the current wearing state of the headset may be detected by the wearing detection sensor. The wear detection sensors may include, but are not limited to, one or more of light sensors, attitude sensors, distance sensors, temperature sensors, heart rate sensors, and the like.
Optionally, the headset may acquire the ambient light brightness information of the headset through the optical sensor, and when it is detected that the ambient light brightness information is less than or equal to the brightness threshold, determine that the wearing state of the headset is the worn state, and when it is detected that the ambient light brightness information is greater than the brightness threshold, determine that the wearing state of the headset is the unworn state.
Optionally, the headset may acquire the posture information of the headset through the posture sensor, and if the posture information matches the posture information when the headset is worn, it may be determined that the wearing state of the headset is a worn state, and if the posture information does not match the posture information when the headset is worn, it may be determined that the wearing state of the headset is an unworn state.
Optionally, the headset may acquire distance information between the headset and the ear of the human body through a distance sensor, and when it is detected that the distance information is less than or equal to a distance threshold, it is determined that the wearing state of the headset is a worn state, and when it is detected that the distance information is greater than the distance threshold, it is determined that the wearing state of the headset is an unworn state.
Optionally, the earphone may acquire temperature information of the surface of the earphone through the temperature sensor, and when it is detected that the temperature information is greater than or equal to the temperature threshold, it is determined that the wearing state of the earphone is a worn state, and when it is detected that the temperature information is less than the temperature threshold, it is determined that the wearing state of the earphone is not in contact with the ear of the human body.
Alternatively, the headset may collect a heart rate fluctuation signal through a heart rate sensor, and when the heart rate fluctuation signal is detected, the wearing state of the headset may be determined to be a worn state, and when the heart rate fluctuation signal is not detected, the wearing state of the headset may be determined to be an unworn state.
It should be noted that one or more different sensors may be simultaneously disposed in the headset, and the wearing state of the headset is determined through data collected by the multiple different sensors, so that the accuracy of the wearing state detection can be improved. The above threshold values can be set according to actual requirements, and can also be set through multiple experiments.
In other embodiments, the headset may also detect the wearing state of the headset in other manners, not limited to the manner of detecting by the wearing detection sensor, for example, a sound signal may be collected by a microphone disposed in the headset, and the wearing state of the headset may be determined by a change of the sound signal, for example, when a sudden decrease of the noise signal collected by a feedforward microphone of the headset is detected, the wearing state of the headset may be determined as the worn state. The embodiment of the present application does not specifically limit the manner in which the headset detects the wearing state.
As a specific implementation manner, the headset may detect the current wearing state of the headset by the wearing state detection manner described in the above embodiment each time the trigger operation is detected.
As another optional implementation, the headset may also detect the wearing state of the headset by using the wearing state detection manner described in the above embodiment, and record the wearing state of the headset through the state tag. The recorded status tag may be updated each time a change in the wearing status of the headset is detected. The status label may be composed of one or more of numbers, symbols, letters, chinese characters, etc., for example, the status label in the worn state may be 1, and the status label in the unworn state may be 0, but is not limited thereto. When the earphone detects the trigger operation each time, the currently recorded state label can be read, and the current wearing state of the earphone is determined according to the current state label. By adopting the mode, the current wearing state of the earphone can be acquired more quickly without waiting for the detection process, and the efficiency is improved.
And step 230, under the condition that the current wearing state is the target wearing state, controlling the terminal equipment in communication connection with the earphone to delay for a first time period according to the control instruction, and then executing the operation corresponding to the control instruction.
The target wearing state can be a preset wearing state, the target wearing state can be a worn state or an unworn state, a user can set the target wearing state needing delay control according to actual requirements, and research and development personnel of the earphone or application research and development personnel of the terminal device can set the target wearing state needing delay control according to business requirements.
In some embodiments, after obtaining the current wearing state, the earphone may determine whether the current wearing state is a target wearing state, and if the current wearing state is the target wearing state, may perform delay control on the terminal device, and control the terminal device to perform an operation corresponding to the control instruction after delaying for a first time period. Alternatively, the first time period may be set according to actual requirements, for example, 3 seconds, 2 seconds, 5 seconds, and the like, and is not limited herein. The delay first period may be a time period from a time point when the earphone detects the trigger operation, or a time period from a time point when the current wearing state of the earphone is determined to be the target wearing state, and the like, and is not limited herein.
In some embodiments, the manner that the headset controls the terminal device to delay for the first time period according to the control instruction and execute the operation corresponding to the control instruction may be that the headset sends the control instruction to the terminal device after waiting for the first time period, where the control instruction may be used to instruct the terminal device to execute the operation corresponding to the control instruction. The earphone can realize the delay control of the terminal equipment by a mode of delaying sending the control instruction, the instruction format between the earphone and the terminal equipment does not need to be changed by adopting the mode, the terminal equipment still executes corresponding operation when receiving the control instruction, and the control mode is simpler and more convenient.
In some embodiments, the headset controls the terminal device to perform the operation corresponding to the control instruction after delaying the first time period according to the control instruction, or the headset may send the control instruction to the terminal device, where the control instruction is used to instruct the terminal device to perform 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 including the delay information to the terminal device, and the terminal device receives the control instruction, may analyze the control instruction to obtain the delay information, and executes a corresponding operation after waiting for the first time period according to the delay information.
In some embodiments, the headset and the terminal device may agree with a proprietary command format, and after determining that the current wearing status is the target wearing status, the headset may generate a control instruction according to the agreed command format and send the control instruction to the terminal device. The terminal equipment can analyze the control instruction after receiving the control instruction, and if the command format of the control instruction is determined to be the appointed command format according to the analysis result, the terminal equipment can execute the operation corresponding to the control instruction after waiting for the first time period. Further, the terminal device may send the analyzed instruction information (e.g., operation information, delay information, etc. that needs to be executed) to the corresponding application, and the application performs a delay operation according to the instruction information and then executes the corresponding operation after waiting for the first time period. The first time period may be delay information carried in the control command, or may be a delay time period preset in the terminal device, which is not limited herein. By adopting the method, the earphone can directly send the control instruction without adding functional modules such as a timer and the like to record the delay time, and the cost of the earphone can be reduced.
In some embodiments, after acquiring the current wearing state, the headset may generate control information according to the control instruction and the current wearing state, and send the control information to the terminal device, where the control information may include the control instruction and state information, and the state information may be used to indicate the current wearing state of the headset, and further, the state information may include the above-mentioned state tag. The control information may be used to instruct the terminal device to execute an operation corresponding to the control instruction after waiting for the first time period if it is determined that the current wearing state of the headset is the target wearing state according to the state information. After receiving the control information, the terminal device can judge whether the current wearing state of the earphone is the target wearing state according to the state information carried in the control information, and if the current wearing state of the earphone is determined to be the target wearing state, the terminal device can execute the operation corresponding to the control instruction after waiting for a first time period.
In the embodiment of the application, when the earphone detects the trigger operation, a control instruction is generated according to the trigger operation, the current wearing state of the earphone is obtained, under the condition that the current wearing state is the target wearing state, the terminal device in communication connection with the earphone is controlled according to the control instruction to delay for a first time period, the operation corresponding to the control instruction is executed, the earphone can generate the corresponding control instruction based on the trigger operation performed by a user, the delay control can be performed on the operation executed by the terminal device by combining the wearing state of the earphone, the requirement of the user on the delay control in practice is met, and the control mode of the earphone on the terminal device is enriched.
In one embodiment, as shown in fig. 3, another headset-based control method is provided, which may be applied to the headset described above, and which may include the steps of:
step 302, determining a current service scene of a terminal device in communication connection with an earphone.
The current service scene of the terminal device may be determined according to a service operation currently executed by the terminal device, where the service operation refers to an operation of processing service data in the terminal device, and the service data may include, but is not limited to, image data, voice data, video data, and the like. For example, a call operation may be performed through a call application, a play operation of multimedia data may be performed through a multimedia application, a photographing operation may be performed through a camera application, a chat operation may be performed through a social application, and the like.
The service operation performed by the terminal device may be divided into one or more service scenes, for example, the call operation may correspond to a call scene, the shooting operation may correspond to an image shooting scene, the playing operation of the multimedia data may correspond to an audio playing scene, and the like, but is not limited thereto.
In some embodiments, the headset may send a scene information acquisition request to the terminal device, where the scene information acquisition request is used to request to acquire relevant information of a current service scene of the terminal device, where the relevant information may include, but is not limited to, one or more of information of an application currently running by the terminal device, information of a currently executed task, processed service data, and the like. The application information may include an application identifier, an application type, and the like, wherein the application identifier may be used to uniquely identify the application, and the application type may include, but is not limited to, a social application, a multimedia application, a communication application, and the like. The task information may include, but is not limited to, operations performed by the task, data processed by the task, and the like.
After receiving the scene information acquisition request, the terminal device may send relevant information of the current service scene to the headset, and the headset may determine the current service scene of the terminal device according to the relevant information sent by the terminal device. Optionally, a corresponding relationship between the relevant information and the scene may be stored in advance in the headset, for example, the headset may store a corresponding relationship between an application and a scene, and the like, and may acquire the application information, and find the service scene corresponding to the application information according to the corresponding relationship, where if the application currently running on the terminal device is a camera application, the corresponding service scene may be an image capturing scene, and if the application currently running on the terminal device is a music application, the corresponding service scene may be an audio playing scene, and the like, but is not limited thereto.
Optionally, the headset may also determine the task currently executed by the terminal device directly according to the task information currently executed by the terminal device, and determine a service scene corresponding to the currently executed task, for example, the task currently executed by the terminal device is an incoming call answering task, and it may be determined that the service scene is a call scene, and the task currently executed by the terminal device is a task for processing an image acquired by the camera, and it may be determined that the service scene is an image shooting scene, but is not limited thereto.
Optionally, after receiving the scene information acquisition request sent by the earphone, the terminal device may also determine the current service scene directly according to the currently running application program, the executed task, and the like, and directly feed back the scene identifier of the service scene to the earphone, where different service scenes may respectively correspond to different scene identifiers, and the earphone may determine the current service scene of the terminal device according to the scene identifier.
In some embodiments, the terminal device may also actively send a service notification to the headset, and optionally, the terminal device may send the service notification to the headset when a new application program is started or a new task process is started, where the service notification may include information related to a current service scenario of the terminal device, such as information about the newly started application program and task information, or may directly include a scenario identifier of the service scenario determined according to the information about the newly started application program and task information. When the earphone receives the service notification, the current service scene of the terminal equipment can be determined according to the service notification.
In the embodiment of the application, the service scene of the terminal equipment can be determined by a mode that the earphone actively acquires information from the terminal equipment or a mode that the terminal equipment informs the earphone, so that the flexibility of determining the service scene by the earphone is increased.
And 304, when the earphone detects the trigger operation, generating a control instruction matched with the service scene according to the trigger operation.
In some embodiments, for different service scenarios, the headset may generate different control instructions when detecting the same trigger operation. When the earphone detects the trigger operation, the control function corresponding to the trigger operation in the current service scene of the terminal equipment can be determined, so that a corresponding control instruction can be generated, and the generated control instruction is matched with the current service scene of the terminal equipment. For example, the earphone detects a double-click operation performed by a user on an outer surface of the earphone, if a current service scene of the terminal device is a call scene, the generated control instruction may be a hang-up instruction, which may be used to control the terminal device to hang up a current call, and if the current service scene of the terminal device is an audio play scene, the generated control instruction may be a rollback instruction, which is used to control the terminal device to perform a fast-rollback operation on currently played audio data, and the like, which is not limited herein.
For the same service scene, different control instructions matched with the service scene can be generated according to different trigger operations. For example, for a call scene, if the earphone detects a single-click operation performed by the user on the outer surface of the earphone, the generated control instruction is an answering instruction, and if the earphone detects a double-click operation performed by the user on the outer surface of the earphone, the generated control instruction is a hang-up instruction. For another example, for an image capturing scene, when the earphone detects a pressing operation through the pressure sensor, the generated control instruction is a capturing instruction, the capturing instruction is used to control the terminal device to capture an image through the camera, and when the earphone detects a sliding operation through the touch sensor, the generated control instruction is a camera switching instruction, and the mode switching instruction can be used to switch a currently activated camera of the terminal device, but is not limited thereto.
For example, the earphone generation control instruction will now be described with reference to fig. 4A to 4C. Fig. 4A is a diagram illustrating a headset generating control commands in one embodiment. As shown in fig. 4A, the current service scene of the terminal device 20 is an image capturing scene, and when the earphone 10 detects a trigger operation, a capturing instruction matching the image capturing scene may be generated. Fig. 4B is a schematic diagram of a headset generating control command in another embodiment. As shown in fig. 4B, the current service scenario of the terminal device 20 is an audio playing scenario, and when the earphone 10 detects the same triggering operation as that in fig. 4A, a song switching instruction matching the audio playing scenario may be generated. Fig. 4C is a schematic diagram of generating a control command by the headset in another embodiment. As shown in fig. 4C, the current service scenario of the terminal device 20 is a call scenario, and when the earphone 10 detects the same triggering operation as that in fig. 4A and 4B, a shooting instruction matching the call scenario may be generated.
It should be noted that fig. 4A to 4C only show several exemplary ways for generating a control instruction by an earphone in the embodiment of the present application, and specific service scenarios and control instructions generated by different trigger operations in each service scenario may be set according to actual requirements, which is not limited herein.
In some embodiments, the headphones may include a first headphone and a second headphone, the first headphone may be a left headphone and the second headphone may be a right headphone, or the first headphone may be a right headphone and the second headphone is a left headphone. And if the current service scene of the terminal equipment comprises a first service scene and a second service scene, determining the target earphone which detects the trigger operation, wherein the first service scene is a service scene corresponding to the application running in the foreground of the terminal equipment, and the second service scene is a service scene corresponding to the application running in the background of the terminal equipment. And if the target earphone is a first earphone, generating a control instruction matched with the first service scene according to the trigger operation, and if the target earphone is a second earphone, generating a control instruction matched with the second service scene according to the trigger operation.
The terminal device may simultaneously run the application that can be controlled by the earphone in the front and the background, and the foreground application and the background application correspond to different service scenes, for example, a foreground running camera application (corresponding to an image shooting scene), a background running music application (corresponding to an audio playing scene), or a foreground running reading application (corresponding to an information browsing scene), a background running music application (corresponding to an audio playing scene), and the like. If the earphone detects that the terminal equipment has two different service scenes currently, the user can select to control the first service scene applied to the foreground or the second service scene applied to the background by triggering the earphones on different sides respectively.
The earphone can acquire a target earphone of which the trigger operation is detected, and judge whether the target earphone of which the trigger operation is detected is a first earphone or a second earphone, if the target earphone is the first earphone, a control instruction matched with a first service scene can be generated according to the trigger operation, and if the target earphone is the second earphone, a control instruction matched with a second service scene can be generated according to the trigger operation. For example, the terminal device runs a camera application (corresponding to an image shooting scene) in the foreground, runs a music application (corresponding to an audio playing scene) in the background, and can generate a shooting instruction matched with the image shooting scene if a single-click operation is detected on the left earphone, and can generate a song switching instruction matched with the audio playing scene if a single-click operation is detected on the right earphone, but is not limited thereto. The flexibility that the user utilized the earphone to control terminal equipment can be improved, and the control mode is more convenient and faster.
In the embodiment of the application, aiming at different service scenes, the earphone can generate the control instruction matched with the service scenes according to the detected trigger operation, so that a user can respond to different services on the terminal equipment by performing the trigger operation on the earphone, the same trigger operation can be multiplexed in a plurality of different service scenes, new physical keys do not need to be additionally added or new trigger operation does not need to be designed, the memory cost of the user is reduced, and the convenience and the control efficiency of the operation are improved.
And step 306, if the service scene is the target scene, acquiring the current wearing state of the earphone.
The method comprises the steps that after a current service scene of the terminal device is obtained by the earphone, whether the service scene is a target scene or not can be judged, the target scene can refer to the service scene needing delay control, if the current service scene of the terminal device is the target scene, the current wearing state of the earphone can be obtained, and delay control is carried out on operation executed by the terminal device by combining the wearing state. The target scene may be set by a user according to actual requirements, or may be designed by a research and development staff of an earphone or a terminal device according to business requirements, which is not limited herein.
And 308, under the condition that the current wearing state is the target wearing state corresponding to the target scene, controlling the terminal equipment in communication connection with the earphone to delay for a first time period according to the control instruction, and then executing the operation corresponding to the control instruction.
For each target scene, the target wearing state may be respectively corresponding to one target wearing state, and in different target scenes, 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 scene, it can be stated that delay control needs to be performed on the operation executed by the terminal device.
As a specific embodiment, the target scene may include an image capturing scene, and the target wearing state corresponding to the image capturing scene may be a worn state. In an image shooting scene, the headset can generate different control instructions according to different detected triggering operations, and the control instructions can include but are not limited to shooting instructions, image enlarging instructions, image reducing instructions, camera switching instructions, shooting mode adjusting instructions and the like. For a plurality of different control instructions in the same target scene, one or more control instructions can be set as control instructions needing delay control.
When the target scene is an image shooting scene, the control instruction requiring the delay control may include a shooting instruction, and the operation performed by the terminal device corresponding to the control instruction may be a shooting operation. The terminal equipment is in an image shooting scene, when the earphone detects the triggering operation for triggering the shooting operation, the shooting instruction can be generated, and if the current wearing state of the earphone is the worn state, the terminal equipment can be controlled to delay the first time period to execute the shooting operation, so that the terminal equipment can be prevented from shooting the image by the action of operating the earphone by a user, the image shooting effect is influenced, and the requirements of the user on utilizing the earphone to control the terminal equipment to shoot the image can be met.
As another specific embodiment, the target scene may include a call scene, and the target wearing state corresponding to the call scene may be an unworn state. In a call scene, the headset may generate different control instructions according to different detected trigger operations, where the control instructions may include, but are not limited to, an answering instruction, a hang-up instruction, a volume-down instruction, and the like.
When the target scene is a call scene, the control instruction requiring delay control may include an answering instruction, and the operation executed by the terminal device and corresponding to the control instruction may be a call answering operation. The method comprises the steps that when the terminal equipment is in a call scene, when the earphone detects a trigger operation for triggering the call answering operation, an answering instruction can be generated, if the current wearing state of the earphone is an unworn state, the terminal equipment can be controlled to delay a first time period to execute the call answering operation, so that the situation that a user answers a call when the earphone is not worn can be avoided, important information is leaked, and the requirement of the user for controlling the terminal equipment to answer the call by using the earphone can be met.
If the trigger operation detected by the headset is not used for triggering an operation that requires delay control, for example, in an image capturing scene, the headset detects a trigger operation for triggering switching of a camera operation, or detects a trigger operation for triggering image amplification, and the like, the headset may generate a corresponding control instruction according to the detected trigger operation, and send the control instruction to the terminal device, so that the terminal device immediately executes the corresponding operation according to the control instruction.
In some embodiments, the same or different first time periods may also be set for different target scenes, for example, in an image capturing scene, the corresponding first time period may be 5 seconds (which can set a capturing gesture for more time for the user), in a call scene, the corresponding first time period may be 2 seconds (which can avoid that the calling party waits too long), and the like, and the first time period may be determined according to the service requirements of the user for each target scene, so as to better meet the requirements of the user for delay control in different scenes.
In some embodiments, the user may also adjust the first time period that needs to be delayed while the trigger operation is performed. After the earphone generates the control instruction according to the detected trigger operation, the earphone can also acquire operation intensity information of the trigger operation, and determine a first time period according to the operation intensity information, wherein the first time period can be in positive correlation with the operation intensity information, that is, the greater the operation intensity of the trigger operation is, the longer the first time period can be.
Optionally, the operation strength information may include, but is not limited to, one or more of an operation duration, an operation frequency, an operation strength, an operation area where the trigger operation is detected, and the like, and the specific operation strength information may be related according to a manner in which the trigger operation is detected by the headset. For example, if the earphone detects a trigger operation through the touch sensor, the operation strength information may include a duration of time that the user touches the touch sensor; the earphone detects the trigger operation through the acceleration sensor, and the operation intensity information can include the frequency (namely the operation frequency) of the change of the acceleration data acquired by the acceleration sensor; the earphone detects the trigger operation through the pressure sensor, and the operation strength information may include, but is not limited to, a pressing force collected through the pressure sensor.
When a user triggers the earphone, the operation intensity can be adjusted according to actual requirements, so that the delay time of the terminal equipment for delaying execution of operation is changed, and the control mode is more flexible and simpler.
In the embodiment of the application, the earphone can acquire the current service scene of the terminal device, and generate the control instruction matched with the service scene under different service scenes, so that the requirement of a user for controlling the terminal device by using the earphone under different service scenes is met, the memory cost of the user can be reduced, and the control mode of the earphone is enriched. Moreover, when the current service scene of the terminal equipment is a target scene, the earphone can perform delay control on the operation executed by the terminal equipment by combining the current wearing state, so that the requirement of a user on the delay control in practice is met, and the interaction between the earphone and the terminal equipment is more flexible and effective.
In some embodiments, the method further comprises: in a case where 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 changes from the target wearing state to another wearing state, the terminal device may be controlled to immediately perform an operation corresponding to the control instruction. The other wearing state refers to a wearing state other than the target wearing state, for example, if the target wearing state is a worn state, the other wearing state may be an unworn state, or if the target wearing state is an unworn state, the other wearing state may be a worn state, and the like.
When the current wearing state of the headset is not the target wearing state, it is described that delay control is not required for operations executed by the terminal device, and then a control instruction may be sent to the terminal device, so that the terminal device immediately executes corresponding operations according to the control instruction.
When the current wearing state of the earphone is the target wearing state, the delay control of the operation executed by the terminal equipment is needed, the earphone can wait for a first time period and then send a control instruction to the terminal equipment, if the earphone detects that the current wearing state is changed from the target wearing state to other wearing states in the waiting process, the delay control of the operation executed by the terminal equipment can be executed by the terminal equipment, and the earphone can directly send the control instruction to the terminal equipment, so that the terminal equipment can immediately execute corresponding operation according to the control instruction.
Optionally, when the current wearing state of the headset 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 for execution of an operation according to the control instruction. If the earphone detects that the current wearing state is changed from the target wearing state to other wearing states in the waiting process of the terminal equipment, the earphone can send an immediate execution command to the terminal equipment, and after the terminal equipment receives the immediate execution command, the terminal equipment can immediately execute the operation corresponding to the control command according to the immediate execution command.
In the embodiment of the application, the earphone can select whether to delay the terminal equipment or not by combining with the current wearing state, so that the flexibility and effectiveness of controlling the terminal equipment by the earphone are improved, and the earphone fits the requirements of users better.
In one embodiment, another earphone-based control method is provided, which is applicable to the terminal device described above, and the method may include the following steps:
and (a) receiving a control instruction sent by an earphone in communication connection with the terminal equipment, wherein the control instruction is sent when the earphone detects the trigger operation and the current wearing state of the earphone is the target wearing state.
And (b) executing an operation corresponding to the control instruction after waiting for a first time period based on the control instruction.
Optionally, after determining that the current wearing state is the target wearing state, the earphone may add delay information to the control instruction, and send the control instruction including the delay information to the terminal device, and the terminal device receives the control instruction, may analyze the control instruction to obtain the delay information, and executes a corresponding operation after waiting for the first time period according to the delay information.
In some embodiments, the headset and the terminal device may agree with a proprietary command format, and after determining that the current wearing status is the target wearing status, the headset may generate a control instruction according to the agreed command format and send the control instruction to the terminal device. The terminal equipment can analyze the control instruction after receiving the control instruction, and if the command format of the control instruction is determined to be the appointed command format according to the analysis result, the terminal equipment can execute the operation corresponding to the control instruction after waiting for the first time period. Further, the terminal device may send the analyzed instruction information (for example, operation information, delay information, and the like that need to be executed) to the corresponding application, and the application performs a delay operation according to the instruction information and then executes the corresponding operation after waiting for the first time period. The first time period may be delay information carried in the control instruction, or may be a delay time period preset in the terminal device, which is not limited herein. By adopting the method, the earphone can directly send the control instruction without adding functional modules such as a timer and the like to record the delay time, so that the cost of the earphone can be reduced.
It should be noted that, for the description of the earphone-based control method applied to the terminal device provided in the embodiments of the present application, reference may be made to the related description of the earphone-based control method applied to the earphone provided in the foregoing embodiments, and details are not repeated here.
In the embodiment of the application, the earphone can perform delay control on the operation executed by the terminal equipment by combining the detected touch operation and the current wearing state of the earphone, so that the requirement of a user on the delay control in practice is met, and the control mode of the earphone on the terminal equipment is enriched.
As shown in fig. 5, in one embodiment, another earphone-based control method is provided, which is applicable to the terminal device described above, and the method may include the following steps:
step 510, receiving control information sent by an earphone in communication connection with the terminal device, where the control information includes a control instruction and state information, the control instruction is generated by the earphone according to the detected trigger operation, and the state information is used to indicate a current wearing state of the earphone.
Wherein, the current wearing state of the headset refers to the wearing state when the headset generates the state information.
Step 520, if the current wearing state of the headset is determined to be the target wearing state according to the state information, after waiting for the first time period, executing an operation corresponding to the control instruction.
It should be noted that, for the description of the earphone-based control method applied to the terminal device provided in the embodiments of the present application, reference may be made to the relevant description of the earphone-based control method applied to the earphone provided in the foregoing embodiments, and details are not repeated here.
In the embodiment of the application, when the earphone detects a trigger operation, a control instruction is generated according to the trigger operation, and the current wearing state of the earphone is acquired, the earphone can send control information to the terminal device, the control information can include the control instruction and state information used for representing the current wearing state of the earphone, if the terminal device determines that the current wearing state is the target wearing state according to the state information, after waiting for a first time period, the operation corresponding to the control instruction is executed, the earphone can generate a corresponding control instruction based on the trigger operation performed by a user, and can perform delay control on the operation executed by the terminal device in combination with the wearing state of the earphone, so that the requirement of the user on delay control in practice is met, and the control mode of the earphone on the terminal device is enriched.
As shown in fig. 6, in one embodiment, an earphone-based control device 600 is provided, which can be applied to the earphone described above, and the earphone-based control device 600 can include an instruction generating module 610, a status acquiring module 620 and a control module 630.
And the instruction generating module 610 is configured to generate a control instruction according to the trigger operation when the earphone detects the trigger operation.
A state obtaining module 620, configured to obtain a current wearing state of the headset.
The control module 630 is configured to, when the current wearing state is the target wearing state, control the terminal device in communication connection with the headset to delay the first time period according to the control instruction, and then execute an operation corresponding to the control instruction.
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 used to instruct the terminal device to perform an operation corresponding to the control instruction.
In an embodiment, the control module 630 is further configured to send a control instruction to the terminal device, where the control instruction is used to instruct the terminal device to execute an operation corresponding to the control instruction after waiting for the first time period.
In an embodiment, the control module 630 is further configured to send control information to the terminal device, where the control information includes a control instruction and state information, and the state information is used to indicate the current wearing state; the control information is used for triggering the terminal equipment to execute the operation corresponding to the control instruction after waiting for the first time period if the current wearing state of the earphone is determined to be the target wearing state according to the state information.
In the embodiment of the application, when the earphone detects a trigger operation, a control instruction is generated according to the trigger operation, the current wearing state of the earphone is obtained, and when the current wearing state is the target wearing state, the terminal device in communication connection with the earphone is controlled according to the control instruction to delay for a first time period, and then the operation corresponding to the control instruction is executed.
As shown in fig. 7, in an embodiment, the headset-based control device 600 further includes a scene determination module 640 in addition to the instruction generation module 610, the state acquisition module 620 and the control module 630.
And a scene determining module 640, configured to determine a current service scene of the terminal device in communication connection with the headset.
The state obtaining module 620 is further configured to obtain a current wearing state of the headset if the service scene is the target scene.
In an embodiment, the control module 630 is further configured to, when the current wearing state is a target wearing state corresponding to a target scene, control, according to the control instruction, the terminal device in communication connection with the headset to delay for a first time period, and then execute an operation corresponding to the control instruction.
In one embodiment, the target scene comprises an image shooting scene, a target wearing state corresponding to the target scene is a worn state, the control instruction comprises a shooting instruction, and an operation corresponding to the control instruction is a shooting operation; and/or the target scene comprises a call scene, the target wearing state corresponding to the target scene is an unworn state, the control instruction comprises an answering instruction, and the operation corresponding to the control instruction is a call answering operation.
In one embodiment, the headset-based control device 600 described above further includes a time determination module.
And the time determining module is used for acquiring the operation intensity information of the trigger operation and determining a first time period according to the operation intensity information, wherein the first time period is in positive correlation with the operation intensity information. The operation intensity information comprises one or more of operation duration, operation frequency, operation strength and operation area for detecting trigger operation.
In one embodiment, the instruction generating module 610 is further configured to generate a control instruction matching the service scenario according to the trigger operation when the headset detects the trigger operation.
In one embodiment, the headphones comprise a first headphone and a second headphone. The instruction generating module 610 is further configured to determine that a target earphone triggering an operation is detected if a current service scenario of the terminal device includes a first service scenario and a second service scenario, where the first service scenario is a service scenario corresponding to an application running in a foreground of the terminal device, and the second service scenario is a service scenario corresponding to an application running in a background of the terminal device; if the target earphone is the first earphone, generating a control instruction matched with the first service scene according to the trigger operation; and if the target earphone is the second earphone, generating a control instruction matched with the second service scene according to the trigger operation.
In the embodiment of the application, the earphone can acquire the current service scene of the terminal device, and generate the control instruction matched with the service scene under different service scenes, so that the requirement of a user for controlling the terminal device by using the earphone under different service scenes is met, the memory cost of the user can be reduced, and the control mode of the earphone is enriched. Moreover, when the current service scene of the terminal device is a target scene, the earphone can perform delay control on the operation executed by the terminal device by combining the current wearing state, so that the requirement of a user on the delay control in practice is met, and the interaction between the earphone and the terminal device is more flexible and effective.
In one embodiment, the control module 630 is further configured to control the terminal device to immediately perform an 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 another wearing state.
In the embodiment of the application, the earphone can select whether to delay the terminal equipment or not by combining with the current wearing state, so that the flexibility and effectiveness of controlling the terminal equipment by the earphone are improved, and the earphone fits the requirements of users better.
In one embodiment, another earphone-based control device is provided, and the earphone-based control device may include an instruction receiving module and an execution module.
The earphone control device comprises an instruction receiving module, a control module and a control module, wherein the instruction receiving module is used for receiving a control instruction sent by an earphone which is in communication connection with terminal equipment, and the control instruction is sent when the earphone detects a trigger operation and the current wearing state of the earphone is a target wearing state;
and the execution module is used for executing the operation corresponding to the control instruction after waiting for the first time period based on the control instruction.
In an embodiment, the execution module is further configured to parse the control instruction, and if it is determined that the command format of the control instruction is the agreed command format according to the parsing result, execute an operation corresponding to the control instruction after waiting for the first time period.
In the embodiment of the application, the earphone can perform delay control on the operation executed by the terminal equipment in combination with the detected touch operation and the current wearing state of the earphone, so that the requirement of a user on the delay control in practice is met, and the control mode of the earphone on the terminal equipment is enriched.
As shown in fig. 8, in an embodiment, another earphone-based control apparatus 800 is provided, which can be applied to a terminal device, and the earphone-based control apparatus 800 can include an information receiving module 810 and an executing module 820.
The information receiving module 810 is configured to receive control information sent by an earphone in communication connection with the terminal device, where the control information includes a control instruction and state information, the control instruction is generated by the earphone according to the detected trigger operation, and the state information is used to indicate a current wearing state of the earphone.
And an executing module 820, configured to execute an operation corresponding to the control instruction after waiting for the first time period if it is determined that the current wearing state is the target wearing state according to the state information.
In the embodiment of the application, when the earphone detects a trigger operation, a control instruction is generated according to the trigger operation, the current wearing state of the earphone is obtained, the earphone can send control information to the terminal device, the control information can comprise the control instruction and state information used for representing the current wearing state of the earphone, if the terminal device determines that the current wearing state is the target wearing state according to the state information, after waiting for a first time period, the operation corresponding to the control instruction is executed, the earphone can generate a corresponding control instruction based on the trigger operation performed by a user, and the operation executed by the terminal device can be subjected to delay control by combining the wearing state of the earphone, so that the requirement of the user on delay control in practice is met, and the control mode of the earphone on the terminal device is enriched.
Fig. 9 is a block diagram of the structure of the headset in one embodiment. As shown in fig. 9, 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 that may be configured to be executed by the one or more processors 910 to implement the method applied to the headset as described in the various embodiments above.
Processor 910 may include one or more processing cores. The processor 910 interfaces with various components throughout the headset 900 using various interfaces and lines to perform various functions of the headset 900 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 920 and invoking data stored in the memory 920. Alternatively, the processor 910 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 910 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 910, but may be implemented by a communication chip.
The Memory 920 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 920 may be used to store instructions, programs, code sets, or instruction sets. The memory 920 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created during use of the headset 900, and the like.
It is understood that the headset 900 may include more or less structural elements than those shown in the above structural block diagrams, for example, a power module, a physical button, a bluetooth module, a sensor, etc., and is not limited herein.
An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method applied to a headset as described in the above embodiment.
Embodiments of the present application disclose a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is executable by a processor to implement a method applied to a headset as described in the embodiments above.
In one embodiment, a terminal device is provided, which may include a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to implement the method applied to the terminal device as described in the above embodiments.
The embodiment of the application discloses a computer readable storage medium which stores a computer program, wherein the computer program is used for realizing the method applied to the terminal equipment and described in the embodiment when being executed by a processor.
Embodiments of the present application disclose a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, and the computer program, when executed by a processor, implements the method applied to a terminal device as described in the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a ROM, etc.
Any reference to memory, storage, database or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM may take many forms, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), rambus Direct RAM (RDRAM), and Direct Rambus DRAM (DRDRAM).
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are exemplary embodiments in nature, and that acts and modules are not necessarily required to practice the invention.
In various embodiments of the present application, it should be understood that the sequence numbers of the above-mentioned processes do not imply a necessary order of execution, and the order of execution of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as separate products, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
The following describes in detail a control method, device, headset and computer readable storage medium based on headset disclosed in the embodiments of the present application, and the principles and embodiments of the present application are described herein by applying specific examples, and the description of the above embodiments is only used to help understanding the method and its core ideas of the present application. Meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

1. An earphone-based control method, applied to earphones, the method comprising:
when the earphone detects a trigger operation, generating a control instruction according to the trigger operation;
acquiring the current wearing state of the earphone;
and under the condition that the current wearing state is a target wearing state, controlling terminal equipment in communication connection with the earphone according to the control instruction, and executing operation corresponding to the control instruction after delaying for a first time period.
2. The method according to claim 1, wherein the controlling, according to the control instruction, the terminal device communicatively connected to the headset to perform an operation corresponding to the control instruction after a first time period is delayed comprises:
and after waiting for a first time period, sending the control instruction to the terminal equipment, wherein the control instruction is used for indicating the terminal equipment to execute the operation corresponding to the control instruction.
3. The method according to claim 1, wherein the controlling, according to the control instruction, the terminal device communicatively connected to the headset to perform an operation corresponding to the control instruction after a first time period is delayed comprises:
and sending the control instruction to the terminal equipment, wherein the control instruction is used for instructing the terminal equipment to execute the operation corresponding to the control instruction after waiting for a first time period.
4. The method according to claim 1, wherein, in a case that the current wearing state is a target wearing state, after controlling a terminal device in communication connection with the headset according to the control instruction to delay for a first time period, performing an operation corresponding to the control instruction includes:
sending control information to the terminal equipment, wherein the control information comprises the control instruction and state information, and the state information is used for representing the current wearing state; and the control information is used for triggering the terminal equipment to execute the operation corresponding to the control instruction after waiting for a first time period if the current wearing state is determined to be the target wearing state according to the state information.
5. The method of claim 1, wherein before generating the control instruction according to the trigger operation when the headset detects the trigger operation, the method further comprises:
determining a current service scene of a terminal device in communication connection with the earphone;
the acquiring the current wearing state of the earphone comprises:
and if the service scene is a target scene, acquiring the current wearing state of the earphone.
6. The method according to claim 5, wherein in the case that the current wearing state is a target wearing state, after controlling a terminal device in communication connection with the headset according to the control instruction to delay for a first period of time, performing an operation corresponding to the control instruction includes:
and under the condition that the current wearing state is a target wearing state corresponding to the target scene, controlling terminal equipment in communication connection with the earphone according to the control instruction to delay for a first time period, and then executing operation corresponding to the control instruction.
7. The method according to claim 6, wherein the target scene comprises an image capturing scene, a target wearing state corresponding to the target scene is a worn state, the control instruction comprises a capturing instruction, and an operation corresponding to the control instruction is a capturing operation; and/or
The target scene comprises a call scene, the target wearing state corresponding to the target scene is an unworn state, the control instruction comprises an answering instruction, and the operation corresponding to the control instruction is answering call operation.
8. The method according to any one of claims 5 to 7, wherein the generating a control instruction according to the trigger operation when the earphone detects the trigger operation comprises:
and when the earphone detects a trigger operation, generating a control instruction matched with the service scene according to the trigger operation.
9. The method of claim 8, wherein the headphones comprise a first headphone and a second headphone; the generating of the control instruction matched with the service scene according to the trigger operation includes:
if the current service scene of the terminal device comprises a first service scene and a second service scene, determining a target earphone for detecting the trigger operation, wherein the first service scene is a service scene corresponding to an application running in a foreground of the terminal device, and the second service scene is a service scene corresponding to an application running in a background of the terminal device;
if the target earphone is the first earphone, generating a control instruction matched with the first service scene according to the trigger operation;
and if the target earphone is the second earphone, generating a control instruction matched with the second service scene according to the trigger operation.
10. The method according to any one of claims 1 to 7, wherein after the earphone detects a trigger operation and generates a control instruction according to the trigger operation, the method further comprises:
acquiring operation intensity information of the trigger operation, and determining a first time period according to the operation intensity information, wherein the first time period and the operation intensity information are in positive correlation;
the operation intensity information includes one or more of operation duration, operation frequency, operation strength and operation area for detecting trigger operation.
11. The method of any one of claims 1 to 7, further comprising:
and under the condition that the current wearing state is not the target wearing state or when the current wearing state of the earphone is detected to be changed from the target wearing state to other wearing states, controlling the terminal equipment to immediately execute the operation corresponding to the control instruction.
12. A control method based on an earphone is characterized in that the control method is applied to a terminal device, and the method comprises the following steps:
receiving a control instruction sent by an earphone in communication connection with the terminal equipment, wherein the control instruction is sent when the earphone detects a trigger operation 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.
13. The method of claim 12, wherein performing an operation corresponding to the control instruction after waiting a first time period based on the control instruction comprises:
and analyzing the control instruction, and if the command format of the control instruction is determined to be the agreed command format according to the analysis result, executing the operation corresponding to the control instruction after waiting for a first time period.
14. A control method based on an earphone is characterized in that the control method is applied to a terminal device, and the method comprises the following steps:
receiving control information sent by an earphone in communication connection with the terminal equipment, wherein the control information comprises a control instruction and state information, the control instruction is generated by the earphone according to the detected trigger operation, and the state information is used for representing the current wearing state of the earphone;
and if the current wearing state is determined to be the target wearing state according to the state information, executing the operation corresponding to the control command after waiting for a first time period.
15. An earphone-based control device, applied to earphones, the device comprising:
the instruction generation module is used for generating a control instruction according to the trigger operation when the earphone detects the trigger operation;
the state acquisition module is used for acquiring the current wearing state of the earphone;
and the control module is used for controlling the terminal equipment in communication connection with the earphone to delay for a first time period according to the control instruction and then executing the operation corresponding to the control instruction under the condition that the current wearing state is the target wearing state.
16. An earphone-based control apparatus, applied to a terminal device, the apparatus comprising:
the earphone comprises an instruction receiving module, a control module and a processing module, wherein the instruction receiving module is used for receiving a control instruction sent by an earphone in communication connection with the terminal equipment, and the control instruction is sent when the earphone detects a trigger operation and the current wearing state of the earphone is a target wearing state;
and the execution module is used for executing the operation corresponding to the control instruction after waiting for a first time period based on the control instruction.
17. An earphone-based control device, applied to a terminal device, the device comprising:
the information receiving module is used for receiving control information sent by an earphone in communication connection with the terminal equipment, the control information comprises a control instruction and state information, the control instruction is generated by the earphone according to detected trigger operation, and the state information is used for representing the current wearing state of the earphone;
and the execution module is used for executing the operation corresponding to the control command after waiting for a first time period if the current wearing state is determined to be the target wearing state according to the state information.
18. A headset comprising a memory and a processor, the memory having stored thereon a computer program which, when executed by the processor, causes the processor to carry out the method of any of claims 1 to 11.
19. A terminal device comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the method of any one of claims 12 to 14.
20. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 11.
CN202110580647.6A 2021-05-26 2021-05-26 Earphone-based control method and device, earphone and computer-readable storage medium Pending CN115412802A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110580647.6A CN115412802A (en) 2021-05-26 2021-05-26 Earphone-based control method and device, earphone and computer-readable storage medium
PCT/CN2022/091950 WO2022247627A1 (en) 2021-05-26 2022-05-10 Control method and apparatus based on earphones, and earphones and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110580647.6A CN115412802A (en) 2021-05-26 2021-05-26 Earphone-based control method and device, earphone and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115412802A true CN115412802A (en) 2022-11-29

Family

ID=84154841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110580647.6A Pending CN115412802A (en) 2021-05-26 2021-05-26 Earphone-based control method and device, earphone and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN115412802A (en)
WO (1) WO2022247627A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009278268A (en) * 2008-05-13 2009-11-26 Sony Corp Headphone device
CN105895144A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Voice recording control method and device based on earphones
CN109040896B (en) * 2018-11-05 2020-02-14 厦门理工学院 Earphone and distance detection access method
CN109391869B (en) * 2018-11-05 2020-04-07 温州明澈眼镜科技有限公司 Earphone and ear canal judging and accessing method
CN109361981B (en) * 2018-11-05 2020-07-28 全芯科微电子科技(深圳)有限公司 Bluetooth headset and connection state control method thereof

Also Published As

Publication number Publication date
WO2022247627A1 (en) 2022-12-01

Similar Documents

Publication Publication Date Title
CN110493678B (en) Earphone control method and device, earphone and storage medium
US10349176B1 (en) Method for processing signals, terminal device, and non-transitory computer-readable storage medium
JP6489563B2 (en) Volume control method, system, device and program
CN109040446B (en) Call processing method and related product
US10649522B2 (en) Method, apparatus and system for controlling smart device based on headphone
US20170083494A1 (en) Electronic device and operation control method therefor
CN109067965B (en) Translation method, translation device, wearable device and storage medium
CN109360549B (en) Data processing method, wearable device and device for data processing
WO2020048209A1 (en) Sound effect processing method and apparatus, and electronic device and storage medium
CN113873379A (en) Mode control method and device and terminal equipment
CN107621933B (en) Audio playing method and device and related medium product
CN109104662A (en) Instruction executing method, operation response method, terminal and ear speaker device
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
WO2017166598A1 (en) Sound channel adjusting method and apparatus for headphones, electronic device, and storage medium
CN106888327B (en) Voice playing method and device
WO2023125847A1 (en) Audio processing method and system, and related apparatuses
CN113014983A (en) Video playing method and device, storage medium and electronic equipment
WO2023151526A1 (en) Audio acquisition method and apparatus, electronic device and peripheral component
CN105706427A (en) Determination of ambient sound processed audio information
CN114449391A (en) Recording method and device and electronic equipment
CN107454265B (en) Method and device for recording call information based on call mode change
JP2016067817A (en) Simulation game system, and information processing method and program
CN109361987B (en) Sports earphone and control method, device and equipment thereof
CN113039518B (en) Playing control method and device, computer readable storage medium and electronic equipment
CN115412802A (en) Earphone-based control method and device, earphone and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination