Headphone device control method, device, equipment and computer-readable storage medium

By detecting preset actions in the headphone device and picking up ambient sound signals, the target voice information is identified to control the headphone device, solving the problem of inaccurate voice control and achieving higher control accuracy and user experience.

CN115567821BActive Publication Date: 2025-09-19GEER TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211179002.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2025-09-19
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

In the prior art, when controlling a headphone device through voice, it is easily interfered with by ambient sound, resulting in inaccurate control and affecting the user experience.

Method used

By detecting whether the earphone device performs a preset action, when the preset action is detected, the sound collection device in the earphone device is used to pick up the ambient sound signal, detect whether there is target voice information consistent with the preset keyword information in the ambient sound signal, and control the earphone device according to the target voice information.

Benefits of technology

It improves the accuracy of voice control of headphone devices, reduces environmental sound interference, and enhances the user experience of using headphone devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115567821B_ABST
    Figure CN115567821B_ABST
Patent Text Reader

Abstract

The present invention discloses a headphone device control method, apparatus, device, and computer-readable storage medium. The headphone device control method includes the following steps: detecting whether the headphone device has performed a preset action; when it is determined that the headphone device has performed the preset action, picking up an ambient sound signal of the headphone device's environment via a sound collection device in the headphone device; detecting whether the ambient sound signal contains target voice information consistent with preset keyword information; and when it is determined that the ambient sound signal contains the target voice information, controlling the headphone device according to preset instruction information corresponding to the target voice information. The present invention prevents the headphone device from being controlled by interfering sounds in the ambient sound signal, improves the accuracy of voice control of the headphone device, and thus enhances the user's experience of using the headphone device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to a headphone device control method, apparatus, device, and computer-readable storage medium. Background Art

[0002] In the daily use of headphone devices, users can turn on or off some functions of the headphone devices according to their own needs. For example, when wearing headphone devices in public places, users may need to turn off the autonomous noise reduction function to hear the sounds in the external environment, so that they can perceive changes in the external environment based on the sounds in the external environment. With the development of technology, various functions of headphone devices can now be controlled by voice instead of manual operation. However, in actual use, due to the complex and changeable environment in which headphone devices are used, the sounds in the environment may interfere with the voice that controls the headphone devices, resulting in inaccurate control when controlling the headphone devices through voice, affecting the user's experience of using the headphone devices.

[0003] The above content is only used to assist in understanding the technical solution of the present invention and does not constitute an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of the present invention is to provide a headphone device control method, apparatus, device and computer-readable storage medium, aiming to solve the technical problem that inaccurate control occurs when controlling the headphone device through voice, resulting in a poor user experience of the headphone device.

[0005] To achieve the above object, the present invention provides a headphone device control method, wherein the headphone device control method comprises the following steps:

[0006] Detecting whether the earphone device performs a preset action;

[0007] When it is determined that the earphone device has performed the preset action, picking up an ambient sound signal of the environment in which the earphone device is located by a sound collecting device in the earphone device;

[0008] Detecting whether there is target voice information consistent with preset keyword information in the ambient sound signal;

[0009] When it is determined that the target voice information exists in the ambient sound signal, the headphone device is controlled according to preset instruction information corresponding to the target voice information.

[0010] Optionally, an acceleration sensor is provided in the headphone device, and before the step of detecting whether the headphone device performs a preset action, the method further includes:

[0011] Acquiring movement information of the headphone device through the acceleration sensor, wherein the movement information includes at least an acceleration direction and an acceleration value;

[0012] The step of detecting whether the earphone device performs a preset action includes:

[0013] detecting whether the acceleration direction is consistent with a preset direction, and detecting whether the acceleration value is within a first preset range;

[0014] If the acceleration direction is consistent with the preset direction and the acceleration value is within the first preset range, it is determined that the headphone device has performed the preset action.

[0015] Optionally, before the step of detecting whether the headphone device performs a preset action, the method further includes:

[0016] detecting whether the earphone device is in a working state, wherein the working state is a state in which the earphone device is worn and the earphone device is playing an audio signal;

[0017] When it is determined that the headphone device is in the working state, the step of detecting whether the headphone device has performed a preset action is performed.

[0018] Optionally, before the step of picking up the ambient sound signal of the environment in which the headphone device is located by the sound collecting device in the headphone device, the method further includes:

