Patent Description:
The noise source of headphone products may be divided into two types. One is electrical noise caused by internal circuits or external signals, and manufacturers can effectively suppress and cancel the electrical noise through circuit design. The other type of noise is the so-called audio noise (environmental noise), which affects the comfort of listening to music using a headphone. In order to alleviate the environmental noise, an active noise cancelation (ANC) method is generally adopted. A conventional digital ANC system samples noise in the surrounding environment through a detection microphone, performs signal processing to generate signals for canceling the environmental noise, and transmits audio signals having phases opposite to the phase of the noise through a speaker, to counteract the noise in the external environment.

Generally, the ANC system continuously monitors the sound reaching the ears through a detection microphone located in a headphone shell. An output signal of the detection microphone is amplified, digitized by an analog-to-digital converter, and then sent to a digital noise cancellation processor (DNC processor). A signal from a music source is digitized by the analog-to-digital converter and then processed by a digital equalizer to obtain appropriate frequency characteristics. Then, the signal enters the DNC processor, and the DNC processor subtracts environmental noise from the music source signal and extracts to-be-canceled noise. The extracted to-be-canceled noise undergoes phase inversion, and the processed signal results are replayed together with the music signal through a driver, so that the noise is canceled before entering the ears.

Generally, headphones with an ANC system require a battery or another power source to operate. In this case, there is a common problem that if a user removes the headphone without turning the headphone off, the headphone continues to consume power until the battery runs down. Therefore, currently, some headphones can detect whether the user is wearing the headphone, and the conventional designs rely on mechanical sensors such as touch sensors or magnets to determine whether the headphone is being worn by the user.

<CIT> relates to a portable device comprising a microphone structure configured for converting a received audio signal into an electronic signal representing the received audio signal and for transceiving an ultrasonic wave by transmitting the ultrasonic wave and by receiving a reflection of the ultrasonic wave with said portable device comprising a control unit configured for evaluating the reflection of the ultrasonic wave so as to obtain an evaluation result and for controlling an operation of the portable device based on the evaluation result.

Although some existing headphones are equipped with sensors to detect whether the user is wearing the headphone, the sensors are not part of the headphones. Instead, the sensors are usually additional components, which may increase the cost or complexity of the headphone. In view of this, the present invention provides a headphone and a headphone status detection method, to alleviate the existing technical problem.

The present invention provides a headphone. The headphone includes a signal processor, a first audio playback unit, and a first audio receiving unit. The signal processor is configured to sequentially transmit a plurality of code messages, where any two code messages that are successively transmitted among the plurality of code messages correspond to different frequencies. The first audio playback unit receives a plurality of code messages transmitted by the signal processor, and plays a plurality of first audio signals corresponding to the code messages according to a playback sequence. The signal processor obtains a plurality of first time points at which the first audio receiving unit receives the plurality of first audio signals that are reflected for the first time. The signal processor further determines a wear status of the headphone according to the plurality of first time points.

The present invention provides a headphone status detection method, performed by a signal processor of a headphone. The headphone status detection method includes the following steps: transmitting a plurality of code messages to a first audio playback unit, so that the first audio playback unit plays a plurality of first audio signals corresponding to the code messages according to a playback sequence, where any two code messages that are successively transmitted among the code messages correspond to different frequencies; acquiring a plurality of first time points at which a first audio receiving unit receives the first audio signals that are reflected for the first time; and determining a wear status of the headphone according to the first time points.

Based on the above, the present invention provides a headphone and a headphone status detection method. The first audio playback unit receives a plurality of code messages transmitted by the signal processor, and plays a plurality of first audio signals corresponding to the plurality of code messages according to a playback sequence. Any two audio signals with a same frequency among the first audio signals are spaced by at least a first quantity of audio signals with frequencies different from each other. The signal processor obtains a plurality of first time points at which the first audio receiving unit receives the plurality of first audio signals that are reflected for the first time. The signal processor further determines a wear status of the headphone according to the plurality of first time points. Accordingly, in the headphone, the headphone status detection method, a computer-readable recording medium with a stored program, and a non-transitory computer program product according to the present invention, an existing speaker in a headphone can be used as the first audio playback unit and a microphone with an ANC system can be used as the first audio receiving unit. Therefore, no additional components are required, and the cost or complexity of the headphone is not increased.

