CN113453112A - Earphone and earphone state detection method - Google Patents

Earphone and earphone state detection method Download PDF

Info

Publication number
CN113453112A
CN113453112A CN202110662905.5A CN202110662905A CN113453112A CN 113453112 A CN113453112 A CN 113453112A CN 202110662905 A CN202110662905 A CN 202110662905A CN 113453112 A CN113453112 A CN 113453112A
Authority
CN
China
Prior art keywords
time
earphone
signal processor
code information
audio signals
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110662905.5A
Other languages
Chinese (zh)
Inventor
陈信男
徐宗葆
简荣斌
蔡耀群
林宥余
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Luxshare Precision Industry Co Ltd
Taiwan Luxshare Precision Ltd
Original Assignee
Taiwan Luxshare Precision Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taiwan Luxshare Precision Ltd filed Critical Taiwan Luxshare Precision Ltd
Priority to CN202110662905.5A priority Critical patent/CN113453112A/en
Publication of CN113453112A publication Critical patent/CN113453112A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1008Earpieces of the supra-aural or circum-aural type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Abstract

The invention provides an earphone and an earphone state detection method. The signal processor of the earphone sends a plurality of code information to the first sound playing unit, so that the first sound playing unit plays a plurality of first audio signals with different frequencies corresponding to the code information according to the playing sequence. The signal processor acquires a plurality of first time points when the first sound receiving unit receives the first audio signals reflected for the first time. The signal processor judges the wearing condition of the earphone according to the first time points.

Description