[0019] detecting whether the headphone device is in an upright state immediately before the preset action begins, wherein the upright state refers to a state in which a deflection angle of any coordinate axis in a headphone coordinate system constructed based on the headphone device relative to a corresponding coordinate axis in a reference coordinate system is within a preset angle range, and the reference coordinate system is the coordinate system of the accelerometer in the headphone device;

[0020] When it is determined that the headphone device is in the upright state immediately before the preset action begins, the step of picking up the ambient sound signal of the environment in which the headphone device is located by the sound collecting device in the headphone device is performed.

[0021] Optionally, before the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information, the method further includes:

[0022] detecting whether an interval between a first moment and a second moment is within a second preset range, wherein the first moment is the moment when the headphone device ends the preset action, and the second moment is the moment when the target voice information begins to appear in the ambient sound signal;

[0023] When it is determined that the interval duration is within the second preset range, executing the step of controlling the headphone device according to the instruction information preset corresponding to the target voice information;

[0024] When it is determined that the interval duration is not within the second preset range, the process returns to the step of detecting whether the headphone device has taken a preset action.

[0025] Optionally, before the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information, the method further includes:

[0026] When it is determined that the target voice information exists in the ambient sound signal, detecting whether the voiceprint of the target voice information is consistent with a preset voiceprint;

[0027] When it is determined that the voiceprint of the target voice information is consistent with the preset voiceprint, the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information is performed.

[0028] Optionally, the step of controlling the headphone device according to preset instruction information corresponding to the target voice information includes:

[0029] When the instruction information preset corresponding to the target voice information is information for turning on the active noise reduction function, turning on the active noise reduction function of the headphone device;

[0030] When the instruction information preset corresponding to the target voice information is information for turning off the active noise reduction function, the active noise reduction function of the headphone device is turned off.

[0031] To achieve the above object, the present invention further provides an earphone device control device, the earphone device control device comprising:

[0032] A detection module, configured to detect whether the earphone device performs a preset action;

[0033] a determining module, configured to, when determining that the earphone device has performed the preset action, pick up an ambient sound signal of the environment in which the earphone device is located through a sound collecting device in the earphone device;

[0034] The detection module is further configured to detect whether there is target voice information consistent with preset keyword information in the ambient sound signal;

[0035] The determining module is further configured to control the headphone device according to preset instruction information corresponding to the target voice information when it is determined that the target voice information exists in the ambient sound signal.

[0036] To achieve the above-mentioned objectives, the present invention further provides an earphone device control device, comprising: a memory, a processor, and an earphone device control program stored in the memory and executable on the processor, wherein the earphone device control program, when executed by the processor, implements the steps of the above-mentioned earphone device control method.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a headphone device control program is stored. When the headphone device control program is executed by a processor, the steps of the headphone device control method described above are implemented.

[0038] In the present invention, by detecting whether a preset action has occurred in the headphone device, when it is determined that the headphone device has occurred a preset action, the sound collection device in the headphone device picks up the ambient sound signal of the environment in which the headphone device is located, and detects whether the ambient sound signal contains target voice information consistent with preset keyword information. When it is determined that the target voice information exists in the ambient sound signal, the headphone device is controlled according to the preset instruction information corresponding to the target voice information. The present invention realizes the execution of the voice control instruction when it is determined that voice control has been triggered, avoids the headphone device being controlled by interfering sounds in the ambient sound signal, improves the accuracy of voice control of the headphone device, and thus enhances the user experience of the headphone device. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 1. A flowchart of a first embodiment of a method for controlling a headphone device according to the present invention;

[0040] Figure 2 This is a flow chart of an embodiment of a headphone device control method of the present invention;

[0041] Figure 3 This is a schematic diagram of the functional modules of an embodiment of a headphone device control device of the present invention;

[0042] Figure 4 It is a structural diagram of a headphone device control device in a hardware operating environment involved in an embodiment of the present invention.

[0043] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0045] The embodiment of the present invention provides a method for controlling a headphone device, referring to Figure 1 , Figure 1This is a flow chart of the first embodiment of a headphone device control method of the present invention. It should be noted that although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than shown here. The headphone device control method of the embodiment of the present invention is applied to a headphone device. In this embodiment, the headphone device may be a headphone device, an earhook headphone device, an in-ear headphone device, etc., and the specific embodiment is not limited here. In this embodiment, the headphone device control method includes:

[0046] Step S10, detecting whether the earphone device performs a preset action;

[0047] In daily use of headphone devices, users can turn on or off certain functions of the headphone devices according to their needs. For example, when wearing headphone devices in public places, users may need to turn off the autonomous noise reduction function to hear the sounds in the external environment, so that they can perceive changes in the external environment based on the sounds in the external environment.

