Automatic power-off method and device of earphone, terminal equipment and storage medium

By obtaining the audio signal of the earphones and adjusting the shutdown time based on the target parameters, the problem of excessive power consumption of the earphones in the prior art is solved, and the automatic shutdown and power consumption reduction of the earphones are achieved.

CN119545236APending Publication Date: 2025-02-28GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311119209.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, the lack of an effective automatic shutdown method results in excessive power consumption of earphones, especially those without wearing detection functions.

Method used

When the ear return function is turned on, the audio signal collected by the sound pickup unit is obtained, and the adjustment method of the headphone shutdown time is determined based on the target parameters of the audio signal, and a reset signal is generated to adjust the shutdown time.

Benefits of technology

It realizes timely shutdown in headphones with ear return function, reducing the power consumption of headphones, and is suitable for headphones without wear detection function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545236A_ABST
    Figure CN119545236A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic power-off method and device of an earphone, terminal equipment and a storage medium, and belongs to the field of earphone application. The method comprises the following steps: acquiring an audio signal collected by a pickup unit under the condition that an ear return function of the earphone is started, the ear return function comprising outputting the audio signal collected by the pickup unit; and determining an adjustment mode of the shutdown time of the earphone based on the target parameter of the audio signal. According to the invention, the earphone with the earphone return function can be automatically turned off, and the power consumption of the earphone is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of earphone applications, and in particular to an automatic earphone shutdown method, device, terminal equipment and storage medium. Background Art

[0002] In the process of using the earphone, in order to reduce the power consumption of the earphone, it is usually necessary to set the earphone to automatically shut down. This method can automatically shut down when the user forgets to shut down or does not use it for a long time, thereby achieving the purpose of reducing power consumption.

[0003] In the prior art, the technical means adopted are usually to determine whether to automatically shut down the headset based on whether the headset is in a wearing state, for example, when the headset is not worn for more than a preset time, it will automatically shut down.

[0004] However, for different in-ear return headphones, due to different actual needs, their corresponding structures are also different. For headphones without wearing detection function, the above-mentioned automatic shutdown method cannot be implemented, so that such headphones cannot be automatically shut down, resulting in excessive power consumption of such in-ear return headphones. Summary of the invention

[0005] In order to solve the problems of the prior art, realize the automatic shutdown of headphones with ear return function, and reduce the power consumption of headphones, the embodiments of the present application provide a method, device, terminal device and storage medium for automatically shutting down headphones. The technical solution is as follows:

[0006] In one aspect of an embodiment of the present application, a method for automatically shutting down an earphone is provided, which is applied to the earphone, and the earphone includes: a sound pickup unit, and the method includes:

[0007] When the ear return function of the headset is turned on, the audio signal collected by the sound pickup unit is obtained, and the ear return function includes outputting the audio signal collected by the sound pickup unit;

[0008] The adjustment method of the off time of the earphone is determined based on the target parameter of the audio signal.

[0009] Optionally, determining an adjustment method for the power-off time of the earphone based on a target parameter of the audio signal includes:

[0010] determining whether to generate a reset signal based on a target parameter of the audio signal;

[0011] When a reset signal is generated, adjusting the power-off time of the headset according to the reset signal;

[0012] In the event that a reset signal is not generated, the power-off time of the headset is not adjusted.

[0013] Optionally, determining whether to generate a reset signal based on a target parameter of the audio signal comprises:

[0014] Determine the loudness of an audio signal;

[0015] In case the loudness of the audio signal is greater than the target loudness threshold, a reset signal is generated.

[0016] Optionally, when the loudness of the audio signal is greater than a target loudness threshold, generating a reset signal comprises:

[0017] When the loudness of the audio signal is greater than the target loudness threshold, determining whether there is a human voice in the audio signal;

[0018] If human voice is present, a reset signal is generated.

[0019] Optionally, determining whether a human voice exists in the audio signal includes:

[0020] Determine a target time point at which the loudness of the audio signal is greater than a target loudness threshold, and determine a human voice detection time interval based on the target time point;

[0021] Determine whether a human voice is present in the audio signal within a human voice detection time interval.

[0022] Optionally, determining whether a human voice exists in the audio signal within the human voice detection time interval includes:

[0023] Determine the frequency spectrum data corresponding to the audio signal within the human voice detection time interval;

[0024] Determine the presence of human voice in an audio signal based on spectral data.

[0025] Optionally, determining whether to generate a reset signal based on a target parameter of the audio signal comprises:

[0026] determining the frequency of an audio signal;

[0027] When the frequency of the audio signal is within the target frequency interval, a reset signal is generated.

[0028] Optionally, determining whether to generate a reset signal based on a target parameter of the audio signal comprises:

[0029] determining the duration of an audio signal;

[0030] In case the duration of the audio signal is greater than the target time threshold, a reset signal is generated.

[0031] Optionally, the power-off time of the headset is adjusted according to the reset signal, including:

[0032] Based on the reset signal, the current shutdown time of the headset is reset to the initial shutdown time. When the shutdown time is 0, the headset is automatically shut down.

[0033] Optionally, before adjusting the power-off time of the headset according to the reset signal, the method further includes:

[0034] Determine whether the headset receives a task instruction, where the task instruction includes at least one of the following: an audio playback instruction, a key instruction, an incoming call instruction, or a call instruction;

[0035] Based on the received task instruction, a reset signal is generated.

[0036] Another aspect of the embodiment of the present application provides an automatic shutdown device for headphones, which is applied to headphones, the headphones comprising: a sound pickup unit, the device comprising: an acquisition module and an adjustment module;

[0037] An acquisition module, used to acquire the audio signal collected by the sound pickup unit when the ear return function of the headset is turned on, and the ear return function includes outputting the audio signal collected by the sound pickup unit;

[0038] The adjustment module is used to determine the adjustment method of the power-off time of the earphone based on the target parameter of the audio signal.

[0039] Optionally, the adjustment module is specifically used to determine whether to generate a reset signal based on the target parameters of the audio signal; when a reset signal is generated, the shutdown time of the earphone is adjusted according to the reset signal; when a reset signal is not generated, the shutdown time of the earphone is not adjusted.

[0040] Optionally, the adjustment module is specifically configured to determine the loudness of the audio signal; and generate a reset signal when the loudness of the audio signal is greater than a target loudness threshold.

[0041] Optionally, the adjustment module is specifically configured to determine whether a human voice exists in the audio signal when the loudness of the audio signal is greater than a target loudness threshold; if a human voice exists, generate a reset signal.

[0042] Optionally, the adjustment module is specifically used to determine a target time point in the audio signal when the loudness is greater than a target loudness threshold, and determine a human voice detection time interval based on the target time point; and determine whether there is a human voice in the audio signal within the human voice detection time interval.

[0043] Optionally, the adjustment module is specifically used to determine frequency spectrum data corresponding to the audio signal within the human voice detection time interval; and determine whether there is a human voice in the audio signal according to the frequency spectrum data.

[0044] Optionally, the adjustment module is further specifically configured to determine the frequency of the audio signal; and generate a reset signal when the frequency of the audio signal is within a target frequency range.

[0045] Optionally, the adjustment module is further specifically configured to determine a duration of the audio signal; and generate a reset signal when the duration of the audio signal is greater than a target time threshold.

[0046] Optionally, the adjustment module is further used to reset the current shutdown time of the headset to the initial shutdown time based on the reset signal, and when the shutdown time is 0, the headset automatically shuts down.

[0047] Optionally, the adjustment module is further used to determine whether the headset receives a task instruction, where the task instruction includes at least one of the following: an audio playback instruction, a key instruction, an incoming call instruction, or a talk instruction; and generate a reset signal based on the received task instruction.

[0048] In another aspect of an embodiment of the present application, a terminal device is provided, the terminal device includes a processor and a memory, the memory stores a computer program, and the computer program is executed by the processor to implement a method for automatically shutting down the headset.

[0049] In another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is executed by a processor to implement a method for automatically shutting down headphones.

[0050] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0051] In an automatic power-off method, device, terminal device, and storage medium for headphones provided in an embodiment of the present application, an audio signal collected by a sound pickup unit can be obtained when the ear return function of the headphones is turned on, and the ear return function includes outputting the audio signal collected by the sound pickup unit; and determining the adjustment method of the shutdown time of the headphones based on the target parameters of the audio signal. Among them, when the ear return function is turned on, it is possible to more accurately determine whether the shutdown time of the headphones needs to be adjusted based on the target parameters of the audio signal actually collected, so that the headphones with the ear return function can be shut down in time during use, thereby reducing the power consumption of the headphones. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0053] Figure 1 A schematic diagram of the structure of the earphone provided in an embodiment of the present application;

[0054] Figure 2 A schematic diagram of a flow chart of an automatic power-off method for headphones provided in an embodiment of the present application;

[0055] Figure 3Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0056] Figure 4 Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0057] Figure 5 Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0058] Figure 6 Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0059] Figure 7 Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0060] Figure 8 Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0061] Fig. 9 Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0062] Fig.10 Another schematic diagram of a flow chart of the automatic shutdown method of the headset provided in an embodiment of the present application;

[0063] Fig.11 A schematic diagram of the structure of an automatic power-off device for headphones provided in an embodiment of the present application;

[0064] Fig.12 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0066] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0067] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0068] In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0069] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0070] In order to more clearly explain the automatic shutdown method of the headset provided in the embodiment of the present application, the specific structure of the headset to which the method is applied is described below.

[0071] Figure 1 For a schematic diagram of the structure of the earphone provided in the embodiment of the present application, please refer to Figure 1 The earphone includes: a sound pickup unit 110 and an earphone body 120.

[0072] The earphones may be in-ear earphones or non-in-ear earphones, may be head-mounted earphones or neck-hanging open-type earphones, and the specific structure of the earphones is not limited here.

[0073] The headset can communicate with other terminal devices, for example, it can be a wireless communication connection, specifically, it can be a wireless communication connection with electronic devices such as mobile phones and computers.

[0074] Optionally, the sound pickup unit 110 can specifically be a microphone, and the earphone can obtain audio signals based on the sound pickup unit 110. For example, when the user is speaking, recording can be performed through the sound pickup unit 110 to achieve the collection of audio signals. In addition to human voices, other audio signals such as ambient sounds can also be recorded, which is not specifically limited here.