The foregoing and other technical contents, features, and effects of the present invention can be clearly presented below in detailed description with reference to embodiments of the accompanying drawings. Thicknesses or sizes of the elements in the drawings expressed in an exaggerated, omitted or general manner are used to help a person skilled in the art to understand and read, and the size of each element is not a completely actual size and is not intended to limit restraint conditions under which the present invention can be implemented and therefore have no technical significance. Any modification to the structure, change to the proportional relationship or adjustment on the size should fall within the scope of the technical content disclosed by the present invention without affecting the effects and the objectives that can be achieved by the present invention. The same reference numerals are used to indicate the same or similar elements in all of the drawings. The term "coupled" or "connect" provided in the following embodiments may refer to any direct or indirect connection means.

<FIG> is a system block diagram of a headphone drawn according to an embodiment of the present invention. Referring to <FIG>, the headphone <NUM> includes a signal processor <NUM>, a first audio playback unit <NUM>, and a first audio receiving unit <NUM>. In this embodiment, the first audio playback unit <NUM> may be an existing speaker of the headphone, and the first audio receiving unit <NUM> may be an existing feedback microphone with an ANC system of the headphone.

Generally, the first audio playback unit <NUM> plays a headphone audio signal. The headphone audio signal may be generated by an audio source during the audio playback of various devices. The devices may be, for example, a media player, a computer, a radio, a mobile phone, a CD player, or a game console. For example, a user connects the headphone <NUM> to a portable media player that plays songs selected by the user, so as to receive the headphone audio signal (for example, a song being played by the portable media player), and the first audio playback unit <NUM> outputs an acoustic signal of the headphone audio signal. The first audio receiving unit <NUM> samples the acoustic signal outputted by the first audio playback unit <NUM> and an acoustic signal of the environment at the first audio playback unit <NUM>.

The signal processor <NUM> receives external commands, and edits and stores audios with different frequencies as codes according to time codes <NUM>, <NUM>, <NUM>. As shown in Table (<NUM>), M is a positive integer.

Audio frequencies corresponding to a same time code are different from each other, and audio frequencies that are successively transmitted are different. For example, in Table (<NUM>), for the codes 1A, 1B. 1F corresponding to the time code <NUM>, the corresponding audio frequencies are different from each other; and any two code messages that are successively transmitted correspond to different audio frequencies. For example, frequencies corresponding to the code 1A and the code 1B that are successively transmitted are respectively <NUM> and <NUM>, and frequencies corresponding to the code 1F and the code 2A that are successively transmitted are respectively <NUM> and <NUM>.

In this embodiment, the signal processor <NUM> receives external commands, and edits and stores audios with frequencies of <NUM>, <NUM>, <NUM>, <NUM>, <NUM>, and <NUM> as the codes 1A, 1B. and 10F according to the time codes <NUM>, <NUM>, <NUM>. In some embodiments, frequencies corresponding to the codes 1A, 1B. 1F may vary according to requirements and actual situations (for example, an applicable frequency range of the first audio playback unit <NUM>). For example, the frequencies corresponding to the codes 1A, 1B. and 1F may be respectively <NUM>, <NUM>, <NUM>, <NUM>, <NUM>, and <NUM>.