[0048] With the development of technology, various functions of headphone devices can now be controlled manually through voice prompts. However, in actual use, due to the complex and changeable environment in which headphone devices are used, the sounds in the environment may interfere with the voice that controls the headphone devices, resulting in inaccurate control when controlling the headphone devices through voice, affecting the user's experience of using the headphone devices.

[0049] In this embodiment, by setting the action detection of the earphone device before voice control, it is determined whether the user needs to perform voice control on the earphone, thereby improving the accuracy of voice control of the earphone device.

[0050] In this embodiment, a preset action is set for the headphone device. The preset action can be set according to actual needs and is not limited here.

[0051] Specifically, in one embodiment, detecting whether the headphone device performs a preset action can be determined based on information about the acceleration generated by the headphone device; in another embodiment, detecting whether the headphone device performs a preset action can also be determined based on changes in the force applied to the headphone device. The specific settings can be made based on actual needs and are not limited here.

[0052] Step S20, when it is determined that the earphone device has performed the preset action, picking up an ambient sound signal of the environment in which the earphone device is located by a sound collecting device in the earphone device;

[0053] In this embodiment, when it is determined that the earphone device has performed a preset action, it is determined that a voice control operation can be performed. At this time, the ambient sound signal of the environment in which the earphone device is located is picked up by the sound collection device in the earphone device.

[0054] In a specific embodiment, the sound collection device can be a microphone on the headphone device; it can also be a voice sensor with higher sensitivity set on the headphone device. For example, in one embodiment, the sound collection device can be a voiced and unvoiced voice sensor. The specific setting can be based on actual needs and is not limited here.

[0055] Step S30, detecting whether there is target voice information consistent with preset keyword information in the ambient sound signal;

[0056] In this embodiment, keyword information is preset, and the keyword information corresponds to instruction information for controlling the function of the headphone device.

[0057] After the ambient sound signal is picked up, whether there is voice information consistent with the preset keyword information (hereinafter referred to as target voice information for distinction) in the ambient sound signal is detected. In a specific embodiment, whether there is target voice information in the ambient sound signal can be detected by voice recognition technology, which will not be described in detail here.

[0058] Step S40: When it is determined that the target voice information exists in the ambient sound signal, the headphone device is controlled according to the preset instruction information corresponding to the target voice information.

[0059] When it is determined that the target voice information exists in the ambient sound signal, it is determined that the user is performing voice control on the headphone device. At this time, the headphone device is controlled according to the preset instruction information corresponding to the target voice information.

[0060] Specifically, in this embodiment, the instruction information is information for controlling the functions of the headphone device, such as active noise reduction and volume of the headphone device, which is not specifically limited here.

[0061] It can be understood that any two of the target voice information, the keyword information consistent with the target voice information, and the instruction information correspond to each other in a one-to-one manner.

[0062] Specifically, in one embodiment, the content of the preset keyword information and the content of the corresponding instruction information may be the same. For example, the specific content of the preset keyword information may be "increase volume", and the specific content of the corresponding instruction information may be "increase volume". In another embodiment, the content of the preset keyword information and the corresponding instruction information may be different. For example, the specific content of the preset keyword information may be "first action", and the specific content of the corresponding instruction information may be "increase volume". The specific setting can be based on actual needs and is not limited here.

[0063] In this embodiment, the headphone device is detected for a preset action. When the preset action is determined, the ambient sound signal is detected for target voice information consistent with the keyword information. When the target voice information is determined to be present in the ambient sound signal, the headphone device is controlled according to the preset instruction information corresponding to the target voice information. This embodiment executes the voice control instruction when voice control is determined to be triggered, prevents the headphone device from being controlled by interfering sounds in the ambient sound signal, improves the accuracy of voice control of the headphone device, and thus enhances the user experience of the headphone device.

[0064] Furthermore, based on the above-mentioned first embodiment, a second embodiment of the headphone device control method of the present invention is proposed. In this embodiment, an acceleration sensor is provided in the headphone device, and before step S10, the method further includes:

[0065] Step S50: acquiring movement information of the headphone device through the acceleration sensor, wherein the movement information at least includes an acceleration direction and an acceleration value;

[0066] In this embodiment, an accelerometer is provided on the headphone device to obtain movement information of the headphone device through the accelerometer, so as to control the headphone device based on the movement information. In this embodiment, the movement information includes at least the acceleration direction and the acceleration value. In this embodiment, the movement information includes at least the acceleration direction and the acceleration value.

