Earphone box entry detection method and device and storage medium
Through the use of microphone in TWS headphones to obtain sound signals, the principle of acoustic detection is used to determine the state of the headset into the box, solving the problem of complexity and cost of sensor increases caused by increased sensors in the existing technology, and achieve a simple and economic box test.
Patent Information
- Application Number
- CN202310920891.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-25
- Publication Date
- 2025-01-28
AI Technical Summary
Existing TWS headphone in-box detection methods require additional sensors, resulting in complex structures and high cost.
Obtain the sound signal through the microphone in the headset, and use the principle of acoustic detection to determine whether the headset is in the box through the pre -set sound signal matching.
A simple design and low -cost headphones are detected, and the needs of additional sensors and noise signals are avoided, and the user experience is improved.
Smart Images

Figure CN119383507A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of TWS earphone box entry detection, and in particular to an earphone box entry detection method, device and storage medium. Background Art
[0002] With the development of wireless communication technology, the application of wireless headphones with intelligent and wireless trends is becoming more and more widespread. Among them, True Wireless Stereo (TWS) Bluetooth headphones are a typical type of wireless headphones. TWS headphones consist of two parts: headphones and headphone boxes. Usually, the charging box needs to detect the entry of the headphones in time, then charge the headphones, and perform a series of information interactions.
[0003] Currently, most earphone boxes require additional sensors to determine whether the earphones are in the box.
[0004] However, adding additional sensors may lead to complex structure and higher cost. Summary of the invention
[0005] In order to overcome the problems existing in the related art, the present disclosure provides a method, device and storage medium for detecting whether an earphone is inserted into a box.
[0006] According to a first aspect of an embodiment of the present disclosure, a method for detecting whether an earphone is in a box is provided, comprising: acquiring a sound signal picked up by the earphone; and determining that the earphone is in a box-in state if it is determined that the sound signal matches a sound signal pre-set in the earphone.
[0007] In one embodiment, the preset sound signal includes at least one of the following: a sound signal determined based on a collision between the earphone and the earphone box; a sound signal of knocking on the earphone box; a sound signal of a user issuing a target instruction.
[0008] In one embodiment, determining that the sound signal matches the sound signal preset in the headset includes: in response to detecting that an attribute of the sound signal meets a preset attribute condition, determining that the sound signal matches the sound signal preset in the headset; the attribute includes at least one of the following: duration, loudness, and frequency.
[0009] In one embodiment, after detecting that the attribute of the sound signal meets the preset attribute condition, the method also includes: decoding the sound signal to obtain the encoding information of the sound signal; if the encoding information matches the target encoding information, it is determined that the sound signal matches the sound signal preset in the headset, and the preset sound signal is obtained by encoding the target encoding information.
[0010] In one implementation, acquiring the sound signal picked up by the earphone includes: acquiring the sound signal picked up by a target microphone, wherein the target microphone includes: a microphone whose power consumption during data processing is lower than a threshold.
[0011] In one embodiment, after determining that the earphone is in a box-entering state and performing a box-entering operation, the method further includes: in response to the earphone establishing a charging connection with the earphone box, sending a charging request to the earphone box, wherein the charging request is used to request the earphone box to charge the earphone.
[0012] According to a second aspect of an embodiment of the present disclosure, there is provided an earphone box-entry detection device, comprising: an acquisition unit, for acquiring a sound signal picked up by the earphone; a processing unit, for determining that the earphone is in a box-entry state and performing a box-entry operation if it is determined that the sound signal matches a sound signal preset in the earphone, and the preset sound signal is a sound signal determined based on a collision between the earphone and the earphone box.
[0013] In one embodiment, the preset sound signal includes at least one of the following: a sound signal determined based on a collision between the earphone and the earphone box; a sound signal of knocking on the earphone box; a sound signal of a user issuing a target instruction.
[0014] In one embodiment, the processing unit determines that the sound signal matches the sound signal pre-set in the headset in the following manner: in response to detecting that an attribute of the sound signal meets a preset attribute condition, determining that the sound signal matches the sound signal pre-set in the headset; the attribute includes at least one of the following: duration, loudness and frequency.
[0015] In one embodiment, the processing unit is also used to: after detecting that the attribute of the sound signal meets the preset attribute condition, decode the sound signal to obtain the encoding information of the sound signal; if the encoding information matches the target encoding information, it is determined that the sound signal matches the sound signal preset in the headset, and the preset sound signal is encoded by the target encoding information.
[0016] In one implementation, the acquisition unit acquires the sound signal picked up by the earphone in the following manner: acquiring the sound signal picked up by a target microphone, wherein the target microphone includes: a microphone whose power consumption during data processing is lower than a threshold.
[0017] In one embodiment, the processing unit is also used for: after determining that the earphone is in the box-inserted state and performing the box-inserted operation, in response to the earphone establishing a charging connection with the earphone box, sending a charging request to the earphone box, wherein the charging request is used to request the earphone box to charge the earphone.
[0018] According to a third aspect of an embodiment of the present disclosure, there is provided an earphone, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the earphone entry detection method described in the first aspect or any one of the implementations of the first aspect.
[0019] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, wherein instructions are stored in the storage medium. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the earphone entry detection method described in the first aspect or any one of the embodiments of the first aspect.
[0020] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by acquiring the sound signal picked up by the earphone, if it is determined that the sound signal matches the sound signal pre-set in the earphone, it is determined that the earphone is in the box-entering state, and the box-entering operation is performed. The sound signal pre-set by the present disclosure is a sound signal determined based on the collision between the earphone and the earphone box. By using the principle of acoustic detection in the present disclosure, the detection of the entry of wireless earphones into the box is not only simple in design and low in cost, but also does not require additional noise, thereby improving the user experience.
[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0023] Figure 1 The figure is a flow chart of a method for detecting when an earphone is inserted into a box according to an exemplary embodiment.
[0024] Figure 2 The figure is a schematic diagram of a method for detecting whether an earphone is inserted into a box according to an exemplary embodiment.
[0025] Figure 3 The present invention is a flowchart showing a method of determining that a wireless headset is in a box-entered state if a sound signal matches a sound signal preset in the wireless headset according to an exemplary embodiment.
[0026] Figure 4The figure is a flow chart of a method for detecting when an earphone is inserted into a box according to an exemplary embodiment.
[0027] Figure 5 The figure is a flow chart of a method for detecting when an earphone is inserted into a box according to an exemplary embodiment.
[0028] Figure 6 The figure is a block diagram of a device for detecting earphones entering a box according to an exemplary embodiment.
[0029] Figure 7 The present invention is a block diagram of a device for detecting earphone in-box according to an exemplary embodiment. DETAILED DESCRIPTION
[0030] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0031] With the development of wireless communication technology, the application of wireless headphones with intelligent and wireless trends is becoming more and more widespread. Among them, True Wireless Stereo (TWS) Bluetooth headphones are a typical type of wireless headphones. TWS headphones consist of two parts: headphones and headphone boxes. Usually, the charging box needs to detect the entry of the headphones in time, then charge the headphones, and perform a series of information interactions.
[0032] At present, most earphone boxes require additional sensors, such as: Hall switch detection, acceleration sensor detection, light sensor detection, etc. There is even a method of detecting using the principle of capacitance and current to determine whether the earphones are in the box.
[0033] However, the above detection method has the following problems:
[0034] 1. Hall principle detection is currently the more mainstream detection method. This method is relatively reliable, but it requires additional Hall switches and additional magnets in the box. The design is complex and the cost is high.
[0035] 2. Due to the principle of light sensitivity changes, it is easy to misjudge scenes such as occlusion, resulting in a poor user experience.
[0036] 3. The acceleration sensing principle has a difficult tolerance for false triggering and can easily lead to misjudgment in some scenarios, resulting in a poor user experience.
[0037] 4. Capacitor-current principle, circuit design is more complicated and the cost is higher.
[0038] In view of this, the embodiment of the present disclosure provides a method for detecting earphones entering a box. In the method, no additional sensors or noise signals are required. The method only needs to use the microphone MIC in the earphone to pick up the sound and combine the algorithm to determine whether the earphones are in the box. The method for detecting earphones entering a box provided in the embodiment of the present disclosure not only achieves a simple design and low cost, but also has a relatively simple algorithm control.
[0039] Figure 1 is a flow chart of a method for detecting earphones entering a box according to an exemplary embodiment. Figure 1 As shown, the earphone entry detection method is used in TWS earphones and includes the following steps.
[0040] In step S101, a sound signal picked up by an earphone is acquired.
[0041] In step S102, if it is determined that the sound signal matches the sound signal preset in the earphone, it is determined that the earphone is in the box-entered state.
[0042] In one embodiment of the present disclosure, the pre-set sound signal includes at least one of the following: a sound signal determined based on the collision between the earphone and the earphone box, a sound signal of knocking on the earphone box, and a sound signal of the user issuing a target instruction. For the convenience of subsequent description, the various embodiments of the present disclosure are mainly described by taking the sound signal determined based on the collision between the earphone and the earphone box as an example. It is understandable that the sound signal picked up by the earphone in the earphone box detection method provided in the present disclosure is not limited to this.
[0043] In one embodiment of the present disclosure, a sound signal picked up by a target microphone is obtained, wherein the target microphone includes: a microphone whose power consumption during data processing is lower than a threshold.
[0044] In another embodiment of the present disclosure, a sound signal picked up by a target microphone in a headset is obtained. The target microphone may be a smart microphone (SmartMIC). In addition, the power consumption of the target microphone during data processing is lower than a threshold, such as a smart microphone with processing capability of a low-power digital signal processing (DSP) chip.
[0045] In one embodiment of the present disclosure, the sound signal can be picked up and the algorithm can be processed by a DSP chip. The sound signal can be picked up by a target microphone with a DSP chip in the headset, and the picked up sound signal can be processed according to the DSP chip. When the processed sound signal matches the sound signal pre-set in the headset, it can be determined that the headset is in the box state.
[0046] In one embodiment of the present disclosure, the collision sound refers to the collision noise signal generated by the accelerated contact between the magnet at the head of the wireless headset and the magnet set in the headset box, which is an instantaneous sound. The sound is used to detect the box entry operation. In particular, this noise signal is very obvious in terms of time, so that it can be clearly distinguished from other noises in terms of the loudness of the sound signal, the size of the sound signal, the frequency of the sound signal, etc. There are obvious characteristics to compare with other noises.
[0047] In one embodiment of the present disclosure, the noise signal may be understood as a signal generated by different objects, which is a useless sound signal for human ears.
[0048] However, currently, in order to use acoustics to detect whether the earphones are in the box, a speaker needs to be added to the earphone box. When the earphone box is closed, it is opened, which proves that the user wants to put the wireless earphones in the earphone box, and the earphone box starts the speaker installed in the earphone box. A certain preset audio signal is continuously played through the speaker. When the wireless earphones are put into the earphone box, the audio signal emitted by the earphone box is obtained through the microphone of the earphone, and then compared with the preset audio signal in the earphone. If the audio signal emitted by the earphone box is the same as the preset audio signal in the earphone, it is determined that the wireless earphone has completed the box insertion operation. In this way, a speaker needs to be separately set in the earphone box, which is not only costly and complicated in terms of process, but also requires the addition of additional noise signals, which greatly reduces the user experience.
[0049] In the headphone box detection method of the disclosed embodiment, there is no need to set additional noise signals through the headphone box, and only the target microphone of the wireless headphone needs to pick up the collision sound signal between the wireless headphone and the headphone box or the sound signal of knocking on the headphone box, the sound signal of the user issuing a target instruction, etc. The sound signal picked up by the microphone of the headphone is compared with the sound signal pre-set in the wireless headphone to determine whether the wireless headphone is in the box state.
[0050] It is understandable that the sound signal pre-set in the embodiment of the present disclosure is a signal that can be obtained without improving the structure of the earphone box.
[0051] Among them, the collision sound signal picked up by the target microphone of the wireless headset is compared with the preset signal. The sound signal preset in the wireless headset is an experimental value, which is obtained by colliding the wireless headset with the headset box many times. The sound after the collision obtained after many experiments is very stable, and the sound signal after the collision obtained has obvious characteristics. Figure 2As shown, from the time domain, it can be seen that the sound signal determined by the collision between the wireless headset and the headphone box has obvious characteristics, which can be distinguished from the noise signals in other scenes, and the consistency is very good. Whether it is through algorithm adjustment or machine learning, it is easy to achieve the detection of the headset entering the box by this collision signal. Therefore, the sound after the collision can be used as the pre-set sound of the wireless headset, and compared one by one with the sound signal picked up by the target microphone of the wireless headset. When the sound signal received by the target microphone of the wireless headset has the same characteristics as the sound signal pre-set by the wireless headset, the wireless headset can be judged as the box entry operation. If the sound signal does not match the pre-set sound signal in the headset, the headset is not in the box state.
[0052] Through the above embodiment, it is only necessary to detect the earphones entering the box through the principle of acoustic detection, without adding additional sensors or additional noise signals, which realizes a simple design, low cost, and relatively simple algorithm control. The sound signal determined for the earphones and earphone boxes with the same serial number is single, and therefore the method of detecting the earphones entering the box has high reliability.
[0053] Figure 3 is a flowchart showing a method of determining that a wireless headset is in a box-entered state if a sound signal matches a sound signal preset in the wireless headset according to an exemplary embodiment, such as Figure 3 As shown, the following steps are included.
[0054] In step S201, in response to detecting that the attribute of the sound signal meets the preset attribute condition.
[0055] In step S202, it is determined that the sound signal matches a sound signal preset in the earphone.
[0056] In an embodiment of the present disclosure, the attribute includes at least one of the following: duration, loudness, and frequency.
[0057] In one embodiment of the present disclosure, the encoded information obtained by decoding the sound signal includes: pitch, timbre, and loudness. Any complex sound can be described by these three attributes, which correspond to three physical quantities of sound pressure: frequency, phase, and amplitude.
[0058] In one embodiment of the present disclosure, the coding information of the sound signal can be divided into the time domain and the frequency domain. Among them, in the algorithm for detecting whether the earphone is in the box, the specific implementation process is: from the time domain, the duration of the sound and the loudness of the sound, where the loudness of the sound can also be understood as the amplitude spanned by the sound signal, are all the biggest features in the time domain. From the frequency domain, the earphone continuously picks up different sounds from a certain frequency to a certain frequency through the target microphone, and the frequency span is different.
[0059] In one embodiment of the present disclosure, the serial number of the earphone box is consistent with the serial number of the wireless earphone based on the collision between the wireless earphone and the earphone box.
[0060] For example, when the serial number of the earphone box is consistent with the serial number of the wireless earphone, the wireless earphone and the matching earphone box are made of the same material, such as material A. Furthermore, when the earphone made of material A collides with an object made of material B, or collides with an object made of material C or other objects made of material A that are not matched with the wireless earphone, the frequencies of the sounds of the earphone colliding with objects of different materials picked up by the target microphone of the earphone are different. In other words, in the earphone box detection method provided by the present invention, the frequency corresponding to the pre-set sound signal determined based on the sound of the wireless earphone colliding with the matching earphone box is unique. The frequency characteristic mainly determines the pitch of the sound.
[0061] In one embodiment of the present disclosure, the pre-set sound signal has a tolerance, and the tolerance range is relatively wide. In the production process of earphones and earphone boxes, there may be production tolerances, and therefore, the collision sounds of different earphones and their respective matching earphone boxes picked up multiple times may be different. For example, the duration, amplitude and frequency of the collision sound signals of individual earphones may vary to a certain extent. Therefore, the present disclosure sets a reasonable tolerance range for the pre-set sound signal to lock the sound signals generated by the collisions between different earphones and their respective matching earphone boxes.
[0062] In another embodiment of the present disclosure, the preset sound signal is an experimental value, which is set in the following two ways: First, a segment of audio signal is measured through a large amount of experimental data, and then the collision sound generated by the earphone and the earphone box is identified according to the self-learning method. Second, the upper and lower limits are set, and the threshold is set relatively broadly. As long as the time and height corresponding to the picked-up sound signal are within the range of this threshold, the sound signal can be considered to be the collision sound generated by the earphone and the earphone box. Among them, the upper and lower limits are set by the algorithm, and the algorithm goes through a continuous self-learning stage, which helps to improve the recognition efficiency, and the probability of false detection and missed detection is small.
[0063] In the current technology, only when the sound signal picked up by the microphone is basically consistent with the preset sound signal, can it be judged that the earphone is in the box, and there is no misjudgment, misoperation, etc., and the noise signal picked up by the microphone is an additional audio signal. The earphone box detection method provided by the present disclosure needs to match the sound signal picked up by the earphone microphone, detect the duration, amplitude and other characteristics of the picked up sound signal, and after the sound signal is converted into frequency, it is within the tolerance range of the preset sound signal, so that it can be judged in real time that the earphone has been put into the earphone box.
[0064] Through the embodiments provided by the present disclosure, the acoustic recording device MIC inside the earphone can be fully utilized without the need for additional sensors, which can effectively save the stacking space inside the earphone. In addition, since the present disclosure saves additional sensor modules, it can save the cost of developing additional modules for the project and reduce the complexity of assembly production.
[0065] Figure 4 is a flow chart of a method for detecting earphones entering a box according to an exemplary embodiment. Figure 4 As shown, the following steps are included.
[0066] In step S301, it is detected that the attribute of the sound signal meets the preset attribute condition.
[0067] The specific implementation of step S301 can be found in Figure 3 The specific implementation of step S201 will not be explained here.
[0068] In step S302, the sound signal is decoded to obtain coding information of the sound signal.
[0069] In step S303, if the coding information matches the target coding information, it is determined that the sound signal matches the sound signal preset in the earphone.
[0070] In an embodiment of the present disclosure, the preset sound signal is obtained by encoding the target encoding information.
[0071] In one embodiment of the present disclosure, it is determined whether the encoding information obtained by decoding the sound signal matches the target encoding information. Since the preset sound signal is obtained by encoding the sound signal according to the target encoding information, the earphone pre-stores the target encoding information and the preset sound signal obtained by encoding based on the target encoding information.
[0072] In one embodiment of the present disclosure, after the wireless headset obtains the sound signal, the sound signal is decoded. If the obtained coding information does not contain the target coding information, it is determined that the sound signal is not a sound signal for box entry detection. If the obtained coding information contains coding information, it can be determined whether the sound signal is used for box entry detection by judging whether the coding information matches the target coding information.
[0073] In one embodiment of the present disclosure, after detecting that the attribute of the sound signal meets the preset attribute condition, the sound signal is decoded to obtain the corresponding coding information, and then the coding information is compared with the target coding information to see whether it matches. If the coding information matches the target coding information, it is determined that the sound signal matches the sound signal preset in the headset.
[0074] In another embodiment of the present disclosure, the DSP chip can be used to decode the sound signal picked up by the target microphone and encode the target coding information to obtain a preset sound signal. Not only is the implementation method simple, but the cost is low and the recognition reliability is high.
[0075] In yet another embodiment of the present disclosure, a usage state of the wireless headset is determined, where the usage state includes a wearing state and a non-wearing state.
[0076] In one embodiment of the present disclosure, after the target microphone in the earphone acquires an audio signal, the picked-up sound signal needs to be processed. When the user takes the earphone off the ear, the earphone picks up the sound signal generated by the surrounding environment. For example, when the user is wearing the earphone, the earphone accidentally hits the earphone against a table or wall. At this moment, the sound of the earphone colliding with other objects will be generated. The earphone will also pick up the sound signal and compare it with the pre-set sound signal. When the sound signal generated by the collision between the earphone and other objects other than the earphone box is detected to be different from the pre-set sound signal, such as the duration of the sound signal, the amplitude and other factors do not match.
[0077] In the above embodiment, since the wireless earphone and the earphone box are matching products, the materials and structures between the two are fixed, so the frequency of the collision sound generated by the wireless earphone and the earphone box is also fixed. The present disclosure provides a method for detecting whether the earphone is in the box, without adding additional noise signals, and only needs to use the collision sound generated by the wireless earphone and the earphone box as a basis for determining whether the earphone is in the box.
[0078] Figure 5 is a flow chart of a method for detecting earphones entering a box according to an exemplary embodiment. Figure 5 As shown, the following steps are included.
[0079] In step S401, it is determined that the earphone is in a box-inserted state, and an inserting operation is performed.
[0080] In step S402, in response to the earphone establishing a charging connection with the earphone box, a charging request is sent to the earphone box.
[0081] In one embodiment of the present disclosure, the charging request is used to request the earphone box to charge the earphone.
[0082] In one embodiment of the present disclosure, for example, there is an earphone box and a wireless Bluetooth headset. The earphone box is in an open state. During the process of opening the earphone box, the earphone box enters a working state. During the process of taking the wireless Bluetooth headset off the user's ear, it is equivalent to being in a working state, and the target microphone inside the wireless Bluetooth headset is also in a powered-on state. When the user puts the wireless Bluetooth headset into the earphone box, due to the mutual attraction between the magnets between the headset and the earphone box, an impact sound, such as a "pop", is generated, and its duration is short, about a few milliseconds.
[0083] In one embodiment of the present disclosure, the earphone picks up the impact sound generated by the internal target microphone, wherein the earphone is still powered on at this time. When the impact sound picked up by the target microphone is compared with the preset sound signal, if the preset sound signal is satisfied, it can be proved that the earphone is in the earphone box.
[0084] In one embodiment of the present disclosure, the earphone establishes a charging connection with the earphone box, and the connection can be established by contacting the contact point at the bottom of the earphone with the charging magnetic needle in the earphone box. On this basis, the earphone box can be informed of the fact that the earphone has entered the earphone box through the charging contact piece in the earphone box for charging the earphone, and the earphone box supplies power to the earphone, and the earphone is in a shutdown state.
[0085] In another embodiment of the present disclosure, a charging connection is established between the earphone and the earphone box, which is convenient for reminding the earphone box that the earphone is in the box and stopping the power-on state of the earphone, that is, disconnecting the connection between the earphone and the connected device, and powering the earphone through the earphone box, which can reduce the power consumption of the earphone and avoid unnecessary power consumption.
[0086] In one embodiment of the present disclosure, by collecting a large amount of experimental data, the wireless headset continuously optimizes the tolerance of the preset sound signal through self-learning, such as the loudness, timbre, etc. The timbre can reflect the resonant frequency, that is, the different proportions of harmonic components when the headset collides with objects of different materials, resulting in different sounds.
[0087] Among them, in another embodiment of the present disclosure, the self-learning process can be understood as a product update and iteration process. Contemporary headphones can pre-set a tolerance for sound signals, detect misjudgment data in the feedback data, such as data collected before the headphones are turned off, and modify the pre-set tolerance for sound signals based on the data, so as to reduce misjudgment in the next generation of products and improve the user experience.
[0088] In one embodiment of the present disclosure, the process of earphone self-learning can be self-learning by the earphone itself during use, but the continuous self-learning process will consume a lot of power consumption of the earphone. Therefore, with regard to the self-learning process, the embodiment of the present disclosure is more inclined to complete the self-learning process before the product leaves the factory. In other words, the tolerance of the sound signal of the contemporary earphone is set by self-learning with a large amount of data from the previous generation. After leaving the factory, the preset sound signal in the earphone remains unchanged. Through continuous updating and iteration, the existence of errors is continuously reduced.
[0089] In one embodiment of the present disclosure, the left and right wireless earphones do not affect each other, and there is no interaction between them. For example, when it is detected that the earphone entering the earphone box is a wireless earphone for the left ear, the contact chip of the wireless earphone for the left ear can inform the earphone box that the state of the wireless earphone for the left ear is not worn and is in the box state, after which the wireless earphone for the left ear stops working, and the earphone box supplies power to the wireless earphone for the left ear. However, in this process, the wireless earphone for the right ear is not affected.
[0090] Based on the same concept, an embodiment of the present disclosure also provides a device for detecting whether an earphone has entered a box.
[0091] It is understandable that in order to realize the above functions, the earphone box detection device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0092] Figure 6 FIG. 1 is a block diagram of a headphone box detection device 100 according to an exemplary embodiment. Figure 3 The device 100 includes an acquisition unit 101 and a processing unit 102.
[0093] The acquisition unit 101 is used to acquire the sound signal picked up by the earphone.
[0094] The processing unit 102 is used to determine that the earphone is in the box-inserted state and perform the box-insertion operation if it is determined that the sound signal matches a preset sound signal in the earphone, and the preset sound signal is a sound signal determined based on the collision between the earphone and the earphone box.
[0095] In one implementation, the acquisition unit 101 is used to acquire a sound signal picked up by a target microphone, wherein the target microphone includes: a microphone whose power consumption during data processing is lower than a threshold.
[0096] In one implementation, the processing unit 102 is configured to determine that the sound signal matches a preset sound signal in the headset in response to detecting that an attribute of the sound signal meets a preset attribute condition; the attribute includes at least one of the following: duration, loudness, and frequency.
[0097] In one embodiment, the processing unit 102 is also used to decode the sound signal to obtain the encoding information of the sound signal after detecting that the attributes of the sound signal meet the preset attribute conditions; if the encoding information matches the target encoding information, it is determined that the sound signal matches the sound signal preset in the headset, and the preset sound signal is encoded for the target encoding information.
[0098] In one embodiment, the processing unit 102 is further used to determine that the earphone is in a box-inserted state, and after performing the box-inserting operation, in response to the earphone establishing a charging connection with the earphone box, send a charging request to the earphone box, wherein the charging request is used to request the earphone box to charge the earphone.
[0099] In one embodiment, the preset sound signal includes at least one of the following: a sound signal determined based on a collision between the earphone and the earphone box; a sound signal of knocking on the earphone box; a sound signal of a user issuing a target instruction.
[0100] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0101] Figure 7 1 is a block diagram of an apparatus 200 for detecting earphone in-box according to an exemplary embodiment. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0102] Reference Figure 7 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0103] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0104] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0105] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0106] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0107] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0108] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0109] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0110] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0111] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0112] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0113] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0114] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0115] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0116] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0117] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0118] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A method for detecting earphones entering a box, characterized in that: include: Get the sound signal picked up by the earphone; If it is determined that the sound signal matches the sound signal preset in the earphone, it is determined that the earphone is in the box-entered state.
2. The method according to claim 1, characterized in that The preset sound signal includes at least one of the following: A sound signal determined based on the collision between the earphone and the earphone box; A sound signal of knocking on the earphone box; The user issues an audible signal for the target command.
3. The method according to claim 1 or 2, characterized in that: The determining that the sound signal matches a sound signal preset in the headset includes: In response to detecting that the attribute of the sound signal meets a preset attribute condition, determining that the sound signal matches a sound signal preset in the headset; The attribute includes at least one of: duration, loudness, and frequency.
4. The method according to claim 3, characterized in that After detecting that the attribute of the sound signal meets the preset attribute condition, the method further includes: Decoding the sound signal to obtain coding information of the sound signal; If the coding information matches the target coding information, it is determined that the sound signal matches the sound signal preset in the headset, and the preset sound signal is obtained by encoding the target coding information.
5. The method according to claim 1, characterized in that The step of obtaining the sound signal picked up by the earphone includes: A sound signal picked up by a target microphone is obtained, wherein the target microphone includes: a microphone whose power consumption during data processing is lower than a threshold.
6. The method according to claim 1, characterized in that After determining that the earphone is in the box-entered state, the method further includes: In response to the earphone establishing a charging connection with the earphone box, a charging request is sent to the earphone box, where the charging request is used to request the earphone box to charge the earphone.
7. A device for detecting earphones entering a box, characterized in that: include: An acquisition unit, used to acquire a sound signal picked up by the earphone; The processing unit is configured to determine that the earphone is in the box-entered state if it is determined that the sound signal matches a sound signal preset in the earphone.
8. The device according to claim 7, characterized in that The preset sound signal includes at least one of the following: A sound signal determined based on the collision between the earphone and the earphone box; A sound signal of knocking on the earphone box; The user issues a sound signal of a target command; and / or The processing unit determines that the sound signal matches the sound signal preset in the headset in the following manner: In response to detecting that the attribute of the sound signal meets a preset attribute condition, determining that the sound signal matches a sound signal preset in the headset; The attributes include at least one of: duration, loudness, and frequency; and / or The processing unit is further configured to decode the sound signal to obtain coding information of the sound signal after detecting that the attribute of the sound signal meets the preset attribute condition; If the coding information matches the target coding information, it is determined that the sound signal matches the sound signal preset in the headset, and the preset sound signal is obtained by encoding the target coding information; and / or The acquisition unit acquires the sound signal picked up by the earphone in the following manner: Acquiring a sound signal picked up by a target microphone, wherein the target microphone includes: a microphone whose power consumption during data processing is lower than a threshold; and / or The processing unit is also used for determining that the earphone is in the box-inserted state and after performing the box-inserting operation, in response to the earphone establishing a charging connection with the earphone box, sending a charging request to the earphone box, wherein the charging request is used to request the earphone box to charge the earphone.
9. A headset, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the earphone entry detection method described in any one of claims 1-6.
10. A storage medium, characterized in that: The storage medium stores instructions. When the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the earphone entry detection method described in any one of claims 1 to 6.