In some embodiments, the signal processor <NUM> generates and transmits code messages of the codes 1A, 1B. and 10F according to a preset rule. For example, according to a preset rule, the signal processor <NUM> generates and transmits code messages of the codes 1A, 1B. and 1F in a period corresponding to the time code <NUM>, generates and transmits code messages of the codes 2A, 2B. and 2F in a period corresponding to the time code <NUM>, and so on. In some embodiments, after transmitting the codes 1A, 1B. and 10F (for example, after transmitting the code 10F), the signal processor <NUM> re-starts to transmit the codes 1A, 1B. In some embodiments, after transmitting the codes 1A, 1B. and 10F (for example, after transmitting the code 10F), the signal processor <NUM> pauses for a predetermined time and then re-starts to transmit the codes 1A, 1B.

In some embodiments, content of the code 1A to the code 1F is respectively the same as that of the code 2A to the code 2F. For example, the code 1A and the code 2Aare a same code message of <NUM>, the code 1B and the code 2B are a same code message of <NUM>, and the code 1F and the code 2F are a same code message of <NUM>. By analogy, the content of the code 1A to the code 1F is respectively the same as that of the code 10A to the code 10F. That is, code messages of a same frequency of different time codes are the same. In some embodiments, content of the code 1A to the code 1F is respectively different from that of the code 2A to the code 2F. For example, both the code 1A and the code 2A are of <NUM> but code messages of the two are different, both the code 1B and the code 2B are of <NUM> but code messages of the two are different, and both the code 1F and the code 2F are of <NUM> but code messages of the two are different. By analogy, the content of the code 1A to the code 1F is respectively different from that of the code 10A to the code 10F. That is, code messages of a same frequency of different time codes are different.

<FIG> is a schematic operation flowchart of the headphone drawn according to an embodiment of the present invention. <FIG> is a schematic operation diagram of the headphone drawn according to an embodiment of the present invention. Referring to <FIG> and <FIG> together, the signal processor <NUM>, the first audio playback unit <NUM>, and the first audio receiving unit <NUM> are disposed inside a headphone shell <NUM>. It should be noted that, <FIG> and <FIG> show the signal processor <NUM> as being disposed in the headphone shell <NUM> of the left ear, but in other embodiments, the signal processor <NUM> may exist in the headphone shell of the left ear, right ear, or both ears.

The signal processor <NUM> transmits code messages according to the codes 1A, 1B. The code messages are converted into an analog form via a digital-to-analog converter <NUM>, and then transmitted to the first audio playback unit <NUM>. The first audio playback unit <NUM> injects a corresponding audio signal into the headphone audio signal according to the received code messages. For example, when the signal processor <NUM> transmits code messages corresponding to the code 2A to the first audio playback unit <NUM>, the first audio playback unit <NUM> injects an audio signal of <NUM> into the headphone audio signal after receiving the code messages corresponding to the code 2A.

An audio signal (for example, the audio signal of <NUM>) propagates via a path PL and is reflected via a path PR after encountering an object <NUM>. When sampling an acoustic signal of the environment, the first audio receiving unit <NUM> transmits the sampled acoustic signal to the signal processor <NUM> via an analog-to-digital converter <NUM>. The signal processor <NUM> detects a reflected audio signal from the acoustic signal of the environment sampled by the first audio receiving unit <NUM>, and obtains a time point at which the first audio receiving unit <NUM> receives the reflected audio signal.

The signal processor <NUM> can obtain a time difference by comparing a time point at which the first audio playback unit <NUM> transmits the audio signal and a time point at which the signal processor <NUM> detects the reflected audio signal. Using an equation: distance = sound speed × time difference, the signal processor <NUM> can obtain the sum of a distance between the first audio playback unit <NUM> and the object <NUM> and a distance between the object <NUM> and the first audio receiving unit <NUM>. Since the first audio playback unit <NUM> and the first audio receiving unit <NUM> are disposed at fixed positions of the headphone, the signal processor <NUM> can obtain a distance between the headphone <NUM> and the object <NUM>. For example, the first audio playback unit <NUM> and the first audio receiving unit <NUM> are disposed in appropriate positions, so that a predetermined distance between the first audio playback unit <NUM> and the object <NUM> is the same as a predetermined distance between the first audio receiving unit <NUM> and the object <NUM>. In this case, the distance between the first audio playback unit <NUM> and the object <NUM> is equal to sound speed × time difference/<NUM>. In addition, the distance between the headphone <NUM> and the object <NUM> may be set as the distance between the first audio playback unit <NUM> and the object <NUM>.