[0067] The step S10 includes:

[0068] Step S101, detecting whether the acceleration direction is consistent with a preset direction, and detecting whether the acceleration value is within a first preset range;

[0069] In this embodiment, after obtaining the movement information of the headphone device, it is detected whether the acceleration direction is consistent with the preset direction, and whether the acceleration value is within the corresponding preset range (hereinafter referred to as the first preset range for distinction).

[0070] In a specific embodiment, the preset direction and the first preset range can be factory-set or set based on user needs, and are not limited here. For example, in one embodiment, when the preset action is nodding, the preset direction can be the x-axis direction of the acceleration sensor.

[0071] Step S102: If the acceleration direction is consistent with the preset direction and the acceleration value is within the first preset range, it is determined that the headphone device has performed the preset action.

[0072] If the acceleration direction is consistent with the preset direction and the acceleration value is within the first preset range, it is determined that the headphone device has performed a preset action. At this time, the headphone device can be controlled according to the preset instruction information corresponding to the target voice information.

[0073] It should be noted that detecting whether the acceleration direction of the headphone device is consistent with the preset direction, and detecting whether the acceleration value of the headphone device is within the first preset range, to determine whether the headphone device has performed a preset action, thereby determining whether to control the headphone device according to the target voice information, can improve the accuracy of controlling the headphone device according to the target voice information and enhance the user experience of using the headphone device.

[0074] Furthermore, in one embodiment, before step S10, the following steps are further included:

[0075] Step S60, detecting whether the earphone device is in a working state, wherein the working state is a state in which the earphone device is worn and the earphone device is playing an audio signal;

[0076] In this embodiment, before detecting whether the earphone device performs a preset action, it is detected whether the earphone device is in a state of being worn and playing an audio signal (hereinafter referred to as a working state for convenience of description).

[0077] In one embodiment, a temperature sensor can be provided on the side of the headphone device that contacts the user to obtain the temperature of the object in contact with the headphone device. When the temperature is within a preset temperature range, it can be determined that the headphone device is being worn. This can also be set according to actual needs and is not limited here.

[0078] Step S70: When it is determined that the headphone device is in the working state, executing the step of detecting whether the headphone device has performed a preset action.

[0079] When it is determined that the headphone device is in an operating state, the step of detecting whether the headphone device has performed a preset action is executed. Therefore, when the headphone device is not in an operating state and a preset action occurs, the sound collection device in the headphone device will not pick up the ambient sound signal of the headphone device's environment. This can prevent the headphone device from being controlled by interfering sounds in the ambient sound signal, improve the accuracy of voice control of the headphone device, and thus enhance the user's experience of using the headphone device.

[0080] Furthermore, in one embodiment, before step S30, the following steps are further included:

[0081] Step S80: Detecting whether the headphone device is in an upright state immediately before the preset action begins, wherein the upright state refers to a state in which a deflection angle of any coordinate axis in a headphone coordinate system constructed based on the headphone device relative to a corresponding coordinate axis in a reference coordinate system is within a preset angle range, where the reference coordinate system is the coordinate system of the accelerometer in the headphone device;

[0082] In this embodiment, before detecting whether there is target voice information consistent with the keyword information in the ambient sound signal, it is detected whether the earphone device is in an upright state at the moment before the preset action begins, so as to avoid misjudging the action of the earphone.

[0083] In this embodiment, the coordinate system constructed based on the headphone device is referred to as the headphone coordinate system, and the coordinate system of the acceleration sensor in the headphone device is referred to as the reference coordinate system.

[0084] When the headphone device deflects, the reference coordinate system remains unchanged due to the fixed axis nature of the accelerometer, while the headphone coordinate system does change as the headphone device deflects and moves. Therefore, when there is a significant deflection angle between the reference coordinate system and the coordinate axes in the headphone coordinate system, it can be determined that the headphone device has deflected. When there is no deflection angle or a small deflection angle between the reference coordinate system and the coordinate axes in the headphone coordinate system, it can be determined that the headphone device has not deflected. This state of the headphone device not deflecting is called the upright state.

[0085] In a specific embodiment, the headset coordinate system may be based on any earphone in the headset device as the coordinate origin, the position of the line connecting the two earphones when the earphones are worn by the user as the x-axis, the axis perpendicular to the x-axis as the y-axis, and the z-axis determined based on the right-hand rule. In a specific embodiment, the headset coordinate system may be based on any earphone in the headset device as the coordinate origin, the position of the line connecting the two earphones when the earphones are worn by the user as the x-axis, the axis perpendicular to the x-axis as the y-axis, and the z-axis determined based on the right-hand rule.