[0075] The earphone body 120 can output audio signals through output units such as speakers, so that the user can hear the sound of his own voice. This effect is brought about by the earphone's in-ear return function. When using the earphone, the audio signal is obtained through the sound pickup unit and then output through the earphone body. This process is the process of realizing the in-ear return function.

[0076] Optionally, Figure 1Taking the actual product structure of the earphone as an example, it can be determined from the top view and the front view that the earphone body 120 includes two speakers 121, and the two speakers 121 are connected by a head bow line 122. A physical button 123 can also be provided near the speaker 121, and it can be determined that a charging port 124 can also be provided on the outside of the speaker 121; in addition, based on the side view, it can be determined that the pickup unit 110 and the earphone body 120 can be connected.

[0077] It should be noted that the ear return function of the headset can be turned on or off according to actual conditions during use. The automatic shutdown method of the headset provided in the embodiment of the present application can be implemented on the premise that the ear return function of the headset is turned on.

[0078] In addition, for headphones with a wearing detection function, it can determine whether to shut down based on whether they are worn by the user; the automatic shutdown method of headphones provided in the embodiments of the present application is mainly for headphones that do not have a wearing detection function or the wearing detection function is not enabled.

[0079] Based on the above description of the specific structure of the headset, the specific implementation process of the automatic shutdown method of the headset provided in the embodiment of the present application is explained below.

[0080] Figure 2 For a flow chart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Figure 2 , the method comprising:

[0081] S210: When the earphone return function of the earphone is turned on, an audio signal collected by the sound pickup unit is obtained.

[0082] Among them, the ear return function includes outputting the audio signal collected by the pickup unit.

[0083] Optionally, the earphones may include multiple functions, and the ear return function may be one of them. When the user uses the earphones, the current status of the ear return function of the earphones can be determined. For example, an indicator light or switch can be set to indicate that the ear return function is on, and a prompt can be given when the ear return function is turned on; or, a voice prompt can be set when the ear return function is turned on, so as to determine whether the ear return function is turned on.

[0084] Alternatively, for the earphone itself, when the ear return function is turned on, a corresponding electrical signal can be generated, and the signal is used to indicate that the ear return function is turned on.

[0085] Optionally, after determining that the ear return function of the headset is turned on, the audio signal collected by the pickup unit can be obtained, and further judgment can be made based on the target parameters of the audio signal, wherein the target parameters can be the loudness, frequency, duration or other audio parameters of the audio signal. There is no specific limitation here, and one or more parameters can be selected to adjust the shutdown time according to the actual needs of the user.

[0086] S220: Determine an adjustment method for the power-off time of the earphone based on the target parameter of the audio signal.

[0087] Optionally, the specific length of the earphone's shutdown time can be determined by the target parameters of the audio signal. For example, when the target parameters meet certain conditions, the earphone's shutdown time can be set to a fixed value; or, when the target parameters meet certain conditions, the earphone's shutdown time that has been in countdown can be reset, etc. There are no specific restrictions here, and anything that can achieve the automatic adjustment of the earphone's shutdown time will suffice.

[0088] Specifically, when it is determined that the target parameters of the audio signal meet certain conditions, it can be determined that the headset is currently being used or is about to be used, etc., so that it can be determined that the headset does not need to be turned off currently; accordingly, it can also be determined that the headset does not need to be used for a certain period of time, so that it can be determined that the headset needs to be turned off.

[0089] In an automatic power-off method for headphones provided in an embodiment of the present application, when the ear return function of the headphones is turned on, the audio signal collected by the sound pickup unit can be obtained, and the ear return function includes outputting the audio signal collected by the sound pickup unit; and determining the adjustment method of the shutdown time of the headphones based on the target parameters of the audio signal. Wherein, when the ear return function is turned on, it can be more accurately determined whether the shutdown time of the headphones needs to be adjusted based on the target parameters of the audio signal actually collected, so that the headphones with the ear return function can be shut down in time during use, thereby reducing the power consumption of the headphones.

[0090] The following is a specific implementation process of the automatic shutdown method of the headset provided in an embodiment of the present application.

[0091] Figure 3 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Figure 3 , determining an adjustment method of the off time of the headset based on a target parameter of the audio signal, including:

[0092] S310: Determine whether to generate a reset signal based on a target parameter of the audio signal.

[0093] Optionally, the reset signal may be an electrical signal, which may adjust the power-off time of the headset. For example, if the headset is powered off by a countdown, the countdown time of the headset may be adjusted based on the reset signal.

[0094] In the actual determination process, whether to generate a reset signal can be determined based on the target parameters of the audio signal. For example, when the target parameters meet certain conditions, it can be determined that a reset signal is generated; accordingly, if the target parameters do not meet the corresponding conditions, a reset signal cannot be generated.

[0095] Based on different target parameters, the corresponding conditions that need to be met are also different. Corresponding settings can be made according to the target parameters of actual applications, and no specific restrictions are made here.

[0096] S320: When a reset signal is generated, adjust the power-off time of the headset according to the reset signal.

[0097] S330: When no reset signal is generated, the power-off time of the headset is not adjusted.

