WO2022247627A1 - 基于耳机的控制方法、装置、耳机及计算机可读存储介质 - Google Patents

基于耳机的控制方法、装置、耳机及计算机可读存储介质 Download PDF

Info

Publication number
WO2022247627A1
WO2022247627A1 PCT/CN2022/091950 CN2022091950W WO2022247627A1 WO 2022247627 A1 WO2022247627 A1 WO 2022247627A1 CN 2022091950 W CN2022091950 W CN 2022091950W WO 2022247627 A1 WO2022247627 A1 WO 2022247627A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
control instruction
terminal device
wearing state
control
Prior art date
Application number
PCT/CN2022/091950
Other languages
English (en)
French (fr)
Inventor
包建全
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022247627A1 publication Critical patent/WO2022247627A1/zh

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

Definitions

  • the present application relates to the technical field of intelligent terminals, and in particular to an earphone-based control method, device, earphone, and computer-readable storage medium.
  • Headphones are important accessories for terminal devices such as mobile phones, tablets, and smart watches. Users use headphones in many daily scenarios, such as listening to music, listening to video, and talking with other people. At present, the user can only perform simple control on the terminal device by using the headset, such as increasing the volume, decreasing the volume, etc., and the control method is single, which cannot meet the actual needs of the user.
  • the embodiment of the present application discloses an earphone-based control method, device, earphone, and computer-readable storage medium, which can delay control the operations performed by the terminal device in combination with the wearing state of the earphone, and satisfy the user's practical requirements for delay control. requirements, and enrich the control methods of earphones on terminal equipment.
  • the embodiment of the present application discloses an earphone-based control method, which is applied to earphones, and the method includes:
  • the terminal device communicatively connected with the earphone is controlled according to the control instruction to execute an operation corresponding to the control instruction after a delay of a first period of time.
  • the embodiment of the present application discloses an earphone-based control method, which is applied to a terminal device, and the method includes:
  • control instruction sent by an earphone communicatively connected to the terminal device, where the control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is the target wearing state;
  • the embodiment of the present application discloses an earphone-based control method, which is applied to a terminal device, and the method includes:
  • control information sent by an earphone communicatively connected to the terminal device, where the control information includes a control instruction and status information, the control instruction is generated by the earphone according to a detected trigger operation, and the status information is used for Indicates the current wearing state of the earphone;
  • the embodiment of the present application discloses an earphone-based control device, which is applied to earphones, and the device includes:
  • An instruction generation module configured to generate a control instruction according to the trigger operation when the earphone detects the trigger operation
  • a state acquiring module configured to acquire the current wearing state of the earphone
  • a control module configured to control, according to the control instruction, a terminal device communicatively connected to the earphone to execute an action corresponding to the control instruction after a delay of a first period of time when the current wearing state is the target wearing state. operate.
  • the embodiment of the present application discloses an earphone-based control device, which is applied to a terminal device, and the device includes:
  • An instruction receiving module configured to receive a control instruction sent by an earphone communicatively connected to the terminal device, where the control instruction is when the earphone detects a trigger operation and the current wearing state of the earphone is the target wearing state sent;
  • An executing module configured to execute an operation corresponding to the control instruction after waiting for a first period of time according to the control instruction.
  • the embodiment of the present application discloses an earphone-based control device, which is applied to a terminal device, and the device includes:
  • An information receiving module configured to receive control information sent by an earphone communicatively connected to the terminal device, where the control information includes a control instruction and status information, and the control instruction is generated by the earphone according to a detected trigger operation,
  • the state information is used to indicate the current wearing state of the earphone;
  • An executing module configured to execute the operation corresponding to the control instruction after waiting for a first period of time if it is determined according to the state information that the current wearing state is the target wearing state.
  • the embodiment of the present application discloses an earphone, including a memory and a processor.
  • the memory stores a computer program.
  • the processor realizes the above-mentioned application to the earphone. Methods.
  • the embodiment of the present application discloses a terminal device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor realizes any of the above-mentioned The method applied to the end device.
  • the embodiment of the present application discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method applied to an earphone is implemented.
  • the embodiment of the present application discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned method applied to a terminal device is implemented.
  • FIG. 1 is an application scenario diagram of an earphone-based control method in an embodiment
  • FIG. 2 is a flow chart of an earphone-based control method in one embodiment
  • FIG. 3 is a flow chart of an earphone-based control method in another embodiment
  • Fig. 4A is a schematic diagram of an earphone generating control commands in an embodiment
  • Fig. 4B is a schematic diagram of a control instruction generated by an earphone in another embodiment
  • Fig. 4C is a schematic diagram of generating control commands by earphones in another embodiment
  • Fig. 5 is a flow chart of an earphone-based control method in yet another embodiment
  • Figure 6 is a block diagram of a headset-based control device in one embodiment
  • Figure 7 is a block diagram of an earphone-based control device in another embodiment
  • Fig. 8 is a block diagram of an earphone-based control device in yet another embodiment
  • Fig. 9 is a structural block diagram of an earphone in an embodiment.
  • first, second and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
  • a first headset could be termed a second headset, and, similarly, a second headset could be termed a first headset, without departing from the scope of the present application.
  • Both the first earphone and the second earphone belong to earphones, but they are not the same earphone.
  • the term “plurality” and the like used in the embodiments of the present application refer to two or more.
  • Fig. 1 is an application scene diagram of an earphone-based control method in an embodiment.
  • the earphone 10 can establish a communication connection with the terminal device 20, and the earphone 10 can include a headphone, an earphone, an earphone and an earphone, etc.
  • the structure of the earphone 10 is here Without limitation, the terminal device 20 may include, but not limited to, a mobile phone, a tablet computer, a wearable device, a vehicle terminal, a PC (Personal Computer, personal computer) and the like.
  • Wireless communication connections such as Bluetooth and WiFi (Wireless Fidelity, Wireless Fidelity) can be established between the earphone 10 and the terminal device 20, and wired communication connections can also be established through data lines, and the communication connection method is not limited here.
  • the user can control the function of the terminal device through the headset during the use of the headset, such as controlling the music played by the terminal device to switch to the next song, increasing the output volume, decreasing the output volume, etc., using the headset
  • the function of controlling terminal equipment is relatively simple, and the control of terminal equipment by earphones is immediate control, which makes it inconvenient for users to control in some scenarios and cannot meet the actual needs of users.
  • the immediate control will cause the user to have no time to adjust his camera posture, which will affect the camera effect.
  • a control command can be generated according to the trigger operation, and the current wearing state of the earphone can be obtained.
  • the terminal device 20 executes the operation corresponding to the control instruction after a delay of the first time period.
  • the earphone 10 can generate corresponding control instructions based on the trigger operation performed by the user, and can perform delay control on the operation performed by the terminal device 20 in combination with the current wearing state of the earphone 10, which satisfies the user's demand for delay control in practice, and enriches the How the headset controls the terminal device.
  • a headset-based control method is provided, which can be applied to the above-mentioned headset, and the method may include the following steps:
  • Step 210 when the earphone detects a trigger operation, generate a control instruction according to the trigger operation.
  • the trigger operation may be a preset interactive operation, and an operation detection device may be provided in the earphone, and the trigger operation performed by the user on the earphone is detected by the operation detection device.
  • the operation detection device may include but not limited to physical buttons, sensors, etc., and the sensors may include but not limited to touch sensors, pressure sensors, distance sensors, light sensors, and acceleration sensors.
  • the trigger operation can be the operation of pressing the physical button; if the operation detection device is an acceleration sensor, the trigger operation can be a shaking operation ( Shaking the earphone can generate corresponding acceleration), tapping operation (tapping the earphone can generate corresponding acceleration), etc.; the operation detection device is a touch sensor, and the trigger operation can be a touch sliding operation, etc.
  • the operation detection device is a touch sensor
  • the trigger operation may include sliding in a first direction (such as an upward direction when the earphone is worn) and sliding in a second direction (such as a downward direction when the earphone is worn).
  • the sliding in the first direction can be used to Control the volume up
  • slide in the second direction can be used to control the volume down.
  • the operation detection device is a pressure sensor
  • the trigger operation may include a press operation less than the pressure threshold and a press operation greater than or equal to the pressure threshold, and a press operation less than the pressure threshold may be used to control the terminal device to switch to the next audio file playback, greater than Or a pressing operation equal to the pressure threshold can be used to control the terminal device to answer a call, and so on.
  • multiple different operation detection devices can also be set in the earphone at the same time, each operation detection device can set one or more trigger operations, and different trigger operations can be used to trigger the control of different functions on the terminal device , the user can perform a corresponding trigger operation on the earphone according to the actual required control function, so as to control the corresponding function on the terminal device.
  • the earphone can generate corresponding control instructions according to the detected trigger operation, so as to control corresponding functions on the terminal device.
  • Step 220 acquiring the current wearing state of the earphone.
  • the wearing state of the headset can include the worn state and the unworn state.
  • the worn state refers to the state where the user puts the earphone on the ear and can receive the voice signal output by the earphone.
  • the unworn state refers to the state that the earphone is not attached to the ear. combined state.
  • Different types of headphones are worn differently, for example, headphones are worn by placing the stem on top of the head and fitting the earphones to the ears, and in-ear headphones or earbuds are worn by inserting the earphones into the earphones. In the ear, the wearing method of the ear-hanging earphone is hanging on the auricle, etc., which is not limited here.
  • a wearing detection sensor may be provided in the earphone, and the current wearing state of the earphone may be detected through the wearing detection sensor.
  • the wearing detection sensor may include, but not limited to, one or more of a light sensor, an attitude sensor, a distance sensor, a temperature sensor, a heart rate sensor, and the like.
  • the earphone can obtain the ambient light brightness information of the earphone through the light sensor, and when it is detected that the ambient light brightness information is less than or equal to the brightness threshold, it is determined that the wearing state of the earphone is the worn state; when it is detected that the ambient light brightness information is greater than When the brightness threshold is set, it is determined that the wearing state of the headset is not wearing.
  • the earphone can obtain the attitude information of the earphone through the attitude sensor. If the attitude information matches the attitude information when the earphone is worn, it can be determined that the wearing state of the earphone is the worn state. If the attitude information of the headset does not match, it can be determined that the wearing state of the headset is not wearing.
  • the earphone can obtain the distance information between the earphone and the human ear through the distance sensor, and when it is detected that the distance information is less than or equal to the distance threshold, it is determined that the wearing state of the earphone is the worn state, and when the distance information is detected When it is greater than the distance threshold, it is determined that the wearing state of the earphone is the unwearing state.
  • the earphone can collect the temperature information on the earphone surface through the temperature sensor, and when it is detected that the temperature information is greater than or equal to the temperature threshold, it means that the earphone is attached to the human ear, and the wearing state of the earphone can be determined as the worn state.
  • the temperature information is less than the temperature threshold, it means that the earphone is not attached to the ear of the human body, and it can be determined that the wearing state of the earphone is the unwearing state.
  • the earphone can collect the heart rate fluctuation signal through the heart rate sensor, and when the heart rate fluctuation signal is detected, it can be determined that the wearing state of the earphone is the worn state; when the heart rate fluctuation signal is not detected, it can be determined that the wearing state of the earphone is not wearing status.
  • one or more of the above-mentioned different sensors can be installed in the earphone at the same time, and the wearing state of the earphone can be jointly determined through the data collected by multiple different sensors at the same time, so that the accuracy of wearing state detection can be improved.
  • Each of the above thresholds may be set according to actual requirements, or may be set through multiple experiments.
  • the earphone can also detect the wearing state of the earphone in other ways, and is not limited to the above-mentioned detection by wearing the detection sensor.
  • the wearing state of the earphone for example, when it is detected that the noise signal collected by the feedforward microphone of the earphone suddenly decreases, it can be determined that the wearing state of the earphone is the worn state.
  • the embodiment of the present application does not specifically limit the manner in which the earphone detects the wearing state.
  • the earphone can detect the current wearing state of the earphone through the wearing state detection method described in the above embodiment every time a trigger operation is detected.
  • the earphone may also use the wearing state detection method described in the above embodiments to detect the wearing state of the earphone, and record the wearing state of the earphone through a 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 can be composed of one or more of numbers, symbols, letters, Chinese characters, etc.
  • the status label of the worn state can be 1, and the status label of the unworn state can be 0, but it is not limited thereto.
  • Each time the earphone detects a trigger operation it can read the currently recorded status tag, and determine the current wearing status of the earphone according to the current status tag. In this manner, the current wearing state of the earphone can be obtained more quickly without waiting for the detection process, thereby improving efficiency.
  • Step 230 In the case that the current wearing state is the target wearing state, control the terminal device communicatively connected with the earphone according to the control instruction to execute the operation corresponding to the control instruction after a delay of a first period of time.
  • the target wearing state can be a preset wearing state.
  • the target wearing state can be the worn state or the unworn state.
  • the user can set the target wearing state that requires delay control according to actual needs.
  • the developer of the headset or the terminal device Application developers can also set the target wearing state that requires delay control according to business needs.
  • the headset after the headset obtains the current wearing state, it can determine whether the current wearing state is the target wearing state. If the current wearing state is the target wearing state, it can perform delay control on the terminal device, and control the terminal device to delay After the first period of time, the operation corresponding to the control instruction is executed.
  • the first time period may be set according to actual needs, such as 3 seconds, 2 seconds, 5 seconds, etc., which is not limited herein. It should be noted that the delay of the first period of time may start counting from the moment when the earphone detects the trigger operation, or start counting from the moment when the current wearing state of the earphone is determined as the target wearing state, etc., which is not limited herein.
  • the earphone controls the terminal device to delay the first time period according to the control instruction, and executes the operation corresponding to the control instruction.
  • the earphone may send a control instruction to the terminal device after waiting for the first time period. It can be used to instruct the terminal device to perform the operation corresponding to the control instruction.
  • the headset can delay control of the terminal device by delaying the sending of control commands. In this way, there is no need to change the command format between the headset and the terminal device.
  • the terminal device still executes the corresponding operation when receiving the control command, and the control method is more for simplicity.
  • the earphone controls the terminal device to perform the operation corresponding to the control instruction after delaying the first time period according to the control instruction.
  • the earphone may also send the control instruction to the terminal device, and the control instruction is used to instruct the terminal device to After waiting for the first time period, perform the operation corresponding to the control instruction.
  • the earphone determines that the current wearing state is the target wearing state, it can add delay information to the control command, and send the control command containing the delay information to the terminal device, and the terminal device receives the control command and can
  • the control instruction is analyzed to obtain the delay information, and the corresponding operation is performed after waiting for the first time period according to the delay information.
  • the earphone and the terminal device may agree on a private command format. After the earphone determines that the current wearing state is the target wearing state, the earphone may generate a control command according to the agreed command format and send the control command to the terminal device. After receiving the control instruction, the terminal device can analyze the control instruction, and if it is determined according to the analysis result that the command format of the control instruction is the agreed command format, it can execute the command corresponding to the control instruction after waiting for the first period of time. operation. Furthermore, the terminal device can send the parsed instruction information (such as operation information to be executed, delay information, etc.) to the corresponding application, and the application will perform the delayed operation according to the instruction information, and then execute the instruction after waiting for the first period of time.
  • the parsed instruction information such as operation information to be executed, delay information, etc.
  • the first time period may be delay information carried in the control instruction, or a delay time period preset in the terminal device, which is not limited herein. In this way, the headset can directly send control commands, without adding a timer and other functional modules to record the delay time, which can reduce the cost of the headset.
  • the headset after acquiring the current wearing state, can generate control information according to the control instruction and the current wearing state, and send the control information to the terminal device.
  • the control information can include control instructions and status information.
  • the state information may be used to indicate the current wearing state of the earphone, and further, the state information may include the above-mentioned state label.
  • the control information may be used to instruct the terminal device to execute the operation corresponding to the control instruction after waiting for a first period of time if the current wearing state of the earphone is determined to be the target wearing state according to the state information.
  • the terminal device 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. If it is determined that the current wearing state of the earphone is the target wearing state, it can wait for the first period of time After that, execute the operation corresponding to the control instruction.
  • the earphone 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 obtained.
  • the communication-connected terminal device executes the operation corresponding to the control command after a delay of the first period of time, and the headset can generate a corresponding control command based on the trigger operation performed by the user, and can delay the operation performed by the terminal device in combination with the wearing state of the headset.
  • the control satisfies the user's demand for delay control in practice, and enriches the control mode of the earphone to the terminal device.
  • another headphone-based control method is provided, which can be applied to the above-mentioned headphones, and the method may include the following steps:
  • Step 302 determine the current service scenario of the terminal device communicatively connected with the earphone.
  • the current business scenario of the terminal device can be determined according to the business operation currently performed by the terminal device.
  • the business operation refers to the operation of processing business data in the terminal device.
  • the business data may include but not limited to image data, voice data, video Data, etc.
  • each application program running on the terminal device can be regarded as a business module, and corresponding business operations can be performed through each running application program.
  • a calling operation can be performed through a calling application
  • a multimedia data playback operation can be performed through a multimedia application
  • a shooting operation can be performed through a camera application
  • a chat operation can be performed through a social networking application.
  • the business operations performed by the terminal device can be divided into one or more business scenarios.
  • the call operation can correspond to the call scene
  • the shooting operation can correspond to the image shooting scene
  • the multimedia data playback operation can correspond to the audio playback scene, etc., but not limited to this .
  • the earphone may send a scene information acquisition request to the terminal device, and the scene information acquisition request is used to request to obtain relevant information of the current service scene of the terminal device, and the relevant information may include but not limited to the applications currently running on the terminal device One or more of program information, currently executed task information, processed business data, etc.
  • the application program information may include application identification, application type, etc., and the application identification may be used to uniquely identify the application program, and the application type may include but not limited to social application, multimedia application, communication application, etc.
  • Task information may include, but not limited to, operations performed by the task, data processed by the task, and the like.
  • the terminal device can send relevant information of the current service scene to the earphone, and the earphone can determine the current service scene of the terminal device according to the relevant information sent by the terminal device.
  • the headset may pre-store the correspondence between relevant information and scenes.
  • the headset may store the correspondence between applications and scenes.
  • the business scenario corresponding to the program information If the application currently running on the terminal device is a camera application, the corresponding business scenario can be an image shooting scene. If the application program currently running on the terminal device is a music application, the corresponding business scenario can be audio playback. scenes, etc., but not limited thereto.
  • the headset can also directly determine the task currently performed by the terminal device based on the task information currently performed by the terminal device, and determine the service scenario corresponding to the currently performed task.
  • the task currently performed by the terminal device is an incoming call answering task, which can be It is determined that the business scene is a call scene, and the task currently performed by the terminal device is a task of processing images collected by a camera, then the business scene may be determined as an image shooting scene, etc., but is not limited thereto.
  • the terminal device can also directly determine the current business scene according to the currently running application program and the executed tasks, and directly feed back the scene identification of the business scene to the earphone, Different service scenarios may correspond to different scene identifiers, and the headset can determine the current service scenario of the terminal device according to the scenario identifiers.
  • the terminal device can also actively send a service notification to the headset.
  • the terminal device can send a service notification to the headset when starting a new application program or a new task process.
  • the service notification can be Include information related to the current business scenario of the terminal device, such as newly launched application program information and task information, or directly include the scene identification of the business scenario determined according to the newly launched application program information, task information, etc.
  • the headset receives the service notification, it can determine the current service scenario of the terminal device according to the service notification.
  • the service scenario of the terminal device can be determined by the earphone actively obtaining information from the terminal device or by the terminal device notifying the earphone, which increases the flexibility of the earphone to determine the service scene.
  • Step 304 when the earphone detects the trigger operation, generate a control instruction matching the service scenario according to the trigger operation.
  • the earphone when the earphone detects the same trigger operation, different control instructions may be generated.
  • the earphone detects a trigger operation, it can determine the corresponding control function of the trigger operation in the current service scenario of the terminal device, so as to generate a corresponding control instruction, and the generated control instruction matches the current service scenario of the terminal device.
  • the generated control command can be a hang up command, which can be used to control the terminal device to hang up the current call
  • the generated control command can be a rollback command, which is used to control the terminal device to fast-rewind the currently played audio data, etc., and will not be described here. limited.
  • different control instructions matching the business scenario can also be generated according to different trigger operations. For example, for a call scenario, if the earphone detects a single-click operation performed by the user on the outer surface of the earphone, the generated control command is an answer command; when the earphone detects a double-click operation performed by the user on the outer surface of the earphone, the generated control command is Hang up command.
  • the generated control command is a shooting command, which is used to control the terminal device to capture images through the camera, and the headset detects a sliding operation through the touch sensor, then generates
  • the control instruction is a camera switching instruction, and the mode switching instruction can be used to switch the currently activated camera of the terminal device, but is not limited thereto.
  • Fig. 4A is a schematic diagram of an earphone generating control instructions in an embodiment.
  • the current business scene of the terminal device 20 is an image shooting scene, and when the earphone 10 detects a trigger operation, a shooting instruction matching the image shooting scene can be generated.
  • Fig. 4B is a schematic diagram of generating a control command by an earphone in another embodiment.
  • the current business scenario of the terminal device 20 is an audio playback scenario.
  • a song cut instruction matching the audio playback scenario can be generated.
  • Fig. 4C is a schematic diagram of generating control instructions by the earphone in another embodiment.
  • the current business scene of the terminal device 20 is a call scene, and when the earphone 10 detects the same trigger operation as in FIGS. 4A and 4B , a shooting instruction matching the call scene can be generated.
  • Figures 4A to 4C only show several examples of how the earphones generate control commands in the embodiment of the present application, and the specific business scenarios and the control commands generated by different trigger operations in each business scenario can be implemented according to actual needs. settings are not limited here.
  • the earphone may include a first earphone and a second earphone, the first earphone may be a left earphone, the second earphone may be a right earphone, or the first earphone may be a right earphone, and the second earphone may be a left earphone.
  • the target earphone that triggers the operation can be detected, wherein the first business scenario is the business scenario corresponding to the application running in the foreground of the terminal device, and the second business scenario A scenario is a business scenario corresponding to an application running in the background of a terminal device. If the target earphone is the first earphone, a control instruction matching the first service scenario is generated according to the trigger operation; if the target earphone is the second earphone, a control instruction matching the second service scenario is generated according to the trigger operation.
  • the terminal device may run applications that can be controlled by earphones in the front and background at the same time, and the foreground application and the background application correspond to different business scenarios. scenarios), or run reading applications in the foreground (corresponding to information browsing scenarios), and run music applications in the background (corresponding to audio playback scenarios), etc. If the headset detects that the terminal device currently has two different business scenarios, the user can choose to control the first business scenario of the foreground application or the second business scenario of the background application through triggering operations on the headsets on different sides. .
  • the headset can obtain the target headset that has detected the trigger operation, and judge whether the target headset that has detected the trigger operation is the first headset or the second headset. If it is the first headset, it can generate a control that matches the first business scenario according to the trigger operation If the instruction is the second earphone, a control instruction matching the second service scenario may be generated according to the trigger operation. For example, the terminal device runs a camera application (corresponding to the image shooting scene) in the foreground, and runs a music application (corresponding to the audio playback scene) in the background. If a click operation is detected on the left earphone, a shooting instruction matching the image shooting scene can be generated.
  • a song cut instruction matching the audio playback scene can be generated, but not limited thereto.
  • the flexibility of the user to control the terminal device by using the earphone can be improved, and the control method is more convenient and fast.
  • the headset can generate control instructions that match the business scenario according to the detected trigger operation, so that the user can control the execution of different services on the terminal device by performing trigger operations on the headset. Responsive, and the same trigger operation can be reused in multiple different business scenarios, without the need to add new physical buttons or design new trigger operations, reduce the user's memory cost, and improve the convenience of operation and control efficiency.
  • Step 306 if the business scene is the target scene, obtain the current wearing state of the headset.
  • the headset After the headset obtains the current business scenario of the terminal device, it can determine whether the business scenario is a target scenario.
  • the target scenario can refer to a business scenario that requires delay control. If the current business scenario of the terminal device is the target scenario, the headset can The current wearing state, combined with the wearing state to perform delay control on the operations performed by the terminal device.
  • the target scene may be set by the user according to actual requirements, or may be designed by the research and development personnel of the earphone or the terminal device according to the business requirements, which is not limited herein.
  • Step 308 In the case that the current wearing state is the target wearing state corresponding to the target scene, control the terminal device communicatively connected with the earphone according to the control instruction to execute the operation corresponding to the control instruction after a delay of a first period of time.
  • each target scene it may correspond to a 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 may indicate that delay control needs to be performed on operations performed by the terminal device.
  • the target scene may include an image shooting scene
  • the target wearing state corresponding to the image shooting scene may be a worn state.
  • the earphone can generate different control commands according to different detected trigger operations, which may include but not limited to shooting commands, zooming in on images, zooming out of images, switching cameras, adjusting shooting modes, etc. .
  • the control instructions may be set as control instructions requiring delayed control.
  • the control instruction that requires delayed 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 device is in the image shooting scene, when the headset detects a trigger operation for triggering the shooting operation, a shooting instruction can be generated. If the current wearing state of the headset is worn, the terminal device can be controlled to delay the shooting for the first time period Operation, so as to prevent the terminal device from capturing the user's operation of the earphone into the image, which will affect the effect of image capture, and can better meet the user's needs for using the earphone to control the terminal device to capture images.
  • the target scene may include a call scene
  • the target wearing state corresponding to the call scene may be an unwearing state.
  • the earphone can generate different control commands according to different detected trigger operations, and the control commands can include but not limited to answer commands, hang up commands, volume up commands, volume down commands, and the like.
  • the control instruction requiring delay control may include an answering instruction, and the operation performed by the terminal device corresponding to the control instruction may be an operation of answering a call.
  • the terminal device When the terminal device is in a call scene, when the headset detects a trigger operation to trigger the call answering operation, it can generate an answer command. If the current wearing state of the headset is not worn, the terminal device can be controlled to delay the first time period to perform answering. Call operation, so as to prevent the user from answering the call before wearing the headset, thereby missing important information, and can better meet the user's demand for using the headset to control the terminal device to answer the call.
  • the earphone detects the trigger operation used to trigger the switch camera operation, or detects the trigger operation used to trigger the enlarged image
  • the earphone can 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.
  • the same or different first time periods can also be set, for example, in an image capture scene, the corresponding first time period can be 5 seconds (can give the user more time In the call scene, the corresponding first time period can be 2 seconds (to avoid the caller waiting too long), etc.
  • the first time period can be determined according to the user's business needs for each target scene, so that It is more suitable for users' needs for delay control in different scenarios.
  • the user can also adjust the first time period that needs to be delayed when performing the trigger operation.
  • the earphone After the earphone generates a control instruction according to the detected trigger operation, the earphone can also obtain the operation intensity information of the trigger operation, and determine the first time period according to the operation intensity information, and the first time period can be positively correlated with the operation intensity information, That is, the greater the intensity of the triggering operation, the longer the first time period may be.
  • the operation intensity information may include but not limited to one or more of the operation duration, operation frequency, operation force, operation area where the trigger operation is detected, etc.
  • the specific operation intensity information may be based on the way the earphone detects the trigger operation relevant. For example, if the earphone detects the trigger operation through the touch sensor, the operation intensity information may include the duration of the user’s touch on the touch sensor; if the earphone detects the trigger operation through the acceleration sensor, the operation intensity information may include the acceleration data collected by the acceleration sensor changes. Frequency (that is, the operating frequency); the earphone detects and triggers the operation through the pressure sensor, and the operation intensity information may include the pressing force collected by the pressure sensor, etc., but is not limited thereto.
  • the earphone can obtain the current business scene of the terminal device, and generate control commands matching the business scene in different business scenes, so as to meet the needs of users to use the earphone to control the terminal device in different business scenes, and can reduce the The user's memory cost enriches the control methods of the headset.
  • the earphone can perform delay control on the operation performed by the terminal device in combination with the current wearing state, which meets the user's demand for delay control in practice, making the interaction between the earphone and the terminal device More flexible and effective.
  • the above method further includes: when the current wearing state of the earphone is not the target wearing state, or when it is detected that the current wearing state of the earphone changes from the target wearing state to another wearing state, controlling The terminal device immediately executes the operation corresponding to the control instruction.
  • other wearing states refer to wearing states other than the target wearing state. For example, if the target wearing state is a worn state, then other wearing states can be unworn states, or if the target wearing state is an unworn state, then other wearing states It may be in a worn state or the like.
  • the current wearing state of the headset is not the target wearing state, it means that there is no need to delay the control of the operation performed by the terminal device, and then a control command can be sent to the terminal device so that the terminal device can immediately perform the corresponding operation according to the control command .
  • the current wearing state of the earphone When the current wearing state of the earphone is the target wearing state, it means that the operation performed by the terminal device needs to be delayed.
  • the earphone can wait for the first period of time before sending a control command to the terminal device.
  • the current wearing state changes from the target wearing state to another wearing state it means that the terminal device can perform the operation corresponding to the control command, and the earphone can directly send the control command to the terminal device, so that the terminal device can immediately execute the corresponding operation according to the control command. operation.
  • the terminal device when the current wearing state of the earphone is the target wearing state, if the earphone has sent a control instruction to the terminal device, the terminal device is in a state of waiting to perform an operation according to the control instruction. If the earphone detects that the current wearing state changes from the target wearing state to another wearing state during the waiting process of the terminal device, the earphone can send an immediate execution command to the terminal device, and the terminal device can execute the immediate execution command according to the The immediate execution command immediately executes the operation corresponding to the control instruction.
  • the earphone can choose whether to delay control the terminal device based on the current wearing state, which improves the flexibility and effectiveness of the earphone to control the terminal device, and better meets the user's needs.
  • another earphone-based control method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
  • Step (a) receiving a control instruction sent by the earphone communicatively connected with the terminal device, the control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is the target wearing state.
  • Step (b) based on the control instruction, execute the operation corresponding to the control instruction after waiting for a first period of time.
  • the earphone after the earphone determines that the current wearing state is the target wearing state, it can add delay information to the control command, and send the control command containing the delay information to the terminal device, and the terminal device receives the control command and can The control instruction is analyzed to obtain the delay information, and the corresponding operation is performed after waiting for the first time period according to the delay information.
  • the earphone and the terminal device may agree on a private command format. After the earphone determines that the current wearing state is the target wearing state, the earphone may generate a control command according to the agreed command format and send the control command to the terminal device. After receiving the control instruction, the terminal device can analyze the control instruction, and if it is determined according to the analysis result that the command format of the control instruction is the agreed command format, it can execute the command corresponding to the control instruction after waiting for the first period of time. operation. Furthermore, the terminal device can send the parsed instruction information (such as operation information to be executed, delay information, etc.) to the corresponding application, and the application will perform the delayed operation according to the instruction information, and then execute the instruction after waiting for the first period of time.
  • the parsed instruction information such as operation information to be executed, delay information, etc.
  • the first time period may be delay information carried in the control instruction, or a delay time period preset in the terminal device, which is not limited herein. In this way, the headset can directly send control commands, without adding a timer and other functional modules to record the delay time, which can reduce the cost of the headset.
  • the earphone can delay control the operation performed by the terminal device in combination with the detected touch operation and the current wearing state of the earphone, which satisfies the user's demand for delay control in practice, and enriches the earphone's ability to control the terminal. How the device is controlled.
  • another headphone-based control method is provided, which can be applied to the above-mentioned terminal device, and the method may include the following steps:
  • Step 510 Receive control information sent by the earphone connected to the terminal device in communication.
  • the control information includes a control instruction and status information.
  • the control instruction is generated by the earphone according to the detected trigger operation, and the status information is used to indicate the current wearing state of the earphone.
  • the current wearing state of the earphone refers to the wearing state when the earphone generates the state information.
  • Step 520 if it is determined according to the state information that the current wearing state of the earphone is the target wearing state, then after waiting for a first period of time, perform an operation corresponding to the control instruction.
  • a control instruction is generated according to the trigger operation, and the current wearing state of the earphone is obtained, and the earphone can send control information to the terminal device, and the control information may include the control instruction and the State information indicating the current wearing state of the earphone.
  • the terminal device determines that the current wearing state is the target wearing state according to the state information, it will wait for the first period of time before executing the operation corresponding to the control command.
  • the earphone can be triggered based on the user.
  • the operation generates corresponding control instructions, and can delay control the operation performed by the terminal device in combination with the wearing state of the headset, which meets the user's demand for delay control in practice, and enriches the control mode of the headset on the terminal device.
  • an earphone-based control device 600 is provided, which can be applied to the above-mentioned earphones.
  • the earphone-based control device 600 may include a command generation module 610, a state acquisition module 620 and a control module. 630.
  • the instruction generation module 610 is configured to generate a control instruction according to the trigger operation when the earphone detects the trigger operation.
  • the state obtaining module 620 is configured to obtain the current wearing state of the earphone.
  • the control module 630 is configured to control the terminal device communicatively connected with the earphone according to the control instruction to execute the operation corresponding to the control instruction after a delay of a first period of time when the current wearing state is the target wearing state.
  • control module 630 is further configured to send a control instruction to the terminal device after waiting for a first period of time, where the control instruction is used to instruct the terminal device to perform an operation corresponding to the control instruction.
  • 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 perform an operation corresponding to the control instruction after waiting for a first period of time.
  • control module 630 is further configured to send control information to the terminal device, the control information includes control instructions and status information, and the status information is used to indicate the current wearing status; the control information is used to If the triggering terminal device determines that the current wearing state of the earphone is the target wearing state according to the state information, it waits for a first period of time and then executes an operation corresponding to the control instruction.
  • the earphone 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 obtained.
  • the communication-connected terminal device executes the operation corresponding to the control command after a delay of the first period of time, and the headset can generate a corresponding control command based on the trigger operation performed by the user, and can delay the operation performed by the terminal device in combination with the wearing state of the headset.
  • the control satisfies the user's demand for delay control in practice, and enriches the control mode of the earphone to the terminal device.
  • the earphone-based control device 600 includes not only an instruction generation module 610 , a state acquisition module 620 and a control module 630 , but also a scene determination module 640 .
  • the scene determining module 640 is configured to determine the current service scene of the terminal device communicatively connected with the earphone.
  • the state obtaining module 620 is also used to obtain the current wearing state of the earphone if the business scene is the target scene.
  • control module 630 is further configured to, in the case that the current wearing state is the target wearing state corresponding to the target scene, control the terminal device communicatively connected with the earphone to delay the first time period according to the control instruction, and execute The operation corresponding to the control instruction.
  • the target scene includes an image shooting scene, the target wearing state corresponding to the target scene is a worn state, the control instruction includes a shooting instruction, and the operation corresponding to the control instruction is a shooting operation; and/or, the target scene includes a call
  • the target wearing state corresponding to the target scene is an unwearing state
  • the control instruction includes an answering instruction
  • the operation corresponding to the control instruction is an answering call operation.
  • the aforementioned earphone-based control device 600 further includes a time determination module.
  • the time determining module is used to obtain the operation intensity information of the triggering operation, and determine the first time period according to the operation intensity information, and the first time period is positively correlated with the operation intensity information.
  • the operation intensity information includes one or more of operation duration, operation frequency, operation force, and operation area where a trigger operation is detected.
  • the instruction generating module 610 is further configured to generate a control instruction matching the service scenario according to the trigger operation when the earphone detects the trigger operation.
  • the earphone includes a first earphone and a second earphone.
  • the instruction generation module 610 is further configured to determine the target earphone that triggers the operation if the current business scenario of the terminal device includes a first business scenario and a second business scenario, wherein the first business scenario corresponds to an application running in the foreground of the terminal device business scenario, the second business scenario is the business scenario corresponding to the application running in the background of the terminal device;
  • the headset generates a control instruction matching the second service scenario according to the trigger operation.
  • the headset can obtain the current business scenario of the terminal device, and generate control commands that match the business scenario in different business scenarios, so as to meet the needs of users to use the headset to control the terminal device in different business scenarios, and can reduce The user's memory cost enriches the control methods of the headset.
  • the earphone can perform delay control on the operation performed by the terminal device in combination with the current wearing state, which meets the user's demand for delay control in practice, making the interaction between the earphone and the terminal device More flexible and effective.
  • control module 630 is further configured to control the terminal device 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 Immediately execute the operation corresponding to the control instruction.
  • the earphone can choose whether to delay control the terminal device based on the current wearing state, which improves the flexibility and effectiveness of the earphone to control the terminal device, and better meets the user's needs.
  • another headset-based control device is provided, and the headset-based control device may include an instruction receiving module and an executing module.
  • An instruction receiving module configured to receive a control instruction sent by an earphone connected to the terminal device in communication, where the control instruction is sent by the earphone when a trigger operation is detected and the current wearing state of the earphone is the target wearing state;
  • An execution module configured to execute an operation corresponding to the control instruction after waiting for a first period of time based on the control instruction.
  • the execution module is also used to analyze the control instruction, if it is determined according to the result of the analysis that the command format of the control instruction is the agreed command format, then after waiting for the first period of time, execute the command corresponding to the control instruction. operation.
  • the earphone can delay control the operation performed by the terminal device in combination with the detected touch operation and the current wearing state of the earphone, which satisfies the user's demand for delay control in practice, and enriches the earphone's ability to control the terminal. How the device is controlled.
  • another earphone-based control apparatus 800 is provided, which can be applied to a terminal device.
  • the earphone-based control apparatus 800 may include an information receiving module 810 and an execution module 820 .
  • the information receiving module 810 is used to receive the control information sent by the earphone connected to the terminal device.
  • the control information includes control instructions and status information.
  • the control instructions are generated by the earphone according to the detected trigger operation.
  • the status information is used to indicate the current wearing status.
  • the executing module 820 is configured to, if it is determined according to the state information that the current wearing state is the target wearing state, execute the operation corresponding to the control instruction after waiting for a first period of time.
  • a control instruction is generated according to the trigger operation, and the current wearing state of the earphone is obtained, and the earphone can send control information to the terminal device, and the control information may include the control instruction and the State information indicating the current wearing state of the earphone.
  • the terminal device determines that the current wearing state is the target wearing state according to the state information, it will wait for the first period of time before executing the operation corresponding to the control command.
  • the earphone can be triggered based on the user.
  • the operation generates corresponding control instructions, and can delay control the operation performed by the terminal device in combination with the wearing state of the headset, which meets the user's demand for delay control in practice, and enriches the control mode of the headset on the terminal device.
  • Fig. 9 is a structural block diagram of an earphone in an embodiment.
  • the earphone 900 may include one or more of the following components: a processor 910, a memory 920 coupled to the processor 910, wherein the memory 920 may store one or more computer programs, and one or more computer programs may When it is configured to be executed by one or more processors 910, the methods applied to earphones as described in the foregoing embodiments are implemented.
  • Processor 910 may include one or more processing cores.
  • the processor 910 uses various interfaces and lines to connect various parts in the entire earphone 900, by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920, to execute the earphone 900 various functions and processing data.
  • the processor 910 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 910 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 910, but may be realized by a communication chip alone.
  • the memory 920 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM).
  • the memory 920 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 920 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like.
  • the storage data area can also store data and the like created by the earphone 900 during use.
  • the earphone 900 may include more or less structural elements than those in the above structural block diagram, for example, including a power module, a physical button, a bluetooth module, a sensor, etc., and it is not limited here.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, wherein, when the computer program is executed by a processor, the method applied to the earphone as described in the above-mentioned embodiments is implemented.
  • the embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented.
  • the headset method includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented.
  • the headset method includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented.
  • the headset method includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented.
  • a terminal device may include a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the above-mentioned embodiments. Described methods applied to end devices.
  • the embodiment of the present application discloses a computer-readable storage medium, which stores a computer program, where, when the computer program is executed by a processor, the method applied to the terminal device as described in the foregoing embodiments is implemented.
  • the embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the applications described in the above-mentioned embodiments can be implemented. method of the end device.
  • the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium may be a magnetic disk, an optical disk, a ROM, or the like.
  • Non-volatile memory may include ROM, Programmable ROM (PROM), Erasable PROM (Erasable PROM, EPROM), Electrically Erasable PROM (Electrically Erasable PROM, EEPROM) or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM can take many forms, such as static RAM (Static RAM, SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (synchronous DRAM, SDRAM), double data rate SDRAM (Double Data Rate) Data Rate SDRAM, DDR SDRAM), enhanced SDRAM (Enhanced Synchronous DRAM, ESDRAM), synchronous link DRAM (Synchlink DRAM, SLDRAM), memory bus direct RAM (Rambus DRAM, RDRAM) and direct memory bus dynamic RAM (Direct Rambus DRAM) , DRDRAM).
  • Each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-accessible memory.
  • the technical solution of the present application in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to make a computer device (which may be a personal computer, server, or network device, etc., specifically, a processor in the computer device) execute some or all of the steps of the above-mentioned methods in various embodiments of the present application.

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