[0086] Specifically, in one embodiment, a pre-set angle range can be used to detect whether the headphone device is in an upright position by detecting whether the deflection angle between any coordinate axis in the headphone coordinate system and the corresponding coordinate axis in the reference coordinate system is within the preset angle range. The preset angle range can be obtained through experimental testing or set according to the actual needs of the user, and is not limited here. Specifically, when the deflection angle between any coordinate axis in the headphone coordinate system and the corresponding coordinate axis in the reference coordinate system is not within the angle range, it can be determined that the headphone device is not in an upright position; when the deflection angle between any coordinate axis in the headphone coordinate system and the corresponding coordinate axis in the reference coordinate system is within the angle range, it can be determined that the headphone device is not in an upright position.

[0087] Step S90 , when it is determined that the earphone device is in the upright state immediately before the preset action begins, the step of picking up the ambient sound signal of the environment in which the earphone device is located by the sound collecting device in the earphone device is executed.

[0088] When it is determined that the headphone device is in an upright position at a moment before the preset action begins, the step of picking up the ambient sound signal of the environment in which the headphone device is located is performed through the sound collection device in the headphone device. This embodiment can avoid the occurrence of misjudgment of the action of the headphone, thereby preventing the headphone device from being controlled by interfering sounds in the ambient sound signal, improving the accuracy of voice control of the headphone device, and enhancing the user's experience of using the headphone device.

[0089] In this embodiment, by detecting whether the acceleration direction of the headphone device is consistent with a preset direction, and detecting whether the acceleration value of the headphone device is within a first preset range, it is determined whether the headphone device has performed a preset action, thereby determining whether to control the headphone device according to the target voice information. This embodiment improves the accuracy of controlling the headphone device according to the target voice information, and enhances the user experience of using the headphone device.

[0090] Furthermore, based on the first and / or second embodiments above, a third embodiment of the headphone device control method of the present invention is proposed. In this embodiment, before step S40, the method further includes:

[0091] Step A10: When it is determined that the target voice information exists in the ambient sound signal, detecting whether the voiceprint of the target voice information is consistent with a preset voiceprint;

[0092] In this embodiment, the voiceprint of the target voice information is detected to determine whether the target voice information is sent by a user who can control the headphone device.

[0093] Specifically, in this embodiment, after determining that the target voice information exists in the ambient sound signal, it is detected whether the voiceprint of the target voice information is consistent with the preset voiceprint.

[0094] In a specific embodiment, the preset voiceprint can be set according to the actual needs of the user and is not limited here. The specific process of collecting the preset voiceprint is not described in detail here.

[0095] Step A20: When it is determined that the voiceprint of the target voice information is consistent with the preset voiceprint, the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information is executed.

[0096] When it is determined that the voiceprint of the target voice information is consistent with the preset voiceprint, the user who issued the target voice information is determined to be a user allowed to control the headphone device. At this time, the headphone device is controlled according to the preset instruction information corresponding to the target voice information.

[0097] It should be noted that by detecting whether the voiceprint of the target voice information is consistent with the preset voiceprint, it is determined whether the user who sends the target voice information is a user who can control the headphone device. When it is determined that the voiceprint of the target voice information is consistent with the preset voiceprint, it is determined that the user who sends the target voice information is a user who can control the headphone device. At this time, the headphone device is controlled according to the preset instruction information corresponding to the target voice information, which can prevent the headphone device from being controlled by other users other than the headphone device during use, thereby improving the accuracy of controlling the headphone device.

[0098] Furthermore, in one embodiment, before step S40, the method further includes:

[0099] Step A30, detecting whether the interval between the first moment and the second moment is within a second preset range, wherein the first moment is the moment when the headphone device ends the preset action, and the second moment is the moment when the target voice information begins to appear in the ambient sound signal;

[0100] In this embodiment, the moment when it is determined that the headphone device ends the preset action is called the first moment, and the moment when it is determined that the target voice information exists in the ambient sound signal is called the second moment.

[0101] Specifically, it is detected whether the interval between the first moment and the second moment is within a preset range (hereinafter referred to as the second preset range for distinction) to determine whether the two events of the preset action of the headphone device and the presence of target voice information in the ambient sound signal occur within a certain time period, thereby determining whether the headphone device is controlled according to the instruction information corresponding to the target voice information, so as to further improve the accuracy of controlling the headphone device according to the ambient sound signal.