[0098] It should be noted that whether to adjust the power-off time of the headset can be determined based on whether a reset signal is generated. For example, if a reset signal is generated, the power-off time of the headset can be adjusted based on the reset signal; conversely, if no reset signal is generated, the power-off time of the headset may not be adjusted, that is, the current power-off time of the headset can be maintained.

[0099] Optionally, when the headset is in the ear return mode, it can be determined at any time whether a reset signal is currently generated, and then the shutdown time of the headset can be adjusted in time under the premise that the reset signal is generated.

[0100] In addition, in the actual implementation process, different reset signals can also be generated according to the target parameters of different audio signals. Based on different reset signals, different adjustment methods can be used to adjust the power-off time of the headphones.

[0101] For example, a first reset signal obtained according to the loudness of an audio signal can reset the shutdown time of a headset that is counting down; a second reset signal obtained according to the duration of an audio signal can extend the shutdown time of a headset that is counting down for a period of time, etc.

[0102] The above is only an example for different target parameters and is not intended to be a limitation under the target parameters. How the reset signal adjusts the shutdown time of the headset can be determined based on the actual needs of the user or pre-configuration.

[0103] In an automatic power-off method for headphones provided in an embodiment of the present application, it is possible to determine whether to generate a reset signal based on the target parameters of the audio signal; in the case of generating a reset signal, the power-off time of the headphones is adjusted according to the reset signal; in the case of not generating a reset signal, the power-off time of the headphones is not adjusted. Among them, the target parameters of the audio signal can be used to more accurately and timely determine whether the power-off time of the headphones needs to be adjusted, and then the corresponding reset signal can be generated to adjust the power-off time if adjustment is required, and the power-off countdown is maintained if adjustment is not required, so that the headphones can be shut down in time and the power consumption of the headphones is reduced.

[0104] The following specifically explains the process of generating a reset signal based on the loudness of an audio signal in the automatic shutdown method of headphones provided in an embodiment of the present application.

[0105] Figure 4 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Figure 4 , determining whether to generate a reset signal based on a target parameter of the audio signal, comprising:

[0106] S410: Determine the loudness of the audio signal.

[0107] Optionally, after the audio signal is acquired, the loudness of the audio signal may be determined, where the loudness specifically refers to the sound volume of the audio signal, that is, the corresponding decibel value.

[0108] It should be noted that an audio signal is usually a signal that continues for a certain period of time and may have different loudness at different times. In the process of determining the loudness of an audio signal, the loudness at each time within the duration of the audio signal may be determined.

[0109] S420: When the loudness of the audio signal is greater than the target loudness threshold, generate a reset signal.

[0110] Optionally, a target loudness threshold may be set, and when the loudness of the audio signal is greater than the target loudness threshold, a reset signal is generated; correspondingly, when the loudness of the audio signal is less than or equal to the target loudness threshold, no reset signal may be generated.

[0111] For example, if the target loudness threshold is set to 10 dB, when the loudness of the audio signal is 20 dB, a reset signal may be generated; and when the loudness of the audio signal is 5 dB, no reset signal may be generated.

[0112] The target loudness threshold may be set by the user, or may be a default value used when the earphone leaves the factory, and no specific limitation is made here.

[0113] That is, it can be determined that a reset signal is generated when the audio signal sound is louder and exceeds the target loudness threshold, and no reset signal is generated when the audio signal sound is quieter and does not exceed the target loudness threshold.

[0114] In an automatic shutdown method for headphones provided in an embodiment of the present application, the loudness of an audio signal can be determined; when the loudness of the audio signal is greater than a target loudness threshold, a reset signal is generated. The reset signal can be generated when the loudness of the audio signal is greater than the target loudness threshold, so that it can be determined that the headphones are being used by the user when the sound is loud, and then the shutdown time of the headphones can be reset based on the reset signal to prevent the headphones from automatically shutting down during use.

[0115] The following is a detailed explanation of the specific implementation process of generating a reset signal based on the loudness of an audio signal in the automatic shutdown method of headphones provided in an embodiment of the present application.

[0116] Figure 5 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Figure 5 , when the loudness of the audio signal is greater than the target loudness threshold, generating a reset signal, including:

[0117] S510: When the loudness of the audio signal is greater than the target loudness threshold, determine whether there is a human voice in the audio signal.

[0118] Optionally, a processing unit with a voice recognition function may be provided in the earphone body, based on which it is possible to determine whether there is a human voice from the audio signal.

[0119] It should be noted that, when it is determined that the loudness of the audio signal is greater than the target loudness threshold, in order to further determine whether the audio signal is emitted by the user, the above-mentioned human voice determination may be performed.

[0120] S520: If there is a human voice, generate a reset signal.

[0121] Optionally, after it is determined that a human voice exists in the audio signal, a reset signal may be generated; correspondingly, if it is determined that a human voice does not exist in the audio signal, no reset signal is generated.

[0122] It should be noted that, for headphones that do not have a processing unit with a voice recognition function, the above-mentioned implementation steps S410-S420 can be adopted; for headphones that have a processing unit with a voice recognition function, the above-mentioned steps S510-S520 can be adopted.