一种基于耳机的控制方法、装置、耳机及计算机可读存储介质。该方法应用于耳机,该方法包括:在所述耳机检测到触发操作时,根据所述触发操作生成控制指令;获取所述耳机当前的佩戴状态;在所述当前的佩戴状态为目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作。

Description

基于耳机的控制方法、装置、耳机及计算机可读存储介质
本申请要求于2021年05月26日提交、申请号为202110580647.6、发明名称为“基于 耳机的控制方法、装置、耳机及计算机可读存储介质”的中国专利申请的优先权,其全部 内容通过引用结合在本申请中。
技术领域
本申请涉及智能终端技术领域,具体涉及一种基于耳机的控制方法、装置、耳机及计算机可读存储介质。
背景技术
耳机作为手机、平板电脑、智能手表等终端设备的重要配件,用户在很多日常的场景中会使用到耳机,例如利用耳机听音乐、收听视频声音、与其他人通话等。目前用户利用耳机仅可以对终端设备进行简单的控制,比如增大音量、降低音量等,控制方式单一,无法满足用户的实际需求。
发明内容
本申请实施例公开了一种基于耳机的控制方法、装置、耳机及计算机可读存储介质,能够结合耳机的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
本申请实施例公开了一种基于耳机的控制方法,应用于耳机,所述方法包括:
在所述耳机检测到触发操作时,根据所述触发操作生成控制指令;
获取所述耳机当前的佩戴状态;
在所述当前的佩戴状态为目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作。
本申请实施例公开了一种基于耳机的控制方法,应用于终端设备,所述方法包括:
接收与所述终端设备通信连接的耳机发送的控制指令,所述控制指令是所述耳机在检测到触发操作,且所述耳机当前的佩戴状态为目标佩戴状态的情况下发送的;
根据所述控制指令在等待第一时间段后,执行与所述控制指令对应的操作。
本申请实施例公开了一种基于耳机的控制方法,应用于终端设备,所述方法包括:
接收与所述终端设备通信连接的耳机发送的控制信息,所述控制信息包括控制指令及状态信息,所述控制指令是由所述耳机根据检测到的触发操作生成的,所述状态信息用于表示所述耳机当前的佩戴状态;
若根据所述状态信息确定所述当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与所述控制指令对应的操作。
本申请实施例公开了一种基于耳机的控制装置,应用于耳机,所述装置包括:
指令生成模块,用于在所述耳机检测到触发操作时,根据所述触发操作生成控制指令;
状态获取模块,用于获取所述耳机当前的佩戴状态;
控制模块,用于在所述当前的佩戴状态为目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作。
本申请实施例公开了一种基于耳机的控制装置,应用于终端设备,所述装置包括:
指令接收模块,用于接收与所述终端设备通信连接的耳机发送的控制指令,所述控制指令是所述耳机在检测到触发操作,且所述耳机当前的佩戴状态为目标佩戴状态的情况下发送的;
执行模块,用于根据所述控制指令在等待第一时间段后,执行与所述控制指令对应的操作。
本申请实施例公开了一种基于耳机的控制装置,应用于终端设备,所述装置包括:
信息接收模块,用于接收与所述终端设备通信连接的耳机发送的控制信息,所述控制信息包括控制指令及状态信息,所述控制指令是由所述耳机根据检测到的触发操作生成的,所述状态信息用于表示所述耳机当前的佩戴状态;
执行模块,用于若根据所述状态信息确定所述当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与所述控制指令对应的操作。
本申请实施例公开了一种耳机,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如上所述的应用于耳机的方法。
本申请实施例公开了一种终端设备,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如上任一所述的应用于终端设备的方法。
本申请实施例公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的应用于耳机的方法。
本申请实施例公开了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的应用于终端设备的方法。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为一个实施例中基于耳机的控制方法的应用场景图;
图2为一个实施例中基于耳机的控制方法的流程图;
图3为另一个实施例中基于耳机的控制方法的流程图;
图4A为一个实施例中耳机生成控制指令的示意图;
图4B为另一个实施例中耳机生成控制指令的示意图;
图4C为另一个实施例中耳机生成控制指令的示意图;
图5为又一个实施例中基于耳机的控制方法的流程图;
图6为一个实施例中基于耳机的控制装置的框图;
图7为另一个实施例中基于耳机的控制装置的框图;
图8为又一个实施例中基于耳机的控制装置的框图;
图9为一个实施例中耳机的结构框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本申请实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或 设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一耳机称为第二耳机,且类似地,可将第二耳机称为第一耳机。第一耳机和第二耳机两者属于耳机,但其不是同一个耳机。另外,需要说明的是,本申请实施例中所使用的术语“多个”等指的是两个或两个以上。
图1为一个实施例中基于耳机的控制方法的应用场景图。如图1所示,耳机10可与终端设备20之间建立通信连接,该耳机10可包括头戴式耳机、入耳式耳机、耳塞式耳机及挂耳式耳机等,耳机10的结构形态在此不作限定,终端设备20可包括但不限于手机、平板电脑、可穿戴设备、车载终端、PC(Personal Computer,个人计算机)等。耳机10可与终端设备20之间可建立蓝牙、WiFi(Wireless Fidelity,无线保真)等无线通信连接,也可通过数据线建立有线通信连接,其通信连接方式在此不作限定。
在相关的技术中,用户在使用耳机的过程中,可通过耳机对终端设备进行功能控制,例如控制终端设备播放的音乐切换到下一首、增大输出音量、减小输出音量等,利用耳机对终端设备进行控制的功能较为单一,且耳机对终端设备的控制都是即时性控制,导致用户在某些场景下控制不便,无法满足用户的实际需求。例如,在使用耳机对终端设备拍照功能进行控制时,即时性控制会导致用户来不及调整自己的拍照姿态,影响拍照效果等。
在本申请实施例中,在耳机10检测到触发操作时,可根据该触发操作生成控制指令,并获取耳机当前的佩戴状态,在当前的佩戴状态为目标佩戴状态的情况下,根据控制指令控制终端设备20延迟第一时间段后,执行与该控制指令对应的操作。耳机10可基于用户进行的触发操作生成相应的控制指令,且能够结合耳机10当前的佩戴状态对终端设备20执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
如图2所示,在一个实施例中,提供一种基于耳机的控制方法,可应用于上述的耳机,该方法可包括以下步骤:
步骤210,在耳机检测到触发操作时,根据该触发操作生成控制指令。
该触发操作可以是预先设定的交互操作,耳机中可设置有操作检测装置,通过该操作检测装置检测用户在耳机上进行的触发操作。该操作检测装置可包括但不限于物理按钮、传感器等,传感器可包括但不限于触控传感器、压力传感器、距离传感器、光传感器及加速度传感器等。
针对不同的操作检测装置,可设定不同的触发操作,例如,操作检测装置为物理按钮,则触发操作可以是按压物理按钮的操作;操作检测装置为加速度传感器,则触发操作可以是晃动操作(晃动耳机可产生相应的加速度)、敲击操作(敲击耳机可产生相应的加速度)等;操作检测装置为触控传感器,则触发操作可以是触摸滑动操作等。
针对同一操作检测装置,可也分别设计不同的触发操作,不同的触发操作可分别对应不同的控制指令。例如,操作检测装置为触控传感器,触发操作可包括第一方向(如耳机佩戴时朝上的方向)滑动和第二方向(如耳机佩戴时朝下的方向)滑动,第一方向滑动可用于控制音量增大,第二方向滑动可用于控制音量减小。又例如,操作检测装置为压力传感器,触发操作可包括小于压力阈值的按压操作及大于或等于压力阈值的按压操作,小于压力阈值的按压操作可用于控制终端设备切换至下一音频文件播放,大于或等于压力阈值的按压操作可用于控制终端设备接听电话等。
在一些实施例中,耳机中也可同时设置有多个不同的操作检测装置,每个操作检测装 置可设定一个或多个触发操作,不同触发操作可用于触发对终端设备上不同功能的控制,用户可根据实际所需的控制功能,在耳机上进行相应的触发操作,以实现对终端设备上相应功能进行控制。
耳机可根据检测到的触发操作生成相应的控制指令,以对终端设备上相应功能进行控制。
步骤220,获取耳机当前的佩戴状态。
耳机的佩戴状态可包括已佩戴状态和未佩戴状态,已佩戴状态指的是用户将耳机与耳朵贴合,能够接收到耳机输出的语音信号的状态,未佩戴状态指的是耳机未与耳朵贴合的状态。不同类型的耳机的佩戴方式不同,例如,头戴式耳机的佩戴方式是将耳机柄放在头顶,并将耳机与耳朵贴合,入耳式耳机或耳塞式耳机的佩戴方式则是将耳机塞入耳朵内,挂耳式耳机的佩戴方式是挂在耳廓上等,在此不作限定。
在一些实施例中,耳机中可设置有佩戴检测传感器,可通过该佩戴检测传感器对耳机当前的佩戴状态进行检测。该佩戴检测传感器可包括但不限于光传感器、姿态传感器、距离传感器、温度传感器、心率传感器等中的一种或多种。
可选地,耳机可通过光传感器获取耳机的环境光亮度信息,并在检测到环境光亮度信息小于或等于亮度阈值时,确定耳机的佩戴状态为已佩戴状态,在检测到环境光亮度信息大于亮度阈值时,确定耳机的佩戴状态为未佩戴状态。
可选地,耳机可通过姿态传感器获取耳机的姿态信息,若该姿态信息与耳机已佩戴时的姿态信息匹配,则可确定耳机的佩戴状态为已佩戴状态,若该姿态信息与耳机已佩戴时的姿态信息不匹配,则可确定耳机的佩戴状态为未佩戴状态。
可选地,耳机可通过距离传感器获取耳机与人体耳朵之间的距离信息,并在检测到该距离信息小于或等于距离阈值时,确定耳机的佩戴状态为已佩戴状态,在检测到该距离信息大于距离阈值时,确定耳机的佩戴状态为未佩戴状态。
可选地,耳机可通过温度传感器采集耳机表面的温度信息,并在检测到温度信息大于或等于温度阈值时,说明耳机与人体耳朵贴合,可确定耳机的佩戴状态为已佩戴状态,在检测到温度信息小于温度阈值时,说明耳机未与人体耳朵贴合,则可确定耳机的佩戴状态为未佩戴状态。
可选地,耳机可通过心率传感器采集心率波动信号,并在检测到心率波动信号时,确定耳机的佩戴状态为已佩戴状态,在未检测到心率波动信号时,可确定耳机的佩戴状态为未佩戴状态。
需要说明的是,耳机内可同时设置有上述中的一个或多个不同的传感器,并同时通过多个不同的传感器采集的数据共同确定耳机的佩戴状态,从而可提高佩戴状态检测的准确性。上述的各个阈值可根据实际需求进行设置,也可通过多次的实验进行设置。
在其它的实施例中,耳机也可采用其它方式检测耳机的佩戴状态,并不仅限于上述的通过佩戴检测传感器的方式进行检测,例如,可通过耳机内设置的麦克风采集声音信号,并通过声音信号的变化来确定耳机的佩戴状态,如在检测到耳机的前馈麦克风采集到的噪声信号突然降低时,则可确定耳机的佩戴状态为已佩戴状态。本申请实施例对耳机检测佩戴状态的方式不作具体限定。
作为一种具体实施方式,耳机可在每次检测到触发操作时,通过上述实施例中描述的佩戴状态检测方式检测耳机当前的佩戴状态。
作为另一个可选的实施方式,耳机也可利用上述实施例中描述的佩戴状态检测方式检测耳机的佩戴状态,并通过状态标签对耳机的佩戴状态进行记录。可在每次检测到耳机的佩戴状态发生变化时,对记录的状态标签进行更新。该状态标签可由数字、符号、字母、 汉字等中的一种或多种组成,例如,已佩戴状态的状态标签可为1,未佩戴状态的状态标签可为0,但不限于此。耳机在每次检测到触发操作时,可读取当前记录的状态标签,并根据当前的状态标签确定耳机当前的佩戴状态。采用该方式,可以更加快速地获取耳机当前的佩戴状态,而无需等待检测的过程,提高效率。
步骤230,在当前的佩戴状态为目标佩戴状态的情况下,根据控制指令控制与耳机通信连接的终端设备延迟第一时间段后,执行与控制指令对应的操作。
目标佩戴状态可以是预先设置的佩戴状态,该目标佩戴状态可以是已佩戴状态或未佩戴状态,用户可根据实际需求设置需要进行延时控制的目标佩戴状态,耳机的研发人员或是终端设备的应用研发人员也可根据业务需求设置需要进行延时控制的目标佩戴状态。
在一些实施例中,耳机获取当前的佩戴状态后,可判断当前的佩戴状态是否为目标佩戴状态,若当前的佩戴状态为目标佩戴状态,则可对终端设备进行延迟控制,控制终端设备在延迟第一时间段后,再执行与控制指令相应的操作。可选地,该第一时间段可根据实际需求进行设置,例如3秒、2秒、5秒等,在此不作限定。需要说明的是,延迟第一时间段可以是从耳机检测到触发操作的时刻开始计时,也可以是从确定耳机当前的佩戴状态为目标佩戴状态的时刻开始计时等,在此不作限定。
在一些实施例中,耳机根据控制指令控制终端设备延迟第一时间段,执行与控制指令对应的操作的方式,可以是耳机在等待第一时间段后,向终端设备发送控制指令,该控制指令可用于指示终端设备执行与控制指令对应的操作。耳机可通过延迟发送控制指令的方式实现对终端设备的延迟控制,采用此方式无需更改耳机与终端设备之间的指令格式,终端设备依然是接收到控制指令时即执行相应的操作,控制方式更为简便。
在一些实施例中,耳机根据控制指令控制终端设备延迟第一时间段后,执行与控制指令对应的操作的方式,也可以是耳机向终端设备发送控制指令,该控制指令用于指示终端设备在等待第一时间段后,执行与控制指令对应的操作。可选地,耳机在确定当前的佩戴状态为目标佩戴状态后,可在控制指令中添加延时信息,并向终端设备发送包含有延时信息的控制指令,终端设备接收该控制指令,可对控制指令进行解析得到延时信息,并根据该延时信息在等待第一时间段后,再执行相应的操作。
在一些实施方式,耳机与终端设备可约定有私有的命令格式,耳机在确定当前的佩戴状态为目标佩戴状态后,可按照约定的命令格式生成控制指令,并向终端设备发送该控制指令。终端设备在接收到该控制指令后,可对该控制指令进行解析,若根据解析结果确定该控制指令的命令格式为约定的命令格式,则可在等待第一时间段后执行与该控制指令对应的操作。进一步地,终端设备可将解析得到的指令信息(例如需要执行的操作信息、延时信息等)发送给相应的应用,应用根据该指令信息进行延迟操作,在等待第一时间段后,再执行相应的操作。该第一时间段可以是控制指令中携带的延时信息,也可以是终端设备中预先设置的延迟时间段,在此不作限定。采用此方式耳机可直接发送控制指令,无需增加计时器等功能模块对延迟时间进行记录,可降低耳机成本。
在一些实施例中,耳机在获取当前的佩戴状态后,可根据控制指令及该当前的佩戴状态生成控制信息,并向终端设备发送该控制信息,该控制信息可包括控制指令及状态信息,该状态信息可用于表示耳机当前的佩戴状态,进一步地,该状态信息可包括上述的状态标签。控制信息可用于指示终端设备若根据该状态信息确定耳机当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与该控制指令对应的操作。终端设备在接收到控制信息后,可根据控制信息中携带的状态信息判断耳机当前的佩戴状态是否为目标佩戴状态,若确定耳机当前的佩戴状态为目标佩戴状态,则可在等待第一时间段后,执行与该控制指令对应的操作。
在本申请实施例中,在耳机检测到触发操作时,根据该触发操作生成控制指令,并获取耳机当前的佩戴状态,在当前的佩戴状态为目标佩戴状态的情况下,根据控制指令控制与耳机通信连接的终端设备延迟第一时间段后,执行与该控制指令对应的操作,耳机可基于用户进行的触发操作生成相应的控制指令,且能够结合耳机的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
如图3所示,在一个实施例中,提供另一种基于耳机的控制方法,该方法可应用于上述的耳机,该方法可包括以下步骤:
步骤302,确定与耳机通信连接的终端设备当前的业务场景。
终端设备当前的业务场景可根据终端设备当前执行的业务操作确定,该业务操作指的是对终端设备中的业务数据进行处理的操作,该业务数据可包括但不限于图像数据、语音数据、视频数据等,终端设备上运行的各个应用程序可看成是业务模块,可通过运行的各个应用程序执行相应的业务操作。例如,可通过通话应用进行通话操作,通过多媒体应用进行多媒体数据的播放操作,通过相机应用进行拍摄操作,通过社交应用进行聊天操作等。
可将终端设备执行的业务操作划分成一个或多个业务场景,例如,通话操作可对应通话场景,拍摄操作可对应图像拍摄场景,多媒体数据的播放操作可对应音频播放场景等,但不限于此。
在一些实施例中,耳机可向终端设备发送场景信息获取请求,该场景信息获取请求用于请求获取终端设备当前的业务场景的相关信息,该相关信息可包括但不限于终端设备当前运行的应用程序信息、当前执行的任务信息、处理的业务数据等中的一种或多种。其中,应用程序信息可包括应用标识、应用类型等,应用标识可用于唯一标识应用程序,应用类型可包括但不限于社交应用、多媒体应用、通信应用等。任务信息可包括但不限于任务进行的操作、任务处理的数据等。
终端设备在接收到场景信息获取请求后,可向耳机发送当前的业务场景的相关信息,耳机可根据终端设备发送的相关信息确定终端设备当前的业务场景。可选地,耳机中可预先存储有相关信息与场景之间的对应关系,例如耳机可存储有应用与场景之间的对应关系等,可获取应用程序信息,并根据该对应关系查找到与应用程序信息对应的业务场景,如终端设备当前运行的应用程序为相机应用,则对应的业务场景可为图像拍摄场景,终端设备当前运行的应用程序为音乐应用,则对应的业务场景可为音频播放场景等,但不限于此。
可选地,耳机也可直接根据终端设备当前执行的任务信息确定终端设备当前执行的任务,并确定该当前执行的任务对应的业务场景,例如,终端设备当前执行的任务为来电接听任务,可确定业务场景为通话场景,终端设备当前执行的任务为处理摄像头采集的图像的任务,则可确定业务场景为图像拍摄场景等,但不限于此。
可选地,终端设备在接收到耳机发送的场景信息获取请求后,也可直接根据当前运行的应用程序及执行的任务等确定当前的业务场景,并向耳机直接反馈该业务场景的场景标识,不同业务场景可分别对应不同的场景标识,耳机根据该场景标识即可确定终端设备当前的业务场景。
在一些实施例中,终端设备也可主动向耳机发送业务通知,可选地,终端设备可在启动新的应用程序,或是启动新的任务进程时,向耳机发送业务通知,该业务通知可包含新启动的应用程序信息、任务信息等与终端设备当前的业务场景的相关信息,也可直接包含根据新启动的应用程序信息、任务信息等确定的业务场景的场景标识等。耳机在接收到业务通知时,则可根据该业务通知确定终端设备当前的业务场景。
在本申请实施例中,可通过耳机主动从终端设备获取信息的方式或是终端设备通知耳 机的方式确定终端设备的业务场景,增加了耳机确定业务场景的灵活性。
步骤304,在耳机检测到触发操作时,根据触发操作生成与业务场景匹配的控制指令。
在一些实施例中,针对不同的业务场景,耳机检测到同一触发操作时,可生成不同的控制指令。耳机在检测到触发操作时,可确定该触发操作在终端设备当前的业务场景中对应的控制功能,从而可生成相应的控制指令,生成的控制指令与终端设备当前的业务场景匹配。例如,耳机检测到用户在耳机外表面上进行的双击操作,若终端设备当前的业务场景为通话场景,则生成的控制指令可为挂断指令,该挂断指令可用于控制终端设备挂断当前的通话,若终端设备当前的业务场景为音频播放场景,则生成的控制指令可为回退指令,该回退指令用于控制终端设备对当前播放的音频数据进行快退操作等,在此不作限定。
对于同一业务场景,也可根据不同的触发操作生成与业务场景匹配的不同的控制指令。例如,对于通话场景,耳机检测到用户在耳机外表面上进行的单击操作,则生成的控制指令为接听指令,耳机检测到用户在耳机外表面上进行的双击操作,则生成的控制指令为挂断指令。又例如,对于图像拍摄场景,耳机通过压力传感器检测到按压操作,则生成的控制指令为拍摄指令,拍摄指令用于控制终端设备通过摄像头拍摄图像,耳机通过触控传感器检测到滑动操作,则生成的控制指令为摄像头切换指令,该模式切换指令可用于切换终端设备当前的启动的摄像头等,但不限于此。
示例性地,现结合图4A~图4C对耳机生成控制指令进行说明。图4A为一个实施例中耳机生成控制指令的示意图。如图4A所示,终端设备20当前的业务场景为图像拍摄场景,在耳机10检测到触发操作时,可生成与图像拍摄场景匹配的拍摄指令。图4B为另一个实施例中耳机生成控制指令的示意图。如图4B所示,终端设备20当前的业务场景为音频播放场景,在耳机10检测到与图4A相同的触发操作时,可生成与音频播放场景匹配的切歌指令。图4C为另一个实施例中耳机生成控制指令的示意图。如图4C所示,终端设备20当前的业务场景为通话场景,在耳机10检测到与图4A、图4B相同的触发操作时,可生成与通话场景匹配的拍摄指令。
需要说明的是,图4A~图4C仅给出了本申请实施例中耳机生成控制指令的几种示例方式,具体的业务场景及各个业务场景下不同触发操作生成的控制指令可根据实际需求进行设置,在此不作限定。
在一些实施例中,耳机可包括第一耳机及第二耳机,该第一耳机可以是左耳机,第二耳机可以是右耳机,或第一耳机可以是右耳机,第二耳机是左耳机。若终端设备当前的业务场景包括第一业务场景及第二业务场景,则可确定检测到触发操作的目标耳机,其中,第一业务场景为终端设备前台运行的应用对应的业务场景,第二业务场景为终端设备后台运行的应用对应的业务场景。若目标耳机为第一耳机,则根据触发操作生成与第一业务场景匹配的控制指令,若目标耳机为第二耳机,则根据触发操作生成与第二业务场景匹配的控制指令。
终端设备可能同时在前面及后台均运行可由耳机进行控制的应用,且前台应用与后台应用对应不同的业务场景,例如,前台运行相机应用(对应图像拍摄场景),后台运行音乐应用(对应音频播放场景),或是前台运行阅读应用(对应信息浏览场景),后台运行音乐应用(对应音频播放场景)等。若耳机检测到终端设备当前具有两种不同的业务场景,则用户可分别通过在不同侧的耳机进行触发操作,来选择对前台应用的第一业务场景还是对后台应用的第二业务场景进行控制。
耳机可获取检测到触发操作的目标耳机,并判断该检测到触发操作的目标耳机为第一耳机还是第二耳机,若为第一耳机,则可根据触发操作生成与第一业务场景匹配的控制指令,若为第二耳机,则可根据触发操作生成与第二业务场景匹配的控制指令。例如,终端 设备前台运行相机应用(对应图像拍摄场景),后台运行音乐应用(对应音频播放场景),若是在左耳机上检测到单击操作,则可生成与图像拍摄场景匹配的拍摄指令,若是在右耳机上检测到单击操作,则可生成与音频播放场景匹配的切歌指令等,但不限于此。可提高用户利用耳机对终端设备进行控制的灵活性,且控制方式更加方便快捷。
在本申请实施例中,针对不同的业务场景,耳机可根据检测到的触发操作生成与业务场景匹配的控制指令,使得用户可通过在耳机上进行触发操作以对终端设备上的不同业务的进行响应,且同一触发操作可在多个不同的业务场景中复用,不需要额外增加新的物理按键或设计新的触发操作,减少用户的记忆成本,提高了操作的便捷性及控制效率。
步骤306,若业务场景为目标场景,则获取耳机当前的佩戴状态。
耳机在获取终端设备当前的业务场景后,可判断该业务场景是否为目标场景,目标场景可指的是需要进行延迟控制的业务场景,若终端设备当前的业务场景为目标场景,则可获取耳机当前的佩戴状态,并结合该佩戴状态对终端设备执行的操作进行延迟控制。该目标场景可以是用户根据实际需求进行设置的,也可以是由耳机或终端设备的研发人员根据业务需求进行设计的,在此不作限定。
步骤308,在当前的佩戴状态为与目标场景对应的目标佩戴状态的情况下,根据控制指令控制与耳机通信连接的终端设备延迟第一时间段后,执行与控制指令对应的操作。
针对每一目标场景,可分别对应一种目标佩戴状态,在不同的目标场景下,对应的目标佩戴状态可能相同也可能不同。若耳机当前的佩戴状态为与目标场景对应的目标佩戴状态,可说明需要对终端设备执行的操作进行延迟控制。
作为一种具体实施方式,目标场景可包括图像拍摄场景,与图像拍摄场景对应的目标佩戴状态可为已佩戴状态。在图像拍摄场景下,耳机根据检测到的不同的触发操作可生成不同的控制指令,该控制指令可包括但不限于拍摄指令、放大图像指令、缩小图像指令、切换摄像头指令、调整拍摄模式指令等。对于同一目标场景下的多个不同的控制指令,可设置其中的一种或多种控制指令为需要进行延迟控制的控制指示。
在目标场景为图像拍摄场景时,需要延迟控制的控制指令可包括拍摄指令,终端设备执行的与该控制指令对应的操作可为拍摄操作。终端设备处于图像拍摄场景下,在耳机检测到用于触发拍摄操作的触发操作时,可生成拍摄指令,若耳机当前的佩戴状态为已佩戴状态,则可控制终端设备延迟第一时间段执行拍摄操作,从而可以防止终端设备将用户操作耳机的动作也拍摄到图像中,影响图像拍摄的效果,能够更加贴合用户对于利用耳机控制终端设备拍摄图像时的需求。
作为另一种具体实施方式,目标场景可包括通话场景,与通话场景对应的目标佩戴状态可为未佩戴状态。在通话场景下,耳机根据检测到的不同的触发操作可生成不同的控制指令,该控制指令可包括但不限于接听指令、挂断指令、音量增大指令、音量减小指令等。
在目标场景为通话场景时,需要延迟控制的控制指令可包括接听指令,终端设备执行的与该控制指令对应的操作可为接听通话操作。终端设备处于通话场景下,在耳机检测到用于触发接听通话操作的触发操作时,可生成接听指令,若耳机当前的佩戴状态为未佩戴状态,则可控制终端设备延迟第一时间段执行接听通话操作,从而可以避免用户还未将耳机佩戴好就接听通话,从而漏到重要信息的情况,能够更加贴合用户对于利用耳机控制终端设备接听电话的需求。
若耳机检测到的触发操作不是用于触发需要进行延迟控制的操作时,例如,在图像拍摄场景下,耳机检测到用于触发切换摄头操作的触发操作,或是检测到用于触发放大图像操作的触发操作等,则耳机可根据检测到的触发操作生成相应的控制指令,并向终端设备发送该控制指令,以使得终端设备根据该控制指令立即执行相应的操作。
在一些实施例中,对于不同的目标场景,也可设置相同或不同的第一时间段,例如,在图像拍摄场景下,对应的第一时间段可为5秒(能够给用户更多的时间摆好拍摄的姿态),在通话场景下,对应的第一时间段可为2秒(可避免呼叫方等待过久)等,第一时间段可根据用户对于各个目标场景的业务需求进行确定,从而更加贴合用户在不同场景下对于延迟控制的需求。
在一些实施例中,用户也可在进行触发操作时,对需要延迟的第一时间段进行调节。在耳机根据检测到的触发操作生成控制指令之后,耳机还可获取该触发操作的操作强度信息,并根据该操作强度信息确定第一时间段,第一时间段可与操作强度信息呈正相关关系,也即,触发操作的操作强度越大,第一时间段可越长。
可选地,操作强度信息可包括但不限于操作时长、操作频率、操作力度、检测到触发操作的操作面积等中的一种或多种,具体的操作强度信息可根据耳机检测触发操作的方式相关。例如,耳机通过触摸传感器检测触发操作,则操作强度信息可包括用户在触摸传感器上进行触摸的时长;耳机通过加速度传感器检测触发操作,则操作强度信息可包括加速度传感采集的加速度数据发生变化的频率(即操作频率);耳机通过压力传感器检测触发操作,则操作强度信息可包括通过压力传感器采集到的按压力度等,但不限于此。
用户在对耳机进行触发操作时,可根据实际需求调整操作强度,从而改变终端设备延迟执行操作的延迟时长,使得控制方式更加灵活、简便。
在本申请实施例中,耳机可获取终端设备当前的业务场景,在不同的业务场景下生成与业务场景匹配的控制指令,满足用户在不同业务场景下利用耳机控制终端设备的需求,且可降低用户的记忆成本,丰富了耳机的控制方式。而且,在终端设备当前的业务场景为目标场景时,耳机可结合当前的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,使得耳机与终端设备的交互更加灵活、有效。
在一些实施例中,上述的方法还包括:在耳机当前的佩戴状态不为目标佩戴状态的情况下,或是在检测到耳机当前的佩戴状态从目标佩戴状态变为其它佩戴状态时,可控制终端设备立即执行与控制指令对应的操作。其中,其它佩戴状态指的是除目标佩戴状态以外的佩戴状态,例如,目标佩戴状态为已佩戴状态,则其它佩戴状态可为未佩戴状态,或目标佩戴状态为未佩戴状态,则其它佩戴状态可为已佩戴状态等。
在耳机当前的佩戴状态不为目标佩戴状态的情况下,说明不需要对终端设备执行的操作进行延迟控制,则可向终端设备发送控制指令,以使终端设备根据该控制指令立即执行相应的操作。
在耳机当前的佩戴状态为目标佩戴状态的情况下,说明需要对终端设备执行的操作进行延迟控制,耳机可等待第一时间段后再向终端设备发送控制指令,若是在等待的过程中耳机检测到当前的佩戴状态从目标佩戴状态变为其它佩戴状态,则可说明终端设备可以执行与控制指令对应的操作,耳机可直接向终端设备发送控制指令,以使终端设备根据该控制指令立即执行相应的操作。
可选地,在耳机当前的佩戴状态为目标佩戴状态的情况下,若耳机已向终端设备发送控制指令,终端设备根据该控制指令处于等待执行操作的状态。若在终端设备等待的过程中,耳机检测到当前的佩戴状态从目标佩戴状态变为其它佩戴状态,则耳机可向终端设备发送立即执行命令,终端设备在接收到该立即执行命令后,可根据该立即执行命令立即执行与控制指令对应的操作。
在本申请实施例中,耳机可结合当前的佩戴状态选择是否对终端设备进行延迟控制,提高了耳机对终端设备进行控制的灵活性及有效性,更加贴合用户需求。
在一个实施例中,提供另一种基于耳机的控制方法,可应用于上述的终端设备,该方 法可包括以下步骤:
步骤(a),接收与终端设备通信连接的耳机发送的控制指令,该控制指令是耳机在检测到触发操作,且耳机当前的佩戴状态为目标佩戴状态的情况下发送的。
步骤(b),基于该控制指令,在等待第一时间段后执行与该控制指令对应的操作。
可选地,耳机在确定当前的佩戴状态为目标佩戴状态后,可在控制指令中添加延时信息,并向终端设备发送包含有延时信息的控制指令,终端设备接收该控制指令,可对控制指令进行解析得到延时信息,并根据该延时信息在等待第一时间段后,再执行相应的操作。
在一些实施方式,耳机与终端设备可约定有私有的命令格式,耳机在确定当前的佩戴状态为目标佩戴状态后,可按照约定的命令格式生成控制指令,并向终端设备发送该控制指令。终端设备在接收到该控制指令后,可对该控制指令进行解析,若根据解析结果确定该控制指令的命令格式为约定的命令格式,则可在等待第一时间段后执行与该控制指令对应的操作。进一步地,终端设备可将解析得到的指令信息(例如需要执行的操作信息、延时信息等)发送给相应的应用,应用根据该指令信息进行延迟操作,在等待第一时间段后,再执行相应的操作。该第一时间段可以是控制指令中携带的延时信息,也可以是终端设备中预先设置的延迟时间段,在此不作限定。采用此方式耳机可直接发送控制指令,无需增加计时器等功能模块对延迟时间进行记录,可降低耳机成本。
需要说明的是,本申请实施例提供的应用于终端设备的基于耳机的控制方法的描述可参照上述各实施例中提供的应用于耳机的基于耳机的控制方法的相关描述,在此不再一一赘述。
在本申请实施例中,耳机能够结合检测到的触控操作及耳机当前的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
如图5所示,在一个实施例中,提供另一种基于耳机的控制方法,可应用于上述的终端设备,该方法可包括以下步骤:
步骤510,接收与终端设备通信连接的耳机发送的控制信息,控制信息包括控制指令及状态信息,控制指令是由耳机根据检测到的触发操作生成的,状态信息用于表示耳机当前的佩戴状态。
其中,耳机当前的佩戴状态指的是耳机生成状态信息时的佩戴状态。
步骤520,若根据该状态信息确定耳机当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与控制指令对应的操作。
需要说明的是,本申请实施例提供的应用于终端设备的基于耳机的控制方法的描述可参照上述各实施例中提供的应用于耳机的基于耳机的控制方法的相关描述,在此不再一一赘述。
在本申请实施例中,在耳机检测到触发操作时,根据该触发操作生成控制指令,并获取耳机当前的佩戴状态,耳机可终端设备发送控制信息,该控制信息可包括该控制指令及用于表示耳机当前的佩戴状态的状态信息,若终端设备根据状态信息确定当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与控制指令对应的操作,耳机可基于用户进行的触发操作生成相应的控制指令,且能够结合耳机的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
如图6所示,在一个实施例中,提供一种基于耳机的控制装置600,可应用于上述的耳机,该基于耳机的控制装置600可包括指令生成模块610、状态获取模块620及控制模块630。
指令生成模块610,用于在耳机检测到触发操作时,根据触发操作生成控制指令。
状态获取模块620,用于获取耳机当前的佩戴状态。
控制模块630,用于在当前的佩戴状态为目标佩戴状态的情况下,根据控制指令控制与耳机通信连接的终端设备延迟第一时间段后,执行与控制指令对应的操作。
在一个实施例中,控制模块630,还用于在等待第一时间段后,向终端设备发送控制指令,该控制指令用于指示终端设备执行与控制指令对应的操作。
在一个实施例中,控制模块630,还用于向终端设备发送控制指令,该控制指令用于指示终端设备在等待第一时间段后,执行与控制指令对应的操作。
在一个实施例中,控制模块630,还用于向所述终端设备发送控制信息,该控制信息包括控制指令及状态信息,该状态信息用于表示所述当前的佩戴状态;该控制信息用于触发终端设备若根据该状态信息确定耳机当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与控制指令对应的操作。
在本申请实施例中,在耳机检测到触发操作时,根据该触发操作生成控制指令,并获取耳机当前的佩戴状态,在当前的佩戴状态为目标佩戴状态的情况下,根据控制指令控制与耳机通信连接的终端设备延迟第一时间段后,执行与该控制指令对应的操作,耳机可基于用户进行的触发操作生成相应的控制指令,且能够结合耳机的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
如图7所示,在一个实施例中,上述基于耳机的控制装置600,除了包括指令生成模块610、状态获取模块620及控制模块630,还包括场景确定模块640。
场景确定模块640,用于确定与耳机通信连接的终端设备当前的业务场景。
状态获取模块620,还用于若业务场景为目标场景,则获取耳机当前的佩戴状态。
在一个实施例中,控制模块630,还用于在当前的佩戴状态为与目标场景对应的目标佩戴状态的情况下,根据控制指令控制与耳机通信连接的终端设备延迟第一时间段后,执行与控制指令对应的操作。
在一个实施例中,目标场景包括图像拍摄场景,与目标场景对应的目标佩戴状态为已佩戴状态,控制指令包括拍摄指令,与控制指令对应的操作为拍摄操作;和/或,目标场景包括通话场景,与目标场景对应的目标佩戴状态为未佩戴状态,控制指令包括接听指令,与控制指令对应的操作为接听通话操作。
在一个实施例中,上述的基于耳机的控制装置600,还包括时间确定模块。
时间确定模块,用于获取触发操作的操作强度信息,并根据操作强度信息确定第一时间段,第一时间段与操作强度信息呈正相关关系。其中,操作强度信息包括操作时长、操作频率、操作力度、检测到触发操作的操作面积中的一种或多种。
在一个实施例中,指令生成模块610,还用于在耳机检测到触发操作时,根据触发操作生成与业务场景匹配的控制指令。
在一个实施例中,耳机包括第一耳机及第二耳机。指令生成模块610,还用于若终端设备当前的业务场景包括第一业务场景及第二业务场景,则确定检测到触发操作的目标耳机,其中,第一业务场景为终端设备前台运行的应用对应的业务场景,第二业务场景为终端设备后台运行的应用对应的业务场景;以及若目标耳机为第一耳机,则根据触发操作生成与第一业务场景匹配的控制指令;若目标耳机为第二耳机,则根据触发操作生成与第二业务场景匹配的控制指令。
在本申请实施例中,耳机可获取终端设备当前的业务场景,在不同的业务场景下生成与业务场景匹配的控制指令,满足用户在不同业务场景下利用耳机控制终端设备的需求, 且可降低用户的记忆成本,丰富了耳机的控制方式。而且,在终端设备当前的业务场景为目标场景时,耳机可结合当前的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,使得耳机与终端设备的交互更加灵活、有效。
在一个实施例中,控制模块630,还用于在当前的佩戴状态不为目标佩戴状态的情况下,或在检测到耳机当前的佩戴状态从目标佩戴状态变为其它佩戴状态时,控制终端设备立即执行与控制指令对应的操作。
在本申请实施例中,耳机可结合当前的佩戴状态选择是否对终端设备进行延迟控制,提高了耳机对终端设备进行控制的灵活性及有效性,更加贴合用户需求。
在一个实施例中,提供另一种基于耳机的控制装置,该基于耳机的控制装置可包括指令接收模块及执行模块。
指令接收模块,用于接收与终端设备通信连接的耳机发送的控制指令,该控制指令是耳机在检测到触发操作,且耳机当前的佩戴状态为目标佩戴状态的情况下发送的;
执行模块,用于基于该控制指令,在等待第一时间段后执行与该控制指令对应的操作。
在一个实施例中,执行模块,还用于对该控制指令进行解析,若根据解析结果确定该控制指令的命令格式为约定的命令格式,则在等待第一时间段后执行与该控制指令对应的操作。
在本申请实施例中,耳机能够结合检测到的触控操作及耳机当前的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
如图8所示,在一个实施例中,提供另一种基于耳机的控制装置800,可应用于终端设备,该基于耳机的控制装置800可包括信息接收模块810及执行模块820。
信息接收模块810,用于接收与终端设备通信连接的耳机发送的控制信息,控制信息包括控制指令及状态信息,控制指令是由耳机根据检测到的触发操作生成的,状态信息用于表示耳机当前的佩戴状态。
执行模块820,用于若根据该状态信息确定当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与控制指令对应的操作。
在本申请实施例中,在耳机检测到触发操作时,根据该触发操作生成控制指令,并获取耳机当前的佩戴状态,耳机可终端设备发送控制信息,该控制信息可包括该控制指令及用于表示耳机当前的佩戴状态的状态信息,若终端设备根据状态信息确定当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与控制指令对应的操作,耳机可基于用户进行的触发操作生成相应的控制指令,且能够结合耳机的佩戴状态对终端设备执行的操作进行延迟控制,满足了用户在实际中对于延迟控制的需求,且丰富了耳机对终端设备的控制方式。
图9为一个实施例中耳机的结构框图。如图9所示,耳机900可以包括一个或多个如下部件:处理器910、与处理器910耦合的存储器920,其中存储器920可存储有一个或多个计算机程序,一个或多个计算机程序可以被配置为由一个或多个处理器910执行时实现如上述各实施例描述的应用于耳机的方法。
处理器910可以包括一个或者多个处理核。处理器910利用各种接口和线路连接整个耳机900内的各个部分,通过运行或执行存储在存储器920内的指令、程序、代码集或指令集,以及调用存储在存储器920内的数据,执行耳机900的各种功能和处理数据。可选地,处理器910可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器910可集成中央处理器(Central Processing Unit, CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器910中,单独通过一块通信芯片进行实现。
存储器920可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。存储器920可用于存储指令、程序、代码、代码集或指令集。存储器920可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。存储数据区还可以存储耳机900在使用中所创建的数据等。
可以理解地,耳机900可包括比上述结构框图中更多或更少的结构元件,例如,包括电源模块、物理按键、蓝牙模块、传感器等,还可在此不进行限定。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述实施例描述的应用于耳机的方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于耳机的方法。
在一个实施例中,提供一种终端设备,该终端设备可包括存储器及处理器,该存储器中存储有计算机程序,该计算机程序被该处理器执行时,使得该处理器实现如上述各实施例描述的应用于终端设备的方法。
本申请实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序被处理器执行时实现如上述实施例描述的应用于终端设备的方法。
本申请实施例公开一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可被处理器执行时实现如上述各实施例描述的应用于终端设备的方法。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、ROM等。
如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括ROM、可编程ROM(Programmable ROM,PROM)、可擦除PROM(Erasable PROM,EPROM)、电可擦除PROM(Electrically Erasable PROM,EEPROM)或闪存。易失性存储器可包括随机存取存储器(random access memory,RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM可为多种形式,诸如静态RAM(Static RAM,SRAM)、动态RAM(Dynamic Random Access Memory,DRAM)、同步DRAM(synchronous DRAM,SDRAM)、双倍数据率SDRAM(Double Data Rate SDRAM,DDR SDRAM)、增强型SDRAM(Enhanced Synchronous DRAM,ESDRAM)、同步链路DRAM(Synchlink DRAM,SLDRAM)、存储器总线直接RAM(Rambus DRAM,RDRAM)及直接存储器总线动态RAM(Direct Rambus DRAM,DRDRAM)。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定特征、结构或特性可以以任意适合的方式结合在一个或多个实施例中。本领域技术人员也应 该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。
以上对本申请实施例公开的一种基于耳机的控制方法、装置、耳机及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种基于耳机的控制方法,其特征在于,应用于耳机,所述方法包括:
    在所述耳机检测到触发操作时,根据所述触发操作生成控制指令;
    获取所述耳机当前的佩戴状态;
    在所述当前的佩戴状态为目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作,包括:
    在等待第一时间段后,向所述终端设备发送所述控制指令,所述控制指令用于指示所述终端设备执行与所述控制指令对应的操作。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作,包括:
    向所述终端设备发送所述控制指令,所述控制指令用于指示所述终端设备在等待第一时间段后,执行与所述控制指令对应的操作。
  4. 根据权利要求1所述的方法,其特征在于,所述在所述当前的佩戴状态为目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作,包括:
    向所述终端设备发送控制信息,所述控制信息包括所述控制指令及状态信息,所述状态信息用于表示所述当前的佩戴状态;所述控制信息用于触发所述终端设备若根据所述状态信息确定所述当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与所述控制指令对应的操作。
  5. 根据权利要求1所述的方法,其特征在于,所述在所述耳机检测到触发操作时,根据所述触发操作生成控制指令之前,所述方法还包括:
    确定与所述耳机通信连接的终端设备当前的业务场景;
    所述获取所述耳机当前的佩戴状态,包括:
    若所述业务场景为目标场景,则获取所述耳机当前的佩戴状态。
  6. 根据权利要求5所述的方法,其特征在于,所述在所述当前的佩戴状态为目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作,包括:
    在所述当前的佩戴状态为与所述目标场景对应的目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作。
  7. 根据权利要求6所述的方法,其特征在于,所述目标场景包括图像拍摄场景,与所述目标场景对应的目标佩戴状态为已佩戴状态,所述控制指令包括拍摄指令,与所述控制指令对应的操作为拍摄操作;和/或
    所述目标场景包括通话场景,与所述目标场景对应的目标佩戴状态为未佩戴状态,所述控制指令包括接听指令,与所述控制指令对应的操作为接听通话操作。
  8. 根据权利要求5~7任一所述的方法,其特征在于,所述在所述耳机检测到触发操作时,根据所述触发操作生成控制指令,包括:
    在所述耳机检测到触发操作时,根据所述触发操作生成与所述业务场景匹配的控制指令。
  9. 根据权利要求8所述的方法,其特征在于,所述耳机包括第一耳机及第二耳机;所述根据所述触发操作生成与所述业务场景匹配的控制指令,包括:
    若所述终端设备当前的业务场景包括第一业务场景及第二业务场景,则确定检测到所述触发操作的目标耳机,其中,所述第一业务场景为所述终端设备前台运行的应用对应的业务场景,所述第二业务场景为所述终端设备后台运行的应用对应的业务场景;
    若所述目标耳机为所述第一耳机,则根据所述触发操作生成与所述第一业务场景匹配的控制指令;
    若所述目标耳机为所述第二耳机,则根据所述触发操作生成与所述第二业务场景匹配的控制指令。
  10. 根据权利要求1~7任一所述的方法,其特征在于,所述在所述耳机检测到触发操作时,根据所述触发操作生成控制指令之后,所述方法还包括:
    获取所述触发操作的操作强度信息,并根据所述操作强度信息确定第一时间段,所述第一时间段与所述操作强度信息呈正相关关系;
    其中,所述操作强度信息包括操作时长、操作频率、操作力度、检测到触发操作的操作面积中的一种或多种。
  11. 根据权利要求1~7任一所述的方法,其特征在于,所述方法还包括:
    在所述当前的佩戴状态不为所述目标佩戴状态的情况下,或在检测到所述耳机当前的佩戴状态从所述目标佩戴状态变为其它佩戴状态时,控制所述终端设备立即执行与所述控制指令对应的操作。
  12. 一种基于耳机的控制方法,其特征在于,应用于终端设备,所述方法包括:
    接收与所述终端设备通信连接的耳机发送的控制指令,所述控制指令是所述耳机在检测到触发操作,且所述耳机当前的佩戴状态为目标佩戴状态的情况下发送的;
    基于所述控制指令,在等待第一时间段后执行与所述控制指令对应的操作。
  13. 根据权利要求12所述的方法,其特征在于,所述基于所述控制指令,在等待第一时间段后执行与所述控制指令对应的操作,包括:
    对所述控制指令进行解析,若根据解析结果确定所述控制指令的命令格式为约定的命令格式,则在等待第一时间段后执行与所述控制指令对应的操作。
  14. 一种基于耳机的控制方法,其特征在于,应用于终端设备,所述方法包括:
    接收与所述终端设备通信连接的耳机发送的控制信息,所述控制信息包括控制指令及状态信息,所述控制指令是由所述耳机根据检测到的触发操作生成的,所述状态信息用于表示所述耳机当前的佩戴状态;
    若根据所述状态信息确定所述当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与所述控制指令对应的操作。
  15. 一种基于耳机的控制装置,其特征在于,应用于耳机,所述装置包括:
    指令生成模块,用于在所述耳机检测到触发操作时,根据所述触发操作生成控制指令;
    状态获取模块,用于获取所述耳机当前的佩戴状态;
    控制模块,用于在所述当前的佩戴状态为目标佩戴状态的情况下,根据所述控制指令控制与所述耳机通信连接的终端设备延迟第一时间段后,执行与所述控制指令对应的操作。
  16. 一种基于耳机的控制装置,其特征在于,应用于终端设备,所述装置包括:
    指令接收模块,用于接收与所述终端设备通信连接的耳机发送的控制指令,所述控制指令是所述耳机在检测到触发操作,且所述耳机当前的佩戴状态为目标佩戴状态的情况下发送的;
    执行模块,用于基于所述控制指令,在等待第一时间段后执行与所述控制指令对应的操作。
  17. 一种基于耳机的控制装置,其特征在于,应用于终端设备,所述装置包括:
    信息接收模块,用于接收与所述终端设备通信连接的耳机发送的控制信息,所述控制信息包括控制指令及状态信息,所述控制指令是由所述耳机根据检测到的触发操作生成的,所述状态信息用于表示所述耳机当前的佩戴状态;
    执行模块,用于若根据所述状态信息确定所述当前的佩戴状态为目标佩戴状态,则在等待第一时间段后,执行与所述控制指令对应的操作。
  18. 一种耳机,其特征在于,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求1~11任一所述的方法。
  19. 一种终端设备,其特征在于,包括存储器及处理器,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器实现如权利要求12~14任一所述的方法。
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1~11或12~14任一所述的方法。
PCT/CN2022/091950 2021-05-26 2022-05-10 基于耳机的控制方法、装置、耳机及计算机可读存储介质 WO2022247627A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110580647.6A CN115412802A (zh) 2021-05-26 2021-05-26 基于耳机的控制方法、装置、耳机及计算机可读存储介质
CN202110580647.6 2021-05-26

Publications (1)

Publication Number Publication Date
WO2022247627A1 true WO2022247627A1 (zh) 2022-12-01

Family

ID=84154841

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/091950 WO2022247627A1 (zh) 2021-05-26 2022-05-10 基于耳机的控制方法、装置、耳机及计算机可读存储介质

Country Status (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009278268A (ja) * 2008-05-13 2009-11-26 Sony Corp ヘッドホン装置
WO2017166607A1 (zh) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 基于耳机的录音控制方法、装置、电子设备及存储介质
CN109040896A (zh) * 2018-11-05 2018-12-18 长沙拓扑陆川新材料科技有限公司 一种耳机及距离检测接入方法
CN109361981A (zh) * 2018-11-05 2019-02-19 长沙拓扑陆川新材料科技有限公司 一种蓝牙耳机及其连接状态控制方法
CN109391869A (zh) * 2018-11-05 2019-02-26 长沙拓扑陆川新材料科技有限公司 一种耳机及耳道判断接入方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011160104A (ja) * 2010-01-29 2011-08-18 Alpine Electronics Inc ハンズフリー用音声出力システム
US9565491B2 (en) * 2015-06-01 2017-02-07 Doppler Labs, Inc. Real-time audio processing of ambient sound
CN109462789A (zh) * 2018-11-10 2019-03-12 东莞市华睿电子科技有限公司 一种耳机播放音频的翻译方法
CN111580656B (zh) * 2020-05-08 2023-07-18 安徽华米信息科技有限公司 可穿戴设备及其控制方法、装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009278268A (ja) * 2008-05-13 2009-11-26 Sony Corp ヘッドホン装置
WO2017166607A1 (zh) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 基于耳机的录音控制方法、装置、电子设备及存储介质
CN109040896A (zh) * 2018-11-05 2018-12-18 长沙拓扑陆川新材料科技有限公司 一种耳机及距离检测接入方法
CN109361981A (zh) * 2018-11-05 2019-02-19 长沙拓扑陆川新材料科技有限公司 一种蓝牙耳机及其连接状态控制方法
CN109391869A (zh) * 2018-11-05 2019-02-26 长沙拓扑陆川新材料科技有限公司 一种耳机及耳道判断接入方法

Also Published As

Publication number Publication date
CN115412802A (zh) 2022-11-29

Similar Documents

Publication Publication Date Title
US10609198B2 (en) Personal media system including base station and wireless earbud
CN110493678B (zh) 耳机的控制方法、装置、耳机和存储介质
US10452349B2 (en) Electronic device and operation control method therefor
US10349176B1 (en) Method for processing signals, terminal device, and non-transitory computer-readable storage medium
CN111078448B (zh) 一种处理音频异常的方法及电子设备
JP2017538341A (ja) 音量調節方法、システム、デバイス及びプログラム
CN108337362A (zh) 语音交互方法、装置、设备和存储介质
WO2020010579A1 (zh) 一种带具有语音交互功能耳机的智能手表
KR20190090069A (ko) 웨어러블 디바이스의 상태에 기초하는 컴패니언 통신 디바이스 거동의 변경
CN109284080B (zh) 音效调整方法、装置、电子设备以及存储介质
JP7442647B2 (ja) ブルートゥース通信方法および装置
WO2017166603A1 (zh) 一种音质调整方法、终端、电子设备及非易失性计算机存储介质
CN115002934B (zh) 音频业务处理系统、电子设备及蓝牙耳机
WO2021000817A1 (zh) 环境音处理方法及相关装置
CN109067965B (zh) 翻译方法、翻译装置、可穿戴装置及存储介质
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
CN109104662A (zh) 指令执行方法、操作响应方法、终端及耳机设备
WO2017166598A1 (zh) 一种耳机的声道调节方法及装置、电子设备及存储介质
CN111787452B (zh) Tws耳机及其控制方法、装置、计算机可读存储介质
JPWO2015186387A1 (ja) 情報処理装置、制御方法、およびプログラム
WO2023151526A1 (zh) 音频采集方法、装置、电子设备及外设组件
WO2020082387A1 (zh) 音频通道更换方法及相关设备
WO2022247627A1 (zh) 基于耳机的控制方法、装置、耳机及计算机可读存储介质
WO2023159717A1 (zh) 耳机的运行控制方法、指环耳机及存储介质
CN113039518B (zh) 播放控制方法和装置、计算机可读存储介质、电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22810354

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22810354

Country of ref document: EP

Kind code of ref document: A1