[0102] In a specific implementation, the second preset range can be set according to actual needs and is not limited here.

[0103] Step A40: When it is determined that the interval duration is within the second preset range, executing the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information;

[0104] When it is determined that the interval duration is within the second preset range, it is determined that the two events of the preset action of the headphone device and the presence of target voice information in the ambient sound signal occur within a certain time period. At this time, the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information can be executed.

[0105] Step A50: When it is determined that the interval duration is not within the second preset range, the process returns to the step of detecting whether the headphone device has taken a preset action.

[0106] When it is determined that the interval duration is not within the second preset range, it is determined that the time interval between the two events of the headphone device performing the preset action and the presence of the target voice information in the ambient sound signal is long. At this time, the step of detecting whether the headphone device performs the preset action can be returned to determine whether the ambient sound signal of the environment described by the headphone device is picked up. This can improve the timeliness and accuracy of controlling the headphone device according to the target voice signal in the ambient sound signal, and enhance the user experience of using the headphone device.

[0107] Furthermore, in one embodiment, step S40 includes:

[0108] Step S401: When the instruction information preset corresponding to the target voice information is information for turning on the active noise reduction function, turning on the active noise reduction function of the headphone device;

[0109] Step S402: When the instruction information preset corresponding to the target voice information is information for turning off the active noise reduction function, turning off the active noise reduction function of the headphone device.

[0110] In this embodiment, the command information is information for controlling the active noise reduction function of the headphone device. Specifically, when the target voice information corresponds to the preset command information for enabling active noise reduction, the active noise reduction function of the headphone device is enabled. When the target voice information corresponds to the preset command information for disabling active noise reduction, the active noise reduction function of the headphone device is disabled.

[0111] It should be noted that by controlling the functions of the headphone device according to the content of the instruction information, multiple functions of the headphone device can be controlled by voice, thereby improving the convenience and practicality of using the headphone device.

[0112] Further, in one embodiment, referring to Figure 2 The headphone device is provided with a voice and clear sound sensor module (i.e., a sound collection device) and an acceleration sensor module (i.e., an acceleration sensor). In this embodiment, the provision of a highly sensitive voice and clear sound sensor module can make the ambient sound signal picked up more accurate.