[0123] In an automatic power-off method for headphones provided in an embodiment of the present application, when the loudness of the audio signal is greater than a target loudness threshold, it is determined whether there is a human voice in the audio signal; if there is a human voice, a reset signal is generated. According to whether there is a human voice, it can be further and more accurately determined whether the headphones with an ear return function need to be turned off, thereby improving the accuracy of the headphone shutdown determination and reducing the power consumption of the headphones.

[0124] The specific implementation process of determining whether there is a human voice in the automatic shutdown method of the headset provided in the embodiment of the present application is explained in detail below.

[0125] Figure 6 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Figure 6 , determine whether there is human voice in the audio signal, including:

[0126] S610: Determine a target time point at which the loudness of the audio signal is greater than a target loudness threshold, and determine a human voice detection time interval based on the target time point.

[0127] Optionally, the audio signal may specifically be a signal that lasts for a certain period of time. During the duration of the audio signal, the loudness of the audio signal may be detected. When it is determined that the loudness of the audio signal is greater than a target loudness threshold, the target time point corresponding to the audio signal at this time may be determined.

[0128] For example, if the audio signal lasts for 10 minutes, and the loudness of the audio signal is greater than the target loudness threshold at 5 minutes and 30 seconds, then 5 minutes and 30 seconds can be determined as the target time point.

[0129] It should be noted that after determining the target time point, a voice detection time interval may be further determined within the duration of the audio signal.

[0130] Specifically, it is possible to determine whether there is a human voice within N seconds around the target time point, for example, the time interval of 5 seconds before and after the target time point is used as the human voice detection time interval. Continuing with the example of the target time point being 5 minutes and 30 seconds, the human voice detection time interval can be specifically between 5 minutes and 25 seconds and 5 minutes and 35 seconds.

[0131] S620: Determine whether there is a human voice in the audio signal within the human voice detection time interval.

[0132] Optionally, after the human voice detection time interval is determined, human voice detection may be performed within the human voice detection time interval.

[0133] Continuing with the above example, when determining whether there is a human voice between 5 minutes 25 seconds and 5 minutes 35 seconds, the human voice determination can be performed based on the signal segment of the audio signal within the time interval.

[0134] In the automatic shutdown method of the headset provided in the embodiment of the present application, the target time point at which the loudness of the audio signal is greater than the target loudness threshold can be determined, and the human voice detection time interval can be determined based on the target time point; and it can be determined whether there is a human voice in the audio signal within the human voice detection time interval. Among them, by determining the human voice detection time interval through the target time point, the range of human voice detection that needs to be performed can be more accurately narrowed, thereby avoiding real-time human voice detection, improving the efficiency of human voice detection, and reducing the power consumption of the headset.

[0135] The specific implementation process of determining whether there is a human voice in the automatic shutdown method of the headset provided in the embodiment of the present application is explained in detail below.

[0136] Figure 7 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Figure 7 , determining whether there is a human voice in the audio signal within the human voice detection time interval, including:

[0137] S710: Determine frequency spectrum data corresponding to the audio signal within the human voice detection time interval.

[0138] Optionally, after determining the human voice detection time interval, a signal segment corresponding to the audio signal in the human voice detection time interval may be determined, and further, spectrum data of the signal segment may be determined.

[0139] It should be noted that the spectrum data may be specifically represented in the form of a frequency distribution curve, and the shape within the human voice detection time interval may be determined based on the frequency distribution curve, and further, whether the signal is a human voice may be determined based on the corresponding shape.

[0140] S720: Determine whether there is a human voice in the audio signal according to the spectrum data.

[0141] Optionally, after obtaining the spectrum data, it can be determined whether there is a human voice from an image of the spectrum data or data corresponding to the image.

[0142] For example, the shape of the signal corresponding to the human voice may be of several fixed types, and it can be determined from the spectrum whether there is a shape or data of the corresponding type, thereby determining whether there is a human voice in the audio signal within the human voice detection time interval.

[0143] If there is a shape or data of a type corresponding to human voice, it can be determined that there is human voice in the audio signal; correspondingly, if there is no shape or data of a type corresponding to human voice, it can be determined that there is no human voice in the audio signal.

[0144] In the automatic power-off method of the headset provided in the embodiment of the present application, the spectrum data corresponding to the audio signal in the human voice detection time interval can be determined; and whether there is a human voice in the audio signal can be determined based on the spectrum data. Among them, based on the spectrum data, it is possible to more accurately and quickly determine whether there is a human voice in the signal, thereby improving the efficiency of determining whether there is a human voice, and further improving the accuracy of the headset power-off detection, and reducing the power consumption of the headset.

[0145] The following is a detailed explanation of the specific implementation process of determining the generation of a reset signal based on other target parameters in the automatic shutdown method of the headset provided in the embodiment of the present application.

[0146] Figure 8 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Figure 8 , determining whether to generate a reset signal based on a target parameter of the audio signal, comprising:

[0147] S810: Determine the frequency of the audio signal.

[0148] Optionally, the frequency of the audio signal can be obtained from the spectrum data corresponding to the audio signal. After the audio signal is acquired based on the sound pickup unit, the frequency of the audio signal can be determined. When the frequency of the audio signal is different, the timbre of the generated sound will also change.

