Headphones and Headphone Status Detection Methods
By using a sensing unit and a signal processor to determine the contact status of the earphones, the problem of wasted power when the earphones are not worn is solved, and effective status detection and power consumption management are achieved.
Patent Information
- Application Number
- CN202211641400.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2042-12-20
AI Technical Summary
Existing active noise cancellation systems continue to consume power when the user removes the headphones and cannot notify the system to prepare in advance, resulting in wasted power and an inability to effectively detect the headphone status to initiate pre-preparation.
The system uses a sensing unit and a signal processor to determine the contact status of the headphones. By playing audio signals of different frequencies and receiving reflected signals, it determines the wearing status of the headphones. This includes using a capacitive sensing circuit and a signal processor to determine the contact status and stop or issue code information to reduce accidental touches and power consumption.
It effectively judges the headphone status, reduces accidental touches of the sensing unit and overall power consumption, and ensures that the active noise cancellation system is activated in time when needed, avoiding power waste.
Smart Images

Figure CN115866473B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to headphone technology, and in particular to headphones and headphone status detection methods related to headphone wearing status detection. Background Technology
[0002] Noise sources in headphone products can be divided into two types. One is electrical noise caused by internal circuitry or external signals, which manufacturers can effectively suppress and eliminate through circuit design. The other type is so-called audio noise (ambient noise), which affects the user's listening comfort. To improve this ambient noise, active noise cancellation (ANC) is generally used. Traditional digital active noise cancellation systems sample ambient noise using a microphone, process the signal to generate a noise-canceling signal, and then emit an audio signal with the opposite phase to this noise through a speaker, thus canceling out the external ambient noise.
[0003] Typical active noise cancellation systems continuously monitor sound reaching the ear using a detection microphone located inside the earphone shell. The microphone's output signal is amplified, digitized by an analog-to-digital converter, and then sent to a digital noise cancellation processor (DNC processor). The signal from the music source is digitized by the analog-to-digital converter and then processed by a digital equalizer to obtain appropriate frequency characteristics. It then enters the DNC processor, which subtracts ambient noise from the music source signal and extracts the noise to be canceled. The extracted noise to be canceled undergoes phase inversion, and the processed signal is played back along with the music signal via a driver, thus canceling the noise before it reaches the ear.
[0004] Headphones with active noise cancellation systems typically require batteries or other power sources to operate. A common problem in this case is that if the user removes the headphones without turning them off, the battery continues to drain. Furthermore, it would be desirable to notify the active noise cancellation system in advance before the user puts the headphones on, allowing it to prepare for activation. Therefore, how to effectively detect the headphone's status is a topic that needs further research. Summary of the Invention
[0005] In view of this, some embodiments of the present invention provide an earphone and an earphone status detection method to improve the problems of the prior art.
[0006] Some embodiments of the present invention provide an earphone, the earphone including a first sound playback unit, a first microphone unit, a sensing unit, and a signal processor. The first sound playback unit is configured to perform: in response to receiving a plurality of code messages, playing a plurality of first audio signals corresponding to the code messages in a playback order; the sensing unit is configured to generate a sensing signal; and the signal processor is configured to perform: determining a contact state based on the sensing signal; in response to a no-contact state, sequentially transmitting the code messages; and determining the earphone wearing status based on a plurality of first time points at which the first microphone unit receives the first audio signals after their first reflection, wherein any two consecutively transmitted code messages correspond to different frequencies; and stopping the transmission of the code messages in response to a contact state of contact.
[0007] Some embodiments of the present invention provide a headphone state detection method applicable to a headphone. The aforementioned headphone includes a first sound playback unit, a first microphone unit, a sensing unit, and a signal processor. The headphone state detection method includes the signal processor performing the following steps: receiving a sensing signal generated by the sensing unit and determining a contact state based on the sensing signal; in response to a non-contact contact state, sequentially sending multiple code messages to the first sound playback unit, causing the first sound playback unit to play multiple first audio signals corresponding to the code messages in a playback order, and determining the headphone wearing status based on multiple first time points of the first audio signals received by the first microphone unit after the first reflection, wherein any two consecutively sent code messages correspond to different frequencies; and in response to a contact state of contact, stopping the sending of the code messages.
[0008] Some embodiments of the present invention provide an earphone, the earphone including a first sound playback unit, a first microphone unit, a sensing unit, and a signal processor. The first sound playback unit is configured to perform: in response to receiving test information, playing a test audio signal; the sensing unit is configured to generate a sensing signal; and the signal processor is configured to perform: determining a contact state based on the sensing signal, issuing test information in response to a non-contact state, and determining the state of the earphone based on the spectrum of the reflected test audio signal received by the first microphone unit.
[0009] Based on the above, some embodiments of the present invention provide an earphone and an earphone status detection method. When the sensing unit detects that the earphone is not in contact, the wearing status of the earphone is determined based on multiple first time points of the first audio signal received by the first receiving unit after the first reflection. When the earphone is in contact, the transmission of these code information is stopped. This can effectively determine the status of the earphone and reduce false touches of the sensing unit and the overall power consumption of the earphone. Some embodiments of the present invention provide an earphone whose status can be determined by the spectrum of the reflected test audio signal received by the first receiving unit.
[0010] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments, but this is not intended to limit the present invention. Attached Figure Description
[0011] Figure 1 This is a block diagram of an earphone system according to an embodiment of the present invention.
[0012] Figure 2 This is a schematic diagram illustrating the operation of an earphone according to an embodiment of the present invention.
[0013] Figure 3-1 This is a schematic diagram illustrating the operation of headphones according to an embodiment of the present invention.
[0014] Figure 3-2 This is a schematic diagram of a test audio signal illustrated according to an embodiment of the present invention.
[0015] Figure 3-3 This is a schematic diagram of a reflection test audio signal illustrated according to an embodiment of the present invention.
[0016] Figure 4 This is a schematic diagram illustrating the operation of headphones according to an embodiment of the present invention.
[0017] Figure 5 This is a block diagram of an earphone system according to an embodiment of the present invention.
[0018] Figure 6 This is a schematic diagram illustrating the operation of headphones according to an embodiment of the present invention.
[0019] Figure 7-1 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0020] Figure 7-2 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0021] Figure 8 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0022] Figure 9 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0023] Figure 10 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0024] Figure 11 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0025] Figure 12 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0026] Figure 13 This is a flowchart illustrating an earphone status detection method according to an embodiment of the present invention.
[0027] In the attached figures, the following labels are used:
[0028] 100, 500: Headphones
[0029] 101: Signal Processor
[0030] 102: First Sound Playback Unit
[0031] 103: First radio unit
[0032] 104: Sensing Unit
[0033] 201: Digital-to-Analog Converter
[0034] 202: Analog-to-Digital Converter
[0035] 203, 601: Objects
[0036] 301, 301': Earphone shell
[0037] 501: Second Sound Playback Unit
[0038] 502: Second radio unit
[0039] PR, PL, PR', PL': Path
[0040] M: Amplitude
[0041] f0, f1, f2, f3: Frequency values
[0042] S701~S705, S801, S901~S902, S1001~S1002, S1101~S1105, S1201~S1203, S1301~S1302: Steps Detailed Implementation
[0043] The foregoing and other technical contents, features, and effects of this invention will be clearly presented in the following detailed description of embodiments with reference to the accompanying drawings. The thickness or dimensions of the elements in the drawings are exaggerated, omitted, or generalized for the understanding and reading of those skilled in the art. The dimensions of each element are not exactly their actual dimensions and are not intended to limit the implementation of this invention. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in proportions, or adjustments to size, without affecting the effects and objectives achieved by this invention, should still fall within the scope of the technical content disclosed in this invention. The same reference numerals will be used to denote the same or similar elements in all the drawings. The term "connection" as used in the following embodiments can refer to any direct or indirect connection means.
[0044] Figure 1 This is a block diagram of an earphone system drawn according to an embodiment of the present invention. Please refer to... Figure 1 The earphone 100 includes a signal processor 101, a first sound playback unit 102, a first microphone unit 103, and a sensing unit 104. In this embodiment, the first sound playback unit 102 may be an existing speaker of the earphone, and the first microphone unit 103 may be a feedback microphone of an existing active noise cancellation system of the earphone. The sensing unit 104 is configured to generate a sensing signal, which reflects the contact state of the earphone 100.
[0045] Typically, the first sound playback unit 102 plays headphone audio signals, which can be generated by an audio source during audio playback on various devices, such as media players, computers, radios, mobile phones, CD players, or game consoles. For example, when a user connects headphones 100 to a portable media player playing a song selected by the user to receive headphone audio signals (e.g., the song being played by the portable media player), the first sound playback unit 102 outputs the acoustic signal of the headphone audio signal. The first radio unit 103 samples the output acoustic signal of the first sound playback unit 102 and the ambient acoustic signal at the first sound playback unit 102.
[0046] A sensing unit 104 is disposed at a fixed position on the earphone 100. The sensing unit 104 generates a sensing signal by contacting an object. The signal processor 101 receives the aforementioned sensing signal and determines the contact state of the earphone 100 based on the presence or content of the sensing signal. In other words, the signal processor 101 determines the contact state based on the aforementioned sensing signal. In some embodiments of the present invention, the sensing unit 104 is disposed at a position where the earphone 100 will be touched by a person when it is normally worn. In some embodiments of the present invention, the sensing unit 104 includes a capacitive sensing circuit. The aforementioned capacitive sensing circuit has two plates, one of which forms a ground layer, and the other plate includes a metal layer. The aforementioned metal layer and the aforementioned ground layer constitute a capacitor. According to the principle of capacitive sensing, when the metal layer is squeezed or comes into contact with a conductor (such as human skin), the voltage of the aforementioned capacitor will change. By detecting whether the aforementioned voltage changes and whether a sensing signal is generated, the signal processor 101 can determine and know whether the sensing unit 104 is in contact with an object, thereby determining and knowing the contact state of the earphone 100.
[0047] The signal processor 101 is configured to receive external commands and, according to time codes 1, 2, 3...M, edit and store audio at different frequencies as codes, as shown in Table (I), where M is a positive integer.
[0048]
[0049] Table (1)
[0050] In this context, the audio frequencies corresponding to the same time code are all different, and any two consecutively emitted audio frequencies are different. For example, in Table (I), the audio frequencies corresponding to time code 1A, 1B...1F are all different; any two consecutively emitted code information correspond to different audio frequencies, such as the frequencies corresponding to consecutively emitted code 1A and code 1B being 45kHz and 55kHz respectively, and the frequencies corresponding to consecutively emitted code 1F and code 2A being 95kHz and 45kHz respectively.
[0051] In this embodiment, the signal processor 101 receives external commands and, according to time codes 1, 2, 3…10, edits and stores audio frequencies of 45kHz, 55kHz, 65kHz, 75kHz, 85kHz, and 95kHz as codes 1A, 1B…10F. In this embodiment, the signal processor 101 also receives external commands to edit and store test signals. Test signals can have various forms. In some embodiments of the present invention, the test signal includes at least one single-frequency signal, where the aforementioned single-frequency signal refers to a single-frequency audio signal. The test signal includes audio signals of four single-frequency signals: 45kHz, 75kHz, 85kHz, and 95kHz. In some embodiments of the present invention, the test signal includes a continuous frequency signal.
[0052] In some embodiments, the frequencies corresponding to codes 1A, 1B...1F can be varied as needed and according to actual conditions (such as the applicable frequency range of the first sound playback unit 102). For example, the frequencies corresponding to codes 1A, 1B...1F can be 5kHz, 10kHz, 15kHz, 25kHz, 35kHz, and 45kHz. The test signal includes audio frequencies of 5kHz, 25kHz, and 45kHz.
[0053] In some embodiments, under certain triggering conditions (which will be further explained in later embodiments), the signal processor 101 generates and transmits code information 1A, 1B...10F according to default rules. For example, under certain triggering conditions, the signal processor 101 generates and transmits code information 1A, 1B...1F during the period corresponding to time code 1, generates and transmits code information 2A, 2B...2F during the period corresponding to time code 2, and so on, according to default rules. In some embodiments, after the signal processor 101 completes the transmission of codes 1A, 1B...10F (e.g., after transmitting code 10F), it will restart the transmission of codes 1A, 1B...10F. In some embodiments, after the signal processor 101 completes the transmission of codes 1A, 1B...10F (e.g., after transmitting code 10F), it will pause for a predetermined time before restarting the transmission of codes 1A, 1B...10F.
[0054] In some embodiments, the contents of codes 1A to 1F are the same as the contents of codes 2A to 2F, for example, codes 1A and 2A are the same code information at 45kHz, codes 1B and 2B are the same code information at 55kHz, and codes 1F and 2F are the same code information at 95kHz; and so on, the contents of codes 1A to 1F are the same as the contents of codes 10A to 10F; that is, the code information of the same frequency for codes at different times is the same. In some embodiments, the contents of codes 1A to 1F are different from the contents of codes 2A to 2F, for example, codes 1A and 2A are both 45kHz but their code information is different, codes 1B and 2B are both 55kHz but their code information is different, and codes 1F and 2F are both 95kHz but their code information is different; and so on, the contents of codes 1A to 1F are different from the contents of codes 10A to 10F; that is, the code information of the same frequency for codes at different times is different.
[0055] In some embodiments, the signal processor 101, under certain triggering conditions (which will be further described in later embodiments), issues test information of a test signal, wherein the aforementioned test information is information of at least one single-frequency signal in the test signal, which is stored and transmitted digitally.
[0056] Figure 2 This is a schematic diagram illustrating the operation of an earphone according to an embodiment of the present invention. Figure 3-1 This is a schematic diagram illustrating the operation of headphones according to an embodiment of the present invention. Figure 4 This is a schematic diagram illustrating the operation of headphones according to an embodiment of the present invention. Please also refer to... Figure 2 , 3-1 as well as Figure 4 The signal processor 101, the first sound playback unit 102, and the first microphone unit 103 are disposed inside the earphone shell 301. The sensing unit 104 is disposed on the earphone shell 301; when the earphone 100 is worn normally, the aforementioned position on the earphone shell 301 will be touched by the person. It should be noted that although... Figure 2 , Figure 3-1 The signal processor 101 is illustrated as being disposed within the left earphone housing 301, but in other embodiments, the signal processor 101 may be present in the earphone housings of the left ear, right ear, or both ears. Of course, although... Figure 2 , Figure 3-1 The sensing unit 104 is disposed on the earphone shells of both ears simultaneously. In other embodiments, the sensing unit 104 is disposed on the earphone shell of only one ear. This invention is not limited thereto.
[0057] Under certain triggering conditions, the signal processor 101 issues code information according to the aforementioned codes 1A, 1B...10F. The code information is converted into analog form by the digital-to-analog converter 201 and then transmitted to the first sound playback unit 102. Based on the received code information, the first sound playback unit 102 injects a corresponding audio signal into the headphone audio signal. For example, if the signal processor 101 issues code information corresponding to code 2A to the first sound playback unit 102, the first sound playback unit 102, upon receiving the code information corresponding to code 2A, will inject a 45kHz audio signal into the headphone audio signal. Under certain triggering conditions, the signal processor 101 issues test information for a test signal, where the test information is information about at least one single-frequency signal in the test signal. The test information is converted into analog form by the digital-to-analog converter 201 and then transmitted to the first sound playback unit 102. Based on the received test information, the first sound playback unit 102 injects a corresponding audio signal into the headphone audio signal, referred to as a test audio signal. For example, in some embodiments of the present invention, the test signal includes audio at 45kHz, 75kHz, 85kHz and 95kHz, and the test information includes audio at 45kHz, 75kHz, 85kHz and 95kHz. After receiving the test information, the first sound playback unit 102 will inject test audio signals containing 45kHz, 75kHz, 85kHz and 95kHz into the headphone audio signal.
[0058] Please see Figure 3-1 as well as Figure 4 The audio signal (e.g., the aforementioned 45kHz audio signal or audio signals containing 45kHz, 75kHz, 85kHz, and 95kHz injected by the first sound playback unit 102 based on test information) propagates along path PL and is reflected along path PR after encountering object 203. When the first sound receiving unit 103 samples the acoustic signal of the environment, it transmits the sampled acoustic signal to the signal processor 101 via analog-to-digital converter 202. The signal processor 101 detects the reflected audio signal from the acoustic signal of the environment from the first sound receiving unit 103 and obtains the time point at which the first sound receiving unit 103 receives the reflected audio signal.
[0059] Signal processor 101 obtains a time difference by comparing the time point when the audio signal emitted by the first sound playback unit 102 is detected with the time point when the signal processor 101 detects the reflected audio signal. Using the equation: distance = speed of sound time difference, signal processor 101 can obtain the sum of the distances between the first sound playback unit 102 and the object 203, and between the object 203 and the first microphone unit 103. Since the first sound playback unit 102 and the first microphone unit 103 are positioned at a fixed location on the headphones, signal processor 101 can obtain the distance between the headphones 100 and the object 203. For example, the first sound playback unit 102 and the first microphone unit 103 are positioned such that a predetermined distance between the first sound playback unit 102 and the object 203 is the same as a predetermined distance between the first microphone unit 103 and the object 203. In this case, the distance between the first sound playback unit 102 and the object 203 is the speed of sound time difference / 2. Furthermore, the distance between the headphones 100 and the object 203 can be set to the distance between the first sound playback unit 102 and the object 203.
[0060] For the test audio signal, the signal processor 101 detects the reflected test audio signal from the acoustic signal of the environment received by the first receiving unit 103. For ease of explanation, the reflected test audio signal is referred to as the reflected test audio signal. The signal processor 101 performs Fourier analysis on the detected reflected test audio signal to obtain its spectrum.
[0061] Figure 3-2 This is a schematic diagram of a test audio signal illustrated according to an embodiment of the present invention. Figure 3-3 This is a schematic diagram of a reflection test audio signal according to an embodiment of the present invention. Please also refer to... Figure 3-2 as well as Figure 3-3 In some embodiments of the present invention, the test signal includes audio frequencies of 45kHz, 75kHz, 85kHz, and 95kHz, and the amplitude of the audio at each frequency is the same. The test audio signal can be represented as... Figure 3-2 Where M represents the amplitude of the audio frequencies of 45kHz, 75kHz, 85kHz, and 95kHz, and f0, f1, f2, and f3 are the frequency values, respectively: f0 = 45kHz, f1 = 75kHz, f2 = 85kHz, and f3 = 95kHz. Figure 3-2 This is called the spectrum of the test audio signal. When the test audio signal is reflected by object 203, the amplitude of each frequency in the reflected test audio signal may change because the sound absorbing coefficient of each object may be different, and the sound absorbing coefficient of each object may also differ at different frequencies. By performing Fourier analysis on the reflected test audio signal, we can obtain... Figure 3-3 , Figure 3-3 The spectrum of the audio signal used for reflection testing is used. The signal processor 101 determines whether the object 203 is a human based on the amplitude of the single-frequency signals at different frequencies among four single-frequency signals (45kHz, 75kHz, 85kHz, and 95kHz) and the amplitude of the single-frequency signals corresponding to those frequencies in the spectrum of the audio signal used for reflection testing, thereby determining whether the earphone 100 is worn by a person. In some embodiments of the present invention, the signal processor 101 calculates the amplitude changes of the four single-frequency signals and determines whether the object 203 is a human based on these amplitude changes, thereby determining whether the earphone 100 is worn by a person.
[0062] by Figure 3-2 and Figure 3-3 For example, suppose that human skin has a worse absorption capacity for 75kHz audio than for 45kHz, 85kHz, and 95kHz, or that human skin has a better reflection capacity for 75kHz audio than for 45kHz, 85kHz, and 95kHz. Then, using the aforementioned reflection test audio signal, the signal processor 101 can compare the attenuation amplitude of each frequency of the reflection test audio signal, calculate the attenuation amplitude of f_1 after reflection as m1, and the attenuation amplitudes of frequency values f0, f2, and f3 after reflection as m0, m2, and m3, respectively. m1 is less than a preset attenuation threshold, while m0, m2, and m3 are all greater than the preset attenuation threshold, and thus exhibit... Figure 3-2 The signal processor 101 can use the frequency amplitude distribution to determine whether the headphones 100 are worn by a person. Continuing with the above example, suppose that the absorption capacity of metal for 45kHz, 75kHz, 85kHz, and 95kHz is worse than that of the human body for these frequencies, or that the reflection capacity of metal for 45kHz, 75kHz, 85kHz, and 95kHz is better than that of human skin for these frequencies. Then, if the headphones 100 are near or placed on a metal surface, the attenuation amplitudes of the reflected audio signals f0, f1, f2, and f3 will be approximately the same and all less than the aforementioned preset attenuation threshold. The signal processor 101 can then determine that the headphones 100 are not worn by a person, but are near or placed on a non-human metal object or metal surface.
[0063] It is worth noting that although the test signal in the foregoing embodiments includes four audio frequencies of 45kHz, 75kHz, 85kHz and 95kHz, the test signal may also include other numbers and frequencies of audio frequencies, and this invention does not limit it.
[0064] It is also worth noting that, although in the aforementioned Figure 3-2 as well as Figure 3-3This invention only illustrates the amplitude. Those skilled in the art can certainly apply both amplitude and phase simultaneously, and this invention is not limited thereto.
[0065] The following is a detailed description, with reference to the accompanying drawings, of the headphone status detection method of the present invention and how the various hardware components of the headphone 100 work together.
[0066] Figure 7-1 This is a flowchart illustrating the headphone state detection method according to an embodiment of the present invention. Please refer to it as well. Figure 1 , Figure 2 , Figures 3-1 to 3-3 , Figure 4 as well as Figure 7-1 .exist Figure 7-1 In the illustrated embodiment, the headphone state detection method includes steps S701 to S704. In step S701, the signal processor 101 receives the sensing signal sensed by the sensing unit 104 to determine the contact state of the headphone 100 based on the sensing signal.
[0067] In step S702, the signal processor 101 determines the contact state of the earphone 100 based on the sensing signal received from the sensing unit 104, and judges whether the earphone 100 is in contact with an object. If not, proceed to step S703; if yes, proceed to step S704.
[0068] In step S703, in response to a non-contact state, signal processor 101 sequentially transmits code information to the first sound playback unit 102 in the playback order of 1A, 1B...1F at first predetermined intervals. For example, after transmitting code 1A, signal processor 101 waits for the first predetermined interval before transmitting code 1B, then waits for the first predetermined interval before transmitting code 1C, and so on, until code 1F is transmitted. In this embodiment, the first predetermined interval is 1 second. Based on the received code information, the first sound playback unit 102 injects corresponding audio signals into the headphone audio signal to play multiple first audio signals corresponding to these code information. After a second predetermined interval, signal processor 101 sequentially transmits code information to the first sound playback unit 102 in the playback order of 2A, 2B...2F at first predetermined intervals. In this embodiment, the second predetermined interval is 1 second. Signal processor 101 repeats the above process until all code information corresponding to all codes has been transmitted to the first sound playback unit 102. In some embodiments, the second predetermined interval is the time required for the signal processor 101 to sequentially issue codes 1A to 1F at the first predetermined interval.
[0069] Next, the first recording unit 103 transmits the sampled acoustic signal to the signal processor 101 via the analog-to-digital converter 202. The signal processor 101 detects the reflected audio signal from the acoustic signal of the environment received by the first recording unit 103 and obtains multiple first time points at which the first recording unit 103 receives the audio signal corresponding to codes 1A to 10F after reflection. In this embodiment, when the signal processor 101 issues a code message (e.g., 2A), if the signal processor 101 does not detect the corresponding reflected audio signal (in this example, a 45kHz audio signal) after a second predetermined time, the signal processor 101 uses the time point at which the code message was issued plus the second predetermined time as the first time point at which the audio signal corresponding to code 2A after reflection was received.
[0070] Next, the signal processor 101 determines the wearing status of the headphones 100 based on these first time points. In this embodiment, by using different time codes, audio signals of the same frequency are played by the first sound playback unit 102 after a sufficient time interval (e.g., audio signals corresponding to codes 1A and 2A). Therefore, the signal processor 101 is less likely to confuse the audio signals corresponding to codes 1A and 2A, even if their frequencies are the same.
[0071] In step S704, in response to the contact state being contacted, signal processor 101 stops sending the code information.
[0072] Figure 7-2 This is a flowchart illustrating the headphone state detection method according to an embodiment of the present invention. Please refer to it as well. Figure 1 , Figure 2 , Figures 3-1 to 3-3 , Figure 4 , Figure 7-1 as well as Figure 7-2 .exist Figure 7-2 In the illustrated embodiment, step S704 further includes step S705. In step S705, in response to a contact state of contact, signal processor 101 sends test information of a test signal to the first sound playback unit 102, causing the first sound playback unit 102 to play the test audio signal. Signal processor 101 then determines the frequency of the test audio signal based on the spectrum of the test audio signal and the reflected test audio signal received by the first receiver unit 103 (as described above). Figure 3-2 as well as Figure 3-3 (As shown in the illustration), it determines whether the object that the earphone 100 comes into contact with is a human being, and thus determines whether the earphone 100 is worn on a person.
[0073] Figure 8 This is a flowchart illustrating the headphone state detection method according to an embodiment of the present invention. Please refer to it as well. Figure 1 , Figure 2 , Figures 3-1 to 3-3 , Figure 7-1 , Figure 7-2 as well as Figure 8 .exist Figure 8 In the illustrated embodiment, the test signal includes at least one single-frequency signal (e.g., audio at 45kHz, 75kHz, 85kHz, and 95kHz as in the aforementioned embodiment; in this case, the test information includes information about the audio at 45kHz, 75kHz, 85kHz, and 95kHz), and the aforementioned step S705 includes step S801, in which the signal processor 101 determines the amplitude of at least one frequency (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz audio) of the aforementioned at least one single-frequency signal (e.g., audio at 45kHz, 75kHz, 85kHz, and 95kHz as in the aforementioned embodiment) based on at least one amplitude (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz). Figure 3-2 The recorded M) and the spectrum of the reflected test audio signal (e.g. Figure 3-3 The amplitude magnitude (e.g., 45kHz, 75kHz, 85kHz, and 95kHz) corresponding to at least one frequency (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz) of the aforementioned at least one single-frequency signal. Figure 3-3 The amplitude of each frequency is shown in the diagram to determine whether the object 203 is a human, and thus whether the earphone 100 is worn by a person.
[0074] Figure 9 This is a flowchart illustrating the headphone state detection method according to an embodiment of the present invention. Please refer to it as well. Figure 1 , Figure 2 , Figures 3-1 to 3-3 , Figure 7-1 , Figure 7-2 , Figure 8 as well as Figure 9 .exist Figure 9 In the illustrated embodiment, the aforementioned step S801 includes steps S901 and S902. In step S901, the signal processor 101 determines the amplitude of at least one frequency (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz audio) of the aforementioned at least one single-frequency signal (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz audio) based on at least one amplitude (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz audio). Figure 3-2 The recorded M) and the spectrum of the reflected test audio signal (e.g. Figure 3-3 The amplitude magnitude (e.g., at least one frequency (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz) of at least one single-frequency signal should correspond to at least one frequency of at least one single-frequency signal. Figure 3-3The signal processor 101 calculates at least one amplitude change before and after reflection of at least one single-frequency signal (showing the amplitude magnitude corresponding to each frequency). For example, after reflection, the amplitude of a 45kHz single-frequency signal decreases by 60%, the amplitude of a 75kHz single-frequency signal decreases by 5%, the amplitude of an 85kHz single-frequency signal decreases by 50%, and the amplitude of a 95kHz single-frequency signal decreases by 65%. In step S902, the signal processor 101 determines whether the object 203 is a human based on the aforementioned at least one amplitude change, thereby determining whether the headphones 100 are worn by a person. In some embodiments, the signal processor 101 can compare the attenuation magnitude of the amplitude of each frequency of the reflected test audio signal using a preset attenuation threshold to determine whether the headphones 100 are worn by a person. Figure 3-2 and Figure 3-3 For example, assuming that human skin has a worse absorption capacity for 75kHz audio than for 45kHz, 85kHz, and 95kHz, or that human skin has a better reflection capacity for 75kHz audio than for 45kHz, 85kHz, and 95kHz, the signal processor 101 can set a preset attenuation threshold of 15%. When a single-frequency signal of 45kHz is reflected and its amplitude is reduced by 60%; a single-frequency signal of 75kHz is reflected and its amplitude is reduced by 5%; a single-frequency signal of 85kHz is reflected and its amplitude is reduced by 50%; and a single-frequency signal of 95kHz is reflected and its amplitude is reduced by 65%, only the attenuation amplitude of 75kHz is less than the default attenuation threshold, while the attenuation amplitudes of 45kHz, 85kHz, and 95kHz are all greater than the default attenuation threshold. The signal processor 101 can use this to determine that the headphones 100 are worn by a person. Following the example above, assuming that the sound absorption capacity of metal at 45kHz, 75kHz, 85kHz, and 95kHz is worse than that of the human body at these frequencies, or that the reflection capacity of metal at 45kHz, 75kHz, 85kHz, and 95kHz is better than that of human skin at these frequencies, then if the headphones 100 are close to or placed on a metal surface, the attenuation of the reflected audio signals at 45kHz, 75kHz, 85kHz, and 95kHz is between 5% and 10% and is less than the aforementioned preset attenuation threshold. The signal processor 101 can thereby determine that the headphones 100 are not worn on a person, but are close to or placed on a non-human metal object or metal surface.
[0075] In some embodiments of the present invention, the signal processor 101 compares the magnitude of the largest amplitude change with the magnitude of the change that a human should have to determine whether the object 203 is a human.
[0076] Figure 10 This is a flowchart illustrating an earphone state detection method according to an embodiment of the present invention. Please refer to [link / reference]. Figure 10In some embodiments, the aforementioned step S703 further includes steps S1001 and S1002. In step S1001, when the signal processor 101 sends out code information corresponding to codes 1A, 1B...10F, it stores multiple second time points at which these code information are sent, and then subtracts the second time points corresponding to the same codes from the aforementioned first time points to obtain multiple first time differences. In step S1002, the signal processor 101 then determines the wearing status of the earphone 100 based on the changes in these first time differences.
[0077] Figure 11 This is a flowchart illustrating an earphone state detection method according to an embodiment of the present invention. In one embodiment, the code and related parameters are as shown in Table (I), where the first predetermined interval is 0.1 seconds and the second predetermined interval is 0.1 seconds. Please also refer to... Figure 4 and Figure 11 After executing steps S701 and S1001, signal processor 101 executes steps S1101 to S1105 in step S1002. In step S1101, signal processor 101 determines whether the first time differences are all greater than a preset first predetermined time. If so, it indicates that the earphone 100 and the object 203 have maintained a fixed distance or more continuously. Therefore, in step S1002, signal processor 101 determines that the earphone 100 is not worn. In some embodiments of the present invention, the aforementioned first predetermined time is 90 μs.
[0078] If, in step S1101, the signal processor 101 determines that not all of the first time differences are greater than a preset first predetermined time, it means that one of the first time differences is less than the preset first predetermined time (logically, if the signal processor 101 determines that not all of the first time differences are greater than the preset first predetermined time, it means that one of the first time differences is less than or equal to the preset first predetermined time; however, since time differences are usually stored and calculated in the form of floating-point numbers in the signal processor 101, the equal-to-one situation is not considered here). This indicates that the distance between the headphones 100 and the object 203 is changing. Therefore, in step S1103, the changing distance between the headphones 100 and the object 203 is further determined. If, corresponding to the playback order, there is a starting first time difference and a subsequent last first time difference among the first time differences, such that the last first time difference is greater than the starting first time difference, it indicates that the headphones 100 is moving away from the object 203. Therefore, in step S1104, the signal processor determines that the wearing status of the headphones 100 is away from the ear. Conversely, if there is no first time difference at the beginning and a last time difference at the end of the sequence such that the last time difference is greater than the first time difference at the beginning, it means that the earphone 100 is approaching the object 203. Therefore, in step S1105, the signal processor determines that the earphone 100 is being worn.
[0079] In some embodiments, after determining in step S1101 that not all of the first time differences are greater than a preset first predetermined time, the signal processor 101 further determines the change in the distance between the earphone 100 and the object 203. If, corresponding to the playback sequence, there exists a first time difference with a later first time difference that is less than the first first time difference, it indicates that the earphone 100 is approaching the object 203, and therefore the signal processor determines that the earphone is being worn. Conversely, if there is no first time difference with a later first time difference that is less than the first first time difference, it indicates that the earphone 100 is moving away from the object 203, and therefore the signal processor determines that the earphone is being worn away from the ear.
[0080] Figure 5 This is a block diagram of an earphone system according to an embodiment of the present invention. Figure 6 This is a schematic diagram illustrating the operation of an earphone according to an embodiment of the present invention. Please also refer to... Figure 5 and Figure 6 , Figure 5 The earphone 500 further includes a second sound playback unit 501 and a second microphone unit 502. The second sound playback unit 501 is a speaker already present in the earphone. The second microphone unit 502 is a feedforward microphone of the active noise cancellation system already present in the earphone. The second sound playback unit 501 is disposed within the earphone housing 301'. In some embodiments, the first sound playback unit 102 and the first microphone unit 103 are located on one side of the earphone, while the second sound playback unit 501 and the second microphone unit 502 are located on the other side of the earphone. For example, the first sound playback unit 102 and the first microphone unit 103 are located on the earphone housing 301 corresponding to the right ear, while the second sound playback unit 501 and the second microphone unit 502 are located on the earphone housing 301' corresponding to the left ear.
[0081] Typically, the second sound playback unit 501 is identical to the first sound playback unit 102, playing headphone audio signals, which can be generated by an audio source during audio playback from various devices. The second sound receiving unit 502 is positioned opposite the first sound playback unit 102, and the second sound receiving unit 502 samples ambient acoustic signals.
[0082] The signal processor 101 sends code information to the second audio playback unit 501 according to the aforementioned codes 1A, 1B...10F. The second audio playback unit 501 injects a corresponding audio signal into the headphone audio signal based on the received code information. For example, if the signal processor 101 sends code information corresponding to code 2A to the second audio playback unit 501, the second audio playback unit 501 will inject a 45kHz audio signal into the headphone audio signal after receiving the code information corresponding to code 2A.
[0083] Figure 12 This is a flowchart illustrating the headphone state detection method according to an embodiment of the present invention. Please refer to it as well. Figure 5 , Figure 6 and Figure 12 .
[0084] In step S1102, the signal processor 101 determines that the earphone 500 is not being worn. At this time, the status of the earphone 500 is as follows: Figure 6 As shown, the audio signal emitted by the second sound playback unit 501 (e.g., the aforementioned 45kHz audio signal) propagates through path PL'. Because the headphones 500 are not worn, the audio signal emitted by the second sound playback unit 501 will be reflected through path PR' after encountering object 601. When the second sound receiving unit 502 samples the acoustic signal of the environment, it transmits the sampled acoustic signal to the signal processor 101. The signal processor 101 detects the reflected audio signal from the acoustic signal of the environment from the second sound receiving unit 502 and obtains the time point at which the second sound receiving unit 502 receives the reflected audio signal.
[0085] In step S1201, the signal processor 101 sends code information to the second sound playback unit 501 in the playback order of 1A, 1B...1F at a first predetermined interval. In this embodiment, the first predetermined interval is 0.1 seconds. Based on the received code information, the second sound playback unit 501 injects corresponding audio signals into the headphone audio signal to play multiple second audio signals corresponding to these code information. After a second predetermined interval, the signal processor 101 sends code information to the second sound playback unit 501 in the playback order of 2A, 2B...2F at the first predetermined interval. In this embodiment, the second predetermined interval is 0.1 seconds. The signal processor 101 repeats the above process until all code information corresponding to all codes has been transmitted to the second sound playback unit 501.
[0086] In step S1202, the second sound receiving unit 502 transmits the sampled acoustic signal to the signal processor 101. The signal processor 101 detects the reflected audio signal from the acoustic signal of the environment received by the second sound receiving unit 502 and obtains multiple third time points of the second audio signal received by the second sound receiving unit 502 after the first reflection.
[0087] In step S1203, the signal processor 101 then determines whether the earphone 500 is in a handheld state based on these third time points.
[0088] In some embodiments, the signal processor 101 determines that the earphone 500 is in a handheld state in response to the same time interval of the third time points.
[0089] Figure 13 This is a flowchart illustrating an earphone state detection method according to an embodiment of the present invention. Please refer to [link / reference]. Figure 13 In some embodiments, the aforementioned step S1203 further includes steps S1301 and S1302. In step S1301, when the signal processor 101 sends out code information corresponding to codes 1A, 1B...10F, it stores multiple fourth time points when sending out these code information, and then subtracts the fourth time points corresponding to the same code from the aforementioned third time points to obtain multiple second time differences.
[0090] In step S1302, the signal processor 101 then determines whether the earphone 500 is in a handheld state based on the second time difference.
[0091] If all the first time differences are less than a preset second predetermined time and these second time differences are approximately the same, this indicates that the earphone 500 and the object 601 are stably maintained at a preset distance, and it can be determined that the earphone 500 is in a handheld state. Therefore, in response to the fact that all the second time differences are less than the preset second predetermined time and the difference between these second time differences is less than an error value, the signal processor 101 determines that the earphone 500 is in a handheld state. In this embodiment, the aforementioned second predetermined time is 900 μs. It should be noted that the second predetermined time is set according to the actual setting position of the second sound playback unit 501 and the second sound receiving unit 502 in the earphone 500, and the present invention is not limited thereto.
[0092] Please refer to the following: Figure 1In some embodiments of the present invention, the signal processor 101, corresponding to the test audio signal played by the first sound playback unit 102, pre-stores the spectrum of the reflected test audio signal in various states. The signal processor 101 is configured to, in response to a non-contact contact state, send test information of the test signal to the first sound playback unit 102, causing the first sound playback unit 102 to play the test audio signal. The signal processor 101 compares the spectrum of the reflected test audio signal received by the first sound receiving unit 103 with the aforementioned pre-stored spectrum of the reflected test audio signal in various states of the earphone 100 to determine the wearing status of the earphone 100. Thus, the signal processor 101 can determine the wearing status of the earphone 100 based on the spectrum of the reflected test audio signal received by the first sound receiving unit 103.
[0093] The aforementioned earphone 100 can be in various states, including: out of ear, worn, held in hand, and placed on a table.
[0094] In this embodiment, the headphone state detection method includes: a signal processor 101 receiving the contact state of the headphone 100 sensed by the sensing unit 104; the signal processor 101 determining the contact state of the headphone 100 based on the received sensing signal generated by the sensing unit 104, to determine whether the headphone 100 is in contact with an object; and in response to the contact state being no contact, the signal processor 101 sending the aforementioned test information to the first sound playback unit 102, causing the first sound playback unit 102 to play a test audio signal, and the signal processor 101 then determining the state of the headphone 100 based on the spectrum of the reflected test audio signal received by the first sound receiving unit 103.
[0095] In some embodiments of the present invention, the test signal includes at least one single-frequency signal (e.g., audio at 45kHz, 75kHz, 85kHz, and 95kHz as described in the preceding embodiments; in this case, the test information includes information about the audio at 45kHz, 75kHz, 85kHz, and 95kHz). That is, the test audio signal played by the first sound playback unit 102 includes the aforementioned at least one single-frequency signal (e.g., audio at 45kHz, 75kHz, 85kHz, and 95kHz as described in the preceding embodiments). The signal processor 101, corresponding to the aforementioned test audio signal containing at least one single-frequency signal, pre-stores the spectra of the reflected test audio signal in various states. Each spectrum of the aforementioned reflected test audio signal in various states includes the amplitude of the frequency corresponding to each of the aforementioned single-frequency signals (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz). The signal processor 101 determines the state of the earphone 100 based on the spectrum of the reflected test audio signal received by the first sound receiving unit 103 and the aforementioned pre-stored spectra of the reflected test audio signal in various states.
[0096] Since the spectrum of the reflected test audio signal in a certain state, which is stored in advance, and the spectrum of the reflected test audio signal received by the first receiving unit 103 both contain single-frequency signals of the same frequency, in some embodiments of the present invention, the signal processor 101 uses the sum of the absolute values of the amplitude differences at each frequency (e.g., the aforementioned 45kHz, 75kHz, 85kHz, and 95kHz) as the distance between the spectrum of the reflected test audio signal and the spectrum of the reflected test audio signal in a certain state, which is stored in advance. For example, the spectrum of the reflection test audio signal in the "placed on the table" state, which is stored in advance, is: amplitude of 3 at 45kHz, amplitude of 5 at 75kHz, amplitude of 2 at 85kHz, and amplitude of 2 at 95kHz. The spectrum of the reflection test audio signal received by the first receiving unit 103 is: amplitude of 2.5 at 45kHz, amplitude of 4 at 75kHz, amplitude of 3 at 85kHz, and amplitude of 4 at 95kHz. Then, the distance between the spectrum of the reflection test audio signal received by the first receiving unit 103 and the spectrum of the reflection test audio signal in the "placed on the table" state, which is stored in advance, is: |3-2.5|+|5-4|+|2-3|+|2-4|=4.5. Based on the aforementioned distance definition, the signal processor 101 selects the spectrum that is closest to the spectrum of the reflected test audio signal received by the first receiver unit 103 from the pre-stored spectrum of the reflected test audio signal in various states, and determines the state of the earphone 100 to be the state corresponding to the aforementioned spectrum with the shortest distance (for example, if the spectrum of the reflected test audio signal received by the first receiver unit 103 and the spectrum of the reflected test audio signal in the pre-stored state of "placed on the table" are the shortest distance, then the signal processor 101 determines the state of the earphone 100 to be "placed on the table".
[0097] In this specification, "computer-readable media" is used to refer to non-volatile, non-transitory media, such as a read-only memory (ROM), a flash memory, a floppy disk, a hard disk, a compact disk (CD), a digital versatile disc (DVD), a USB flash drive, a network-accessible database, or any other storage medium known to those skilled in the art and having the same functionality. Such and other forms of computer-readable media may involve carrying one or more sequences of instructions to a signal processor 101 for execution. These instructions embodied on the medium are generally referred to as "computer program code" or "computer program product," which may be a file transmittable over a network or stored in a non-transitory computer-readable storage medium. When executed, these instructions enable the signal processor 101 to perform the steps or functions described in this invention.
[0098] Based on the above, some embodiments of the present invention provide an earphone and an earphone status detection method. When the sensing unit detects that the earphone is in contact, it determines whether the earphone is worn on a person based on the spectrum of the test audio signal and the reflected test audio signal received by the first receiving unit. When the sensing unit detects that the earphone is not in contact, it determines the wearing status of the earphone based on multiple first time points of the first audio signal received by the first receiving unit after the first reflection. This can effectively determine the status of the earphone and reduce false touches of the sensing unit and the overall power consumption of the earphone. Some embodiments of the present invention provide an earphone whose status can be determined by the spectrum of the reflected test audio signal received by the first receiving unit. Some embodiments of the present invention provide an earphone and an earphone status detection method that use the speaker and microphone of the active noise cancellation system, which are common in general earphones, as the first sound playback unit and the first receiving unit, thus not excessively increasing the cost or complexity of the earphone.
[0099] Of course, the present invention may have other various embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these corresponding changes and modifications should all fall within the protection scope of the claims of the present invention.
Claims
1. An earphone, characterized in that, include: The first sound playback unit is configured to perform the following action: in response to receiving multiple code messages, play multiple first audio signals corresponding to the code messages in a playback order; First radio unit; A sensing unit configured to generate a sensing signal; as well as The signal processor is configured to perform the following: determining a contact state based on the sensing signal; sequentially issuing the code information in response to a no-contact contact state; and determining the wearing status of the headphones based on multiple first time points of the first audio signal received by the first receiving unit after the first reflection, wherein any two consecutively issued code information in the code information correspond to different frequencies; and ceasing to issue the code information in response to a contact state of contact. The first sound playback unit is configured to further perform the following: playing a test audio signal in response to receiving test information; and the signal processor is configured to further perform the following: issuing the test information in response to a contact state of contact, and determining whether the headphones are worn by a person based on the spectrum of the test audio signal and the reflected test audio signal received by the first receiving unit.
2. The earphone according to claim 1, characterized in that, The test audio signal contains at least one single-frequency signal. The signal processor determines whether the headphones are worn by a person based on at least one amplitude of at least one frequency of the at least one single-frequency signal and at least one amplitude of the frequency of the reflected test audio signal in the spectrum corresponding to the at least one single-frequency signal.
3. The earphone according to claim 2, characterized in that, The signal processor calculates at least one amplitude change corresponding to the at least one single-frequency signal based on the at least one amplitude of the at least one frequency of the at least one single-frequency signal and the at least one amplitude of the at least one frequency of the at least one single-frequency signal in the spectrum of the reflected test audio signal, and determines whether the earphone is worn by a person based on the at least one amplitude change.
4. The earphone according to claim 1, characterized in that, The signal processor is also configured to subtract a plurality of second time points corresponding to the first audio signal playback from the first time point to obtain a plurality of first time differences corresponding to the first audio signal; the signal processor then determines the wearing status of the headphones based on the change of the first time difference.
5. The earphone according to claim 4, characterized in that, In response to any time difference less than a first predetermined time and the last time difference less than the start time difference, the signal processor determines that the wearing status of the headphones is "wearing", wherein, according to the playback order, the start time difference is before the last time difference.
6. The earphone according to claim 4, characterized in that, In response to any time difference less than a first predetermined time and the last time difference greater than the start time difference, the signal processor determines that the wearing status of the earphone is out of the ear, wherein, according to the playback order, the start time difference is before the last time difference.
7. The earphone according to claim 4, characterized in that, In response to the first time difference being greater than the first predetermined time, the signal processor determines that the wearing status of the earphone is an unworn state.
8. The earphone according to claim 7, characterized in that, The headphones further include a second sound playback unit and a second sound receiving unit. The second sound playback unit receives the code information sent by the signal processor and plays multiple second audio signals corresponding to the code information according to the playback order. After determining that the headphones are not worn, the signal processor obtains multiple third time points at which the second sound receiving unit receives the second audio signal after the first reflection. The signal processor determines whether the headphones are in a handheld state based on the third time points.
9. The headphones according to claim 8, characterized in that, The signal processor is also configured to subtract a plurality of fourth time points corresponding to the playback of the second audio signal from the third time point to obtain a plurality of second time differences corresponding to the second audio signal; in response to the second time differences being all less than a second predetermined time, the signal processor determines that the earphone is in a handheld state.
10. The earphone according to claim 1, characterized in that, The signal processor is also configured to sequentially transmit code information corresponding to each time code according to a plurality of time codes, wherein the code information corresponding to the same time code corresponds to different frequencies.
11. A method for detecting the status of headphones, applicable to headphones, characterized in that, The headphones include a first sound playback unit, a first microphone unit, a sensing unit, and a signal processor. The headphone status detection method includes the signal processor performing the following steps: (a) Receive the sensing signal generated by the sensing unit and determine the contact state based on the sensing signal; (b) In response to the contact state being non-contact, a plurality of code messages are sequentially sent to the first sound playback unit, causing the first sound playback unit to play a plurality of first audio signals corresponding to the code messages in playback order, and determining the wearing status of the headphones based on a plurality of first time points at which the first receiving unit receives the first audio signal after its first reflection, wherein any two consecutively sent code messages correspond to different frequencies; and (c) In response to the contact state being contacted, stop sending the code information, wherein the aforementioned step (c) includes: in response to the contact state being contacted, sending test information to the first sound playback unit, causing the first sound playback unit to play a test audio signal, and determining whether the earphone is worn on a person based on the test audio signal and the spectrum of the reflected test audio signal received by the first sound receiving unit.
12. The headphone status detection method according to claim 11, characterized in that, The test audio signal contains at least one single-frequency signal, and the aforementioned step (c) includes: (c1) determining whether the headphones are worn on a person based on at least one amplitude of at least one frequency of the at least one single-frequency signal and at least one amplitude of the spectrum of the reflected test audio signal corresponding to at least one frequency of the at least one single-frequency signal.
13. The headphone status detection method according to claim 12, characterized in that, The aforementioned step (c1) includes: (c11) Based on the at least one amplitude magnitude of the at least one frequency of the at least one single-frequency signal and the at least one amplitude magnitude of the corresponding frequency in the spectrum of the reflected test audio signal, calculate the at least one amplitude change corresponding to the at least one single-frequency signal; and (c12) Determine whether the headphones are worn by a person based on the at least one amplitude change.
14. The headphone status detection method according to claim 11, characterized in that, The aforementioned step (b) includes: (b1) Subtract the first time point from the corresponding second time point when the first audio signal is played to obtain the corresponding first time difference; as well as (b2) Determine the wearing status of the headphones based on the change in the first time difference.
15. The headphone status detection method according to claim 14, characterized in that, The aforementioned step (b2) includes: in response to any time difference less than a first predetermined time and the last time difference in the first time difference being less than the start time difference in the first time difference, the signal processor determines that the wearing status of the headphones is wearing, wherein in the playback sequence, the start time difference is before the last time difference.
16. The headphone status detection method according to claim 14, characterized in that, The aforementioned step (b2) includes: in response to any time difference less than a first predetermined time and the last time difference in the first time difference being greater than the start time difference in the first time difference, the signal processor determines that the wearing status of the earphone is out of ear, wherein in the playback sequence, the start time difference is before the last time difference.
17. The headphone status detection method according to claim 14, characterized in that, The aforementioned step (b2) includes: In response to the first time difference being greater than the first predetermined time, it is determined that the wearing status of the headphones is an unworn state.
18. The headphone status detection method according to claim 17, characterized in that, The headphones include a second sound playback unit and a second microphone unit, and the headphone status detection method further includes: (d) Send the code information to the second audio playback unit, so that the second audio playback unit plays multiple second audio signals corresponding to the code information in the playback order; (e) After determining that the wearing status of the headphones is an unworn state, acquire multiple third time points at which the second audio unit receives the second audio signal after the first reflection; as well as (f) Determine whether the earphone is in a handheld state based on the third time point.
19. The headphone status detection method according to claim 18, characterized in that, The aforementioned step (f) includes: (f1) Subtract the corresponding fourth time points when the second audio signal is played from the third time point to obtain the corresponding second time differences for the second audio signal; and (f2) In response to the fact that the second time difference is less than the second predetermined time and the difference of the second time difference is less than the error value, it is determined that the earphone is in a handheld state.
20. An earphone, characterized in that, include: The first sound playback unit is configured to perform the following action in response to receiving test information: play a test audio signal; First radio unit; A sensing unit configured to generate a sensing signal; as well as A signal processor is configured to perform the following: determining a contact state based on the sensing signal; issuing test information in response to a no-contact contact state; and determining the state of the earphone based on the spectrum of the reflected test audio signal received by the first receiving unit, wherein the test audio signal contains at least one single-frequency signal; the signal processor calculates multiple spectral distances from the test audio signal to the pre-stored spectra of multiple specific-state reflected test audio signals based on at least one amplitude of at least one frequency corresponding to the at least one single-frequency signal in the spectrum of the reflected test audio signal; the signal processor selects the spectrum with the shortest spectral distance from the spectrum of the specific-state reflected test audio signals; and the signal processor determines that the state of the earphone corresponds to the spectrum with the shortest spectral distance; wherein the spectral distance is the sum of the absolute values of the amplitude differences at each frequency.
Citation Information
Patent Citations
Audio playing device and used earphone, automatic control method
CN101232743A
Playing control method and system, headset and mobile terminal
CN108737921A
Earphone and earphone state detection method
CN113453112A