A headphone status detection method and cooperation between hardware of the headphone <NUM> according to the embodiments of the present invention are described in detail below with reference to the drawings.

<FIG> is a flowchart of a headphone status detection method drawn according to an embodiment of the present invention. Refer to <FIG>, <FIG>, and <FIG> together. In step S701, the signal processor <NUM> sequentially transmits the code messages to the first audio playback unit <NUM> according to a playback sequence of 1A, 1B. and 1F at a first predetermined interval. For example, after transmitting the code 1A, the signal processor <NUM> waits for the first predetermined interval to transmit the code 1B, and then waits for the first predetermined interval to transmit the code 1C. The code messages are transmitted in this sequence until the code 1F is transmitted. In this embodiment, the first predetermined interval is <NUM> second. The first audio playback unit <NUM> injects a corresponding audio signal into the headphone audio signal according to the received code messages, to play a plurality of first audio signals corresponding to the code messages. After a second predetermined interval, the signal processor <NUM> sequentially transmits the code messages to the first audio playback unit <NUM> according to a playback sequence of 2A, 2B. and 2F at the first predetermined interval. In this embodiment, the second predetermined interval is <NUM> second. The signal processor <NUM> repeats the above process until the code messages corresponding to all codes are transmitted to the first audio playback unit <NUM>. In some embodiments, the second predetermined interval is the time required for the signal processor <NUM> to sequentially transmit the code 1A to the code 1F at the first predetermined interval.

In step S702, the first audio receiving unit <NUM> transmits the sampled acoustic signal to the signal processor <NUM> via the analog-to-digital converter <NUM>. The signal processor <NUM> detects reflected audio signals in the acoustic signal of the environment through the first audio receiving unit <NUM>, and obtains a plurality of first time points at which the first audio receiving unit <NUM> receives the reflected audio signals corresponding to the code 1A to the code 10F.

In this embodiment, after the signal processor <NUM> transmits a code message (for example, 2A), if the signal processor <NUM> does not detect the corresponding reflected audio signal (in this example, the audio signal of <NUM>) after the second predetermined time, the signal processor <NUM> uses a time point obtained by adding the second predetermined time to a time point at which the code message is transmitted as the first time point at which the reflected audio signal corresponding to the code 2A is received.

In step S703, the signal processor <NUM> determines a wear status of the headphone <NUM> according to the first time points. In this embodiment, by corresponding to different time codes, audio signals with a same frequency (for example, audio signals corresponding to the codes 1A and 2A) are played via the first audio playback unit <NUM> after a sufficiently long interval. Therefore, the signal processor <NUM> is not likely to be confused with the audio signals corresponding to the codes 1A and 2A even though the frequencies of the audio signals are the same.

In some embodiments, in response to time intervals of the first time points being the same, the signal processor <NUM> determines that the wear status of the headphone <NUM> is a normal wear status.

<FIG> is a flowchart of the headphone status detection method drawn according to an embodiment of the present invention. Referring to <FIG>, in some embodiments, the foregoing step S703 further includes steps S801 and S802. In step S801, when transmitting code messages corresponding to the codes 1A, 1B. and 10F, the signal processor <NUM> stores a plurality of second time points at which the code messages are transmitted, and then respectively subtracts the second time points corresponding to the same codes from the first time points, to obtain a plurality of first time differences.

In step S802, the signal processor <NUM> further determines the wear status of the headphone <NUM> according to changes of the first time differences.