[0113] The acceleration sensor module is turned on. After detecting a slight head shaking motion, the acceleration sensor module sends an interrupt signal to the MCU (Microcontroller Unit). After detecting the interrupt signal, the MCU turns on the clear and voiced sound sensor module. (That is, it detects whether the headphone device has a preset action. When it is determined that the headphone device has a preset action, the sound collection device in the headphone device picks up the ambient sound signal of the headphone device's environment.)

[0114] If the unvoiced and voiced sound sensing module detects "on" unvoiced and voiced sound within 3 seconds, the MCU controls the activation of the autonomous noise reduction mode; if the unvoiced and voiced sound sensing module detects "off" unvoiced and voiced sound within 3 seconds, the MCU controls the activation of the autonomous noise reduction mode. (That is, the interval between the first moment and the second moment is detected to be within a second preset range. When it is determined that the interval is within the second preset range, the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information is executed. In this embodiment, the instruction information is instruction information for controlling the active noise reduction function of the headphone device. That is, the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information is: when the preset instruction information corresponding to the target voice information is information for activating the active noise reduction function, the active noise reduction function of the headphone device is activated; when the preset instruction information corresponding to the target voice information is information for deactivating the active noise reduction function, the active noise reduction function of the headphone device is deactivated.)

[0115] In this embodiment, by detecting whether the voiceprint of the target voice information is consistent with the preset voiceprint, it is determined whether the user who issued the target voice information is a user who can control the headphone device. When it is determined that the voiceprint of the target voice information is consistent with the preset voiceprint, it is determined that the user who issued the target voice information is a user who can control the headphone device. At this time, the headphone device is controlled according to the preset instruction information corresponding to the target voice information. This embodiment prevents the headphone device from being controlled by other users other than the headphone device during use, thereby improving the accuracy of controlling the headphone device.

[0116] The embodiment of the present invention also provides a headphone device control device, referring to Figure 3 , the headphone device control device includes:

[0117] A detection module 10 is used to detect whether the earphone device performs a preset action;

[0118] a determination module 20 for, when determining that the earphone device has performed the preset action, picking up an ambient sound signal of the environment in which the earphone device is located through a sound collection device in the earphone device;

[0119] The detection module 10 is further configured to detect whether there is target voice information consistent with preset keyword information in the ambient sound signal;

[0120] The determining module 20 is further configured to control the headphone device according to preset instruction information corresponding to the target voice information when it is determined that the target voice information exists in the ambient sound signal.

[0121] Furthermore, the headphone device control apparatus further includes a obtaining module, and the obtaining module is configured to:

[0122] Acquiring movement information of the headphone device through the acceleration sensor, wherein the movement information includes at least an acceleration direction and an acceleration value;

[0123] The detection module 10 is further configured to:

[0124] detecting whether the acceleration direction is consistent with a preset direction, and detecting whether the acceleration value is within a first preset range;

[0125] If the acceleration direction is consistent with the preset direction and the acceleration value is within the first preset range, it is determined that the headphone device has performed the preset action.

[0126] Furthermore, the detection module 10 is further configured to:

[0127] detecting whether the earphone device is in a working state, wherein the working state is a state in which the earphone device is worn and the earphone device is playing an audio signal;

[0128] When it is determined that the headphone device is in the working state, the step of detecting whether the headphone device has performed a preset action is performed.

[0129] Furthermore, the detection module 10 is further configured to:

[0130] detecting whether the headphone device is in an upright state immediately before the preset action begins, wherein the upright state refers to a state in which a deflection angle of any coordinate axis in a headphone coordinate system constructed based on the headphone device relative to a corresponding coordinate axis in a reference coordinate system is within a preset angle range, and the reference coordinate system is the coordinate system of the accelerometer in the headphone device;

[0131] When it is determined that the headphone device is in the upright state immediately before the preset action begins, the step of picking up the ambient sound signal of the environment in which the headphone device is located by the sound collecting device in the headphone device is performed.

[0132] Furthermore, the detection module 10 is further configured to:

[0133] detecting whether an interval between a first moment and a second moment is within a second preset range, wherein the first moment is the moment when the headphone device ends the preset action, and the second moment is the moment when the target voice information begins to appear in the ambient sound signal;

[0134] When it is determined that the interval duration is within the second preset range, executing the step of controlling the headphone device according to the instruction information preset corresponding to the target voice information;

[0135] When it is determined that the interval duration is not within the second preset range, the process returns to the step of detecting whether the headphone device has taken a preset action.

[0136] Furthermore, the determining module 20 is further configured to:

[0137] When it is determined that the target voice information exists in the ambient sound signal, detecting whether the voiceprint of the target voice information is consistent with a preset voiceprint;

[0138] When it is determined that the voiceprint of the target voice information is consistent with the preset voiceprint, the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information is performed.

[0139] Furthermore, the determining module 20 is further configured to:

[0140] When the instruction information preset corresponding to the target voice information is information for turning on the active noise reduction function, turning on the active noise reduction function of the headphone device;

[0141] When the instruction information preset corresponding to the target voice information is information for turning off the active noise reduction function, the active noise reduction function of the headphone device is turned off.

[0142] The various embodiments of the headphone device control apparatus of the present invention may refer to the various embodiments of the headphone device control method of the present invention, and will not be described in detail here.

[0143] The embodiment of the present invention also provides a headphone device control device, referring to Figure 4The headphone device control device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.

[0144] Those skilled in the art will understand that Figure 4 The structure shown in the figure does not constitute a limitation on the headphone device control device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0145] like Figure 4 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a headphone device control program.

[0146] exist Figure 4 In the headphone device control device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the headphone device control device of the present invention can be set in the headphone device control device. The headphone device control device calls the headphone device control program stored in the memory 1005 through the processor 1001 and executes the steps of the headphone device control method provided in the embodiment of the present invention.

[0147] The various embodiments of the headphone device control device of the present invention may refer to the various embodiments of the headphone device control method of the present invention, and will not be described in detail here.

[0148] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a headphone device control program is stored. When the headphone device control program is executed by a processor, the steps of the headphone device control method described above are implemented.

[0149] The various embodiments of the computer-readable storage medium of the present invention may refer to the various embodiments of the headphone device control method of the present invention, and will not be described in detail here.