[0149] It should be noted that the audio signal is a signal that lasts for a certain period of time. During the duration, the frequencies at different time points may be different. After the audio signal is obtained, the frequency of the audio signal in each time period can be determined.

[0150] When using headphones, users may make sounds with a certain rhythm, such as breathing and running sounds when wearing headphones for fitness. These sounds are usually within a certain frequency range. If this information is obtained, it can be determined whether the user is using headphones at this time, and thus further determine whether to generate a reset signal.

[0151] S820: When the frequency of the audio signal is within the target frequency range, generate a reset signal.

[0152] Optionally, after determining the frequency of the audio signal, it can be determined whether all frequencies are within a target frequency range during the entire duration of the audio signal. The target range can be one or more pre-set ranges, and each range can represent a frequency corresponding to a sound that the user may make.

[0153] When it is determined that the frequency of the audio signal exists within the target frequency interval, a reset signal may be generated; correspondingly, if the frequency of the audio signal does not exist within the target frequency interval, a reset signal may not be generated.

[0154] In the automatic shutdown method of the headset provided in the embodiment of the present application, the frequency of the audio signal can be determined; when the frequency of the audio signal is within the target frequency range, a reset signal is generated. Among them, it can be determined whether the headset is currently in use based on the frequency of the sound emitted by the user, so that it can be more accurately determined whether the headset currently needs to be shut down, reducing the power consumption of the headset.

[0155] The following is a detailed explanation of the specific implementation process of determining the generation of a reset signal based on another target parameter in the automatic shutdown method of the headset provided in the embodiment of the present application.

[0156] Fig. 9 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Fig. 9 , determining whether to generate a reset signal based on a target parameter of the audio signal, comprising:

[0157] S910: Determine the duration of the audio signal.

[0158] Optionally, when using headphones, the user may be in a relatively quiet scene, such as a library or home. In order to keep the scene quiet, the user usually only makes smaller sounds, which may also be collected by the sound pickup unit to obtain corresponding audio signals, and the duration of these audio signals can be determined.

[0159] The process of using the duration of an audio signal to determine whether the headphone is turned off can be applied to headphones that have a low effect in collecting ambient sound. Such headphones usually only collect human voices or specific audio and use such audio as audio signals, and will not obtain audio signals due to other influences such as background sound of the surrounding environment.

[0160] It should be noted that the longer these audio signals last, the longer it can be determined that the user uses the ear return function of the headphones; correspondingly, the shorter these audio signals last, the more it can be determined that the user only used the ear return function for a shorter time.

[0161] S920: When the duration of the audio signal is greater than the target time threshold, generate a reset signal.

[0162] Optionally, a target time threshold may be set, for example, 2 minutes. When it is determined that the audio signal still exists for more than two minutes, it can be determined that the user is using the ear return function of the headset, and a reset signal may be generated.

[0163] Correspondingly, if the duration of the audio signal does not exceed the target time threshold, it can be determined that the user is no longer using the ear return function of the headset, and a reset signal may not be generated, waiting for the headset to automatically shut down.

[0164] In the automatic shutdown method of the headset provided in the embodiment of the present application, the duration of the audio signal can be determined; when the duration of the audio signal is greater than the target time threshold, a reset signal is generated. Wherein, it can be determined whether the headset is currently in use based on the duration of the audio signal, so that it can be more accurately determined whether the headset currently needs to be shut down, reducing the power consumption of the headset.

[0165] Optionally, the power-off time of the headset is adjusted according to the reset signal, including: based on the reset signal, resetting the current power-off time of the headset to the initial power-off time, and when the power-off time is 0, the headset automatically powers off.

[0166] It should be noted that when the shutdown time of the headset is actually adjusted, the shutdown countdown can be adjusted based on the reset signal. For example, when the shutdown time is 30 minutes, the countdown will start automatically and the shutdown time will be reduced accordingly. When the shutdown time is reduced to 0, the headset will automatically shut down. Accordingly, if a reset signal is received at any time, the shutdown time can be reset to the initial shutdown time.

[0167] For example, if the initial shutdown time is 30 minutes, and the current shutdown time counts down to 5 minutes and 30 seconds, if no reset signal is received, the countdown can continue; if a reset signal is received, 5 minutes and 30 seconds can be reset to 30 minutes.

[0168] Optionally, when the headset is in the on state, if the corresponding task instruction is not executed, it is in standby mode. In standby mode, the headset can automatically start the shutdown countdown, for example, it can count down from the initial shutdown time, and when the countdown ends, the headset can be turned off.

[0169] In the automatic shutdown method of the headset provided in the embodiment of the present application, the current shutdown time of the headset can be reset to the initial shutdown time based on the reset signal, so that the shutdown countdown can be reset more accurately, thereby improving the timeliness and accuracy of the shutdown time adjustment.

[0170] The following is a detailed explanation of another specific implementation process of generating a reset signal in the automatic shutdown method of the headset provided in the embodiment of the present application.

[0171] Fig.10 For another flowchart of the automatic shutdown method of the headset provided in the embodiment of the present application, please refer to Fig.10 Before adjusting the power-off time of the headset according to the reset signal, the method further includes:

[0172] S1010: Determine whether the headset receives a task instruction.