If the first time differences are all less than a first predetermined time that is preset, it indicates that the headphone <NUM> is stably maintained within a preset distance from the object <NUM>, and it can be determined that the headphone <NUM> is in a normal wear status. Therefore, in some embodiments, in response to the first time differences all being less than the first predetermined time that is preset, the signal processor <NUM> determines that the wear status of the headphone <NUM> is a normal wear status. In this embodiment, the first predetermined time is <NUM>. It should be noted that, the first predetermined time is set according to actual positions at which the first audio playback unit <NUM> and the first audio receiving unit <NUM> are disposed in the headphone <NUM>, and the present invention is not limited to this.

In some embodiments, in response to the first time differences all being less than the first predetermined time that is preset and each difference between the first time differences being less than an error value, the signal processor <NUM> determines that the wear status of the headphone <NUM> is a normal wear status. In this embodiment, the first predetermined time is <NUM>.

<FIG> is a schematic operation diagram of the headphone drawn according to an embodiment of the present invention. <FIG> is a flowchart of the headphone status detection method drawn according to an embodiment of the present invention. In an embodiment, codes and parameters related to the codes are as recorded in Table (<NUM>), the first predetermined interval is <NUM> seconds, and the second predetermined interval is <NUM> seconds. Referring to <FIG> and <FIG> together, after performing steps S701, S702, and S801, the signal processor <NUM> further performs step S901. In step S901, the signal processor <NUM> determines whether the first time differences are all greater than the first predetermined time that is preset. If yes, it indicates that the headphone <NUM> continuously maintains a fixed distance or more from the object <NUM>. Therefore, in step S902, the signal processor <NUM> determines that the headphone <NUM> is in a non-wear status.

In step S901, if the signal processor <NUM> determines that the first time differences are not all greater than the first predetermined time, go to step S903. In step S903, the signal processor <NUM> determines whether the first time differences are all less than the first predetermined time. If yes, it indicates that the headphone <NUM> continuously maintains a fixed distance or less from the object <NUM>. Therefore, in step S904, in response to the difference between the first time differences being less than an error value (that is, the headphone <NUM> stably maintains a preset distance from the object <NUM>), the signal processor <NUM> determines that the wear status of the headphone <NUM> is a normal wear status.

In step S903, if the signal processor <NUM> determines that the first time differences are not all less than the first predetermined time, it indicates that a distance between the headphone <NUM> and the object <NUM> is in change. Therefore, in step S905, a change status of the distance between the headphone <NUM> and the object <NUM> is further determined. If corresponding to the playback sequence, among the first time differences, there is a start first time difference and a last first time difference later in sequence so that the last first time difference is greater than the start first time difference, it indicates that the headphone <NUM> is moving away from the object <NUM>. Therefore, the signal processor determines in step S906 that the wear status of the headphone is leaving-the-ear.

On the contrary, if there is no start first time difference and last first time difference later in sequence so that the last first time difference is greater than the start first time difference, it indicates that the headphone <NUM> is coming close to the object <NUM>. Therefore, the signal processor determines in step S907 that the wear status of the headphone is a wearing status.

In some embodiments, after determining that the first time differences are not all less than the first predetermined time, the signal processor <NUM> further determines the change status of the distance between the headphone <NUM> and the object <NUM>. If corresponding to the playback sequence, among the first time differences, there is a start first time difference and a last first time difference later in sequence so that the last first time difference is less than the start first time difference, it indicates that the headphone <NUM> is coming close to the object <NUM>. Therefore, the signal processor determines that the wear status of the headphone is a wearing status.

On the contrary, if there is no start first time difference and last first time difference later in sequence so that the last first time difference is less than the start first time difference, it indicates that the headphone <NUM> is moving away from the object <NUM>. Therefore, the signal processor determines that the wear status of the headphone is leaving-the-ear.