[0150] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0151] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0153] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for controlling an earphone device, characterized in that: The headphone device control method is applied to a headphone device, and the headphone device control method comprises the following steps: detecting whether the earphone device is in a working state, wherein the working state is a state in which the earphone device is worn and the earphone device is playing an audio signal; When it is determined that the headphone device is in the working state, detecting whether the headphone device performs a preset action; When it is determined that the headphone device has performed the preset action, detecting whether the headphone device was in an upright state immediately before the preset action began, wherein the upright state is a state in which a deflection angle of any coordinate axis in a headphone coordinate system constructed based on the headphone device relative to a corresponding coordinate axis in a reference coordinate system is within a preset angle range, and the reference coordinate system is a coordinate system of an acceleration sensor in the headphone device; When it is determined that the headphone device is in the upright state at the moment before the preset action begins, picking up an ambient sound signal of the environment in which the headphone device is located by a sound collecting device in the headphone device; Detecting whether there is target voice information consistent with preset keyword information in the ambient sound signal; When it is determined that the target voice information exists in the ambient sound signal, the headphone device is controlled according to preset instruction information corresponding to the target voice information.

2. The headphone device control method according to claim 1, wherein: The headphone device is provided with an acceleration sensor, and before the step of detecting whether the headphone device performs a preset action, the method further includes: Acquiring movement information of the headphone device through the acceleration sensor, wherein the movement information includes at least an acceleration direction and an acceleration value; The step of detecting whether the earphone device performs a preset action includes: detecting whether the acceleration direction is consistent with a preset direction, and detecting whether the acceleration value is within a first preset range; If the acceleration direction is consistent with the preset direction and the acceleration value is within the first preset range, it is determined that the headphone device has performed the preset action.

3. The headphone device control method according to claim 1, wherein: Before the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information, the method further includes: detecting whether an interval between a first moment and a second moment is within a second preset range, wherein the first moment is the moment when the headphone device ends the preset action, and the second moment is the moment when the target voice information begins to appear in the ambient sound signal; When it is determined that the interval duration is within the second preset range, executing the step of controlling the headphone device according to the instruction information preset corresponding to the target voice information; When it is determined that the interval duration is not within the second preset range, the process returns to the step of detecting whether the headphone device has taken a preset action.

4. The headphone device control method according to claim 1, wherein: Before the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information, the method further includes: When it is determined that the target voice information exists in the ambient sound signal, detecting whether the voiceprint of the target voice information is consistent with a preset voiceprint; When it is determined that the voiceprint of the target voice information is consistent with the preset voiceprint, the step of controlling the headphone device according to the preset instruction information corresponding to the target voice information is performed.

5. The headphone device control method according to any one of claims 1 to 4, characterized in that: The step of controlling the headphone device according to the preset instruction information corresponding to the target voice information includes: When the instruction information preset corresponding to the target voice information is information for turning on the active noise reduction function, turning on the active noise reduction function of the headphone device; When the instruction information preset corresponding to the target voice information is information for turning off the active noise reduction function, the active noise reduction function of the headphone device is turned off.

6. A headphone device control device, characterized in that: The headphone device control device includes: a detection module, configured to detect whether the headphone device is in an operating state, and when it is determined that the headphone device is in the operating state, detect whether the headphone device performs a preset action, wherein the operating state is a state in which the headphone device is worn and the headphone device is playing an audio signal; a determination module, configured to, when determining that the headphone device has performed the preset action, detect whether the headphone device was in an upright state immediately before the preset action began, wherein the upright state is a state in which a deflection angle of any coordinate axis in a headphone coordinate system constructed based on the headphone device relative to a corresponding coordinate axis in a reference coordinate system is within a preset angular range, and the reference coordinate system is the coordinate system of the acceleration sensor in the headphone device; When it is determined that the headphone device is in the upright state at the moment before the preset action begins, picking up an ambient sound signal of the environment in which the headphone device is located by a sound collecting device in the headphone device; The detection module is further configured to detect whether there is target voice information consistent with preset keyword information in the ambient sound signal; The determining module is further configured to: When it is determined that the target voice information exists in the ambient sound signal, the headphone device is controlled according to preset instruction information corresponding to the target voice information.

7. A headphone device control device, characterized in that: The headphone device control device includes: a memory, a processor, and a headphone device control program stored in the memory and executable on the processor, wherein the headphone device control program is configured to implement the steps of the headphone device control method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a headphone device control program, and when the headphone device control program is executed by a processor, the steps of the headphone device control method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Voice control method, earphone and storage medium

    CN114120603A

  • Head mounted multi-sensory audio input system

    CN1591568A

  • Intelligence bluetooth headset and bluetooth interaction system

    CN208227260U