[0173] The task instruction includes at least one of the following: an audio playback instruction, a key instruction, an incoming call instruction or a talk instruction.

[0174] Optionally, during the use of the headset, due to the user's operation or information interaction of the terminal device, relevant task instructions are usually received. These task instructions can be used to make the headset perform corresponding tasks, or put the headset into a certain working state, etc.

[0175] The audio playback instruction may instruct the headset to play audio based on the audio transmitted by the terminal connected thereto, for example, to play music.

[0176] The button command can be a command generated by the user triggering the relevant operation button on the headset, for example: Figure 1 For example, the earphone structure in FIG. 1 can be operated by the user. Figure 1 The physical button 123 in the image can be used to turn on or off the earphone return function.

[0177] The incoming call instruction may be an instruction that the terminal communicating with the headset receives an incoming call from another terminal. For example, if terminal A calls terminal B communicating with the headset, the headset will receive the incoming call instruction.

[0178] The call instruction may be an instruction for the terminal communicating with the headset to initiate a call to another terminal. For example, if the terminal communicating with the headset calls terminal A, the headset will receive the call instruction.

[0179] It should be noted that the multiple instructions in the above examples are only optional examples. In actual applications, the functions of the headphones are different, and the task instructions they can receive are also different.

[0180] S1020: Generate a reset signal based on the received task instruction.

[0181] Optionally, for the above-mentioned multiple task instructions, when the earphone receives these instructions, it can be determined that the user is using or is about to use the earphone, so a corresponding reset signal can be generated based on these task instructions.

[0182] The reset signal may be generated at different times for different task instructions. For example, it may be generated directly after receiving the task instruction, or it may be generated within a period of time after receiving the task instruction. No specific limitation is made here.

[0183] It should be noted that regardless of whether the ear return mode of the headset is turned on, steps S1010-S1020 can be used to determine the generation of the reset signal.

[0184] In the automatic shutdown method of the headset provided in the embodiment of the present application, it can be determined whether the headset has received a task instruction; based on the received task instruction, a reset signal is generated. Among them, it can be determined more quickly whether the headset needs to adjust the shutdown time according to whether the headset has received the task instruction, so that the reset signal can be generated more accurately and quickly after receiving the task instruction, thereby reducing the power consumption of the headset.

[0185] The following describes the apparatus, device, storage medium, etc. corresponding to the automatic shutdown method of the headset provided in the present application. The specific implementation process is described above.

[0186] Fig.11 For a structural diagram of the automatic power-off device of the headset provided in the embodiment of the present application, please refer to Fig.11 , an automatic power-off device for headphones, applied to headphones, the headphones comprising: a sound pickup unit, the device comprising: an acquisition module 210 and an adjustment module 220;

[0187] An acquisition module 210, configured to acquire an audio signal collected by a sound pickup unit when an ear return function of the earphone is turned on, wherein the ear return function includes outputting an audio signal collected by the sound pickup unit;

[0188] The adjustment module 220 is used to determine an adjustment method for the power-off time of the earphone based on the target parameter of the audio signal.

[0189] Optionally, the adjustment module 220 is specifically used to determine whether to generate a reset signal based on the target parameters of the audio signal; when a reset signal is generated, the shutdown time of the headset is adjusted according to the reset signal; when a reset signal is not generated, the shutdown time of the headset is not adjusted.

[0190] Optionally, the adjustment module 220 is specifically configured to determine the loudness of the audio signal; and generate a reset signal when the loudness of the audio signal is greater than a target loudness threshold.

[0191] Optionally, the adjustment module 220 is specifically configured to determine whether a human voice exists in the audio signal when the loudness of the audio signal is greater than a target loudness threshold; if a human voice exists, generate a reset signal.

[0192] Optionally, the adjustment module 220 is specifically configured to determine a target time point at which the loudness of the audio signal is greater than a target loudness threshold, and determine a human voice detection time interval based on the target time point; and determine whether there is a human voice in the audio signal within the human voice detection time interval.

[0193] Optionally, the adjustment module 220 is specifically configured to determine frequency spectrum data corresponding to the audio signal within the human voice detection time interval; and determine whether there is human voice in the audio signal according to the frequency spectrum data.

[0194] Optionally, the adjustment module 220 is further specifically configured to determine the frequency of the audio signal; and generate a reset signal when the frequency of the audio signal is within a target frequency range.

[0195] Optionally, the adjustment module 220 is further specifically configured to determine a duration of the audio signal; and generate a reset signal when the duration of the audio signal is greater than a target time threshold.

[0196] Optionally, the adjustment module 220 is further configured to reset the current shutdown time of the headset to an initial shutdown time based on a reset signal, and when the shutdown time is 0, the headset automatically shuts down.

[0197] Optionally, the adjustment module 220 is further used to determine whether the headset receives a task instruction, where the task instruction includes at least one of the following: an audio playback instruction, a key instruction, an incoming call instruction, or a talk instruction; and generate a reset signal based on the received task instruction.