Earphone and earphone state detection method
Technical Field
The present invention relates to earphone technology, and more particularly, to an earphone and an earphone status detection method related to earphone wearing status detection.
Background
The noise source of the earphone product can be divided into two types, one is the electrical noise caused by the internal circuit or the external signal, and the manufacturer can effectively suppress and eliminate the electrical noise through the circuit design. While another Noise, so-called audio Noise (ambient Noise), affects the comfort of the user listening to music, in order to improve the ambient Noise, an Active Noise Cancellation (ANC) method is generally adopted. The traditional digital active noise reduction system samples ambient noise through a detection microphone, generates a signal for eliminating the ambient noise by using signal processing, and sends out audio signals with opposite phases of the noise through a loudspeaker so as to offset external ambient noise.
In general, an active Noise reduction system continuously monitors sounds arriving at an ear through a detection microphone located in a housing of a headphone, and an output signal of the detection microphone is amplified, digitized by an analog-to-Digital converter, and then transmitted to a Digital Noise reduction Processor (DNC Processor). The signal from the music source is digitized by an analog-to-digital converter and then processed by a digital equalizer to obtain the appropriate frequency characteristics. And then enters a 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 to be removed undergoes phase inversion, and the processed signal result is played back together with the music signal through the driver, thereby removing the noise before the noise enters the ear.
Typically headsets with active noise reduction systems require a battery or other power source to operate. A problem often encountered in this situation is that if the user removes the headset without turning it off, the power continues to be depleted. Thus, some headsets now detect whether the user is wearing the headset, and these conventional designs rely on mechanical sensors, such as contact sensors or magnets, to determine whether the headset is being worn by the user.
Disclosure of Invention
While some prior art headsets incorporate sensors to detect whether a user is wearing the headset, these sensors are not part of the headset. Rather, these sensors are often additional components that may increase the cost or complexity of the headset. In view of the above, the present invention provides an earphone and an earphone status detection method to solve the problems in the prior art.
The invention provides an earphone, which comprises a signal processor, a first sound playing unit and a first sound receiving unit. The signal processor is configured to sequentially send out a plurality of code information, wherein any two successively sent out code information in the code information correspond to different frequencies. The first sound playing 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 a playing sequence. The signal processor acquires a plurality of first time points when the first sound receiving unit receives the first audio signal reflected for the first time. The signal processor judges the wearing condition of the earphone according to the first time points.
The invention provides a method for detecting the state of an earphone, which is executed by a signal processor of the earphone. The earphone state detection method comprises the following steps: for a plurality of code information sent by a first sound playing unit, enabling the first sound playing unit to play a plurality of first audio signals corresponding to the code information according to a playing sequence, wherein any two successively sent code information in the code information correspond to different frequencies; acquiring a plurality of first time points when the 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.
Based on the above, the present invention provides an earphone and an earphone status detection method, wherein a first sound playing unit receives a plurality of code information sent by a signal processor, and plays a plurality of first audio signals corresponding to the code information according to a playing sequence. At least one audio signal with different frequencies in a first number is separated between any two audio signals with the same frequency in the first audio signals. The signal processor acquires a plurality of first time points when the first sound receiving unit receives the first audio signal reflected for the first time. The signal processor judges the wearing condition of the earphone according to the first time points. Accordingly, the earphone state detection method, the computer readable recording medium storing the program and the non-transitory computer program product of the invention can use the speaker of the general earphone and the microphone of the active noise reduction system as the first sound playing unit and the first sound receiving unit, so that no additional component is needed, and the cost or complexity of the earphone is not increased.
The invention is described in detail below with reference to the drawings and specific examples, but the invention is not limited thereto.
Drawings
Fig. 1 is a block diagram of a headset system according to an embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating an operation process of an earphone according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating an operation of a headset according to an embodiment of the invention.
Fig. 4 is a schematic diagram illustrating an operation of the earphone according to the embodiment of the invention.
Fig. 5 is a block diagram of a headset system according to an embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating an operation of the earphone according to the embodiment of the invention.
Fig. 7 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention.
Fig. 8 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention.
Fig. 9 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention.
Fig. 10 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention.
Fig. 11 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention.
Wherein, the reference numbers:
100. 500 earphone
101 signal processor
102 first sound playing unit
103 the first radio unit
201 digital-to-analog converter
202 analog-to-digital converter
203. 601 object
301. 301' earphone shell
501 second sound playing unit
502 second radio unit
PR, PL, PR ', PL': Path
S701 to S703, S801 to S802, and S901 to S907
S1001 to S1003, S1101 to S1102 steps
Detailed Description
The invention will be described in detail with reference to the following drawings, which are provided for illustration purposes and the like:
the foregoing and other technical and scientific aspects, features and utilities of the present invention will be apparent from the following detailed description of the embodiments, which is to be read in connection with the accompanying drawings. The thickness or dimensions of the various elements in the drawings are exaggerated, omitted, or simplified for the understanding and reading of those skilled in the art, and the dimensions of each element are not completely the actual dimensions, and are not intended to limit the scope of the present invention, which is not technically essential, and any structural modifications, changes in proportion, or adjustments of size, which are within the scope of the present invention and which are not affected by the effects and objectives of the present invention may be achieved. The same reference numbers will be used throughout the drawings to refer to the same or like elements. The term "coupled" or "connected" as used in the following embodiments may refer to any direct or indirect connection.
Fig. 1 is a block diagram of a headset system according to an embodiment of the present invention. Referring to fig. 1, the earphone 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 a headset, and the first sound receiving unit 103 may be a feedback microphone of an existing active noise reduction system of the headset.
Generally, the first sound playing unit 102 plays a headphone audio signal, which may be generated by an audio source during audio playing of various devices, such as a media player, a computer, a radio, a cell phone, a CD player, or a game console. For example, the user connects the headset 100 to a portable media player playing a song selected by the user to receive a headset audio signal (e.g., a song being played by the portable media player), and the first sound playing unit 102 outputs an acoustic signal of the headset audio signal. The first sound receiving unit 103 samples the output acoustic signal of the first sound playing unit 102 and the acoustic signal of the environment at the first sound playing unit 102.
The signal processor 101 receives an external command and edits and stores audio of different frequencies as codes according to time codes 1, 2, 3 … M, as shown in table (one), where M is a positive integer.
Figure BDA0003115798930000041
Watch 1
The audio frequencies corresponding to the same time code are different from each other, and any two audio frequencies which are continuously sent out are different. For example, in table (one), codes 1A, 1B … 1F corresponding to time code 1, whose corresponding audio frequencies are different from each other; any two successively sent codes correspond to different audio frequencies, for example, the frequencies corresponding to the successively sent codes 1A and 1B are 45kHz and 55kHz, respectively, and the frequencies corresponding to the successively sent codes 1F and 2A are 95kHz and 45kHz, respectively.
In the present embodiment, the signal processor 101 receives an external command, edits and stores audio having frequencies of 45kHz, 55kHz, 65kHz, 75kHz, 85kHz, 95kHz as codes 1A, 1B … 10F according to the time code 1, 2, 3 … 10. In some embodiments, the frequency corresponding to the code 1A, 1B … 1F may vary according to the actual situation (such as the applicable frequency range of the first sound playing unit 102), for example, the frequency corresponding to the code 1A, 1B … 1F may be 5kHz, 10kHz, 15kHz, 25kHz, 35kHz, 45 kHz.
In some embodiments, the signal processor 101 generates and sends out the code information of the codes 1A and 1B … 10F according to a preset rule, for example, the signal processor 101 generates and sends out the code information of the codes 1A and 1B … 1F in a period corresponding to the time code 1, generates and sends out the code information of the codes 2A and 2B … 2F in a period corresponding to the time code 2, and so on according to a preset rule. In some embodiments, after the signal processor 101 completes transmitting the code 1A, 1B … 10F (e.g., after the code 10F is issued), it may resume transmitting the code 1A, 1B … 10F. In some embodiments, after the signal processor 101 completes transmitting the code 1A, 1B … 10F (e.g., after the code 10F is issued), it may pause for a predetermined time and resume transmitting the code 1A, 1B … 10F.
In some embodiments, the content of code 1A to code 1F is the same as the content of code 2A to code 2F, respectively, e.g., code 1A is the same code information of 45kHz as code 2A, code 1B is the same code information of 55kHz as code 2B, and code 1F is the same code information of 95kHz as code 2F; by analogy, the contents of the code 1A to the code 1F are the same as the contents of the code 10A to the code 10F, respectively; that is, the code information of the same frequency of different time codes is the same. In some embodiments, the content of code 1A to code 1F is different from the content of code 2A to code 2F, respectively, such as code 1A is 45kHz with code 2A but the code information is different, code 1B is 55kHz with code 2B but the code information is different, and code 1F is 95kHz with code 2F but the code information is different; by analogy, the contents of the code 1A to the code 1F are respectively different from the contents of the code 10A to the code 10F; that is, the code information of the same frequency of different time codes is different.
Fig. 2 is a schematic diagram illustrating an operation process of an earphone according to an embodiment of the present invention. Fig. 3 is a schematic diagram illustrating an operation of a headset according to an embodiment of the invention. Referring to fig. 2 and fig. 3, the signal processor 101, the first sound playing unit 102 and the first sound receiving unit 103 are disposed in the earphone housing 301. It should be noted that although fig. 2 and 3 show the signal processor 101 as being disposed in the left ear headphone housing 301, in other embodiments, the signal processor 101 may be present in the headphone housing of the left ear, the right ear, or both ears.
The signal processor 101 sends out code information in accordance with the codes 1A and 1B … 10F. The code information is converted into an analog form by the digital-analog converter 201, and then transmitted to the first sound playing unit 102. The first sound playing unit 102 injects a corresponding audio signal into the audio signal of the earphone according to the received code information. For example, the signal processor 101 sends the code information corresponding to the code 2A to the first sound playing unit 102, and after receiving the code information corresponding to the code 2A, the first sound playing unit 102 injects the audio signal of 45kHz into the headphone audio signal.
An audio signal, such as the 45kHz audio signal described above, travels through path PL and is reflected through path PR after encountering 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 a reflected audio signal from the acoustic signal of the environment by the first sound receiving unit 103 and obtains a point in time when the reflected audio signal is received by the first sound receiving unit 103.
The signal processor 101 obtains a time difference by comparing the time point when the first sound playing unit 102 emits the audio signal with the time point when the signal processor 101 detects the reflected audio signal. Using the equation: the signal processor 101 may obtain the sum of the distances between the first sound playing unit 102 and the object 203 and between the object 203 and the first sound pickup unit 103. Since the first sound playing unit 102 and the first sound receiving unit 103 are disposed at positions where the earphones are fixed, the signal processor 101 can obtain a distance between the earphones 100 and the object 203. For example, the first sound playing unit 102 and the first sound receiving unit 103 are set at proper positions, 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 reproduction unit 102 and the object 203 is sound speed × time difference/2. Also, the headphone 100 and the object 203 may be set to a distance between the first sound playing unit 102 and the object 203.
The following describes in detail how the headset state detection method according to the embodiment of the present invention and the hardware of the headset 100 cooperate with each other with reference to the accompanying drawings.
Fig. 7 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention. Please refer to fig. 1, fig. 2, fig. 3 and fig. 7. In step S701, the signal processor 101 sequentially sends out the code information at first predetermined intervals in the playing order of 1A, 1B … 1F, and transmits the code information to the first sound playing unit 102. For example, after the code 1A is issued, the signal processor 101 waits for a first predetermined interval to issue the code 1B again, and then waits for a second predetermined interval to issue the code 1C again, so as to issue the code information sequentially until the code 1F is issued. In this embodiment, the first predetermined interval time is 1 second. The first sound playing unit 102 injects a corresponding audio signal into the audio signal of the earphone according to the received code information, so as to play a plurality of first audio signals corresponding to the code information. After the second predetermined interval, the signal processor 101 sends out the code information sequentially at the first predetermined interval in the playing order of 2A, 2B … 2F, and sends it to the first sound playing unit 102. In this embodiment, the second predetermined interval time is 1 second. The signal processor 101 repeats the above process until all the code information corresponding to the codes are transmitted to the first audio playing unit 102. In some embodiments, the second predetermined interval is a time required for the signal processor 101 to sequentially issue the codes 1A to 1F at the first predetermined interval.
In step S702, the first sound receiving unit 103 transmits the sampled acoustic signal to the signal processor 101 via the adc 202. The signal processor 101 detects the reflected audio signals from the acoustic signals of the environment 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 audio signals corresponding to the codes 1A to 10F after reflection.
In this embodiment, after the signal processor 101 sends out a code information (for example, 2A), if the signal processor 101 does not detect the corresponding reflected audio signal (in this example, the 45kHz audio signal) after the second predetermined time, the signal processor 101 adds the second predetermined time to the time point of sending out the code information as the first time point of receiving the reflected audio signal corresponding to the code 2A.
In step S703, the signal processor 101 determines a wearing condition of the earphone 100 according to the first time points. In the embodiment, the audio signals with the same frequency are played back via the first sound playing unit 102 at a time interval (e.g. the audio signals corresponding to the codes 1A and 2A) long enough by using the corresponding different time codes, so that the audio signals corresponding to the codes 1A and 2A are not easily confused by the signal processor 101 even though their frequencies are the same.
In some embodiments, the signal processor 101 determines that the wearing condition of the earphone 100 is a normal wearing state in response to the time intervals of the first time points being the same.
Fig. 8 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention. Referring to fig. 8, in some embodiments, the step S703 further includes steps S801 and S802. In step S801, when the signal processor 101 issues code information corresponding to the codes 1A and 1B … 10F, a plurality of second time points at which the code information is issued are stored, and the second time points corresponding to the same codes are subtracted from the first time points to obtain a plurality of first time differences.
In step S802, the signal processor 101 determines the wearing condition of the earphone 100 according to the changes of the first time differences.
If the first time differences are less than the preset first preset time, this situation indicates that the earphone 100 and the object 203 are stably kept 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 first time differences being 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 first predetermined time is 90 μ s. It should be noted that the first predetermined time is set according to the actual setting positions of the first sound playing unit 102 and the first sound receiving unit 103 in the earphone 100, which is not limited in the present invention.
In some embodiments, in response to that the first time differences are all smaller than the preset first predetermined time and that the difference between the first time differences is smaller than an error value, the signal processor 101 determines that the wearing condition of the earphone 100 is a normal wearing condition. In this embodiment, the first predetermined time is 90 μ s.
Fig. 4 is a schematic diagram illustrating an operation of the earphone according to the embodiment of the invention. Fig. 9 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention. In one embodiment, the code and its related parameters are as described in table (one), the first predetermined interval is 0.1 seconds, and the second predetermined interval is 0.1 seconds. Referring to fig. 4 and fig. 9, after the signal processor 101 completes steps S701, S702, and S801, it further executes step S901. In step S901, the signal processor 101 determines whether the first time differences are all greater than a preset first preset time. If yes, it means that the headphone 100 is continuously maintained at a fixed distance or more from the object 203, and therefore, in step S902, the signal processor 101 determines that the headphone 100 is not worn.
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 smaller than a first predetermined time, and if so, it indicates that the distance between the earphone 100 and the object 203 is continuously kept smaller than or equal to a fixed distance. Therefore, in step S904, the signal processor 101 determines that the wearing condition of the headset 100 is a normal wearing condition in response to the difference between the first time differences being smaller than an error value (i.e., the headset 100 and the object 203 are stably maintained at a predetermined distance).
In step S903, if the signal processor 101 determines that the first time differences are not all less than the first predetermined time, it indicates that the distance between the earphone 100 and the object 203 is changing. Therefore, in step S905, the change state of the distance between the headphone 100 and the object 203 is further determined. If there is a first time difference from the beginning and a last first time difference from the first time differences, such that the last first time difference is greater than the first time difference from the beginning, it indicates that the earphone 100 is far from the object 203, and therefore the signal processor determines in step S906 that the wearing condition of the earphone is away from the ear.
On the contrary, if there is no first time difference from the beginning and the last time difference after the beginning, the last time difference is larger than the first time difference, indicating that the earphone 100 is approaching the object 203, so the signal processor determines that the wearing condition of the earphone is in wearing in step S907.
In some embodiments, the signal processor 101 further determines a change condition of the distance between the earphone 100 and the object 203 after determining that the first time differences are not all less than the first predetermined time. If there is a first time difference from the beginning and a last first time difference from the last time difference in the sequence corresponding to the playing sequence, so that the last first time difference is smaller than the first time difference from the beginning, it indicates that the earphone 100 is approaching the object 203, and therefore the signal processor determines that the wearing condition of the earphone is in wearing.
On the contrary, if there is no first time difference from the beginning and the last time difference after the beginning, the last time difference is smaller than the first time difference, which indicates that the earphone 100 is far away from the object 203, so the signal processor determines that the wearing condition of the earphone is away from the ear.
Fig. 5 is a block diagram of a headset system according to an embodiment of the present invention. Fig. 6 is a schematic diagram illustrating an operation of the earphone according to the embodiment of the invention. Referring to fig. 5 and fig. 6, the earphone 500 of fig. 5 further includes a second sound playing unit 501 and a second sound receiving unit 502. The second sound playing unit 501 is an existing speaker of the headphone. The second sound receiving unit 502 is a feedforward microphone of the existing active noise reduction system of the earphone. The second sound playing unit 501 is disposed inside the headphone housing 301'. In some embodiments, the first sound playing unit 102 and the first sound receiving unit 103 are located on one side of the earphone, and the second sound playing unit 501 and the second sound receiving unit 502 are located on the other side of the earphone. For example, the first sound playing unit 102 and the first sound receiving unit 103 are located on the earphone housing 301 corresponding to the right ear, and the second sound playing unit 501 and the second sound receiving unit 502 are located on the earphone housing 301' corresponding to the left ear.
In general, the second sound playing unit 501 plays a headphone audio signal, which may be generated by an audio source during audio playing of various devices, as in the first sound playing unit 102. The second sound receiving unit 502 is disposed opposite to the first sound playing unit 102, and the second sound receiving unit 502 samples an acoustic signal of an environment.
The signal processor 101 sends out code information based on the codes 1A and 1B … 10F and transmits the code information to the second sound playing unit 501. The second sound playing unit 501 injects a corresponding audio signal into the headphone audio signal according to the received code information. For example, the signal processor 101 sends the code information corresponding to the code 2A to the second sound playing unit 501, and after the second sound playing unit 501 receives the code information corresponding to the code 2A, the audio signal of 45kHz is injected into the headphone audio signal.
Fig. 10 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention. Please refer to fig. 5, fig. 6 and fig. 10.
In step S902, the signal processor 101 determines that the headphone 500 is in an unworn state. At this time, the condition of the earphone 500 is as shown in fig. 6, and an audio signal (for example, the aforementioned 45kHz audio signal) emitted by the second sound playing unit 501 propagates through the path PL'. Since the earphone 500 is not worn, the audio signal emitted from the second sound playing unit 501 is reflected by 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 a reflected audio signal from the acoustic signals of the environment by the second sound pickup unit 502 and obtains a time point when the reflected audio signal is received by the second sound pickup unit 502.
In step S1001, the signal processor 101 issues code information to the second sound playing unit 501 at the first predetermined interval time in the playing order of 1A, 1B … 1F. In this embodiment, the first predetermined interval time is 0.1 seconds. The second audio playing unit 501 injects a corresponding audio signal into the audio signal of the earphone according to the received code information, so as to play a plurality of second audio signals corresponding to the code information. After the interval of the second predetermined interval time, the signal processor 101 sends out the code information to the second sound playing unit 501 in the playing order of 2A, 2B … 2F at the first predetermined interval time. In this embodiment, the second predetermined interval time is 0.1 seconds. The signal processor 101 repeats the above process until all the code information corresponding to the codes are transmitted to the second sound playing unit 501.
In step S1002, the second sound pickup unit 502 transmits the sampled acoustic signal to the signal processor 101. The signal processor 101 detects the reflected audio signals from the acoustic signals of the environment received by 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.
In step S1003, the signal processor 101 determines whether the headset 500 is in the handheld state according to the third time points.
In some embodiments, the signal processor 101 determines that the headset 500 is in the handheld state in response to the time intervals of the third time points being the same.
Fig. 11 is a flowchart illustrating a method for detecting a state of a headset according to an embodiment of the invention. Referring to fig. 11, in some embodiments, the step S1003 further includes steps S1101 and S1102. In step S1101, when the signal processor 101 issues code information corresponding to the codes 1A and 1B … 10F, it stores a plurality of fourth time points at which the code information is issued, and subtracts the fourth time points corresponding to the same code from the third time points to obtain a plurality of second time differences.
In step S1102, the signal processor 101 determines whether the headset 500 is in the handheld state according to the second time differences.
If the first time differences are all smaller than the second predetermined time and the second time differences are substantially the same, which indicates that the headset 500 and the object 601 are stably maintained at a predetermined distance, it can be determined that the headset 500 is in a handheld state. Therefore, the signal processor 101 determines that the headset 500 is in the handheld state in response to the second time differences being less than the predetermined second predetermined time and the difference between the second time differences being less than an error value. In this embodiment, the second predetermined time is 900 μ s. It should be noted that the second predetermined time is set according to the actual installation positions of the second sound playing unit 501 and the second sound receiving unit 502 in the earphone 500, and the invention is not limited thereto.
In the present specification, "computer readable medium" 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 Disk (DVD), a portable Disk, a database accessible via a network, or any other storage medium known to those skilled in the art 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 signal processor 101 for execution. Such instructions embodied on the medium are generally referred to as "computer program code" or "computer program product," which may be files capable of being transmitted over a network or stored on a non-transitory computer readable storage medium. Such instructions, when executed, may enable the signal processor 101 to perform steps or functions as recited in the present disclosure.
In view of the foregoing, embodiments of the present invention provide an earphone, an earphone status detection method, a computer readable recording medium having a program stored therein, and a non-transitory computer program product, in which a first audio playing unit receives a plurality of code information sent by a signal processor and plays a plurality of first audio signals corresponding to the code information according to a playing sequence. At least one audio signal with different frequencies in a first number is separated between any two audio signals with the same frequency in the first audio signals. The signal processor acquires a plurality of first time points when the first sound receiving unit receives the first audio signal reflected for the first time. The signal processor judges the wearing condition of the earphone according to the first time points. Accordingly, the earphone state detection method, the computer readable recording medium storing the program and the non-transitory computer program product of the embodiments of the present invention can use the speaker of the general earphone and the microphone of the active noise reduction system as the first sound playing unit and the first sound receiving unit, so that no additional component is required and the cost or complexity of the earphone is not increased.
Furthermore, in an embodiment of the present invention, the audio signals with the same frequency are played back through the first sound playing unit at a time interval long enough by using the corresponding different time codes, so that the signal processor is not easy to confuse the audio signals even though their frequencies are the same.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it should be understood that various changes and modifications can be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (15)

