Earphone and earphone status detection method
By using signal processors and existing speakers and microphones in the headset, code information at different frequencies and detecting the time point of reflected audio signals, the cost and complexity of headset wear status detection is solved, and effective wear status detection without additional components is achieved.
Patent Information
- Application Number
- CN202110662905.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-15
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2041-06-15
AI Technical Summary
Existing headphones continue to drain when the user removes the headphones without turning them off, and traditional wear condition detection relies on additional sensors, adding cost and complexity.
By introducing a signal processor into the headset, the speaker and the microphone of the active noise reduction system are used as the sound playback unit and the radio unit to issue code information of different frequencies, and the wearing status of the headset is judged based on the time point of the reflected audio signal.
The headphone wear condition detection is achieved without additional components, avoiding the problem of battery exhaustion and reducing the cost and complexity of the headphones.
Smart Images

Figure CN113453112B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to earphone technology, and in particular to an earphone and an earphone state detection method related to earphone wearing condition detection. Background Art
[0002] There are two sources of noise in headphone products. One is electrical noise caused by internal circuits or external signals. Manufacturers can effectively suppress and eliminate electrical noise through circuit design. The other type of noise is the so-called audio noise (environmental noise). This noise will affect the comfort of headphone users when listening to music. In order to improve this environmental noise, active noise cancellation (ANC) is generally used. Traditional digital active noise cancellation systems sample the surrounding environmental noise through a detection microphone, and use signal processing to generate a signal to eliminate the environmental noise. The audio signal with the opposite phase of these noises is sent out through the speaker, thereby offsetting the external environmental noise.
[0003] The general active noise reduction system continuously monitors the sound reaching the ear through a detection microphone located in the earphone housing. The output signal of the detection microphone is amplified, digitized by an analog-to-digital converter, and then sent to a digital noise reduction processor (Digital Noise Cancelation 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 the appropriate frequency characteristics. Then it enters the digital noise reduction processor, which subtracts the ambient noise from the music source signal and extracts the noise that needs to be eliminated. The extracted noise that needs to be eliminated undergoes phase inversion, and the processed signal result is replayed together with the music signal through the driver, thereby eliminating the noise before the noise enters the ear.
[0004] Generally, headphones with active noise reduction systems require batteries or other power sources to operate. A common problem in this case is that if the user takes off the headphones without turning them off, the battery will continue to drain. Therefore, some headphones now detect whether the user is wearing the headphones. These traditional designs rely on mechanical sensors such as contact sensors or magnets to determine whether the headphones are worn by the user. Summary of the invention
[0005] Although some existing earphones are equipped with sensors to detect whether the user is wearing the earphones, these sensors are not part of the earphones. On the contrary, these sensors are usually additional components that may increase the cost or complexity of the earphones. In view of this, the present invention provides an earphone and an earphone status detection method to improve the existing technical problems.
[0006] The present invention provides an earphone, which includes a signal processor, a first sound playing unit and a first sound receiving unit. The signal processor is configured to send out a plurality of code information in sequence, wherein any two of the code information sent in succession correspond to different frequencies. The first sound playing unit receives the plurality of code information sent by the signal processor, and plays a plurality of first audio signals corresponding to the code information according to the playing order. The signal processor obtains a plurality of first time points at which the first sound receiving unit receives the first audio signal after the first reflection. The signal processor then determines the wearing condition of the earphone based on the first time points.
[0007] The present invention provides a method for detecting the state of an earphone, which is executed by a signal processor of the earphone. The method for detecting the state of an earphone comprises the following steps: for a plurality of code information sent by a first sound playing unit, the first sound playing unit plays a plurality of first audio signals corresponding to the code information according to a playing order, wherein any two consecutively sent code information of the code information correspond to different frequencies; obtaining a plurality of first time points at which a first sound receiving unit receives the first audio signals reflected for the first time; and judging the wearing condition of the earphone according to the first time points.
[0008] Based on the above, the present invention provides an earphone and an earphone status detection method, wherein a first sound playback unit receives a plurality of code information sent by a signal processor, and plays a plurality of first audio signals corresponding to these code information according to a playback order. Among these first audio signals, any two audio signals with the same frequency are separated by at least a first number of audio signals with different frequencies. The signal processor obtains a plurality of first time points at which the first sound receiving unit receives the first audio signal after the first reflection. The signal processor then determines the wearing condition of the earphone based on these first time points. Accordingly, since the earphone, the earphone status detection method, the computer-readable recording medium with a stored program, and the non-temporary computer program product of the present invention can use the speakers of general earphones and the microphone of the active noise reduction system as the first sound playback unit and the first sound receiving unit, no additional components are required, and the cost or complexity of the earphone will not be increased.
[0009] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 FIG. 4 is a block diagram of an earphone system according to an embodiment of the present invention.
[0011] Figure 2 FIG. 4 is a schematic diagram of the operation flow of the earphone according to an embodiment of the present invention.
[0012] Figure 3 FIG. 4 is a schematic diagram showing the operation of an earphone according to an embodiment of the present invention.
[0013] Figure 4 FIG. 4 is a schematic diagram showing the operation of an earphone according to an embodiment of the present invention.
[0014] Figure 5 FIG. 4 is a block diagram of an earphone system according to an embodiment of the present invention.
[0015] Figure 6 FIG. 4 is a schematic diagram showing the operation of an earphone according to an embodiment of the present invention.
[0016] Figure 7 The figure is a flow chart of a method for detecting earphone status according to an embodiment of the present invention.
[0017] Figure 8 The figure is a flow chart of a method for detecting earphone status according to an embodiment of the present invention.
[0018] Fig. 9 The figure is a flow chart of a method for detecting earphone status according to an embodiment of the present invention.
[0019] Fig.10 The figure is a flow chart of a method for detecting earphone status according to an embodiment of the present invention.
[0020] Fig.11 The figure is a flow chart of a method for detecting earphone status according to an embodiment of the present invention.
[0021] Wherein, the reference numerals are:
[0022] 100, 500: Headphones
[0023] 101:Signal Processor
[0024] 102: first sound playing unit
[0025] 103: First radio unit
[0026] 201: Digital to Analog Converter
[0027] 202:Analog-to-digital converter
[0028] 203, 601: Object
[0029] 301, 301': earphone shell
[0030] 501: second sound playing unit
[0031] 502: Second radio unit
[0032] PR, PL, PR', PL': Path
[0033] S701~S703, S801~S802, S901~S907: Steps
[0034] S1001~S1003, S1101~S1102: Steps DETAILED DESCRIPTION
[0035] The structural principle and working principle of the present invention are described in detail below in conjunction with the accompanying drawings:
[0036] The aforementioned and other technical contents, features and effects of the present invention will be clearly presented in the following detailed description of the embodiments with reference to the accompanying drawings. The thickness or size of each element in the accompanying drawings is expressed in an exaggerated, omitted or approximate manner for people familiar with this technology to understand and read, and the size of each element is not completely its actual size, and is not used to limit the limiting conditions that the present invention can be implemented, so it has no technical substantive significance. Any structural modification, change in proportional relationship or adjustment of size, without affecting the effects that the present invention can produce and the purposes that can be achieved, should still fall within the scope of the technical content provided by the present invention. The same reference numerals will be used to represent the same or similar elements in all drawings. The term "coupling" or "connection" mentioned in the following embodiments may refer to any direct or indirect means of connection.
[0037] Figure 1 FIG. 1 is a block diagram of an earphone system according to an embodiment of the present invention. Figure 1 The headset 100 includes a signal processor 101, a first sound playing unit 102 and a first sound receiving unit 103. In this embodiment, the first sound playing unit 102 may be an existing speaker of the headset, and the first sound receiving unit 103 may be a feedback microphone of an existing active noise reduction system of the headset.
[0038] Typically, the first sound playback unit 102 plays an earphone audio signal, which may be generated by an audio source during audio playback of various devices, such as a media player, a computer, a radio, a mobile phone, a CD player, or a game console. For example, a user connects the earphone 100 to a portable media player that plays a song selected by the user to receive the earphone audio signal (e.g., the song being played by the portable media player), and the first sound playback unit 102 outputs an acoustic signal of the earphone audio signal. The first sound receiving unit 103 samples the output acoustic signal of the first sound playback unit 102 and the acoustic signal of the environment at the first sound playback unit 102.
[0039] The signal processor 101 receives an external command and edits and stores audios of different frequencies as codes according to time codes 1, 2, 3 ... M, as shown in Table (1), where M is a positive integer.
[0040]
[0041] Table (I)
[0042] The audio frequencies corresponding to the same time code are different from each other, and any two consecutively sent audio frequencies are different. For example, in Table (1), the audio frequencies corresponding to codes 1A, 1B, ..., 1F corresponding to time code 1 are different from each other; any two consecutively sent code information correspond to different audio frequencies, such as the frequencies corresponding to codes 1A and 1B sent successively are 45kHz and 55kHz respectively, and the frequencies corresponding to codes 1F and 2A sent successively are 95kHz and 45kHz respectively.
[0043] In this embodiment, the signal processor 101 receives an external command, and edits and stores the audio with a frequency of 45kHz, 55kHz, 65kHz, 75kHz, 85kHz, and 95kHz as codes 1A, 1B, ... 10F according to the time codes 1, 2, 3, ... 10. In some embodiments, the frequencies corresponding to the codes 1A, 1B, ... 1F can be changed according to needs and actual conditions (such as the applicable frequency range of the first sound playback unit 102), for example, the frequencies corresponding to the codes 1A, 1B, ... 1F can be 5kHz, 10kHz, 15kHz, 25kHz, 35kHz, and 45kHz.
[0044] In some embodiments, the signal processor 101 generates and sends out code information of codes 1A, 1B ... 10F according to a preset rule. For example, the signal processor 101 generates and sends out code information of codes 1A, 1B ... 1F in a period corresponding to time code 1, generates and sends out code information of codes 2A, 2B ... 2F in a period corresponding to time code 2, and so on. In some embodiments, after the signal processor 101 completes sending of codes 1A, 1B ... 10F (such as after sending code 10F), it will restart sending of codes 1A, 1B ... 10F. In some embodiments, after the signal processor 101 completes sending of codes 1A, 1B ... 10F (such as after sending code 10F), it will pause for a predetermined time and then restart sending of codes 1A, 1B ... 10F.
[0045] In some embodiments, the contents of code 1A to code 1F are respectively the same as the contents of code 2A to code 2F, for example, code 1A and code 2A are the same code information of 45kHz, code 1B and code 2B are the same code information of 55kHz, and code 1F and code 2F are the same code information of 95kHz; by analogy, the contents of code 1A to code 1F are respectively the same as the contents of code 10A to code 10F; that is, the code information of the same frequency of different time codes is the same. In some embodiments, the contents of code 1A to code 1F are respectively different from the contents of code 2A to code 2F, for example, code 1A and code 2A are both 45kHz but the code information of the two is different, code 1B and code 2B are both 55kHz but the code information of the two is different, and code 1F and code 2F are both 95kHz but the code information of the two is different; by analogy, the contents of code 1A to code 1F are respectively different from the contents of code 10A to code 10F; that is, the code information of the same frequency of different time codes is different.
[0046] Figure 2 FIG. 4 is a schematic diagram of the operation flow of the earphone according to an embodiment of the present invention. Figure 3 This is a schematic diagram of the operation of the earphone according to an embodiment of the present invention. Figure 2 , Figure 3 The signal processor 101, the first sound playing unit 102 and the first sound receiving unit 103 are arranged in the earphone housing 301. It should be noted that although Figure 2 , Figure 3 The signal processor 101 is shown as being disposed within the left ear earphone housing 301 , but in other embodiments, the signal processor 101 may be present in the earphone housings of the left ear, the right ear, or both ears.
[0047] The signal processor 101 sends out 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. The first sound playback unit 102 injects the corresponding audio signal into the headphone audio signal according to the received code information. For example, if the signal processor 101 sends out code information corresponding to code 2A to the first sound playback unit 102, the first sound playback unit 102 will inject a 45kHz audio signal into the headphone audio signal after receiving the code information corresponding to code 2A.
[0048] The audio signal (for example, the aforementioned 45kHz audio signal) propagates through the path PL and is reflected through the path PR after encountering the object 203. When the first sound receiving unit 103 samples the acoustic signal of the environment, the sampled acoustic signal is transmitted to the signal processor 101 through the 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 when the first sound receiving unit 103 receives the reflected audio signal.
[0049] The signal processor 101 can obtain a time difference by comparing the time point when the first sound playing unit 102 sends out the audio signal and the time point when the signal processor 101 detects the reflected audio signal. Using the equation: distance = speed of sound × time difference, the signal processor 101 can obtain the sum of the distances between the first sound playing unit 102 and the object 203 and the distance between the object 203 and the first sound receiving unit 103. Since the first sound playing unit 102 and the first sound receiving unit 103 are arranged at a fixed position of the earphone, the signal processor 101 can obtain the distance between the earphone 100 and the object 203. For example, the first sound playing unit 102 and the first sound receiving unit 103 are arranged at an appropriate position so that the predetermined distance between the first sound playing unit 102 and the object 203 is the same as the predetermined distance between the first sound receiving unit 103 and the object 203. At this time, the distance between the first sound playing unit 102 and the object 203 is speed of sound × time difference / 2. Furthermore, the distance between the earphone 100 and the object 203 can be set to be the distance between the first sound playing unit 102 and the object 203 .
[0050] The following will describe in detail the headset status detection method according to the embodiment of the present invention and how the hardware components of the headset 100 work in coordination with the accompanying drawings.
[0051] Figure 7 This is a flow chart of a method for detecting the status of an earphone according to an embodiment of the present invention. Figure 1 , Figure 2 , Figure 3 and Figure 7. In step S701, the signal processor 101 sends out code information in sequence at a first predetermined interval in the play order of 1A, 1B...1F, and transmits it to the first sound playing unit 102. For example, after sending out code 1A, the signal processor 101 waits for the first predetermined interval to send out code 1B, and then waits for the first predetermined interval to send out code 1C, and sends out code information in sequence until code 1F is sent out. In this embodiment, the first predetermined interval is 1 second. The first sound playing unit 102 injects corresponding audio signals into the earphone audio signal according to the received code information to play a plurality of first audio signals corresponding to the code information. After a second predetermined interval, the signal processor 101 sends out code information in sequence at a first predetermined interval in the play order of 2A, 2B...2F, and transmits it to the first sound playing unit 102. In this embodiment, the second predetermined interval is 1 second. The signal processor 101 repeats the above process until the code information corresponding to all codes is transmitted to the first sound playing unit 102. In some embodiments, the second predetermined interval is the time required for the signal processor 101 to sequentially send out codes 1A to 1F at the first predetermined interval.
[0052] In step S702, the first sound receiving 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 sent by the first sound receiving unit 103 and obtains a plurality of first time points at which the first sound receiving unit 103 receives the reflected audio signal corresponding to the codes 1A to 10F.
[0053] In this embodiment, when the signal processor 101 sends out a code message (for example, 2A), if the signal processor 101 does not detect the corresponding reflected audio signal (a 45kHz audio signal in this example) after the second predetermined time, the signal processor 101 uses the time point when the code message is sent plus the second predetermined time as the first time point when the reflected audio signal corresponding to the code 2A is received.
[0054] In step S703, the signal processor 101 determines a wearing condition of the headset 100 according to the first time points. In this embodiment, by using the corresponding different time codes, the audio signals of the same frequency are played back by the first sound playing unit 102 after a sufficiently long interval (e.g., the audio signals corresponding to codes 1A and 2A), so that the signal processor 101 is not likely to confuse the audio signals corresponding to codes 1A and 2A, even if their frequencies are the same.
[0055] In some embodiments, in response to the time intervals between the first time points being the same, the signal processor 101 determines that the wearing status of the headset 100 is a normal wearing status.
[0056] Figure 8 FIG. 1 is a flow chart of a method for detecting the status of an earphone according to an embodiment of the present invention. Figure 8 In some embodiments, the aforementioned step S703 further includes steps S801 and S802. In step S801, when the signal processor 101 sends out code information corresponding to codes 1A, 1B ... 10F, it stores a plurality of second time points at which the code information is sent out, and then subtracts the second time points corresponding to the same code from the aforementioned first time points, respectively, to obtain a plurality of first time differences.
[0057] In step S802 , the signal processor 101 determines the wearing condition of the earphone 100 according to the changes of the first time differences.
[0058] If the first time differences are all less than the preset first predetermined time, this situation indicates that the earphone 100 and the object 203 are stably maintained within a preset distance, and it can be determined that the earphone 100 is in a normal wearing state. Therefore, in some embodiments, in response to the fact that the first time differences are all less than the preset first predetermined time, the signal processor 101 determines that the wearing condition of the earphone 100 is a normal wearing state. In this embodiment, the aforementioned first predetermined time is 90μs. It should be noted that the first predetermined time is set according to the actual setting position of the first sound playing unit 102 and the first sound receiving unit 103 in the earphone 100, and the present invention is not limited thereto.
[0059] In some embodiments, in response to the first time differences being less than a preset first predetermined time and the difference between the first time differences being less than an error value, the signal processor 101 determines that the wearing state of the headset 100 is a normal wearing state. In this embodiment, the first predetermined time is 90 μs.
[0060] Figure 4 FIG. 4 is a schematic diagram showing the operation of an earphone according to an embodiment of the present invention. Fig. 9 FIG. 1 is a flow chart of a method for detecting the status of an earphone according to an embodiment of the present invention. In one embodiment, the code and its related parameters are as shown in Table (I), the first predetermined interval is 0.1 seconds, and the second predetermined interval is 0.1 seconds. Please also refer to Figure 4 and Fig. 9 After executing steps S701, S702, and S801, the signal processor 101 further executes step S901. In step S901, the signal processor 101 determines whether the first time differences are all greater than the preset first predetermined time. If so, it means that the earphone 100 and the object 203 continue to maintain a fixed distance or more. Therefore, in step S902, the signal processor 101 determines that the earphone 100 is not worn.
[0061] In step S901, if the signal processor 101 determines that the first time differences are not all greater than the first predetermined time, the process proceeds to step S903. In step S903, the signal processor 101 determines whether the first time differences are all less than the first predetermined time. If so, it indicates that the earphone 100 and the object 203 continue to maintain a fixed distance or less. Therefore, in step S904, the signal processor 101 determines that the wearing condition of the earphone 100 is a normal wearing condition in response to the difference of the first time differences being less than an error value (i.e., the earphone 100 and the object 203 are stably maintained at a preset distance).
[0062] In step S903, if the signal processor 101 determines that the first time differences are not all less than the first predetermined time, this indicates that the distance between the earphone 100 and the object 203 is changing. Therefore, in step S905, the change of the distance between the earphone 100 and the object 203 is further determined. If, corresponding to the playback order, among the first time differences, there is a starting first time difference and a last first time difference in the order, so that the last first time difference is greater than the starting first time difference, it indicates that the earphone 100 is moving away from the object 203, so the signal processor determines in step S906 that the wearing condition of the earphone is away from the ear.
[0063] On the contrary, if there is no starting first time difference and a subsequent last first time difference, such that the last first time difference is greater than the starting first time difference, it indicates that the headset 100 is approaching the object 203, and therefore the signal processor determines in step S907 that the wearing status of the headset is being worn.
[0064] In some embodiments, after determining that the first time differences are not all less than the first predetermined time, the signal processor 101 further determines the change in the distance between the headset 100 and the object 203. If, corresponding to the playback order, among the first time differences, there is a starting first time difference and a last first time difference in the sequence, so that the last first time difference is less than the starting first time difference, it means that the headset 100 is approaching the object 203, and therefore the signal processor determines that the wearing status of the headset is being worn.
[0065] On the contrary, if there is no starting first time difference and a subsequent last first time difference, such that the last first time difference is smaller than the starting first time difference, it indicates that the earphone 100 is moving away from the object 203, and thus the signal processor determines that the wearing condition of the earphone is away from the ear.
[0066] Figure 5 FIG. 4 is a block diagram of an earphone system according to an embodiment of the present invention. Figure 6 This is a schematic diagram of the operation of the earphone according to an embodiment of the present invention. Figure 5 and Figure 6 , Figure 5 The earphone 500 further includes a second sound playback unit 501 and a second sound receiving unit 502. The second sound playback unit 501 is an existing speaker of the earphone. The second sound receiving unit 502 is a feed-forward microphone of an existing active noise reduction system of the earphone. The second sound playback unit 501 is disposed in the earphone housing 301'. In some embodiments, the first sound playback unit 102 and the first sound receiving unit 103 are located on one side of the earphone, while the second sound playback unit 501 and the second sound receiving unit 502 are located on the other side of the earphone. For example, the first sound playback unit 102 and the first sound receiving unit 103 are located in the earphone housing 301 corresponding to the right ear, while the second sound playback unit 501 and the second sound receiving unit 502 are located in the earphone housing 301' corresponding to the left ear.
[0067] Typically, the second sound playing unit 501 is the same as the first sound playing unit 102, playing the headphone audio signal, which can be generated by an audio source during audio playback of various devices. The second sound receiving unit 502 is arranged opposite to the first sound playing unit 102, and the second sound receiving unit 502 samples the acoustic signal of the environment.
[0068] The signal processor 101 sends code information according to the aforementioned codes 1A, 1B ... 10F, and transmits it to the second sound playback unit 501. The second sound playback unit 501 injects the corresponding audio signal into the headphone audio signal according to the received code information. For example, the signal processor 101 sends code information corresponding to code 2A to the second sound playback unit 501, and after receiving the code information corresponding to code 2A, the second sound playback unit 501 injects a 45kHz audio signal into the headphone audio signal.
[0069] Fig.10 This is a flow chart of a method for detecting the status of an earphone according to an embodiment of the present invention. Figure 5 , Figure 6 and Fig.10 .
[0070] In step S902, the signal processor 101 determines that the earphone 500 is not worn. Figure 6As shown, the audio signal (e.g., the aforementioned 45kHz audio signal) emitted by the second sound playback unit 501 is propagated via the path PL'. Because the earphone 500 is not worn, the audio signal emitted by the second sound playback unit 501 will be reflected via the path PR' after encountering the object 601. When the second sound receiving unit 502 samples the acoustic signal of the environment, the sampled acoustic signal is transmitted 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 when the second sound receiving unit 502 receives the reflected audio signal.
[0071] In step S1001, the signal processor 101 sends out code information in the play order of 1A, 1B...1F at a first predetermined interval, and transmits it to the second sound playback unit 501. In this embodiment, the first predetermined interval is 0.1 seconds. The second sound playback unit 501 injects a corresponding audio signal into the headphone audio signal based on the received code information to play a plurality of second audio signals corresponding to the code information. After the second predetermined interval, the signal processor 101 sends out code information in the play order of 2A, 2B...2F at a first predetermined interval, and transmits it to the second sound playback unit 501. In this embodiment, the second predetermined interval is 0.1 seconds. The signal processor 101 repeats the above process until the code information corresponding to all codes is transmitted to the second sound playback unit 501.
[0072] In step S1002, 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 from the second sound receiving unit 502 and obtains a plurality of third time points when the second sound receiving unit 502 receives the second audio signals reflected for the first time.
[0073] In step S1003 , the signal processor 101 determines whether the earphone 500 is in the handheld state according to the third time points.
[0074] In some embodiments, the signal processor 101 determines that the headset 500 is in the handheld state in response to the time intervals between the third time points being the same.
[0075] Fig.11 FIG. 1 is a flow chart of a method for detecting the status of an earphone according to an embodiment of the present invention. Fig.11In some embodiments, the aforementioned step S1003 further includes steps S1101 and S1102. In step S1101, when the signal processor 101 sends out code information corresponding to codes 1A, 1B ... 10F, it stores a plurality of fourth time points at which the code information is sent out, and then respectively subtracts the fourth time points corresponding to the same code from the aforementioned third time points to obtain a plurality of second time differences.
[0076] In step S1102, the signal processor 101 determines whether the earphone 500 is in the handheld state according to the second time differences.
[0077] If the first time differences are all less than the preset second predetermined time and the second time differences are substantially the same, this indicates that the earphone 500 and the object 601 are stably maintained at a preset distance, and the earphone 500 can be judged to be in a handheld state. Therefore, in response to the fact that the second time differences are all less than the preset second predetermined time and the difference between the second time differences is less than an error value, the signal processor 101 judges 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.
[0078] In this specification, "computer readable medium" is used to refer to non-volatile, non-temporary media, such as a read-only memory (ROM), a flash memory, a floppy disk, a hard disk, a compact disk (CD), a digital versatile disk (DVD), a flash drive, a database accessible by a network, or any other storage medium known to those of ordinary skill in the art to which the present invention belongs and having the same function. These and other various forms of computer readable media may be involved in carrying one or more sequences of one or more instructions to the signal processor 101 for execution. These instructions embodied in the medium are usually referred to as "computer program code" or "computer program product", which may be a file that can be transmitted over the network or may be stored in a non-temporary computer readable storage medium. When these instructions are executed, they may enable the signal processor 101 to perform the steps or functions described in the present invention.
[0079] Based on the above, the embodiments of the present invention provide a headset, a headset status detection method, a computer-readable recording medium with a stored program, and a non-temporary computer program product, wherein the first sound playback unit receives a plurality of code information sent by the signal processor, and plays a plurality of first audio signals corresponding to the code information according to the playback order. Among these first audio signals, any two audio signals with the same frequency are separated by at least a first number of audio signals with different frequencies. The signal processor obtains a plurality of first time points at which the first sound receiving unit receives the first audio signal after the first reflection. The signal processor then determines the wearing condition of the headset based on these first time points. Accordingly, since the headset, the headset status detection method, the computer-readable recording medium with a stored program, and the non-temporary computer program product of the embodiments of the present invention can use the speakers of general headsets and the microphone of the active noise reduction system as the first sound playback unit and the first sound receiving unit, no additional components are required, and the cost or complexity of the headset will not be increased.
[0080] Furthermore, in one embodiment of the present invention, by using corresponding different time codes, audio signals of the same frequency are played back by the first sound playing unit after a sufficiently long interval, so that the signal processor is not likely to confuse the audio signals even if their frequencies are the same.
[0081] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A headset, characterized in that: include: a signal processor configured to sequentially send out a plurality of code information corresponding to different frequencies at predetermined intervals in a time code cycle; a first sound playing unit, receiving the code information, and playing a plurality of first audio signals with frequencies corresponding to the code information according to a playing sequence; and a first radio unit; The signal processor obtains a plurality of first time points at which the first sound receiving unit receives the first audio signals reflected for the first time; the signal processor determines a wearing condition of the headset according to the first time points; specifically, the signal processor is configured to subtract a plurality of second time points when the corresponding first audio signals are played from the first time points to obtain a plurality of first time differences corresponding to the first audio signals; the signal processor determines the wearing condition of the headset according to changes in the first time differences; The signal processor is further configured to sequentially send out the code information corresponding to each time code according to a plurality of time codes, and the code information corresponding to the same time code respectively corresponds to different frequencies.
2. The headset according to claim 1, characterized in that In response to the first time differences being all smaller than a first predetermined time, the signal processor determines that the wearing state of the headset is a normal wearing state.
3. The earphone according to claim 1, characterized in that In response to any one of the first time differences being less than a first predetermined time and a last first time difference among the first time differences being less than a starting first time difference among the first time differences, the signal processor determines that the wearing status of the headset is being worn, wherein, according to the playback order, the starting first time difference is before the last first time difference.
4. The earphone according to claim 1, characterized in that In response to any one of the first time differences being less than a first predetermined time and a last first time difference among the first time differences being greater than a starting first time difference among the first time differences, the signal processor determines that the wearing condition of the earphone is away from the ear, wherein, according to the playback order, the starting first time difference is before the last first time difference.
5. The earphone according to claim 1, characterized in that In response to the first time differences being greater than a first predetermined time, the signal processor determines that the wearing state of the headset is a non-wearing state.
6. The earphone according to claim 5, characterized in that The headset further includes a second sound playing unit and a second sound receiving unit. The second sound playing 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 the signal processor determines that the wearing state of the headset is not worn, the signal processor obtains multiple third time points when the second sound receiving unit receives the second audio signals reflected for the first time; the signal processor determines whether the headset is in a handheld state based on the third time points.
7. The earphone according to claim 6, characterized in that The signal processor is also configured to subtract the third time points from the corresponding fourth time points when the second audio signals are played to obtain a plurality of second time differences corresponding to the second audio signals; in response to the second time differences being less than a second predetermined time, the signal processor determines that the headset is in a handheld state.
8. A method for detecting the state of an earphone, executed by a signal processor of an earphone, characterized in that: The following steps are involved: A first sound playback unit sequentially sends a plurality of code information corresponding to different frequencies at a predetermined interval according to a plurality of time codes in a time code cycle, wherein the code information corresponds to each time code, and the code information corresponding to the same time code respectively corresponds to different frequencies, so that the first sound playback unit plays a plurality of first audio signals corresponding to the frequencies of the code information according to a playback sequence; Acquire a plurality of first time points at which a first sound receiving unit receives the first audio signals reflected for the first time; and Determining a wearing condition of the headset according to the first time points; in The step of determining a wearing condition of the headset according to the first time points comprises: Subtracting the corresponding second time points when the first audio signals are played from the first time points to obtain a plurality of first time differences corresponding to the first audio signals; and The signal processor determines the wearing condition of the earphone according to the changes of the first time differences.
9. The earphone status detection method according to claim 8, characterized in that: The step of the signal processor determining the wearing condition of the headset according to the changes of the first time differences comprises: In response to the first time differences being all smaller than a first predetermined time, the wearing state of the headset is determined to be a normal wearing state.
10. The earphone status detection method according to claim 8, characterized in that: The step of the signal processor determining the wearing condition of the headset according to the changes of the first time differences comprises: In response to the first time differences being all greater than a first predetermined time, the wearing state of the headset is determined to be a non-wearing state.
11. The earphone status detection method according to claim 10, characterized in that: The headset status detection method also includes: Sending the code information to a second sound playing unit so that the second sound playing unit plays a plurality of second audio signals corresponding to the code information according to the playing sequence; After determining that the wearing state of the earphone is not being worn, obtaining a plurality of third time points at which a second sound receiving unit receives the second audio signals reflected for the first time; and Whether the headset is in a handheld state is determined according to the third time points.
12. The earphone status detection method according to claim 11, characterized in that: The step of determining whether the headset is in a handheld state according to the third time points comprises: Subtracting the corresponding fourth time points when the second audio signals are played from the third time points to obtain a plurality of second time differences corresponding to the second audio signals; and In response to the second time differences being all smaller than a second predetermined time and the difference between the second time differences being smaller than an error value, it is determined that the headset is in a handheld state.
Citation Information
Patent Citations
Earphone wearing state detection method and earphone
CN110505547A
Portable device and method for operating the same
US20210014600A1