<FIG> is a system block diagram of a headphone drawn according to an embodiment of the present invention. <FIG> is a schematic operation diagram of the headphone drawn according to an embodiment of the present invention. Referring to <FIG> together, the headphone <NUM> of <FIG> further includes a second audio playback unit <NUM> and a second audio receiving unit <NUM>. The second audio playback unit <NUM> is an existing speaker of the headphone. The second audio receiving unit <NUM> is an existing feed-forward microphone of an ANC system of the headphone. The second audio playback unit <NUM> is disposed in a headphone shell <NUM>'. In some embodiments, the first audio playback unit <NUM> and the first audio receiving unit <NUM> are located on one side of the headphone, and the second audio playback unit <NUM> and the second audio receiving unit <NUM> are located on the other side of the headphone. For example, the first audio playback unit <NUM> and the first audio receiving unit <NUM> are located in the headphone shell <NUM> corresponding to the right ear, and the second audio playback unit <NUM> and the second audio receiving unit <NUM> are located in the headphone shell <NUM>' corresponding to the left ear.

Generally, similar to the first audio playback unit <NUM>, the second audio playback unit <NUM> plays a headphone audio signal. The headphone audio signal may be generated by an audio source during the audio playback of various devices. The second audio receiving unit <NUM> is disposed opposite to the first audio playback unit <NUM>, and the second audio receiving unit <NUM> samples an acoustic signal of the environment.

The signal processor <NUM> transmits code messages to the second audio playback unit <NUM> according to the codes 1A, 1B. The second audio playback unit <NUM> injects a corresponding audio signal into the headphone audio signal according to the received code messages. For example, when the signal processor <NUM> transmits code messages corresponding to the code 2A to the second audio playback unit <NUM>, the second audio playback unit <NUM> injects an audio signal of <NUM> into the headphone audio signal after receiving the code messages corresponding to the code 2A.

<FIG> is a flowchart of the headphone status detection method drawn according to an embodiment of the present invention. Refer to <FIG>, and <FIG> together.

In step S902, the signal processor <NUM> determines that the headphone <NUM> is in a non-wear status. In this case, the status of the headphone <NUM> is shown in <FIG>, and an audio signal (for example, the audio signal of <NUM>) transmitted by the second audio playback unit <NUM> propagates via a path PL'. Because the headphone <NUM> is in a non-wear status, the audio signal transmitted by the second audio playback unit <NUM> is reflected via a path PR' after encountering an object <NUM>. When sampling an acoustic signal of the environment, the second audio receiving unit <NUM> transmits the sampled acoustic signal to the signal processor <NUM>. The signal processor <NUM> detects reflected audio signal in the acoustic signal of the environment through the second audio receiving unit <NUM>, and obtains a time point at which the second audio receiving unit <NUM> receives the reflected audio signal.

In step S1001, the signal processor <NUM> transmits the code messages to the second audio playback unit <NUM> according to a playback sequence of 1A, 1B. and 1F at a first predetermined interval. In this embodiment, the first predetermined interval is <NUM> seconds. The second audio playback unit <NUM> injects a corresponding audio signal into the headphone audio signal according to the received code messages, to play a plurality of second audio signals corresponding to the code messages. After a second predetermined interval, the signal processor <NUM> transmits the code messages to the second audio playback unit <NUM> according to a playback sequence of 2A, 2B. and 2F at the first predetermined interval. In this embodiment, the second predetermined interval is <NUM> seconds. The signal processor <NUM> repeats the above process until the code messages corresponding to all codes are transmitted to the second audio playback unit <NUM>.

In step S1002, the second audio receiving unit <NUM> transmits the sampled acoustic signal to the signal processor <NUM>. The signal processor <NUM> detects a reflected audio signal in the acoustic signal of the environment through the second audio receiving unit <NUM>, and obtains a plurality of third time points at which the second audio receiving unit <NUM> receives the second audio signals that are reflected for the first time.

In step S1003, the signal processor <NUM> further determines whether the headphone <NUM> is in a handheld status according to the third time points.

In some embodiments, in response to time intervals of the third time points being the same, the signal processor <NUM> determines that the headphone <NUM> is in a handheld status.

<FIG> is a flowchart of the headphone status detection method drawn according to an embodiment of the present invention. Referring to <FIG>, in some embodiments, the foregoing step S1003 further includes steps S1101 and S1102. In step S1101, when transmitting code messages corresponding to the codes 1A, 1B. and 10F, the signal processor <NUM> stores a plurality of fourth time points at which the code messages are transmitted, and then respectively subtracts the fourth time points corresponding to the same codes from the third time points, to obtain a plurality of second time differences.

In step S1102, the signal processor <NUM> further determines whether the headphone <NUM> is in a handheld status according to the second time differences.

If the first time differences are all less than a second predetermined time that is preset and the second time differences are approximately the same as each other, it indicates that the headphone <NUM> stably maintains a preset distance from the object <NUM>, and it can be determined that the headphone <NUM> is in a handheld status. Therefore, in response to the second time differences all being less than the second predetermined time that is preset and each difference between the second time differences being less than an error value, the signal processor <NUM> determines that the headphone <NUM> is in a handheld status. In this embodiment, the second predetermined time is <NUM>. It should be noted that, the second predetermined time is set according to actual positions at which the second audio playback unit <NUM> and the second audio receiving unit <NUM> are disposed in the headphone <NUM>, and the present invention is not limited to this.

In this specification, a "computer-readable medium" is used to refer to a non-volatile, non-transitory medium, such as a read only memory (ROM), a flash memory, a floppy disk, a hard disk, a compact disk (CD), a digital versatile disc (DVD), a flash drive, a database accessible by a network, or any other storage medium with the same functions known to those with ordinary knowledge in the technical field of the present invention. These and other various forms of computer-readable media may involve carrying one or more sequences of one or more instructions to the signal processor <NUM> for execution. These instructions embodied in the media are usually referred to as "computer program code" or "computer program product". The "computer program code" or "computer program product" may be a file that can be transmitted over the network, or may be stored in a non-transitory computer-readable storage medium. When these instructions are executed, the signal processor <NUM> can perform the steps or functions described in the present invention.

Based on the above, the embodiments of the present invention provide a headphone, a headphone status detection method, a computer-readable recording medium with a stored program, and a non-transitory computer program product. The first audio playback unit receives a plurality of code messages transmitted by the signal processor, and plays a plurality of first audio signals corresponding to the plurality of code messages according to a playback sequence. Any two audio signals with a same frequency among the first audio signals are spaced by at least a first quantity of audio signals with frequencies different from each other. The signal processor obtains a plurality of first time points at which the first audio receiving unit receives the plurality of first audio signals that are reflected for the first time. The signal processor further determines a wear status of the headphone according to the plurality of first time points. Accordingly, in the headphone, the headphone status detection method, the computer-readable recording medium with a stored program, and the non-transitory computer program product according to the embodiments of the present invention, an existing speaker in a headphone can be used as the first audio playback unit and a microphone with an ANC system can be used as the first audio receiving unit. Therefore, no additional components are required, and the cost or complexity of the headphone is not increased.

Claim 1:
A headphone (<NUM>), comprising a signal processor (<NUM>), a first audio playback unit (<NUM>), and a first audio receiving unit (<NUM>),
the signal processor (<NUM>) being configured to sequentially transmit a plurality of code messages to the first audio playback unit (<NUM>), wherein any two code messages that are successively transmitted among the plurality of code messages correspond to different frequencies;
the first audio playback unit (<NUM>) receiving the plurality of code messages and playing a plurality of first audio signals whose frequencies correspond to the plurality of code messages according to a playback sequence;
wherein
the signal processor (<NUM>) obtains a plurality of first time points at which the first audio receiving unit (<NUM>) receives reflections of the plurality of first audio signals;
and the signal processor (<NUM>) determines a wear status of the headphone (<NUM>) according to the plurality of first time points, wherein the wear status includes a status of the headphone (<NUM>) being worn by a user and a status of the headphone (<NUM>) being not worn by a user.