1. An earphone, comprising:
a signal processor configured to sequentially send out a plurality of code information, wherein any two successively sent out code information in the code information correspond to different frequencies;
a first sound playing unit for receiving the code information and playing a plurality of first audio signals corresponding to the code information according to a playing sequence; and
a first radio unit;
the signal processor acquires a plurality of first time points when the first sound receiving unit receives the first audio signals reflected for the first time; the signal processor judges a wearing condition of the earphone according to the first time points.
2. The headphone of claim 1, wherein the signal processor is further configured to subtract the first time points from corresponding second time points when the first audio signals are played respectively to obtain first time differences corresponding to the first audio signals; the signal processor judges the wearing condition of the earphone according to the changes of the first time differences.
3. The earphone according to claim 2, wherein the signal processor determines the wearing condition of the earphone as a normal wearing condition in response to the first time differences being less than a first predetermined time.
4. The earphone according to claim 2, wherein the signal processor determines the wearing condition of the earphone as being worn in response to any one of the first time differences being less than a first predetermined time and a last first time difference of the first time differences being less than a starting first time difference of the first time differences, wherein the starting first time difference precedes the last first time difference according to the playing sequence.
5. The earphone according to claim 2, wherein the signal processor determines the wearing condition of the earphone as out-of-ear in response to any one of the first time differences being less than a first predetermined time and a last first time difference of the first time differences being greater than a starting first time difference of the first time differences, wherein the starting first time difference precedes the last first time difference according to the playing order.
6. The earphone according to claim 2, wherein the signal processor determines the wearing condition of the earphone as an unworn condition in response to the first time differences being greater than a first predetermined time.
7. The earphone as claimed in claim 6, further comprising a second audio playing unit and a second sound receiving unit, wherein the second audio playing unit receives the code information from the signal processor, and plays a plurality of second audio signals corresponding to the code information according to the playing sequence; after the signal processor judges that the wearing condition of the earphone is an unworn state, the signal processor acquires a plurality of third time points when the second sound receiving unit receives the second audio signals reflected for the first time; the signal processor judges whether the earphone is in a handheld state or not according to the third time points.
8. The headphone of claim 7, wherein the signal processor is further configured to subtract a plurality of fourth time points of the second audio signals from the third time points respectively to obtain a plurality of second time differences corresponding to the second audio signals; and in response to the second time differences being less than a second preset time, the signal processor judges that the earphone is in a handheld state.
9. The headset as claimed in claim 1, wherein the signal processor is further configured to sequentially transmit the code information corresponding to each time code according to a plurality of time codes, the code information corresponding to the same time code corresponding to different frequencies respectively.
10. A method for detecting a state of a headset, performed by a signal processor of the headset, comprising the steps of:
sequentially sending a plurality of code information to a first sound playing unit, so that the first sound playing unit plays a plurality of first audio signals corresponding to the code information according to a playing sequence, wherein any two successively sent code information in the code information correspond to different frequencies;
acquiring a plurality of first time points when a first sound receiving unit receives the first audio signals reflected for the first time; and
and judging a wearing condition of the earphone according to the first time points.
11. The method of claim 10, wherein the step of determining a wearing condition of the headset according to the first time points comprises:
subtracting a plurality of corresponding second time points when the first audio signals are played from the first time points respectively to obtain a plurality of first time differences corresponding to the first audio signals; and
the signal processor judges the wearing condition of the earphone according to the changes of the first time differences.
12. The method as claimed in claim 11, wherein the step of the signal processor determining the wearing condition of the headset according to the variation of the first time differences further comprises:
and judging that the wearing condition of the earphone is a normal wearing condition in response to the first time differences being less than a first preset time.
13. The method as claimed in claim 11, wherein the step of the signal processor determining the wearing condition of the headset according to the variation of the first time differences further comprises:
and judging that the wearing condition of the earphone is an unworn state in response to the first time differences being greater than a first preset time.
14. The method of claim 13, further comprising:
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 the wearing condition of the earphone is judged to be the non-wearing state, a plurality of third time points at which a second sound receiving unit receives the second audio signals reflected for the first time are obtained; and
and judging whether the earphone is in a handheld state or not according to the third time points.
15. The method of claim 14, wherein the step of determining whether the headset is in a handheld state according to the third time points comprises:
subtracting a plurality of corresponding fourth time points of the second audio signals during playing from the plurality of third time points respectively to obtain a plurality of second time differences corresponding to the plurality of second audio signals; and
and judging that the earphone is in a handheld state in response to the fact that the second time differences are all smaller than a second preset time and the difference of the second time differences is smaller than an error value.
CN202110662905.5A 2021-06-15 2021-06-15 Earphone and earphone state detection method Pending CN113453112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110662905.5A CN113453112A (en) 2021-06-15 2021-06-15 Earphone and earphone state detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110662905.5A CN113453112A (en) 2021-06-15 2021-06-15 Earphone and earphone state detection method