[0198] In an automatic power-off device for headphones provided in an embodiment of the present application, when the ear return function of the headphones is turned on, the audio signal collected by the sound pickup unit can be obtained, and the ear return function includes outputting the audio signal collected by the sound pickup unit; and determining the adjustment method of the shutdown time of the headphones based on the target parameters of the audio signal. Among them, when the ear return function is turned on, it can be more accurately determined whether the shutdown time of the headphones needs to be adjusted based on the target parameters of the audio signal actually collected, so that the headphones with the ear return function can be shut down in time during use, thereby reducing the power consumption of the headphones.

[0199] The embodiments of this application are Fig.12 In the figure, the memory and the processor are connected by a bus, and the bus is represented by a thick line in the figure. The connection between other components is only for schematic illustration and is not limited. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0200] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0201] In the embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory in the embodiment of the present application may also be a circuit or any other device that can implement a storage function, for storing program instructions and / or data.

[0202] Fig.12 For a schematic diagram of the structure of the terminal device provided in the embodiment of the present application, please refer to Fig.12 In another aspect of an embodiment of the present application, a terminal device is provided, the terminal device includes a processor 310 and a memory 320, the memory 320 stores a computer program, and the computer program is executed by the processor 310 to implement a method for automatically shutting down the headset.

[0203] Optionally, the terminal device may be the above-mentioned earphone.

[0204] In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is executed by a processor to implement a method for automatically shutting down headphones.

[0205] Optionally, an embodiment of the present application also provides a computer program product, which stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement all or part of the steps corresponding to the methods described in the above embodiments.

[0206] It should be noted that: when the device provided in the above embodiment performs the control of the terminal device, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0207] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0208] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0209] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for automatically shutting down a headset, characterized in that: Applied to earphones, the earphones comprising: a sound pickup unit, the method comprising: When the earphone return function is turned on, obtaining the audio signal collected by the sound pickup unit, wherein the earphone return function includes outputting the audio signal collected by the sound pickup unit; A method for adjusting the off time of the earphone is determined based on the target parameter of the audio signal.

2. The method for automatically shutting down headphones according to claim 1, characterized in that: The method of adjusting the power-off time of the headset based on the target parameter of the audio signal includes: determining whether to generate a reset signal based on a target parameter of the audio signal; When the reset signal is generated, adjusting the power-off time of the headset according to the reset signal; In the case where the reset signal is not generated, the power-off time of the headset is not adjusted.

3. The method for automatically shutting down headphones according to claim 2, characterized in that: The determining whether to generate a reset signal based on the target parameter of the audio signal comprises: determining the loudness of the audio signal; In the case where the loudness of the audio signal is greater than a target loudness threshold, the reset signal is generated.

4. The method for automatically shutting down headphones according to claim 3, characterized in that: The step of generating the reset signal when the loudness of the audio signal is greater than a target loudness threshold comprises: When the loudness of the audio signal is greater than a target loudness threshold, determining whether there is a human voice in the audio signal; If human voice is present, the reset signal is generated.

5. The method for automatically shutting down headphones according to claim 4, characterized in that: The determining whether there is a human voice in the audio signal comprises: Determine a target time point at which the loudness of the audio signal is greater than the target loudness threshold, and determine a human voice detection time interval based on the target time point; Determine whether there is a human voice in the audio signal within the human voice detection time interval.

6. The method for automatically shutting down headphones according to claim 5, characterized in that: The determining whether there is a human voice in the audio signal within the human voice detection time interval comprises: Determine frequency spectrum data corresponding to the audio signal within the human voice detection time interval; Determine whether there is a human voice in the audio signal according to the frequency spectrum data.

7. The method for automatically shutting down headphones according to claim 2, characterized in that: The determining whether to generate a reset signal based on the target parameter of the audio signal comprises: determining a frequency of the audio signal; In case the frequency of the audio signal is within the target frequency interval, a reset signal is generated.

8. The method for automatically shutting down headphones according to claim 2, characterized in that: The determining whether to generate a reset signal based on the target parameter of the audio signal comprises: determining a duration of the audio signal; In case the duration of the audio signal is greater than a target time threshold, a reset signal is generated.

9. The method for automatically shutting down a headset according to any one of claims 2 to 8, characterized in that: The adjusting the power-off time of the headset according to the reset signal includes: Based on the reset signal, the current shutdown time of the headset is reset to the initial shutdown time, and when the shutdown time is 0, the headset is automatically shut down.

10. The method for automatically shutting down a headset according to any one of claims 2 to 8, characterized in that: Before adjusting the power-off time of the headset according to the reset signal, the method further includes: Determining whether the headset receives a task instruction, wherein the task instruction includes at least one of the following: an audio playback instruction, a key instruction, an incoming call instruction, or a call instruction; Based on the received task instruction, the reset signal is generated.

11. An automatic power-off device for headphones, characterized in that: Applied to earphones, the earphones include: a sound pickup unit, the device includes: an acquisition module and an adjustment module; The acquisition module is used to acquire the audio signal collected by the sound pickup unit when the ear return function of the headset is turned on, and the ear return function includes outputting the audio signal collected by the sound pickup unit; The adjustment module is used to determine an adjustment method for the power-off time of the earphone based on a target parameter of the audio signal.

12. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is executed by the processor to implement the automatic shutdown method of the headset as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the automatic shutdown method of the headset as described in any one of claims 1-10.