US-20260129336-A1 - CONTROL METHOD AND HEADPHONE, AND STORAGE MEDIUM
Abstract
A control method, a headphone and a storage medium are provided. The method, applied to a headphone, includes: monitoring a wearing state of the headphone; acquiring an operation instruction of a user for the headphone, wherein the operation instruction comprises at least one of a wake-up instruction, a photographing instruction, an inquiry instruction or an audio playing instruction; and according to the wearing state and the operation instruction, controlling the headphone to perform a corresponding target operation.
Inventors
- Wei Cai
- Xinyu Li
- QING XIA
- Meng Xu
- Haoqian Li
- Ju Yang
Assignees
- Shenzhen Dancing Future Technology Ltd.
Dates
- Publication Date
- 20260507
- Application Date
- 20251030
- Priority Date
- 20241101
Claims (20)
- 1 . A control method, applied to a headphone, wherein the method comprises: monitoring a wearing state of the headphone; acquiring an operation instruction of a user for the headphone, wherein the operation instruction comprises at least one of a wake-up instruction, a photographing instruction, an inquiry instruction or an audio playing instruction; and according to the wearing state and the operation instruction, controlling the headphone to perform a corresponding target operation.
- 2 . The control method of claim 1 , wherein the operation instruction is the wake-up instruction, and according to the wearing state and the operation instruction, controlling the headphone to perform the corresponding target operation comprises: if the wearing state is a worn state, controlling the headphone to wake up a voice assistant connected to the headphone.
- 3 . The control method of claim 2 , further comprising: controlling the voice assistant connected to the headphone to play a preset voice, wherein the preset voice is used for indicating that the voice assistant is in a wake-up state.
- 4 . The control method of claim 1 , wherein a camera is provided in the headphone, the operation instruction is the photographing instruction, and according to the wearing state and the operation instruction, controlling the headphone to perform the corresponding target operation comprises: in response to the photographing instruction, acquiring photographing configuration information; and according to the photographing configuration information and the wearing state, controlling the headphone to perform the corresponding target operation.
- 5 . The control method of claim 4 , wherein according to the photographing configuration information and the photographing instruction, controlling the headphone to perform the corresponding target operation comprises: if it is determined that the wearing state matches the photographing configuration information, controlling the camera in the headphone to capture an image; and if it is determined that the wearing state does not match the photographing configuration information, controlling the camera in the headphone not to capture the image.
- 6 . The control method of claim 5 , further comprising: if it is determined that the wearing state does not match the photographing configuration information, controlling the headphone to play a prompt voice, wherein the prompt voice is used for prompting the photographing configuration information.
- 7 . The control method of claim 5 , wherein determining that the wearing state matches the photographing configuration information comprises at least one of the following: the photographing configuration information indicates that both ears capture images, and the wearing state indicates that both headphones are in the worn state; the photographing configuration information indicates that both ears capture images, and the wearing state indicates that only one headphone is in the worn state; or the photographing configuration information indicates that a single ear captures an image, and the wearing state indicates that both headphones are in the worn state.
- 8 . The control method of claim 5 , wherein determining that the wearing state does not match the photographing configuration information comprises: the photographing configuration information indicates that one of the headphones captures an image, and the wearing state indicates that only another of the headphones is in the worn state.
- 9 . The control method of claim 1 , wherein the operation instruction is the inquiry instruction, and according to the wearing state and the operation instruction, controlling the headphone to perform the corresponding target operation comprises: if the wearing state is a worn state, controlling the headphone to play a reply voice for the inquiry instruction and provided by a voice assistant connected to the headphone; and if the wearing state is an un-worn state, controlling the headphone not to play the reply voice or controlling the headphone not to respond to the inquiry instruction.
- 10 . The control method of claim 9 , further comprising: when the reply voice is being played, if it is determined that the wearing state changes from the worn state to the un-worn state, controlling the headphone to pause playing the reply voice.
- 11 . The control method of claim 10 , further comprising: if it is determined that the wearing state changes from the un-worn state to the worn state, determining a first duration corresponding to the un-worn state, and according to the first duration, controlling the headphone to perform a corresponding target operation.
- 12 . The control method of claim 11 , wherein according to the first duration, controlling the headphone to perform the corresponding target operation comprises: if the first duration is less than or equal to a first preset duration, when it is determined that the wearing state changes from the un-worn state to the worn state, controlling the headphone to continue playing an unplayed reply voice; if the first duration is greater than the first preset duration, displaying a text corresponding to the reply voice through a terminal apparatus connected to the headphone.
- 13 . The control method of claim 10 , further comprising: when the reply voice is being played, if it is determined that the wearing state changes from the worn state to the un-worn state, controlling the headphone not to respond to a new inquiry instruction.
- 14 . The control method of claim 13 , wherein controlling the headphone not to respond to the new inquiry instruction comprises: controlling the headphone not to receive voice information of the new inquiry instruction.
- 15 . The control method of claim 1 , wherein the operation instruction is the audio playing instruction, and according to the wearing state and the operation instruction, controlling the headphone to perform the corresponding target operation comprises: if the wearing state is a worn state, controlling the headphone to play audio; and if the wearing state is an un-worn state, controlling the headphone not to play the audio.
- 16 . The control method of claim 15 , further comprising: in an audio playing process, if it is determined that the wearing state changes from the worn state to the un-worn state, controlling the headphone to pause playing audio, and in response to determining that the wearing state is the worn state, determining a connection state of the headphone during an un-worn period, and according to the connection state, controlling the headphone to perform a corresponding target operation; and in the audio playing process, if it is determined that a first voice corresponding to the inquiry instruction is acquired and a duration of the first voice is greater than or equal to a second preset duration, controlling the headphone to adjust a volume of the playing audio from a first volume to a preset volume until it is determined that the first voice ends, and controlling the headphone to adjust the volume of the playing audio to the first volume; wherein a start moment of the un-worn period is a moment corresponding to a time when it is determined that the wearing state changes from the worn state to the un-worn state, and an end moment of the un-worn period is a moment corresponding to a time when it is determined that the wearing state is the worn state.
- 17 . The control method of claim 16 , wherein according to the connection state, controlling the headphone to perform the corresponding target operation comprises: if the connection state of the headphone during the un-worn period is used for indicating that the headphone is not disconnected, acquiring audio to be played corresponding to the un-worn period, and controlling the headphone to play the audio to be played; and if the connection state of the headphone during the un-worn period is used for indicating that the headphone is disconnected, controlling the headphone not to play audio.
- 18 . The control method of claim 16 , wherein determining that the first voice ends comprises: if the headphone does not detect human voice and a duration corresponding to a situation that the human voice is not detected is greater than or equal to a third preset duration, determining that the first voice ends.
- 19 . A headphone, comprising: a processor and a memory; wherein the memory stores a computer-executable instruction; and the processor executes the computer-executable instruction stored in the memory, to cause the processor to execute a control method, wherein the control method comprises: monitoring a wearing state of the headphone; acquiring an operation instruction of a user for the headphone, wherein the operation instruction comprises at least one of a wake-up instruction, a photographing instruction, an inquiry instruction or an audio playing instruction; and according to the wearing state and the operation instruction, controlling the headphone to perform a corresponding target operation.
- 20 . A non-transitory computer-readable storage medium, wherein a computer-executable instruction is stored in the computer-readable storage medium, and when the computer-executable instruction is executed by a processor, a control method is implemented, and the control method comprises: monitoring a wearing state of the headphone; acquiring an operation instruction of a user for the headphone, wherein the operation instruction comprises at least one of a wake-up instruction, a photographing instruction, an inquiry instruction or an audio playing instruction; and according to the wearing state and the operation instruction, controlling the headphone to perform a corresponding target operation.
Description
CROSS-REFERENCE TO RELATED APPLICATION The present application claims priority to Chinese Patent Application No. 202411567571.3, filed on Nov. 1, 2024, which is incorporated herein by reference in its entirety as a part of the present application. TECHNICAL FIELD Embodiments of the present disclosure relate to a control method, a headphone and a storage medium. BACKGROUND The headphone may interact with a user through a voice assistant, thereby improving the experience of using the headphone. At present, the headphone may collect an operation instruction of the user, and process the operation instruction of the user through the voice assistant to obtain a corresponding reply voice. In the above process, the headphone may perform a corresponding operation according to the operation instruction of the user. However, in the daily use process of the headphone, the headphone may be in an un-worn state, such as the user takes the headphone out of the headphone box but does not wear it, the user temporarily takes the headphone off the ear, or the headphone falls off the ear during use. In these cases, if the voice assistant still interacts with the user as if the headphone were in the worn state, it will not conform to the user's usage habits, making the headphone less flexible to use and poor in experience. SUMMARY Embodiments of the present disclosure provide a control method, a headphone and a storage medium, which makes the usage of the headphone to conform to the user's usage habits, and makes the headphone more flexible to use. In a first aspect, an embodiment of the present disclosure provides a control method, which is applied to a headphone, and the method includes: monitoring a wearing state of the headphone; acquiring an operation instruction of a user for the headphone, wherein the operation instruction includes at least one of a wake-up instruction, a photographing instruction, an inquiry instruction or an audio playing instruction; and according to the wearing state and the operation instruction, controlling the headphone to perform a corresponding target operation. In a second aspect, an embodiment of the present disclosure provides a headphone, including: a processor and a memory; wherein the memory stores a computer-executable instruction; and the processor executes the computer-executable instruction stored in the memory, to cause the processor to execute the control method according to the first aspect and various possible designs of the first aspect. In a third aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium, wherein a computer-executable instruction is stored in the computer-readable storage medium, and when the computer-executable instruction is executed by a processor, the control method according to the first aspect and various possible designs of the first aspect is implemented. BRIEF DESCRIPTION OF DRAWINGS In order to more clearly explain the technical solutions in the embodiments of the present disclosure or in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative efforts. FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure; FIG. 2 is a schematic flowchart of a control method provided by an embodiment of the present disclosure; FIG. 3 is a schematic diagram of a process of acquiring an operation instruction of a user for a headphone provided by an embodiment of the present disclosure; FIG. 4 is a schematic flowchart of another control method provided by an embodiment of the present disclosure; FIG. 5 is a schematic diagram of a process of setting a wearing detection switch provided by an embodiment of the present disclosure; FIG. 6 is a schematic diagram of a process of setting photographing configuration information provided by an embodiment of the present disclosure; FIG. 7 is a schematic diagram of a controlling process provided by an embodiment of the present disclosure; FIG. 8 is a structural block diagram of a control device provided by an embodiment of the present disclosure; FIG. 9 is a structural block diagram of another control device provided by an embodiment of the present disclosure; and FIG. 10 is a schematic structural diagram of a headphone provided by an embodiment of the present disclosure. DETAILED DESCRIPTION In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are