Publications (1)

Publication Number Publication Date
CN113453112A true CN113453112A (en) 2021-09-28

Family

ID=77811401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110662905.5A Pending CN113453112A (en) 2021-06-15 2021-06-15 Earphone and earphone state detection method

Country Status (1)

Country Link
CN (1) CN113453112A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581796A (en) * 2012-08-02 2014-02-12 索尼公司 Headphone device, wearing state detection device, and wearing state detection method
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
CN107920298A (en) * 2018-01-03 2018-04-17 京东方科技集团股份有限公司 A kind of earphone, headset control method and device
CN110099324A (en) * 2019-05-23 2019-08-06 歌尔科技有限公司 A kind of detection method, detection device and the earphone of earphone wearing state
CN110291581A (en) * 2016-10-24 2019-09-27 爱浮诺亚股份有限公司 Headphone is detected from ear
US20200014996A1 (en) * 2018-07-09 2020-01-09 Avnera Corporation Headphone off-ear detection
CN111149369A (en) * 2017-10-10 2020-05-12 思睿逻辑国际半导体有限公司 On-ear state detection for a headset
US20200374617A1 (en) * 2019-05-23 2020-11-26 Beijing Xiaoniao Tingting Technology Co., Ltd Method and device for detecting wearing state of earphone and earphone
US20210014600A1 (en) * 2019-07-11 2021-01-14 Infineon Technologies Ag Portable device and method for operating the same
CN112911438A (en) * 2019-12-04 2021-06-04 罗伯特·博世有限公司 Earphone wearing state detection method and equipment and earphone

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581796A (en) * 2012-08-02 2014-02-12 索尼公司 Headphone device, wearing state detection device, and wearing state detection method
CN104661153A (en) * 2014-12-31 2015-05-27 歌尔声学股份有限公司 Earphone sound effect compensation method and device as well as earphone
CN110291581A (en) * 2016-10-24 2019-09-27 爱浮诺亚股份有限公司 Headphone is detected from ear
CN111149369A (en) * 2017-10-10 2020-05-12 思睿逻辑国际半导体有限公司 On-ear state detection for a headset
CN107920298A (en) * 2018-01-03 2018-04-17 京东方科技集团股份有限公司 A kind of earphone, headset control method and device
US20200014996A1 (en) * 2018-07-09 2020-01-09 Avnera Corporation Headphone off-ear detection
CN110099324A (en) * 2019-05-23 2019-08-06 歌尔科技有限公司 A kind of detection method, detection device and the earphone of earphone wearing state
US20200374617A1 (en) * 2019-05-23 2020-11-26 Beijing Xiaoniao Tingting Technology Co., Ltd Method and device for detecting wearing state of earphone and earphone
US20210014600A1 (en) * 2019-07-11 2021-01-14 Infineon Technologies Ag Portable device and method for operating the same
CN112911438A (en) * 2019-12-04 2021-06-04 罗伯特·博世有限公司 Earphone wearing state detection method and equipment and earphone

