Method for detecting wearing position of earphone, earphone and electronic equipment
Patent Information
- Application Number
- CN202480039740.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2026-03-13
AI Technical Summary
In existing technologies, the wearing position indicators of headphones are prone to mismatch with the actual wearing position, affecting the user experience.
By setting a detection module in the earphone, the accelerometer and gyroscope are used to obtain the pre-judgment result at a predetermined detection cycle, and the result is updated in real time based on the pre-judgment result and the current wearing position indication to ensure the accuracy of the wearing position indication.
This reduces the risk of false detection, improves the accuracy of headphone wearing position detection, and enhances the user experience.
Smart Images

Figure CN121666764A_ABST
Abstract
Description
Earphone wearing position detection method, earphone and electronic device
TECHNICAL FIELD
[0001] The present application relates to the technical field of consumer electronics, and specifically designs an earphone wearing position detection method, an earphone and an electronic device.
BACKGROUND
[0002] An earphone usually stores a wearing position indication, which is used to indicate whether the earphone is worn on the left ear or the right ear. In related technologies, the wearing position indication stored in the earphone is updated only when the earphone is just taken out of the earphone box or just worn on the ear, and it is relatively easy to cause the wearing position indication to be inconsistent with the actual wearing position, thereby affecting the user experience.
[0003]
SUMMARY
[0004] The present application provides an earphone wearing position detection method, the earphone is provided with a detection module and stores a wearing position indication, the detection method comprises: acquiring a pre-judgment result for representing the wearing position of the earphone by using the detection module at a predetermined detection period; and updating the wearing position indication in real time based on the comparison result of the pre-judgment result and the current wearing position indication of the earphone, wherein the pre-judgment result and the wearing position indication are respectively used to represent whether the earphone is worn on the left ear or the right ear.
[0005] In some embodiments, the detection module comprises an acceleration sensor, and acquiring the pre-judgment result for representing the wearing position of the earphone by using the detection module at the predetermined detection period comprises: acquiring the pre-judgment result based on at least one group of acceleration values detected by the acceleration sensor at the predetermined detection period.
[0006] In some embodiments, the detection module further comprises a gyroscope; and acquiring the pre-judgment result for representing the wearing position of the earphone by using the detection module at the predetermined detection period further comprises: determining whether the pre-judgment result is in a valid state, wherein the valid state is used to indicate that the earphone is worn on one of the left ear and the right ear; and if not, resetting the pre-judgment result according to the angular velocity value detected by the gyroscope when a user performs a preset head action.
[0007] In some embodiments, the detection method further comprises: starting to perform the detection method and starting to count in response to the earphone being in a wearing state; performing the detection method at a first detection frequency when the counting is less than or equal to a preset time threshold; and performing the detection method at a second detection frequency when the counting is greater than the preset time threshold, the first detection frequency being higher than the second detection frequency.
[0008] In some embodiments, the real-time updating of the wearing position indication based on the comparison result of the pre-judgment result and the current wearing position indication of the earphone comprises: in response to the number of detection periods in which the pre-judgment result is valid and different from the wearing position indication continuously set is greater than or equal to a preset number threshold, updating the wearing position indication to the pre-judgment result, wherein the predetermined number is greater than or equal to the preset number threshold.
[0009] In some embodiments, the real-time updating of the wearing position indication based on the comparison result of the pre-judgment result and the current wearing position indication of the earphone comprises: in response to the count value of the detection periods in which the pre-judgment result is valid and different from the wearing position indication continuously appearing being equal to a pre-designed count threshold, updating the wearing position indication to the pre-judgment result, and resetting the count value.
[0010] In some embodiments, the real-time updating of the wearing position indication based on the comparison result of the pre-judgment result and the current wearing position indication of the earphone further comprises: in response to the pre-judgment result being valid and the same as the wearing position indication or the pre-judgment result being invalid, maintaining the wearing position indication, and resetting the count value.
[0011] In some embodiments, the obtaining of the pre-judgment result based on the at least one group of acceleration values detected by the acceleration sensor in the predetermined detection period comprises: inputting the at least one group of acceleration values obtained in each detection period into a trained neural network model to obtain the pre-judgment result.
[0012] In some embodiments, the wearing position indication is reset by the earphone case in response to the earphone being placed into the corresponding earphone compartment of the earphone case.
[0013] In some embodiments, the number of earphones is two arranged in pairs; the detection method further comprises: in response to the current wearing position indications of the two earphones indicating that the two earphones are worn on the same side of the ear and lasting for a predetermined time, generating a reset reminder.
[0014] In some embodiments, the number of earphones is two arranged in pairs; the detection method further comprises: in response to the current wearing position indications of the two earphones indicating that the two earphones are worn on the same side of the ear, and the generation time of the current wearing position indication of one of the earphones being earlier than the other, maintaining the wearing position indication of the one earphone unchanged, and resetting the wearing position indication of the other earphone.
[0015] In some embodiments, the detection period is between 50ms-10s.
[0016] In some embodiments, the detection method further comprises: adapting the audio signal of the corresponding channel for the earphone according to the wearing position indication, and / or setting the key function of the earphone according to the wearing position indication.
[0017] In some embodiments, the detection method further comprises: sending a reminder message, the reminder message being used to remind the user of the wearing position of the wearing position indication representation, determining whether to adapt the audio signals of the corresponding sound channels according to the wearing position indication according to the received preset trigger action of the user, and / or determining whether to set the key function of the earphone according to the wearing position indication according to the received preset trigger action of the user.
[0018] Another aspect of the present application also provides an earphone, which comprises a processor and a memory, the memory storing a computer program, and the processor is configured to execute the computer program to implement any of the above-described detection methods.
[0019] Another aspect of the present application also provides an electronic device, which is configured to communicate with the earphone and comprises a processor and a memory, the memory storing a computer program, and the processor is configured to execute the computer program to implement any of the above-described detection methods.
[0020] In the scheme of the present application, the wearing position of the earphone is periodically detected at a predetermined detection period when the earphone is in a wearing state, and the wearing position indication stored in the earphone is updated in real time, which is advantageous to reduce the risk of false detection and improve the accuracy of wearing position detection compared with the scheme in the related art. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0022] Fig. 1 shows the state of an embodiment of the earphone worn on the ear EAR of the user;
[0023] Fig. 2 is a flowchart of an embodiment of the detection method provided by the present application;
[0024] Fig. 3 is a flowchart of an embodiment of S100;
[0025] Fig. 4 is a flowchart of an embodiment of S200;
[0026] Fig. 5 is a flowchart of another embodiment of the detection method provided by the present application;
[0027] Fig. 6 is a flowchart of another embodiment of the detection method provided by the present application;
[0028] Fig. 7 is a flowchart of another embodiment of the detection method provided by the present application;
[0029] Figure 8 is a schematic diagram of a module of an embodiment of the earphone of this application;
[0030] Figure 9 is a schematic diagram of a module of an embodiment of the electronic device of this application.
Detailed Implementation Methods
[0031] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the application. Similarly, the following embodiments are only some, not all, embodiments of the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.
[0032] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0033] The terms "first," "second," and "third" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. The terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus.
[0034] This application provides a method for detecting the wearing position of an earphone 1. This method can be performed by the earphone 1 itself or by an electronic device communicating with the earphone 1. Specifically, the electronic device can be a mobile phone, tablet, or computer; this application does not limit this, and those skilled in the art can choose according to actual needs.
[0035] As shown in FIG. 1, which shows an earphone in an embodiment in a state of being worn on a user's ear EAR. The earphone 1 can be an ear clip type earphone. As shown in FIG. 1, the earphone 1 includes a sound generating portion 100 for insertion into a user's (wearer's) concha cavity E12, an abutting portion 300 for abutting against the user's ear back, and an ear hook 200 connected to the sound generating portion 100 and the abutting portion 300. In the state of being worn, the ear hook 200 can pass around the user's helix E17, the sound generating portion 100 and the abutting portion 300 form a clamping state on both sides of the user's helix E17, and the sound generating portion 100 is located in the concha cavity E12.
[0036] The sound generating portion 100 is a sound playing device for converting an electrical signal into an acoustic signal and playing it to the wearer. The abutting portion 300 forms a clamping state with the sound generating portion 100 so as to clamp the entire earphone 1 on the user's ear EAR. The abutting portion 300 can be provided with a detection module and a storage module. The detection module is used to obtain the wearing position of the earphone, and the wearing position of the earphone includes the left ear and the right ear. The storage module is used to store a wearing position indication, wherein the wearing position indication is used to indicate whether the earphone is worn on the left ear or the right ear.
[0037] In some embodiments, the detection module and the storage module can also be provided in the sound generating portion 100, or one of the detection module and the storage module is provided in the sound generating portion 100, and the other is provided in the abutting portion 300. The present application does not limit this, and those skilled in the art can select according to actual needs. In some embodiments, the abutting portion 300 can be provided with a battery, a circuit board and the like. Of course, the abutting portion 300 can also not be provided with a battery, and the battery can be installed into the sound generating portion 100, which is within the scope of those skilled in the art and will not be described here.
[0038] As shown in FIG. 1, the ear hook 200 has a symmetry plane A1 provided along the length direction of the ear hook 200. Specifically, the symmetry plane A1 of the ear hook 200 is provided along the length direction of the ear hook 200, and the parts of the ear hook 200 on both sides of the symmetry plane A1 are least different or consistent, i.e. if the ear hook 200 is regularly symmetrical, the parts of the ear hook 200 on both sides of the symmetry plane A1 are consistent, and if the ear hook 200 is not strictly symmetrical, the difference between the parts of the ear hook 200 on both sides of the symmetry plane A1 should be the least in various division manners, for example, the projection of the ear hook 200 on a plane perpendicular to the symmetry plane A1 can be observed to distinguish the size of the difference. When the earphone is in a relatively ideal wearing state, the symmetry plane A1 can be substantially parallel to the horizontal plane. It should be noted that the "substantially parallel" described in the present application allows an error range of plus or minus 15°, and it is easy to understand that in the user's use process, the earphone can slide under the action of its own gravity, so that the symmetry plane A1 deviates from the horizontal plane.
[0039] In some embodiments, the earphone 1 can be other types of earphones that support both left ear wearing and right ear wearing. It is easily understood that the ear clip earphone shown in FIG. 1 is only an example and cannot be understood as a limitation of the scheme of the present application.
[0040] As shown in FIG. 2, FIG. 2 is a flowchart of an embodiment of the detection method provided by the present application. The detection method can include the following steps:
[0041] S100: acquiring a pre-judgment result for representing the wearing position of the earphone by using the detection module at a predetermined detection period.
[0042] Each detection period corresponds to a pre-judgment result. The detection period can be between 50 ms and 10 s. For example, the detection period can be 50 ms, 100 ms, 300 ms, 500 ms, 1 s, 3 s, 5 s, or 10 s. The detection module is used to detect the wearing position of the earphone and output a pre-judgment result for representing the wearing position of the earphone, wherein the pre-judgment result is used to represent whether the earphone is worn on the left ear or the right ear.
[0043] In some embodiments, the detection module can include an acceleration sensor, and S100 can be implemented by the following steps included in the detection module:
[0044] S101: acquiring a pre-judgment result for representing the wearing position of the earphone based on at least one group of acceleration values detected by the acceleration sensor at a predetermined detection period.
[0045] The acceleration sensor is built-in with a spatial coordinate system including an X-axis, a Y-axis, and a Z-axis. The X-axis and the Y-axis can be substantially parallel to the symmetry plane A1, and the Z-axis can be substantially perpendicular to the symmetry plane A1. It should be noted that the "substantially parallel" and "substantially perpendicular" described in the present application allow an error range of plus or minus 15°. The acceleration sensor can detect the acceleration components of the earphone in the X-axis, Y-axis, and Z-axis directions.
[0046] In some embodiments, only one group of acceleration values can be acquired in each detection period, and the pre-judgment result is acquired based on the group of acceleration values. In some embodiments, multiple groups of acceleration values can be acquired in each detection period, and the pre-judgment result is acquired based on the multiple groups of acceleration values, which is beneficial to improve the accuracy of the wearing position detection.
[0047] In some embodiments, each group of acceleration values can only include the acceleration component in the Z-axis direction, that is, the pre-judgment result can be acquired only by using the acceleration component in the Z-axis direction. The positive or negative of the acceleration component in the Z-axis direction can reflect the wearing position of the earphone to a certain extent.
[0048] Specifically, when the earphone is in a relatively ideal wearing state, the head of the user does not have a vertical motion, and the head of the user is basically upright, since the specified coordinate axis Z is basically perpendicular to the symmetry plane A1, and the symmetry plane A1 is basically parallel to the horizontal plane in the wearing state of the earphone, at this time, the included angle between the gravity acceleration and the Z axis is relatively small, so that there is a correlation between the absolute value of the acceleration component in the Z axis direction and the value of the gravity acceleration, so that the absolute value of the acceleration component in the Z axis direction is within a preset threshold range.
[0049] That is, when the absolute value of the acceleration component in the Z axis direction is within the preset threshold range, it can be determined that the head does not have a vertical motion and is basically upright. At this time, the positive and negative of the acceleration component in the Z axis direction can effectively represent the wearing position. For example, if it is assumed that the Z axis is upward when the earphone is worn on the left ear, and the Z axis is downward when the earphone is worn on the right ear, when the acceleration component in the Z axis direction is positive, it indicates that the earphone is worn on the right ear, and when the acceleration component in the Z axis direction is negative, it indicates that the earphone is worn on the left ear. Similarly, if it is assumed that the Z axis is downward when the earphone is worn on the left ear, and the Z axis is upward when the earphone is worn on the right ear, when the acceleration component in the Z axis direction is positive, it indicates that the earphone is worn on the left ear, and when the acceleration component in the Z axis direction is negative, it indicates that the earphone is worn on the right ear.
[0050] When the absolute value of the acceleration component in the Z axis direction is not within the preset threshold range, it indicates that the head can have an up-down motion, or the head can be in an inclined state, for example, the user is in a lying or half-lying state, at this time, the positive and negative of the acceleration component in the Z axis direction cannot effectively represent the wearing position of the earphone.
[0051] In some embodiments, each set of acceleration values can include an acceleration component in the X axis direction, an acceleration component in the Y axis direction, and an acceleration component in the Z axis direction, to improve the accuracy of the preliminary determination result, which is within the scope of understanding of those skilled in the art and will not be described here.
[0052] In some embodiments, S101 can be implemented by the following steps included therein:
[0053] S1011: input at least one set of acceleration values obtained in each detection period into the trained neural network model to obtain a preliminary determination result.
[0054] Specifically, the neural network model can be trained by using the calibrated training set. For example, the training set can include a plurality of groups of acceleration values, each group of acceleration values including an acceleration component in the X-axis direction, an acceleration component in the Y-axis direction, and an acceleration component in the Z-axis direction. In each detection period, at least one group of acceleration values can be obtained and input into the trained neural network model to obtain a preliminary determination result.
[0055] In some embodiments, in each detection period, only one group of acceleration values can be obtained and input into the trained neural network model, and the trained neural network model can generate a preliminary determination result through convolutional pooling and other operations. In some embodiments, in each detection period, a plurality of groups of acceleration values can be obtained and input into the trained neural network model, and the amount of input data is increased, which is conducive to improving the accuracy of the preliminary determination result and thus improving the accuracy of the wearing position detection.
[0056] When the at least one acceleration value obtained in the detection period can determine that the earphone is worn on the left ear, the preliminary determination result can be set to indicate the left ear; when the at least one acceleration value obtained in the detection period can determine that the earphone is worn on the right ear, the preliminary determination result can be set to indicate the right ear; and when the at least one acceleration value obtained in the detection period cannot determine the wearing position of the earphone, the preliminary determination result can be set to indicate an unknown state. When the preliminary determination result is set to indicate the left ear or the right ear, the preliminary determination result can be considered valid, i.e., in a valid state; and when the preliminary determination result is set to indicate the unknown state, the preliminary determination result can be considered invalid, i.e., in an invalid state.
[0057] In some embodiments, the detection module can further include a gyroscope, and the preliminary determination result can be reset by the gyroscope when the preliminary determination result is in the unknown state. Specifically, as shown in FIG. 3, which is a flowchart of one embodiment of S100, after S101, S100 can further include:
[0058] S102: determining whether the preliminary determination result is in a valid state, where the valid state is used to indicate that the earphone is worn on one of the left ear and the right ear.
[0059] S103: if not, resetting the preliminary determination result according to an angular velocity value detected by the gyroscope when the user performs a preset head movement.
[0060] The gyroscope can share the same spatial coordinate system with the acceleration sensor and be used to detect angular velocity components of rotation of the earphone around the X-axis, rotation around the Y-axis, and rotation around the Z-axis.
[0061] The preset head action can be an action of tilting the head to the left shoulder, an action of tilting the head to the right shoulder, an action of turning the head to the left, an action of turning the head to the right, an action of lifting the head upward, or an action of lowering the head downward, which is not limited in the present application, and can be selected by those skilled in the art according to actual needs.
[0062] When the pre-judgment result is in the invalid state, a voice reminder can be sent to the user to remind the user to perform the preset head action. Of course, other forms of reminders can also be sent to the user to make the user perform the preset head action, which is not limited in the present application, and can be selected by those skilled in the art according to actual needs.
[0063] Suppose that when the earphone is worn on the left ear, the Z axis is upward, the X axis is to the right, and the Y axis is backward, and when the earphone is worn on the right ear, the Z axis is downward, the X axis is to the left, and the Y axis is backward. In this case, if the preset head action is to turn the head to the right, and the angular velocity value of the rotation around the Z axis detected by the gyroscope is positive, it indicates that the earphone is worn on the left ear, and the pre-judgment result can be reset to indicate the left ear. If the preset head action is to turn the head to the right, and the angular velocity value of the rotation around the Z axis detected by the gyroscope is negative, it indicates that the earphone is worn on the right ear, and the pre-judgment result can be reset to indicate the right ear.
[0064] In some embodiments, when the user performs the preset head action, the gyroscope can also determine the wearing position of the earphone through the angular velocity components of the rotation around the X, Y, and Z axes. Compared with the single-axis rotation in the above-mentioned embodiments, the three-axis angular velocity components can further improve the accuracy of the determination, which is within the scope of understanding of those skilled in the art and will not be described here.
[0065] In the scheme of the present embodiment, when the pre-judgment result is in the invalid state, the pre-judgment result is reset according to the angular velocity value detected by the gyroscope when the user performs the preset head action, which is beneficial to improve the effectiveness of the pre-judgment result and further improve the accuracy of the wearing position detection.
[0066] In some embodiments, the antenna structure of the earphone is arranged to have different communication performance when worn on the left ear or the right ear. For example, the radiation performance of the antenna usually has a certain directivity. When the earphone is designed, its radiation performance can be optimized based on the left ear. In this case, the communication performance parameters such as the RSSI value (Received Signal Strength Indication) when the earphone is worn on the left ear are better than those when the earphone is worn on the right ear. At this time, the detection module can be used to detect the communication performance parameters of the earphone, so as to obtain the pre-judgment result for representing the wearing position of the earphone.
[0067] In some embodiments, the speaker of the earphone can emit ultrasonic waves, and when the earphone is worn on the left ear or the right ear, the time at which the microphone of the earphone receives the ultrasonic waves, or the waveform, will be different. At this time, the detection module can be used to detect the difference in the ultrasonic waves received by the microphone of the earphone, thereby obtaining a pre-judgment result for characterizing the wearing position of the earphone.
[0068] S200: Real-time updating the wearing position indication based on a comparison result of the pre-judgment result and the current wearing position indication of the earphone, wherein the pre-judgment result and the wearing position indication are respectively used to characterize whether the earphone is worn on the left ear or the right ear.
[0069] In some embodiments, S200 can be implemented by the following steps included therein:
[0070] S201: In response to the number of detection periods in which the pre-judgment result is valid and different from the wearing position indication being greater than or equal to a preset number threshold in a predetermined number of consecutive detection periods, updating the wearing position indication to the pre-judgment result, wherein the predetermined number is greater than or equal to the preset number threshold.
[0071] Wherein, the specific values of "a predetermined number of consecutive detection periods" and "a preset number threshold" are not limited in the present application, and can be selected by those skilled in the art according to actual needs.
[0072] For example, "a predetermined number of consecutive detection periods" can refer to five consecutive detection periods, and "a preset number threshold" can be three. Assuming that the current wearing position indication characterizes the wearing position as the left ear, if the pre-judgment result of three or more detection periods is the right ear in five consecutive detection periods, the wearing position indication is updated from the left ear to the right ear. If the pre-judgment result of only one or two detection periods is the right ear in five consecutive detection periods, or the pre-judgment result of five consecutive detection periods is the left ear, the wearing position indication is not updated.
[0073] In the scheme of the present embodiment, the pre-judgment results of consecutive detection periods are weighted to determine whether to update the wearing position indication, which is beneficial to improve the accuracy of the wearing position detection.
[0074] As shown in FIG. 4, FIG. 4 is a flowchart of an embodiment of S200, and in some embodiments, S200 can be implemented by the following steps included therein:
[0075] S202: In response to the count value of the detection periods in which the pre-judgment result is valid and different from the wearing position indication being equal to a preset count threshold, updating the wearing position indication to the pre-judgment result, and resetting the count value.
[0076] Wherein, the specific value of the "pre-design number threshold" is not limited in the present application, and can be selected by the person skilled in the art according to actual needs.
[0077] For example, the "pre-design number threshold" can be three. Assuming that the wearing position indicated by the current wearing position indication is the left ear, when the pre-judgment result is the right ear, start counting, set the count value to 1, if the pre-judgment result of the next detection period is the right ear, set the count value to 2, if the pre-judgment result of the next detection period is the right ear, set the count value to 3, at this time, the count value of the continuous right ear is three times, the wearing position indication is updated from the left ear to the right ear, and the count value is reset to 0.
[0078] S203: In response to the pre-judgment result being valid and the same as the wearing position indication or the pre-judgment result being invalid, the wearing position indication is maintained, and the count value is reset.
[0079] For example, the "pre-design number threshold" can be three. Assuming that the wearing position indicated by the current wearing position indication is the left ear, when the pre-judgment result is the right ear, start counting, set the count value to 1, if the pre-judgment result of the next detection period is the left ear, set the count value to 0, and maintain the wearing position indication unchanged.
[0080] It should be noted that there is no order between steps S202 and S203.
[0081] In the scheme of the embodiment, the wearing position indication is updated when the count value of the detection period in which the pre-judgment result is valid and different from the wearing position indication is equal to the pre-design number threshold, which is beneficial to improve the accuracy of the wearing position detection.
[0082] In general, the scheme of the present application is different from the related art in that the wearing position of the earphone is periodically detected in a predetermined detection period when the earphone is in a wearing state, and the wearing position indication stored in the earphone is updated in real time. Compared with the scheme in the related art, it is beneficial to reduce the risk of misjudgment and improve the accuracy of the wearing position detection.
[0083] It should be noted that the detection method described in the present application can be periodically executed within a predetermined time period, for example, in response to the earphone being in a wearing state, start timing, and periodically execute the above-described detection method within a predetermined time period (for example, the length of the predetermined time period can be between 20s-60s, such as 20s, 30s, 40s, 50s, 60s).
[0084] The "real-time updating" described in the present application refers to that the updating of the wearing position indication is continuously performed within the preset time period. For example, when the earphone is placed in the earphone box, the earphone box can set the wearing position indication for the earphone, and when the earphone is just worn by the user, the wearing position indication can be updated according to the prediction result, and then the detection module continues to obtain the prediction result, and the current wearing position indication is continuously updated according to the prediction result.
[0085] As shown in FIG. 5, FIG. 5 is a flowchart of another embodiment of the detection method provided by the present application. In some embodiments, the detection method further comprises:
[0086] S1: in response to the earphone being in the wearing state, starting to execute the detection method and starting to count time.
[0087] In some embodiments, the detection method described above can also be started to be executed in response to the earphone being taken out of the earphone box, and the present application does not make any limitation in this regard, and a person skilled in the art can make a selection according to actual needs.
[0088] S2: when the counted time is less than or equal to a preset time threshold, executing the detection method at a first detection frequency.
[0089] The specific value of the "preset time threshold" is not limited in the present application, and a person skilled in the art can make a selection according to actual needs.
[0090] S3: when the counted time is greater than the preset time threshold, executing the detection method at a second detection frequency, the first detection frequency being higher than the second detection frequency.
[0091] In the scheme of the present embodiment, the detection method described above is executed at a higher detection frequency before the preset time threshold, and the detection method described above is executed at a lower detection frequency after the preset time threshold, which is beneficial to reducing the power consumption of the device while ensuring the accuracy of the wearing position detection.
[0092] As shown in FIG. 6, FIG. 6 is a flowchart of another embodiment of the detection method provided by the present application. In some embodiments, after S200, the detection method further comprises:
[0093] S300: adapting the audio signal of the corresponding channel for the earphone according to the wearing position indication, and / or setting the key function of the earphone according to the wearing position indication.
[0094] For example, when the wearing position indication indicates that the earphone is worn on the left ear, the earphone can be adapted with the audio signal of the left channel; similarly, when the wearing position indication indicates that the earphone is worn on the right ear, the earphone can be adapted with the audio signal of the right channel, thereby improving the user experience.
[0095] In some embodiments, the earphone is further provided with a button, which can be a mechanical button. It can also be a touch button. The button function of the earphone can be different when it is worn on the left ear or the right ear. For example, when the earphone is worn on the left ear, the button thereon can be used to switch the playing track, and when the earphone is worn on the right ear, the button thereon can be used to adjust the volume. In such a case, the button function of the earphone can be set according to the current wearing position indication of the earphone, thereby improving the user experience.
[0096] As shown in FIG. 7, FIG. 7 is a flowchart of another embodiment of the detection method provided by the present application. In some embodiments, after S200, the detection method further includes:
[0097] S400: issuing a reminder message, the reminder message being used to remind the user of the wearing position indicated by the wearing position indication, and determining whether to adapt the audio signal of the corresponding sound channel for the earphone according to the wearing position indication and / or determining whether to set the button function of the earphone according to the wearing position indication according to the preset trigger action of the user received.
[0098] For example, the reminder message can be in the form of voice, which is used to broadcast the wearing position indicated by the wearing position indication to the user. In some embodiments, when the user receives the reminder message, the user can autonomously determine whether the wearing position indicated by the wearing position indication is accurate. If it is accurate, the user can perform a preset trigger action on the earphone, such as an action of transmitting a mechanical signal, an action of transmitting a light signal, or an action of transmitting an electrical signal, so that the earphone adapts the audio signal of the corresponding sound channel according to the wearing position indicated by the wearing position indication and / or sets the button function of the earphone according to the wearing position indicated by the wearing position indication.
[0099] In some embodiments, the user can autonomously determine whether the wearing position indicated by the wearing position indication is accurate. If it is not accurate, the user can perform a preset trigger action on the earphone, so that the earphone does not adapt the audio signal of the corresponding sound channel according to the wearing position indicated by the wearing position indication and / or does not set the button function of the earphone according to the wearing position indicated by the wearing position indication. The present application does not limit this, and those skilled in the art can select according to actual needs.
[0100] In the scheme of the present embodiment, the user is provided with the opportunity to autonomously determine whether the wearing position indicated by the wearing position indication is accurate. In this way, even if the current wearing position indication is wrong, it will be recognized by the user in time, avoiding affecting the user experience.
[0101] In some embodiments, the number of earphones is two, which are arranged in pairs. The detection method further includes:
[0102] S500: In response to the current wearing position indications of the two earphones indicating that the two earphones are worn on the same side ear and for a predetermined time, generating a reset prompt.
[0103] For example, if the user wears the two earphones on the left ear and the right ear respectively, in this case, if the current wearing position indications of the two earphones both indicate wearing on the left ear, it means that at least one of the wearing position indications is incorrect, at this time, a reset prompt can be generated to identify the error in the wearing position indicated by the wearing position indication in time, so as to avoid affecting the user's experience.
[0104] In some embodiments, the number of earphones is two arranged in pairs, and the detection method further comprises:
[0105] S600: In response to the current wearing position indications of the two earphones indicating that the two earphones are worn on the same side ear, and the generation time of the current wearing position indication of one of the earphones being earlier than that of the other earphone, keeping the wearing position indication of the one earphone unchanged and resetting the wearing position indication of the other earphone.
[0106] For example, if the current wearing position indications of the two earphones both indicate wearing on the left ear, the generation time of the current wearing position indication of one of the earphones is earlier than that of the other earphone, that is, the current wearing position indication of one of the earphones is generated first, and the current wearing position indication of the other earphone is generated later, at this time, for the earphone whose wearing position indication is generated first, the wearing position indication can be kept as left ear, and for the earphone whose wearing position indication is generated later, the wearing position indication can be reset as right ear. Subsequently, the audio signal of the corresponding channel can be further adapted according to the respective wearing position indications of the two earphones, and / or the key function can be adapted according to the respective wearing position indications of the two earphones. In this way, when the user wears the two earphones on the left ear and the right ear respectively, it is beneficial to avoid the situation that the two earphones play the same channel of audio, thereby improving the user's experience.
[0107] In some embodiments, the detection method further comprises:
[0108] S700: In response to the earphone being placed into the corresponding earphone compartment of the earphone box, resetting the wearing position indication by the earphone box.
[0109] The earphone box can be provided with a left earphone compartment and a right earphone compartment. When the earphone is placed in the earphone box, the earphone box can reset the wearing position indication of the earphone placed in the left earphone compartment to the left ear and reset the wearing position indication of the earphone placed in the right earphone compartment to the right ear. When the user takes out the earphone from the earphone box again, the user will habitually wear the earphone in the left earphone compartment in the left ear and wear the earphone in the right earphone compartment in the right ear. In this way, after entering the wearing state, the wearing position indications of the two earphones can correctly represent the wearing positions of the earphones, so that the earphones can be quickly configured with audio signals and key functions of corresponding channels, and the use experience of the user can be improved.
[0110] Another aspect of the present application also provides an earphone 800. Please refer to Fig. 8, which is a module schematic diagram of an embodiment of the earphone of the present application. The earphone 800 comprises a memory 810, a processor 820 and a computer program stored in the memory 810 and capable of running on the processor 820. When the processor 820 executes the computer program, any detection method described above is realized.
[0111] The processor 820 can also be referred to as a CPU (Central Processing Unit). The processor 820 can be an integrated circuit chip with a processing capability. The processor 820 can also be a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor 820 can also be any conventional processor.
[0112] The memory 810 can include a RAM (Random Access Memory), a ROM (Read-Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), an EEPROM (Electrically Erasable Programmable ROM), a register, a hard disk, a removable disk, a CD-ROM, etc. The memory 810 can store program data, which can include a single instruction or a large number of instructions, and can be distributed on several different code segments, distributed among different programs and across multiple memories. The memory 810 can be coupled to the processor 820 so that the processor 820 can read and write information from / to the memory 810. Of course, the memory 810 can be integrated into the processor 820, and the present application does not make any limitation thereon, and the skilled in the art can select according to the actual needs.
[0113] Another aspect of the present application provides an electronic device 900. Referring to FIG. 9, which is a schematic diagram of modules of an embodiment of the electronic device of the present application, the electronic device 900 comprises a memory 910, a processor 920, and a computer program stored in the memory 910 and capable of running on the processor 920, and the processor 920 implements any of the detection methods described above when executing the computer program.
[0114] The electronic device 900 can specifically be a mobile phone, a tablet or a computer in communication with the earphone 800, and the present application does not make any limitation in this aspect, and a person skilled in the art can make a selection according to actual needs.
[0115] The processor 920 can also be referred to as a CPU (Central Processing Unit). The processor 920 can be an integrated circuit chip having a processing capability. The processor 920 can also be a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application-Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor 920 can also be any conventional processor.
[0116] The memory 910 can include a RAM (Random Access Memory), a ROM (Read-Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), an EEPROM (Electrically Erasable Programmable ROM), a register, a hard disk, a removable disk, a CD-ROM, etc. The memory 910 can store program data, which can include a single instruction or a large number of instructions, and can be distributed in several different code segments among different programs and across multiple memories. The memory 910 can be coupled to the processor 920 so that the processor 920 can read / write information from / to the memory 910. Of course, the memory 910 can be integrated into the processor 920, and the present application does not make any limitation in this aspect, and a person skilled in the art can make a selection according to actual needs.
[0117] In several embodiments provided by the present application, it should be understood that the disclosed detection methods can be implemented by other means. For example, the above-described earphone / electronic device embodiments are only illustrative, for example, the division of modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0118] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment scheme.
[0119] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0120] The above is only part of the embodiments of the present application, and does not limit the protection scope of the present application, and any equivalent device or equivalent process transformation using the content of the present application specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method of detecting a wearing position of a headphone, characterized by, The earphone is provided with a detection module and stores a wearing position indication, and the detection method comprises: acquiring a pre-judgment result for representing the wearing position of the earphone by using the detection module at a predetermined detection period; updating the wearing position indication in real time based on a comparison result of the pre-judgment result and the current wearing position indication of the earphone, wherein the pre-judgment result and the wearing position indication are respectively used to represent whether the earphone is worn on the left ear or the right ear.
2. The detection method according to claim 1, characterized in that, The detection module comprises an acceleration sensor; The detection module comprises an acceleration sensor; The detection module comprises an acceleration sensor; 3. The detection method according to claim 2, characterized in that, The detection module further comprises a gyroscope; The detection module further comprises a gyroscope; The detection module further comprises a gyroscope; The detection module further comprises a gyroscope; 4. The method of claim 1, wherein The detection method further comprises: starting to execute the detection method and starting to count time in response to the earphone being in a wearing state; executing the detection method at a first detection frequency when the counted time is less than or equal to a preset time threshold; executing the detection method at a second detection frequency when the counted time is greater than the preset time threshold, wherein the first detection frequency is higher than the second detection frequency.
5. The method of claim 1, wherein The detection method further comprises: updating the wearing position indication to the pre-judgment result in response to a number of detection periods in which the pre-judgment result is valid and different from the wearing position indication being greater than or equal to a preset number threshold in a predetermined number of continuously set detection periods, wherein the predetermined number is greater than or equal to the preset number threshold.
6. The method of claim 1, wherein, The detection method further comprises: updating the wearing position indication to the pre-judgment result in response to a count value of detection periods in which the pre-judgment result is valid and different from the wearing position indication being equal to a preset count threshold, and resetting the count value.
7. The detection method according to claim 6, characterized in that, The detection method further comprises: maintaining the wearing position indication and resetting the count value in response to the pre-judgment result being valid and same as the wearing position indication or the pre-judgment result being invalid.
8. The method of claim 2, wherein, The detection method further comprises: The detection method further comprises: input at least one set of acceleration values obtained in each detection period into a trained neural network model to obtain the pre-judgment result.
9. The method of claim 1, wherein, The detection method further comprises: resetting, by the earphone case, the wearing position indication in response to the earphones being placed into corresponding earphone compartments of the earphone case.
10. The method of claim 1, wherein, The number of the earphones is two arranged in pairs. The detection method further comprises: generating a reset reminder in response to the current wearing position indication of the two earphones representing that the two earphones are worn on the same side of the ear and lasting for a predetermined time.
11. The method of claim 1, wherein, The number of the earphones is two arranged in pairs. The detection method further comprises: maintaining the wearing position indication of one of the earphones unchanged and resetting the wearing position indication of the other earphone in response to the current wearing position indication of the two earphones representing that the two earphones are worn on the same side of the ear and the generation time of the wearing position indication of the one earphone being earlier than that of the other earphone.
12. The method of claim 1, wherein, The detection period is between 50 ms and 10 s.
13. The method of claim 1, wherein, The detection method further comprises: adapting audio signals of corresponding channels to the earphones according to the wearing position indication, and / or setting key functions of the earphones according to the wearing position indication.
14. The method of claim 1, wherein, The detection method further comprises: sending a reminder message for reminding a user of a wearing position represented by the wearing position indication, and determining whether to adapt audio signals of corresponding channels to the earphones according to the wearing position indication and / or set key functions of the earphones according to the wearing position indication according to a preset trigger action of the user received.
15. An earphone, characterized by The earphone comprises a processor and a memory, the memory storing a computer program, and the processor is configured to execute the computer program to implement the detection method according to any one of claims 1-14.
16. An electronic device, comprising: The electronic device is configured to communicate with the earphone and comprises a processor and a memory, the memory storing a computer program, and the processor is configured to execute the computer program to implement the detection method according to any one of claims 1-14.