Similar Documents

Publication Publication Date Title
US9479883B2 (en) Audio signal processing apparatus, audio signal processing method, and program
US20110144779A1 (en) Data processing for a wearable apparatus
CN114521333A (en) Active noise reduction audio device and system
EP4102855A1 (en) Headphone and headphone status detection method
CN110521115B (en) Amplifier device of sound transducer and sound generating unit
US8315399B2 (en) Device for and a method of processing audio data
CN105814909A (en) System and method for feedback detection
JP2009302991A (en) Audio signal processing apparatus, audio signal processing method and audio signal processing program
JP2011203654A (en) Voice reproducing device, voice reproduction method, and program
US20180279035A1 (en) Portable device and method for entering power-saving mode
US20070076894A1 (en) Audio control system
CN113453112A (en) Earphone and earphone state detection method
JP2008219713A (en) Noise cancel headphone
JP7461771B2 (en) Multi-channel audio system, multi-channel audio device, program, and multi-channel audio reproduction method
JP2007259241A (en) Noise canceling headphone, and method of switching noise canceling control mode
CN115866473A (en) Earphone and earphone state detection method
JP2018148329A (en) Determination device and determination method
EP3901946B1 (en) Voice recognition device, control method of voice recognition device, content reproducing device, and content transmission/reception system
CN112585993B (en) Sound signal processing system and sound signal processing device
JP4985562B2 (en) Recording apparatus, method and program
JP2010033669A (en) Signal processing device
JP2010050940A (en) Method for generating stereophonic sound
JPH04137592U (en) sound equipment
JP2013043578A (en) Sound volume change notifying device and sound volume change notifying method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination